Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jmartinsjrbr opened this issue Apr 16, 2024 · 0 comments
Open

Comments

@jmartinsjrbr
Copy link

jmartinsjrbr commented Apr 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant