From a29c0e643c7ae84af7de3e912dc7564d46f2d9d4 Mon Sep 17 00:00:00 2001 From: papanikos Date: Tue, 30 Mar 2021 14:12:09 +0200 Subject: [PATCH] split vs2 db download to separate module --- modules/databases/virsorter2_download_DB.nf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/databases/virsorter2_download_DB.nf diff --git a/modules/databases/virsorter2_download_DB.nf b/modules/databases/virsorter2_download_DB.nf new file mode 100644 index 0000000..7a37db4 --- /dev/null +++ b/modules/databases/virsorter2_download_DB.nf @@ -0,0 +1,15 @@ +process download_virsorter2_DB { + label 'noDocker' + if (params.cloudProcess) { publishDir "${params.databases}/virsorter2-db", mode: 'copy' } + else { storeDir "${params.databases}/virsorter2-db" } + output: + path("virsorter2-db", type: 'dir') + script: + """ + wget https://osf.io/v46sc/download -O db.tgz + mkdir virsorter2-db + tar -zxvf db.tgz virsorter2-db --strip-components=1 -C virsorter2-db + chmod a+rX virsorter2-db + rm -f db.tgz + """ +}