From fe09a19e1080f6040b50144edc833853eae88905 Mon Sep 17 00:00:00 2001 From: christian Date: Mon, 30 Dec 2019 15:48:29 +0100 Subject: [PATCH] changed blast DB handling --- modules/databases/phage_references_blastDB.nf | 8 ++++---- modules/metaphinder.nf | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/databases/phage_references_blastDB.nf b/modules/databases/phage_references_blastDB.nf index 3b73b7f..280fedb 100644 --- a/modules/databases/phage_references_blastDB.nf +++ b/modules/databases/phage_references_blastDB.nf @@ -1,17 +1,17 @@ process phage_references_blastDB { if (params.cloudProcess) { - publishDir "${params.cloudDatabase}/", mode: 'copy', pattern: "blast_phage_DB" + publishDir "${params.cloudDatabase}/", mode: 'copy', pattern: "phage_db.*" } else { - storeDir "nextflow-autodownload-databases/" + storeDir "nextflow-autodownload-databases/blast_phage_DB" } label 'metaphinder' input: file(references) output: - file("blast_phage_DB/") + file("phage_db.*") script: """ - makeblastdb -in ${references} -dbtype nucl -parse_seqids -out blast_phage_DB/phage_db -title phage_db + makeblastdb -in ${references} -dbtype nucl -parse_seqids -out phage_db -title phage_db """ } \ No newline at end of file diff --git a/modules/metaphinder.nf b/modules/metaphinder.nf index 39d17e7..0932e36 100644 --- a/modules/metaphinder.nf +++ b/modules/metaphinder.nf @@ -27,7 +27,7 @@ process metaphinder_own_DB { """ rnd=${Math.random()} mkdir ${name} - MetaPhinder.py -i ${fasta} -o ${name} -d ${database}/blast_phage_DB/phage_db + MetaPhinder.py -i ${fasta} -o ${name} -d phage_db mv ${name}/output.txt ${name}_\${rnd//0.}.list """ } \ No newline at end of file