-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathnextflow.config
273 lines (249 loc) · 8.06 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
//
// 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 {
/* feature flags
* The workflow will have similar features to the wf-human-variation:
* 1) Short variants,
* 2) Structural variants,
* 3) Modified base calling,
*/
sv = false
mod = false
snv = false
// common
bam_normal = null
bam_tumor = null
sample_name = "SAMPLE"
ref = null
bed = null
tr_bed = null
annotation = true
out_dir = "output"
ubam_map_threads = 8
ubam_sort_threads = 3
ubam_bam2fq_threads = 1
// QC metrics
tumor_min_coverage = 20
normal_min_coverage = 20
depth_window_size = 50000
depth_intervals = false
// ClairS parameters
override_basecaller_cfg = null
// ClairS parameters
normal_vcf = null
hybrid_mode_vcf = null
genotyping_mode_vcf = null
skip_haplotype_filter = false
haplotype_filter_threads = 4
ctg_name = "EMPTY"
include_all_ctgs = false
snv_min_af = 0.05
indel_min_af = 0.05 // This will be set to 1.00 if the model is not a dna_r10 one.
min_contig_size = 0
min_qual = 8
min_cov = 4
min_bq = null
use_longphase = true
use_longphase_intermediate = true
use_normal_hets_for_phasing = true
use_tumor_hets_for_phasing = false
use_het_indels_for_phasing = true
use_longphase_haplotag = true
liquid_tumor = false
print_ref_calls = false
print_germline_calls = false
germline = true
phase_normal = false
clairs_debug = false
fast_mode = false
// Clair3 parameters
clair3_base_err = 0.001
clair3_gq_bin_size = 5
clair3_phase_vcf = false
clair3_ref_pct_full = 0.1
clair3_var_pct_full = 0.7
clair3_min_mq = 5
GVCF = false
vcf_fn = "EMPTY"
// clairs-to settings
clairs_to_qual = 12
clairs_to_min_bq = 20
qual_cutoff_phaseable_region = 14
qual_cutoff_unphaseable_region = 20
// severus caller options
severus_threads = 8
min_sv_length = 50
min_support = 3
vaf_threshold = null
severus_args = null
// modkit
force_strand = false
modkit_args = null
diff_mod = true
dss_threads = 1
modkit_threads = 4
// Generic options
help = false
version = false
aws_image_prefix = null
aws_queue = null
disable_ping = false
igv = 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'
wf {
example_cmd = [
"--snv",
"--sv",
"--mod",
"--sample_name 'MYSAMPLE'",
"--ref 'wf-somatic-variation-demo/GCA_000001405.15_GRCh38_no_alt_analysis_set_chr20.fna'",
"--bed 'wf-somatic-variation-demo/demo.bed'",
"--bam_normal 'wf-somatic-variation-demo/demo_normal.bam'",
"--bam_tumor 'wf-somatic-variation-demo/demo_tumor.bam'",
"--override_basecaller_cfg '[email protected]'",
"--normal_min_coverage 0",
"--tumor_min_coverage 0"
]
container_sha = "sha18cc2ea1fae27fc772e7b728957996119c1ec81a"
container_snp_sha = "sha86599ecdb46472d01e0b7c2704683f6aee8a82dd"
container_snv_to_sha = "sha0bed006dfad374401e9410b44d67e6609f7936e9"
container_sv_sha = "shac215e0f39f6c28148ce90b9ced11a4efda08c8c4"
container_mod_sha = "shaa7bf2b62946eeb7646b9b9d60b892edfc3b3a52c"
common_sha = "shabadd33adae761be6f2d59c6ecfb44b19cf472cfc"
snpeff_tag = "sha313729d816872d70b410752001a0e2654eb88807"
dss_sha = "sha927196d7e068cc49d5a41bcc3db91b9bdf723e7a"
agent = null
}
}
manifest {
name = 'epi2me-labs/wf-somatic-variation'
author = 'Oxford Nanopore Technologies'
homePage = 'https://github.com/epi2me-labs/wf-somatic-variation'
description = 'Somatic structural variants, methylation, short variants and short tandem repeat workflow'
mainScript = 'main.nf'
nextflowVersion = '>=23.04.2'
version = 'v1.4.1'
}
epi2melabs {
tags = 'somatic variant'
icon = 'faDisease'
}
// used by default for "standard" (docker) and singularity profiles,
// other profiles may override.
process {
container = "ontresearch/wf-somatic-variation:${params.wf.container_sha}"
withLabel:wf_somatic_snv {
container = "ontresearch/wf-somatic-snp:${params.wf.container_snp_sha}"
}
withLabel:wf_somatic_snv_to {
container = "ontresearch/clairs-to:${params.wf.container_snv_to_sha}"
}
withLabel:wf_somatic_mod {
container = "ontresearch/modkit:${params.wf.container_mod_sha}"
}
withLabel:dss {
container = "ontresearch/dss:${params.wf.dss_sha}"
}
withLabel:wf_somatic_sv {
container = "ontresearch/wf-somatic-sv:${params.wf.container_sv_sha}"
}
withLabel:wf_common {
container = "ontresearch/wf-common:${params.wf.common_sha}"
}
withLabel:snpeff_annotation {
container = "ontresearch/snpeff:${params.wf.snpeff_tag}"
}
shell = ['/bin/bash', '-euo', 'pipefail']
}
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"
}
}
// using singularity instead of docker
singularity {
singularity {
enabled = true
autoMounts = true
}
}
// 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}-wf-somatic-variation:${params.wf.container_sha}"
withLabel:wf_somatic_snv {
container = "${params.aws_image_prefix}-wf-somatic-snp:${params.wf.container_snp_sha}"
}
withLabel:wf_somatic_snv_to {
container = "${params.aws_image_prefix}-clairs-to:${params.wf.container_snv_to_sha}"
}
withLabel:wf_somatic_sv {
container = "${params.aws_image_prefix}-wf-somatic-sv:${params.wf.container_sv_sha}"
}
withLabel:wf_somatic_methyl {
container = "${params.aws_image_prefix}-modkit:${params.wf.container_mod_sha}"
}
withLabel:dss {
container = "${params.aws_image_prefix}-dss:${params.wf.dss_sha}"
}
withLabel:wf_common {
container = "${params.aws_image_prefix}-wf-common:${params.wf.common_sha}"
}
withLabel:snpeff_annotation {
container = "${params.aws_image_prefix}-snpeff:${params.wf.snpeff_tag}"
}
shell = ['/bin/bash', '-euo', 'pipefail']
}
}
// local profile for simplified development testing
local {
process.executor = 'local'
}
}
timeline {
enabled = true
overwrite = true
file = "${params.out_dir}/execution/timeline.html"
}
report {
enabled = true
overwrite = true
file = "${params.out_dir}/execution/report.html"
}
trace {
enabled = true
overwrite = true
file = "${params.out_dir}/execution/trace.txt"
}
env {
PYTHONNOUSERSITE = 1
// Java tend to send errors and warnings to STDOUT, messing the output.
// This prevents that from happening
JAVA_TOOL_OPTIONS = "-Xlog:disable -Xlog:all=warning:stderr"
}