forked from nf-core/modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move gatk4/mergevcfs to nf-test (nf-core#4913)
* move gatk4/mergevcfs to nf-test * Update modules/nf-core/gatk4/mergevcfs/tests/main.nf.test Co-authored-by: Nicolas Vannieuwkerke <[email protected]> * Update modules/nf-core/gatk4/mergevcfs/tests/main.nf.test Co-authored-by: Nicolas Vannieuwkerke <[email protected]> * fix tests * Delete modules/nf-core/gatk4/mergevcfs/tests/nextflow.config --------- Co-authored-by: Nicolas Vannieuwkerke <[email protected]>
- Loading branch information
1 parent
3fd1a27
commit 79d2703
Showing
8 changed files
with
125 additions
and
75 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
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,87 @@ | ||
nextflow_process { | ||
|
||
name "Test Process GATK4_MERGEVCFS" | ||
script "../main.nf" | ||
process "GATK4_MERGEVCFS" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "gatk4" | ||
tag "gatk4/mergevcfs" | ||
|
||
test("test_gatk4_mergevcfs") { | ||
when { | ||
process { | ||
""" | ||
input[0] = [ [ id:'test' ], [ file(params.test_data['homo_sapiens']['genome']['dbsnp_146_hg38_vcf_gz'], checkIfExists: true), file(params.test_data['homo_sapiens']['genome']['gnomad_r2_1_1_vcf_gz'], checkIfExists: true) ]] | ||
input[1] = [ [], file(params.test_data['homo_sapiens']['genome']['genome_dict'], checkIfExists: true)] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ | ||
assert snapshot( | ||
file(process.out.vcf.get(0).get(1)).name, | ||
file(process.out.tbi.get(0).get(1)).name | ||
).match("test_gatk4_mergevcfs") | ||
}, | ||
) | ||
} | ||
|
||
} | ||
|
||
test("test_gatk4_mergevcfs_no_dict") { | ||
when { | ||
process { | ||
""" | ||
input[0] = [ [ id:'test' ], [ file(params.test_data['homo_sapiens']['genome']['dbsnp_146_hg38_vcf_gz'], checkIfExists: true), file(params.test_data['homo_sapiens']['genome']['gnomad_r2_1_1_vcf_gz'], checkIfExists: true) ]] | ||
input[1] = [ [],[]] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ | ||
assert snapshot( | ||
file(process.out.vcf.get(0).get(1)).name, | ||
file(process.out.tbi.get(0).get(1)).name | ||
).match("test_gatk4_mergevcfs_no_dict") | ||
}, | ||
) | ||
} | ||
|
||
} | ||
|
||
test("test_gatk4_mergevcfs_no_dict_stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ [ id:'test' ], [ file(params.test_data['homo_sapiens']['genome']['dbsnp_146_hg38_vcf_gz'], checkIfExists: true), file(params.test_data['homo_sapiens']['genome']['gnomad_r2_1_1_vcf_gz'], checkIfExists: true) ]] | ||
input[1] = [ [],[]] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ | ||
assert snapshot( | ||
file(process.out.vcf.get(0).get(1)).name, | ||
file(process.out.tbi.get(0).get(1)).name | ||
).match("test_gatk4_mergevcfs_no_dict_stub") | ||
}, | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,2 @@ | ||
gatk4/mergevcfs: | ||
- "modules/nf-core/gatk4/mergevcfs/**" |
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.