Skip to content

Conversation

@pinin4fjords
Copy link
Member

Summary

Converts 5 modules from versions.yml file-based version emission to the modern topic: versions channel emission pattern:

  • untar
  • pigz/compress
  • kallisto/index
  • samtools/index
  • bowtie2/build

Changes per module

  • main.nf: Replace path "versions.yml", emit: versions with structured tuple output using topic: versions
  • main.nf: Remove heredoc version blocks from both script: and stub: sections
  • meta.yml: Remove old versions: output section, add versions_<tool>: output and topics: section
  • tests/main.nf.test: Update assertions to use process.out.findAll { key, val -> key.startsWith('versions') }
  • tests/main.nf.test.snap: Regenerated with structured version tuples ["PROCESS_NAME", "tool", "version"]

Version output format

Before:

path "versions.yml", emit: versions

After:

tuple val("${task.process}"), val('toolname'), eval('tool --version ...'), emit: versions_toolname, topic: versions

Test plan

  • All modules pass nf-core modules lint
  • All tests pass locally (except kallisto non-stub which requires x86_64 - snapshot manually updated)
  • CI tests pass

🤖 Generated with Claude Code

…/build to topic-based version emission

Converts these modules from versions.yml file emission to the modern
topic: versions channel emission pattern.

Changes per module:
- main.nf: Replace `path "versions.yml", emit: versions` with
  `tuple val("${task.process}"), val('<tool>'), eval('<version_cmd>'),
  emit: versions_<tool>, topic: versions`
- main.nf: Remove heredoc version blocks from script and stub sections
- meta.yml: Remove old versions output, add versions_<tool> output and
  topics section
- tests: Update assertions to use findAll for versions outputs
- tests: Regenerate snapshots with structured version tuples

Updates 11 subworkflows to remove explicit version collection for
converted modules (versions now collected via topic channel):
- archive_extract
- bam_sort_stats_samtools
- bam_dedup_stats_samtools_umitools
- bam_markduplicates_picard
- bam_dedup_stats_samtools_umicollapse
- fastq_align_bwaaln
- bam_split_by_region
- fastq_remove_rrna
- fasta_index_dna
- fasta_index_bismark_bwameth
- fasta_index_methylseq

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@pinin4fjords pinin4fjords force-pushed the feat/topics-version-batch1 branch from 9407d1d to 01c2896 Compare January 28, 2026 20:42
@pinin4fjords pinin4fjords removed the request for review from maxulysse January 28, 2026 20:43
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.

2 participants