From 0c9a1728c35c21eedc5348bcda266dd0115d5e4d Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Fri, 27 Sep 2024 14:07:11 -0700 Subject: [PATCH 01/25] pbsv --- modules/nf-core/pbsv/environment.yml | 9 +++ modules/nf-core/pbsv/main.nf | 91 +++++++++++++++++++++++++ modules/nf-core/pbsv/meta.yml | 57 ++++++++++++++++ modules/nf-core/pbsv/tests/main.nf.test | 73 ++++++++++++++++++++ modules/nf-core/pbsv/tests/tags.yml | 2 + 5 files changed, 232 insertions(+) create mode 100644 modules/nf-core/pbsv/environment.yml create mode 100644 modules/nf-core/pbsv/main.nf create mode 100644 modules/nf-core/pbsv/meta.yml create mode 100644 modules/nf-core/pbsv/tests/main.nf.test create mode 100644 modules/nf-core/pbsv/tests/tags.yml diff --git a/modules/nf-core/pbsv/environment.yml b/modules/nf-core/pbsv/environment.yml new file mode 100644 index 00000000000..524f2c784a9 --- /dev/null +++ b/modules/nf-core/pbsv/environment.yml @@ -0,0 +1,9 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json +name: "pbsv" +channels: + - conda-forge + - bioconda + - defaults +dependencies: + - "bioconda::pbsv=2.9.0" diff --git a/modules/nf-core/pbsv/main.nf b/modules/nf-core/pbsv/main.nf new file mode 100644 index 00000000000..bc01bb826be --- /dev/null +++ b/modules/nf-core/pbsv/main.nf @@ -0,0 +1,91 @@ +// TODO nf-core: If in doubt look at other nf-core/modules to see how we are doing things! :) +// https://github.com/nf-core/modules/tree/master/modules/nf-core/ +// You can also ask for help via your pull request or on the #modules channel on the nf-core Slack workspace: +// https://nf-co.re/join +// TODO nf-core: A module file SHOULD only define input and output files as command-line parameters. +// All other parameters MUST be provided using the "task.ext" directive, see here: +// https://www.nextflow.io/docs/latest/process.html#ext +// where "task.ext" is a string. +// Any parameters that need to be evaluated in the context of a particular sample +// e.g. single-end/paired-end data MUST also be defined and evaluated appropriately. +// TODO nf-core: Software that can be piped together SHOULD be added to separate module files +// unless there is a run-time, storage advantage in implementing in this way +// e.g. it's ok to have a single module for bwa to output BAM instead of SAM: +// bwa mem | samtools view -B -T ref.fasta +// TODO nf-core: Optional inputs are not currently supported by Nextflow. However, using an empty +// list (`[]`) instead of a file can be used to work around this issue. + +process PBSV { + tag "$meta.id" + label 'process_single' + + // TODO nf-core: List required Conda package(s). + // Software MUST be pinned to channel (i.e. "bioconda"), version (i.e. "1.10"). + // For Conda, the build (i.e. "h9402c20_2") must be EXCLUDED to support installation on different operating systems. + // TODO nf-core: See section in main README for further information regarding finding and adding container addresses to the section below. + conda "${moduleDir}/environment.yml" + container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? + 'https://depot.galaxyproject.org/singularity/pbsv:2.9.0--h9ee0642_0': + 'biocontainers/pbsv:2.9.0--h9ee0642_0' }" + + input: + // TODO nf-core: Where applicable all sample-specific information e.g. "id", "single_end", "read_group" + // MUST be provided as an input via a Groovy Map called "meta". + // This information may not be required in some instances e.g. indexing reference genome files: + // https://github.com/nf-core/modules/blob/master/modules/nf-core/bwa/index/main.nf + // TODO nf-core: Where applicable please provide/convert compressed files as input/output + // e.g. "*.fastq.gz" and NOT "*.fastq", "*.bam" and NOT "*.sam" etc. + tuple val(meta), path(bam) + + output: + // TODO nf-core: Named file extensions MUST be emitted for ALL output channels + tuple val(meta), path("*.bam"), emit: bam + // TODO nf-core: List additional required output channels/values here + path "versions.yml" , emit: versions + + when: + task.ext.when == null || task.ext.when + + script: + def args = task.ext.args ?: '' + def prefix = task.ext.prefix ?: "${meta.id}" + // TODO nf-core: Where possible, a command MUST be provided to obtain the version number of the software e.g. 1.10 + // If the software is unable to output a version number on the command-line then it can be manually specified + // e.g. https://github.com/nf-core/modules/blob/master/modules/nf-core/homer/annotatepeaks/main.nf + // Each software used MUST provide the software name and version number in the YAML version file (versions.yml) + // TODO nf-core: It MUST be possible to pass additional parameters to the tool as a command-line string via the "task.ext.args" directive + // TODO nf-core: If the tool supports multi-threading then you MUST provide the appropriate parameter + // using the Nextflow "task" variable e.g. "--threads $task.cpus" + // TODO nf-core: Please replace the example samtools command below with your module's command + // TODO nf-core: Please indent the command appropriately (4 spaces!!) to help with readability ;) + """ + samtools \\ + sort \\ + $args \\ + -@ $task.cpus \\ + -o ${prefix}.bam \\ + -T $prefix \\ + $bam + + cat <<-END_VERSIONS > versions.yml + "${task.process}": + pbsv: \$(samtools --version |& sed '1!d ; s/samtools //') + END_VERSIONS + """ + + stub: + def args = task.ext.args ?: '' + def prefix = task.ext.prefix ?: "${meta.id}" + // TODO nf-core: A stub section should mimic the execution of the original module as best as possible + // Have a look at the following examples: + // Simple example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bcftools/annotate/main.nf#L47-L63 + // Complex example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bedtools/split/main.nf#L38-L54 + """ + touch ${prefix}.bam + + cat <<-END_VERSIONS > versions.yml + "${task.process}": + pbsv: \$(samtools --version |& sed '1!d ; s/samtools //') + END_VERSIONS + """ +} diff --git a/modules/nf-core/pbsv/meta.yml b/modules/nf-core/pbsv/meta.yml new file mode 100644 index 00000000000..9c67b12ff1a --- /dev/null +++ b/modules/nf-core/pbsv/meta.yml @@ -0,0 +1,57 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json +name: "pbsv" +## TODO nf-core: Add a description of the module and list keywords +description: write your description here +keywords: + - sort + - example + - genomics +tools: + - "pbsv": + ## TODO nf-core: Add a description and other details for the software below + description: "pbsv - PacBio structural variant (SV) calling and analysis tools" + homepage: "None" + documentation: "None" + tool_dev_url: "None" + doi: "" + licence: ['BSD-3-clause-Clear'] + +## TODO nf-core: Add a description of all of the variables used as input +input: + # Only when we have meta + - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` + + ## TODO nf-core: Delete / customise this example input + - bam: + type: file + description: Sorted BAM/CRAM/SAM file + pattern: "*.{bam,cram,sam}" + +## TODO nf-core: Add a description of all of the variables used as output +output: + #Only when we have meta + - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` + + - versions: + type: file + description: File containing software versions + pattern: "versions.yml" + ## TODO nf-core: Delete / customise this example output + - bam: + type: file + description: Sorted BAM/CRAM/SAM file + pattern: "*.{bam,cram,sam}" + +authors: + - "@tanyasarkjain" +maintainers: + - "@tanyasarkjain" diff --git a/modules/nf-core/pbsv/tests/main.nf.test b/modules/nf-core/pbsv/tests/main.nf.test new file mode 100644 index 00000000000..47a1abdb290 --- /dev/null +++ b/modules/nf-core/pbsv/tests/main.nf.test @@ -0,0 +1,73 @@ +// TODO nf-core: Once you have added the required tests, please run the following command to build this file: +// nf-core modules test pbsv +nextflow_process { + + name "Test Process PBSV" + script "../main.nf" + process "PBSV" + + tag "modules" + tag "modules_nfcore" + tag "pbsv" + + // TODO nf-core: Change the test name preferably indicating the test-data and file-format used + test("sarscov2 - bam") { + + // TODO nf-core: If you are created a test for a chained module + // (the module requires running more than one process to generate the required output) + // add the 'setup' method here. + // You can find more information about how to use a 'setup' method in the docs (https://nf-co.re/docs/contributing/modules#steps-for-creating-nf-test-for-chained-modules). + + when { + process { + """ + // TODO nf-core: define inputs of the process here. Example: + + input[0] = [ + [ id:'test', single_end:false ], // meta map + file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) + ] + """ + } + } + + then { + assertAll( + { assert process.success }, + { assert snapshot(process.out).match() } + //TODO nf-core: Add all required assertions to verify the test output. + // See https://nf-co.re/docs/contributing/tutorials/nf-test_assertions for more information and examples. + ) + } + + } + + // TODO nf-core: Change the test name preferably indicating the test-data and file-format used but keep the " - stub" suffix. + test("sarscov2 - bam - stub") { + + options "-stub" + + when { + process { + """ + // TODO nf-core: define inputs of the process here. Example: + + input[0] = [ + [ id:'test', single_end:false ], // meta map + file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) + ] + """ + } + } + + then { + assertAll( + { assert process.success }, + { assert snapshot(process.out).match() } + //TODO nf-core: Add all required assertions to verify the test output. + ) + } + + } + +} diff --git a/modules/nf-core/pbsv/tests/tags.yml b/modules/nf-core/pbsv/tests/tags.yml new file mode 100644 index 00000000000..59ab3754578 --- /dev/null +++ b/modules/nf-core/pbsv/tests/tags.yml @@ -0,0 +1,2 @@ +pbsv: + - "modules/nf-core/pbsv/**" From 5339e163dc4304567d5049f692cfb50fcd953b74 Mon Sep 17 00:00:00 2001 From: nf-core-bot Date: Tue, 22 Oct 2024 07:22:04 +0000 Subject: [PATCH 02/25] [automated] Fix linting with Prettier --- modules/nf-core/pbsv/meta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/nf-core/pbsv/meta.yml b/modules/nf-core/pbsv/meta.yml index 9c67b12ff1a..6564ad89168 100644 --- a/modules/nf-core/pbsv/meta.yml +++ b/modules/nf-core/pbsv/meta.yml @@ -15,7 +15,7 @@ tools: documentation: "None" tool_dev_url: "None" doi: "" - licence: ['BSD-3-clause-Clear'] + licence: ["BSD-3-clause-Clear"] ## TODO nf-core: Add a description of all of the variables used as input input: @@ -25,7 +25,7 @@ input: description: | Groovy Map containing sample information e.g. `[ id:'sample1', single_end:false ]` - + ## TODO nf-core: Delete / customise this example input - bam: type: file @@ -40,7 +40,7 @@ output: description: | Groovy Map containing sample information e.g. `[ id:'sample1', single_end:false ]` - + - versions: type: file description: File containing software versions From dc0a3a1c700f00038e293c0a65c38e3254c479f1 Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Mon, 21 Oct 2024 17:27:50 -0700 Subject: [PATCH 03/25] version of pbsv module where all the tests pass --- modules/nf-core/pbsv/e1.fasta | 0 modules/nf-core/pbsv/environment.yml | 2 +- modules/nf-core/pbsv/main.nf | 22 ++++----- modules/nf-core/pbsv/tests/main.nf.test | 31 ++++++------- modules/nf-core/pbsv/tests/main.nf.test.snap | 49 ++++++++++++++++++++ 5 files changed, 73 insertions(+), 31 deletions(-) create mode 100644 modules/nf-core/pbsv/e1.fasta create mode 100644 modules/nf-core/pbsv/tests/main.nf.test.snap diff --git a/modules/nf-core/pbsv/e1.fasta b/modules/nf-core/pbsv/e1.fasta new file mode 100644 index 00000000000..e69de29bb2d diff --git a/modules/nf-core/pbsv/environment.yml b/modules/nf-core/pbsv/environment.yml index 524f2c784a9..cd84674e12f 100644 --- a/modules/nf-core/pbsv/environment.yml +++ b/modules/nf-core/pbsv/environment.yml @@ -6,4 +6,4 @@ channels: - bioconda - defaults dependencies: - - "bioconda::pbsv=2.9.0" + - "bioconda::pbsv" \ No newline at end of file diff --git a/modules/nf-core/pbsv/main.nf b/modules/nf-core/pbsv/main.nf index bc01bb826be..138191d16bd 100644 --- a/modules/nf-core/pbsv/main.nf +++ b/modules/nf-core/pbsv/main.nf @@ -1,7 +1,3 @@ -// TODO nf-core: If in doubt look at other nf-core/modules to see how we are doing things! :) -// https://github.com/nf-core/modules/tree/master/modules/nf-core/ -// You can also ask for help via your pull request or on the #modules channel on the nf-core Slack workspace: -// https://nf-co.re/join // TODO nf-core: A module file SHOULD only define input and output files as command-line parameters. // All other parameters MUST be provided using the "task.ext" directive, see here: // https://www.nextflow.io/docs/latest/process.html#ext @@ -36,10 +32,11 @@ process PBSV { // TODO nf-core: Where applicable please provide/convert compressed files as input/output // e.g. "*.fastq.gz" and NOT "*.fastq", "*.bam" and NOT "*.sam" etc. tuple val(meta), path(bam) + path(fasta) output: // TODO nf-core: Named file extensions MUST be emitted for ALL output channels - tuple val(meta), path("*.bam"), emit: bam + tuple val(meta), path("*.vcf"), emit: vcf // TODO nf-core: List additional required output channels/values here path "versions.yml" , emit: versions @@ -59,17 +56,13 @@ process PBSV { // TODO nf-core: Please replace the example samtools command below with your module's command // TODO nf-core: Please indent the command appropriately (4 spaces!!) to help with readability ;) """ - samtools \\ - sort \\ - $args \\ - -@ $task.cpus \\ - -o ${prefix}.bam \\ - -T $prefix \\ - $bam + #pbmm2 align ${fasta} ${bam} ${prefix}.bam + pbsv discover ${bam} ${prefix}.svsig.gz + pbsv call -j 8 ${fasta} ${prefix}.svsig.gz ${prefix}.pbsv.vcf cat <<-END_VERSIONS > versions.yml "${task.process}": - pbsv: \$(samtools --version |& sed '1!d ; s/samtools //') + pbsv: \$(pbsv --version |& sed '1!d ; s/pbsv //') END_VERSIONS """ @@ -82,10 +75,11 @@ process PBSV { // Complex example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bedtools/split/main.nf#L38-L54 """ touch ${prefix}.bam + touch ${prefix}.pbsv.vcf cat <<-END_VERSIONS > versions.yml "${task.process}": - pbsv: \$(samtools --version |& sed '1!d ; s/samtools //') + pbsv: \$(pbsv --version |& sed '1!d ; s/pbsv //') END_VERSIONS """ } diff --git a/modules/nf-core/pbsv/tests/main.nf.test b/modules/nf-core/pbsv/tests/main.nf.test index 47a1abdb290..cbf80381b19 100644 --- a/modules/nf-core/pbsv/tests/main.nf.test +++ b/modules/nf-core/pbsv/tests/main.nf.test @@ -10,14 +10,7 @@ nextflow_process { tag "modules_nfcore" tag "pbsv" - // TODO nf-core: Change the test name preferably indicating the test-data and file-format used - test("sarscov2 - bam") { - - // TODO nf-core: If you are created a test for a chained module - // (the module requires running more than one process to generate the required output) - // add the 'setup' method here. - // You can find more information about how to use a 'setup' method in the docs (https://nf-co.re/docs/contributing/modules#steps-for-creating-nf-test-for-chained-modules). - + test("pbsv_bam") { when { process { """ @@ -25,7 +18,11 @@ nextflow_process { input[0] = [ [ id:'test', single_end:false ], // meta map - file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) + file(params.modules_testdata_base_path + 'genomics/homo_sapiens/pacbio/bam/NA03697B2_downsampled.pbmm2.repeats.bam', checkIfExists: true) + ] + + input[1] = [ + file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome3.fasta', checkIfExists: true) ] """ } @@ -34,16 +31,16 @@ nextflow_process { then { assertAll( { assert process.success }, - { assert snapshot(process.out).match() } - //TODO nf-core: Add all required assertions to verify the test output. - // See https://nf-co.re/docs/contributing/tutorials/nf-test_assertions for more information and examples. + { assert snapshot(process.out.versions).match("versions") }, + { assert process.out.vcf != null }, + { assert file(process.out.vcf[0][1]).name == "test.pbsv.vcf" } ) } + } - // TODO nf-core: Change the test name preferably indicating the test-data and file-format used but keep the " - stub" suffix. - test("sarscov2 - bam - stub") { + test("pbsv_bam_stub") { options "-stub" @@ -54,8 +51,11 @@ nextflow_process { input[0] = [ [ id:'test', single_end:false ], // meta map - file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) + file(params.modules_testdata_base_path + 'genomics/homo_sapiens/pacbio/bam/NA03697B2_downsampled.pbmm2.repeats.bam', checkIfExists: true) ] + input[1] = [ + file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome3.fasta', checkIfExists: true) + ] """ } } @@ -64,7 +64,6 @@ nextflow_process { assertAll( { assert process.success }, { assert snapshot(process.out).match() } - //TODO nf-core: Add all required assertions to verify the test output. ) } diff --git a/modules/nf-core/pbsv/tests/main.nf.test.snap b/modules/nf-core/pbsv/tests/main.nf.test.snap new file mode 100644 index 00000000000..475185d26e1 --- /dev/null +++ b/modules/nf-core/pbsv/tests/main.nf.test.snap @@ -0,0 +1,49 @@ +{ + "versions": { + "content": [ + [ + "versions.yml:md5,114b69a5e731b0691d6e523c12f7a8ca" + ] + ], + "meta": { + "nf-test": "0.9.0", + "nextflow": "24.04.4" + }, + "timestamp": "2024-10-21T17:23:23.323954" + }, + "pbsv_bam_stub": { + "content": [ + { + "0": [ + [ + { + "id": "test", + "single_end": false + }, + "test.pbsv.vcf:md5,d41d8cd98f00b204e9800998ecf8427e" + ] + ], + "1": [ + "versions.yml:md5,114b69a5e731b0691d6e523c12f7a8ca" + ], + "vcf": [ + [ + { + "id": "test", + "single_end": false + }, + "test.pbsv.vcf:md5,d41d8cd98f00b204e9800998ecf8427e" + ] + ], + "versions": [ + "versions.yml:md5,114b69a5e731b0691d6e523c12f7a8ca" + ] + } + ], + "meta": { + "nf-test": "0.9.0", + "nextflow": "24.04.4" + }, + "timestamp": "2024-10-21T17:25:35.357742" + } +} \ No newline at end of file From 71cab1d93bbbe0c684eb64cc4863c1dc7f7c7dcd Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Mon, 21 Oct 2024 17:39:02 -0700 Subject: [PATCH 04/25] getting rid of un-need comments --- modules/nf-core/pbsv/main.nf | 43 +------------------- modules/nf-core/pbsv/tests/main.nf.test.snap | 6 +-- 2 files changed, 5 insertions(+), 44 deletions(-) diff --git a/modules/nf-core/pbsv/main.nf b/modules/nf-core/pbsv/main.nf index 138191d16bd..afd85b22df7 100644 --- a/modules/nf-core/pbsv/main.nf +++ b/modules/nf-core/pbsv/main.nf @@ -1,43 +1,18 @@ -// TODO nf-core: A module file SHOULD only define input and output files as command-line parameters. -// All other parameters MUST be provided using the "task.ext" directive, see here: -// https://www.nextflow.io/docs/latest/process.html#ext -// where "task.ext" is a string. -// Any parameters that need to be evaluated in the context of a particular sample -// e.g. single-end/paired-end data MUST also be defined and evaluated appropriately. -// TODO nf-core: Software that can be piped together SHOULD be added to separate module files -// unless there is a run-time, storage advantage in implementing in this way -// e.g. it's ok to have a single module for bwa to output BAM instead of SAM: -// bwa mem | samtools view -B -T ref.fasta -// TODO nf-core: Optional inputs are not currently supported by Nextflow. However, using an empty -// list (`[]`) instead of a file can be used to work around this issue. - process PBSV { tag "$meta.id" label 'process_single' - // TODO nf-core: List required Conda package(s). - // Software MUST be pinned to channel (i.e. "bioconda"), version (i.e. "1.10"). - // For Conda, the build (i.e. "h9402c20_2") must be EXCLUDED to support installation on different operating systems. - // TODO nf-core: See section in main README for further information regarding finding and adding container addresses to the section below. conda "${moduleDir}/environment.yml" container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? 'https://depot.galaxyproject.org/singularity/pbsv:2.9.0--h9ee0642_0': 'biocontainers/pbsv:2.9.0--h9ee0642_0' }" input: - // TODO nf-core: Where applicable all sample-specific information e.g. "id", "single_end", "read_group" - // MUST be provided as an input via a Groovy Map called "meta". - // This information may not be required in some instances e.g. indexing reference genome files: - // https://github.com/nf-core/modules/blob/master/modules/nf-core/bwa/index/main.nf - // TODO nf-core: Where applicable please provide/convert compressed files as input/output - // e.g. "*.fastq.gz" and NOT "*.fastq", "*.bam" and NOT "*.sam" etc. tuple val(meta), path(bam) path(fasta) output: - // TODO nf-core: Named file extensions MUST be emitted for ALL output channels tuple val(meta), path("*.vcf"), emit: vcf - // TODO nf-core: List additional required output channels/values here path "versions.yml" , emit: versions when: @@ -46,19 +21,9 @@ process PBSV { script: def args = task.ext.args ?: '' def prefix = task.ext.prefix ?: "${meta.id}" - // TODO nf-core: Where possible, a command MUST be provided to obtain the version number of the software e.g. 1.10 - // If the software is unable to output a version number on the command-line then it can be manually specified - // e.g. https://github.com/nf-core/modules/blob/master/modules/nf-core/homer/annotatepeaks/main.nf - // Each software used MUST provide the software name and version number in the YAML version file (versions.yml) - // TODO nf-core: It MUST be possible to pass additional parameters to the tool as a command-line string via the "task.ext.args" directive - // TODO nf-core: If the tool supports multi-threading then you MUST provide the appropriate parameter - // using the Nextflow "task" variable e.g. "--threads $task.cpus" - // TODO nf-core: Please replace the example samtools command below with your module's command - // TODO nf-core: Please indent the command appropriately (4 spaces!!) to help with readability ;) """ - #pbmm2 align ${fasta} ${bam} ${prefix}.bam pbsv discover ${bam} ${prefix}.svsig.gz - pbsv call -j 8 ${fasta} ${prefix}.svsig.gz ${prefix}.pbsv.vcf + pbsv call -j ${task.cpus} ${fasta} ${prefix}.svsig.gz ${prefix}.pbsv.vcf cat <<-END_VERSIONS > versions.yml "${task.process}": @@ -69,16 +34,12 @@ process PBSV { stub: def args = task.ext.args ?: '' def prefix = task.ext.prefix ?: "${meta.id}" - // TODO nf-core: A stub section should mimic the execution of the original module as best as possible - // Have a look at the following examples: - // Simple example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bcftools/annotate/main.nf#L47-L63 - // Complex example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bedtools/split/main.nf#L38-L54 """ touch ${prefix}.bam touch ${prefix}.pbsv.vcf cat <<-END_VERSIONS > versions.yml - "${task.process}": + "${task.process}": pbsv: \$(pbsv --version |& sed '1!d ; s/pbsv //') END_VERSIONS """ diff --git a/modules/nf-core/pbsv/tests/main.nf.test.snap b/modules/nf-core/pbsv/tests/main.nf.test.snap index 475185d26e1..4d73565e94e 100644 --- a/modules/nf-core/pbsv/tests/main.nf.test.snap +++ b/modules/nf-core/pbsv/tests/main.nf.test.snap @@ -24,7 +24,7 @@ ] ], "1": [ - "versions.yml:md5,114b69a5e731b0691d6e523c12f7a8ca" + "versions.yml:md5,78a8c3eb6a67916a463a6d1dfaa4fae4" ], "vcf": [ [ @@ -36,7 +36,7 @@ ] ], "versions": [ - "versions.yml:md5,114b69a5e731b0691d6e523c12f7a8ca" + "versions.yml:md5,78a8c3eb6a67916a463a6d1dfaa4fae4" ] } ], @@ -44,6 +44,6 @@ "nf-test": "0.9.0", "nextflow": "24.04.4" }, - "timestamp": "2024-10-21T17:25:35.357742" + "timestamp": "2024-10-21T17:34:55.61846" } } \ No newline at end of file From ec70173136339d831f97306e7549f7b70b6229d9 Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Tue, 22 Oct 2024 00:29:01 -0700 Subject: [PATCH 05/25] updated: --- modules/modules | 208 +++++++++++++++++++++ modules/nf-core/hiphase/environment.yml | 9 + modules/nf-core/hiphase/main.nf | 91 +++++++++ modules/nf-core/hiphase/meta.yml | 57 ++++++ modules/nf-core/hiphase/tests/main.nf.test | 73 ++++++++ modules/nf-core/hiphase/tests/tags.yml | 2 + modules/nf-core/humid/tests/main.nf.test | 4 +- modules/nf-core/pbmm2/environment.yml | 9 + modules/nf-core/pbmm2/main.nf | 86 +++++++++ modules/nf-core/pbmm2/meta.yml | 57 ++++++ modules/nf-core/pbmm2/tests/main.nf.test | 73 ++++++++ modules/nf-core/pbmm2/tests/tags.yml | 2 + modules/nf-core/pbsv/environment.yml | 4 +- modules/nf-core/pbsv/main.nf | 2 +- modules/nf-core/pbsv/meta.yml | 85 +++++---- modules/nf-core/pbsv/tests/main.nf.test | 12 +- 16 files changed, 718 insertions(+), 56 deletions(-) create mode 100644 modules/modules create mode 100644 modules/nf-core/hiphase/environment.yml create mode 100644 modules/nf-core/hiphase/main.nf create mode 100644 modules/nf-core/hiphase/meta.yml create mode 100644 modules/nf-core/hiphase/tests/main.nf.test create mode 100644 modules/nf-core/hiphase/tests/tags.yml create mode 100644 modules/nf-core/pbmm2/environment.yml create mode 100644 modules/nf-core/pbmm2/main.nf create mode 100644 modules/nf-core/pbmm2/meta.yml create mode 100644 modules/nf-core/pbmm2/tests/main.nf.test create mode 100644 modules/nf-core/pbmm2/tests/tags.yml diff --git a/modules/modules b/modules/modules new file mode 100644 index 00000000000..e8b417360df --- /dev/null +++ b/modules/modules @@ -0,0 +1,208 @@ +>chr19:45760000-45770300 +catgttggccaggctggtctccaactcctgacctcgagtgatccgcccac +cttggcctcctagagtgctgggattacaggtgtgagccaccgtgcccagc +Ttcccacatcattttacaactactctacgaagcagggtctcctgtggccc +cattttacagataaggaaattgaaatcaaaagactaagctgggcgcggtg +gctcacacctgtaatctcagcagtttgagaggctgacgtaggcggatcac +ctgagatcaggagttcaagaccagcctggccaacatggggaaaccccatt +tctactaaaaatacaagaaGTGTccgggcgtggtggctcacgcctgtaat +cccactattttgggaggccgaggagggcagatcacctgaggtcaggagtt +ggagaccaaccagtctggccatcatggcgaaatactatctctactaaaaa +tacaaaattagccgggtgtggtggtacgtgcctgtaatcccagctactca +ggaggctgaggcagaagaatcgcttaaacctgggaggcgggggttgcagt +aagccaagatggcaccgttggactgcagcctgggcaacaagagcgaaacc +cagtctcaaaaaaggaaaagaaaaagaaaaagaaaTTATCAGGGTGTggc +cgggcgtggtggctcatgcctatacttctagcactttgggaggctgaggc +gggcagatcacctgaggtcaggagtttaaacctagcttgaccaatatgat +gaaaccccctctctactaaaaatacaaaattagctgggcgtggtggtggg +cacttgtaaccccagttactcaggagtctgaggcaggagaatcacttgaa +cccaagaggtggagaatggagctgagatggtgccattgcactccagcctg +agggacaagagtaagactccgtctcaaaaaaaaaaaaaagaaagaaaaga +aaaaaaagaaaagaaaggaagaaagaaagaaagacagggtcttgctttgt +tgcccaggctggagtgcagtgtcaccatcatagatcagtgccttgaactc +ctgggctcaaatgaccctcccacaccaccatgcccagctggttttttaaa +ttatttttaaatttaacttaattcaatttctttttttttttttgagacag +agtctcactctgtcacccaggctggagtgcagtggtacgatctcggctca +ctgcaacctccgcctcctggatttaagcgattcttgtgcctcagcctcca +gagtagctgggactacaggcgcccaccaacatacctggctaattttttag +tatttttagacagagtttcgccatgttggccaggctggttttgaactcct +gacctcaggtgatcctcctgcctcagcctccgaaagtgctgagattacag +gcatgagccactgcgcctggccTAtttttttttttttttttttttttttt +ttgtagaacaaggtctctctatgttgcccaggctggtctgtaactcctgg +cctcaagcagtcctcctgcctcagcctcccagagtgttggggttacaggc +gtaagccaccacaccctgccAATCTGAGCTGCTGCTAATGCTCATGTTAT +GTCCTAGAAAAGCAGTACTGGGGGGATGAAGGGGCACCACTTGTCTCCCC +TCCCATCTTTCTCCCTCATCATGCCCCAGGACACAGCCTCCAAGGCCCCC +AAAGACCCTCCTGAGTCCCACAGCCTGCACCGGTCCTCAGTCTCGCTGGA +CCACTGCTACCTCTCGCTGAGCGGGAACAGCAAGGCGCCAtccagctcca +gctccagctccagctccagctccagctcGGAGGACAGCGACTCGGAGCCC +CTGTGGAAGCAGCGAGAGGTGAGAGACACGGCCGCATGCCAGGGCCAGCA +GGGCCTCCTTCCTCTCTCACCACCCTCTCCCTCCCCCAGGATATGCAGGC +CAACCCTGTGGGCACGCCGGGCTCCAGCGAAGAGGACGAAGACACCACAT +GGACCCCCACCCGGCTGGCCTCACCCCTGCTGGCAGCTGAGAAAAAGGCC +ACGAAGGGCCAAGTAGCCAGGGCCCCTGTGAAGCCCAAGGAGAAGAAGAA +AGGCCCCTGCCCACCCCAGATGAAGAAGAAGTGTGTCAACGGCTTCATCA +TGTTCTGCAGGATGAACCGGAAGCAGTACATCCGGTGGGTAGGGGGTCGT +CTTTGGCCCTGGGGAAGGCCCTGGCTTCGTTCTCTGCCCGCAGCCTGGCC +ATGCCGCTCCTCACAACTGTCTGACACTTTTTCCCCCTCCGAGACCCCAC +AAACCCTTCGTGGACCACAGTTCTTCCCCAGAACTGAACCCGGCCCCATt +gtattggacagggtccatccattgtcagcgctgaaacccaattcaggctt +tagacttcagaaaaaaaggagttttttttgttttgttttgttttttgaga +cagagtctcactctattgcccaggctgtagtgcagtggcacaatcacagc +tcactgcaatgtctgcctcccgggctcaaatcactgcaacctctgcctct +cagattctcctgcctcagcctcctgagtagctgggataacaggcgcgcca +tcagctaatttttgtatttttagtagagacagggtttcaccatgttggcc +aggctggtctcgaatgcctcacctcaagtgatctgcctgcctcggcctct +caaattgctgggattacaggtgtgagccatcaggcccagcaagaaaagaa +aatgaattggcttatataacctagaaaacaagggcgggtatagactgcct +tgagacatagctggttttagggctcacacaggctgtctggaatctttgtc +cttttcacccagttcctctgtcttccgggctggcttcattctctggcagg +tggggtcaccccaggaggcacaggctcgggtcctgtcccccacccaagcg +accccgggaggaggagaggtctctaaggttttaagcaaagtccttgggac +tgactttggtagatccggtgccaaccctgaaccagtcactgccaggCCTG +GAGCCAGGGGATGGGGAGGCCCCCCCCAAGCCACAGTGGAAAACAGCTAG +TTCCTTTACAGGAAGATCCAGATGTGGGGGCCAGGAGCGGTGCCCACAGG +TCCCCTGCACTCTCCTGGGACACCAGGTGCCCCCTTGTGAACAGCCGCTG +AGTCCAGCTCCCTCTGCCTCCTCAGCTCCAGAGGGTGGTCTTGGAGGCCT +TGTAGACCCACAAGGCTAGGAAGGGTCTGAGTTCTCAGTCAGGGTGTCCT +GCAGACCT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CACCCCTCTC +CCCTTCCCTTCCCCACCCCAGAGCCACTCGGTTGCAACCCTGTTCATGCT +CACCTCACCCTACTCCTCCCTCTCCTGTTCTATTTTTAGACTATTTATTG +TTTTAAATAAAATAAAGCAAGTGGAACCTTTGTTACCAGCAAGAGAGACA +AGGGCAGGCCCTCCTGCGTCCCCCTGCTGCCCCACTGGGGTGCTCCGTCC +ACCCTCATCTGGAGGCCTGTGGCTTGCAAGAGGCCTCAGTGCCACCCCCT +CCCCAGCCACTCTGTGCATCTGAATGCAAACCCCTCTTCCCCTCGGGAGG +CAGCAATGGGAAGGCCAGGTCTCGAGGTGGGCTCTGTGTTCAGCGCTGCT +TTGGACAGACACTGGAAGGCACCCCAGACCCCTGGTGGTGGTGTAATCCG +ATAACTTTATTTTAATTGAAAATGGAGGCATAACATGTCCTAGAAAAATA +AAGATTTAGGATACAAAGGAGACACAGCGGCAGGGCTGCCCCCAGGGATG +AGGGAATCTTTGGTCTGGGCCGGATAATGAGGACAAGGGCTTGAGTCGAG +GGGAGCTGGTGAAGGAAGACCCCCGTCTCCCCACAGCTGCCCCACCCCCC +GCCCCTGGCAGGAAATGCCACACTGGGGAGGGTCTCCAGTCTCAGGGGCG +CGGGGCTGCCTGTCCTCCACCTTCGGATTCCAGGCAGTTGTGACAACACC +AGCTATCGGCAGAGCTATTAATAGTGTTTCAGGGAGTGACAGGGAGAGGG +CTCTGGGGGCTGGAAGTCCGGCCCTGGGGCAGGGTGTTCCGCTTACAGCT +AGTACCAAGTGGAGGGGGCAGGGCCCCTGAGTCAGGACCCTGAGTCCCCC +ACGTATATGGCAGGGCACAGCATGGGGAGGGCTGTAACAGAGAGGCCTCC +CATCCAAAGGGGGATGGAGACCTGGACAGGAGGTGGCCGGGGATACAACC +CCCAGCACCACCAGGGCTTGGAGAGGCCACCCAGGCAGAAGGATGTGGTG +ACTGGGGTCTTCAGCAACCGCATTTCTGGGGCTCCCCCCTCCCATTCCTG +TCCCTGCGTCTTCAGCACCAATGTCGGGAG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GCCCACAACGCAAACCGCGGAC +ACTGTGGAGTCCAGAGCTTTGGGCAGATGGAGGGCCTTTTATTCGCGAGG +GTCGGGGGTGGGGGTCCTAGGTGGGGACAGACAATAAATACCGAGGAATG +TCGGGGTCTCAGTGCATCCAAAACGTGGATTGGGGTTGTTGGGGGTCCTG +TAGCCTGTCAGCGAGTCGGAGGACGAGGTCAATAAATATCCAAACCGCCG +AAGCGGGCGGAGCCGGCTGGGGCTCCGAGAGCAGCGCAAGTGAGGAGGGG +GGCGCGGGATCCCCGAAAAAGCGGGTTTGGCAAAAGCAAATTTCCCGAGT +AAGCAGGCAGAGATCGCGCCAGACGCTCCCCAGAGCAGGGCGTCATGCAC +AAGAAAGCTTTGCACTTTGCGAACCAACGATAGGTGGGGGTGCGTGGAGG +ATGGAACACGGACGGCCCGGCTTGCTGCCTTCCCAGGCCTGCAGTTTGCC +CATCCACGTCAGGGCCTCAGCCTGGCCGAAAGAAAGAAATGGTCTGTGAT +CCCCCcagcagcagcagcagcagcagcagcagcagcagcagcagcagcag +cagcagcagcagcagcaTTCCCGGCTACAAGGACCCTTCGAgccccgttc +g diff --git a/modules/nf-core/hiphase/environment.yml b/modules/nf-core/hiphase/environment.yml new file mode 100644 index 00000000000..cc1b89cdd7c --- /dev/null +++ b/modules/nf-core/hiphase/environment.yml @@ -0,0 +1,9 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json +name: "hiphase" +channels: + - conda-forge + - bioconda + - defaults +dependencies: + - "bioconda::hiphase=1.4.5" diff --git a/modules/nf-core/hiphase/main.nf b/modules/nf-core/hiphase/main.nf new file mode 100644 index 00000000000..a1ddf21eb58 --- /dev/null +++ b/modules/nf-core/hiphase/main.nf @@ -0,0 +1,91 @@ +// TODO nf-core: If in doubt look at other nf-core/modules to see how we are doing things! :) +// https://github.com/nf-core/modules/tree/master/modules/nf-core/ +// You can also ask for help via your pull request or on the #modules channel on the nf-core Slack workspace: +// https://nf-co.re/join +// TODO nf-core: A module file SHOULD only define input and output files as command-line parameters. +// All other parameters MUST be provided using the "task.ext" directive, see here: +// https://www.nextflow.io/docs/latest/process.html#ext +// where "task.ext" is a string. +// Any parameters that need to be evaluated in the context of a particular sample +// e.g. single-end/paired-end data MUST also be defined and evaluated appropriately. +// TODO nf-core: Software that can be piped together SHOULD be added to separate module files +// unless there is a run-time, storage advantage in implementing in this way +// e.g. it's ok to have a single module for bwa to output BAM instead of SAM: +// bwa mem | samtools view -B -T ref.fasta +// TODO nf-core: Optional inputs are not currently supported by Nextflow. However, using an empty +// list (`[]`) instead of a file can be used to work around this issue. + +process HIPHASE { + tag "$meta.id" + label 'process_single' + + // TODO nf-core: List required Conda package(s). + // Software MUST be pinned to channel (i.e. "bioconda"), version (i.e. "1.10"). + // For Conda, the build (i.e. "h9402c20_2") must be EXCLUDED to support installation on different operating systems. + // TODO nf-core: See section in main README for further information regarding finding and adding container addresses to the section below. + conda "${moduleDir}/environment.yml" + container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? + 'https://depot.galaxyproject.org/singularity/hiphase:1.4.5--h9ee0642_0': + 'biocontainers/hiphase:1.4.5--h9ee0642_0' }" + + input: + // TODO nf-core: Where applicable all sample-specific information e.g. "id", "single_end", "read_group" + // MUST be provided as an input via a Groovy Map called "meta". + // This information may not be required in some instances e.g. indexing reference genome files: + // https://github.com/nf-core/modules/blob/master/modules/nf-core/bwa/index/main.nf + // TODO nf-core: Where applicable please provide/convert compressed files as input/output + // e.g. "*.fastq.gz" and NOT "*.fastq", "*.bam" and NOT "*.sam" etc. + tuple val(meta), path(bam) + + output: + // TODO nf-core: Named file extensions MUST be emitted for ALL output channels + tuple val(meta), path("*.bam"), emit: bam + // TODO nf-core: List additional required output channels/values here + path "versions.yml" , emit: versions + + when: + task.ext.when == null || task.ext.when + + script: + def args = task.ext.args ?: '' + def prefix = task.ext.prefix ?: "${meta.id}" + // TODO nf-core: Where possible, a command MUST be provided to obtain the version number of the software e.g. 1.10 + // If the software is unable to output a version number on the command-line then it can be manually specified + // e.g. https://github.com/nf-core/modules/blob/master/modules/nf-core/homer/annotatepeaks/main.nf + // Each software used MUST provide the software name and version number in the YAML version file (versions.yml) + // TODO nf-core: It MUST be possible to pass additional parameters to the tool as a command-line string via the "task.ext.args" directive + // TODO nf-core: If the tool supports multi-threading then you MUST provide the appropriate parameter + // using the Nextflow "task" variable e.g. "--threads $task.cpus" + // TODO nf-core: Please replace the example samtools command below with your module's command + // TODO nf-core: Please indent the command appropriately (4 spaces!!) to help with readability ;) + """ + samtools \\ + sort \\ + $args \\ + -@ $task.cpus \\ + -o ${prefix}.bam \\ + -T $prefix \\ + $bam + + cat <<-END_VERSIONS > versions.yml + "${task.process}": + hiphase: \$(samtools --version |& sed '1!d ; s/samtools //') + END_VERSIONS + """ + + stub: + def args = task.ext.args ?: '' + def prefix = task.ext.prefix ?: "${meta.id}" + // TODO nf-core: A stub section should mimic the execution of the original module as best as possible + // Have a look at the following examples: + // Simple example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bcftools/annotate/main.nf#L47-L63 + // Complex example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bedtools/split/main.nf#L38-L54 + """ + touch ${prefix}.bam + + cat <<-END_VERSIONS > versions.yml + "${task.process}": + hiphase: \$(samtools --version |& sed '1!d ; s/samtools //') + END_VERSIONS + """ +} diff --git a/modules/nf-core/hiphase/meta.yml b/modules/nf-core/hiphase/meta.yml new file mode 100644 index 00000000000..f0df5dfec51 --- /dev/null +++ b/modules/nf-core/hiphase/meta.yml @@ -0,0 +1,57 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json +name: "hiphase" +## TODO nf-core: Add a description of the module and list keywords +description: write your description here +keywords: + - sort + - example + - genomics +tools: + - "hiphase": + ## TODO nf-core: Add a description and other details for the software below + description: "Small and structural variant phasing tool for PacBio HiFi reads" + homepage: "None" + documentation: "None" + tool_dev_url: "None" + doi: "" + licence: ['BSD-3-clause-Clear'] + +## TODO nf-core: Add a description of all of the variables used as input +input: + # Only when we have meta + - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` + + ## TODO nf-core: Delete / customise this example input + - bam: + type: file + description: Sorted BAM/CRAM/SAM file + pattern: "*.{bam,cram,sam}" + +## TODO nf-core: Add a description of all of the variables used as output +output: + #Only when we have meta + - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` + + - versions: + type: file + description: File containing software versions + pattern: "versions.yml" + ## TODO nf-core: Delete / customise this example output + - bam: + type: file + description: Sorted BAM/CRAM/SAM file + pattern: "*.{bam,cram,sam}" + +authors: + - "@tanyasarkjain" +maintainers: + - "@tanyasarkjain" diff --git a/modules/nf-core/hiphase/tests/main.nf.test b/modules/nf-core/hiphase/tests/main.nf.test new file mode 100644 index 00000000000..f5fa06cda68 --- /dev/null +++ b/modules/nf-core/hiphase/tests/main.nf.test @@ -0,0 +1,73 @@ +// TODO nf-core: Once you have added the required tests, please run the following command to build this file: +// nf-core modules test hiphase +nextflow_process { + + name "Test Process HIPHASE" + script "../main.nf" + process "HIPHASE" + + tag "modules" + tag "modules_nfcore" + tag "hiphase" + + // TODO nf-core: Change the test name preferably indicating the test-data and file-format used + test("sarscov2 - bam") { + + // TODO nf-core: If you are created a test for a chained module + // (the module requires running more than one process to generate the required output) + // add the 'setup' method here. + // You can find more information about how to use a 'setup' method in the docs (https://nf-co.re/docs/contributing/modules#steps-for-creating-nf-test-for-chained-modules). + + when { + process { + """ + // TODO nf-core: define inputs of the process here. Example: + + input[0] = [ + [ id:'test', single_end:false ], // meta map + file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) + ] + """ + } + } + + then { + assertAll( + { assert process.success }, + { assert snapshot(process.out).match() } + //TODO nf-core: Add all required assertions to verify the test output. + // See https://nf-co.re/docs/contributing/tutorials/nf-test_assertions for more information and examples. + ) + } + + } + + // TODO nf-core: Change the test name preferably indicating the test-data and file-format used but keep the " - stub" suffix. + test("sarscov2 - bam - stub") { + + options "-stub" + + when { + process { + """ + // TODO nf-core: define inputs of the process here. Example: + + input[0] = [ + [ id:'test', single_end:false ], // meta map + file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) + ] + """ + } + } + + then { + assertAll( + { assert process.success }, + { assert snapshot(process.out).match() } + //TODO nf-core: Add all required assertions to verify the test output. + ) + } + + } + +} diff --git a/modules/nf-core/hiphase/tests/tags.yml b/modules/nf-core/hiphase/tests/tags.yml new file mode 100644 index 00000000000..33a31bb1dc0 --- /dev/null +++ b/modules/nf-core/hiphase/tests/tags.yml @@ -0,0 +1,2 @@ +hiphase: + - "modules/nf-core/hiphase/**" diff --git a/modules/nf-core/humid/tests/main.nf.test b/modules/nf-core/humid/tests/main.nf.test index 987bc20cc03..3d0b839ac1e 100644 --- a/modules/nf-core/humid/tests/main.nf.test +++ b/modules/nf-core/humid/tests/main.nf.test @@ -77,7 +77,9 @@ nextflow_process { { assert snapshot(process.out.log, process.out.stats, process.out.versions).match()}, - {assert file(process.out.dedup[0][1].find { + { + println process.out.dedup[0][1] + assert file(process.out.dedup[0][1].find { file(it).name == "test_1_dedup.fastq.gz" }).exists()}, {assert file(process.out.dedup[0][1].find { file(it).name == "test_2_dedup.fastq.gz" }).exists()}, diff --git a/modules/nf-core/pbmm2/environment.yml b/modules/nf-core/pbmm2/environment.yml new file mode 100644 index 00000000000..ccddb46fed5 --- /dev/null +++ b/modules/nf-core/pbmm2/environment.yml @@ -0,0 +1,9 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json +name: "pbmm2" +channels: + - conda-forge + - bioconda + - defaults +dependencies: + - "bioconda::pbmm2=1.14.99" diff --git a/modules/nf-core/pbmm2/main.nf b/modules/nf-core/pbmm2/main.nf new file mode 100644 index 00000000000..685262719f0 --- /dev/null +++ b/modules/nf-core/pbmm2/main.nf @@ -0,0 +1,86 @@ +// TODO nf-core: If in doubt look at other nf-core/modules to see how we are doing things! :) +// https://github.com/nf-core/modules/tree/master/modules/nf-core/ +// You can also ask for help via your pull request or on the #modules channel on the nf-core Slack workspace: +// https://nf-co.re/join +// TODO nf-core: A module file SHOULD only define input and output files as command-line parameters. +// All other parameters MUST be provided using the "task.ext" directive, see here: +// https://www.nextflow.io/docs/latest/process.html#ext +// where "task.ext" is a string. +// Any parameters that need to be evaluated in the context of a particular sample +// e.g. single-end/paired-end data MUST also be defined and evaluated appropriately. +// TODO nf-core: Software that can be piped together SHOULD be added to separate module files +// unless there is a run-time, storage advantage in implementing in this way +// e.g. it's ok to have a single module for bwa to output BAM instead of SAM: +// bwa mem | samtools view -B -T ref.fasta +// TODO nf-core: Optional inputs are not currently supported by Nextflow. However, using an empty +// list (`[]`) instead of a file can be used to work around this issue. + +process PBMM2 { + tag "$meta.id" + label 'process_single' + + // TODO nf-core: List required Conda package(s). + // Software MUST be pinned to channel (i.e. "bioconda"), version (i.e. "1.10"). + // For Conda, the build (i.e. "h9402c20_2") must be EXCLUDED to support installation on different operating systems. + // TODO nf-core: See section in main README for further information regarding finding and adding container addresses to the section below. + conda "${moduleDir}/environment.yml" + container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? + 'https://depot.galaxyproject.org/singularity/pbmm2:1.14.99--h9ee0642_0': + 'biocontainers/pbmm2:1.14.99--h9ee0642_0' }" + + input: + // TODO nf-core: Where applicable all sample-specific information e.g. "id", "single_end", "read_group" + // MUST be provided as an input via a Groovy Map called "meta". + // This information may not be required in some instances e.g. indexing reference genome files: + // https://github.com/nf-core/modules/blob/master/modules/nf-core/bwa/index/main.nf + // TODO nf-core: Where applicable please provide/convert compressed files as input/output + // e.g. "*.fastq.gz" and NOT "*.fastq", "*.bam" and NOT "*.sam" etc. + tuple val(meta), path(bam) + tuple val(meta), path(fasta) + + output: + // TODO nf-core: Named file extensions MUST be emitted for ALL output channels + tuple val(meta), path("*.bam"), emit: bam + // TODO nf-core: List additional required output channels/values here + path "versions.yml" , emit: versions + + when: + task.ext.when == null || task.ext.when + + script: + def args = task.ext.args ?: '' + def prefix = task.ext.prefix ?: "${meta.id}" + // TODO nf-core: Where possible, a command MUST be provided to obtain the version number of the software e.g. 1.10 + // If the software is unable to output a version number on the command-line then it can be manually specified + // e.g. https://github.com/nf-core/modules/blob/master/modules/nf-core/homer/annotatepeaks/main.nf + // Each software used MUST provide the software name and version number in the YAML version file (versions.yml) + // TODO nf-core: It MUST be possible to pass additional parameters to the tool as a command-line string via the "task.ext.args" directive + // TODO nf-core: If the tool supports multi-threading then you MUST provide the appropriate parameter + // using the Nextflow "task" variable e.g. "--threads $task.cpus" + // TODO nf-core: Please replace the example samtools command below with your module's command + // TODO nf-core: Please indent the command appropriately (4 spaces!!) to help with readability ;) + """ + pbmm2 align $fasta \${bam} \${bam} + + cat <<-END_VERSIONS > versions.yml + "${task.process}": + pbmm2: \$(samtools --version |& sed '1!d ; s/samtools //') + END_VERSIONS + """ + + stub: + def args = task.ext.args ?: '' + def prefix = task.ext.prefix ?: "${meta.id}" + // TODO nf-core: A stub section should mimic the execution of the original module as best as possible + // Have a look at the following examples: + // Simple example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bcftools/annotate/main.nf#L47-L63 + // Complex example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bedtools/split/main.nf#L38-L54 + """ + touch ${prefix}.bam + + cat <<-END_VERSIONS > versions.yml + "${task.process}": + pbmm2: \$(samtools --version |& sed '1!d ; s/samtools //') + END_VERSIONS + """ +} diff --git a/modules/nf-core/pbmm2/meta.yml b/modules/nf-core/pbmm2/meta.yml new file mode 100644 index 00000000000..891060201f9 --- /dev/null +++ b/modules/nf-core/pbmm2/meta.yml @@ -0,0 +1,57 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json +name: "pbmm2" +## TODO nf-core: Add a description of the module and list keywords +description: write your description here +keywords: + - sort + - example + - genomics +tools: + - "pbmm2": + ## TODO nf-core: Add a description and other details for the software below + description: "A minimap2 frontend for PacBio native data formats" + homepage: "None" + documentation: "None" + tool_dev_url: "None" + doi: "" + licence: ['BSD-3-clause-Clear'] + +## TODO nf-core: Add a description of all of the variables used as input +input: + # Only when we have meta + - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` + + ## TODO nf-core: Delete / customise this example input + - bam: + type: file + description: Sorted BAM/CRAM/SAM file + pattern: "*.{bam,cram,sam}" + +## TODO nf-core: Add a description of all of the variables used as output +output: + #Only when we have meta + - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` + + - versions: + type: file + description: File containing software versions + pattern: "versions.yml" + ## TODO nf-core: Delete / customise this example output + - bam: + type: file + description: Sorted BAM/CRAM/SAM file + pattern: "*.{bam,cram,sam}" + +authors: + - "@tanyasarkjain" +maintainers: + - "@tanyasarkjain" diff --git a/modules/nf-core/pbmm2/tests/main.nf.test b/modules/nf-core/pbmm2/tests/main.nf.test new file mode 100644 index 00000000000..2c382a75601 --- /dev/null +++ b/modules/nf-core/pbmm2/tests/main.nf.test @@ -0,0 +1,73 @@ +// TODO nf-core: Once you have added the required tests, please run the following command to build this file: +// nf-core modules test pbmm2 +nextflow_process { + + name "Test Process PBMM2" + script "../main.nf" + process "PBMM2" + + tag "modules" + tag "modules_nfcore" + tag "pbmm2" + + // TODO nf-core: Change the test name preferably indicating the test-data and file-format used + test("pbmm2 - bam") { + + // TODO nf-core: If you are created a test for a chained module + // (the module requires running more than one process to generate the required output) + // add the 'setup' method here. + // You can find more information about how to use a 'setup' method in the docs (https://nf-co.re/docs/contributing/modules#steps-for-creating-nf-test-for-chained-modules). + + when { + process { + """ + // TODO nf-core: define inputs of the process here. Example: + + input[0] = [ + [ id:'test', single_end:false ], // meta map + file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) + ] + """ + } + } + + then { + assertAll( + { assert process.success }, + { assert snapshot(process.out).match() } + //TODO nf-core: Add all required assertions to verify the test output. + // See https://nf-co.re/docs/contributing/tutorials/nf-test_assertions for more information and examples. + ) + } + + } + + // TODO nf-core: Change the test name preferably indicating the test-data and file-format used but keep the " - stub" suffix. + test("sarscov2 - bam - stub") { + + options "-stub" + + when { + process { + """ + // TODO nf-core: define inputs of the process here. Example: + + input[0] = [ + [ id:'test', single_end:false ], // meta map + file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) + ] + """ + } + } + + then { + assertAll( + { assert process.success }, + { assert snapshot(process.out).match() } + //TODO nf-core: Add all required assertions to verify the test output. + ) + } + + } + +} diff --git a/modules/nf-core/pbmm2/tests/tags.yml b/modules/nf-core/pbmm2/tests/tags.yml new file mode 100644 index 00000000000..2472daa0786 --- /dev/null +++ b/modules/nf-core/pbmm2/tests/tags.yml @@ -0,0 +1,2 @@ +pbmm2: + - "modules/nf-core/pbmm2/**" diff --git a/modules/nf-core/pbsv/environment.yml b/modules/nf-core/pbsv/environment.yml index cd84674e12f..0bd59695b49 100644 --- a/modules/nf-core/pbsv/environment.yml +++ b/modules/nf-core/pbsv/environment.yml @@ -1,9 +1,7 @@ --- # yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json -name: "pbsv" channels: - conda-forge - bioconda - - defaults dependencies: - - "bioconda::pbsv" \ No newline at end of file + - "bioconda::pbsv=2.9.0" \ No newline at end of file diff --git a/modules/nf-core/pbsv/main.nf b/modules/nf-core/pbsv/main.nf index afd85b22df7..0a103ccbf97 100644 --- a/modules/nf-core/pbsv/main.nf +++ b/modules/nf-core/pbsv/main.nf @@ -9,7 +9,7 @@ process PBSV { input: tuple val(meta), path(bam) - path(fasta) + tuple val(meta2), path(fasta) output: tuple val(meta), path("*.vcf"), emit: vcf diff --git a/modules/nf-core/pbsv/meta.yml b/modules/nf-core/pbsv/meta.yml index 6564ad89168..1d12c9bdc9c 100644 --- a/modules/nf-core/pbsv/meta.yml +++ b/modules/nf-core/pbsv/meta.yml @@ -1,56 +1,55 @@ ---- # yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json name: "pbsv" -## TODO nf-core: Add a description of the module and list keywords -description: write your description here +description: Pacbio Structural Variant Caller in reads keywords: - - sort - - example - - genomics + - structural variants + - long-read analysis + - sequence analysis tools: - "pbsv": - ## TODO nf-core: Add a description and other details for the software below description: "pbsv - PacBio structural variant (SV) calling and analysis tools" - homepage: "None" - documentation: "None" - tool_dev_url: "None" - doi: "" + homepage: "https://github.com/tanyasarkjain/modules/tree/pbsv" + documentation: "https://github.com/tanyasarkjain/modules/tree/pbsv" + tool_dev_url: "https://github.com/tanyasarkjain/modules/tree/pbsv" licence: ["BSD-3-clause-Clear"] - -## TODO nf-core: Add a description of all of the variables used as input + identifier: "" input: - # Only when we have meta - - meta: - type: map - description: | - Groovy Map containing sample information - e.g. `[ id:'sample1', single_end:false ]` - - ## TODO nf-core: Delete / customise this example input - - bam: - type: file - description: Sorted BAM/CRAM/SAM file - pattern: "*.{bam,cram,sam}" - -## TODO nf-core: Add a description of all of the variables used as output + - - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` + - bam: + type: file + description: "A BAM file containing an aligned reads" + pattern: "*.bam" + - - meta2: + type: map + description: | + Groovy Map containing reference information + e.g. [ id:'test' ] + - fasta: + type: file + description: Fasta file output: - #Only when we have meta - - meta: - type: map - description: | - Groovy Map containing sample information - e.g. `[ id:'sample1', single_end:false ]` - + - vcf: + - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` + pattern: "*.vcf.gz" + - "*.vcf": + type: file + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` + pattern: "*.vcf.gz" - versions: - type: file - description: File containing software versions - pattern: "versions.yml" - ## TODO nf-core: Delete / customise this example output - - bam: - type: file - description: Sorted BAM/CRAM/SAM file - pattern: "*.{bam,cram,sam}" - + - versions.yml: + type: file + description: File containing software versions + pattern: "versions.yml" authors: - "@tanyasarkjain" maintainers: diff --git a/modules/nf-core/pbsv/tests/main.nf.test b/modules/nf-core/pbsv/tests/main.nf.test index cbf80381b19..5f421f110cf 100644 --- a/modules/nf-core/pbsv/tests/main.nf.test +++ b/modules/nf-core/pbsv/tests/main.nf.test @@ -1,5 +1,3 @@ -// TODO nf-core: Once you have added the required tests, please run the following command to build this file: -// nf-core modules test pbsv nextflow_process { name "Test Process PBSV" @@ -13,15 +11,14 @@ nextflow_process { test("pbsv_bam") { when { process { - """ - // TODO nf-core: define inputs of the process here. Example: - + """ input[0] = [ [ id:'test', single_end:false ], // meta map file(params.modules_testdata_base_path + 'genomics/homo_sapiens/pacbio/bam/NA03697B2_downsampled.pbmm2.repeats.bam', checkIfExists: true) ] input[1] = [ + [ id:'test', single_end:false ], // meta map file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome3.fasta', checkIfExists: true) ] """ @@ -46,14 +43,13 @@ nextflow_process { when { process { - """ - // TODO nf-core: define inputs of the process here. Example: - + """ input[0] = [ [ id:'test', single_end:false ], // meta map file(params.modules_testdata_base_path + 'genomics/homo_sapiens/pacbio/bam/NA03697B2_downsampled.pbmm2.repeats.bam', checkIfExists: true) ] input[1] = [ + [ id:'test', single_end:false ], // meta map file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome3.fasta', checkIfExists: true) ] """ From e6ffe06ac128e1482c222ad628ca1047bae9b3b1 Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Tue, 22 Oct 2024 00:06:22 -0700 Subject: [PATCH 06/25] changed website: --- modules/nf-core/pbsv/meta.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/nf-core/pbsv/meta.yml b/modules/nf-core/pbsv/meta.yml index 1d12c9bdc9c..f17cae43c98 100644 --- a/modules/nf-core/pbsv/meta.yml +++ b/modules/nf-core/pbsv/meta.yml @@ -8,9 +8,9 @@ keywords: tools: - "pbsv": description: "pbsv - PacBio structural variant (SV) calling and analysis tools" - homepage: "https://github.com/tanyasarkjain/modules/tree/pbsv" - documentation: "https://github.com/tanyasarkjain/modules/tree/pbsv" - tool_dev_url: "https://github.com/tanyasarkjain/modules/tree/pbsv" + homepage: "https://github.com/PacificBiosciences/pbsv" + documentation: "https://github.com/PacificBiosciences/pbsv" + tool_dev_url: "https://github.com/PacificBiosciences/pbsv" licence: ["BSD-3-clause-Clear"] identifier: "" input: From de912b137f22926cf2666efde2dd85ef8d1f80bd Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Tue, 22 Oct 2024 00:40:45 -0700 Subject: [PATCH 07/25] update --- modules/nf-core/hiphase/environment.yml | 9 --- modules/nf-core/hiphase/main.nf | 91 ---------------------- modules/nf-core/hiphase/meta.yml | 57 -------------- modules/nf-core/hiphase/tests/main.nf.test | 73 ----------------- modules/nf-core/hiphase/tests/tags.yml | 2 - modules/nf-core/humid/tests/main.nf.test | 4 +- modules/nf-core/pbmm2/environment.yml | 9 --- modules/nf-core/pbmm2/main.nf | 86 -------------------- modules/nf-core/pbmm2/meta.yml | 57 -------------- modules/nf-core/pbmm2/tests/main.nf.test | 73 ----------------- modules/nf-core/pbmm2/tests/tags.yml | 2 - 11 files changed, 1 insertion(+), 462 deletions(-) delete mode 100644 modules/nf-core/hiphase/environment.yml delete mode 100644 modules/nf-core/hiphase/main.nf delete mode 100644 modules/nf-core/hiphase/meta.yml delete mode 100644 modules/nf-core/hiphase/tests/main.nf.test delete mode 100644 modules/nf-core/hiphase/tests/tags.yml delete mode 100644 modules/nf-core/pbmm2/environment.yml delete mode 100644 modules/nf-core/pbmm2/main.nf delete mode 100644 modules/nf-core/pbmm2/meta.yml delete mode 100644 modules/nf-core/pbmm2/tests/main.nf.test delete mode 100644 modules/nf-core/pbmm2/tests/tags.yml diff --git a/modules/nf-core/hiphase/environment.yml b/modules/nf-core/hiphase/environment.yml deleted file mode 100644 index cc1b89cdd7c..00000000000 --- a/modules/nf-core/hiphase/environment.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json -name: "hiphase" -channels: - - conda-forge - - bioconda - - defaults -dependencies: - - "bioconda::hiphase=1.4.5" diff --git a/modules/nf-core/hiphase/main.nf b/modules/nf-core/hiphase/main.nf deleted file mode 100644 index a1ddf21eb58..00000000000 --- a/modules/nf-core/hiphase/main.nf +++ /dev/null @@ -1,91 +0,0 @@ -// TODO nf-core: If in doubt look at other nf-core/modules to see how we are doing things! :) -// https://github.com/nf-core/modules/tree/master/modules/nf-core/ -// You can also ask for help via your pull request or on the #modules channel on the nf-core Slack workspace: -// https://nf-co.re/join -// TODO nf-core: A module file SHOULD only define input and output files as command-line parameters. -// All other parameters MUST be provided using the "task.ext" directive, see here: -// https://www.nextflow.io/docs/latest/process.html#ext -// where "task.ext" is a string. -// Any parameters that need to be evaluated in the context of a particular sample -// e.g. single-end/paired-end data MUST also be defined and evaluated appropriately. -// TODO nf-core: Software that can be piped together SHOULD be added to separate module files -// unless there is a run-time, storage advantage in implementing in this way -// e.g. it's ok to have a single module for bwa to output BAM instead of SAM: -// bwa mem | samtools view -B -T ref.fasta -// TODO nf-core: Optional inputs are not currently supported by Nextflow. However, using an empty -// list (`[]`) instead of a file can be used to work around this issue. - -process HIPHASE { - tag "$meta.id" - label 'process_single' - - // TODO nf-core: List required Conda package(s). - // Software MUST be pinned to channel (i.e. "bioconda"), version (i.e. "1.10"). - // For Conda, the build (i.e. "h9402c20_2") must be EXCLUDED to support installation on different operating systems. - // TODO nf-core: See section in main README for further information regarding finding and adding container addresses to the section below. - conda "${moduleDir}/environment.yml" - container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? - 'https://depot.galaxyproject.org/singularity/hiphase:1.4.5--h9ee0642_0': - 'biocontainers/hiphase:1.4.5--h9ee0642_0' }" - - input: - // TODO nf-core: Where applicable all sample-specific information e.g. "id", "single_end", "read_group" - // MUST be provided as an input via a Groovy Map called "meta". - // This information may not be required in some instances e.g. indexing reference genome files: - // https://github.com/nf-core/modules/blob/master/modules/nf-core/bwa/index/main.nf - // TODO nf-core: Where applicable please provide/convert compressed files as input/output - // e.g. "*.fastq.gz" and NOT "*.fastq", "*.bam" and NOT "*.sam" etc. - tuple val(meta), path(bam) - - output: - // TODO nf-core: Named file extensions MUST be emitted for ALL output channels - tuple val(meta), path("*.bam"), emit: bam - // TODO nf-core: List additional required output channels/values here - path "versions.yml" , emit: versions - - when: - task.ext.when == null || task.ext.when - - script: - def args = task.ext.args ?: '' - def prefix = task.ext.prefix ?: "${meta.id}" - // TODO nf-core: Where possible, a command MUST be provided to obtain the version number of the software e.g. 1.10 - // If the software is unable to output a version number on the command-line then it can be manually specified - // e.g. https://github.com/nf-core/modules/blob/master/modules/nf-core/homer/annotatepeaks/main.nf - // Each software used MUST provide the software name and version number in the YAML version file (versions.yml) - // TODO nf-core: It MUST be possible to pass additional parameters to the tool as a command-line string via the "task.ext.args" directive - // TODO nf-core: If the tool supports multi-threading then you MUST provide the appropriate parameter - // using the Nextflow "task" variable e.g. "--threads $task.cpus" - // TODO nf-core: Please replace the example samtools command below with your module's command - // TODO nf-core: Please indent the command appropriately (4 spaces!!) to help with readability ;) - """ - samtools \\ - sort \\ - $args \\ - -@ $task.cpus \\ - -o ${prefix}.bam \\ - -T $prefix \\ - $bam - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - hiphase: \$(samtools --version |& sed '1!d ; s/samtools //') - END_VERSIONS - """ - - stub: - def args = task.ext.args ?: '' - def prefix = task.ext.prefix ?: "${meta.id}" - // TODO nf-core: A stub section should mimic the execution of the original module as best as possible - // Have a look at the following examples: - // Simple example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bcftools/annotate/main.nf#L47-L63 - // Complex example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bedtools/split/main.nf#L38-L54 - """ - touch ${prefix}.bam - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - hiphase: \$(samtools --version |& sed '1!d ; s/samtools //') - END_VERSIONS - """ -} diff --git a/modules/nf-core/hiphase/meta.yml b/modules/nf-core/hiphase/meta.yml deleted file mode 100644 index f0df5dfec51..00000000000 --- a/modules/nf-core/hiphase/meta.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json -name: "hiphase" -## TODO nf-core: Add a description of the module and list keywords -description: write your description here -keywords: - - sort - - example - - genomics -tools: - - "hiphase": - ## TODO nf-core: Add a description and other details for the software below - description: "Small and structural variant phasing tool for PacBio HiFi reads" - homepage: "None" - documentation: "None" - tool_dev_url: "None" - doi: "" - licence: ['BSD-3-clause-Clear'] - -## TODO nf-core: Add a description of all of the variables used as input -input: - # Only when we have meta - - meta: - type: map - description: | - Groovy Map containing sample information - e.g. `[ id:'sample1', single_end:false ]` - - ## TODO nf-core: Delete / customise this example input - - bam: - type: file - description: Sorted BAM/CRAM/SAM file - pattern: "*.{bam,cram,sam}" - -## TODO nf-core: Add a description of all of the variables used as output -output: - #Only when we have meta - - meta: - type: map - description: | - Groovy Map containing sample information - e.g. `[ id:'sample1', single_end:false ]` - - - versions: - type: file - description: File containing software versions - pattern: "versions.yml" - ## TODO nf-core: Delete / customise this example output - - bam: - type: file - description: Sorted BAM/CRAM/SAM file - pattern: "*.{bam,cram,sam}" - -authors: - - "@tanyasarkjain" -maintainers: - - "@tanyasarkjain" diff --git a/modules/nf-core/hiphase/tests/main.nf.test b/modules/nf-core/hiphase/tests/main.nf.test deleted file mode 100644 index f5fa06cda68..00000000000 --- a/modules/nf-core/hiphase/tests/main.nf.test +++ /dev/null @@ -1,73 +0,0 @@ -// TODO nf-core: Once you have added the required tests, please run the following command to build this file: -// nf-core modules test hiphase -nextflow_process { - - name "Test Process HIPHASE" - script "../main.nf" - process "HIPHASE" - - tag "modules" - tag "modules_nfcore" - tag "hiphase" - - // TODO nf-core: Change the test name preferably indicating the test-data and file-format used - test("sarscov2 - bam") { - - // TODO nf-core: If you are created a test for a chained module - // (the module requires running more than one process to generate the required output) - // add the 'setup' method here. - // You can find more information about how to use a 'setup' method in the docs (https://nf-co.re/docs/contributing/modules#steps-for-creating-nf-test-for-chained-modules). - - when { - process { - """ - // TODO nf-core: define inputs of the process here. Example: - - input[0] = [ - [ id:'test', single_end:false ], // meta map - file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) - ] - """ - } - } - - then { - assertAll( - { assert process.success }, - { assert snapshot(process.out).match() } - //TODO nf-core: Add all required assertions to verify the test output. - // See https://nf-co.re/docs/contributing/tutorials/nf-test_assertions for more information and examples. - ) - } - - } - - // TODO nf-core: Change the test name preferably indicating the test-data and file-format used but keep the " - stub" suffix. - test("sarscov2 - bam - stub") { - - options "-stub" - - when { - process { - """ - // TODO nf-core: define inputs of the process here. Example: - - input[0] = [ - [ id:'test', single_end:false ], // meta map - file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) - ] - """ - } - } - - then { - assertAll( - { assert process.success }, - { assert snapshot(process.out).match() } - //TODO nf-core: Add all required assertions to verify the test output. - ) - } - - } - -} diff --git a/modules/nf-core/hiphase/tests/tags.yml b/modules/nf-core/hiphase/tests/tags.yml deleted file mode 100644 index 33a31bb1dc0..00000000000 --- a/modules/nf-core/hiphase/tests/tags.yml +++ /dev/null @@ -1,2 +0,0 @@ -hiphase: - - "modules/nf-core/hiphase/**" diff --git a/modules/nf-core/humid/tests/main.nf.test b/modules/nf-core/humid/tests/main.nf.test index 3d0b839ac1e..987bc20cc03 100644 --- a/modules/nf-core/humid/tests/main.nf.test +++ b/modules/nf-core/humid/tests/main.nf.test @@ -77,9 +77,7 @@ nextflow_process { { assert snapshot(process.out.log, process.out.stats, process.out.versions).match()}, - { - println process.out.dedup[0][1] - assert file(process.out.dedup[0][1].find { + {assert file(process.out.dedup[0][1].find { file(it).name == "test_1_dedup.fastq.gz" }).exists()}, {assert file(process.out.dedup[0][1].find { file(it).name == "test_2_dedup.fastq.gz" }).exists()}, diff --git a/modules/nf-core/pbmm2/environment.yml b/modules/nf-core/pbmm2/environment.yml deleted file mode 100644 index ccddb46fed5..00000000000 --- a/modules/nf-core/pbmm2/environment.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json -name: "pbmm2" -channels: - - conda-forge - - bioconda - - defaults -dependencies: - - "bioconda::pbmm2=1.14.99" diff --git a/modules/nf-core/pbmm2/main.nf b/modules/nf-core/pbmm2/main.nf deleted file mode 100644 index 685262719f0..00000000000 --- a/modules/nf-core/pbmm2/main.nf +++ /dev/null @@ -1,86 +0,0 @@ -// TODO nf-core: If in doubt look at other nf-core/modules to see how we are doing things! :) -// https://github.com/nf-core/modules/tree/master/modules/nf-core/ -// You can also ask for help via your pull request or on the #modules channel on the nf-core Slack workspace: -// https://nf-co.re/join -// TODO nf-core: A module file SHOULD only define input and output files as command-line parameters. -// All other parameters MUST be provided using the "task.ext" directive, see here: -// https://www.nextflow.io/docs/latest/process.html#ext -// where "task.ext" is a string. -// Any parameters that need to be evaluated in the context of a particular sample -// e.g. single-end/paired-end data MUST also be defined and evaluated appropriately. -// TODO nf-core: Software that can be piped together SHOULD be added to separate module files -// unless there is a run-time, storage advantage in implementing in this way -// e.g. it's ok to have a single module for bwa to output BAM instead of SAM: -// bwa mem | samtools view -B -T ref.fasta -// TODO nf-core: Optional inputs are not currently supported by Nextflow. However, using an empty -// list (`[]`) instead of a file can be used to work around this issue. - -process PBMM2 { - tag "$meta.id" - label 'process_single' - - // TODO nf-core: List required Conda package(s). - // Software MUST be pinned to channel (i.e. "bioconda"), version (i.e. "1.10"). - // For Conda, the build (i.e. "h9402c20_2") must be EXCLUDED to support installation on different operating systems. - // TODO nf-core: See section in main README for further information regarding finding and adding container addresses to the section below. - conda "${moduleDir}/environment.yml" - container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? - 'https://depot.galaxyproject.org/singularity/pbmm2:1.14.99--h9ee0642_0': - 'biocontainers/pbmm2:1.14.99--h9ee0642_0' }" - - input: - // TODO nf-core: Where applicable all sample-specific information e.g. "id", "single_end", "read_group" - // MUST be provided as an input via a Groovy Map called "meta". - // This information may not be required in some instances e.g. indexing reference genome files: - // https://github.com/nf-core/modules/blob/master/modules/nf-core/bwa/index/main.nf - // TODO nf-core: Where applicable please provide/convert compressed files as input/output - // e.g. "*.fastq.gz" and NOT "*.fastq", "*.bam" and NOT "*.sam" etc. - tuple val(meta), path(bam) - tuple val(meta), path(fasta) - - output: - // TODO nf-core: Named file extensions MUST be emitted for ALL output channels - tuple val(meta), path("*.bam"), emit: bam - // TODO nf-core: List additional required output channels/values here - path "versions.yml" , emit: versions - - when: - task.ext.when == null || task.ext.when - - script: - def args = task.ext.args ?: '' - def prefix = task.ext.prefix ?: "${meta.id}" - // TODO nf-core: Where possible, a command MUST be provided to obtain the version number of the software e.g. 1.10 - // If the software is unable to output a version number on the command-line then it can be manually specified - // e.g. https://github.com/nf-core/modules/blob/master/modules/nf-core/homer/annotatepeaks/main.nf - // Each software used MUST provide the software name and version number in the YAML version file (versions.yml) - // TODO nf-core: It MUST be possible to pass additional parameters to the tool as a command-line string via the "task.ext.args" directive - // TODO nf-core: If the tool supports multi-threading then you MUST provide the appropriate parameter - // using the Nextflow "task" variable e.g. "--threads $task.cpus" - // TODO nf-core: Please replace the example samtools command below with your module's command - // TODO nf-core: Please indent the command appropriately (4 spaces!!) to help with readability ;) - """ - pbmm2 align $fasta \${bam} \${bam} - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - pbmm2: \$(samtools --version |& sed '1!d ; s/samtools //') - END_VERSIONS - """ - - stub: - def args = task.ext.args ?: '' - def prefix = task.ext.prefix ?: "${meta.id}" - // TODO nf-core: A stub section should mimic the execution of the original module as best as possible - // Have a look at the following examples: - // Simple example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bcftools/annotate/main.nf#L47-L63 - // Complex example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bedtools/split/main.nf#L38-L54 - """ - touch ${prefix}.bam - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - pbmm2: \$(samtools --version |& sed '1!d ; s/samtools //') - END_VERSIONS - """ -} diff --git a/modules/nf-core/pbmm2/meta.yml b/modules/nf-core/pbmm2/meta.yml deleted file mode 100644 index 891060201f9..00000000000 --- a/modules/nf-core/pbmm2/meta.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json -name: "pbmm2" -## TODO nf-core: Add a description of the module and list keywords -description: write your description here -keywords: - - sort - - example - - genomics -tools: - - "pbmm2": - ## TODO nf-core: Add a description and other details for the software below - description: "A minimap2 frontend for PacBio native data formats" - homepage: "None" - documentation: "None" - tool_dev_url: "None" - doi: "" - licence: ['BSD-3-clause-Clear'] - -## TODO nf-core: Add a description of all of the variables used as input -input: - # Only when we have meta - - meta: - type: map - description: | - Groovy Map containing sample information - e.g. `[ id:'sample1', single_end:false ]` - - ## TODO nf-core: Delete / customise this example input - - bam: - type: file - description: Sorted BAM/CRAM/SAM file - pattern: "*.{bam,cram,sam}" - -## TODO nf-core: Add a description of all of the variables used as output -output: - #Only when we have meta - - meta: - type: map - description: | - Groovy Map containing sample information - e.g. `[ id:'sample1', single_end:false ]` - - - versions: - type: file - description: File containing software versions - pattern: "versions.yml" - ## TODO nf-core: Delete / customise this example output - - bam: - type: file - description: Sorted BAM/CRAM/SAM file - pattern: "*.{bam,cram,sam}" - -authors: - - "@tanyasarkjain" -maintainers: - - "@tanyasarkjain" diff --git a/modules/nf-core/pbmm2/tests/main.nf.test b/modules/nf-core/pbmm2/tests/main.nf.test deleted file mode 100644 index 2c382a75601..00000000000 --- a/modules/nf-core/pbmm2/tests/main.nf.test +++ /dev/null @@ -1,73 +0,0 @@ -// TODO nf-core: Once you have added the required tests, please run the following command to build this file: -// nf-core modules test pbmm2 -nextflow_process { - - name "Test Process PBMM2" - script "../main.nf" - process "PBMM2" - - tag "modules" - tag "modules_nfcore" - tag "pbmm2" - - // TODO nf-core: Change the test name preferably indicating the test-data and file-format used - test("pbmm2 - bam") { - - // TODO nf-core: If you are created a test for a chained module - // (the module requires running more than one process to generate the required output) - // add the 'setup' method here. - // You can find more information about how to use a 'setup' method in the docs (https://nf-co.re/docs/contributing/modules#steps-for-creating-nf-test-for-chained-modules). - - when { - process { - """ - // TODO nf-core: define inputs of the process here. Example: - - input[0] = [ - [ id:'test', single_end:false ], // meta map - file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) - ] - """ - } - } - - then { - assertAll( - { assert process.success }, - { assert snapshot(process.out).match() } - //TODO nf-core: Add all required assertions to verify the test output. - // See https://nf-co.re/docs/contributing/tutorials/nf-test_assertions for more information and examples. - ) - } - - } - - // TODO nf-core: Change the test name preferably indicating the test-data and file-format used but keep the " - stub" suffix. - test("sarscov2 - bam - stub") { - - options "-stub" - - when { - process { - """ - // TODO nf-core: define inputs of the process here. Example: - - input[0] = [ - [ id:'test', single_end:false ], // meta map - file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true) - ] - """ - } - } - - then { - assertAll( - { assert process.success }, - { assert snapshot(process.out).match() } - //TODO nf-core: Add all required assertions to verify the test output. - ) - } - - } - -} diff --git a/modules/nf-core/pbmm2/tests/tags.yml b/modules/nf-core/pbmm2/tests/tags.yml deleted file mode 100644 index 2472daa0786..00000000000 --- a/modules/nf-core/pbmm2/tests/tags.yml +++ /dev/null @@ -1,2 +0,0 @@ -pbmm2: - - "modules/nf-core/pbmm2/**" From 763cc708e8b5fb669284dd7fbbe3093c99381b33 Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Tue, 22 Oct 2024 00:42:14 -0700 Subject: [PATCH 08/25] deleting accidental file --- modules/modules | 208 ------------------------------------------------ 1 file changed, 208 deletions(-) delete mode 100644 modules/modules diff --git a/modules/modules b/modules/modules deleted file mode 100644 index e8b417360df..00000000000 --- a/modules/modules +++ /dev/null @@ -1,208 +0,0 @@ ->chr19:45760000-45770300 -catgttggccaggctggtctccaactcctgacctcgagtgatccgcccac -cttggcctcctagagtgctgggattacaggtgtgagccaccgtgcccagc -Ttcccacatcattttacaactactctacgaagcagggtctcctgtggccc -cattttacagataaggaaattgaaatcaaaagactaagctgggcgcggtg -gctcacacctgtaatctcagcagtttgagaggctgacgtaggcggatcac -ctgagatcaggagttcaagaccagcctggccaacatggggaaaccccatt -tctactaaaaatacaagaaGTGTccgggcgtggtggctcacgcctgtaat -cccactattttgggaggccgaggagggcagatcacctgaggtcaggagtt -ggagaccaaccagtctggccatcatggcgaaatactatctctactaaaaa -tacaaaattagccgggtgtggtggtacgtgcctgtaatcccagctactca -ggaggctgaggcagaagaatcgcttaaacctgggaggcgggggttgcagt -aagccaagatggcaccgttggactgcagcctgggcaacaagagcgaaacc -cagtctcaaaaaaggaaaagaaaaagaaaaagaaaTTATCAGGGTGTggc -cgggcgtggtggctcatgcctatacttctagcactttgggaggctgaggc -gggcagatcacctgaggtcaggagtttaaacctagcttgaccaatatgat -gaaaccccctctctactaaaaatacaaaattagctgggcgtggtggtggg -cacttgtaaccccagttactcaggagtctgaggcaggagaatcacttgaa -cccaagaggtggagaatggagctgagatggtgccattgcactccagcctg -agggacaagagtaagactccgtctcaaaaaaaaaaaaaagaaagaaaaga -aaaaaaagaaaagaaaggaagaaagaaagaaagacagggtcttgctttgt -tgcccaggctggagtgcagtgtcaccatcatagatcagtgccttgaactc -ctgggctcaaatgaccctcccacaccaccatgcccagctggttttttaaa -ttatttttaaatttaacttaattcaatttctttttttttttttgagacag -agtctcactctgtcacccaggctggagtgcagtggtacgatctcggctca -ctgcaacctccgcctcctggatttaagcgattcttgtgcctcagcctcca -gagtagctgggactacaggcgcccaccaacatacctggctaattttttag -tatttttagacagagtttcgccatgttggccaggctggttttgaactcct -gacctcaggtgatcctcctgcctcagcctccgaaagtgctgagattacag -gcatgagccactgcgcctggccTAtttttttttttttttttttttttttt -ttgtagaacaaggtctctctatgttgcccaggctggtctgtaactcctgg -cctcaagcagtcctcctgcctcagcctcccagagtgttggggttacaggc -gtaagccaccacaccctgccAATCTGAGCTGCTGCTAATGCTCATGTTAT -GTCCTAGAAAAGCAGTACTGGGGGGATGAAGGGGCACCACTTGTCTCCCC -TCCCATCTTTCTCCCTCATCATGCCCCAGGACACAGCCTCCAAGGCCCCC -AAAGACCCTCCTGAGTCCCACAGCCTGCACCGGTCCTCAGTCTCGCTGGA -CCACTGCTACCTCTCGCTGAGCGGGAACAGCAAGGCGCCAtccagctcca -gctccagctccagctccagctccagctcGGAGGACAGCGACTCGGAGCCC -CTGTGGAAGCAGCGAGAGGTGAGAGACACGGCCGCATGCCAGGGCCAGCA -GGGCCTCCTTCCTCTCTCACCACCCTCTCCCTCCCCCAGGATATGCAGGC -CAACCCTGTGGGCACGCCGGGCTCCAGCGAAGAGGACGAAGACACCACAT -GGACCCCCACCCGGCTGGCCTCACCCCTGCTGGCAGCTGAGAAAAAGGCC -ACGAAGGGCCAAGTAGCCAGGGCCCCTGTGAAGCCCAAGGAGAAGAAGAA -AGGCCCCTGCCCACCCCAGATGAAGAAGAAGTGTGTCAACGGCTTCATCA -TGTTCTGCAGGATGAACCGGAAGCAGTACATCCGGTGGGTAGGGGGTCGT -CTTTGGCCCTGGGGAAGGCCCTGGCTTCGTTCTCTGCCCGCAGCCTGGCC -ATGCCGCTCCTCACAACTGTCTGACACTTTTTCCCCCTCCGAGACCCCAC -AAACCCTTCGTGGACCACAGTTCTTCCCCAGAACTGAACCCGGCCCCATt -gtattggacagggtccatccattgtcagcgctgaaacccaattcaggctt -tagacttcagaaaaaaaggagttttttttgttttgttttgttttttgaga -cagagtctcactctattgcccaggctgtagtgcagtggcacaatcacagc -tcactgcaatgtctgcctcccgggctcaaatcactgcaacctctgcctct -cagattctcctgcctcagcctcctgagtagctgggataacaggcgcgcca -tcagctaatttttgtatttttagtagagacagggtttcaccatgttggcc -aggctggtctcgaatgcctcacctcaagtgatctgcctgcctcggcctct -caaattgctgggattacaggtgtgagccatcaggcccagcaagaaaagaa -aatgaattggcttatataacctagaaaacaagggcgggtatagactgcct -tgagacatagctggttttagggctcacacaggctgtctggaatctttgtc -cttttcacccagttcctctgtcttccgggctggcttcattctctggcagg -tggggtcaccccaggaggcacaggctcgggtcctgtcccccacccaagcg -accccgggaggaggagaggtctctaaggttttaagcaaagtccttgggac -tgactttggtagatccggtgccaaccctgaaccagtcactgccaggCCTG -GAGCCAGGGGATGGGGAGGCCCCCCCCAAGCCACAGTGGAAAACAGCTAG -TTCCTTTACAGGAAGATCCAGATGTGGGGGCCAGGAGCGGTGCCCACAGG -TCCCCTGCACTCTCCTGGGACACCAGGTGCCCCCTTGTGAACAGCCGCTG -AGTCCAGCTCCCTCTGCCTCCTCAGCTCCAGAGGGTGGTCTTGGAGGCCT -TGTAGACCCACAAGGCTAGGAAGGGTCTGAGTTCTCAGTCAGGGTGTCCT -GCAGACCTCTCCTTACCTCCTCCTCCTTCCTGTCCCAGATCCTGCCCTGG -AACCGCTTCCACAGCTGCCACCAAGGAGCTGGCCCAGCTGTGGCGGGTGA -TGACCCAGCAGGAGCGGAGGCCATACTGGTGAGAGGCTCCGGCCCCGAGG -TGTGGGTGGGGGGTGGAAGAGCCTCCCTACCCCGGAACCCTGCTCTGTCT -CTGGAGCCTTGGGTGTCATGGCATGGGAGACTGGGCCGAGGAATTTGCGT -GTTGCCCCTTCTTATGAAACCCTTGGGGGTGACACAGGTGTAGGGGTACC -CCACCACAGCTAAGCTGGGGAACAGCTGAGCCCAGACATGGACCCCTGCC -TCAATTCTTTTGCTGT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AGCAGGGCGTCATGCAC -AAGAAAGCTTTGCACTTTGCGAACCAACGATAGGTGGGGGTGCGTGGAGG -ATGGAACACGGACGGCCCGGCTTGCTGCCTTCCCAGGCCTGCAGTTTGCC -CATCCACGTCAGGGCCTCAGCCTGGCCGAAAGAAAGAAATGGTCTGTGAT -CCCCCcagcagcagcagcagcagcagcagcagcagcagcagcagcagcag -cagcagcagcagcagcaTTCCCGGCTACAAGGACCCTTCGAgccccgttc -g From a4e0099756360c60e9d212a442eb7a9e4a22e8dd Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Tue, 22 Oct 2024 00:43:06 -0700 Subject: [PATCH 09/25] small tweak --- modules/nf-core/pbsv/e1.fasta | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 modules/nf-core/pbsv/e1.fasta diff --git a/modules/nf-core/pbsv/e1.fasta b/modules/nf-core/pbsv/e1.fasta deleted file mode 100644 index e69de29bb2d..00000000000 From 1ded93773a170c63fe2eca33fc987633a3d7eec3 Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Tue, 22 Oct 2024 00:44:21 -0700 Subject: [PATCH 10/25] updating the meta description --- modules/nf-core/pbsv/meta.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/nf-core/pbsv/meta.yml b/modules/nf-core/pbsv/meta.yml index f17cae43c98..b9f52774b48 100644 --- a/modules/nf-core/pbsv/meta.yml +++ b/modules/nf-core/pbsv/meta.yml @@ -41,9 +41,7 @@ output: pattern: "*.vcf.gz" - "*.vcf": type: file - description: | - Groovy Map containing sample information - e.g. `[ id:'sample1', single_end:false ]` + description: VCF file pattern: "*.vcf.gz" - versions: - versions.yml: From b7a62e528114d3983bc33b06a8b34d24a925cd3f Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Tue, 22 Oct 2024 00:45:08 -0700 Subject: [PATCH 11/25] pretty --- modules/nf-core/pbsv/environment.yml | 2 +- modules/nf-core/pbsv/meta.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nf-core/pbsv/environment.yml b/modules/nf-core/pbsv/environment.yml index 0bd59695b49..a48d2440108 100644 --- a/modules/nf-core/pbsv/environment.yml +++ b/modules/nf-core/pbsv/environment.yml @@ -4,4 +4,4 @@ channels: - conda-forge - bioconda dependencies: - - "bioconda::pbsv=2.9.0" \ No newline at end of file + - "bioconda::pbsv=2.9.0" diff --git a/modules/nf-core/pbsv/meta.yml b/modules/nf-core/pbsv/meta.yml index b9f52774b48..0979d078f70 100644 --- a/modules/nf-core/pbsv/meta.yml +++ b/modules/nf-core/pbsv/meta.yml @@ -41,7 +41,7 @@ output: pattern: "*.vcf.gz" - "*.vcf": type: file - description: VCF file + description: VCF file pattern: "*.vcf.gz" - versions: - versions.yml: From 23b2631b4b80d8281778dcbad56430064648cd9b Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Tue, 22 Oct 2024 00:57:24 -0700 Subject: [PATCH 12/25] removing trailing space --- modules/nf-core/pbsv/main.nf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nf-core/pbsv/main.nf b/modules/nf-core/pbsv/main.nf index 0a103ccbf97..beabb4cbed6 100644 --- a/modules/nf-core/pbsv/main.nf +++ b/modules/nf-core/pbsv/main.nf @@ -39,7 +39,7 @@ process PBSV { touch ${prefix}.pbsv.vcf cat <<-END_VERSIONS > versions.yml - "${task.process}": + "${task.process}": pbsv: \$(pbsv --version |& sed '1!d ; s/pbsv //') END_VERSIONS """ From e8f1cc8bc1e446e89bad72cc7543363955dc185c Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Tue, 22 Oct 2024 01:09:11 -0700 Subject: [PATCH 13/25] space --- modules/nf-core/pbsv/main.nf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nf-core/pbsv/main.nf b/modules/nf-core/pbsv/main.nf index beabb4cbed6..2e4a416fcd6 100644 --- a/modules/nf-core/pbsv/main.nf +++ b/modules/nf-core/pbsv/main.nf @@ -43,4 +43,4 @@ process PBSV { pbsv: \$(pbsv --version |& sed '1!d ; s/pbsv //') END_VERSIONS """ -} +} \ No newline at end of file From 108d99cedfc98f0944089e4e8f5aa8749d29c4e4 Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Tue, 22 Oct 2024 01:18:56 -0700 Subject: [PATCH 14/25] newline --- modules/nf-core/pbsv/main.nf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nf-core/pbsv/main.nf b/modules/nf-core/pbsv/main.nf index 2e4a416fcd6..beabb4cbed6 100644 --- a/modules/nf-core/pbsv/main.nf +++ b/modules/nf-core/pbsv/main.nf @@ -43,4 +43,4 @@ process PBSV { pbsv: \$(pbsv --version |& sed '1!d ; s/pbsv //') END_VERSIONS """ -} \ No newline at end of file +} From 9c921cf79f7729995fc1b41afb146973e40dcd0d Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Tue, 22 Oct 2024 11:37:46 -0700 Subject: [PATCH 15/25] should pass version test --- modules/nf-core/pbsv/main.nf | 1 - modules/nf-core/pbsv/tests/main.nf.test | 10 +++++----- modules/nf-core/pbsv/tests/main.nf.test.snap | 6 +++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/modules/nf-core/pbsv/main.nf b/modules/nf-core/pbsv/main.nf index beabb4cbed6..de7533c3c70 100644 --- a/modules/nf-core/pbsv/main.nf +++ b/modules/nf-core/pbsv/main.nf @@ -35,7 +35,6 @@ process PBSV { def args = task.ext.args ?: '' def prefix = task.ext.prefix ?: "${meta.id}" """ - touch ${prefix}.bam touch ${prefix}.pbsv.vcf cat <<-END_VERSIONS > versions.yml diff --git a/modules/nf-core/pbsv/tests/main.nf.test b/modules/nf-core/pbsv/tests/main.nf.test index 5f421f110cf..2acc4ddcb93 100644 --- a/modules/nf-core/pbsv/tests/main.nf.test +++ b/modules/nf-core/pbsv/tests/main.nf.test @@ -11,7 +11,7 @@ nextflow_process { test("pbsv_bam") { when { process { - """ + """ input[0] = [ [ id:'test', single_end:false ], // meta map file(params.modules_testdata_base_path + 'genomics/homo_sapiens/pacbio/bam/NA03697B2_downsampled.pbmm2.repeats.bam', checkIfExists: true) @@ -29,7 +29,7 @@ nextflow_process { assertAll( { assert process.success }, { assert snapshot(process.out.versions).match("versions") }, - { assert process.out.vcf != null }, + { assert process.out.vcf != null }, { assert file(process.out.vcf[0][1]).name == "test.pbsv.vcf" } ) } @@ -43,15 +43,15 @@ nextflow_process { when { process { - """ + """ input[0] = [ [ id:'test', single_end:false ], // meta map file(params.modules_testdata_base_path + 'genomics/homo_sapiens/pacbio/bam/NA03697B2_downsampled.pbmm2.repeats.bam', checkIfExists: true) - ] + ] input[1] = [ [ id:'test', single_end:false ], // meta map file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome3.fasta', checkIfExists: true) - ] + ] """ } } diff --git a/modules/nf-core/pbsv/tests/main.nf.test.snap b/modules/nf-core/pbsv/tests/main.nf.test.snap index 4d73565e94e..5fecb200a5a 100644 --- a/modules/nf-core/pbsv/tests/main.nf.test.snap +++ b/modules/nf-core/pbsv/tests/main.nf.test.snap @@ -24,7 +24,7 @@ ] ], "1": [ - "versions.yml:md5,78a8c3eb6a67916a463a6d1dfaa4fae4" + "versions.yml:md5,114b69a5e731b0691d6e523c12f7a8ca" ], "vcf": [ [ @@ -36,7 +36,7 @@ ] ], "versions": [ - "versions.yml:md5,78a8c3eb6a67916a463a6d1dfaa4fae4" + "versions.yml:md5,114b69a5e731b0691d6e523c12f7a8ca" ] } ], @@ -44,6 +44,6 @@ "nf-test": "0.9.0", "nextflow": "24.04.4" }, - "timestamp": "2024-10-21T17:34:55.61846" + "timestamp": "2024-10-22T11:36:42.780849" } } \ No newline at end of file From d79b6f1b76a9a45a17271d6f25815c452c56ee25 Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Mon, 28 Oct 2024 11:30:43 -0700 Subject: [PATCH 16/25] changed pbsv to pbsv/discover - seperating functionality --- .../pbsv/{ => discover}/environment.yml | 0 modules/nf-core/pbsv/{ => discover}/main.nf | 13 ++-- modules/nf-core/pbsv/{ => discover}/meta.yml | 32 ++++----- .../pbsv/{ => discover}/tests/main.nf.test | 14 ++-- .../pbsv/discover/tests/main.nf.test.snap | 67 +++++++++++++++++++ modules/nf-core/pbsv/tests/main.nf.test.snap | 49 -------------- modules/nf-core/pbsv/tests/tags.yml | 2 - 7 files changed, 95 insertions(+), 82 deletions(-) rename modules/nf-core/pbsv/{ => discover}/environment.yml (100%) rename modules/nf-core/pbsv/{ => discover}/main.nf (82%) rename modules/nf-core/pbsv/{ => discover}/meta.yml (68%) rename modules/nf-core/pbsv/{ => discover}/tests/main.nf.test (83%) create mode 100644 modules/nf-core/pbsv/discover/tests/main.nf.test.snap delete mode 100644 modules/nf-core/pbsv/tests/main.nf.test.snap delete mode 100644 modules/nf-core/pbsv/tests/tags.yml diff --git a/modules/nf-core/pbsv/environment.yml b/modules/nf-core/pbsv/discover/environment.yml similarity index 100% rename from modules/nf-core/pbsv/environment.yml rename to modules/nf-core/pbsv/discover/environment.yml diff --git a/modules/nf-core/pbsv/main.nf b/modules/nf-core/pbsv/discover/main.nf similarity index 82% rename from modules/nf-core/pbsv/main.nf rename to modules/nf-core/pbsv/discover/main.nf index de7533c3c70..0753870c2e4 100644 --- a/modules/nf-core/pbsv/main.nf +++ b/modules/nf-core/pbsv/discover/main.nf @@ -1,7 +1,6 @@ -process PBSV { +process PBSV_DISCOVER { tag "$meta.id" label 'process_single' - conda "${moduleDir}/environment.yml" container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? 'https://depot.galaxyproject.org/singularity/pbsv:2.9.0--h9ee0642_0': @@ -12,7 +11,7 @@ process PBSV { tuple val(meta2), path(fasta) output: - tuple val(meta), path("*.vcf"), emit: vcf + tuple val(meta), path("*.svsig.gz"), emit: svsig path "versions.yml" , emit: versions when: @@ -22,9 +21,7 @@ process PBSV { def args = task.ext.args ?: '' def prefix = task.ext.prefix ?: "${meta.id}" """ - pbsv discover ${bam} ${prefix}.svsig.gz - pbsv call -j ${task.cpus} ${fasta} ${prefix}.svsig.gz ${prefix}.pbsv.vcf - + pbsv discover ${bam} ${prefix}.pbsv.svsig.gz cat <<-END_VERSIONS > versions.yml "${task.process}": pbsv: \$(pbsv --version |& sed '1!d ; s/pbsv //') @@ -35,7 +32,9 @@ process PBSV { def args = task.ext.args ?: '' def prefix = task.ext.prefix ?: "${meta.id}" """ - touch ${prefix}.pbsv.vcf + echo "test" > test.txt + gzip test.txt + mv test.txt.gz ${prefix}.pbsv.svsig.gz cat <<-END_VERSIONS > versions.yml "${task.process}": diff --git a/modules/nf-core/pbsv/meta.yml b/modules/nf-core/pbsv/discover/meta.yml similarity index 68% rename from modules/nf-core/pbsv/meta.yml rename to modules/nf-core/pbsv/discover/meta.yml index 0979d078f70..60a43613b48 100644 --- a/modules/nf-core/pbsv/meta.yml +++ b/modules/nf-core/pbsv/discover/meta.yml @@ -1,10 +1,10 @@ # yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json -name: "pbsv" -description: Pacbio Structural Variant Caller in reads +name: "pbsv_discover" +description: "pbsv - PacBio structural variant (SV) signature discovery tool" keywords: - - structural variants - - long-read analysis - - sequence analysis + - sort + - example + - genomics tools: - "pbsv": description: "pbsv - PacBio structural variant (SV) calling and analysis tools" @@ -21,28 +21,28 @@ input: e.g. `[ id:'sample1', single_end:false ]` - bam: type: file - description: "A BAM file containing an aligned reads" - pattern: "*.bam" + description: Sorted BAM/CRAM/SAM file + pattern: "*.{bam,cram,sam}" - - meta2: type: map description: | - Groovy Map containing reference information - e.g. [ id:'test' ] + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` - fasta: type: file - description: Fasta file + description: fasta file + pattern: "*.fasta" output: - - vcf: + - svsig: - meta: - type: map + type: file description: | Groovy Map containing sample information e.g. `[ id:'sample1', single_end:false ]` - pattern: "*.vcf.gz" - - "*.vcf": + - "*.svsig.gz": type: file - description: VCF file - pattern: "*.vcf.gz" + description: structural variant signatures files + pattern: "*.svsig.gz" - versions: - versions.yml: type: file diff --git a/modules/nf-core/pbsv/tests/main.nf.test b/modules/nf-core/pbsv/discover/tests/main.nf.test similarity index 83% rename from modules/nf-core/pbsv/tests/main.nf.test rename to modules/nf-core/pbsv/discover/tests/main.nf.test index 2acc4ddcb93..4f564bf267e 100644 --- a/modules/nf-core/pbsv/tests/main.nf.test +++ b/modules/nf-core/pbsv/discover/tests/main.nf.test @@ -1,12 +1,13 @@ nextflow_process { - name "Test Process PBSV" + name "Test Process PBSV_DISCOVER" script "../main.nf" - process "PBSV" + process "PBSV_DISCOVER" tag "modules" tag "modules_nfcore" tag "pbsv" + tag "pbsv/discover" test("pbsv_bam") { when { @@ -29,8 +30,7 @@ nextflow_process { assertAll( { assert process.success }, { assert snapshot(process.out.versions).match("versions") }, - { assert process.out.vcf != null }, - { assert file(process.out.vcf[0][1]).name == "test.pbsv.vcf" } + { assert snapshot(process.out.svsig).match("svsig")} ) } @@ -50,8 +50,8 @@ nextflow_process { ] input[1] = [ [ id:'test', single_end:false ], // meta map - file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome3.fasta', checkIfExists: true) - ] + file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome3.fasta', checkIfExists: true) + ] """ } } @@ -62,7 +62,5 @@ nextflow_process { { assert snapshot(process.out).match() } ) } - } - } diff --git a/modules/nf-core/pbsv/discover/tests/main.nf.test.snap b/modules/nf-core/pbsv/discover/tests/main.nf.test.snap new file mode 100644 index 00000000000..99d160a2158 --- /dev/null +++ b/modules/nf-core/pbsv/discover/tests/main.nf.test.snap @@ -0,0 +1,67 @@ +{ + "versions": { + "content": [ + [ + "versions.yml:md5,0cccc59cd231b14091d7a798e2aacc9a" + ] + ], + "meta": { + "nf-test": "0.9.0", + "nextflow": "24.04.4" + }, + "timestamp": "2024-10-27T22:36:17.825388" + }, + "svsig": { + "content": [ + [ + [ + { + "id": "test", + "single_end": false + }, + "test.pbsv.svsig.gz:md5,d2661dc9e6b301267aa7b271a0b70d30" + ] + ] + ], + "meta": { + "nf-test": "0.9.0", + "nextflow": "24.04.4" + }, + "timestamp": "2024-10-28T10:45:01.755567" + }, + "pbsv_bam_stub": { + "content": [ + { + "0": [ + [ + { + "id": "test", + "single_end": false + }, + "test.pbsv.svsig.gz:md5,d8e8fca2dc0f896fd7cb4cb0031ba249" + ] + ], + "1": [ + "versions.yml:md5,0cccc59cd231b14091d7a798e2aacc9a" + ], + "svsig": [ + [ + { + "id": "test", + "single_end": false + }, + "test.pbsv.svsig.gz:md5,d8e8fca2dc0f896fd7cb4cb0031ba249" + ] + ], + "versions": [ + "versions.yml:md5,0cccc59cd231b14091d7a798e2aacc9a" + ] + } + ], + "meta": { + "nf-test": "0.9.0", + "nextflow": "24.04.4" + }, + "timestamp": "2024-10-28T10:41:51.790882" + } +} \ No newline at end of file diff --git a/modules/nf-core/pbsv/tests/main.nf.test.snap b/modules/nf-core/pbsv/tests/main.nf.test.snap deleted file mode 100644 index 5fecb200a5a..00000000000 --- a/modules/nf-core/pbsv/tests/main.nf.test.snap +++ /dev/null @@ -1,49 +0,0 @@ -{ - "versions": { - "content": [ - [ - "versions.yml:md5,114b69a5e731b0691d6e523c12f7a8ca" - ] - ], - "meta": { - "nf-test": "0.9.0", - "nextflow": "24.04.4" - }, - "timestamp": "2024-10-21T17:23:23.323954" - }, - "pbsv_bam_stub": { - "content": [ - { - "0": [ - [ - { - "id": "test", - "single_end": false - }, - "test.pbsv.vcf:md5,d41d8cd98f00b204e9800998ecf8427e" - ] - ], - "1": [ - "versions.yml:md5,114b69a5e731b0691d6e523c12f7a8ca" - ], - "vcf": [ - [ - { - "id": "test", - "single_end": false - }, - "test.pbsv.vcf:md5,d41d8cd98f00b204e9800998ecf8427e" - ] - ], - "versions": [ - "versions.yml:md5,114b69a5e731b0691d6e523c12f7a8ca" - ] - } - ], - "meta": { - "nf-test": "0.9.0", - "nextflow": "24.04.4" - }, - "timestamp": "2024-10-22T11:36:42.780849" - } -} \ No newline at end of file diff --git a/modules/nf-core/pbsv/tests/tags.yml b/modules/nf-core/pbsv/tests/tags.yml deleted file mode 100644 index 59ab3754578..00000000000 --- a/modules/nf-core/pbsv/tests/tags.yml +++ /dev/null @@ -1,2 +0,0 @@ -pbsv: - - "modules/nf-core/pbsv/**" From 48490dcef303f721287d2824293ee12e9da892b0 Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Tue, 29 Oct 2024 11:43:44 -0700 Subject: [PATCH 17/25] module pbmm2 --- modules/nf-core/pbmm2/align/environment.yml | 7 ++ modules/nf-core/pbmm2/align/main.nf | 45 +++++++++ modules/nf-core/pbmm2/align/meta.yml | 61 +++++++++++++ .../nf-core/pbmm2/align/tests/main.nf.test | 67 ++++++++++++++ .../pbmm2/align/tests/main.nf.test.snap | 68 ++++++++++++++ modules/nf-core/pbsv/call/environment.yml | 7 ++ modules/nf-core/pbsv/call/main.nf | 91 +++++++++++++++++++ modules/nf-core/pbsv/call/meta.yml | 68 ++++++++++++++ modules/nf-core/pbsv/call/tests/main.nf.test | 74 +++++++++++++++ 9 files changed, 488 insertions(+) create mode 100644 modules/nf-core/pbmm2/align/environment.yml create mode 100644 modules/nf-core/pbmm2/align/main.nf create mode 100644 modules/nf-core/pbmm2/align/meta.yml create mode 100644 modules/nf-core/pbmm2/align/tests/main.nf.test create mode 100644 modules/nf-core/pbmm2/align/tests/main.nf.test.snap create mode 100644 modules/nf-core/pbsv/call/environment.yml create mode 100644 modules/nf-core/pbsv/call/main.nf create mode 100644 modules/nf-core/pbsv/call/meta.yml create mode 100644 modules/nf-core/pbsv/call/tests/main.nf.test diff --git a/modules/nf-core/pbmm2/align/environment.yml b/modules/nf-core/pbmm2/align/environment.yml new file mode 100644 index 00000000000..241a59c7501 --- /dev/null +++ b/modules/nf-core/pbmm2/align/environment.yml @@ -0,0 +1,7 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json +channels: + - conda-forge + - bioconda +dependencies: + - "bioconda::pbmm2=1.14.99" diff --git a/modules/nf-core/pbmm2/align/main.nf b/modules/nf-core/pbmm2/align/main.nf new file mode 100644 index 00000000000..887c7cf00fa --- /dev/null +++ b/modules/nf-core/pbmm2/align/main.nf @@ -0,0 +1,45 @@ +process PBMM2_ALIGN { + tag "$meta.id" + label 'process_single' + + + conda "${moduleDir}/environment.yml" + container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? + 'https://depot.galaxyproject.org/singularity/pbmm2:1.14.99--h9ee0642_0': + 'biocontainers/pbmm2:1.14.99--h9ee0642_0' }" + + input: + tuple val(meta), path(bam) + tuple val(meta), path(fasta) + + output: + tuple val(meta), path("*.bam"), emit: bam + path "versions.yml" , emit: versions + + when: + task.ext.when == null || task.ext.when + + script: + def args = task.ext.args ?: '' + def prefix = task.ext.prefix ?: "${meta.id}" + """ + pbmm2 align $fasta $bam ${prefix}.pbmm2.bam + + cat <<-END_VERSIONS > versions.yml + "${task.process}": + pbmm2: \$(pbmm2 --version |& sed '1!d ; s/samtools //') + END_VERSIONS + """ + + stub: + def args = task.ext.args ?: '' + def prefix = task.ext.prefix ?: "${meta.id}" + """ + touch ${prefix}.bam + + cat <<-END_VERSIONS > versions.yml + "${task.process}": + pbmm2: \$(pbmm2 --version |& sed '1!d ; s/pbmm2 //') + END_VERSIONS + """ +} diff --git a/modules/nf-core/pbmm2/align/meta.yml b/modules/nf-core/pbmm2/align/meta.yml new file mode 100644 index 00000000000..4658d7d7358 --- /dev/null +++ b/modules/nf-core/pbmm2/align/meta.yml @@ -0,0 +1,61 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json +name: "pbmm2_align" +description: Alignment with PacBio's minimap2 frontend +keywords: + - sort + - example + - genomics +tools: + - "pbmm2": + description: "A minimap2 frontend for PacBio native data formats" + homepage: "https://github.com/PacificBiosciences/pbmm2" + documentation: "https://github.com/PacificBiosciences/pbmm2" + tool_dev_url: "https://github.com/PacificBiosciences/pbmm2" + licence: ["BSD-3-clause-Clear"] + identifier: biotools:pbmm2 + +input: + - - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` + - bam: + type: file + description: Sorted BAM/CRAM/SAM file + pattern: "*.{bam,cram,sam}" + - - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` + - fasta: + type: file + description: Sorted BAM/CRAM/SAM file + pattern: "*.{fasta}" +output: + - bam: + - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` + - "*.bam": + type: file + description: Sorted BAM/CRAM/SAM file + pattern: "*.{bam,cram,sam}" + ontologies: + - edam: "http://edamontology.org/format_25722" + - edam: "http://edamontology.org/format_2573" + - edam: "http://edamontology.org/format_3462" + + - versions: + - "versions.yml": + type: file + description: File containing software versions + pattern: "versions.yml" + +authors: + - "@tanyasarkjain" +maintainers: + - "@tanyasarkjain" diff --git a/modules/nf-core/pbmm2/align/tests/main.nf.test b/modules/nf-core/pbmm2/align/tests/main.nf.test new file mode 100644 index 00000000000..8b15d60265d --- /dev/null +++ b/modules/nf-core/pbmm2/align/tests/main.nf.test @@ -0,0 +1,67 @@ +nextflow_process { + + name "Test Process PBMM2_ALIGN" + script "../main.nf" + process "PBMM2_ALIGN" + + tag "modules" + tag "modules_nfcore" + tag "pbmm2" + tag "pbmm2/align" + + test("pbmm2 - bam") { + when { + process { + """ + input[0] = [ + [ id:'test' ], // meta map + file(params.modules_testdata_base_path + 'genomics/homo_sapiens/pacbio/bam/NA03697B2_downsampled.pbmm2.repeats.bam', checkIfExists: true), + ] + + input[1] = [ + [ id:'test' ], // meta map + file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome3.fasta', checkIfExists: true), + ] + """ + } + } + + then { + assertAll( + { assert process.success }, + { assert snapshot(process.out).match() } + ) + } + + } + + test("pbmm2 - bam - stub") { + + options "-stub" + + when { + process { + """ + input[0] = [ + [ id:'test' ], // meta map + file(params.modules_testdata_base_path + 'genomics/homo_sapiens/pacbio/bam/NA03697B2_downsampled.pbmm2.repeats.bam', checkIfExists: true), + ] + + input[1] = [ + [ id:'test' ], // meta map + file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome3.fasta', checkIfExists: true), + ] + """ + } + } + + then { + assertAll( + { assert process.success }, + { assert snapshot(process.out).match() } + ) + } + + } + +} diff --git a/modules/nf-core/pbmm2/align/tests/main.nf.test.snap b/modules/nf-core/pbmm2/align/tests/main.nf.test.snap new file mode 100644 index 00000000000..8848eb3ba5f --- /dev/null +++ b/modules/nf-core/pbmm2/align/tests/main.nf.test.snap @@ -0,0 +1,68 @@ +{ + "pbmm2 - bam": { + "content": [ + { + "0": [ + [ + { + "id": "test" + }, + "test.pbmm2.bam:md5,e8d0ad591426a406f30e4c0dfe434baa" + ] + ], + "1": [ + "versions.yml:md5,fc7111ac5ac0a022e3eece773f77dca4" + ], + "bam": [ + [ + { + "id": "test" + }, + "test.pbmm2.bam:md5,e8d0ad591426a406f30e4c0dfe434baa" + ] + ], + "versions": [ + "versions.yml:md5,fc7111ac5ac0a022e3eece773f77dca4" + ] + } + ], + "meta": { + "nf-test": "0.9.0", + "nextflow": "24.04.4" + }, + "timestamp": "2024-10-28T16:31:00.852314" + }, + "pbmm2 - bam - stub": { + "content": [ + { + "0": [ + [ + { + "id": "test" + }, + "test.bam:md5,d41d8cd98f00b204e9800998ecf8427e" + ] + ], + "1": [ + "versions.yml:md5,e8aa0696ac2bf135b5f88e6cb7e7b18a" + ], + "bam": [ + [ + { + "id": "test" + }, + "test.bam:md5,d41d8cd98f00b204e9800998ecf8427e" + ] + ], + "versions": [ + "versions.yml:md5,e8aa0696ac2bf135b5f88e6cb7e7b18a" + ] + } + ], + "meta": { + "nf-test": "0.9.0", + "nextflow": "24.04.4" + }, + "timestamp": "2024-10-28T16:31:11.868639" + } +} \ No newline at end of file diff --git a/modules/nf-core/pbsv/call/environment.yml b/modules/nf-core/pbsv/call/environment.yml new file mode 100644 index 00000000000..a48d2440108 --- /dev/null +++ b/modules/nf-core/pbsv/call/environment.yml @@ -0,0 +1,7 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json +channels: + - conda-forge + - bioconda +dependencies: + - "bioconda::pbsv=2.9.0" diff --git a/modules/nf-core/pbsv/call/main.nf b/modules/nf-core/pbsv/call/main.nf new file mode 100644 index 00000000000..d01bdc97764 --- /dev/null +++ b/modules/nf-core/pbsv/call/main.nf @@ -0,0 +1,91 @@ +// TODO nf-core: If in doubt look at other nf-core/modules to see how we are doing things! :) +// https://github.com/nf-core/modules/tree/master/modules/nf-core/ +// You can also ask for help via your pull request or on the #modules channel on the nf-core Slack workspace: +// https://nf-co.re/join +// TODO nf-core: A module file SHOULD only define input and output files as command-line parameters. +// All other parameters MUST be provided using the "task.ext" directive, see here: +// https://www.nextflow.io/docs/latest/process.html#ext +// where "task.ext" is a string. +// Any parameters that need to be evaluated in the context of a particular sample +// e.g. single-end/paired-end data MUST also be defined and evaluated appropriately. +// TODO nf-core: Software that can be piped together SHOULD be added to separate module files +// unless there is a run-time, storage advantage in implementing in this way +// e.g. it's ok to have a single module for bwa to output BAM instead of SAM: +// bwa mem | samtools view -B -T ref.fasta +// TODO nf-core: Optional inputs are not currently supported by Nextflow. However, using an empty +// list (`[]`) instead of a file can be used to work around this issue. + +process PBSV_CALL { + tag "$meta.id" + label 'process_single' + + // TODO nf-core: List required Conda package(s). + // Software MUST be pinned to channel (i.e. "bioconda"), version (i.e. "1.10"). + // For Conda, the build (i.e. "h9402c20_2") must be EXCLUDED to support installation on different operating systems. + // TODO nf-core: See section in main README for further information regarding finding and adding container addresses to the section below. + conda "${moduleDir}/environment.yml" + container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? + 'https://depot.galaxyproject.org/singularity/pbsv:2.9.0--h9ee0642_0': + 'biocontainers/pbsv:2.9.0--h9ee0642_0' }" + + input: + // TODO nf-core: Where applicable all sample-specific information e.g. "id", "single_end", "read_group" + // MUST be provided as an input via a Groovy Map called "meta". + // This information may not be required in some instances e.g. indexing reference genome files: + // https://github.com/nf-core/modules/blob/master/modules/nf-core/bwa/index/main.nf + // TODO nf-core: Where applicable please provide/convert compressed files as input/output + // e.g. "*.fastq.gz" and NOT "*.fastq", "*.bam" and NOT "*.sam" etc. + tuple val(meta), path(bam) + + output: + // TODO nf-core: Named file extensions MUST be emitted for ALL output channels + tuple val(meta), path("*.bam"), emit: bam + // TODO nf-core: List additional required output channels/values here + path "versions.yml" , emit: versions + + when: + task.ext.when == null || task.ext.when + + script: + def args = task.ext.args ?: '' + def prefix = task.ext.prefix ?: "${meta.id}" + // TODO nf-core: Where possible, a command MUST be provided to obtain the version number of the software e.g. 1.10 + // If the software is unable to output a version number on the command-line then it can be manually specified + // e.g. https://github.com/nf-core/modules/blob/master/modules/nf-core/homer/annotatepeaks/main.nf + // Each software used MUST provide the software name and version number in the YAML version file (versions.yml) + // TODO nf-core: It MUST be possible to pass additional parameters to the tool as a command-line string via the "task.ext.args" directive + // TODO nf-core: If the tool supports multi-threading then you MUST provide the appropriate parameter + // using the Nextflow "task" variable e.g. "--threads $task.cpus" + // TODO nf-core: Please replace the example samtools command below with your module's command + // TODO nf-core: Please indent the command appropriately (4 spaces!!) to help with readability ;) + """ + samtools \\ + sort \\ + $args \\ + -@ $task.cpus \\ + -o ${prefix}.bam \\ + -T $prefix \\ + $bam + + cat <<-END_VERSIONS > versions.yml + "${task.process}": + pbsv: \$(samtools --version |& sed '1!d ; s/samtools //') + END_VERSIONS + """ + + stub: + def args = task.ext.args ?: '' + def prefix = task.ext.prefix ?: "${meta.id}" + // TODO nf-core: A stub section should mimic the execution of the original module as best as possible + // Have a look at the following examples: + // Simple example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bcftools/annotate/main.nf#L47-L63 + // Complex example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bedtools/split/main.nf#L38-L54 + """ + touch ${prefix}.bam + + cat <<-END_VERSIONS > versions.yml + "${task.process}": + pbsv: \$(samtools --version |& sed '1!d ; s/samtools //') + END_VERSIONS + """ +} diff --git a/modules/nf-core/pbsv/call/meta.yml b/modules/nf-core/pbsv/call/meta.yml new file mode 100644 index 00000000000..d4202b5613e --- /dev/null +++ b/modules/nf-core/pbsv/call/meta.yml @@ -0,0 +1,68 @@ +--- +# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json +name: "pbsv_call" +## TODO nf-core: Add a description of the module and list keywords +description: write your description here +keywords: + - sort + - example + - genomics +tools: + - "pbsv": + ## TODO nf-core: Add a description and other details for the software below + description: "pbsv - PacBio structural variant (SV) calling and analysis tools" + homepage: "None" + documentation: "None" + tool_dev_url: "None" + doi: "" + licence: ["BSD-3-clause-Clear"] + identifier: + +## TODO nf-core: Add a description of all of the variables used as input +input: + # Only when we have meta + - - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` + + ## TODO nf-core: Delete / customise this example input + - bam: + type: file + description: Sorted BAM/CRAM/SAM file + pattern: "*.{bam,cram,sam}" + ontologies: + - edam: "http://edamontology.org/format_25722" + - edam: "http://edamontology.org/format_2573" + - edam: "http://edamontology.org/format_3462" + +## TODO nf-core: Add a description of all of the variables used as output +output: + - bam: + #Only when we have meta + - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1', single_end:false ]` + ## TODO nf-core: Delete / customise this example output + - "*.bam": + type: file + description: Sorted BAM/CRAM/SAM file + pattern: "*.{bam,cram,sam}" + ontologies: + - edam: "http://edamontology.org/format_25722" + - edam: "http://edamontology.org/format_2573" + - edam: "http://edamontology.org/format_3462" + + - versions: + - "versions.yml": + type: file + description: File containing software versions + pattern: "versions.yml" + +authors: + - "@tanyasarkjain" +maintainers: + - "@tanyasarkjain" diff --git a/modules/nf-core/pbsv/call/tests/main.nf.test b/modules/nf-core/pbsv/call/tests/main.nf.test new file mode 100644 index 00000000000..838ae8ec1e3 --- /dev/null +++ b/modules/nf-core/pbsv/call/tests/main.nf.test @@ -0,0 +1,74 @@ +// TODO nf-core: Once you have added the required tests, please run the following command to build this file: +// nf-core modules test pbsv/call +nextflow_process { + + name "Test Process PBSV_CALL" + script "../main.nf" + process "PBSV_CALL" + + tag "modules" + tag "modules_nfcore" + tag "pbsv" + tag "pbsv/call" + + // TODO nf-core: Change the test name preferably indicating the test-data and file-format used + test("sarscov2 - bam") { + + // TODO nf-core: If you are created a test for a chained module + // (the module requires running more than one process to generate the required output) + // add the 'setup' method here. + // You can find more information about how to use a 'setup' method in the docs (https://nf-co.re/docs/contributing/modules#steps-for-creating-nf-test-for-chained-modules). + + when { + process { + """ + // TODO nf-core: define inputs of the process here. Example: + + input[0] = [ + [ id:'test', single_end:false ], // meta map + file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam', checkIfExists: true), + ] + """ + } + } + + then { + assertAll( + { assert process.success }, + { assert snapshot(process.out).match() } + //TODO nf-core: Add all required assertions to verify the test output. + // See https://nf-co.re/docs/contributing/tutorials/nf-test_assertions for more information and examples. + ) + } + + } + + // TODO nf-core: Change the test name preferably indicating the test-data and file-format used but keep the " - stub" suffix. + test("sarscov2 - bam - stub") { + + options "-stub" + + when { + process { + """ + // TODO nf-core: define inputs of the process here. Example: + + input[0] = [ + [ id:'test', single_end:false ], // meta map + file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam', checkIfExists: true), + ] + """ + } + } + + then { + assertAll( + { assert process.success }, + { assert snapshot(process.out).match() } + //TODO nf-core: Add all required assertions to verify the test output. + ) + } + + } + +} From c9a4bcb1ddabd0ad8bc9b971e2c45b14e864ae4b Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Tue, 29 Oct 2024 11:49:51 -0700 Subject: [PATCH 18/25] removing pbsv because this specific PR is for pbmm2 only --- modules/nf-core/pbsv/call/environment.yml | 7 -- modules/nf-core/pbsv/call/main.nf | 91 ------------------- modules/nf-core/pbsv/call/meta.yml | 68 -------------- modules/nf-core/pbsv/call/tests/main.nf.test | 74 --------------- modules/nf-core/pbsv/discover/environment.yml | 7 -- modules/nf-core/pbsv/discover/main.nf | 44 --------- modules/nf-core/pbsv/discover/meta.yml | 54 ----------- .../nf-core/pbsv/discover/tests/main.nf.test | 66 -------------- .../pbsv/discover/tests/main.nf.test.snap | 67 -------------- 9 files changed, 478 deletions(-) delete mode 100644 modules/nf-core/pbsv/call/environment.yml delete mode 100644 modules/nf-core/pbsv/call/main.nf delete mode 100644 modules/nf-core/pbsv/call/meta.yml delete mode 100644 modules/nf-core/pbsv/call/tests/main.nf.test delete mode 100644 modules/nf-core/pbsv/discover/environment.yml delete mode 100644 modules/nf-core/pbsv/discover/main.nf delete mode 100644 modules/nf-core/pbsv/discover/meta.yml delete mode 100644 modules/nf-core/pbsv/discover/tests/main.nf.test delete mode 100644 modules/nf-core/pbsv/discover/tests/main.nf.test.snap diff --git a/modules/nf-core/pbsv/call/environment.yml b/modules/nf-core/pbsv/call/environment.yml deleted file mode 100644 index a48d2440108..00000000000 --- a/modules/nf-core/pbsv/call/environment.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json -channels: - - conda-forge - - bioconda -dependencies: - - "bioconda::pbsv=2.9.0" diff --git a/modules/nf-core/pbsv/call/main.nf b/modules/nf-core/pbsv/call/main.nf deleted file mode 100644 index d01bdc97764..00000000000 --- a/modules/nf-core/pbsv/call/main.nf +++ /dev/null @@ -1,91 +0,0 @@ -// TODO nf-core: If in doubt look at other nf-core/modules to see how we are doing things! :) -// https://github.com/nf-core/modules/tree/master/modules/nf-core/ -// You can also ask for help via your pull request or on the #modules channel on the nf-core Slack workspace: -// https://nf-co.re/join -// TODO nf-core: A module file SHOULD only define input and output files as command-line parameters. -// All other parameters MUST be provided using the "task.ext" directive, see here: -// https://www.nextflow.io/docs/latest/process.html#ext -// where "task.ext" is a string. -// Any parameters that need to be evaluated in the context of a particular sample -// e.g. single-end/paired-end data MUST also be defined and evaluated appropriately. -// TODO nf-core: Software that can be piped together SHOULD be added to separate module files -// unless there is a run-time, storage advantage in implementing in this way -// e.g. it's ok to have a single module for bwa to output BAM instead of SAM: -// bwa mem | samtools view -B -T ref.fasta -// TODO nf-core: Optional inputs are not currently supported by Nextflow. However, using an empty -// list (`[]`) instead of a file can be used to work around this issue. - -process PBSV_CALL { - tag "$meta.id" - label 'process_single' - - // TODO nf-core: List required Conda package(s). - // Software MUST be pinned to channel (i.e. "bioconda"), version (i.e. "1.10"). - // For Conda, the build (i.e. "h9402c20_2") must be EXCLUDED to support installation on different operating systems. - // TODO nf-core: See section in main README for further information regarding finding and adding container addresses to the section below. - conda "${moduleDir}/environment.yml" - container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? - 'https://depot.galaxyproject.org/singularity/pbsv:2.9.0--h9ee0642_0': - 'biocontainers/pbsv:2.9.0--h9ee0642_0' }" - - input: - // TODO nf-core: Where applicable all sample-specific information e.g. "id", "single_end", "read_group" - // MUST be provided as an input via a Groovy Map called "meta". - // This information may not be required in some instances e.g. indexing reference genome files: - // https://github.com/nf-core/modules/blob/master/modules/nf-core/bwa/index/main.nf - // TODO nf-core: Where applicable please provide/convert compressed files as input/output - // e.g. "*.fastq.gz" and NOT "*.fastq", "*.bam" and NOT "*.sam" etc. - tuple val(meta), path(bam) - - output: - // TODO nf-core: Named file extensions MUST be emitted for ALL output channels - tuple val(meta), path("*.bam"), emit: bam - // TODO nf-core: List additional required output channels/values here - path "versions.yml" , emit: versions - - when: - task.ext.when == null || task.ext.when - - script: - def args = task.ext.args ?: '' - def prefix = task.ext.prefix ?: "${meta.id}" - // TODO nf-core: Where possible, a command MUST be provided to obtain the version number of the software e.g. 1.10 - // If the software is unable to output a version number on the command-line then it can be manually specified - // e.g. https://github.com/nf-core/modules/blob/master/modules/nf-core/homer/annotatepeaks/main.nf - // Each software used MUST provide the software name and version number in the YAML version file (versions.yml) - // TODO nf-core: It MUST be possible to pass additional parameters to the tool as a command-line string via the "task.ext.args" directive - // TODO nf-core: If the tool supports multi-threading then you MUST provide the appropriate parameter - // using the Nextflow "task" variable e.g. "--threads $task.cpus" - // TODO nf-core: Please replace the example samtools command below with your module's command - // TODO nf-core: Please indent the command appropriately (4 spaces!!) to help with readability ;) - """ - samtools \\ - sort \\ - $args \\ - -@ $task.cpus \\ - -o ${prefix}.bam \\ - -T $prefix \\ - $bam - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - pbsv: \$(samtools --version |& sed '1!d ; s/samtools //') - END_VERSIONS - """ - - stub: - def args = task.ext.args ?: '' - def prefix = task.ext.prefix ?: "${meta.id}" - // TODO nf-core: A stub section should mimic the execution of the original module as best as possible - // Have a look at the following examples: - // Simple example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bcftools/annotate/main.nf#L47-L63 - // Complex example: https://github.com/nf-core/modules/blob/818474a292b4860ae8ff88e149fbcda68814114d/modules/nf-core/bedtools/split/main.nf#L38-L54 - """ - touch ${prefix}.bam - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - pbsv: \$(samtools --version |& sed '1!d ; s/samtools //') - END_VERSIONS - """ -} diff --git a/modules/nf-core/pbsv/call/meta.yml b/modules/nf-core/pbsv/call/meta.yml deleted file mode 100644 index d4202b5613e..00000000000 --- a/modules/nf-core/pbsv/call/meta.yml +++ /dev/null @@ -1,68 +0,0 @@ ---- -# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json -name: "pbsv_call" -## TODO nf-core: Add a description of the module and list keywords -description: write your description here -keywords: - - sort - - example - - genomics -tools: - - "pbsv": - ## TODO nf-core: Add a description and other details for the software below - description: "pbsv - PacBio structural variant (SV) calling and analysis tools" - homepage: "None" - documentation: "None" - tool_dev_url: "None" - doi: "" - licence: ["BSD-3-clause-Clear"] - identifier: - -## TODO nf-core: Add a description of all of the variables used as input -input: - # Only when we have meta - - - meta: - type: map - description: | - Groovy Map containing sample information - e.g. `[ id:'sample1', single_end:false ]` - - ## TODO nf-core: Delete / customise this example input - - bam: - type: file - description: Sorted BAM/CRAM/SAM file - pattern: "*.{bam,cram,sam}" - ontologies: - - edam: "http://edamontology.org/format_25722" - - edam: "http://edamontology.org/format_2573" - - edam: "http://edamontology.org/format_3462" - -## TODO nf-core: Add a description of all of the variables used as output -output: - - bam: - #Only when we have meta - - meta: - type: map - description: | - Groovy Map containing sample information - e.g. `[ id:'sample1', single_end:false ]` - ## TODO nf-core: Delete / customise this example output - - "*.bam": - type: file - description: Sorted BAM/CRAM/SAM file - pattern: "*.{bam,cram,sam}" - ontologies: - - edam: "http://edamontology.org/format_25722" - - edam: "http://edamontology.org/format_2573" - - edam: "http://edamontology.org/format_3462" - - - versions: - - "versions.yml": - type: file - description: File containing software versions - pattern: "versions.yml" - -authors: - - "@tanyasarkjain" -maintainers: - - "@tanyasarkjain" diff --git a/modules/nf-core/pbsv/call/tests/main.nf.test b/modules/nf-core/pbsv/call/tests/main.nf.test deleted file mode 100644 index 838ae8ec1e3..00000000000 --- a/modules/nf-core/pbsv/call/tests/main.nf.test +++ /dev/null @@ -1,74 +0,0 @@ -// TODO nf-core: Once you have added the required tests, please run the following command to build this file: -// nf-core modules test pbsv/call -nextflow_process { - - name "Test Process PBSV_CALL" - script "../main.nf" - process "PBSV_CALL" - - tag "modules" - tag "modules_nfcore" - tag "pbsv" - tag "pbsv/call" - - // TODO nf-core: Change the test name preferably indicating the test-data and file-format used - test("sarscov2 - bam") { - - // TODO nf-core: If you are created a test for a chained module - // (the module requires running more than one process to generate the required output) - // add the 'setup' method here. - // You can find more information about how to use a 'setup' method in the docs (https://nf-co.re/docs/contributing/modules#steps-for-creating-nf-test-for-chained-modules). - - when { - process { - """ - // TODO nf-core: define inputs of the process here. Example: - - input[0] = [ - [ id:'test', single_end:false ], // meta map - file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam', checkIfExists: true), - ] - """ - } - } - - then { - assertAll( - { assert process.success }, - { assert snapshot(process.out).match() } - //TODO nf-core: Add all required assertions to verify the test output. - // See https://nf-co.re/docs/contributing/tutorials/nf-test_assertions for more information and examples. - ) - } - - } - - // TODO nf-core: Change the test name preferably indicating the test-data and file-format used but keep the " - stub" suffix. - test("sarscov2 - bam - stub") { - - options "-stub" - - when { - process { - """ - // TODO nf-core: define inputs of the process here. Example: - - input[0] = [ - [ id:'test', single_end:false ], // meta map - file(params.modules_testdata_base_path + 'genomics/sarscov2/illumina/bam/test.paired_end.sorted.bam', checkIfExists: true), - ] - """ - } - } - - then { - assertAll( - { assert process.success }, - { assert snapshot(process.out).match() } - //TODO nf-core: Add all required assertions to verify the test output. - ) - } - - } - -} diff --git a/modules/nf-core/pbsv/discover/environment.yml b/modules/nf-core/pbsv/discover/environment.yml deleted file mode 100644 index a48d2440108..00000000000 --- a/modules/nf-core/pbsv/discover/environment.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json -channels: - - conda-forge - - bioconda -dependencies: - - "bioconda::pbsv=2.9.0" diff --git a/modules/nf-core/pbsv/discover/main.nf b/modules/nf-core/pbsv/discover/main.nf deleted file mode 100644 index 0753870c2e4..00000000000 --- a/modules/nf-core/pbsv/discover/main.nf +++ /dev/null @@ -1,44 +0,0 @@ -process PBSV_DISCOVER { - tag "$meta.id" - label 'process_single' - conda "${moduleDir}/environment.yml" - container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? - 'https://depot.galaxyproject.org/singularity/pbsv:2.9.0--h9ee0642_0': - 'biocontainers/pbsv:2.9.0--h9ee0642_0' }" - - input: - tuple val(meta), path(bam) - tuple val(meta2), path(fasta) - - output: - tuple val(meta), path("*.svsig.gz"), emit: svsig - path "versions.yml" , emit: versions - - when: - task.ext.when == null || task.ext.when - - script: - def args = task.ext.args ?: '' - def prefix = task.ext.prefix ?: "${meta.id}" - """ - pbsv discover ${bam} ${prefix}.pbsv.svsig.gz - cat <<-END_VERSIONS > versions.yml - "${task.process}": - pbsv: \$(pbsv --version |& sed '1!d ; s/pbsv //') - END_VERSIONS - """ - - stub: - def args = task.ext.args ?: '' - def prefix = task.ext.prefix ?: "${meta.id}" - """ - echo "test" > test.txt - gzip test.txt - mv test.txt.gz ${prefix}.pbsv.svsig.gz - - cat <<-END_VERSIONS > versions.yml - "${task.process}": - pbsv: \$(pbsv --version |& sed '1!d ; s/pbsv //') - END_VERSIONS - """ -} diff --git a/modules/nf-core/pbsv/discover/meta.yml b/modules/nf-core/pbsv/discover/meta.yml deleted file mode 100644 index 60a43613b48..00000000000 --- a/modules/nf-core/pbsv/discover/meta.yml +++ /dev/null @@ -1,54 +0,0 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json -name: "pbsv_discover" -description: "pbsv - PacBio structural variant (SV) signature discovery tool" -keywords: - - sort - - example - - genomics -tools: - - "pbsv": - description: "pbsv - PacBio structural variant (SV) calling and analysis tools" - homepage: "https://github.com/PacificBiosciences/pbsv" - documentation: "https://github.com/PacificBiosciences/pbsv" - tool_dev_url: "https://github.com/PacificBiosciences/pbsv" - licence: ["BSD-3-clause-Clear"] - identifier: "" -input: - - - meta: - type: map - description: | - Groovy Map containing sample information - e.g. `[ id:'sample1', single_end:false ]` - - bam: - type: file - description: Sorted BAM/CRAM/SAM file - pattern: "*.{bam,cram,sam}" - - - meta2: - type: map - description: | - Groovy Map containing sample information - e.g. `[ id:'sample1', single_end:false ]` - - fasta: - type: file - description: fasta file - pattern: "*.fasta" -output: - - svsig: - - meta: - type: file - description: | - Groovy Map containing sample information - e.g. `[ id:'sample1', single_end:false ]` - - "*.svsig.gz": - type: file - description: structural variant signatures files - pattern: "*.svsig.gz" - - versions: - - versions.yml: - type: file - description: File containing software versions - pattern: "versions.yml" -authors: - - "@tanyasarkjain" -maintainers: - - "@tanyasarkjain" diff --git a/modules/nf-core/pbsv/discover/tests/main.nf.test b/modules/nf-core/pbsv/discover/tests/main.nf.test deleted file mode 100644 index 4f564bf267e..00000000000 --- a/modules/nf-core/pbsv/discover/tests/main.nf.test +++ /dev/null @@ -1,66 +0,0 @@ -nextflow_process { - - name "Test Process PBSV_DISCOVER" - script "../main.nf" - process "PBSV_DISCOVER" - - tag "modules" - tag "modules_nfcore" - tag "pbsv" - tag "pbsv/discover" - - test("pbsv_bam") { - when { - process { - """ - input[0] = [ - [ id:'test', single_end:false ], // meta map - file(params.modules_testdata_base_path + 'genomics/homo_sapiens/pacbio/bam/NA03697B2_downsampled.pbmm2.repeats.bam', checkIfExists: true) - ] - - input[1] = [ - [ id:'test', single_end:false ], // meta map - file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome3.fasta', checkIfExists: true) - ] - """ - } - } - - then { - assertAll( - { assert process.success }, - { assert snapshot(process.out.versions).match("versions") }, - { assert snapshot(process.out.svsig).match("svsig")} - ) - } - - - } - - test("pbsv_bam_stub") { - - options "-stub" - - when { - process { - """ - input[0] = [ - [ id:'test', single_end:false ], // meta map - file(params.modules_testdata_base_path + 'genomics/homo_sapiens/pacbio/bam/NA03697B2_downsampled.pbmm2.repeats.bam', checkIfExists: true) - ] - input[1] = [ - [ id:'test', single_end:false ], // meta map - file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome3.fasta', checkIfExists: true) - ] - """ - } - } - - then { - assertAll( - { assert process.success }, - { assert snapshot(process.out).match() } - ) - } - } -} diff --git a/modules/nf-core/pbsv/discover/tests/main.nf.test.snap b/modules/nf-core/pbsv/discover/tests/main.nf.test.snap deleted file mode 100644 index 99d160a2158..00000000000 --- a/modules/nf-core/pbsv/discover/tests/main.nf.test.snap +++ /dev/null @@ -1,67 +0,0 @@ -{ - "versions": { - "content": [ - [ - "versions.yml:md5,0cccc59cd231b14091d7a798e2aacc9a" - ] - ], - "meta": { - "nf-test": "0.9.0", - "nextflow": "24.04.4" - }, - "timestamp": "2024-10-27T22:36:17.825388" - }, - "svsig": { - "content": [ - [ - [ - { - "id": "test", - "single_end": false - }, - "test.pbsv.svsig.gz:md5,d2661dc9e6b301267aa7b271a0b70d30" - ] - ] - ], - "meta": { - "nf-test": "0.9.0", - "nextflow": "24.04.4" - }, - "timestamp": "2024-10-28T10:45:01.755567" - }, - "pbsv_bam_stub": { - "content": [ - { - "0": [ - [ - { - "id": "test", - "single_end": false - }, - "test.pbsv.svsig.gz:md5,d8e8fca2dc0f896fd7cb4cb0031ba249" - ] - ], - "1": [ - "versions.yml:md5,0cccc59cd231b14091d7a798e2aacc9a" - ], - "svsig": [ - [ - { - "id": "test", - "single_end": false - }, - "test.pbsv.svsig.gz:md5,d8e8fca2dc0f896fd7cb4cb0031ba249" - ] - ], - "versions": [ - "versions.yml:md5,0cccc59cd231b14091d7a798e2aacc9a" - ] - } - ], - "meta": { - "nf-test": "0.9.0", - "nextflow": "24.04.4" - }, - "timestamp": "2024-10-28T10:41:51.790882" - } -} \ No newline at end of file From 27b9efe4e736b6a5aef0b52cc43d2f013f66e24c Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Tue, 29 Oct 2024 15:01:18 -0700 Subject: [PATCH 19/25] updating to allow for threading --- modules/nf-core/pbmm2/align/main.nf | 2 +- modules/nf-core/pbmm2/align/tests/main.nf.test.snap | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/nf-core/pbmm2/align/main.nf b/modules/nf-core/pbmm2/align/main.nf index 887c7cf00fa..0b363cfd0c1 100644 --- a/modules/nf-core/pbmm2/align/main.nf +++ b/modules/nf-core/pbmm2/align/main.nf @@ -23,7 +23,7 @@ process PBMM2_ALIGN { def args = task.ext.args ?: '' def prefix = task.ext.prefix ?: "${meta.id}" """ - pbmm2 align $fasta $bam ${prefix}.pbmm2.bam + pbmm2 align $fasta $bam ${prefix}.pbmm2.bam --num-threads ${task.cpus} cat <<-END_VERSIONS > versions.yml "${task.process}": diff --git a/modules/nf-core/pbmm2/align/tests/main.nf.test.snap b/modules/nf-core/pbmm2/align/tests/main.nf.test.snap index 8848eb3ba5f..1353db80cca 100644 --- a/modules/nf-core/pbmm2/align/tests/main.nf.test.snap +++ b/modules/nf-core/pbmm2/align/tests/main.nf.test.snap @@ -7,7 +7,7 @@ { "id": "test" }, - "test.pbmm2.bam:md5,e8d0ad591426a406f30e4c0dfe434baa" + "test.pbmm2.bam:md5,fc186a9ed8ccfb539461e266c4345fe3" ] ], "1": [ @@ -18,7 +18,7 @@ { "id": "test" }, - "test.pbmm2.bam:md5,e8d0ad591426a406f30e4c0dfe434baa" + "test.pbmm2.bam:md5,fc186a9ed8ccfb539461e266c4345fe3" ] ], "versions": [ @@ -30,7 +30,7 @@ "nf-test": "0.9.0", "nextflow": "24.04.4" }, - "timestamp": "2024-10-28T16:31:00.852314" + "timestamp": "2024-10-29T14:51:20.81355" }, "pbmm2 - bam - stub": { "content": [ From b077aef81b01671764d6922aa2c17a4a69e1544c Mon Sep 17 00:00:00 2001 From: tanyasarkjain <67300971+tanyasarkjain@users.noreply.github.com> Date: Wed, 30 Oct 2024 03:05:51 -0700 Subject: [PATCH 20/25] Update modules/nf-core/pbmm2/align/main.nf Co-authored-by: Felix Lenner <52530259+fellen31@users.noreply.github.com> --- modules/nf-core/pbmm2/align/main.nf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nf-core/pbmm2/align/main.nf b/modules/nf-core/pbmm2/align/main.nf index 0b363cfd0c1..378f51a28fb 100644 --- a/modules/nf-core/pbmm2/align/main.nf +++ b/modules/nf-core/pbmm2/align/main.nf @@ -27,7 +27,7 @@ process PBMM2_ALIGN { cat <<-END_VERSIONS > versions.yml "${task.process}": - pbmm2: \$(pbmm2 --version |& sed '1!d ; s/samtools //') + pbmm2: \$(pbmm2 --version |& sed '1!d ; s/pbmm2 //') END_VERSIONS """ From b220f9e7b9745f14fbeb71d84ed9921fdbda51cf Mon Sep 17 00:00:00 2001 From: tanyasarkjain <67300971+tanyasarkjain@users.noreply.github.com> Date: Wed, 30 Oct 2024 03:06:02 -0700 Subject: [PATCH 21/25] Update modules/nf-core/pbmm2/align/main.nf Co-authored-by: Felix Lenner <52530259+fellen31@users.noreply.github.com> --- modules/nf-core/pbmm2/align/main.nf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nf-core/pbmm2/align/main.nf b/modules/nf-core/pbmm2/align/main.nf index 378f51a28fb..5b8018bdee0 100644 --- a/modules/nf-core/pbmm2/align/main.nf +++ b/modules/nf-core/pbmm2/align/main.nf @@ -1,6 +1,6 @@ process PBMM2_ALIGN { tag "$meta.id" - label 'process_single' + label 'process_large' conda "${moduleDir}/environment.yml" From 8a976e14abe2493f5d041fd232f2f20f4e7f55d5 Mon Sep 17 00:00:00 2001 From: tanyasarkjain <67300971+tanyasarkjain@users.noreply.github.com> Date: Wed, 30 Oct 2024 03:06:10 -0700 Subject: [PATCH 22/25] Update modules/nf-core/pbmm2/align/main.nf Co-authored-by: Felix Lenner <52530259+fellen31@users.noreply.github.com> --- modules/nf-core/pbmm2/align/main.nf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/nf-core/pbmm2/align/main.nf b/modules/nf-core/pbmm2/align/main.nf index 5b8018bdee0..9462da5555c 100644 --- a/modules/nf-core/pbmm2/align/main.nf +++ b/modules/nf-core/pbmm2/align/main.nf @@ -23,7 +23,13 @@ process PBMM2_ALIGN { def args = task.ext.args ?: '' def prefix = task.ext.prefix ?: "${meta.id}" """ - pbmm2 align $fasta $bam ${prefix}.pbmm2.bam --num-threads ${task.cpus} + pbmm2 \\ + align \\ + $args \\ + $fasta \\ + $bam \\ + ${prefix}.bam \\ + --num-threads ${task.cpus} cat <<-END_VERSIONS > versions.yml "${task.process}": From aef977b20bd7e758b66bea113e0c1dafcc165bef Mon Sep 17 00:00:00 2001 From: tanyasarkjain <67300971+tanyasarkjain@users.noreply.github.com> Date: Wed, 30 Oct 2024 03:06:34 -0700 Subject: [PATCH 23/25] Update modules/nf-core/pbmm2/align/main.nf Co-authored-by: Felix Lenner <52530259+fellen31@users.noreply.github.com> --- modules/nf-core/pbmm2/align/main.nf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nf-core/pbmm2/align/main.nf b/modules/nf-core/pbmm2/align/main.nf index 9462da5555c..2e75306bd66 100644 --- a/modules/nf-core/pbmm2/align/main.nf +++ b/modules/nf-core/pbmm2/align/main.nf @@ -10,7 +10,7 @@ process PBMM2_ALIGN { input: tuple val(meta), path(bam) - tuple val(meta), path(fasta) + tuple val(meta2), path(fasta) output: tuple val(meta), path("*.bam"), emit: bam From 2496c949404e6409d1664c14c8b1e9d381e2aa79 Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Wed, 30 Oct 2024 10:54:57 -0700 Subject: [PATCH 24/25] resolving comments --- modules/nf-core/pbmm2/align/meta.yml | 8 ++++---- modules/nf-core/pbmm2/align/tests/main.nf.test.snap | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/nf-core/pbmm2/align/meta.yml b/modules/nf-core/pbmm2/align/meta.yml index 4658d7d7358..8ddafc0464e 100644 --- a/modules/nf-core/pbmm2/align/meta.yml +++ b/modules/nf-core/pbmm2/align/meta.yml @@ -2,8 +2,8 @@ name: "pbmm2_align" description: Alignment with PacBio's minimap2 frontend keywords: - - sort - - example + - align + - pacbio - genomics tools: - "pbmm2": @@ -31,7 +31,7 @@ input: e.g. `[ id:'sample1', single_end:false ]` - fasta: type: file - description: Sorted BAM/CRAM/SAM file + description: fasta file to align bam to pattern: "*.{fasta}" output: - bam: @@ -45,7 +45,7 @@ output: description: Sorted BAM/CRAM/SAM file pattern: "*.{bam,cram,sam}" ontologies: - - edam: "http://edamontology.org/format_25722" + - edam: "http://edamontology.org/format_2572" - edam: "http://edamontology.org/format_2573" - edam: "http://edamontology.org/format_3462" diff --git a/modules/nf-core/pbmm2/align/tests/main.nf.test.snap b/modules/nf-core/pbmm2/align/tests/main.nf.test.snap index 1353db80cca..430851ebb2c 100644 --- a/modules/nf-core/pbmm2/align/tests/main.nf.test.snap +++ b/modules/nf-core/pbmm2/align/tests/main.nf.test.snap @@ -7,22 +7,22 @@ { "id": "test" }, - "test.pbmm2.bam:md5,fc186a9ed8ccfb539461e266c4345fe3" + "test.bam:md5,b1d6b50f20ba0389435c6a51de26d836" ] ], "1": [ - "versions.yml:md5,fc7111ac5ac0a022e3eece773f77dca4" + "versions.yml:md5,e8aa0696ac2bf135b5f88e6cb7e7b18a" ], "bam": [ [ { "id": "test" }, - "test.pbmm2.bam:md5,fc186a9ed8ccfb539461e266c4345fe3" + "test.bam:md5,b1d6b50f20ba0389435c6a51de26d836" ] ], "versions": [ - "versions.yml:md5,fc7111ac5ac0a022e3eece773f77dca4" + "versions.yml:md5,e8aa0696ac2bf135b5f88e6cb7e7b18a" ] } ], @@ -30,7 +30,7 @@ "nf-test": "0.9.0", "nextflow": "24.04.4" }, - "timestamp": "2024-10-29T14:51:20.81355" + "timestamp": "2024-10-30T10:53:18.838135" }, "pbmm2 - bam - stub": { "content": [ @@ -63,6 +63,6 @@ "nf-test": "0.9.0", "nextflow": "24.04.4" }, - "timestamp": "2024-10-28T16:31:11.868639" + "timestamp": "2024-10-30T10:53:31.992125" } } \ No newline at end of file From fe91f7df428a8a5dbf69a7679e485136e93e1e3c Mon Sep 17 00:00:00 2001 From: Tanya Jain Date: Wed, 30 Oct 2024 11:41:45 -0700 Subject: [PATCH 25/25] fixing the meta to match update --- modules/nf-core/pbmm2/align/meta.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nf-core/pbmm2/align/meta.yml b/modules/nf-core/pbmm2/align/meta.yml index 8ddafc0464e..d63a83bacb3 100644 --- a/modules/nf-core/pbmm2/align/meta.yml +++ b/modules/nf-core/pbmm2/align/meta.yml @@ -24,7 +24,7 @@ input: type: file description: Sorted BAM/CRAM/SAM file pattern: "*.{bam,cram,sam}" - - - meta: + - - meta2: type: map description: | Groovy Map containing sample information