From 8e24fa3151a0eb7681a9c5a316cc092e747f440c Mon Sep 17 00:00:00 2001 From: Mahesh Binzer-Panchal Date: Thu, 28 Sep 2023 12:41:10 +0000 Subject: [PATCH] Patch blast/makeblastdb to use a meta map --- modules.json | 3 ++- .../blast/makeblastdb/blast-makeblastdb.diff | 20 +++++++++++++++++++ modules/nf-core/blast/makeblastdb/main.nf | 6 +++--- 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 modules/nf-core/blast/makeblastdb/blast-makeblastdb.diff diff --git a/modules.json b/modules.json index d0d4182..f032637 100644 --- a/modules.json +++ b/modules.json @@ -8,7 +8,8 @@ "blast/makeblastdb": { "branch": "master", "git_sha": "911696ea0b62df80e900ef244d7867d177971f73", - "installed_by": ["modules"] + "installed_by": ["modules"], + "patch": "modules/nf-core/blast/makeblastdb/blast-makeblastdb.diff" }, "busco": { "branch": "master", diff --git a/modules/nf-core/blast/makeblastdb/blast-makeblastdb.diff b/modules/nf-core/blast/makeblastdb/blast-makeblastdb.diff new file mode 100644 index 0000000..daacf20 --- /dev/null +++ b/modules/nf-core/blast/makeblastdb/blast-makeblastdb.diff @@ -0,0 +1,20 @@ +Changes in module 'nf-core/blast/makeblastdb' +--- modules/nf-core/blast/makeblastdb/main.nf ++++ modules/nf-core/blast/makeblastdb/main.nf +@@ -8,11 +8,11 @@ + 'biocontainers/blast:2.13.0--hf3cf87c_0' }" + + input: +- path fasta ++ tuple val(meta), path(fasta) + + output: +- path 'blast_db' , emit: db +- path "versions.yml" , emit: versions ++ tuple val(meta), path('blast_db'), emit: db ++ path "versions.yml" , emit: versions + + when: + task.ext.when == null || task.ext.when + +************************************************************ diff --git a/modules/nf-core/blast/makeblastdb/main.nf b/modules/nf-core/blast/makeblastdb/main.nf index f576361..93f8851 100644 --- a/modules/nf-core/blast/makeblastdb/main.nf +++ b/modules/nf-core/blast/makeblastdb/main.nf @@ -8,11 +8,11 @@ process BLAST_MAKEBLASTDB { 'biocontainers/blast:2.13.0--hf3cf87c_0' }" input: - path fasta + tuple val(meta), path(fasta) output: - path 'blast_db' , emit: db - path "versions.yml" , emit: versions + tuple val(meta), path('blast_db'), emit: db + path "versions.yml" , emit: versions when: task.ext.when == null || task.ext.when