Skip to content

Commit

Permalink
Added nf-test for gatk/unifiedgenotyper (#6322)
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp authored Aug 26, 2024
1 parent 821fa4c commit aeaa1d7
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 45 deletions.
56 changes: 56 additions & 0 deletions modules/nf-core/gatk/unifiedgenotyper/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@

nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "gatk"
tag "gatk/unifiedgenotyper"

test("test-gatk-unifiedgenotyper") {

when {
process {
"""
input[0] = [
[ id:'test' ], // meta map
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam', checkIfExists: true),
file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam.bai', checkIfExists: true),
]
input[1] = [
[id: 'test'],
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true)
]
input[2] = [
[id: 'test'],
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta.fai', checkIfExists: true)
]
input[3] = [
[id: 'test'],
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.dict', checkIfExists: true)
]
input[4] = [[],[]]
input[5] = [[],[]]
input[6] = [[],[]]
input[7] = [[],[]]
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(
path(process.out.vcf[0][1]).vcf.variantsMD5,
process.out.versions
).match()
}
)
}
}

}
15 changes: 15 additions & 0 deletions modules/nf-core/gatk/unifiedgenotyper/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"test-gatk-unifiedgenotyper": {
"content": [
"577c77d9323f6256931a6846eaac3f40",
[
"versions.yml:md5,f0dfc5a0252a665c12a2b27444f73e67"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-26T13:30:01.119639"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,6 @@ gappa/examineheattree:
gatk/indelrealigner:
- modules/nf-core/gatk/indelrealigner/**
- tests/modules/nf-core/gatk/indelrealigner/**
gatk/unifiedgenotyper:
- modules/nf-core/gatk/unifiedgenotyper/**
- tests/modules/nf-core/gatk/unifiedgenotyper/**
gatk4/calibratedragstrmodel:
- modules/nf-core/gatk4/calibratedragstrmodel/**
- tests/modules/nf-core/gatk4/calibratedragstrmodel/**
Expand Down
28 changes: 0 additions & 28 deletions tests/modules/nf-core/gatk/unifiedgenotyper/main.nf

This file was deleted.

5 changes: 0 additions & 5 deletions tests/modules/nf-core/gatk/unifiedgenotyper/nextflow.config

This file was deleted.

9 changes: 0 additions & 9 deletions tests/modules/nf-core/gatk/unifiedgenotyper/test.yml

This file was deleted.

0 comments on commit aeaa1d7

Please sign in to comment.