Skip to content

Commit

Permalink
Added nf-test for gatk4/filterintervals
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Aug 26, 2024
1 parent 13b1571 commit 245f8b7
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 40 deletions.
38 changes: 38 additions & 0 deletions modules/nf-core/gatk4/filterintervals/tests/main.nf.test
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 modules/nf-core/gatk4/filterintervals/tests/main.nf.test.snap
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"
}
}
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"
}

}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,6 @@ gatk4/determinegermlinecontigploidy:
gatk4/fastqtosam:
- modules/nf-core/gatk4/fastqtosam/**
- tests/modules/nf-core/gatk4/fastqtosam/**
gatk4/filterintervals:
- modules/nf-core/gatk4/filterintervals/**
- tests/modules/nf-core/gatk4/filterintervals/**
gatk4/filtervarianttranches:
- modules/nf-core/gatk4/filtervarianttranches/**
- tests/modules/nf-core/gatk4/filtervarianttranches/**
Expand Down
17 changes: 0 additions & 17 deletions tests/modules/nf-core/gatk4/filterintervals/main.nf

This file was deleted.

16 changes: 0 additions & 16 deletions tests/modules/nf-core/gatk4/filterintervals/test.yml

This file was deleted.

0 comments on commit 245f8b7

Please sign in to comment.