Update whamg: topic versions, stub block, sanitizeOutput#11450
Open
HReed1 wants to merge 4 commits intonf-core:masterfrom
Open
Update whamg: topic versions, stub block, sanitizeOutput#11450HReed1 wants to merge 4 commits intonf-core:masterfrom
HReed1 wants to merge 4 commits intonf-core:masterfrom
Conversation
SPPearce
requested changes
May 1, 2026
Comment on lines
-34
to
-35
| path(process.out.vcf[0][1]).vcf.summary, | ||
| file(process.out.tbi[0][1]).name, |
Contributor
There was a problem hiding this comment.
vcf and tbi files are typically unstable due to differences between conda/docker/singularity.
The vcf summary command comes from the nft-vcf plugin.
Any time you see a snapshot split out like this it means you need to take special care and not just snapshot the whole process.out.
You can use unstableKeys for the tbi channel, but the vcf summary is useful to keep for showing the vcf file is not changing.
| tuple val(meta), path("*.vcf.gz.tbi") , emit: tbi | ||
| tuple val(meta), path("*.txt") , emit: graph, optional: true | ||
| path "versions.yml" , emit: versions | ||
| tuple val("${task.process}"), val('whamg'), eval('whamg 2>&1 | grep Version | sed \'s/^Version: v//; s/-.*$//\''), topic: versions, emit: versions_whamg |
Contributor
There was a problem hiding this comment.
Can you make this one sed command please.
- main.nf: emit: versions -> emit: versions_whamg - meta.yml: output key versions: -> versions_whamg: Local lint: 56/0. Local nf-test: 2/2 passed.
SPPearce
reviewed
May 4, 2026
| process.out.versions | ||
| ).match() | ||
| } | ||
| { assert snapshot(sanitizeOutput(process.out)).match() } |
Contributor
There was a problem hiding this comment.
Still need to swap back to use nft-vcf for the vcf file, and the tbi is unstable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR checklist
--profile docker,wavetests.nf-core modules lint).nf-test test).Description of changes
Migrates the whamg module to the nf-core v4.0.1 architecture:
versions.ymlfile emission with dynamiceval()tuple emission on thetopic: versionschannel.stub:block for CI/CD stub-run support.sanitizeOutput(process.out)per nf-test best practices.output: versions_whamgandtopics: versionssections.Part of the v4.0.1 standardization effort tracked in #11323.
Part of #4570