-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.nf
More file actions
41 lines (32 loc) · 730 Bytes
/
main.nf
File metadata and controls
41 lines (32 loc) · 730 Bytes
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
params.graph = "test_graph.gfa"
params.base_config = "base_config.yaml"
process panacus_config {
publishDir 'results/config'
input:
path graph
path base_config
output:
path "${graph.getBaseName()}.yaml"
script:
"""
cat ${base_config} | sed "s|{{GRAPH}}|${graph}|" > "${graph.getBaseName()}.yaml"
"""
}
process panacus {
conda 'bioconda::panacus'
publishDir 'results/panacus'
input:
path config
path graph
output:
path "${config.getBaseName()}.html"
script:
"""
panacus report '${config}' > "${config.getBaseName()}.html"
"""
}
workflow {
def ch_graph = channel.fromPath(params.graph)
panacus_config(ch_graph, file(params.base_config))
panacus(panacus_config.out, ch_graph)
}