Update kraken summary with etetoolkit - #24
Open
Ulthran wants to merge 14 commits into
Open
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the Kraken2 report summarization script to use NCBI taxonomy lineage instead of parsing Kraken2 report format directly. The key changes include:
- Replacing custom lineage construction with ete3's NCBITaxa for taxonomy lookups
- Simplifying the parsing logic to extract only taxon IDs and fragment counts
- Removing old test functions that tested the deprecated implementation
- Adding the ete3 dependency to the conda environment
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/summarize_kraken2_reports.py | Complete refactor to use NCBITaxa for lineage resolution; simplified parsing and output logic |
| scripts/test_summarize_kraken2_reports.py | Updated imports and removed deprecated test functions |
| envs/sbx_kraken_env.yml | Added ete3 dependency |
| envs/sbx_kraken_env.linux-64.pin.txt | Removed pinned dependencies (appears to be regenerated) |
| config.yml | Whitespace-only change |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ge-to-include-blank-family Handle missing taxonomy ranks when building consensus lineage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.