-
Notifications
You must be signed in to change notification settings - Fork 20
/
sortmernaGet.nf
26 lines (20 loc) · 1.59 KB
/
sortmernaGet.nf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*******************************************
* DOWNLOAD SORTMERNA DATABASES
********************************************/
process sortmernaGet {
label 'sortmerna'
if (!workflow.profile.contains('node')) { label 'smallTask' }
if (params.cloudProcess) { publishDir "${params.permanentCacheDir}/databases/sortmerna/", mode: 'copy', pattern: "rRNA_databases.tar.gz" }
else { storeDir "${params.permanentCacheDir}/databases/sortmerna/" }
output:
path("rRNA_databases.tar.gz")
script:
"""
git clone https://github.com/biocore/sortmerna.git
indexdb_rna --ref ./sortmerna/data/rRNA_databases/silva-bac-16s-id90.fasta,./sortmerna/data/rRNA_databases/silva-bac-16s-id90:./sortmerna/data/rRNA_databases/silva-bac-23s-id98.fasta,./sortmerna/data/rRNA_databases/silva-bac-23s-id98:./sortmerna/data/rRNA_databases/silva-arc-16s-id95.fasta,./sortmerna/data/rRNA_databases/silva-arc-16s-id95:./sortmerna/data/rRNA_databases/silva-arc-23s-id98.fasta,./sortmerna/data/rRNA_databases/silva-arc-23s-id98:./sortmerna/data/rRNA_databases/silva-euk-18s-id95.fasta,./sortmerna/data/rRNA_databases/silva-euk-18s-id95:./sortmerna/data/rRNA_databases/silva-euk-28s-id98.fasta,./sortmerna/data/rRNA_databases/silva-euk-28s-id98:./sortmerna/data/rRNA_databases/rfam-5s-database-id98.fasta,./sortmerna/data/rRNA_databases/rfam-5s-database-id98:./sortmerna/data/rRNA_databases/rfam-5.8s-database-id98.fasta,./sortmerna/data/rRNA_databases/rfam-5.8s-database-id98 -v
mv sortmerna/data/rRNA_databases .
tar zcvf rRNA_databases.tar.gz rRNA_databases
rm -r rRNA_databases
rm -r sortmerna
"""
}