forked from nf-core/eager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnextflow.config
More file actions
344 lines (306 loc) · 9.28 KB
/
nextflow.config
File metadata and controls
344 lines (306 loc) · 9.28 KB
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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
/*
* -------------------------------------------------
* nf-core/eager Nextflow config file
* -------------------------------------------------
* Default config options for all environments.
*/
// Global default params, used in configs
params {
//Pipeline options
//Input reads
single_end = false
paired_end = false
reads = "data/*{1,2}.fastq.gz"
readPaths = false
bam = false
//Input reference
fasta = ''
large_ref = false
save_reference = false
saveTrimmed = true
saveAlignedIntermediates = false
genome = false
fasta_index = ''
bwa_index = false
//Auxillary input data info and files
snpcapture = false
bedfile = ''
seq_dict = ''
//Output
outdir = './results'
//Skipping parts of the pipeline for impatient users
skip_fastqc = false
skip_mapping = false
skip_preseq = false
skip_damage_calculation = false
skip_qualimap = false
skip_deduplication = false
//If you want to convert a BAM input to FASTQ format for adapterememoval etc.
run_convertbam = false
//Skipping adapterremoval, trimming or collapsing defaults
skip_adapterremoval = false
skip_trim = false
skip_adapterremoval = false
//More defaults
complexity_filter_poly_g = false
complexity_filter_poly_g_min = 10
trim_bam = false
//Read clipping and merging parameters
clip_forward_adaptor = "AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC"
clip_reverse_adaptor = "AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGTA"
clip_readlength = 30
clip_min_read_quality = 20
min_adap_overlap = 1
skip_collapse = false
preserve5p = false
mergedonly = false
//Mapping algorithm
mapper = 'bwaaln'
bwaalnn = 0.03
bwaalnk = 2
bwaalnl = 32
circularextension = 500
circulartarget = 'MT'
circularfilter = false
//BAM Filtering steps (default = keep mapped and unmapped in BAM file)
run_bam_filtering = false
bam_discard_unmapped = false
bam_unmapped_type = 'discard'
bam_mapping_quality_threshold = 0
//DamageProfiler settings
damageprofiler_length = 100
damageprofiler_threshold = 15
damageprofiler_yaxis = 0.30
//DeDuplication settings
dedupper = 'dedup' //default value dedup
dedup_all_merged = false
//Preseq settings
preseq_step_size = 1000
//Bedtools settings
run_bedtools_coverage = false
anno_file = ''
//PMDTools settings
run_pmdtools = false
pmd_udg_type = 'half'
pmdtools_range = 10
pmdtools_threshold = 3
pmdtools_reference_mask = ''
pmdtools_max_reads = 10000
//bamUtils trimbam settings
run_trim_bam = false
bamutils_clip_left = 1
bamutils_clip_right = 1
bamutils_softclip = false
//Mapped read stripping from input FASTQ
strip_input_fastq = false
strip_mode = 'strip'
//Genotyping options
run_genotyping = false
genotyping_tool = ''
genotyping_source = "raw"
gatk_ug_jar = ''
gatk_ug_genotype_model = 'SNP'
gatk_hc_emitrefconf = 'GVCF'
gatk_call_conf = '30'
gatk_ploidy = '2'
gatk_downsample = '250'
gatk_ug_out_mode = 'EMIT_VARIANTS_ONLY'
gatk_hc_out_mode = 'EMIT_VARIANTS_ONLY'
gatk_dbsnp = ''
gatk_ug_defaultbasequalities = ''
freebayes_C = 1
freebayes_g = 0
freebayes_p = 2
//Consensus sequence generation
run_vcf2genome = false
vcf2genome_outfile = ''
vcf2genome_header = ''
vcf2genome_minc = 5
vcf2genome_minq = 30
vcf2genome_minfreq = 0.8
//MultiVCFAnalyzer Options
run_multivcfanalyzer = false
write_allele_frequencies = false
min_genotype_quality = 30
min_base_coverage = 5
min_allele_freq_hom = 0.9
min_allele_freq_het = 0.9
additional_vcf_files = ''
reference_gff_annotations = 'NA'
reference_gff_exclude = 'NA'
snp_eff_results = 'NA'
//mtnucratio
run_mtnucratio = false
mtnucratio_header = 'MT'
//Sex.DetERRmine settings
run_sexdeterrmine = false
sexdeterrmine_bedfile = ''
//Nuclear contamination based on chromosome X heterozygosity.
run_nuclear_contamination = false
contamination_chrom_name = 'X' // Default to using hs37d5 name
// taxonomic classifer
run_metagenomic_screening = false
metagenomic_tool = 'malt'
metagenomic_min_support_reads = 1
database = ''
percent_identity = 85
malt_mode = 'BlastN'
malt_alignment_mode = 'SemiGlobal'
malt_top_percent = 1
malt_min_support_mode = 'percent'
malt_min_support_percent = 0.01
malt_max_queries = 100
malt_memory_mode = 'load'
malt_weighted_lca = false
// maltextract - only including number
// parameters if default documented or duplicate of MALT
run_maltextract = false
maltextract_taxon_list = ''
maltextract_ncbifiles = ''
maltextract_filter = "def_anc"
maltextract_toppercent = 0.01
maltextract_destackingoff = false
maltextract_downsamplingoff = false
maltextract_duplicateremovaloff = false
maltextract_matches = false
maltextract_megansummary = false
maltextract_percentidentity = 85.0
maltextract_topalignment = false
maltextract_singlestranded = false
// Boilerplate options
name = false
multiqc_config = false
email = false
email_on_fail = false
max_multiqc_email_size = 25.MB
plaintext_email = false
monochrome_logs = false
help = false
igenomes_base = 's3://ngi-igenomes/igenomes/'
tracedir = "${params.outdir}/pipeline_info"
awsqueue = false
awsregion = 'eu-west-1'
igenomes_ignore = false
custom_config_version = 'master'
custom_config_base = "https://raw.githubusercontent.com/nf-core/configs/${params.custom_config_version}"
hostnames = false
config_profile_description = false
config_profile_contact = false
config_profile_url = false
// Defaults only, expecting to be overwritten
max_memory = 128.GB
max_cpus = 16
max_time = 240.h
}
// Container slug. Stable releases should specify release tag!
// Developmental code should specify :dev
process.container = 'nfcore/eager:2.1.0'
// Load base.config by default for all pipelines
includeConfig 'conf/base.config'
// Load nf-core custom profiles from different Institutions
try {
includeConfig "${params.custom_config_base}/nfcore_custom.config"
} catch (Exception e) {
System.err.println("WARNING: Could not load nf-core/config profiles: ${params.custom_config_base}/nfcore_custom.config")
}
profiles {
conda { process.conda = "$baseDir/environment.yml" }
debug { process.beforeScript = 'echo $HOSTNAME' }
docker {
docker.enabled = true
// Avoid this error:
// WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
// Testing this in nf-core after discussion here https://github.com/nf-core/tools/pull/351
// once this is established and works well, nextflow might implement this behavior as new default.
docker.runOptions = '-u \$(id -u):\$(id -g)'
}
singularity {
singularity.enabled = true
singularity.autoMounts = true
}
test { includeConfig 'conf/test.config' }
}
profiles {
awsbatch { includeConfig 'conf/awsbatch.config'}
conda { process.conda = "$baseDir/environment.yml"}
debug { process.beforeScript = 'echo $HOSTNAME'}
docker {
docker.enabled = true
}
singularity {
singularity.enabled = true
}
test { includeConfig 'conf/test.config'}
test_bam { includeConfig 'conf/test_bam.config'}
test_fna { includeConfig 'conf/test_fna.config'}
test_humanbam { includeConfig 'conf/test_humanbam.config' }
test_pretrim { includeConfig 'conf/test_pretrim.config' }
test_kraken { includeConfig 'conf/test_kraken.config' }
}
// Load igenomes.config if required
if (!params.igenomes_ignore) {
includeConfig 'conf/igenomes.config'
}
// Export this variable to prevent local Python libraries from conflicting with those in the container
env {
PYTHONNOUSERSITE = 1
}
// Capture exit codes from upstream processes when piping
process.shell = ['/bin/bash', '-euo', 'pipefail']
timeline {
enabled = true
file = "${params.tracedir}/execution_timeline.html"
}
report {
enabled = true
file = "${params.tracedir}/execution_report.html"
}
trace {
enabled = true
file = "${params.tracedir}/execution_trace.txt"
}
dag {
enabled = true
file = "${params.tracedir}/pipeline_dag.svg"
}
manifest {
name = 'nf-core/eager'
author = 'The nf-core/eager community'
homePage = 'https://github.com/nf-core/eager'
description = 'A fully reproducible ancient and modern DNA pipeline in Nextflow and with cloud support.'
mainScript = 'main.nf'
nextflowVersion = '!>=19.10.0'
version = '2.1.0'
}
// Function to ensure that resource requirements don't go beyond
// a maximum limit
def check_max(obj, type) {
if (type == 'memory') {
try {
if (obj.compareTo(params.max_memory as nextflow.util.MemoryUnit) == 1)
return params.max_memory as nextflow.util.MemoryUnit
else
return obj
} catch (all) {
println " ### ERROR ### Max memory '${params.max_memory}' is not valid! Using default value: $obj"
return obj
}
} else if (type == 'time') {
try {
if (obj.compareTo(params.max_time as nextflow.util.Duration) == 1)
return params.max_time as nextflow.util.Duration
else
return obj
} catch (all) {
println " ### ERROR ### Max time '${params.max_time}' is not valid! Using default value: $obj"
return obj
}
} else if (type == 'cpus') {
try {
return Math.min( obj, params.max_cpus as int )
} catch (all) {
println " ### ERROR ### Max cpus '${params.max_cpus}' is not valid! Using default value: $obj"
return obj
}
}
}