forked from nf-core/ampliseq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ampliseq.nf
522 lines (460 loc) · 21.9 KB
/
ampliseq.nf
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
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
/*
========================================================================================
VALIDATE INPUTS
========================================================================================
*/
def summary_params = NfcoreSchema.paramsSummaryMap(workflow, params)
// Validate input parameters
WorkflowAmpliseq.initialise(params, log)
// Check input path parameters to see if they exist
// params.input may be: folder, samplesheet, fasta file, and therefore should not appear here (because tests only for "file")
def checkPathParamList = [ params.multiqc_config, params.metadata, params.classifier ]
for (param in checkPathParamList) { if (param) { file(param, checkIfExists: true) } }
// Check mandatory parameters
if (params.input) { ch_input = file(params.input) } else { exit 1, 'Input samplesheet not specified!' }
if (!params.FW_primer) { exit 1, "Option --FW_primer missing" }
if (!params.RV_primer) { exit 1, "Option --RV_primer missing" }
/*
========================================================================================
CONFIG FILES
========================================================================================
*/
ch_multiqc_config = file("$projectDir/assets/multiqc_config.yaml", checkIfExists: true)
ch_multiqc_custom_config = params.multiqc_config ? Channel.fromPath(params.multiqc_config) : Channel.empty()
/*
========================================================================================
INPUT AND VARIABLES
========================================================================================
*/
// Input
if (params.metadata) {
ch_metadata = Channel.fromPath("${params.metadata}", checkIfExists: true)
} else { ch_metadata = Channel.empty() }
if (params.classifier) {
ch_qiime_classifier = Channel.fromPath("${params.classifier}", checkIfExists: true)
} else { ch_qiime_classifier = Channel.empty() }
if (params.dada_ref_taxonomy && !params.skip_taxonomy) {
ch_dada_ref_taxonomy = Channel.fromList(params.dada_ref_databases[params.dada_ref_taxonomy]["file"]).map { file(it) }
} else { ch_dada_ref_taxonomy = Channel.empty() }
if (params.qiime_ref_taxonomy && !params.skip_taxonomy && !params.classifier) {
ch_qiime_ref_taxonomy = Channel.fromList(params.qiime_ref_databases[params.qiime_ref_taxonomy]["file"]).map { file(it) }
} else { ch_qiime_ref_taxonomy = Channel.empty() }
// Set non-params Variables
String[] fasta_extensions = [".fasta", ".fna", ".fa"] // this is the alternative ASV fasta input
is_fasta_input = WorkflowAmpliseq.checkIfFileHasExtension( params.input.toString().toLowerCase(), fasta_extensions )
single_end = params.single_end
if (params.pacbio || params.iontorrent) {
single_end = true
}
trunclenf = params.trunclenf ?: 0
trunclenr = params.trunclenr ?: 0
if ( !single_end && !params.illumina_pe_its && (params.trunclenf == null || params.trunclenr == null) && !is_fasta_input ) {
find_truncation_values = true
log.warn "No DADA2 cutoffs were specified (`--trunclenf` & --`trunclenr`), therefore reads will be truncated where median quality drops below ${params.trunc_qmin} (defined by `--trunc_qmin`) but at least a fraction of ${params.trunc_rmin} (defined by `--trunc_rmin`) of the reads will be retained.\nThe chosen cutoffs do not account for required overlap for merging, therefore DADA2 might have poor merging efficiency or even fail.\n"
} else { find_truncation_values = false }
metadata_category = params.metadata_category ?: ""
//only run QIIME2 when taxonomy is actually calculated and all required data is available
if ( !params.enable_conda && !params.skip_taxonomy && !params.skip_qiime ) {
run_qiime2 = true
} else { run_qiime2 = false }
/*
========================================================================================
IMPORT LOCAL MODULES/SUBWORKFLOWS
========================================================================================
*/
include { RENAME_RAW_DATA_FILES } from '../modules/local/rename_raw_data_files'
include { DADA2_FILTNTRIM } from '../modules/local/dada2_filtntrim'
include { DADA2_QUALITY } from '../modules/local/dada2_quality'
include { TRUNCLEN } from '../modules/local/trunclen'
include { DADA2_ERR } from '../modules/local/dada2_err'
include { DADA2_DENOISING } from '../modules/local/dada2_denoising'
include { DADA2_RMCHIMERA } from '../modules/local/dada2_rmchimera'
include { DADA2_STATS } from '../modules/local/dada2_stats'
include { DADA2_MERGE } from '../modules/local/dada2_merge'
include { FORMAT_TAXONOMY } from '../modules/local/format_taxonomy'
include { ITSX_CUTASV } from '../modules/local/itsx_cutasv'
include { MERGE_STATS } from '../modules/local/merge_stats'
include { DADA2_TAXONOMY } from '../modules/local/dada2_taxonomy'
include { DADA2_ADDSPECIES } from '../modules/local/dada2_addspecies'
include { FORMAT_TAXRESULTS } from '../modules/local/format_taxresults'
include { FORMAT_TAXRESULTS as FORMAT_TAXRESULTS_ADDSP } from '../modules/local/format_taxresults'
include { QIIME2_INSEQ } from '../modules/local/qiime2_inseq'
include { QIIME2_FILTERTAXA } from '../modules/local/qiime2_filtertaxa'
include { QIIME2_INASV } from '../modules/local/qiime2_inasv'
include { FILTER_STATS } from '../modules/local/filter_stats'
include { MERGE_STATS as MERGE_STATS_FILTERTAXA } from '../modules/local/merge_stats'
include { QIIME2_BARPLOT } from '../modules/local/qiime2_barplot'
include { METADATA_ALL } from '../modules/local/metadata_all'
include { METADATA_PAIRWISE } from '../modules/local/metadata_pairwise'
include { QIIME2_INTAX } from '../modules/local/qiime2_intax'
include { PICRUST } from '../modules/local/picrust'
include { SBDIEXPORT } from '../modules/local/sbdiexport'
include { SBDIEXPORTREANNOTATE } from '../modules/local/sbdiexportreannotate'
//
// SUBWORKFLOW: Consisting of a mix of local and nf-core/modules
//
include { PARSE_INPUT } from '../subworkflows/local/parse_input'
include { QIIME2_PREPTAX } from '../subworkflows/local/qiime2_preptax'
include { QIIME2_TAXONOMY } from '../subworkflows/local/qiime2_taxonomy'
include { CUTADAPT_WORKFLOW } from '../subworkflows/local/cutadapt_workflow'
include { QIIME2_EXPORT } from '../subworkflows/local/qiime2_export'
include { QIIME2_DIVERSITY } from '../subworkflows/local/qiime2_diversity'
include { QIIME2_ANCOM } from '../subworkflows/local/qiime2_ancom'
/*
========================================================================================
IMPORT NF-CORE MODULES/SUBWORKFLOWS
========================================================================================
*/
//
// MODULE: Installed directly from nf-core/modules
//
include { CUTADAPT as CUTADAPT_TAXONOMY } from '../modules/nf-core/modules/cutadapt/main'
include { FASTQC } from '../modules/nf-core/modules/fastqc/main'
include { MULTIQC } from '../modules/nf-core/modules/multiqc/main'
include { CUSTOM_DUMPSOFTWAREVERSIONS } from '../modules/nf-core/modules/custom/dumpsoftwareversions/main'
/*
========================================================================================
RUN MAIN WORKFLOW
========================================================================================
*/
// Info required for completion email and summary
def multiqc_report = []
workflow AMPLISEQ {
ch_versions = Channel.empty()
//
// Create a channel for input read files
//
PARSE_INPUT ( params.input, is_fasta_input, single_end, params.multiple_sequencing_runs, params.extension )
ch_reads = PARSE_INPUT.out.reads
ch_fasta = PARSE_INPUT.out.fasta
//
// MODULE: Rename files
//
RENAME_RAW_DATA_FILES ( ch_reads )
//
// MODULE: Run FastQC
//
if (!params.skip_fastqc) {
FASTQC ( RENAME_RAW_DATA_FILES.out )
ch_versions = ch_versions.mix(FASTQC.out.versions.first())
}
//
// MODULE: Cutadapt
//
CUTADAPT_WORKFLOW (
RENAME_RAW_DATA_FILES.out,
params.illumina_pe_its,
params.double_primer
).reads.set { ch_trimmed_reads }
ch_versions = ch_versions.mix(CUTADAPT_WORKFLOW.out.versions.first())
//
// SUBWORKFLOW / MODULES : ASV generation with DADA2
//
//plot aggregated quality profile for forward and reverse reads separately
if (single_end) {
ch_trimmed_reads
.map { meta, reads -> [ reads ] }
.collect()
.map { reads -> [ "single_end", reads ] }
.set { ch_all_trimmed_reads }
} else {
ch_trimmed_reads
.map { meta, reads -> [ reads[0] ] }
.collect()
.map { reads -> [ "FW", reads ] }
.set { ch_all_trimmed_fw }
ch_trimmed_reads
.map { meta, reads -> [ reads[1] ] }
.collect()
.map { reads -> [ "RV", reads ] }
.set { ch_all_trimmed_rv }
ch_all_trimmed_fw
.mix ( ch_all_trimmed_rv )
.set { ch_all_trimmed_reads }
}
DADA2_QUALITY ( ch_all_trimmed_reads )
//find truncation values in case they are not supplied
if ( find_truncation_values ) {
TRUNCLEN ( DADA2_QUALITY.out.tsv )
TRUNCLEN.out
.toSortedList()
.set { ch_trunc }
//add one more warning or reminder that trunclenf and trunclenr were chosen automatically
ch_trunc.subscribe {
if ( "${it[0][1]}".toInteger() + "${it[1][1]}".toInteger() <= 10 ) { log.warn "`--trunclenf` was set to ${it[0][1]} and `--trunclenr` to ${it[1][1]}, this is too low! Please either change `--trunc_qmin` (and `--trunc_rmin`), or set `--trunclenf` and `--trunclenr`." }
else if ( "${it[0][1]}".toInteger() <= 10 ) { log.warn "`--trunclenf` was set to ${it[0][1]}, this is too low! Please either change `--trunc_qmin` (and `--trunc_rmin`), or set `--trunclenf` and `--trunclenr`." }
else if ( "${it[1][1]}".toInteger() <= 10 ) { log.warn "`--trunclenr` was set to ${it[1][1]}, this is too low! Please either change `--trunc_qmin` (and `--trunc_rmin`), or set `--trunclenf` and `--trunclenr`." }
else log.warn "Probably everything is fine, but this is a reminder that `--trunclenf` was set automatically to ${it[0][1]} and `--trunclenr` to ${it[1][1]}. If this doesnt seem reasonable, then please change `--trunc_qmin` (and `--trunc_rmin`), or set `--trunclenf` and `--trunclenr` directly."
}
} else {
Channel.from( [['FW', trunclenf], ['RV', trunclenr]] )
.toSortedList()
.set { ch_trunc }
}
ch_trimmed_reads.combine(ch_trunc).set { ch_trimmed_reads }
//filter reads
DADA2_FILTNTRIM ( ch_trimmed_reads )
ch_versions = ch_versions.mix(DADA2_FILTNTRIM.out.versions.first())
//group by sequencing run
DADA2_FILTNTRIM.out.reads
.map {
info, reads ->
def meta = [:]
meta.run = info.run
meta.single_end = info.single_end
[ meta, reads, info.id ] }
.groupTuple(by: 0 )
.map {
info, reads, ids ->
def meta = [:]
meta.run = info.run
meta.single_end = info.single_end
meta.id = ids.flatten().sort()
[ meta, reads.flatten().sort() ] }
.set { ch_filt_reads }
DADA2_ERR ( ch_filt_reads )
//group by meta
ch_filt_reads
.join( DADA2_ERR.out.errormodel )
.set { ch_derep_errormodel }
DADA2_DENOISING ( ch_derep_errormodel.dump(tag: 'into_denoising') )
DADA2_RMCHIMERA ( DADA2_DENOISING.out.seqtab )
//group by sequencing run & group by meta
DADA2_FILTNTRIM.out.log
.map {
info, reads ->
def meta = [:]
meta.run = info.run
meta.single_end = info.single_end
[ meta, reads, info.id ] }
.groupTuple(by: 0 )
.map {
info, reads, ids ->
def meta = [:]
meta.run = info.run
meta.single_end = info.single_end
meta.id = ids.flatten().sort()
[ meta, reads.flatten().sort() ] }
.join( DADA2_DENOISING.out.denoised )
.join( DADA2_DENOISING.out.mergers )
.join( DADA2_RMCHIMERA.out.rds )
.set { ch_track_numbers }
DADA2_STATS ( ch_track_numbers )
//merge if several runs, otherwise just publish
DADA2_MERGE (
DADA2_STATS.out.stats.map { meta, stats -> stats }.collect(),
DADA2_RMCHIMERA.out.rds.map { meta, rds -> rds }.collect() )
//merge cutadapt_summary and dada_stats files
MERGE_STATS (CUTADAPT_WORKFLOW.out.summary, DADA2_MERGE.out.dada2stats)
//
// SUBWORKFLOW / MODULES : Taxonomic classification with DADA2 and/or QIIME2
//
//Alternative entry point for fasta that is being classified
if ( !is_fasta_input ) {
ch_fasta = DADA2_MERGE.out.fasta
}
//DADA2
if (!params.skip_taxonomy) {
FORMAT_TAXONOMY ( ch_dada_ref_taxonomy.collect() )
ch_assigntax = FORMAT_TAXONOMY.out.assigntax
ch_addspecies = FORMAT_TAXONOMY.out.addspecies
//Cut taxonomy to expected amplicon
if (params.cut_dada_ref_taxonomy) {
ch_assigntax
.map {
db ->
def meta = [:]
meta.single_end = true
meta.id = "assignTaxonomy"
[ meta, db ] }
.set { ch_assigntax }
CUTADAPT_TAXONOMY ( ch_assigntax ).reads
.map { meta, db -> db }
.set { ch_assigntax }
}
if (!params.cut_its) {
DADA2_TAXONOMY ( ch_fasta, ch_assigntax, 'ASV_tax.tsv' )
if (!params.skip_dada_addspecies) {
DADA2_ADDSPECIES ( DADA2_TAXONOMY.out.rds, ch_addspecies, 'ASV_tax_species.tsv' )
ch_dada2_tax = DADA2_ADDSPECIES.out.tsv
} else { ch_dada2_tax = DADA2_TAXONOMY.out.tsv }
//Cut out ITS region if long ITS reads
} else {
ITSX_CUTASV ( ch_fasta )
ch_versions = ch_versions.mix(ITSX_CUTASV.out.versions.ifEmpty(null))
ch_cut_fasta = ITSX_CUTASV.out.fasta
DADA2_TAXONOMY ( ch_cut_fasta, ch_assigntax, 'ASV_ITS_tax.tsv' )
FORMAT_TAXRESULTS ( DADA2_TAXONOMY.out.tsv, ch_fasta, 'ASV_tax.tsv' )
if (!params.skip_dada_addspecies) {
DADA2_ADDSPECIES ( DADA2_TAXONOMY.out.rds, ch_addspecies, 'ASV_ITS_tax_species.tsv' )
FORMAT_TAXRESULTS_ADDSP ( DADA2_ADDSPECIES.out.tsv, ch_fasta, 'ASV_tax_species.tsv' )
ch_dada2_tax = FORMAT_TAXRESULTS_ADDSP.out.tsv
} else {
ch_dada2_tax = FORMAT_TAXRESULTS.out.tsv
}
}
}
//QIIME2
if ( run_qiime2 ) {
if (params.qiime_ref_taxonomy && !params.classifier) {
QIIME2_PREPTAX (
ch_qiime_ref_taxonomy.collect(),
params.FW_primer,
params.RV_primer
)
ch_qiime_classifier = QIIME2_PREPTAX.out.classifier
}
QIIME2_TAXONOMY (
ch_fasta,
ch_qiime_classifier
)
ch_versions = ch_versions.mix( QIIME2_TAXONOMY.out.versions.ifEmpty(null) ) //usually a .first() is here, dont know why this leads here to a warning
}
//
// SUBWORKFLOW / MODULES : Downstream analysis with QIIME2
//
if ( run_qiime2 ) {
//Import ASV abundance table and sequences into QIIME2
QIIME2_INASV ( DADA2_MERGE.out.asv )
QIIME2_INSEQ ( ch_fasta )
//Import taxonomic classification into QIIME2, if available
if ( params.skip_taxonomy ) {
log.info "Skip taxonomy classification"
ch_tax = Channel.empty()
tax_agglom_min = 1
tax_agglom_max = 2
} else if ( params.dada_ref_taxonomy ) {
log.info "Use DADA2 taxonomy classification"
ch_tax = QIIME2_INTAX ( ch_dada2_tax ).qza
tax_agglom_min = params.dada_tax_agglom_min
tax_agglom_max = params.dada_tax_agglom_max
} else if ( params.qiime_ref_taxonomy || params.classifier ) {
log.info "Use QIIME2 taxonomy classification"
ch_tax = QIIME2_TAXONOMY.out.qza
tax_agglom_min = params.qiime_tax_agglom_min
tax_agglom_max = params.qiime_tax_agglom_max
} else {
log.info "Use no taxonomy classification"
ch_tax = Channel.empty()
tax_agglom_min = 1
tax_agglom_max = 2
}
//Filtering by taxonomy & prevalence & counts
if (params.exclude_taxa != "none" || params.min_frequency != 1 || params.min_samples != 1) {
QIIME2_FILTERTAXA (
QIIME2_INASV.out.qza,
QIIME2_INSEQ.out.qza,
ch_tax,
params.min_frequency,
params.min_samples,
params.exclude_taxa
)
FILTER_STATS ( DADA2_MERGE.out.asv, QIIME2_FILTERTAXA.out.tsv )
MERGE_STATS_FILTERTAXA (MERGE_STATS.out.tsv, FILTER_STATS.out.tsv)
ch_asv = QIIME2_FILTERTAXA.out.asv
ch_seq = QIIME2_FILTERTAXA.out.seq
} else {
ch_asv = QIIME2_INASV.out.qza
ch_seq = QIIME2_INSEQ.out.qza
}
//Export various ASV tables
if (!params.skip_abundance_tables) {
QIIME2_EXPORT ( ch_asv, ch_seq, ch_tax, QIIME2_TAXONOMY.out.tsv, ch_dada2_tax, tax_agglom_min, tax_agglom_max )
}
if (!params.skip_barplot) {
QIIME2_BARPLOT ( ch_metadata, ch_asv, ch_tax )
}
//Select metadata categories for diversity analysis & ancom
if (!params.skip_ancom || !params.skip_diversity_indices) {
METADATA_ALL ( ch_metadata, metadata_category ).set { ch_metacolumn_all }
//return empty channel if no appropriate column was found
ch_metacolumn_all.branch { passed: it != "" }.set { result }
ch_metacolumn_all = result.passed
METADATA_PAIRWISE ( ch_metadata ).set { ch_metacolumn_pairwise }
} else {
ch_metacolumn_all = Channel.empty()
ch_metacolumn_pairwise = Channel.empty()
}
//Diversity indices
if ( params.metadata && (!params.skip_alpha_rarefaction || !params.skip_diversity_indices) ) {
QIIME2_DIVERSITY (
ch_metadata,
ch_asv,
ch_seq,
QIIME2_FILTERTAXA.out.tsv,
ch_metacolumn_pairwise,
ch_metacolumn_all,
params.skip_alpha_rarefaction,
params.skip_diversity_indices
)
}
//Perform ANCOM tests
if ( !params.skip_ancom && params.metadata ) {
QIIME2_ANCOM (
ch_metadata,
ch_asv,
ch_metacolumn_all,
ch_tax,
tax_agglom_min,
tax_agglom_max
)
}
}
//
// MODULE: Predict functional potential of a bacterial community from marker genes with Picrust2
//
if ( params.picrust ) {
if ( run_qiime2 && !params.skip_abundance_tables && ( params.dada_ref_taxonomy || params.qiime_ref_taxonomy || params.classifier ) && !params.skip_taxonomy ) {
PICRUST ( QIIME2_EXPORT.out.abs_fasta, QIIME2_EXPORT.out.abs_tsv, "QIIME2", "This Picrust2 analysis is based on filtered reads from QIIME2" )
} else {
PICRUST ( ch_fasta, DADA2_MERGE.out.asv, "DADA2", "This Picrust2 analysis is based on unfiltered reads from DADA2" )
}
ch_versions = ch_versions.mix(PICRUST.out.versions.ifEmpty(null))
}
//
// MODULE: Export data in SBDI's (Swedish biodiversity infrastructure) format
//
if ( params.sbdiexport ) {
SBDIEXPORT ( DADA2_MERGE.out.asv, DADA2_ADDSPECIES.out.tsv, ch_metadata )
SBDIEXPORTREANNOTATE ( DADA2_ADDSPECIES.out.tsv )
}
CUSTOM_DUMPSOFTWAREVERSIONS (
ch_versions.unique().collectFile(name: 'collated_versions.yml')
)
//
// MODULE: MultiQC
//
if (!params.skip_multiqc) {
workflow_summary = WorkflowAmpliseq.paramsSummaryMultiqc(workflow, summary_params)
ch_workflow_summary = Channel.value(workflow_summary)
ch_multiqc_files = Channel.empty()
ch_multiqc_files = ch_multiqc_files.mix(Channel.from(ch_multiqc_config))
ch_multiqc_files = ch_multiqc_files.mix(ch_multiqc_custom_config.collect().ifEmpty([]))
ch_multiqc_files = ch_multiqc_files.mix(ch_workflow_summary.collectFile(name: 'workflow_summary_mqc.yaml'))
ch_multiqc_files = ch_multiqc_files.mix(CUSTOM_DUMPSOFTWAREVERSIONS.out.mqc_yml.collect())
if (!params.skip_fastqc) {
ch_multiqc_files = ch_multiqc_files.mix(FASTQC.out.zip.collect{it[1]}.ifEmpty([]))
}
MULTIQC (
ch_multiqc_files.collect()
)
multiqc_report = MULTIQC.out.report.toList()
ch_versions = ch_versions.mix(MULTIQC.out.versions)
}
}
/*
========================================================================================
COMPLETION EMAIL AND SUMMARY
========================================================================================
*/
workflow.onComplete {
if (params.email || params.email_on_fail) {
NfcoreTemplate.email(workflow, params, summary_params, projectDir, log, multiqc_report)
}
NfcoreTemplate.summary(workflow, params, log)
}
/*
========================================================================================
THE END
========================================================================================
*/