diff --git a/modules/nf-core/manta/convertinversion/environment.yml b/modules/nf-core/manta/convertinversion/environment.yml index aea4fa239f7e..4211a97b45bf 100644 --- a/modules/nf-core/manta/convertinversion/environment.yml +++ b/modules/nf-core/manta/convertinversion/environment.yml @@ -4,7 +4,7 @@ channels: - conda-forge - bioconda dependencies: - - conda-forge::python=2.7.15 - - bioconda::manta=1.6.0 - bioconda::htslib=1.16 + - bioconda::manta=1.6.0 - bioconda::samtools=1.16.1 + - conda-forge::python=2.7.15 diff --git a/modules/nf-core/manta/convertinversion/main.nf b/modules/nf-core/manta/convertinversion/main.nf index 4bc2d152e669..63ec8fca16a1 100644 --- a/modules/nf-core/manta/convertinversion/main.nf +++ b/modules/nf-core/manta/convertinversion/main.nf @@ -15,7 +15,8 @@ process MANTA_CONVERTINVERSION { output: tuple val(meta), path("*.vcf.gz") , emit: vcf tuple val(meta), path("*.vcf.gz.tbi"), emit: tbi - path "versions.yml" , emit: versions + tuple val("${task.process}"), val("manta"), eval("configManta.py --version"), topic: versions, emit: versions_manta + tuple val("${task.process}"), val("samtools"), eval("samtools --version | head -1 | sed -e s'/samtools //'"), topic: versions, emit: versions_samtools when: task.ext.when == null || task.ext.when @@ -25,12 +26,6 @@ process MANTA_CONVERTINVERSION { """ convertInversion.py \$(which samtools) $fasta $vcf | bgzip --threads $task.cpus > ${prefix}.vcf.gz tabix ${prefix}.vcf.gz - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - manta: \$( configManta.py --version ) - samtools: \$(echo \$(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*\$//' ) - END_VERSIONS """ stub: @@ -38,11 +33,5 @@ process MANTA_CONVERTINVERSION { """ echo "" | gzip > ${prefix}.vcf.gz touch ${prefix}.vcf.gz.tbi - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - manta: \$( configManta.py --version ) - samtools: \$(echo \$(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*\$//' ) - END_VERSIONS """ } diff --git a/modules/nf-core/manta/convertinversion/meta.yml b/modules/nf-core/manta/convertinversion/meta.yml index 33254b4f6abe..330016f2643f 100644 --- a/modules/nf-core/manta/convertinversion/meta.yml +++ b/modules/nf-core/manta/convertinversion/meta.yml @@ -61,13 +61,48 @@ output: description: TBI file produces by Manta pattern: "*.vcf.gz.tbi" ontologies: [] + versions_manta: + - - ${task.process}: + type: string + description: The name of the process + - manta: + type: string + description: The name of the tool + - configManta.py --version: + type: eval + description: The expression to obtain the version of the tool + versions_samtools: + - - ${task.process}: + type: string + description: The name of the process + - samtools: + type: string + description: The name of the tool + - samtools --version | head -1 | sed -e s'/samtools //': + type: eval + description: The expression to obtain the version of the tool + +topics: versions: - - versions.yml: - type: file - description: File containing software versions - pattern: "versions.yml" - ontologies: - - edam: http://edamontology.org/format_3750 # YAML + - - ${task.process}: + type: string + description: The name of the process + - manta: + type: string + description: The name of the tool + - configManta.py --version: + type: eval + description: The expression to obtain the version of the tool + - - ${task.process}: + type: string + description: The name of the process + - samtools: + type: string + description: The name of the tool + - samtools --version | head -1 | sed -e s'/samtools //': + type: eval + description: The expression to obtain the version of the tool + authors: - "@FriederikeHanssen" maintainers: diff --git a/modules/nf-core/manta/convertinversion/tests/main.nf.test b/modules/nf-core/manta/convertinversion/tests/main.nf.test index 58adf6e3ad13..ec4b9e17397c 100644 --- a/modules/nf-core/manta/convertinversion/tests/main.nf.test +++ b/modules/nf-core/manta/convertinversion/tests/main.nf.test @@ -57,7 +57,7 @@ nextflow_process { { assert snapshot( process.out.vcf.collect { it.collect { it instanceof Map ? it : path(it).linesGzip[-7..-3] } }, process.out.tbi.collect { it.collect { it instanceof Map ? it : file(it).name } }, - process.out.versions + process.out.findAll { key, val -> key.startsWith("versions_") } ).match() } ) } diff --git a/modules/nf-core/manta/convertinversion/tests/main.nf.test.snap b/modules/nf-core/manta/convertinversion/tests/main.nf.test.snap index 966dfa86149d..ca0548d4cfbd 100644 --- a/modules/nf-core/manta/convertinversion/tests/main.nf.test.snap +++ b/modules/nf-core/manta/convertinversion/tests/main.nf.test.snap @@ -19,7 +19,18 @@ ] ], "2": [ - "versions.yml:md5,d9a3c2c54bad36a8310d42eae3d57801" + [ + "MANTA_CONVERTINVERSION", + "manta", + "1.6.0" + ] + ], + "3": [ + [ + "MANTA_CONVERTINVERSION", + "samtools", + "1.16.1" + ] ], "tbi": [ [ @@ -37,16 +48,27 @@ "test.vcf.gz:md5,68b329da9893e34099c7d8ad5cb9c940" ] ], - "versions": [ - "versions.yml:md5,d9a3c2c54bad36a8310d42eae3d57801" + "versions_manta": [ + [ + "MANTA_CONVERTINVERSION", + "manta", + "1.6.0" + ] + ], + "versions_samtools": [ + [ + "MANTA_CONVERTINVERSION", + "samtools", + "1.16.1" + ] ] } ], "meta": { - "nf-test": "0.8.4", - "nextflow": "24.03.0" + "nf-test": "0.9.2", + "nextflow": "25.04.6" }, - "timestamp": "2024-05-06T10:26:25.996091364" + "timestamp": "2025-12-11T16:58:38.212888433" }, "homo_sapiens - vcf, fasta": { "content": [ @@ -72,14 +94,27 @@ "test.vcf.gz.tbi" ] ], - [ - "versions.yml:md5,d9a3c2c54bad36a8310d42eae3d57801" - ] + { + "versions_manta": [ + [ + "MANTA_CONVERTINVERSION", + "manta", + "1.6.0" + ] + ], + "versions_samtools": [ + [ + "MANTA_CONVERTINVERSION", + "samtools", + "1.16.1" + ] + ] + } ], "meta": { "nf-test": "0.9.2", - "nextflow": "25.04.7" + "nextflow": "25.04.6" }, - "timestamp": "2025-09-17T09:41:08.582282" + "timestamp": "2025-12-11T17:02:58.806373235" } } \ No newline at end of file diff --git a/modules/nf-core/manta/germline/environment.yml b/modules/nf-core/manta/germline/environment.yml index 3804c07f421e..697c36d1c8b6 100644 --- a/modules/nf-core/manta/germline/environment.yml +++ b/modules/nf-core/manta/germline/environment.yml @@ -4,5 +4,5 @@ channels: - conda-forge - bioconda dependencies: - - conda-forge::python=2.7.15 - bioconda::manta=1.6.0 + - conda-forge::python=2.7.15 diff --git a/modules/nf-core/manta/germline/main.nf b/modules/nf-core/manta/germline/main.nf index 0fad64f31ee5..c1550f5c615e 100644 --- a/modules/nf-core/manta/germline/main.nf +++ b/modules/nf-core/manta/germline/main.nf @@ -16,13 +16,13 @@ process MANTA_GERMLINE { path(config) output: - tuple val(meta), path("*candidate_small_indels.vcf.gz") , emit: candidate_small_indels_vcf - tuple val(meta), path("*candidate_small_indels.vcf.gz.tbi"), emit: candidate_small_indels_vcf_tbi - tuple val(meta), path("*candidate_sv.vcf.gz") , emit: candidate_sv_vcf - tuple val(meta), path("*candidate_sv.vcf.gz.tbi") , emit: candidate_sv_vcf_tbi - tuple val(meta), path("*diploid_sv.vcf.gz") , emit: diploid_sv_vcf - tuple val(meta), path("*diploid_sv.vcf.gz.tbi") , emit: diploid_sv_vcf_tbi - path "versions.yml" , emit: versions + tuple val(meta), path("*candidate_small_indels.vcf.gz") , emit: candidate_small_indels_vcf + tuple val(meta), path("*candidate_small_indels.vcf.gz.tbi") , emit: candidate_small_indels_vcf_tbi + tuple val(meta), path("*candidate_sv.vcf.gz") , emit: candidate_sv_vcf + tuple val(meta), path("*candidate_sv.vcf.gz.tbi") , emit: candidate_sv_vcf_tbi + tuple val(meta), path("*diploid_sv.vcf.gz") , emit: diploid_sv_vcf + tuple val(meta), path("*diploid_sv.vcf.gz.tbi") , emit: diploid_sv_vcf_tbi + tuple val("${task.process}"), val("manta"), eval("configManta.py --version"), topic: versions, emit: versions_manta when: task.ext.when == null || task.ext.when @@ -30,7 +30,7 @@ process MANTA_GERMLINE { script: def args = task.ext.args ?: '' def prefix = task.ext.prefix ?: "${meta.id}" - def input_files = input.collect{"--bam ${it}"}.join(' ') + def input_files = input.collect{ bam -> "--bam ${bam}"}.join(' ') def options_manta = target_bed ? "--callRegions $target_bed" : "" def config_option = config ? "--config ${config}" : "" """ @@ -56,11 +56,6 @@ process MANTA_GERMLINE { ${prefix}.diploid_sv.vcf.gz mv manta/results/variants/diploidSV.vcf.gz.tbi \\ ${prefix}.diploid_sv.vcf.gz.tbi - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - manta: \$( configManta.py --version ) - END_VERSIONS """ stub: @@ -72,10 +67,5 @@ process MANTA_GERMLINE { touch ${prefix}.candidate_sv.vcf.gz.tbi echo "" | gzip > ${prefix}.diploid_sv.vcf.gz touch ${prefix}.diploid_sv.vcf.gz.tbi - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - manta: \$( configManta.py --version ) - END_VERSIONS """ } diff --git a/modules/nf-core/manta/germline/meta.yml b/modules/nf-core/manta/germline/meta.yml index 9774e1a05906..83ff420b88d2 100644 --- a/modules/nf-core/manta/germline/meta.yml +++ b/modules/nf-core/manta/germline/meta.yml @@ -137,13 +137,29 @@ output: description: Index for gzipped VCF file containing variants pattern: "*.{vcf.gz.tbi}" ontologies: [] + versions_manta: + - - ${task.process}: + type: string + description: The name of the process + - manta: + type: string + description: The name of the tool + - configManta.py --version: + type: eval + description: The expression to obtain the version of the tool + +topics: versions: - - versions.yml: - type: file - description: File containing software versions - pattern: "versions.yml" - ontologies: - - edam: http://edamontology.org/format_3750 # YAML + - - ${task.process}: + type: string + description: The name of the process + - manta: + type: string + description: The name of the tool + - configManta.py --version: + type: eval + description: The expression to obtain the version of the tool + authors: - "@maxulysse" - "@ramprasadn" diff --git a/modules/nf-core/manta/germline/tests/main.nf.test b/modules/nf-core/manta/germline/tests/main.nf.test index b7c7e7d272ac..cfae4b3d69f9 100644 --- a/modules/nf-core/manta/germline/tests/main.nf.test +++ b/modules/nf-core/manta/germline/tests/main.nf.test @@ -42,7 +42,7 @@ nextflow_process { path(process.out.candidate_small_indels_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), path(process.out.candidate_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), path(process.out.diploid_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), - process.out.versions + process.out.findAll { key, val -> key.startsWith("versions_") } ).match() } ) } @@ -81,7 +81,7 @@ nextflow_process { path(process.out.candidate_small_indels_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), path(process.out.candidate_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), path(process.out.diploid_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), - process.out.versions + process.out.findAll { key, val -> key.startsWith("versions_") } ).match() } ) } @@ -124,7 +124,7 @@ nextflow_process { path(process.out.candidate_small_indels_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), path(process.out.candidate_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), path(process.out.diploid_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), - process.out.versions + process.out.findAll { key, val -> key.startsWith("versions_") } ).match() } ) } diff --git a/modules/nf-core/manta/germline/tests/main.nf.test.snap b/modules/nf-core/manta/germline/tests/main.nf.test.snap index 7ec07b9ec1a2..1b23abf612ac 100644 --- a/modules/nf-core/manta/germline/tests/main.nf.test.snap +++ b/modules/nf-core/manta/germline/tests/main.nf.test.snap @@ -51,7 +51,11 @@ ] ], "6": [ - "versions.yml:md5,18070b443a26855ef64dafa179dfba01" + [ + "MANTA_GERMLINE", + "manta", + "1.6.0" + ] ], "candidate_small_indels_vcf": [ [ @@ -101,60 +105,82 @@ "test.diploid_sv.vcf.gz.tbi:md5,d41d8cd98f00b204e9800998ecf8427e" ] ], - "versions": [ - "versions.yml:md5,18070b443a26855ef64dafa179dfba01" + "versions_manta": [ + [ + "MANTA_GERMLINE", + "manta", + "1.6.0" + ] ] } ], "meta": { - "nf-test": "0.8.4", - "nextflow": "23.10.0" + "nf-test": "0.9.2", + "nextflow": "25.04.6" }, - "timestamp": "2024-03-21T17:54:09.788372" + "timestamp": "2025-12-11T16:30:33.370543407" }, "human - cram": { "content": [ true, true, true, - [ - "versions.yml:md5,18070b443a26855ef64dafa179dfba01" - ] + { + "versions_manta": [ + [ + "MANTA_GERMLINE", + "manta", + "1.6.0" + ] + ] + } ], "meta": { "nf-test": "0.9.2", - "nextflow": "25.04.7" + "nextflow": "25.04.6" }, - "timestamp": "2025-09-17T10:31:11.495269" + "timestamp": "2025-12-11T16:43:35.235895962" }, "human - cram - bed": { "content": [ true, true, true, - [ - "versions.yml:md5,18070b443a26855ef64dafa179dfba01" - ] + { + "versions_manta": [ + [ + "MANTA_GERMLINE", + "manta", + "1.6.0" + ] + ] + } ], "meta": { "nf-test": "0.9.2", - "nextflow": "25.04.7" + "nextflow": "25.04.6" }, - "timestamp": "2025-09-17T10:31:36.335713" + "timestamp": "2025-12-11T16:43:45.131664257" }, "human - cram - bed - jointcalling": { "content": [ true, true, true, - [ - "versions.yml:md5,18070b443a26855ef64dafa179dfba01" - ] + { + "versions_manta": [ + [ + "MANTA_GERMLINE", + "manta", + "1.6.0" + ] + ] + } ], "meta": { "nf-test": "0.9.2", - "nextflow": "25.04.7" + "nextflow": "25.04.6" }, - "timestamp": "2025-09-17T10:32:02.222735" + "timestamp": "2025-12-11T16:43:55.610167195" } } \ No newline at end of file diff --git a/modules/nf-core/manta/somatic/environment.yml b/modules/nf-core/manta/somatic/environment.yml index 3804c07f421e..697c36d1c8b6 100644 --- a/modules/nf-core/manta/somatic/environment.yml +++ b/modules/nf-core/manta/somatic/environment.yml @@ -4,5 +4,5 @@ channels: - conda-forge - bioconda dependencies: - - conda-forge::python=2.7.15 - bioconda::manta=1.6.0 + - conda-forge::python=2.7.15 diff --git a/modules/nf-core/manta/somatic/main.nf b/modules/nf-core/manta/somatic/main.nf index 317e3f484e4d..dcb4210339c6 100644 --- a/modules/nf-core/manta/somatic/main.nf +++ b/modules/nf-core/manta/somatic/main.nf @@ -23,7 +23,7 @@ process MANTA_SOMATIC { tuple val(meta), path("*.diploid_sv.vcf.gz.tbi") , emit: diploid_sv_vcf_tbi tuple val(meta), path("*.somatic_sv.vcf.gz") , emit: somatic_sv_vcf tuple val(meta), path("*.somatic_sv.vcf.gz.tbi") , emit: somatic_sv_vcf_tbi - path "versions.yml" , emit: versions + tuple val("${task.process}"), val("manta"), eval("configManta.py --version"), topic: versions, emit: versions_manta when: task.ext.when == null || task.ext.when @@ -61,11 +61,6 @@ process MANTA_SOMATIC { ${prefix}.somatic_sv.vcf.gz mv manta/results/variants/somaticSV.vcf.gz.tbi \\ ${prefix}.somatic_sv.vcf.gz.tbi - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - manta: \$( configManta.py --version ) - END_VERSIONS """ stub: @@ -79,10 +74,5 @@ process MANTA_SOMATIC { touch ${prefix}.diploid_sv.vcf.gz.tbi echo "" | gzip > ${prefix}.somatic_sv.vcf.gz touch ${prefix}.somatic_sv.vcf.gz.tbi - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - manta: \$( configManta.py --version ) - END_VERSIONS """ } diff --git a/modules/nf-core/manta/somatic/meta.yml b/modules/nf-core/manta/somatic/meta.yml index 3d619dd58651..048c1342cd83 100644 --- a/modules/nf-core/manta/somatic/meta.yml +++ b/modules/nf-core/manta/somatic/meta.yml @@ -169,13 +169,29 @@ output: description: Index for gzipped VCF file containing variants pattern: "*.{vcf.gz.tbi}" ontologies: [] + versions_manta: + - - ${task.process}: + type: string + description: The name of the process + - manta: + type: string + description: The name of the tool + - configManta.py --version: + type: eval + description: The expression to obtain the version of the tool + +topics: versions: - - versions.yml: - type: file - description: File containing software versions - pattern: "versions.yml" - ontologies: - - edam: http://edamontology.org/format_3750 # YAML + - - ${task.process}: + type: string + description: The name of the process + - manta: + type: string + description: The name of the tool + - configManta.py --version: + type: eval + description: The expression to obtain the version of the tool + authors: - "@FriederikeHanssen" - "@nvnieuwk" diff --git a/modules/nf-core/manta/somatic/tests/main.nf.test b/modules/nf-core/manta/somatic/tests/main.nf.test index f5b382e333b3..e9ebbd2edbac 100644 --- a/modules/nf-core/manta/somatic/tests/main.nf.test +++ b/modules/nf-core/manta/somatic/tests/main.nf.test @@ -41,7 +41,7 @@ nextflow_process { path(process.out.candidate_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), path(process.out.diploid_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), path(process.out.somatic_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), - process.out.versions + process.out.findAll { key, val -> key.startsWith("versions_") } ).match() } ) } @@ -80,7 +80,7 @@ nextflow_process { path(process.out.candidate_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), path(process.out.diploid_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), path(process.out.somatic_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), - process.out.versions + process.out.findAll { key, val -> key.startsWith("versions_") } ).match() } ) } diff --git a/modules/nf-core/manta/somatic/tests/main.nf.test.snap b/modules/nf-core/manta/somatic/tests/main.nf.test.snap index 30b191a405e6..405851e99e8a 100644 --- a/modules/nf-core/manta/somatic/tests/main.nf.test.snap +++ b/modules/nf-core/manta/somatic/tests/main.nf.test.snap @@ -75,7 +75,11 @@ ] ], "8": [ - "versions.yml:md5,816f991f1d88cadebdeff97b0b676932" + [ + "MANTA_SOMATIC", + "manta", + "1.6.0" + ] ], "candidate_small_indels_vcf": [ [ @@ -149,16 +153,20 @@ "test.somatic_sv.vcf.gz.tbi:md5,d41d8cd98f00b204e9800998ecf8427e" ] ], - "versions": [ - "versions.yml:md5,816f991f1d88cadebdeff97b0b676932" + "versions_manta": [ + [ + "MANTA_SOMATIC", + "manta", + "1.6.0" + ] ] } ], "meta": { - "nf-test": "0.8.4", - "nextflow": "23.10.1" + "nf-test": "0.9.2", + "nextflow": "25.04.6" }, - "timestamp": "2024-03-20T13:15:58.471602141" + "timestamp": "2025-12-11T17:08:29.704950028" }, "human - cram": { "content": [ @@ -166,15 +174,21 @@ true, true, true, - [ - "versions.yml:md5,816f991f1d88cadebdeff97b0b676932" - ] + { + "versions_manta": [ + [ + "MANTA_SOMATIC", + "manta", + "1.6.0" + ] + ] + } ], "meta": { "nf-test": "0.9.2", - "nextflow": "25.04.7" + "nextflow": "25.04.6" }, - "timestamp": "2025-09-17T10:21:45.236636" + "timestamp": "2025-12-11T17:07:29.811639047" }, "human - cram - bed": { "content": [ @@ -182,14 +196,20 @@ true, true, true, - [ - "versions.yml:md5,816f991f1d88cadebdeff97b0b676932" - ] + { + "versions_manta": [ + [ + "MANTA_SOMATIC", + "manta", + "1.6.0" + ] + ] + } ], "meta": { "nf-test": "0.9.2", - "nextflow": "25.04.7" + "nextflow": "25.04.6" }, - "timestamp": "2025-09-17T10:22:29.637256" + "timestamp": "2025-12-11T17:08:05.522774668" } } \ No newline at end of file diff --git a/modules/nf-core/manta/tumoronly/environment.yml b/modules/nf-core/manta/tumoronly/environment.yml index 3804c07f421e..697c36d1c8b6 100644 --- a/modules/nf-core/manta/tumoronly/environment.yml +++ b/modules/nf-core/manta/tumoronly/environment.yml @@ -4,5 +4,5 @@ channels: - conda-forge - bioconda dependencies: - - conda-forge::python=2.7.15 - bioconda::manta=1.6.0 + - conda-forge::python=2.7.15 diff --git a/modules/nf-core/manta/tumoronly/main.nf b/modules/nf-core/manta/tumoronly/main.nf index b657468b58ab..228158de2953 100644 --- a/modules/nf-core/manta/tumoronly/main.nf +++ b/modules/nf-core/manta/tumoronly/main.nf @@ -21,7 +21,7 @@ process MANTA_TUMORONLY { tuple val(meta), path("*candidate_sv.vcf.gz.tbi") , emit: candidate_sv_vcf_tbi tuple val(meta), path("*tumor_sv.vcf.gz") , emit: tumor_sv_vcf tuple val(meta), path("*tumor_sv.vcf.gz.tbi") , emit: tumor_sv_vcf_tbi - path "versions.yml" , emit: versions + tuple val("${task.process}"), val("manta"), eval("configManta.py --version"), topic: versions, emit: versions_manta when: task.ext.when == null || task.ext.when @@ -54,11 +54,6 @@ process MANTA_TUMORONLY { ${prefix}.tumor_sv.vcf.gz mv manta/results/variants/tumorSV.vcf.gz.tbi \\ ${prefix}.tumor_sv.vcf.gz.tbi - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - manta: \$( configManta.py --version ) - END_VERSIONS """ stub: @@ -70,10 +65,5 @@ process MANTA_TUMORONLY { touch ${prefix}.candidate_sv.vcf.gz.tbi echo "" | gzip > ${prefix}.tumor_sv.vcf.gz touch ${prefix}.tumor_sv.vcf.gz.tbi - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - manta: \$( configManta.py --version ) - END_VERSIONS """ } diff --git a/modules/nf-core/manta/tumoronly/meta.yml b/modules/nf-core/manta/tumoronly/meta.yml index 0773760b5a33..b78a9e4844c1 100644 --- a/modules/nf-core/manta/tumoronly/meta.yml +++ b/modules/nf-core/manta/tumoronly/meta.yml @@ -137,13 +137,29 @@ output: description: Index for gzipped VCF file containing variants pattern: "*.{vcf.gz.tbi}" ontologies: [] + versions_manta: + - - ${task.process}: + type: string + description: The name of the process + - manta: + type: string + description: The name of the tool + - configManta.py --version: + type: eval + description: The expression to obtain the version of the tool + +topics: versions: - - versions.yml: - type: file - description: File containing software versions - pattern: "versions.yml" - ontologies: - - edam: http://edamontology.org/format_3750 # YAML + - - ${task.process}: + type: string + description: The name of the process + - manta: + type: string + description: The name of the tool + - configManta.py --version: + type: eval + description: The expression to obtain the version of the tool + authors: - "@maxulysse" - "@nvnieuwk" diff --git a/modules/nf-core/manta/tumoronly/tests/main.nf.test b/modules/nf-core/manta/tumoronly/tests/main.nf.test index ed25d3213043..29cfd0825435 100644 --- a/modules/nf-core/manta/tumoronly/tests/main.nf.test +++ b/modules/nf-core/manta/tumoronly/tests/main.nf.test @@ -41,7 +41,7 @@ nextflow_process { path(process.out.candidate_small_indels_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), path(process.out.candidate_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), path(process.out.tumor_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), - process.out.versions + process.out.findAll { key, val -> key.startsWith("versions_") } ).match() } ) } @@ -80,7 +80,7 @@ nextflow_process { path(process.out.candidate_small_indels_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), path(process.out.candidate_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), path(process.out.tumor_sv_vcf.get(0).get(1)).linesGzip.contains("##fileformat=VCFv4.1"), - process.out.versions + process.out.findAll { key, val -> key.startsWith("versions_") } ).match() } ) } diff --git a/modules/nf-core/manta/tumoronly/tests/main.nf.test.snap b/modules/nf-core/manta/tumoronly/tests/main.nf.test.snap index af35a0c84127..3bfa9f854040 100644 --- a/modules/nf-core/manta/tumoronly/tests/main.nf.test.snap +++ b/modules/nf-core/manta/tumoronly/tests/main.nf.test.snap @@ -51,7 +51,11 @@ ] ], "6": [ - "versions.yml:md5,ebbae8cb2fa4e5227b8358914674523c" + [ + "MANTA_TUMORONLY", + "manta", + "1.6.0" + ] ], "candidate_small_indels_vcf": [ [ @@ -101,45 +105,61 @@ "test.tumor_sv.vcf.gz.tbi:md5,d41d8cd98f00b204e9800998ecf8427e" ] ], - "versions": [ - "versions.yml:md5,ebbae8cb2fa4e5227b8358914674523c" + "versions_manta": [ + [ + "MANTA_TUMORONLY", + "manta", + "1.6.0" + ] ] } ], "meta": { - "nf-test": "0.8.4", - "nextflow": "23.10.0" + "nf-test": "0.9.2", + "nextflow": "25.04.6" }, - "timestamp": "2024-03-21T14:44:15.752887" + "timestamp": "2025-12-11T17:17:43.173110384" }, "human - cram": { "content": [ true, true, true, - [ - "versions.yml:md5,ebbae8cb2fa4e5227b8358914674523c" - ] + { + "versions_manta": [ + [ + "MANTA_TUMORONLY", + "manta", + "1.6.0" + ] + ] + } ], "meta": { "nf-test": "0.9.2", - "nextflow": "25.04.7" + "nextflow": "25.04.6" }, - "timestamp": "2025-09-17T10:27:40.246822" + "timestamp": "2025-12-11T17:22:50.234637052" }, "human - cram - bed": { "content": [ true, true, true, - [ - "versions.yml:md5,ebbae8cb2fa4e5227b8358914674523c" - ] + { + "versions_manta": [ + [ + "MANTA_TUMORONLY", + "manta", + "1.6.0" + ] + ] + } ], "meta": { "nf-test": "0.9.2", - "nextflow": "25.04.7" + "nextflow": "25.04.6" }, - "timestamp": "2025-09-17T10:28:20.27717" + "timestamp": "2025-12-11T17:23:17.342608747" } } \ No newline at end of file