-
Notifications
You must be signed in to change notification settings - Fork 15
/
nextflow.config
204 lines (179 loc) · 4.46 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
manifest {
mainScript = 'phage.nf'
}
params {
// default parameters
max_cores = Runtime.runtime.availableProcessors()
cores = Runtime.runtime.availableProcessors().intdiv(4)
mem = "12"
help = false
fasta = false
fastq = false
dir = ''
list = false
filter = '1500'
setup = ''
all_tools = false
annotation_db = false
plot_completeness = '75.00'
// folder structure
output = 'results'
databases = 'nextflow-autodownload-databases'
workdir = "/tmp/nextflow-phages-$USER"
cachedir = "singularity_images"
// Profiles
executor = 'local'
engine = 'docker'
// tool deactivation
dv = false
ma = false
mp = false
vf = false
vs = false
vs2 = false
pp = false
sm = false
vb = false
vn = false
ph = false
sk = false
identify = false
annotate = false
virome = false
// parameter
hmm_params = '-E 1e-30'
// raw tool output filters
dv_filter = '0.9'
mp_filter = '50'
vf_filter = '0.9'
sm_filter = '0.5'
vn_filter = '0.5'
vs2_filter = '0.9'
sk_filter = '0.75'
}
// runinfo
timeline {
enabled = true
overwrite = true
file = "${params.output}/runinfo/execution_timeline.html"
}
report {
enabled = true
overwrite = true
file = "${params.output}/runinfo/execution_report.html"
}
profiles {
// testrun profile
test {
params{
fasta = true
}
}
smalltest {
params{
fasta = true
}
}
stub {
params.cores = 2
}
//executer
local {
executor {
name = "local"
cpus = params.max_cores
}
workDir = params.workdir
includeConfig 'configs/local.config'
}
lsf {
executor {
name = "lsf"
queueSize = 200
}
workDir = params.workdir
process.cache = "lenient"
includeConfig 'configs/node.config'
}
slurm {
executor {
name = "slurm"
queueSize = 200
}
workDir = params.workdir
process {
cache = "lenient"
time = '2h'
memory = '4 GB'
}
includeConfig 'configs/node.config'
}
ukj_cloud {
workDir = params.workdir
docker { enabled = true }
process {
executor = 'google-batch'
errorStrategy = { task.exitStatus in [10,14,143,137,104,134,139] ? 'retry' : 'terminate' }
maxRetries = 3
withLabel: noDocker { container = 'nanozoo/template:3.8--d089809' }
}
params { databases = 'gs://databases-case-grp/What-the-Phage' }
bucketDir = 'gs://case-tmp-dir/What-the-Phage'
google {
project = 'case-dev-302214'
location = 'europe-west4'
batch{
spot = true
bootDiskSize = 50.GB
}
}
includeConfig 'configs/container.config'
includeConfig 'configs/node.config'
}
//engines
docker {
docker { enabled = true }
includeConfig 'configs/container.config'
}
singularity {
singularity {
enabled = true
autoMounts = true
cacheDir = params.cachedir
//envWhitelist = 'SINGULARITY_LOCALCACHEDIR'
envWhiteList = "HTTPS_PROXY,HTTP_PROXY,http_proxy,https_proxy,FTP_PROXY,ftp_proxy"
}
includeConfig 'configs/container.config'
}
// gitaction
git_action {
includeConfig 'configs/local.config'
params {
ma = true
mp = true
vf = false
vs = true
pp = true
sm = true
vb = true
vn = true
dv = true
sk = true
anno = true
fasta = 'test-data/all_pos_phage.fa'
}
}
// cluster specific executer
ebi {
executor {
name = "lsf"
queueSize = 200
}
process.cache = "lenient"
params.workdir = "/hps/nobackup2/production/metagenomics/$USER/nextflow-work-$USER"
workDir = params.workdir
params.databases = "/homes/$USER/data/nextflow-databases/"
params.cachedir = "/hps/nobackup2/singularity/$USER"
includeConfig 'configs/node.config'
}
}