diff --git a/modules/nf-core/gatk/realignertargetcreator/meta.yml b/modules/nf-core/gatk/realignertargetcreator/meta.yml index f7cf3c60f22..038b0007274 100644 --- a/modules/nf-core/gatk/realignertargetcreator/meta.yml +++ b/modules/nf-core/gatk/realignertargetcreator/meta.yml @@ -12,7 +12,12 @@ tools: description: "The full Genome Analysis Toolkit (GATK) framework, license restricted." homepage: "https://gatk.broadinstitute.org/hc/en-us" documentation: "https://github.com/broadinstitute/gatk-docs" - licence: "['https://software.broadinstitute.org/gatk/download/licensing', 'BSD', 'https://www.broadinstitute.org/gatk/about/#licensing']" + licence: + [ + "https://software.broadinstitute.org/gatk/download/licensing", + "BSD", + "https://www.broadinstitute.org/gatk/about/#licensing", + ] input: - meta: type: map diff --git a/modules/nf-core/gatk/realignertargetcreator/tests/main.nf.test b/modules/nf-core/gatk/realignertargetcreator/tests/main.nf.test new file mode 100644 index 00000000000..1b1098d00a2 --- /dev/null +++ b/modules/nf-core/gatk/realignertargetcreator/tests/main.nf.test @@ -0,0 +1,49 @@ + +nextflow_process { + + name "Test Process GATK_REALIGNERTARGETCREATOR" + script "../main.nf" + process "GATK_REALIGNERTARGETCREATOR" + + tag "modules" + tag "modules_nfcore" + tag "gatk" + tag "gatk/realignertargetcreator" + + test("test-gatk-realignertargetcreator") { + + 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] = [[],[]] + + """ + } + } + + then { + assertAll( + { assert process.success }, + { assert snapshot(process.out).match() } + ) + } + } + +} diff --git a/modules/nf-core/gatk/realignertargetcreator/tests/main.nf.test.snap b/modules/nf-core/gatk/realignertargetcreator/tests/main.nf.test.snap new file mode 100644 index 00000000000..b1997da42b0 --- /dev/null +++ b/modules/nf-core/gatk/realignertargetcreator/tests/main.nf.test.snap @@ -0,0 +1,35 @@ +{ + "test-gatk-realignertargetcreator": { + "content": [ + { + "0": [ + [ + { + "id": "test" + }, + "test.intervals:md5,7aa7a1b235a510e6591e262382086bf8" + ] + ], + "1": [ + "versions.yml:md5,8e3689fa858bbee27bc4967401565b64" + ], + "intervals": [ + [ + { + "id": "test" + }, + "test.intervals:md5,7aa7a1b235a510e6591e262382086bf8" + ] + ], + "versions": [ + "versions.yml:md5,8e3689fa858bbee27bc4967401565b64" + ] + } + ], + "meta": { + "nf-test": "0.8.4", + "nextflow": "24.04.4" + }, + "timestamp": "2024-08-21T17:47:50.043556" + } +} \ No newline at end of file diff --git a/tests/config/pytest_modules.yml b/tests/config/pytest_modules.yml index 89983665502..4fea05cc727 100644 --- a/tests/config/pytest_modules.yml +++ b/tests/config/pytest_modules.yml @@ -449,9 +449,6 @@ gappa/examineheattree: gatk/indelrealigner: - modules/nf-core/gatk/indelrealigner/** - tests/modules/nf-core/gatk/indelrealigner/** -gatk/realignertargetcreator: - - modules/nf-core/gatk/realignertargetcreator/** - - tests/modules/nf-core/gatk/realignertargetcreator/** gatk/unifiedgenotyper: - modules/nf-core/gatk/unifiedgenotyper/** - tests/modules/nf-core/gatk/unifiedgenotyper/** diff --git a/tests/modules/nf-core/gatk/realignertargetcreator/main.nf b/tests/modules/nf-core/gatk/realignertargetcreator/main.nf deleted file mode 100644 index 8eb4a27ab87..00000000000 --- a/tests/modules/nf-core/gatk/realignertargetcreator/main.nf +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env nextflow - -nextflow.enable.dsl = 2 - -include { GATK_REALIGNERTARGETCREATOR } from '../../../../../modules/nf-core/gatk/realignertargetcreator/main.nf' - -workflow test_gatk_realignertargetcreator { - - 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_REALIGNERTARGETCREATOR ( input, fasta, fai, dict, [[],[]] ) -} diff --git a/tests/modules/nf-core/gatk/realignertargetcreator/nextflow.config b/tests/modules/nf-core/gatk/realignertargetcreator/nextflow.config deleted file mode 100644 index 50f50a7a357..00000000000 --- a/tests/modules/nf-core/gatk/realignertargetcreator/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/realignertargetcreator/test.yml b/tests/modules/nf-core/gatk/realignertargetcreator/test.yml deleted file mode 100644 index 217833bc16a..00000000000 --- a/tests/modules/nf-core/gatk/realignertargetcreator/test.yml +++ /dev/null @@ -1,8 +0,0 @@ -- name: gatk realignertargetcreator test_gatk_realignertargetcreator - command: nextflow run ./tests/modules/nf-core/gatk/realignertargetcreator -entry test_gatk_realignertargetcreator -c ./tests/config/nextflow.config -c ./tests/modules/nf-core/gatk/realignertargetcreator/nextflow.config - tags: - - gatk - - gatk/realignertargetcreator - files: - - path: output/gatk/test.intervals - md5sum: 7aa7a1b235a510e6591e262382086bf8