Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nf-test for biscuit/bsconv (#4493)
* Add nf-test for biscuit/bsconv * Add stub and stub test --------- Co-authored-by: Simon Pearce <24893913+SPPearce@users.noreply.github.com>
- Loading branch information
1 parent
2a2b13f
commit 606a549
Showing
9 changed files
with
161 additions
and
58 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,75 @@ | ||
nextflow_process { | ||
|
||
name "Test Process BISCUIT_BSCONV" | ||
script "../main.nf" | ||
process "BISCUIT_BSCONV" | ||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "biscuit" | ||
tag "biscuit/bsconv" | ||
tag "biscuit/index" | ||
|
||
|
||
setup { | ||
run("BISCUIT_INDEX") { | ||
script "../../index/main.nf" | ||
process { | ||
""" | ||
input[0] = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true) | ||
""" | ||
} | ||
} | ||
} | ||
|
||
test("sarscov2-pe - bam") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ [id:'test', single_end:false ], // meta map | ||
file(params.test_data['sarscov2']['illumina']['test_paired_end_methylated_sorted_bam'], checkIfExists: true), | ||
file(params.test_data['sarscov2']['illumina']['test_paired_end_methylated_sorted_bam_bai'], checkIfExists: true) | ||
] | ||
input[1] = BISCUIT_INDEX.out.index | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out.bsconv_bam).match("bsconv_bam") }, | ||
{ assert snapshot(process.out.versions).match("versions") } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2-pe - bam - stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ [id:'test', single_end:false ], // meta map | ||
file(params.test_data['sarscov2']['illumina']['test_paired_end_methylated_sorted_bam'], checkIfExists: true), | ||
file(params.test_data['sarscov2']['illumina']['test_paired_end_methylated_sorted_bam_bai'], checkIfExists: true) | ||
] | ||
input[1] = BISCUIT_INDEX.out.index | ||
""" | ||
} | ||
} | ||
|
||
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,67 @@ | ||
{ | ||
"versions": { | ||
"content": [ | ||
[ | ||
"versions.yml:md5,45455cc9522a3235fa482ad065a242b3" | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.10.1" | ||
}, | ||
"timestamp": "2024-05-07T15:28:04.601734997" | ||
}, | ||
"sarscov2-pe - bam - stub": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.bam:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,45455cc9522a3235fa482ad065a242b3" | ||
], | ||
"bsconv_bam": [ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.bam:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,45455cc9522a3235fa482ad065a242b3" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.10.1" | ||
}, | ||
"timestamp": "2024-05-07T15:28:14.729945289" | ||
}, | ||
"bsconv_bam": { | ||
"content": [ | ||
[ | ||
[ | ||
{ | ||
"id": "test", | ||
"single_end": false | ||
}, | ||
"test.bam:md5,0d425851bd18963ebf1b6d727a7d02c7" | ||
] | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.10.1" | ||
}, | ||
"timestamp": "2024-05-07T15:28:04.580771449" | ||
} | ||
} |
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 @@ | ||
biscuit/bsconv: | ||
- "modules/nf-core/biscuit/bsconv/**" |
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.