-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dragmap + add nf-test (#4379)
* new module picard/scatterintervalsbyns * update annotsv to 3.3.6 * update installannotations * update dragmap modules + add nf-test * fix singularity container * add human test + stubs * fix tests * update mulled containers + conda env * fix tests * chore: Remove pytest-workflow tests --------- Co-authored-by: Edmund Miller <[email protected]>
- Loading branch information
1 parent
9b1b7a7
commit 8f0bec8
Showing
16 changed files
with
483 additions
and
170 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,276 @@ | ||
nextflow_process { | ||
|
||
name "Test Process DRAGMAP_ALIGN" | ||
script "../main.nf" | ||
process "DRAGMAP_ALIGN" | ||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "dragmap" | ||
tag "dragmap/align" | ||
|
||
test("sarscov2 - fastq, hashtable, false") { | ||
|
||
setup { | ||
run("DRAGMAP_HASHTABLE") { | ||
script "../../hashtable/main.nf" | ||
process { | ||
""" | ||
input[0] = [ | ||
[id:'test'], | ||
file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:true ], // meta map | ||
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true) | ||
] | ||
input[1] = DRAGMAP_HASHTABLE.out.hashmap | ||
input[2] = false //sort | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
file(process.out.bam[0][1]).name, | ||
file(process.out.log[0][1]).readLines().findAll { it.startsWith("decompHash") }, | ||
file(process.out.versions[0]).name | ||
).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - fastq, hashtable, true") { | ||
|
||
setup { | ||
run("DRAGMAP_HASHTABLE") { | ||
script "../../hashtable/main.nf" | ||
process { | ||
""" | ||
input[0] = [ | ||
[id:'test'], | ||
file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:true ], // meta map | ||
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true) | ||
] | ||
input[1] = DRAGMAP_HASHTABLE.out.hashmap | ||
input[2] = true //sort | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
file(process.out.bam[0][1]).name, | ||
file(process.out.log[0][1]).readLines().findAll { it.startsWith("decompHash") }, | ||
file(process.out.versions[0]).name | ||
).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - [fastq1, fastq2], hashtable, false") { | ||
|
||
setup { | ||
run("DRAGMAP_HASHTABLE") { | ||
script "../../hashtable/main.nf" | ||
process { | ||
""" | ||
input[0] = [ | ||
[id:'test'], | ||
file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:false ], // meta map | ||
[ | ||
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true), | ||
file(params.test_data['sarscov2']['illumina']['test_2_fastq_gz'], checkIfExists: true) | ||
] | ||
] | ||
input[1] = DRAGMAP_HASHTABLE.out.hashmap | ||
input[2] = false //sort | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
file(process.out.bam[0][1]).name, | ||
file(process.out.log[0][1]).readLines().findAll { it.startsWith("decompHash") }, | ||
file(process.out.versions[0]).name | ||
).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - [fastq1, fastq2], hashtable, true") { | ||
|
||
setup { | ||
run("DRAGMAP_HASHTABLE") { | ||
script "../../hashtable/main.nf" | ||
process { | ||
""" | ||
input[0] = [ | ||
[id:'test'], | ||
file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:false ], // meta map | ||
[ | ||
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true), | ||
file(params.test_data['sarscov2']['illumina']['test_2_fastq_gz'], checkIfExists: true) | ||
] | ||
] | ||
input[1] = DRAGMAP_HASHTABLE.out.hashmap | ||
input[2] = true //sort | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
file(process.out.bam[0][1]).name, | ||
file(process.out.log[0][1]).readLines().findAll { it.startsWith("decompHash") }, | ||
file(process.out.versions[0]).name | ||
).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("homo_sapiens - [fastq1, fastq2], hashtable, true") { | ||
|
||
setup { | ||
run("DRAGMAP_HASHTABLE") { | ||
script "../../hashtable/main.nf" | ||
process { | ||
""" | ||
input[0] = [ | ||
[id:'test'], | ||
file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:false ], // meta map | ||
[ | ||
file(params.test_data['homo_sapiens']['illumina']['test_1_fastq_gz'], checkIfExists: true), | ||
file(params.test_data['homo_sapiens']['illumina']['test_2_fastq_gz'], checkIfExists: true) | ||
] | ||
] | ||
input[1] = DRAGMAP_HASHTABLE.out.hashmap | ||
input[2] = true //sort | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
file(process.out.bam[0][1]).name, | ||
file(process.out.log[0][1]).readLines().findAll { it.startsWith("decompHash") }, | ||
file(process.out.versions[0]).name | ||
).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - [fastq1, fastq2], hashtable, true - stub") { | ||
|
||
options "-stub" | ||
setup { | ||
run("DRAGMAP_HASHTABLE") { | ||
script "../../hashtable/main.nf" | ||
process { | ||
""" | ||
input[0] = [ | ||
[id:'test'], | ||
file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
} | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test', single_end:false ], // meta map | ||
[ | ||
file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true), | ||
file(params.test_data['sarscov2']['illumina']['test_2_fastq_gz'], checkIfExists: true) | ||
] | ||
] | ||
input[1] = DRAGMAP_HASHTABLE.out.hashmap | ||
input[2] = true //sort | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll ( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
file(process.out.bam[0][1]).name, | ||
file(process.out.log[0][1]).name, | ||
file(process.out.versions[0]).name | ||
).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.