Clarify RSeQC bam_stat proper pairs column title#3526
Merged
ewels merged 4 commits intoApr 9, 2026
Conversation
RSeQC bam_stat.py only counts proper pairs among reads with MAPQ >= mapq_cut (default 30), but the General Statistics column was titled simply "Proper Pairs", matching the samtools stats column which counts all proper pairs regardless of MAPQ. This causes confusion when both columns appear side by side with very different percentages for the same sample. Add "(MAPQ>=30)" to the title and expand the description to explain the filtering. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
ewels
reviewed
Apr 9, 2026
ewels
left a comment
Member
There was a problem hiding this comment.
Thanks! I think we can get away with it being a little simpler / shorter? What do you think?
Could add some clarification in the MultiQC module docs as a compromise if you wanted.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
ewels
pushed a commit
that referenced
this pull request
May 7, 2026
Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
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
Context
RSeQC
bam_stat.pyapplies a default MAPQ >= 30 filter before counting. Its proper pairs percentage uses a filtered numerator (only MAPQ >= 30 reads) against total records as denominator, but the column title doesn't indicate any filtering is happening. This has caused confusion for users who expect the value to reflect all reads.Adding "(MAPQ>=30)" to the title makes the filtering immediately visible.
Changes
multiqc/modules/rseqc/bam_stat.py: Updatedtitleanddescriptionfor theproper_pairs_percentGeneral Statistics column header🤖 Generated with Claude Code