Skip to content

funannotate2 train error #7

@samuelmontgomery

Description

@samuelmontgomery

Hi,

I am trying to run funannotate2 (previously used funannotate) on a Scedosporium clinical isolate and am having an error when trying to run train that I can't seem to solve

I know BUSCO doesn't have a scedosporium lineage, so i've used Sordariomycetes as the class
It seems to be failing due to the fact it is not present in the augustus_taxonomy config even though augustus shouldn't be used

looking at train.py it appears to run choose_best_augustus_species no matter what, if I comment out the augustus commands to skip, I get the same error with choose_best_busco_species

funannotate2 train -f funannotate2/sced_aura_clean.fasta -s sordariomycetes -o funannotate2 --cpus 4
[May 16 08:23 AM] Python v3.12.10; funannotate2 v25.4.30; gfftk v25.4.17; buscolite v25.4.24
[May 16 08:23 AM] Loading genome assembly and running QC checks
[May 16 08:23 AM] Genome stats:
{
"n_contigs": 11,
"size": 43308415,
"n50": 5340307,
"n90": 2879831,
"l50": 4,
"l90": 8,
"avg_length": 3937129
}
[May 16 08:23 AM] Getting taxonomy information
{
"kingdom": "Fungi",
"phylum": "Ascomycota",
"class": "Sordariomycetes"
}
Traceback (most recent call last):
File "/home/ubuntu/scratch/software/miniforge3/envs/funannotate2/bin/funannotate2", line 8, in
sys.exit(main())
^^^^^^
File "/home/ubuntu/scratch/software/miniforge3/envs/funannotate2/lib/python3.12/site-packages/funannotate2/main.py", line 28, in main
train(args)
File "/home/ubuntu/scratch/software/miniforge3/envs/funannotate2/lib/python3.12/site-packages/funannotate2/train.py", line 96, in train
aug_species = choose_best_augustus_species(taxonomy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/scratch/software/miniforge3/envs/funannotate2/lib/python3.12/site-packages/funannotate2/utilities.py", line 368, in choose_best_augustus_species
return best_taxonomy(query_tax, augustus_species)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/scratch/software/miniforge3/envs/funannotate2/lib/python3.12/site-packages/funannotate2/utilities.py", line 423, in best_taxonomy
iMax = max(ref_tax.items(), key=lambda x: x[1][0])[1][0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: max() iterable argument is empty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions