forked from CDCgov/tostadas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.nf
112 lines (90 loc) · 3.34 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
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
#!/usr/bin/env nextflow
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CODEBASE INFORMATION
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Github : https://github.com/CDCgov/tostadas
----------------------------------------------------------------------------------------
*/
nextflow.enable.dsl=2
params.projectDir = './'
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IMPORT NECESSARY WORKFLOWS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
include { MPXV_MAIN } from "$projectDir/workflows/mpxv.nf"
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DEFAULT WORKFLOW FOR PIPELINE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
workflow {
// main workflow for mpxv pipeline
MPXV_MAIN ()
}
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SPECIFIED FULL WORKFLOW FOR PIPELINE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
workflow MPXV {
MPXV_MAIN ()
}
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ENTRYPOINTS FOR MPXV WORKFLOW
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
// include necessary processes
include { VALIDATE_PARAMS } from "$projectDir/modules/general_util/validate_params/main"
include { CLEANUP_FILES } from "$projectDir/modules/general_util/cleanup_files/main"
// include necessary subworkflows
include { RUN_VALIDATION } from "$projectDir/subworkflows/entrypoints/validation_entry"
include { RUN_LIFTOFF } from "$projectDir/subworkflows/entrypoints/liftoff_entry"
include { RUN_VADR } from "$projectDir/subworkflows/entrypoints/vadr_entry"
include { RUN_SUBMISSION } from "$projectDir/subworkflows/entrypoints/submission_entry"
include { RUN_INITIAL_SUBMISSION } from "$projectDir/subworkflows/entrypoints/initial_submission_entry"
include { RUN_UPDATE_SUBMISSION } from "$projectDir/subworkflows/entrypoints/update_submission_entry"
workflow only_validate_params {
main:
// run the process for validating general parameters
VALIDATE_PARAMS ()
}
workflow only_cleanup_files {
main:
// run process for cleaning up files
CLEANUP_FILES (
'dummy validate params signal'
)
}
workflow only_validation {
main:
// run subworkflow for validation entrypoint
RUN_VALIDATION ()
}
workflow only_liftoff {
main:
// run subworkflow for liftoff entrypoint
RUN_LIFTOFF ()
}
workflow only_vadr {
main:
// run subworkflow for vadr entrypoint
RUN_VADR ()
}
workflow only_submission {
main:
// run subworkflow for submission entrypoint
RUN_SUBMISSION ()
}
workflow only_initial_submission {
main:
// run subworkflow for initial submission entrypoint
RUN_INITIAL_SUBMISSION ()
}
workflow only_update_submission {
main:
// run subworkflow for update submission entrypoint
RUN_UPDATE_SUBMISSION ()
}