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

Strange error with --ont flag #123

Closed
iqbal-lab opened this issue Apr 14, 2021 · 1 comment · Fixed by #126
Closed

Strange error with --ont flag #123

iqbal-lab opened this issue Apr 14, 2021 · 1 comment · Fixed by #126
Assignees

Comments

@iqbal-lab
Copy link
Collaborator

Jane Hawkey found a strange error when running with --ont flag. Pasting her email below

I’m having some issues using the ont flag - I keep getting the following error:

[mykrobe 2021-04-08T04:27:15 WARNING] Setting ploidy to haploid
[mykrobe 2021-04-08T04:27:15 WARNING] Setting ignore_minor_calls to True
[mykrobe 2021-04-08T04:27:15 WARNING] Setting expected error rate to 0.15 (--ont)
Traceback (most recent call last):
File "/home/ubuntu/miniconda3/envs/mykrobe_typhi/bin/mykrobe", line 8, in
sys.exit(main())
File "/home/ubuntu/miniconda3/envs/mykrobe_typhi/lib/python3.9/site-packages/mykrobe/cli.py", line 8, in main
args.func(parser, args)
File "/home/ubuntu/miniconda3/envs/mykrobe_typhi/lib/python3.9/site-packages/mykrobe/parser.py", line 55, in run_subtool
run(parser, args)
File "/home/ubuntu/miniconda3/envs/mykrobe_typhi/lib/python3.9/site-packages/mykrobe/cmds/amr.py", line 396, in run
gt.run()
File "/home/ubuntu/miniconda3/envs/mykrobe_typhi/lib/python3.9/site-packages/mykrobe/typing/typer/genotyper.py", line 305, in run
self._type()
File "/home/ubuntu/miniconda3/envs/mykrobe_typhi/lib/python3.9/site-packages/mykrobe/typing/typer/genotyper.py", line 308, in _type
self._type_genes()
File "/home/ubuntu/miniconda3/envs/mykrobe_typhi/lib/python3.9/site-packages/mykrobe/typing/typer/genotyper.py", line 318, in _type_genes
self.gene_presence_covgs[gene_name] = gt.type(
File "/home/ubuntu/miniconda3/envs/mykrobe_typhi/lib/python3.9/site-packages/mykrobe/typing/typer/presence.py", line 151, in type
sequence_coverage_collection.values(),
AttributeError: 'list' object has no attribute 'values'

If I run the reads without the ont flag, then mykrobe completes without error (but obviously gives weird results).

I have also tried without the ont flag, but on the command line set ploidy to haploid, expected_error_rate to 0.15 and provided the ignore_minor_calls flag (based on the logs it seems like this is what the ont flag is doing?). When I do this then mykrobe completes successfully.

I’ve tried a few different sets of ONT reads, and always get the same issue. Unfortunately I’m not able to share the private ONT data I have, but I have tried it on some publicly available ONT genomes! The error above was generated using read accession ERR4245161. All of the reads in bioproject PRJEB38900 are Typhi ONT.

@iqbal-lab
Copy link
Collaborator Author

@martinghunt has been debugging and partially understands what is going on. I'm raising this so we have a placeholder, and also to warn @mbhall88 that this is being fixed.

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

Successfully merging a pull request may close this issue.

2 participants