-
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 gatk4/filterintervals
- Loading branch information
Showing
6 changed files
with
73 additions
and
40 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,38 @@ | ||
|
||
nextflow_process { | ||
|
||
name "Test Process GATK4_FILTERINTERVALS" | ||
script "../main.nf" | ||
process "GATK4_FILTERINTERVALS" | ||
config "./nextflow.config" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "gatk4" | ||
tag "gatk4/filterintervals" | ||
|
||
test("test-gatk4-filterintervals") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test' ], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.preprocessed_intervals.interval_list', checkIfExists: true) | ||
] | ||
input[1] = [ [:], [ file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.preprocessed_intervals.counts.tsv', checkIfExists: true) ] ] | ||
input[2] = [ [:], file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.annotated_intervals.tsv', checkIfExists: true) ] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
} | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
modules/nf-core/gatk4/filterintervals/tests/main.nf.test.snap
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,35 @@ | ||
{ | ||
"test-gatk4-filterintervals": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.interval_list:md5,67b15dff732693db3542e6b1dc30a5da" | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,9a445090a815c06982d5deb5ed7d5e30" | ||
], | ||
"interval_list": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
"test.interval_list:md5,67b15dff732693db3542e6b1dc30a5da" | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,9a445090a815c06982d5deb5ed7d5e30" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.04.4" | ||
}, | ||
"timestamp": "2024-08-26T12:25:35.933532" | ||
} | ||
} |
4 changes: 0 additions & 4 deletions
4
...ore/gatk4/filterintervals/nextflow.config → ...tk4/filterintervals/tests/nextflow.config
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 |
---|---|---|
@@ -1,9 +1,5 @@ | ||
process { | ||
|
||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } | ||
|
||
withName: GATK4_FILTERINTERVALS { | ||
ext.args = "--interval-merging-rule OVERLAPPING_ONLY" | ||
} | ||
|
||
} |
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.