Skip to content

Unable to combine f2a results with funannotate2 annotate #25

@Elep798

Description

@Elep798

Hello!

Thank you for the great tool!

Sorry if it's the wrong place, I didn't know whether to post here or in funannotate2-addons.

I am trying to combine results from the funannotate addons (eggnog and antiSMASH) with funannotate2 main results, however I get an error with the parse_annotations function.

I simply ran funannotate2 annotate -i Sc_res/ -s "Saccharomyces cerevisiae" and got the following traceback:

Traceback (most recent call last):
File ".local/bin/funannotate2", line 8, in
sys.exit(main())
^^^^^^
File "/.local/lib/python3.12/site-packages/funannotate2/main.py", line 30, in main
annotate(args)
File "/.local/lib/python3.12/site-packages/funannotate2/annotate.py", line 283, in annotate
a = parse_annotations(annotfile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.local/lib/python3.12/site-packages/funannotate2/search.py", line 599, in parse_annotations
gene, db, value = line.split("\t")
^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 3, got 1)

I checked the logs for emapper and antismash and they both finished with no problems, generating 3-column tables with file name ending in .annotations.txt.

On the other hand, when I tried running it with the all.annotations.txt file generated with funannotate1 it worked well. As I'd prefer to run the whole thing with the same version, how should I solve this issue in a better way?

Thanks!

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