-
Notifications
You must be signed in to change notification settings - Fork 1k
Update whamg: topic versions, stub block, sanitizeOutput #11450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
HReed1
wants to merge
4
commits into
nf-core:master
Choose a base branch
from
HReed1:stub-topics-whamg
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5994a77
feat(whamg): migrate to topic: versions, add stub block, sanitizeOutp…
HReed1 c489f4f
Standardize version emission and restore EDAM comments
HReed1 a539828
fix(whamg): rename emit to versions_whamg per nf-core convention
HReed1 b559aa1
Merge branch 'master' into stub-topics-whamg
HReed1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,13 +30,34 @@ nextflow_process { | |
| then { | ||
| assertAll( | ||
| { assert process.success }, | ||
| { assert snapshot( | ||
| path(process.out.vcf[0][1]).vcf.summary, | ||
| file(process.out.tbi[0][1]).name, | ||
| process.out.graph, | ||
| process.out.versions | ||
| ).match() | ||
| } | ||
| { assert snapshot(sanitizeOutput(process.out)).match() } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still need to swap back to use nft-vcf for the vcf file, and the tbi is unstable |
||
| ) | ||
| } | ||
| } | ||
|
|
||
| test("test-whamg-bam - stub") { | ||
|
|
||
| options "-stub" | ||
|
|
||
| when { | ||
| process { | ||
| """ | ||
| input[0] = [ | ||
| [ id:'test' ], // meta map | ||
| file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test.paired_end.sorted.bam', checkIfExists: true), | ||
| file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/bam/test.paired_end.sorted.bam.bai', checkIfExists: true) | ||
| ] | ||
| input[1] = file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta', checkIfExists: true) | ||
| input[2] = file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta.fai', checkIfExists: true) | ||
|
|
||
| """ | ||
| } | ||
| } | ||
|
|
||
| then { | ||
| assertAll( | ||
| { assert process.success }, | ||
| { assert snapshot(sanitizeOutput(process.out)).match() } | ||
| ) | ||
| } | ||
| } | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,76 @@ | ||
| { | ||
| "test-whamg-bam": { | ||
| "content": [ | ||
| "VcfFile [chromosomes=[], sampleCount=1, variantCount=0, phased=true, phasedAutodetect=true]", | ||
| "test.vcf.gz.tbi", | ||
| [ | ||
|
|
||
| ], | ||
| [ | ||
| "versions.yml:md5,243bed402cdc21ab2fc42a7400399ea9" | ||
| ] | ||
| { | ||
| "graph": [ | ||
|
|
||
| ], | ||
| "tbi": [ | ||
| [ | ||
| { | ||
| "id": "test" | ||
| }, | ||
| "test.vcf.gz.tbi:md5,4cb176febbc8c26d717a6c6e67b9c905" | ||
| ] | ||
| ], | ||
| "vcf": [ | ||
| [ | ||
| { | ||
| "id": "test" | ||
| }, | ||
| "test.vcf.gz:md5,e45326a91ef59ea91ad3fe85f353748c" | ||
| ] | ||
| ], | ||
| "versions_whamg": [ | ||
| [ | ||
| "WHAMG", | ||
| "whamg", | ||
| "1.7.0" | ||
| ] | ||
| ] | ||
| } | ||
| ], | ||
| "timestamp": "2026-04-30T17:44:50.968503", | ||
| "meta": { | ||
| "nf-test": "0.8.4", | ||
| "nextflow": "24.04.4" | ||
| }, | ||
| "timestamp": "2024-08-27T11:43:16.953021" | ||
| "nf-test": "0.9.5", | ||
| "nextflow": "26.04.0" | ||
| } | ||
| }, | ||
| "test-whamg-bam - stub": { | ||
| "content": [ | ||
| { | ||
| "graph": [ | ||
|
|
||
| ], | ||
| "tbi": [ | ||
| [ | ||
| { | ||
| "id": "test" | ||
| }, | ||
| "test.vcf.gz.tbi:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
| ] | ||
| ], | ||
| "vcf": [ | ||
| [ | ||
| { | ||
| "id": "test" | ||
| }, | ||
| "test.vcf.gz:md5,68b329da9893e34099c7d8ad5cb9c940" | ||
| ] | ||
| ], | ||
| "versions_whamg": [ | ||
| [ | ||
| "WHAMG", | ||
| "whamg", | ||
| "1.7.0" | ||
| ] | ||
| ] | ||
| } | ||
| ], | ||
| "timestamp": "2026-04-30T17:44:56.533951", | ||
| "meta": { | ||
| "nf-test": "0.9.5", | ||
| "nextflow": "26.04.0" | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.