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

Fix merged nodes #49

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dorbarker
Copy link

Fixes an issue that can occur when the taxonomy database is newer than the kraken2 database. Sometimes taxid nodes get merged. The merged nodes are removed from nodes.dmp and noted in merged.dmp.

So if you've generated your kraken2 results with the latest pre-built databases, but have run make_ktaxonomy.py with a freshly downloaded taxonomy, make_kreport.py will fail because it finds taxids that are not in the taxonomy.

This PR will add the obsolete taxid as a child of the updated taxid. This allows make_kreport.py to still run if the situation described above arises.

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 this pull request may close these issues.

1 participant