Skip to content

Fix merged nodes - #49

Open
dorbarker wants to merge 3 commits into
jenniferlu717:masterfrom
dorbarker:fix-merged-nodes
Open

Fix merged nodes#49
dorbarker wants to merge 3 commits into
jenniferlu717:masterfrom
dorbarker:fix-merged-nodes

Conversation

@dorbarker

Copy link
Copy Markdown

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