diff --git a/modules/nf-core/gatk/unifiedgenotyper/tests/main.nf.test b/modules/nf-core/gatk/unifiedgenotyper/tests/main.nf.test new file mode 100644 index 00000000000..8d22aabdcfc --- /dev/null +++ b/modules/nf-core/gatk/unifiedgenotyper/tests/main.nf.test @@ -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() + } + ) + } + } + +} diff --git a/modules/nf-core/gatk/unifiedgenotyper/tests/main.nf.test.snap b/modules/nf-core/gatk/unifiedgenotyper/tests/main.nf.test.snap new file mode 100644 index 00000000000..51c93dc5e63 --- /dev/null +++ b/modules/nf-core/gatk/unifiedgenotyper/tests/main.nf.test.snap @@ -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" + } +} \ No newline at end of file diff --git a/tests/config/pytest_modules.yml b/tests/config/pytest_modules.yml index 82bf2d7898a..fbd6d7b498d 100644 --- a/tests/config/pytest_modules.yml +++ b/tests/config/pytest_modules.yml @@ -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/** diff --git a/tests/modules/nf-core/gatk/unifiedgenotyper/main.nf b/tests/modules/nf-core/gatk/unifiedgenotyper/main.nf deleted file mode 100644 index b308871657b..00000000000 --- a/tests/modules/nf-core/gatk/unifiedgenotyper/main.nf +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env nextflow - -nextflow.enable.dsl = 2 - -include { GATK_UNIFIEDGENOTYPER } from '../../../../../modules/nf-core/gatk/unifiedgenotyper/main.nf' - -workflow test_gatk_unifiedgenotyper { - - input = [ - [ id:'test' ], // meta map - file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true), - file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam_bai'], checkIfExists: true), - ] - fasta = [ - [id: 'test'], - file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true) - ] - fai = [ - [id: 'test'], - file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true) - ] - dict = [ - [id: 'test'], - file(params.test_data['sarscov2']['genome']['genome_dict'], checkIfExists: true) - ] - - GATK_UNIFIEDGENOTYPER ( input, fasta, fai, dict, [[],[]], [[],[]], [[],[]], [[],[]]) -} diff --git a/tests/modules/nf-core/gatk/unifiedgenotyper/nextflow.config b/tests/modules/nf-core/gatk/unifiedgenotyper/nextflow.config deleted file mode 100644 index 50f50a7a357..00000000000 --- a/tests/modules/nf-core/gatk/unifiedgenotyper/nextflow.config +++ /dev/null @@ -1,5 +0,0 @@ -process { - - publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } - -} \ No newline at end of file diff --git a/tests/modules/nf-core/gatk/unifiedgenotyper/test.yml b/tests/modules/nf-core/gatk/unifiedgenotyper/test.yml deleted file mode 100644 index 9350e5a6af6..00000000000 --- a/tests/modules/nf-core/gatk/unifiedgenotyper/test.yml +++ /dev/null @@ -1,9 +0,0 @@ -- name: gatk unifiedgenotyper test_gatk_unifiedgenotyper - command: nextflow run ./tests/modules/nf-core/gatk/unifiedgenotyper -entry test_gatk_unifiedgenotyper -c ./tests/config/nextflow.config -c ./tests/modules/nf-core/gatk/unifiedgenotyper/nextflow.config - tags: - - gatk - - gatk/unifiedgenotyper - files: - - path: output/gatk/test.vcf.gz - contains: - - "#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT test"