Skip to content

Commit

Permalink
split vs2 db download to separate module
Browse files Browse the repository at this point in the history
  • Loading branch information
papanikos committed Mar 30, 2021
1 parent 1f54ccb commit a29c0e6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions modules/databases/virsorter2_download_DB.nf
Original file line number Diff line number Diff line change
@@ -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
"""
}

0 comments on commit a29c0e6

Please sign in to comment.