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.
Add regions bed and nf-test to glnexus (nf-core#6888)
Add regions and nf-test to glnexus Co-authored-by: Sateesh_Peri <[email protected]>
- Loading branch information
1 parent
adf071f
commit bcf36bc
Showing
8 changed files
with
211 additions
and
33 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
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,97 @@ | ||
nextflow_process { | ||
|
||
name "Test Process GLNEXUS" | ||
script "../main.nf" | ||
process "GLNEXUS" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "glnexus" | ||
|
||
test("vcfs, []") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = Channel.of([ | ||
[ id:'test' ], | ||
[ | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/gvcf/test.genome.vcf.gz', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/gvcf/test2.genome.vcf.gz', checkIfExists: true), | ||
] | ||
]) | ||
input[1] = [[],[]] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("vcfs, bed") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = Channel.of([ | ||
[ id:'test' ], | ||
[ | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/gvcf/test.genome.vcf.gz', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/gvcf/test2.genome.vcf.gz', checkIfExists: true), | ||
] | ||
]) | ||
input[1] = [ | ||
[ id:'region' ], | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.bed', checkIfExists: true), | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("vcfs, bed - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = Channel.of([ | ||
[ id:'test' ], | ||
[ | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/gvcf/test.genome.vcf.gz', checkIfExists: true), | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/illumina/gvcf/test2.genome.vcf.gz', checkIfExists: true), | ||
] | ||
]) | ||
input[1] = [ | ||
[ id:'region' ], | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.bed', checkIfExists: true), | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).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,101 @@ | ||
{ | ||
"vcfs, bed - stub": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.bcf:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,dfeeb7f12f37cbef54a798614b83ffb0" | ||
], | ||
"bcf": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.bcf:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,dfeeb7f12f37cbef54a798614b83ffb0" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.0", | ||
"nextflow": "24.04.4" | ||
}, | ||
"timestamp": "2024-10-29T12:17:01.253378301" | ||
}, | ||
"vcfs, bed": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.bcf:md5,62b2cea9c1b92ac63645cb031eea46fc" | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,dfeeb7f12f37cbef54a798614b83ffb0" | ||
], | ||
"bcf": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.bcf:md5,62b2cea9c1b92ac63645cb031eea46fc" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,dfeeb7f12f37cbef54a798614b83ffb0" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.0", | ||
"nextflow": "24.04.4" | ||
}, | ||
"timestamp": "2024-10-29T12:16:53.859544065" | ||
}, | ||
"vcfs, []": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.bcf:md5,62b2cea9c1b92ac63645cb031eea46fc" | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,dfeeb7f12f37cbef54a798614b83ffb0" | ||
], | ||
"bcf": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.bcf:md5,62b2cea9c1b92ac63645cb031eea46fc" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,dfeeb7f12f37cbef54a798614b83ffb0" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.0", | ||
"nextflow": "24.04.4" | ||
}, | ||
"timestamp": "2024-10-29T12:13:03.068397129" | ||
} | ||
} |
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.