Skip to content

Update salsa2: topic versions, stub block, sanitizeOutput#11445

Merged
HReed1 merged 1 commit into
nf-core:masterfrom
HReed1:stub-topics-salsa2
May 19, 2026
Merged

Update salsa2: topic versions, stub block, sanitizeOutput#11445
HReed1 merged 1 commit into
nf-core:masterfrom
HReed1:stub-topics-salsa2

Conversation

@HReed1
Copy link
Copy Markdown
Contributor

@HReed1 HReed1 commented Apr 30, 2026

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool, add --profile docker,wave tests.
  • Make sure your code lints (nf-core modules lint).
  • Ensure the test suite passes (nf-test test).

Description of changes

Migrates the salsa2 module to the nf-core v4.0.1 architecture:

  • topic: versions: Replaced legacy versions.yml emission with dynamic eval() tuple emission on the topic: versions channel. Note: salsa2 does not expose a CLI version flag, so the version is hardcoded via eval("echo 2.3") — consistent with existing upstream convention.
  • stub block: Added a deterministic stub: block for CI/CD stub-run support.
  • sanitizeOutput: Refactored all test assertions to use sanitizeOutput(process.out) per nf-test best practices.
  • meta.yml: Updated to include both output: versions_salsa2 and topics: versions sections.

Part of the v4.0.1 standardization effort tracked in #11323.

Part of #4570

Copy link
Copy Markdown
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.

Use val when explicitly setting a version string, not eval.

Comment thread modules/nf-core/salsa2/main.nf Outdated
tuple val(meta), path("*_scaffolds_FINAL.agp") , emit: agp
tuple val(meta), path("*/*scaffolds_FINAL.original-coordinates.agp"), emit: agp_original_coordinates, optional: true
path "versions.yml" , emit: versions
tuple val("${task.process}"), val('salsa2'), eval("echo 2.3"), topic: versions, emit: versions_salsa2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
tuple val("${task.process}"), val('salsa2'), eval("echo 2.3"), topic: versions, emit: versions_salsa2
tuple val("${task.process}"), val('salsa2'), val("2.3"), topic: versions, emit: versions_salsa2

@HReed1 HReed1 force-pushed the stub-topics-salsa2 branch from 59501ef to 4c93d95 Compare May 1, 2026 12:07
@HReed1 HReed1 force-pushed the stub-topics-salsa2 branch from a78d9e1 to 30d3fe6 Compare May 18, 2026 23:22
@HReed1 HReed1 enabled auto-merge May 18, 2026 23:22
@HReed1
Copy link
Copy Markdown
Contributor Author

HReed1 commented May 18, 2026

@SPPearce — Great catch on that! Changed the hardcoded version string to correctly use val('2.3') instead of the unnecessary eval echo wrapper.

I also rebuilt the branch cleanly from upstream/master to eliminate divergence. It's passing nf-test and 55/55 lint checks locally. Ready for another look!

@HReed1 HReed1 added this pull request to the merge queue May 19, 2026
Merged via the queue into nf-core:master with commit df1fba7 May 19, 2026
23 checks passed
@HReed1 HReed1 deleted the stub-topics-salsa2 branch May 19, 2026 07:21
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