Skip to content

Conversation

@pinin4fjords
Copy link
Member

PR checklist

  • This comment contains a description of changes (with reason).

Description of changes

This PR adds BBSplit statistics to the MultiQC output in the fastq_qc_trim_filter_setstrandedness subworkflow.

Changes

  • Pass BBMAP_BBSPLIT.out.stats to the ch_multiqc_files channel

Why

MultiQC 1.33 introduced support for parsing BBSplit stats.txt files, allowing visualization of:

  • Per-sample read distribution across reference genomes
  • Percentage/count of reads mapped to each reference

This provides users with an overview of reads removed during contaminant filtering.

Related

🤖 Generated with Claude Code

…dness

Pass BBSplit stats output to MultiQC for visualization of read binning
statistics. MultiQC 1.33+ includes support for parsing BBSplit stats.txt
files and displaying per-sample read distribution across reference genomes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
BBMAP_BBSPLIT.out.primary_fastq.set { ch_filtered_reads }

ch_versions = ch_versions.mix(BBMAP_BBSPLIT.out.versions.first())
ch_multiqc_files = ch_multiqc_files.mix(BBMAP_BBSPLIT.out.stats)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you stripping the meta later? I ran into that on sarek when adding it here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

multiqc_files = ch_multiqc_files.transpose().map { it[1] }

@pinin4fjords pinin4fjords added this pull request to the merge queue Dec 11, 2025
Merged via the queue into master with commit 82ae635 Dec 11, 2025
49 of 62 checks passed
@pinin4fjords pinin4fjords deleted the feature/bbsplit-multiqc-stats branch December 11, 2025 19:34
vagkaratzas pushed a commit that referenced this pull request Dec 12, 2025
…subworkflow (#9559)

Add BBSplit stats to MultiQC files in fastq_qc_trim_filter_setstrandedness

Pass BBSplit stats output to MultiQC for visualization of read binning
statistics. MultiQC 1.33+ includes support for parsing BBSplit stats.txt
files and displaying per-sample read distribution across reference genomes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants