forked from epi2me-labs/wf-human-variation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
executable file
·295 lines (258 loc) · 8.38 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
//
// Notes to End Users.
//
// The workflow should run without editing this configuration file,
// however there may be instances in which you wish to edit this
// file for compute performance or other reasons. Please see:
//
// https://nextflow.io/docs/latest/config.html#configuration
//
// for further help editing this file.
params {
help = false
version = false
disable_ping = false
threads = 4
aws_image_prefix = null
aws_queue = null
out_dir = "output"
// feature flags
snp = false
sv = false
mod = false
cnv = false
str = false
// benchmark feature flags
sv_benchmark = false
sv_benchmark_vcf = null
sv_benchmark_bed = null
// common
bam = null
ref = null
old_ref = null
bed = null
out_dir = "output"
bam_min_coverage = 20
downsample_coverage = false
downsample_coverage_target = 60
downsample_coverage_margin = 1.1
depth_window_size = 25000
/// common
ubam_map_threads = 8
ubam_sort_threads = 3
ubam_bam2fq_threads = 1
merge_threads = 4
// annotation
annotation = true
// snp
basecaller_cfg = "[email protected]"
clair3_model_path = null // used for overriding the guessed clair3 model
// workflow options
use_longphase = true
// clair3 parameters
sample_name = "SAMPLE"
ctg_name = null
include_all_ctgs = false
ref_pct_full = 0.1
var_pct_full = 0.7
GVCF = false
snp_min_af = 0.08
indel_min_af = 0.15
vcf_fn = "EMPTY"
min_contig_size = 0
min_mq = 5
min_cov = 2
min_qual = 2
refine_snp_with_sv = true
// sv
tr_bed= null
// filterCalls
min_sv_length = 30
min_read_support = "auto"
min_read_support_limit = 2
// sniffles2 options
cluster_merge_pos = 150
sniffles_args = null
// qdnaseq cnv
use_qdnaseq = false
qdnaseq_bin_size = 500
// mod
modkit_args = null
force_strand = false
modkit_threads = 4
//str
sex = "female"
// output
depth_intervals = false
phased = false
output_separate_phased = false
// nfcore
monochrome_logs = false
validate_params = true
show_hidden_params = false
schema_ignore_params = 'show_hidden_params,validate_params,monochrome_logs,aws_queue,aws_image_prefix,wf,min_read_support,min_read_support_limit,fastq_only'
wf {
name = "wf-human-variation"
template_version = "195cab5"
example_cmd = [
"--bam 'wf-human-variation-demo/demo.bam'",
"--basecaller_cfg 'dna_r10.4.1_e8.2_400bps_hac_prom'",
"--mod",
"--ref 'wf-human-variation-demo/demo.fasta'",
"--sample_name 'DEMO'",
"--snp",
"--sv"
]
agent = null
// container sha
e2l_base_tag = "shad3aed855cd007c653b8fc8cb16fe46c90199990f"
e2l_snp_tag = "shaca21b1351b9465f98ecdb10e01bd48dbf05e0e63"
e2l_sv_tag = "sha69e7a43c6f21c0ea2083e9719257fb44bc35c2ba"
e2l_mod_tag = "shaeedb131a939d3eea2f9bd4dbecec805c0fa20bdb"
cnv_tag = "sha428cb19e51370020ccf29ec2af4eead44c6a17c2"
str_tag = "shaa2f49ce57886426516eadd4048b6fdf9c22c7437"
spectre_tag = "sha659145073b9a1506153d3cb154d9973eabd785e3"
snpeff_tag = "sha1acac7c26e15955ec29021b28e6ee5a5140c245e"
common_sha = "sha1c5febff9f75143710826498b093d9769a5edbb9"
}
}
manifest {
name = 'epi2me-labs/wf-human-variation'
author = 'Oxford Nanopore Technologies'
homePage = 'https://github.com/epi2me-labs/wf-human-variation'
description = 'SNV calling, SV calling, modified base calling, CNV calling, and STR genotyping of human samples.'
mainScript = 'main.nf'
nextflowVersion = '>=23.04.2'
version = '2.0.0'
}
epi2melabs {
tags = "human,variant calling,whole genome"
icon = "faIdCard"
}
// used by default for "standard" (docker) and singularity profiles,
// other profiles may override.
process {
container = "ontresearch/${params.wf.name}:${params.wf.e2l_base_tag}"
withLabel:wf_human_snp {
container = "ontresearch/wf-human-variation-snp:${params.wf.e2l_snp_tag}"
}
withLabel:wf_human_sv {
container = "ontresearch/wf-human-variation-sv:${params.wf.e2l_sv_tag}"
}
withLabel:wf_human_mod {
container = "ontresearch/modkit:${params.wf.e2l_mod_tag}"
}
withLabel:wf_cnv {
container = "ontresearch/wf-cnv:${params.wf.cnv_tag}"
}
withLabel:wf_human_str {
container = "ontresearch/wf-human-variation-str:${params.wf.str_tag}"
}
withLabel:snpeff_annotation {
container = "ontresearch/snpeff:${params.wf.snpeff_tag}"
}
withLabel:wf_common {
container = "ontresearch/wf-common:${params.wf.common_sha}"
}
withLabel:spectre {
container = "ontresearch/spectre:${params.wf.spectre_tag}"
}
shell = ['/bin/bash', '-euo', 'pipefail']
// by default GPU tasks will run in serial to avoid GPU management.
// cluster and cloud users can remove this with -profile discrete_gpus.
// we use profiles to handle this as maxForks cannot be set dynamically
// see https://github.com/nextflow-io/nextflow/discussions/3806 and CW-1857
withLabel:gpu {
maxForks = 1
}
}
profiles {
// the "standard" profile is used implicitely by nextflow
// if no other profile is given on the CLI
standard {
docker {
enabled = true
// this ensures container is run as host user and group, but
// also adds host user to the within-container group
runOptions = "--user \$(id -u):\$(id -g) --group-add 100"
}
process."withLabel:gpu".containerOptions = "--gpus all"
}
// using singularity instead of docker
singularity {
singularity {
enabled = true
autoMounts = true
//envWhitelist = "" // if your cluster sets a variable to indicate which GPU has been assigned you will want to allow it here
}
process."withLabel:gpu".containerOptions = "--nv"
}
// keep stub conda profile to prevent unknown profile warning so users get a better error
conda {
conda {
enabled = true
}
}
// Using AWS batch.
// May need to set aws.region and aws.batch.cliPath
awsbatch {
process {
executor = 'awsbatch'
queue = { "${params.aws_queue}" }
memory = '8G'
container = { "${params.aws_image_prefix}-${params.wf.name}:${params.wf.e2l_base_tag}" }
withLabel:wf_human_snp {
container = { "${params.aws_image_prefix}-wf-human-variation-snp:${params.wf.e2l_snp_tag}" }
}
withLabel:wf_human_sv {
container = { "${params.aws_image_prefix}-wf-human-variation-sv:${params.wf.e2l_sv_tag}" }
}
withLabel:wf_human_mod {
container = { "${params.aws_image_prefix}-modkit:${params.wf.e2l_mod_tag}-root" }
}
withLabel:wf_cnv {
container = { "${params.aws_image_prefix}-wf-cnv:${params.wf.cnv_tag}-root" }
}
withLabel:wf_human_str {
container = { "${params.aws_image_prefix}-wf-human-variation-str:${params.wf.str_tag}" }
}
withLabel:snpeff_annotation {
container = "${params.aws_image_prefix}-snpeff:${params.wf.snpeff_tag}"
}
withLabel:wf_common {
container = "${params.aws_image_prefix}-wf-common:${params.wf.common_sha}"
}
withLabel:spectre {
container = "${params.aws_image_prefix}-spectre:${params.wf.spectre_tag}"
}
shell = ['/bin/bash', '-euo', 'pipefail']
}
}
// local profile for simplified development testing
local {
process.executor = 'local'
}
// lift limit on simultaneous gpu jobs
discrete_gpus {
process."withLabel:gpu".maxForks = null
}
}
timeline {
enabled = true
file = "${params.out_dir}/execution/timeline.html"
overwrite = true
}
report {
enabled = true
file = "${params.out_dir}/execution/report.html"
overwrite = true
}
trace {
enabled = true
file = "${params.out_dir}/execution/trace.txt"
overwrite = true
}
env {
PYTHONNOUSERSITE = 1
JAVA_TOOL_OPTIONS = "-Xlog:disable -Xlog:all=warning:stderr"
}