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

"other entries", "other sequences" raise AttributeError when using --include-children #89

Open
yeemey opened this issue Oct 26, 2023 · 0 comments

Comments

@yeemey
Copy link

yeemey commented Oct 26, 2023

Hello,
When I run extract_kraken_reads.py with --include-children on a kraken2 report that includes "other entries" and "other sequences," I get the following error:

Traceback (most recent call last):
  File "/bin/KrakenTools/extract_kraken_reads.py", line 447, in <module>
    main()
  File "/bin/KrakenTools/extract_kraken_reads.py", line 237, in main
    while level_num != (prev_node.level_num + 1):
                        ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'level_num'

I used print(report_vals) here and traced the error to having "other entries" and "other sequences" lines in the report in between other taxonomic groups. When I move both "other entries" and "other sequences" to the end of the report, extract_kraken_reads.py runs to completion without errors. I still have to check however, if I've messed up the read extraction by doing that.

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

1 participant