Skip to content

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

Open
HReed1 wants to merge 4 commits intonf-core:masterfrom
HReed1:stub-topics-salsa2
Open

Update salsa2: topic versions, stub block, sanitizeOutput#11445
HReed1 wants to merge 4 commits intonf-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.

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 and others added 2 commits May 1, 2026 08:39
- main.nf: emit: versions -> emit: versions_salsa2
- meta.yml: output key versions: -> versions_salsa2:
- tests/main.nf.test.snap: regenerate snapshots

Local lint: 53/0. Local nf-test: 2/2 passed.
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