fix(mqc): use active aligner display name for fail_mapped header#1850
Merged
Conversation
Plumb an aligner_display_name string from RNASEQ into MULTIQC_RNASEQ so the fail_mapped per-sample TSV header reflects the metric the active aligner actually emits, instead of always saying "STAR uniquely mapped reads (%)". Also drop the hardcoded "STAR" reference from the pipeline-completion warning that flags samples below min_mapped_reads. Closes #1846 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Member
Author
|
Thanks @vagkaratzas ! |
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.
Summary
aligner_display_nametake input throughMULTIQC_RNASEQand replace the hardcoded"STAR uniquely mapped reads (%)"header in the fail_mapped per-sample TSV with the active aligner's display name. Bowtie2 reports now correctly readBowtie2 overall alignment rate (%).STARreference from the pipeline-completionmin_mapped_readswarning so it reads "samples skipped since they failed the X% mapped threshold" regardless of aligner.The display name map lives at the top of
RNASEQso the subworkflow stays aligner-agnostic. Map coversstar_salmon,star_rsem,hisat2, andbowtie2_salmon, with a generic'Aligned reads'fallback for forward compatibility.Note: HISAT2 doesn't currently surface
percent_mappedtoch_percent_mapped, so its fail_mapped path is a dead branch today; the HISAT2 entry in the map is forward-looking.Closes #1846
Test plan
nf-test test tests/default.nf.test --profile=+test,dockerpasses (STAR snapshots unchanged — display name identical)-profile test_prokaryotic,docker --min_mapped_reads 99producesmultiqc_fail_mapped_samples_table.txtwith headerSample\tBowtie2 overall alignment rate (%)🤖 Generated with Claude Code