-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmain.nf
70 lines (58 loc) · 2.04 KB
/
main.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
#!/usr/bin/env nextflow
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UPHL-BioNGS/Grandeur
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Github : https://github.com/UPHL-BioNGS/Grandeur
----------------------------------------------------------------------------------------
*/
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IMPORT FUNCTIONS / MODULES / SUBWORKFLOWS / WORKFLOWS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
include { INITIALIZE } from './subworkflows/local/initialize'
include { GRANDEUR } from './workflows/grandeur'
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RUN MAIN WORKFLOW
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
workflow {
main:
//
// SUBWORKFLOW: Initialize files and tasks
//
INITIALIZE ()
//
// WORKFLOW: Run main workflow
//
GRANDEUR (
INITIALIZE.out.reads,
INITIALIZE.out.fastas,
INITIALIZE.out.fastani_genomes,
INITIALIZE.out.versions,
INITIALIZE.out.genome_sizes,
INITIALIZE.out.mash_db,
INITIALIZE.out.kraken2_db,
INITIALIZE.out.blast_db,
INITIALIZE.out.dataset_script,
INITIALIZE.out.evaluat_script,
INITIALIZE.out.jsoncon_script,
INITIALIZE.out.multiqc_script,
INITIALIZE.out.summary_script,
INITIALIZE.out.summfle_script,
INITIALIZE.out.version_script
)
}
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
THE END
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
workflow.onComplete {
println("Pipeline completed at: $workflow.complete")
println("MultiQC report can be found at ${params.outdir}/multiqc/multiqc_report.html")
println("Summary can be found at ${params.outdir}/grandeur_summary.tsv")
println("Execution status: ${ workflow.success ? 'OK' : 'failed' }")
}