nextgenusfs / funannotate

Eukaryotic Genome Annotation Pipeline
http://funannotate.readthedocs.io
BSD 2-Clause "Simplified" License
300 stars 82 forks source link

Funannotate sort (Version 1.8.17): error while sorting assembly/contigs #1027

Open jmartinsjrbr opened 2 months ago

jmartinsjrbr commented 2 months ago

I have got the following error when running funannotate sort (version 1.8.17):

Traceback (most recent call last): File "/scratch/modules/apps/anaconda3/2024.02-1/envs/funannotate-1.8.17/bin/funannotate", line 8, in sys.exit(main()) File "/scratch/modules/apps/anaconda3/2024.02-1/envs/funannotate-1.8.17/lib/python3.8/site-packages/funannotate/funannotate.py", line 717, in main mod.main(arguments) File "/scratch/modules/apps/anaconda3/2024.02-1/envs/funannotate-1.8.17/lib/python3.8/site-packages/funannotate/sort.py", line 81, in main SortRenameHeaders( File "/scratch/modules/apps/anaconda3/2024.02-1/envs/funannotate-1.8.17/lib/python3.8/site-packages/funannotate/sort.py", line 38, in SortRenameHeaders if minlen > 0: TypeError: '>' not supported between instances of 'NoneType' and 'int'

I ran a diff -c command to compare sort.py from versions 1.8.15 and 1.8.17 and out of some differences, a line is missing (above line 37) in the newer version:

->> if minlen: <<- (this conditional is present in version 1.8.15)

Despite 'minlen' is set as 0 by default and this line should not be a problem, I put it again in the sort.py in the newer version and sorting worked properly.