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 custom anchors for kraken #2170

Merged
merged 5 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Nanostat: account for both tab and spaces in v1.41+ search pattern ([#2155](https://github.com/ewels/MultiQC/pull/2155))
- Clean version strings with build IDs ([#2166](https://github.com/ewels/MultiQC/pull/2166))
- Remove position:absolute from table values ([#2169](https://github.com/ewels/MultiQC/pull/2169))
- Fix custom anchors for kraken ([#2170](https://github.com/ewels/MultiQC/pull/2170))

### New Modules

Expand Down
1 change: 1 addition & 0 deletions multiqc/modules/bracken/bracken.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ def __init__(self):
href="https://ccb.jhu.edu/software/bracken/",
info="is a highly accurate statistical method that computes the abundance of species in DNA sequences from a metagenomics sample.",
doi="10.7717/peerj-cs.104",
sp_key="bracken",
)
3 changes: 2 additions & 1 deletion multiqc/modules/kraken/kraken.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def __init__(
href="https://ccb.jhu.edu/software/kraken/",
info="is a taxonomic classification tool that uses exact k-mer matches to find the lowest common ancestor (LCA) of a given sequence.",
doi="10.1186/gb-2014-15-3-r46",
sp_key="kraken",
):
super(MultiqcModule, self).__init__(
name=name,
Expand All @@ -48,7 +49,7 @@ def __init__(
# Find and load any kraken reports
self.kraken_raw_data = dict()
new_report_present = False
for f in self.find_log_files(self.anchor, filehandles=True):
for f in self.find_log_files(sp_key, filehandles=True):
log_version = self.get_log_version(f)
f["f"].seek(0)
if log_version == "old":
Expand Down