-
Notifications
You must be signed in to change notification settings - Fork 0
/
foo.nf
56 lines (44 loc) · 785 Bytes
/
foo.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
nextflow.enable.dsl=2
process p1 {
input:
path inputPath
output:
path "output_p1/"
script:
"""
mkdir output_p1
cp -Lr ${inputPath} output_p1/
"""
}
process p2 {
input:
path inputPath
output:
path "output_p2/"
script:
"""
mkdir output_p2
cp -Lr ${inputPath} output_p2/
"""
}
process p3 {
input:
path inputPath
path p1Outputs
path p2Outputs
output:
path "output_p3/"
script:
"""
mkdir output_p3
cp -Lr ${inputPath} ${p1Outputs} ${p2Outputs} output_p3/
"""
}
workflow foo {
take:
inputsPath
main:
p1(inputsPath)
p2(inputsPath)
p3(inputsPath, p1.out, p2.out)
}