-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added nf-test for picard/sortvcf (#6289)
- Loading branch information
Showing
6 changed files
with
65 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
nextflow_process { | ||
|
||
name "Test Process PICARD_SORTVCF" | ||
script "../main.nf" | ||
process "PICARD_SORTVCF" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "picard" | ||
tag "picard/sortvcf" | ||
|
||
test("test-picard-sortvcf") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ [ id:'test' ], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/vcf/test.vcf', checkIfExists: true) | ||
] | ||
input[1] = [ [ id:'genome' ], | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) | ||
] | ||
input[2] = [ [ id:'genome' ], | ||
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.dict', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
path(process.out.vcf[0][1]).linesGzip[3..7], | ||
process.out.versions | ||
).match() | ||
} | ||
) | ||
} | ||
} | ||
|
||
} |
This file contains 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"test-picard-sortvcf": { | ||
"content": [ | ||
[ | ||
"##FILTER=<ID=PASS,Description=\"All filters passed\">", | ||
"##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">", | ||
"##FORMAT=<ID=PL,Number=G,Type=Integer,Description=\"List of Phred-scaled genotype likelihoods\">", | ||
"##INFO=<ID=AC,Number=A,Type=Integer,Description=\"Allele count in genotypes for each ALT allele, in the same order as listed\">", | ||
"##INFO=<ID=AN,Number=1,Type=Integer,Description=\"Total number of alleles in called genotypes\">" | ||
], | ||
[ | ||
"versions.yml:md5,11949a1af95080dcc5bd1c75d68dee71" | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.04.4" | ||
}, | ||
"timestamp": "2024-08-26T09:20:13.124551" | ||
} | ||
} |
This file contains 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.