Skip to content
Snippets Groups Projects
Commit faaee1ca authored by Amandine  PERRIN's avatar Amandine PERRIN
Browse files

genome name cannot have more than 3 '.' separated fields

parent 74b69246
No related branches found
No related tags found
No related merge requests found
Pipeline #96746 passed
......@@ -548,7 +548,7 @@ def sort_genomes_by_name(x):
x = x[1][0]
# if format is ESCO.1512.00001 sort by ESCO, then 00001
if "." in x and len(x.split(".")) >= 3:
if "." in x and len(x.split(".")) == 3:
return x.split(".")[0], int(x.split(".")[-1])
# if format is not like this, just return alphabetical order
return x,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment