-
Notifications
You must be signed in to change notification settings - Fork 5
/
nextflow.config
443 lines (374 loc) · 12.5 KB
/
nextflow.config
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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
manifest.version = '2.4.0'
/*
** bbi-sci process profiles.
** Notes:
** o these profiles define process block-specific directives
** o the 'standard' profile is used by default. Alternate
** profiles are selected on the command line, e.g.,
**
** nextflow run -profile <my_profile> main.nf
**
** o the standard profile here defines directive values
** that are used on the UW Genome Sciences computing
** cluster.
** o there can be more than one configuration script, which
** can complicate troubleshooting when the scripts behave
** unexpectedly. The Nextflow documentation explains
**
** When a pipeline script is launched Nextflow looks for
** a file named nextflow.config in the current directory
** and in the script base directory (if it is not the
** same as the current directory). Finally it checks for
** the file $HOME/.nextflow/config.
**
** When more than one of the above files exist they are
** merged, so that the settings in the first override
** the same ones that may appear in the second one, and
** so on.
**
** The default config file search mechanism can be
** extended proving an extra configuration file by using
** the command line option -c <config file>.
**
** It's worth noting that by doing this, the files
** nextflow.config and $HOME/.nextflow/config are not
** ignored and they are merged as explained above.
**
** If you want to ignore any default configuration
** files and use only the custom one use the command
** line option -C <config file>.
**
** o selectors priority
** When mixing generic process configuration and selectors
** the following priority rules are applied (from lower
** to higher):
**
** 1. Process generic configuration.
** 2. Process specific directive defined in the workflow
** script.
** 3. withLabel selector definition.
** 4. withName selector definition.
**
** o a 'withName:' block defines directives used in the
** process block with the same names.
** o at the BBI we use modules to access required programs
** so we place module directives in the standard profile.
** o programs installed locally can be accessed by modifying
** the PATH environment variable for the submitted jobs;
** that is, by adding the directories in which the
** programs can be found to PATH. Use the 'beforeScript'
** directive for this purpose, for example
**
** beforeScript = 'export PATH=/opt/python/bin:$PATH'
** o notice that the 'ext' allows one to define their own
** process-specific variables that are accessible within
** the process block. For example, in order to define
** a variable called 'pass_in' for use in a process block
** called 'do_this', add to this nextflow.config file
** lines that look like
**
**
** profiles {
** my_profile {
** process {
**
** withName: do_this {
** pass_in = 'Hello World'
** }
** }
** }
** }
**
** and in the main.nf script refer to pass_in within the
** do_this process block as
**
** process do_this {
**
** println( 'print this: ' + task.ext.pass_in )
** }
**
** The 'task' scope can be used to output directive values
** where one refers to the directive values as
**
** task.memory
** task.cpus
** ...
**
** This can be helpful when troubleshooting.
*/
profiles {
centos7 {
process {
beforeScript = '. /etc/profile.d/modules.sh'
executor = "sge"
errorStrategy = "finish"
maxForks = 20
queue = "shendure-long.q"
// clusterOptions = '-l centos=7'
withName: check_sample_sheet {
module = 'modules:modules-init:modules-gs:python/3.7.7:numpy/1.21.1'
}
withName: trim_fastqs {
module = 'modules:modules-init:modules-gs:python/3.7.7:numpy/1.21.1:cutadapt/2.5:trim_galore/0.6.5'
memory = '16 GB'
}
withName: gather_info {
module = 'modules:modules-init:modules-gs:python/3.7.7:numpy/1.21.1'
memory = '2 GB'
}
withName: process_hashes {
module = 'modules:modules-init:modules-gs:python/3.7.7:numpy/1.21.1:scipy/1.2.3'
memory = '16 GB'
}
withName: align_reads {
module = 'modules:modules-init:modules-gs:STAR/2.6.1d'
penv = 'serial'
}
withName: sort_and_filter {
module = 'modules:modules-init:modules-gs:samtools/1.9'
memory = '2 GB'
penv = 'serial'
}
withName: combine_logs {
module = 'modules:modules-init:modules-gs'
memory = '2 GB'
}
withName: merge_bams {
module = 'modules:modules-init:modules-gs:samtools/1.9'
penv = 'serial'
}
withName: split_bam {
module = 'modules:modules-init:modules-gs:samtools/1.9:bamtools/20200731:bedtools/2.27.1:python/3.7.7:numpy/1.21.1'
memory = '8 GB'
}
withName: remove_dups_assign_genes {
module = 'modules:modules-init:modules-gs:bedtools/2.27.1:python/3.7.7:numpy/1.21.1:samtools/1.9'
memory = '48 GB'
}
withName: merge_assignment {
module = 'modules:modules-init:modules-gs'
memory = '2 GB'
}
withName: count_umis_by_sample {
module = 'modules:modules-init:modules-gs:python/3.7.7:numpy/1.21.1'
memory = '8 GB'
}
withName: make_matrix {
module = 'modules:modules-init:modules-gs:python/3.7.7:numpy/1.21.1:scipy/1.2.3'
cpus = 8
memory = '50 GB'
penv = 'serial'
}
withName: run_emptyDrops {
module = 'modules:modules-init:modules-gs:gcc/8.1.0:pcre2/10.35:hdf5/1.10.1:R/4.0.0'
memory = '16 GB'
}
withName: make_cds {
module = 'modules:modules-init:modules-gs:gcc/8.1.0:pcre2/10.35:hdf5/1.10.1:R/4.0.0'
memory = '50 GB'
}
withName: apply_garnett {
module = 'modules:modules-init:modules-gs:gcc/8.1.0:pcre2/10.35:hdf5/1.10.1:R/4.0.0'
memory = '16 GB'
}
withName: run_scrublet {
module = 'modules:modules-init:modules-gs:python/3.7.7:numpy/1.21.1:six/1.15.0:matplotlib/3.4.2'
memory = '32 GB'
}
withName: reformat_qc {
module = 'modules:modules-init:modules-gs:python/3.7.7:numpy/1.21.1:gcc/8.1.0:pcre2/10.35:hdf5/1.10.1:R/4.0.0'
memory = '16 GB'
}
withName: generate_qc_metrics {
module = 'modules:modules-init:modules-gs:gcc/8.1.0:pcre2/10.35:hdf5/1.10.1:R/4.0.0'
memory = '16 GB'
}
withName: zip_up_sample_stats {
module = 'modules:modules-init:modules-gs'
}
withName: calc_cell_totals {
module = 'modules:modules-init:modules-gs'
memory = '2 GB'
}
withName: assign_hash {
module = 'modules:modules-init:modules-gs:gcc/8.1.0:pcre2/10.35:hdf5/1.10.1:R/4.0.0'
memory = '16 GB'
}
withName: sort_hash {
module = 'modules:modules-init:modules-gs'
cpus = 8
memory = '8 GB'
penv = 'serial'
}
withName: combine_hash {
module = 'modules:modules-init:modules-gs'
cpus = 8
memory = '8 GB'
penv = 'serial'
}
withName: calc_hash_dup_cell {
module = 'modules:modules-init:modules-gs'
cpus = 8
memory = '8 GB'
penv = 'serial'
}
withName: calc_tot_hash_dup {
module = 'modules:modules-init:modules-gs:gcc/8.1.0:pcre2/10.35:hdf5/1.10.1:R/4.0.0'
memory = '16 GB'
}
withName: publish_cds_and_cell_qc {
module = 'modules:modules-init:modules-gs'
memory = '2 GB'
}
withName: collapse_collision {
module = 'modules:modules-init:modules-gs'
memory = '2 GB'
}
withName: generate_dashboard {
module = 'modules:modules-init:modules-gs:gcc/8.1.0:pcre2/10.35:hdf5/1.10.1:R/4.0.0'
memory = '2 GB'
}
withName: finish_log {
module = 'modules:modules-init:modules-gs'
}
withName: zip_up_log_data {
module = 'modules:modules-init:modules-gs'
}
} // end of process
} // end of centos7 profile
standard {
process {
beforeScript = '. /etc/profile.d/modules.sh'
executor = "sge"
errorStrategy = "finish"
maxForks = 20
withName: check_sample_sheet {
module = 'modules:modules-init:modules-gs:python/3.12.1'
}
withName: trim_fastqs {
module = 'modules:modules-init:modules-gs:python/3.12.1:cutadapt/4.6:trim_galore/0.6.10'
memory = '16 GB'
}
withName: gather_info {
module = 'modules:modules-init:modules-gs:python/3.12.1'
memory = '2 GB'
}
withName: process_hashes {
module = 'modules:modules-init:modules-gs:python/3.12.1:scipy/1.12.0'
memory = '32 GB'
}
withName: align_reads {
module = 'modules:modules-init:modules-gs:STAR/2.6.1d'
penv = 'serial'
}
withName: sort_and_filter {
module = 'modules:modules-init:modules-gs:samtools/1.19'
memory = '2 GB'
penv = 'serial'
}
withName: combine_logs {
module = 'modules:modules-init:modules-gs'
memory = '2 GB'
}
withName: merge_bams {
module = 'modules:modules-init:modules-gs:samtools/1.19'
penv = 'serial'
}
withName: split_bam {
module = 'modules:modules-init:modules-gs:samtools/1.19:bamtools/20200731:bedtools/2.31.1:python/3.12.1'
memory = '8 GB'
}
withName: remove_dups_assign_genes {
module = 'modules:modules-init:modules-gs:bedtools/2.31.1:samtools/1.19:python/3.12.1'
memory = '48 GB'
}
withName: merge_assignment {
module = 'modules:modules-init:modules-gs'
memory = '2 GB'
}
withName: count_umis_by_sample {
module = 'modules:modules-init:modules-gs:python/3.12.1'
memory = '8 GB'
}
withName: make_matrix {
module = 'modules:modules-init:modules-gs:python/3.12.1:scipy/1.12.0'
memory = '16 GB'
}
withName: run_emptyDrops {
module = 'modules:modules-init:modules-gs:hdf5/1.14.3:R/4.3.2'
memory = '16 GB'
}
withName: make_cds {
module = 'modules:modules-init:modules-gs:hdf5/1.14.3:R/4.3.2'
memory = '16 GB'
}
withName: apply_garnett {
module = 'modules:modules-init:modules-gs:hdf5/1.14.3:R/4.3.2'
memory = '16 GB'
}
withName: run_scrublet {
module = 'modules:modules-init:modules-gs:python/3.12.1:matplotlib/3.8.3'
memory = '32 GB'
}
withName: reformat_qc {
module = 'modules:modules-init:modules-gs:python/3.12.1:hdf5/1.14.3:R/4.3.2'
memory = '16 GB'
}
withName: generate_qc_metrics {
module = 'modules:modules-init:modules-gs:hdf5/1.14.3:R/4.3.2'
memory = '16 GB'
}
withName: zip_up_sample_stats {
module = 'modules:modules-init:modules-gs'
}
withName: calc_cell_totals {
module = 'modules:modules-init:modules-gs'
memory = '2 GB'
}
withName: assign_hash {
module = 'modules:modules-init:modules-gs:hdf5/1.14.3:R/4.3.2'
memory = '16 GB'
}
withName: sort_hash {
module = 'modules:modules-init:modules-gs'
cpus = 8
memory = '8 GB'
penv = 'serial'
}
withName: combine_hash {
module = 'modules:modules-init:modules-gs'
cpus = 8
memory = '8 GB'
penv = 'serial'
}
withName: calc_hash_dup_cell {
module = 'modules:modules-init:modules-gs'
cpus = 8
memory = '8 GB'
penv = 'serial'
}
withName: calc_tot_hash_dup {
module = 'modules:modules-init:modules-gs:hdf5/1.14.3:R/4.3.2'
memory = '16 GB'
}
withName: publish_cds_and_cell_qc {
module = 'modules:modules-init:modules-gs'
memory = '2 GB'
}
withName: collapse_collision {
module = 'modules:modules-init:modules-gs'
memory = '2 GB'
}
withName: generate_dashboard {
module = 'modules:modules-init:modules-gs:hdf5/1.14.3:R/4.3.2'
memory = '2 GB'
}
withName: finish_log {
module = 'modules:modules-init:modules-gs'
}
withName: zip_up_log_data {
module = 'modules:modules-init:modules-gs'
}
} // end of process
} // end of standard profile
} // end of profiles