-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnextflow.config
218 lines (184 loc) · 5.58 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
manifest {
mainScript = 'CoVpipe2.nf'
name = 'CoVpipe2'
nextflowVersion = '!>=22.10.1'
}
params {
cores = 4
max_cores = 12 //Runtime.runtime.availableProcessors()
memory = '12'
help = false
profile = false
workdir = false
// input
// reads
fastq = ''
list = false
mode = 'paired'
run_id = ''
// reference
reference = 'sars-cov-2' // currently only 'sars-cov-2'
ref_genome = false // e.g. 'data/reference_SARS-CoV2/NC_045512.2.fasta'
ref_annotation = false // e.g. 'data/reference_SARS-CoV2/NC_045512.2.gff3'
// adapter & read trimming
adapter = false // e.g. 'data/adapters/NexteraTransposase.fasta'
fastp_additional_parameters = '--qualified_quality_phred 20 --length_required 50'
// kraken
kraken = false
kraken_db_custom = ''
taxid = '2697049'
// lcs
read_linage = false
lcs_ucsc_version = 'predefined' // e.g. '2022-05-01' marker-table date
lcs_ucsc_predefined = '2022-05-15'
lcs_ucsc_update = false // update marker table, overrides lcs_ucsc_version
lcs_ucsc_downsampling = 10000 // 'None' to turn off
lcs_variant_groups = 'default' // 'default' to use file from repo; custom variant groups table for marker-table update
lcs_cutoff = 0.03 // for plotting
isize_filter = false
// amplicon primer clipping
primer_bed = false
primer_bedpe = false
primer_version = false
bamclipper_additional_parameters = false
// variant calling with freebayes
vcount = 10
frac = 0.1
cov = 20
// vcf with variants of interest
vois = false
// variant hard filtering
var_mqm = 40
var_sap = false // disabled
var_qual = 10
// consensus generation
cns_min_cov = 20
cns_gt_adjust = 0.9
cns_indel_filter = 0.6
// consensus qc
seq_threshold = 0.90
n_threshold = 0.05
// update settings and default container
update = false
pangolin_docker_default = 'rkimf1/pangolin:4.3-1.25.1--380d5e9'
nextclade_docker_default = 'rkimf1/nextclade3:3.3.1--c7323e6'
pangolin_conda_default = 'bioconda::pangolin=4.3 bioconda::pangolin-data=1.25.1'
nextclade_conda_default = 'bioconda::nextclade=3.3.1'
nextclade_dataset_name = 'sars-cov-2'
nextclade_dataset_tag = '2024-02-16--04-00-32Z'
// output folder structure
output = 'results'
reference_dir = '00-Reference'
read_dir = '01-Read-QC'
mapping_dir = '02-Mapping'
variant_calling_dir = '03-Variant-Calling'
consensus_dir = '04-Consensus'
linage_dir = '05-Linages_Mutations'
rki_dir = '06-RKI-summary'
report_dir = 'Report'
runinfo_dir = 'X.Pipeline-Runinfo'
// location for engines' cache
singularity_cache_dir = 'singularity'
conda_cache_dir = 'conda'
// location for autodownload data like databases
databases = 'nextflow-autodownload-databases'
// softlink results instead of copying
publish_dir_mode = 'copy' // use 'symlink' to just link the results
cloudProcess = false
}
// runinfo
def trace_timestamp = new java.util.Date().format( 'yyyy-MM-dd_HH-mm-ss')
timeline {
enabled = true
file = "${params.output}/${params.runinfo_dir}/execution_timeline_${trace_timestamp}.html"
}
report {
enabled = true
file = "${params.output}/${params.runinfo_dir}/execution_report_${trace_timestamp}.html"
}
profiles {
// executors
local {
executor {
name = "local"
cpus = params.max_cores
memory = params.memory
}
params.cloudProcess = false
includeConfig 'configs/local.config'
}
slurm {
executor {
name = "slurm"
queueSize = 100
// exitReadTimeout = "360 sec"
// submitRateLimit = '1 / 2 s'
// pollInterval = '30 sec'
}
process.cache = "lenient"
includeConfig 'configs/nodes.config'
}
// engines
conda {
conda {
enabled = true
cacheDir = params.conda_cache_dir
}
includeConfig 'configs/conda.config'
}
mamba {
conda {
enabled = true
useMamba = true
cacheDir = params.conda_cache_dir
}
includeConfig 'configs/conda.config'
}
docker {
docker { enabled = true }
includeConfig 'configs/container.config'
}
singularity {
singularity {
enabled = true
autoMounts = true
cacheDir = params.singularity_cache_dir
envWhitelist = "HTTPS_PROXY,HTTP_PROXY,http_proxy,https_proxy,FTP_PROXY,ftp_proxy"
}
includeConfig 'configs/container.config'
}
// pre-merged
standard {
executor {
name = "local"
cpus = params.max_cores
}
conda {
enabled = true
cacheDir = params.conda_cache_dir
}
params.cloudProcess = false
includeConfig 'configs/local.config'
includeConfig 'configs/conda.config'
}
// test
test {
params.fastq = "$baseDir/tests/amplicon_artic_v1_samplesheet.csv"
params.list = true
params.adapter = "$baseDir/data/adapters/NexteraTransposase.fasta"
params.primer_version = 'V1'
params.frac = 0.2
}
// no config for stub runs
stub {
executor {
name = "local"
cpus = params.max_cores
}
}
// only load cluster config (without executor)
cluster {
params.cloudProcess = true
includeConfig 'configs/nodes.config'
}
}