Skip to content

Conversation

@pinin4fjords
Copy link
Member

Summary

Add individual output channel emits to subworkflows to support the new Nextflow workflow outputs syntax (25.10+). These changes allow pipelines to publish outputs centrally rather than via publishDir directives.

This PR ports the subworkflow changes from nf-core/rnaseq#1679 to the modules repo.

Changes

Updated subworkflows:

Subworkflow New Emits
bam_dedup_stats_samtools_umitools tsv_edit_distance, tsv_per_umi, tsv_umi_per_position
bam_dedup_umi tsv_edit_distance, tsv_per_umi, tsv_umi_per_position (when using umitools)
fastq_fastqc_umitools_fastp umi_reads
fastq_fastqc_umitools_trimgalore umi_reads
fastq_qc_trim_filter_setstrandedness 20+ individual output channels for QC/trim/filter outputs
fastq_remove_rrna sortmerna_log, ribodetector_log, seqkit_stats, bowtie2_log, bowtie2_index, seqkit_prefixed, seqkit_converted
quantify_pseudo_alignment tx2gene

Test plan

  • Snapshot updates needed for tests using snapshot(workflow.out):
    • bam_dedup_stats_samtools_umitools (1 test)
    • fastq_fastqc_umitools_fastp (8 tests)
    • fastq_fastqc_umitools_trimgalore (3 tests)
    • quantify_pseudo_alignment (2 tests)

🤖 Generated with Claude Code

@pinin4fjords pinin4fjords force-pushed the feat/workflow-outputs-emits branch from 7391143 to 5970e8c Compare January 23, 2026 17:52
Add individual output channel emits to subworkflows to support the new
Nextflow workflow outputs syntax (25.10+). These changes allow pipelines
to publish outputs centrally rather than via publishDir directives.

Updated subworkflows:
- bam_dedup_stats_samtools_umitools: add tsv_edit_distance, tsv_per_umi,
  tsv_umi_per_position emits
- bam_dedup_umi: add tsv_* emits when using umitools
- fastq_fastqc_umitools_fastp: add umi_reads emit
- fastq_fastqc_umitools_trimgalore: add umi_reads emit
- fastq_qc_trim_filter_setstrandedness: add individual output channels
  for all QC/trim/filter outputs
- fastq_remove_rrna: add individual output channels for each tool
- quantify_pseudo_alignment: add tx2gene emit

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@pinin4fjords pinin4fjords force-pushed the feat/workflow-outputs-emits branch from 5970e8c to d4e80bc Compare January 23, 2026 17:53
The lint_log emit was split into individual channels (lint_log_raw,
lint_log_trimmed, lint_log_bbsplit, lint_log_ribo) for workflow outputs.
Update test assertions to use lint_log_ribo directly.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Contributor

@SPPearce SPPearce left a comment

Choose a reason for hiding this comment

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

Several null.tx2gene.tsv files being generated now, when they weren't called that before?

pinin4fjords and others added 11 commits January 23, 2026 21:57
Synced from nf-core/rnaseq#1679

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add process configs for CUSTOM_TX2GENE and TXIMETA_TXIMPORT to set
proper file prefixes when meta is empty. Also sync SALMON_QUANT and
KALLISTO_QUANT configs from nf-core/rnaseq#1679.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add additional emit channels to expose intermediate BAM files from the
transcriptome deduplication pipeline, enabling workflow outputs support.

New emits:
- transcriptome_dedup_bam: BAM after deduplication, before name sort
- transcriptome_sorted_bam: name-sorted BAM
- transcriptome_sorted_bam_bai: coordinate-sorted dedup index
- transcriptome_filtered_bam: paired-end filtered BAM

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add CUSTOM_TX2GENE and TXIMETA_TXIMPORT process configs to the test
nextflow.config to fix null.tx2gene.tsv filename issue.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Update stub to respect task.ext.prefix configuration, falling back to
meta.id. This ensures stub tests produce consistent output filenames
with the real script.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Align emit statements consistently in bam_dedup_umi and
fastq_qc_trim_filter_setstrandedness subworkflows.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@pinin4fjords pinin4fjords requested a review from SPPearce January 26, 2026 12:20
@SPPearce
Copy link
Contributor

Failures are just singularity timeouts...

@SPPearce SPPearce enabled auto-merge January 26, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants