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

error when running bakta with --skip-trna option #79

Closed
joyn-sromero opened this issue Sep 26, 2021 · 5 comments
Closed

error when running bakta with --skip-trna option #79

joyn-sromero opened this issue Sep 26, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@joyn-sromero
Copy link

joyn-sromero commented Sep 26, 2021

Describe the bug
Im running bakta in a data set that stalls when running with default options and wont move beyond the detection of tRNAs (after 12 hour it keeps running this step) so I choose to run with the --skip-trna option this dataset but this causes bakta to finish the run with this error message:

write JSON output...
Traceback (most recent call last):
File "/opt/conda/bin/bakta", line 8, in
sys.exit(main())
File "/opt/conda/lib/python3.9/site-packages/bakta/main.py", line 472, in main
json.write_json(genome, features, json_path)
File "/opt/conda/lib/python3.9/site-packages/bakta/io/json.py", line 20, in write_json
feat.pop('aa_digest') # remove binary aa digest before JSON serialization
KeyError: 'aa_digest'

This causes none of the bakta outputs being generated just the log file.

Therefore, please provide us with at least the following information:

  • what exactly happened
    See above
  • provide the detailed logs (execute Bakta via --verbose)
    -the logs I get are these

parse genome sequences...
imported: 193
filtered & revised: 193
contigs: 193
skip tRNA prediction...
predict tmRNAs...
found: 1
predict rRNAs...
found: 8
predict ncRNAs...
found: 9
predict ncRNA regions...
found: 54
predict CRISPR arrays...
found: 0
predict & annotate CDSs...
predicted: 359
predict & annotate CDSs... [50/927]
predicted: 359
discarded spurious: 0
detected IPSs: 119
found PSCs: 215
found PSCCs: 15
lookup annotations...
conduct expert systems...
amrfinder: 1
protein sequences: 1
combine annotations and mark hypotheticals...
analyze hypothetical proteins: 36
detected Pfam hits: 9
calculated proteins statistics
extract sORF...
potential: 91445
discarded due to overlaps: 55998
discarded spurious: 3
detected IPSs: 0
found PSCs: 0
lookup annotations...
filter and combine annotations...
filtered sORFs: 0
detect gaps...
found: 0
detect oriCs/oriVs...
found: 0
detect oriTs...
found: 0
apply feature overlap filters...
select features and create locus tags...
selected: 81253

genome statistics:
Genome size: 7,524,442 bp
Contigs/replicons: 193
GC: 53.0 % [14/927]
N50: 91,849
N ratio: 0.0 %
coding density: 891.9 %

annotation statistics:
tRNAs: 0
tmRNAs: 193
rRNAs: 1544
ncRNAs: 1737
ncRNA regions: 10229
CRISPR arrays: 0
CDSs: 67550, hypotheticals: 6948
sORFs: 0
gaps: 0
oriCs/oriVs: 0
oriTs: 0

write JSON output...
Traceback (most recent call last):
File "/opt/conda/bin/bakta", line 8, in
sys.exit(main())
File "/opt/conda/lib/python3.9/site-packages/bakta/main.py", line 472, in main
json.write_json(genome, features, json_path)
File "/opt/conda/lib/python3.9/site-packages/bakta/io/json.py", line 20, in write_json
feat.pop('aa_digest') # remove binary aa digest before JSON serialization
KeyError: 'aa_digest'

  • what installation of Bakta did you use: BioConda, Pip
    -Im using bakta docker v1.1.1
@joyn-sromero joyn-sromero added the bug Something isn't working label Sep 26, 2021
@joyn-sromero
Copy link
Author

I also get this same problem exactly using bakta docker v1.0.4

@oschwengers oschwengers self-assigned this Sep 27, 2021
@oschwengers
Copy link
Owner

Hi @joyn-sromero thanks for reporting. Could you please upload the according log file so I can take a deeper look at this? If it's possible, the genome fasta file would help as well.

@oschwengers
Copy link
Owner

Also, could you please update to the latest version v1.2.1 and check if the issue remains?

@joyn-sromero
Copy link
Author

joyn-sromero commented Oct 12, 2021 via email

oschwengers added a commit that referenced this issue Oct 12, 2021

Partially verified

This commit is signed with the committer’s verified signature.
spydon’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
@oschwengers
Copy link
Owner

Oh I see. Yes, that indeed will cause some severe issues within the pipeline.
I added a quick check for unique contig IDs. Thanks for pointing that out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants