From 768b952fc17d2aac19b0099ed3d6607a7ba1f57a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Famke=20Ba=CC=88uerle?= Date: Thu, 5 Sep 2024 12:44:55 +0200 Subject: [PATCH 01/11] add crabs/dbimport from readsimulator pipeline --- .../nf-core/crabs/dbimport/environment.yml | 7 ++ modules/nf-core/crabs/dbimport/main.nf | 56 +++++++++++++++ modules/nf-core/crabs/dbimport/meta.yml | 49 +++++++++++++ .../nf-core/crabs/dbimport/tests/main.nf.test | 59 ++++++++++++++++ .../crabs/dbimport/tests/main.nf.test.snap | 68 +++++++++++++++++++ .../crabs/dbimport/tests/nextflow.config | 7 ++ modules/nf-core/crabs/dbimport/tests/tags.yml | 2 + 7 files changed, 248 insertions(+) create mode 100644 modules/nf-core/crabs/dbimport/environment.yml create mode 100644 modules/nf-core/crabs/dbimport/main.nf create mode 100644 modules/nf-core/crabs/dbimport/meta.yml create mode 100644 modules/nf-core/crabs/dbimport/tests/main.nf.test create mode 100644 modules/nf-core/crabs/dbimport/tests/main.nf.test.snap create mode 100644 modules/nf-core/crabs/dbimport/tests/nextflow.config create mode 100644 modules/nf-core/crabs/dbimport/tests/tags.yml diff --git a/modules/nf-core/crabs/dbimport/environment.yml b/modules/nf-core/crabs/dbimport/environment.yml new file mode 100644 index 00000000000..78fa255d3d9 --- /dev/null +++ b/modules/nf-core/crabs/dbimport/environment.yml @@ -0,0 +1,7 @@ +name: crabs_dbimport +channels: + - conda-forge + - bioconda + - defaults +dependencies: + - "bioconda::crabs=0.1.1" diff --git a/modules/nf-core/crabs/dbimport/main.nf b/modules/nf-core/crabs/dbimport/main.nf new file mode 100644 index 00000000000..4696fbab3e9 --- /dev/null +++ b/modules/nf-core/crabs/dbimport/main.nf @@ -0,0 +1,56 @@ +process CRABS_DBIMPORT { + tag "$meta.id" + label 'process_medium' + + // WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions. + conda "${moduleDir}/environment.yml" + container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? + 'https://depot.galaxyproject.org/singularity/crabs:0.1.1--pyhb7b1952_0': + 'biocontainers/crabs:0.1.1--pyhb7b1952_0' }" + + input: + tuple val(meta), path(fasta) + + output: + tuple val(meta), path("*.fa"), emit: fasta + 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}" + def VERSION = '0.1.1' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions. + def is_compressed = fasta.name.endsWith(".gz") + def fasta_name = fasta.name.replace(".gz", "") + """ + if [ "${is_compressed}" == "true" ]; then + gzip -c -d ${fasta} > ${fasta_name} + fi + + crabs db_import \\ + --input ${fasta_name} \\ + --output ${prefix}.crabsdb.fa \\ + $args + + rm ${fasta_name} + + cat <<-END_VERSIONS > versions.yml + "${task.process}": + crabs: $VERSION + END_VERSIONS + """ + + stub: + def prefix = task.ext.prefix ?: "${meta.id}" + def VERSION = '0.1.1' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions. + """ + touch ${prefix}.fa + + cat <<-END_VERSIONS > versions.yml + "${task.process}": + crabs: $VERSION + END_VERSIONS + """ +} diff --git a/modules/nf-core/crabs/dbimport/meta.yml b/modules/nf-core/crabs/dbimport/meta.yml new file mode 100644 index 00000000000..030a450a260 --- /dev/null +++ b/modules/nf-core/crabs/dbimport/meta.yml @@ -0,0 +1,49 @@ +name: crabs_dbimport +description: In-house generated or curated data can be imported into CRABS. +keywords: + - insilico + - PCR +tools: + - crabs: + description: | + Crabs (Creating Reference databases for Amplicon-Based Sequencing) + is a program to download and curate reference databases + for eDNA metabarcoding analyses + homepage: https://github.com/gjeunen/reference_database_creator + documentation: https://github.com/gjeunen/reference_database_creator?tab=readme-ov-file#running-crabs + tool_dev_url: https://github.com/gjeunen/reference_database_creator + doi: https://doi.org/10.1111/1755-0998.13741 + licence: ["MIT License"] + +input: + - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1' ]` + - fasta: + type: file + description: In-house sequencing data + pattern: "*.{fa,fasta}" + +output: + - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1' ]` + - versions: + type: file + description: File containing software versions + pattern: "versions.yml" + - fasta: + type: file + description: Reverse complemented Sequence + pattern: "*.{fa,fasta}" + +authors: + - "@famosab" + - "@a4000" +maintainers: + - "@famosab" + - "@a4000" diff --git a/modules/nf-core/crabs/dbimport/tests/main.nf.test b/modules/nf-core/crabs/dbimport/tests/main.nf.test new file mode 100644 index 00000000000..c5ef876f05e --- /dev/null +++ b/modules/nf-core/crabs/dbimport/tests/main.nf.test @@ -0,0 +1,59 @@ +nextflow_process { + + name "Test Process CRABS_DBIMPORT" + script "../main.nf" + process "CRABS_DBIMPORT" + config "./nextflow.config" + + tag "modules" + tag "modules_nfcore" + tag "crabs" + tag "crabs/dbimport" + + test("sarscov2 - fasta") { + + when { + process { + """ + input[0] = [ + [ id:'test' ], // meta map + file(params.modules_testdata_base_path +'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) + ] + """ + } + } + + then { + assertAll( + { assert process.success }, + { assert snapshot(process.out).match() } + ) + } + + } + + test("sarscov2 - fasta - stub") { + + options "-stub" + + when { + process { + """ + input[0] = [ + [ id:'test' ], // meta map + file(params.modules_testdata_base_path +'genomics/sarscov2/genome/genome.fasta', checkIfExists: true) + ] + """ + } + } + + then { + assertAll( + { assert process.success }, + { assert snapshot(process.out).match() } + ) + } + + } + +} \ No newline at end of file diff --git a/modules/nf-core/crabs/dbimport/tests/main.nf.test.snap b/modules/nf-core/crabs/dbimport/tests/main.nf.test.snap new file mode 100644 index 00000000000..e01938f9fef --- /dev/null +++ b/modules/nf-core/crabs/dbimport/tests/main.nf.test.snap @@ -0,0 +1,68 @@ +{ + "sarscov2 - fasta - stub": { + "content": [ + { + "0": [ + [ + { + "id": "test" + }, + "test.fa:md5,d41d8cd98f00b204e9800998ecf8427e" + ] + ], + "1": [ + "versions.yml:md5,aa9d175ec56d1dce0a3588883ab1b00a" + ], + "fasta": [ + [ + { + "id": "test" + }, + "test.fa:md5,d41d8cd98f00b204e9800998ecf8427e" + ] + ], + "versions": [ + "versions.yml:md5,aa9d175ec56d1dce0a3588883ab1b00a" + ] + } + ], + "meta": { + "nf-test": "0.9.0", + "nextflow": "24.04.4" + }, + "timestamp": "2024-09-05T12:42:46.076137" + }, + "sarscov2 - fasta": { + "content": [ + { + "0": [ + [ + { + "id": "test" + }, + "test.crabsdb.fa:md5,f46e9d5dbadcfda9a8d7d01e4bf7dfb2" + ] + ], + "1": [ + "versions.yml:md5,aa9d175ec56d1dce0a3588883ab1b00a" + ], + "fasta": [ + [ + { + "id": "test" + }, + "test.crabsdb.fa:md5,f46e9d5dbadcfda9a8d7d01e4bf7dfb2" + ] + ], + "versions": [ + "versions.yml:md5,aa9d175ec56d1dce0a3588883ab1b00a" + ] + } + ], + "meta": { + "nf-test": "0.9.0", + "nextflow": "24.04.4" + }, + "timestamp": "2024-09-05T12:42:41.421262" + } +} \ No newline at end of file diff --git a/modules/nf-core/crabs/dbimport/tests/nextflow.config b/modules/nf-core/crabs/dbimport/tests/nextflow.config new file mode 100644 index 00000000000..282a7b2ebbd --- /dev/null +++ b/modules/nf-core/crabs/dbimport/tests/nextflow.config @@ -0,0 +1,7 @@ +process { + + withName: CRABS_DBIMPORT { + ext.args = "--seq_header species --delim ' '" + } + +} diff --git a/modules/nf-core/crabs/dbimport/tests/tags.yml b/modules/nf-core/crabs/dbimport/tests/tags.yml new file mode 100644 index 00000000000..6efca4ca891 --- /dev/null +++ b/modules/nf-core/crabs/dbimport/tests/tags.yml @@ -0,0 +1,2 @@ +crabs/dbimport: + - "modules/nf-core/crabs/dbimport/**" From 07c49d20de6657c411eff74d471e9bd6e10fb1de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Famke=20Ba=CC=88uerle?= Date: Thu, 5 Sep 2024 14:49:04 +0200 Subject: [PATCH 02/11] fix linting --- modules/nf-core/crabs/dbimport/meta.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/nf-core/crabs/dbimport/meta.yml b/modules/nf-core/crabs/dbimport/meta.yml index 030a450a260..27424a0464b 100644 --- a/modules/nf-core/crabs/dbimport/meta.yml +++ b/modules/nf-core/crabs/dbimport/meta.yml @@ -2,7 +2,9 @@ name: crabs_dbimport description: In-house generated or curated data can be imported into CRABS. keywords: - insilico - - PCR + - amplicon + - sequencing + - inhouse tools: - crabs: description: | From 115f539ef30471dc3d70b53727c2dd95af807cf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Famke=20Ba=CC=88uerle?= Date: Thu, 5 Sep 2024 14:54:53 +0200 Subject: [PATCH 03/11] remove defaults --- modules/nf-core/crabs/dbimport/environment.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/nf-core/crabs/dbimport/environment.yml b/modules/nf-core/crabs/dbimport/environment.yml index 78fa255d3d9..b81fb837b14 100644 --- a/modules/nf-core/crabs/dbimport/environment.yml +++ b/modules/nf-core/crabs/dbimport/environment.yml @@ -2,6 +2,5 @@ name: crabs_dbimport channels: - conda-forge - bioconda - - defaults dependencies: - "bioconda::crabs=0.1.1" From eec926c01392e8f2ff155c1ed524ef29314e043a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Famke=20Ba=CC=88uerle?= Date: Thu, 5 Sep 2024 15:26:00 +0200 Subject: [PATCH 04/11] update crabs with wave containers --- modules/nf-core/crabs/dbimport/environment.yml | 7 ++++++- modules/nf-core/crabs/dbimport/main.nf | 11 ++++------- .../nf-core/crabs/dbimport/tests/main.nf.test.snap | 12 ++++++------ 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/modules/nf-core/crabs/dbimport/environment.yml b/modules/nf-core/crabs/dbimport/environment.yml index b81fb837b14..9a872a4af05 100644 --- a/modules/nf-core/crabs/dbimport/environment.yml +++ b/modules/nf-core/crabs/dbimport/environment.yml @@ -3,4 +3,9 @@ channels: - conda-forge - bioconda dependencies: - - "bioconda::crabs=0.1.1" + - wget=1.21.3 + - muscle=3.8.31 + - cutadapt>=4.0 + - vsearch>=2.13.3 + - pip: + - crabs==0.2 diff --git a/modules/nf-core/crabs/dbimport/main.nf b/modules/nf-core/crabs/dbimport/main.nf index 4696fbab3e9..a73339cb30b 100644 --- a/modules/nf-core/crabs/dbimport/main.nf +++ b/modules/nf-core/crabs/dbimport/main.nf @@ -2,11 +2,10 @@ process CRABS_DBIMPORT { tag "$meta.id" label 'process_medium' - // WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions. conda "${moduleDir}/environment.yml" container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? - 'https://depot.galaxyproject.org/singularity/crabs:0.1.1--pyhb7b1952_0': - 'biocontainers/crabs:0.1.1--pyhb7b1952_0' }" + 'oras://community.wave.seqera.io/library/cutadapt_muscle_vsearch_wget_pruned:0cd5cb1e549e5033': + 'community.wave.seqera.io/library/cutadapt_muscle_vsearch_wget_pruned:04f6c0370c0226c5' }" input: tuple val(meta), path(fasta) @@ -21,7 +20,6 @@ process CRABS_DBIMPORT { script: def args = task.ext.args ?: '' def prefix = task.ext.prefix ?: "${meta.id}" - def VERSION = '0.1.1' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions. def is_compressed = fasta.name.endsWith(".gz") def fasta_name = fasta.name.replace(".gz", "") """ @@ -38,19 +36,18 @@ process CRABS_DBIMPORT { cat <<-END_VERSIONS > versions.yml "${task.process}": - crabs: $VERSION + crabs: \$(crabs --version | sed -e 's/crabs v//g') END_VERSIONS """ stub: def prefix = task.ext.prefix ?: "${meta.id}" - def VERSION = '0.1.1' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions. """ touch ${prefix}.fa cat <<-END_VERSIONS > versions.yml "${task.process}": - crabs: $VERSION + crabs: \$(crabs --version | sed -e 's/crabs v//g') END_VERSIONS """ } diff --git a/modules/nf-core/crabs/dbimport/tests/main.nf.test.snap b/modules/nf-core/crabs/dbimport/tests/main.nf.test.snap index e01938f9fef..a237dcd51b7 100644 --- a/modules/nf-core/crabs/dbimport/tests/main.nf.test.snap +++ b/modules/nf-core/crabs/dbimport/tests/main.nf.test.snap @@ -11,7 +11,7 @@ ] ], "1": [ - "versions.yml:md5,aa9d175ec56d1dce0a3588883ab1b00a" + "versions.yml:md5,4f1f73cb937227ccf6abfa3002824535" ], "fasta": [ [ @@ -22,7 +22,7 @@ ] ], "versions": [ - "versions.yml:md5,aa9d175ec56d1dce0a3588883ab1b00a" + "versions.yml:md5,4f1f73cb937227ccf6abfa3002824535" ] } ], @@ -30,7 +30,7 @@ "nf-test": "0.9.0", "nextflow": "24.04.4" }, - "timestamp": "2024-09-05T12:42:46.076137" + "timestamp": "2024-09-05T15:25:04.701271" }, "sarscov2 - fasta": { "content": [ @@ -44,7 +44,7 @@ ] ], "1": [ - "versions.yml:md5,aa9d175ec56d1dce0a3588883ab1b00a" + "versions.yml:md5,4f1f73cb937227ccf6abfa3002824535" ], "fasta": [ [ @@ -55,7 +55,7 @@ ] ], "versions": [ - "versions.yml:md5,aa9d175ec56d1dce0a3588883ab1b00a" + "versions.yml:md5,4f1f73cb937227ccf6abfa3002824535" ] } ], @@ -63,6 +63,6 @@ "nf-test": "0.9.0", "nextflow": "24.04.4" }, - "timestamp": "2024-09-05T12:42:41.421262" + "timestamp": "2024-09-05T15:24:57.657881" } } \ No newline at end of file From 35a9c29fb20e6ae66a4356a7d7b1ec85c088c1e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Famke=20Ba=CC=88uerle?= Date: Thu, 5 Sep 2024 15:41:00 +0200 Subject: [PATCH 05/11] update meta --- modules/nf-core/crabs/dbimport/environment.yml | 1 + modules/nf-core/crabs/dbimport/meta.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/nf-core/crabs/dbimport/environment.yml b/modules/nf-core/crabs/dbimport/environment.yml index 9a872a4af05..81f9937843e 100644 --- a/modules/nf-core/crabs/dbimport/environment.yml +++ b/modules/nf-core/crabs/dbimport/environment.yml @@ -7,5 +7,6 @@ dependencies: - muscle=3.8.31 - cutadapt>=4.0 - vsearch>=2.13.3 + - pip>=23.2 - pip: - crabs==0.2 diff --git a/modules/nf-core/crabs/dbimport/meta.yml b/modules/nf-core/crabs/dbimport/meta.yml index 27424a0464b..e7ac1de3e70 100644 --- a/modules/nf-core/crabs/dbimport/meta.yml +++ b/modules/nf-core/crabs/dbimport/meta.yml @@ -14,7 +14,7 @@ tools: homepage: https://github.com/gjeunen/reference_database_creator documentation: https://github.com/gjeunen/reference_database_creator?tab=readme-ov-file#running-crabs tool_dev_url: https://github.com/gjeunen/reference_database_creator - doi: https://doi.org/10.1111/1755-0998.13741 + doi: 10.1111/1755-0998.13741 licence: ["MIT License"] input: From 141c1d0ba5274f7323e1ce1bd63117c8828f76c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Famke=20Ba=CC=88uerle?= Date: Mon, 9 Sep 2024 09:06:15 +0200 Subject: [PATCH 06/11] remove name --- modules/nf-core/crabs/dbimport/environment.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/nf-core/crabs/dbimport/environment.yml b/modules/nf-core/crabs/dbimport/environment.yml index 81f9937843e..732638a8038 100644 --- a/modules/nf-core/crabs/dbimport/environment.yml +++ b/modules/nf-core/crabs/dbimport/environment.yml @@ -1,4 +1,3 @@ -name: crabs_dbimport channels: - conda-forge - bioconda From a530697c6f22a8fce031ff43dfae18da17488f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Famke=20Ba=CC=88uerle?= Date: Mon, 9 Sep 2024 09:34:38 +0200 Subject: [PATCH 07/11] update env --- modules/nf-core/crabs/dbimport/environment.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/nf-core/crabs/dbimport/environment.yml b/modules/nf-core/crabs/dbimport/environment.yml index 732638a8038..489866b9e39 100644 --- a/modules/nf-core/crabs/dbimport/environment.yml +++ b/modules/nf-core/crabs/dbimport/environment.yml @@ -2,10 +2,10 @@ channels: - conda-forge - bioconda dependencies: - - wget=1.21.3 - - muscle=3.8.31 - - cutadapt>=4.0 - - vsearch>=2.13.3 - - pip>=23.2 + - bioconda::cutadapt=4.9 + - bioconda::muscle=3.8.31 + - bioconda::vsearch=2.28.1 + - conda-forge::wget=1.20.3 + - pip - pip: - - crabs==0.2 + - crabs==0.2.0 From 4b69ae0923064d321ac11dd68adbf0a8d9224841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Famke=20Ba=CC=88uerle?= Date: Mon, 9 Sep 2024 09:36:20 +0200 Subject: [PATCH 08/11] prettier --- modules/nf-core/crabs/dbimport/environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nf-core/crabs/dbimport/environment.yml b/modules/nf-core/crabs/dbimport/environment.yml index 489866b9e39..5bbf98b7f43 100644 --- a/modules/nf-core/crabs/dbimport/environment.yml +++ b/modules/nf-core/crabs/dbimport/environment.yml @@ -8,4 +8,4 @@ dependencies: - conda-forge::wget=1.20.3 - pip - pip: - - crabs==0.2.0 + - crabs==0.2.0 From bc32c2dcd104b02c03afececb6dc283c79429182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Famke=20Ba=CC=88uerle?= Date: Mon, 9 Sep 2024 10:03:34 +0200 Subject: [PATCH 09/11] fix pip version --- modules/nf-core/crabs/dbimport/environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nf-core/crabs/dbimport/environment.yml b/modules/nf-core/crabs/dbimport/environment.yml index 5bbf98b7f43..ceed5f98e28 100644 --- a/modules/nf-core/crabs/dbimport/environment.yml +++ b/modules/nf-core/crabs/dbimport/environment.yml @@ -6,6 +6,6 @@ dependencies: - bioconda::muscle=3.8.31 - bioconda::vsearch=2.28.1 - conda-forge::wget=1.20.3 - - pip + - conda-forge::pip=24.2 - pip: - crabs==0.2.0 From 90ea3854149de0a0d1e0e455b7f90415d56243d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Famke=20Ba=CC=88uerle?= Date: Fri, 25 Oct 2024 13:04:48 +0200 Subject: [PATCH 10/11] update to 1.0.4 new structure needs resolving --- modules/nf-core/crabs/dbimport/environment.yml | 8 +------- modules/nf-core/crabs/dbimport/main.nf | 6 +++--- modules/nf-core/crabs/dbimport/tests/nextflow.config | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/modules/nf-core/crabs/dbimport/environment.yml b/modules/nf-core/crabs/dbimport/environment.yml index ceed5f98e28..20be3a698d8 100644 --- a/modules/nf-core/crabs/dbimport/environment.yml +++ b/modules/nf-core/crabs/dbimport/environment.yml @@ -2,10 +2,4 @@ channels: - conda-forge - bioconda dependencies: - - bioconda::cutadapt=4.9 - - bioconda::muscle=3.8.31 - - bioconda::vsearch=2.28.1 - - conda-forge::wget=1.20.3 - - conda-forge::pip=24.2 - - pip: - - crabs==0.2.0 + - bioconda::crabs==1.0.4 diff --git a/modules/nf-core/crabs/dbimport/main.nf b/modules/nf-core/crabs/dbimport/main.nf index a73339cb30b..f715c222bcd 100644 --- a/modules/nf-core/crabs/dbimport/main.nf +++ b/modules/nf-core/crabs/dbimport/main.nf @@ -4,8 +4,8 @@ process CRABS_DBIMPORT { conda "${moduleDir}/environment.yml" container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? - 'oras://community.wave.seqera.io/library/cutadapt_muscle_vsearch_wget_pruned:0cd5cb1e549e5033': - 'community.wave.seqera.io/library/cutadapt_muscle_vsearch_wget_pruned:04f6c0370c0226c5' }" + 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/e0/e0007b6b35c9783203b7fde287c383ac38168ecfee79639393e3cb1cd4afdaef/data': + 'community.wave.seqera.io/library/crabs:1.0.4--1de4f5571e3e4ab0' }" input: tuple val(meta), path(fasta) @@ -27,7 +27,7 @@ process CRABS_DBIMPORT { gzip -c -d ${fasta} > ${fasta_name} fi - crabs db_import \\ + crabs --import \\ --input ${fasta_name} \\ --output ${prefix}.crabsdb.fa \\ $args diff --git a/modules/nf-core/crabs/dbimport/tests/nextflow.config b/modules/nf-core/crabs/dbimport/tests/nextflow.config index 282a7b2ebbd..0a335183d8e 100644 --- a/modules/nf-core/crabs/dbimport/tests/nextflow.config +++ b/modules/nf-core/crabs/dbimport/tests/nextflow.config @@ -1,7 +1,7 @@ process { withName: CRABS_DBIMPORT { - ext.args = "--seq_header species --delim ' '" + ext.args = "--seq_header species --delim ' ' --import-format embl \\" } } From f157b0b6ce422c91117f661934ab08f4f27f7cdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Famke=20Ba=CC=88uerle?= Date: Mon, 18 Nov 2024 14:26:39 +0100 Subject: [PATCH 11/11] update --- .../nf-core/crabs/dbimport/environment.yml | 2 +- modules/nf-core/crabs/dbimport/main.nf | 4 +- modules/nf-core/crabs/dbimport/meta.yml | 47 ++++++++++--------- 3 files changed, 27 insertions(+), 26 deletions(-) diff --git a/modules/nf-core/crabs/dbimport/environment.yml b/modules/nf-core/crabs/dbimport/environment.yml index 20be3a698d8..74ca9a2d9b3 100644 --- a/modules/nf-core/crabs/dbimport/environment.yml +++ b/modules/nf-core/crabs/dbimport/environment.yml @@ -2,4 +2,4 @@ channels: - conda-forge - bioconda dependencies: - - bioconda::crabs==1.0.4 + - bioconda::crabs=1.0.6 diff --git a/modules/nf-core/crabs/dbimport/main.nf b/modules/nf-core/crabs/dbimport/main.nf index f715c222bcd..b8fdfbd2def 100644 --- a/modules/nf-core/crabs/dbimport/main.nf +++ b/modules/nf-core/crabs/dbimport/main.nf @@ -4,8 +4,8 @@ process CRABS_DBIMPORT { conda "${moduleDir}/environment.yml" container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? - 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/e0/e0007b6b35c9783203b7fde287c383ac38168ecfee79639393e3cb1cd4afdaef/data': - 'community.wave.seqera.io/library/crabs:1.0.4--1de4f5571e3e4ab0' }" + 'oras://community.wave.seqera.io/library/crabs:1.0.6--a95c7815a4a67eb2': + 'community.wave.seqera.io/library/crabs:1.0.6--462aa28d85ee454e' }" input: tuple val(meta), path(fasta) diff --git a/modules/nf-core/crabs/dbimport/meta.yml b/modules/nf-core/crabs/dbimport/meta.yml index e7ac1de3e70..0aeffde1558 100644 --- a/modules/nf-core/crabs/dbimport/meta.yml +++ b/modules/nf-core/crabs/dbimport/meta.yml @@ -16,33 +16,34 @@ tools: tool_dev_url: https://github.com/gjeunen/reference_database_creator doi: 10.1111/1755-0998.13741 licence: ["MIT License"] + identifier: "" input: - - meta: - type: map - description: | - Groovy Map containing sample information - e.g. `[ id:'sample1' ]` - - fasta: - type: file - description: In-house sequencing data - pattern: "*.{fa,fasta}" - + - - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1' ]` + - fasta: + type: file + description: In-house sequencing data + pattern: "*.{fa,fasta}" output: - - meta: - type: map - description: | - Groovy Map containing sample information - e.g. `[ id:'sample1' ]` - - versions: - type: file - description: File containing software versions - pattern: "versions.yml" - fasta: - type: file - description: Reverse complemented Sequence - pattern: "*.{fa,fasta}" - + - meta: + type: map + description: | + Groovy Map containing sample information + e.g. `[ id:'sample1' ]` + - "*.fa": + type: file + description: Reverse complemented Sequence + pattern: "*.{fa,fasta}" + - versions: + - versions.yml: + type: file + description: File containing software versions + pattern: "versions.yml" authors: - "@famosab" - "@a4000"