-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.nf
118 lines (103 loc) · 3.63 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
include { MAKE_PROTOCOL_1; MAKE_PROTOCOL_2; MAKE_PROTOCOL_3; MAKE_PROTOCOL_4} from './modules/protocol_compiler'
include { SIMULATE_PROTOCOL_1; SIMULATE_PROTOCOL_2; SIMULATE_PROTOCOL_3; SIMULATE_PROTOCOL_4; } from './modules/protocol_compiler'
include { CREATE_LABWARE_CSV as CREATE_LABWARE_CSV_1; CREATE_LABWARE_CSV as CREATE_LABWARE_CSV_2; CREATE_LABWARE_CSV as CREATE_LABWARE_CSV_3; CREATE_LABWARE_CSV as CREATE_LABWARE_CSV_4 } from './modules/instructions_compiler'
include { VISUALISE_LABWARE as VISUALISE_LABWARE_1; VISUALISE_LABWARE as VISUALISE_LABWARE_2; VISUALISE_LABWARE as VISUALISE_LABWARE_3; VISUALISE_LABWARE as VISUALISE_LABWARE_4 } from './modules/instructions_compiler'
include { MAKE_INSTRUCTIONS_1; MAKE_INSTRUCTIONS_2; MAKE_INSTRUCTIONS_3; MAKE_INSTRUCTIONS_4} from './modules/instructions_compiler'
workflow PROTOCOL_1 {
// PROTOCOL 1 - TRANSFORMATION
MAKE_PROTOCOL_1(
tuple(file("$params.protocol_1_config"), file("$params.protocol_1_data")),
file("$params.protocol_template_dir")
)
SIMULATE_PROTOCOL_1(
MAKE_PROTOCOL_1.out,
file("$params.opentrons_labware_dir")
)
CREATE_LABWARE_CSV_1(
tuple(file("$params.protocol_1_data"), file("$params.protocol_1_config"))
)
VISUALISE_LABWARE_1(
CREATE_LABWARE_CSV_1.out,
file("$params.opentrons_labware_dir")
)
MAKE_INSTRUCTIONS_1(
file("$params.protocol_1_instructions"),
file("$params.protocol_1_config"),
VISUALISE_LABWARE_1.out
)
}
workflow PROTOCOL_2 {
// PROTOCOL 2 - SELECTION
MAKE_PROTOCOL_2(
tuple(file("$params.protocol_2_config"), file("$params.protocol_2_data")),
file("$params.protocol_template_dir")
)
SIMULATE_PROTOCOL_2(
MAKE_PROTOCOL_2.out,
file("$params.opentrons_labware_dir")
)
CREATE_LABWARE_CSV_2(
tuple(file("$params.protocol_2_data"), file("$params.protocol_2_config"))
)
VISUALISE_LABWARE_2(
CREATE_LABWARE_CSV_2.out,
file("$params.opentrons_labware_dir")
)
MAKE_INSTRUCTIONS_2(
file("$params.protocol_2_instructions"),
file("$params.protocol_2_config"),
VISUALISE_LABWARE_2.out
)
}
workflow PROTOCOL_3 {
// PROTOCOL 3 - SAMPLING
MAKE_PROTOCOL_3(
tuple(file("$params.protocol_3_config"), file("$params.protocol_3_data")),
file("$params.protocol_template_dir")
)
SIMULATE_PROTOCOL_3(
MAKE_PROTOCOL_3.out,
file("$params.opentrons_labware_dir")
)
CREATE_LABWARE_CSV_3(
tuple(file("$params.protocol_3_data"), file("$params.protocol_3_config"))
)
VISUALISE_LABWARE_3(
CREATE_LABWARE_CSV_3.out,
file("$params.opentrons_labware_dir")
)
MAKE_INSTRUCTIONS_3(
file("$params.protocol_3_instructions"),
file("$params.protocol_3_config"),
VISUALISE_LABWARE_3.out
)
}
workflow PROTOCOL_4 {
// PROTOCOL 4 - INDUCTION
MAKE_PROTOCOL_4(
tuple(file("$params.protocol_4_config"), file("$params.protocol_4_data")),
file("$params.protocol_template_dir")
)
SIMULATE_PROTOCOL_4(
MAKE_PROTOCOL_4.out,
file("$params.opentrons_labware_dir")
)
CREATE_LABWARE_CSV_4(
tuple(file("$params.protocol_4_data"), file("$params.protocol_4_config"))
)
VISUALISE_LABWARE_4(
CREATE_LABWARE_CSV_4.out,
file("$params.opentrons_labware_dir")
)
MAKE_INSTRUCTIONS_4(
file("$params.protocol_4_instructions"),
file("$params.protocol_4_config"),
VISUALISE_LABWARE_4.out
)
}
workflow {
PROTOCOL_1()
PROTOCOL_2()
PROTOCOL_3()
PROTOCOL_4()
}