Commit e092a727 authored by Roman Sarrazin-Gendron's avatar Roman Sarrazin-Gendron
Browse files

fixed inline seq and missing pos in visual output

parent e6a54362
......@@ -500,7 +500,7 @@ def run_fasta(input, modules_to_parse, dataset, ss="", arguments={}):
#first_run=False
if interm:
print(maxs)
fOUTPUT=fOUTPUT+present_output([maxs], t)+"\n"
fOUTPUT=fOUTPUT+present_output(maxs, t)+"\n"
prediction_scores = {"input_seq":maxs}
pickle.dump(prediction_scores,open("../output/"+o+".pickle","wb"))
else:
......@@ -555,8 +555,10 @@ def seq_ranges(all_pos):
output_string = output_string + "," + str(pos)
continue
if ind == len(all_pos) - 1:
if all_pos[ind - 1] == (all_pos[ind - 2] + 1):
if all_pos[ind] == (all_pos[ind - 1] + 1):
output_string = output_string + "-" + str(pos)
else:
output_string = output_string + "," + str(pos)
return output_string
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment