-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathmetontiime2.conf
263 lines (258 loc) · 9.88 KB
/
metontiime2.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
params{
//Path to working directory including fastq.gz files
workDir="/path/to/workDir"
//Path to sample metadata tsv file; if it doesn't exist yet, it is created at runtime
sampleMetadata="/path/to/sample-metadata.tsv"
//Path to database file with sequences in fasta format
dbSequencesFasta="/path/to/sequence.fasta"
//Path to database file with sequence id-to-taxonomy correspondence in tsv format
dbTaxonomyTsv="/path/to/taxonomy.tsv"
//Name of database file with sequences as QIIME2 artifact (qza); if it is already available, it should be put in resultsDir/importDb
dbSequencesQza="db_sequences.qza"
//Name of database file with sequence id-to-taxonomy correspondence as QIIME2 artifact (qza); if it is already available, it should be put in resultsDir/importDb
dbTaxonomyQza="db_taxonomy.qza"
//Taxonomy classifier, available: VSEARCH, Blast
classifier="Vsearch"
//maxNumReads is the maximum number of reads per sample; if one sample has more than maxNumReads, random downsampling is performed
maxNumReads=50000
//minReadLength is the minimum length (bp) for a read to be retained
minReadLength=200
//maxReadLength is the maximum length (bp) for a read to be retained
maxReadLength=5000
//minQual is the minimum average PHRED score for a read to be retained
minQual=10
//Number of bases to be trimmed at both ends
extraEndsTrim=20
//Identity for de novo clustering [0-1]
clusteringIdentity=1
//Maximum number of candidate hits for each read, to be used for consensus taxonomy assignment
maxAccepts=3
//Minimum fraction of assignments must match top hit to be accepted as consensus assignment [0.5-1]
minConsensus=0.7
//Minimum query coverage for an alignment to be considered a candidate hit [0-1]
minQueryCoverage=0.8
//Minimum alignment identity for an alignment to be considered a candidate hit [0-1]
minIdentity=0.9
//Taxonomy level at which you want to perform non-phylogeny-based diversity analyses
taxaLevelDiversity=6
//Max num. reads for diversity analyses
numReadsDiversity=500
//Taxa of interest that you want to retain and to focus the analysis on
taxaOfInterest=""
//Minimum number of reads assigned to Taxa of interest to retain a sample
minNumReadsTaxaOfInterest=1
//Path to directory containing results
resultsDir="/path/to/resultsDir"
help=false
// Flags to select which process to run
concatenateFastq = false
filterFastq = true
downsampleFastq = true
importFastq = true
dataQC = true
importDb = true
derepSeq = true
assignTaxonomy = true
taxonomyVisualization = true
collapseTables = true
filterTaxa = false
diversityAnalyses = true
}
tower {
enabled = false
endpoint = '-'
accessToken = 'nextflowTowerToken'
}
profiles {
singularity {
singularity.enabled = true
singularity.autoMounts = false
//singularity.cacheDir = "/path/to/singularity/cacheDir" // if commented, work dir is going to be usedd
process{
containerOptions = '--bind /home/:/home'
cpus = 1
executor = 'pbspro'
queue = 'workq'
perJobMemLimit = true
withName:concatenateFastq{
container = 'maestsi/metontiime:latest'
cpus = { params.concatenateFastq ? 6 : 1 }
memory = { params.concatenateFastq ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:filterFastq{
container = 'maestsi/metontiime:latest'
cpus = { params.filterFastq ? 6 : 1 }
memory = { params.filterFastq ? 5.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:downsampleFastq{
container = 'maestsi/metontiime:latest'
cpus = { params.downsampleFastq ? 6 : 1 }
memory = { params.downsampleFastq ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:importFastq{
container = 'maestsi/metontiime:latest'
cpus = { params.importFastq ? 6 : 1 }
memory = { params.importFastq ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:dataQC{
container = 'maestsi/metontiime:latest'
cpus = { params.dataQC ? 6 : 1 }
memory = { params.dataQC ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:importDb{
container = 'maestsi/metontiime:latest'
cpus = { params.importDb ? 6 : 1 }
memory = { params.importDb ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:derepSeq{
container = 'maestsi/metontiime:latest'
cpus = { params.derepSeq ? 6 : 1 }
memory = { params.derepSeq ? 100.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:assignTaxonomy{
container = 'maestsi/metontiime:latest'
cpus = { params.assignTaxonomy ? 6 : 1 }
memory = { params.assignTaxonomy ? 100.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:taxonomyVisualization{
container = 'maestsi/metontiime:latest'
cpus = { params.taxonomyVisualization ? 6 : 1 }
memory = { params.taxonomyVisualization ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:collapseTables{
container = 'maestsi/metontiime:latest'
cpus = { params.collapseTables ? 6 : 1 }
memory = { params.collapseTables ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:filterTaxa{
container = 'maestsi/metontiime:latest'
cpus = { params.filterTaxa ? 6 : 1 }
memory = { params.filterTaxa ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:diversityAnalyses{
container = 'maestsi/metontiime:latest'
cpus = { params.diversityAnalyses ? 6 : 1 }
memory = { params.diversityAnalyses ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
}
}
docker {
docker.enabled = true
docker.autoMounts = false
//docker.cacheDir = "/path/to/docker/cacheDir" // if commented, work dir is going to be used
process{
containerOptions = '-v /home/:/home'
cpus = 1
executor = 'local'
perJobMemLimit = true
withName:concatenateFastq{
container = 'maestsi/metontiime:latest'
cpus = { params.concatenateFastq ? 6 : 1 }
memory = { params.concatenateFastq ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:filterFastq{
container = 'maestsi/metontiime:latest'
cpus = { params.filterFastq ? 6 : 1 }
memory = { params.filterFastq ? 5.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:downsampleFastq{
container = 'maestsi/metontiime:latest'
cpus = { params.downsampleFastq ? 6 : 1 }
memory = { params.downsampleFastq ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:importFastq{
container = 'maestsi/metontiime:latest'
cpus = { params.importFastq ? 6 : 1 }
memory = { params.importFastq ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:dataQC{
container = 'maestsi/metontiime:latest'
cpus = { params.dataQC ? 6 : 1 }
memory = { params.dataQC ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:importDb{
container = 'maestsi/metontiime:latest'
cpus = { params.importDb ? 6 : 1 }
memory = { params.importDb ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:derepSeq{
container = 'maestsi/metontiime:latest'
cpus = { params.derepSeq ? 6 : 1 }
memory = { params.derepSeq ? 100.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:assignTaxonomy{
container = 'maestsi/metontiime:latest'
cpus = { params.assignTaxonomy ? 6 : 1 }
memory = { params.assignTaxonomy ? 100.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:taxonomyVisualization{
container = 'maestsi/metontiime:latest'
cpus = { params.taxonomyVisualization ? 6 : 1 }
memory = { params.taxonomyVisualization ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:collapseTables{
container = 'maestsi/metontiime:latest'
cpus = { params.collapseTables ? 6 : 1 }
memory = { params.collapseTables ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:filterTaxa{
container = 'maestsi/metontiime:latest'
cpus = { params.filterTaxa ? 6 : 1 }
memory = { params.filterTaxa ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:diversityAnalyses{
container = 'maestsi/metontiime:latest'
cpus = { params.diversityAnalyses ? 6 : 1 }
memory = { params.diversityAnalyses ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
}
}
}