-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathnextflow.config
executable file
·143 lines (114 loc) · 3.09 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
#! /usr/bin/env nextflow
// C-WAP NextFlow configuration script
// Clear the work directory after successfull execution
// cleanup = true
manifest {
homePage = 'https://github.com/CFSAN-Biostatistics/C-WAP'
description = 'C-WAP: CFSAN Wastewater Analysis Pipeline'
author = 'Tunc Kayikcioglu / FDA / CFSAN, maintained by Jasmine Amirzadegan / FDA / CFSAN'
mainScript = 'startWorkflow.nf'
}
params {
referenceSequence = "$projectDir/covidRefSequences/wuhan.fa"
variantDBfile = "$projectDir/covidRefSequences/varDefinitions.pkl"
primerBedFile = "$projectDir/covidRefSequences/none.bed"
in = "./"
out = "./"
make_pdfs = true
}
conda {
cacheDir = "$projectDir/conda"
createOptions = '-c bioconda -c conda-forge -c defaults'
conda.createTimeout = '3 h'
withName:'freyjaVariantCaller'{
useMamba = true
}
}
process {
shell = ['/bin/bash','-e']
//clusterOptions = '-x n141,n147,n225,n227,n228'
//errorStrategy = 'retry'
errorStrategy = {sleep(2000); return 'retry'} // Wait for 2000ms before re-trying. Waiting gives automount a reaction time.
maxRetries = 5
// Disabled, as it increases computation time.
// scratch = "ram-disk"
// scratch = true
}
process {
time = '1 h'
cpus = 2
memory = '8 GB'
withLabel: high_cpu {
maxForks = 2
cpus = 15
memory = '16 GB'
}
withName: 'freyjaVariantCaller' {
time = '3 h'
maxForks = 20
cpus = 15
// cpus = 20
memory = '24 GB'
}
withName: 'consensusSequence' {
maxForks = 1
cpus = 15
memory = '16 GB'
}
withLabel: high_IO {
// Execute only a few at a time.
// This reduces storage IO by avoiding concurrent read access.
maxForks = 2
}
withName: 'trimming' {
memory = '16 GB'
}
withName: 'trimmedBam2Fastq' {
memory = '16 GB'
}
withName: 'generatePileup' {
memory = '16 GB'
}
}
// This block needs to be modified to customise for the available computational resources
profiles {
local_only {
process.executor = 'local'
}
standard {
executor {
name = 'slurm'
queueSize = 400
// queueStatInterval = '30 sec'
}
process {
executor = 'slurm'
// queue = <partition name here>
time = '1 h'
cpus = 2
memory = '8 GB'
withLabel: high_cpu {
cpus = 20
}
}
}
aws {
executor {
name = 'slurm'
queueSize = 400
}
process {
time = '1 h'
cpus = 2
memory = '8 GB'
withLabel: high_cpu {
cpus = 15
}
withLabel: high_IO {
// Execute only a few at a time.
// This reduces storage IO by avoiding concurrent read access.
maxForks = 2
}
}
}
}