-
Notifications
You must be signed in to change notification settings - Fork 828
Fix MultiQC sample name collisions with shared FASTQ filenames #1659
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
Merged
+31
−12
Conversation
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
When multiple samples share the same FASTQ filename (in different directories), the MultiQC name replacement file would contain duplicate search patterns with different replacement values, causing sample names to be corrupted in the report. This fix only adds FASTQ filename-based mappings when the FASTQ simpleName differs from the sample ID, preventing duplicate entries while still supporting renaming when FASTQ names differ from sample IDs. Fixes #1657 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
Plot export can be slower on ARM architecture, causing timeouts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Use tuple-based mappings and loop over suffixes to reduce code duplication. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Use extra_fn_clean_exts with type: remove to strip _raw/_trimmed suffixes in MultiQC config instead of generating explicit mappings. This simplifies the name replacement logic in main.nf. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
maxulysse
approved these changes
Dec 11, 2025
Member
Author
|
Thanks @maxulysse ! |
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.
Summary
.namesortedsuffix in MultiQC_raw/_trimmedsuffix handling tomultiqc_config.ymlusingextra_fn_clean_extswithtype: removeProblem
When two samples have FASTQ files with the same filename (e.g.,
P30162_607.R1.fastq.gzin different directories), thename_replacement.txtfile contained duplicate search patterns with different replacement values:This caused MultiQC to apply replacements incorrectly, corrupting sample names in the report.
Additionally, QualiMap results were showing
.namesortedsuffixes in sample names.Solution
simpleNamediffers from the sample ID. When they match, no renaming is needed.Added
.namesortedtoextra_fn_clean_extsinmultiqc_config.yml.Moved
_raw/_trimmedsuffix handling frommain.nftomultiqc_config.ymlusingextra_fn_clean_extswithtype: remove. This removes only the matched substring (not everything after it), preserving read numbers like_1/_2.Test plan
.namesortedsuffixFixes #1657
🤖 Generated with Claude Code