Skip to content

Commit

Permalink
Added nf-test for gatk4/condensedepthevidence (#6316)
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp authored Aug 26, 2024
1 parent 2098c3d commit f5bc694
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 44 deletions.
44 changes: 44 additions & 0 deletions modules/nf-core/gatk4/condensedepthevidence/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

nextflow_process {

name "Test Process GATK4_CONDENSEDEPTHEVIDENCE"
script "../main.nf"
process "GATK4_CONDENSEDEPTHEVIDENCE"

tag "modules"
tag "modules_nfcore"
tag "gatk4"
tag "gatk4/condensedepthevidence"

test("test-gatk4-condensdepthevidence") {

when {
process {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
file("https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/delete_me/condensedepthevidence/testN.rd.txt.gz", checkIfExists: true),
file("https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/delete_me/condensedepthevidence/testN.rd.txt.gz.tbi", checkIfExists: true)
]
input[1] = file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta', checkIfExists: true)
input[2] = file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta.fai', checkIfExists: true)
input[3] = file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.dict', checkIfExists: true)
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(
path(process.out.condensed_evidence[0][1]).linesGzip[0..1],
file(process.out.condensed_evidence_index[0][1]).name,
process.out.versions
).match()
}
)
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"test-gatk4-condensdepthevidence": {
"content": [
[
"#Chr\tStart\tEnd\ttestN",
"chr22\t0\t40001\t5642"
],
"test.rd.txt.gz.tbi",
[
"versions.yml:md5,d1d29007b92a10b3e50bdd25335013a8"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-26T12:33:21.910858"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,6 @@ gatk4/cnnscorevariants:
gatk4/collectsvevidence:
- modules/nf-core/gatk4/collectsvevidence/**
- tests/modules/nf-core/gatk4/collectsvevidence/**
gatk4/condensedepthevidence:
- modules/nf-core/gatk4/condensedepthevidence/**
- tests/modules/nf-core/gatk4/condensedepthevidence/**
gatk4/createreadcountpanelofnormals:
- modules/nf-core/gatk4/createreadcountpanelofnormals/**
- tests/modules/nf-core/gatk4/createreadcountpanelofnormals/**
Expand Down
25 changes: 0 additions & 25 deletions tests/modules/nf-core/gatk4/condensedepthevidence/main.nf

This file was deleted.

This file was deleted.

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

This file was deleted.

0 comments on commit f5bc694

Please sign in to comment.