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

Accept only formats with 3 dots, not >=3

parent e8228b46
No related branches found
No related tags found
No related merge requests found
Pipeline #97588 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