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

consider adding support for bakta, and add license #11

Open
mcroxen opened this issue Dec 24, 2021 · 3 comments
Open

consider adding support for bakta, and add license #11

mcroxen opened this issue Dec 24, 2021 · 3 comments

Comments

@mcroxen
Copy link

mcroxen commented Dec 24, 2021

This looks to be a handy tool. I was wondering if you could add support for bakta gff3, which is similar to prokka, but doesn't seem to read the file properly:

Traceback (most recent call last):
  File "./gff_parser.py", line 64, in <module>
    source, version = feature.source.split(SEP, 1)
ValueError: not enough values to unpack (expected 2, got 1)

https://github.com/oschwengers/bakta

https://doi.org/10.1099/mgen.0.000685

Also could you please also add a license.

Thank you

@karkman
Copy link
Owner

karkman commented Jan 10, 2022

Hi,
Thank you for the feedback.
For the bakta gff3 implementation I would need at least an example file. Even with that, I can't promise anything, but I will consider it.
You're also welcome to contribute if you will.

I've added a license.

BR,
Antti

@mcroxen
Copy link
Author

mcroxen commented Mar 1, 2022

Sorry for the delay, please see an attached example
ABU83972.gff3.gz
.

@karkman
Copy link
Owner

karkman commented Apr 15, 2022

Sorry that I haven't had time for this. But I might have a better solution for this.

If you're using bakta for metagenome annotation and would like to import those annotations to anvi'o, I would suggest to use the genbank file from bakta and anvi-script-process-genbank.

Something like this:

bakta $ASSEMBLY.fasta -o $ASSEMBLY_bakta -p $ASSEMBLY 

anvi-script-process-genbank -i $ASSEMBLY_bakta/I$ASSEMBLY.gbff -O $ASSEMBLY \
                            --annotation-source $GENE_CALLER \
                            --annotation-version $VERSION

anvi-gen-contigs-database -f $ASSEMBLY-contigs.fa --external-gene-calls $ASSEMBLY-external-gene-calls.txt \
                          -o $ASSEMBLY.db -n $ASSEMBLY -T $THREADS \
                          --ignore-internal-stop-codons

anvi-import-functions -c $ASSEMBLY.db  -i $ASSEMBLY-external-functions.txt

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

2 participants