-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.nf
131 lines (128 loc) · 3.32 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#!/usr/bin/env nextflow
nextflow.enable.dsl=2
// import workflow of interest
if (params.workflow == "rnaseq"){
include {RNASEQ} from './workflows/rnaseq'
}
else if (params.workflow == "wes"){
include {WES} from './workflows/wes'
}
else if (params.workflow == "somatic_wes"){
include {SOMATIC_WES} from './workflows/somatic_wes'
}
else if (params.workflow == "somatic_wes_pta"){
include {SOMATIC_WES_PTA} from './workflows/somatic_wes_pta'
}
else if (params.workflow == "wgs"){
include {WGS} from './workflows/wgs'
}
else if (params.workflow == "rrbs"){
include {RRBS} from './workflows/rrbs'
}
else if (params.workflow == "atac"){
include {ATAC} from './workflows/atac'
}
else if (params.workflow == "chipseq"){
include {CHIPSEQ} from './workflows/chipseq'
}
else if (params.workflow == "pta"){
include {PTA} from './workflows/pta'
}
else if (params.workflow == "rna_fusion"){
include {RNA_FUSION} from './workflows/rna_fusion'
}
else if (params.workflow == "generate_pseudoreference"){
include {GENERATE_PSEUDOREFERENCE} from './workflows/generate_pseudoreference'
}
else if (params.workflow == "prepare_emase"){
include {PREPARE_EMASE} from './workflows/prepare_emase'
}
else if (params.workflow == "prep_do_gbrs_inputs"){
include {PREP_DO_GBRS_INPUT} from './subworkflows/prep_do_gbrs_inputs'
}
else if (params.workflow == "emase"){
include {EMASE} from './workflows/emase'
}
else if (params.workflow == "gbrs"){
include {GBRS} from './workflows/gbrs'
}
else if (params.workflow == "amplicon"){
include {AMPLICON} from './workflows/amplicon_fingerprint'
}
else if (params.workflow == "amplicon_generic"){
include {AMPLICON} from './workflows/amplicon_generic'
}
else if (params.workflow == "ancestry"){
include {ANCESTRY_RUN} from './workflows/ancestry'
}
else if (params.workflow == "germline_sv") {
// mmrsvd
include {GERMLINE_SV} from "./workflows/germline_sv"
}
else if (params.workflow == "cnv_array"){
include {CNV_ARRAY} from './workflows/cnv_array'
}
else {
// if workflow name is not supported:
exit 1, "ERROR: No valid pipeline called. '--workflow ${params.workflow}' is not a valid workflow name."
}
// conditional to launch appropriate workflow
workflow{
if (params.workflow == "rnaseq"){
RNASEQ()
}
if (params.workflow == "wes"){
WES()
}
if (params.workflow == "somatic_wes"){
SOMATIC_WES()
}
if (params.workflow == "somatic_wes_pta"){
SOMATIC_WES_PTA()
}
if (params.workflow == "wgs"){
WGS()
}
if (params.workflow == "rrbs"){
RRBS()
}
if (params.workflow == "atac"){
ATAC()
}
if (params.workflow == "chipseq"){
CHIPSEQ()
}
if (params.workflow == "pta"){
PTA()
}
if (params.workflow == "rna_fusion"){
RNA_FUSION()
}
if (params.workflow == "generate_pseudoreference") {
GENERATE_PSEUDOREFERENCE()
}
if (params.workflow == "prepare_emase"){
PREPARE_EMASE()
}
if (params.workflow == "emase"){
EMASE()
}
if (params.workflow == "gbrs"){
GBRS()
}
if (params.workflow == "prep_do_gbrs_inputs"){
PREP_DO_GBRS_INPUT()
}
if (params.workflow == "amplicon" || params.workflow == "amplicon_generic"){
AMPLICON()
}
if (params.workflow == "ancestry"){
ANCESTRY_RUN()
}
if (params.workflow == "germline_sv"){
GERMLINE_SV()
}
if (params.workflow == "cnv_array"){
CNV_ARRAY()
}
}