nextgenusfs / funannotate

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

funannotate sort --minlen not working #896

Closed abretaud closed 1 year ago

abretaud commented 1 year ago

Are you using the latest release? using master branch

Describe the bug the --minlen option of funannotate sort isno longer working (writing smaller contigs)

What command did you issue? funannotate sort --input input.fa --out output.fa --base 'something' --minlen 2100

The if/else logic is not working as expected after recent refactoring at https://github.com/nextgenusfs/funannotate/blob/afeeb4d49ea00aad3bd25590cf66edd9575e237f/funannotate/sort.py#L36

hyphaltip commented 1 year ago

I can fix that - you can also use AAFTF for sorting.

abretaud commented 1 year ago

Thanks, the fix works!