plotCWL: plotCWL

Description Usage Arguments Value Examples

View source: R/plotCWL.R

Description

Function to plot cwlStepParam object.

Usage

1
plotCWL(cwl, output = "graph", layout = "tree", ...)

Arguments

cwl

A cwlStepParam object to plot

output

A string specifying the output type. An option inherits from 'render_graph' and can also be "mermaid".

layout

Layout from 'render_graph'.

...

other parameters from 'mermaid' or 'render_graph' function

Value

A workflow plot.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
input1 <- InputParam(id = "sth")
echo1 <- cwlParam(baseCommand = "echo",
                  inputs = InputParamList(input1))
input2 <- InputParam(id = "sthout", type = "File")
echo2 <- cwlParam(baseCommand = "echo",
                  inputs = InputParamList(input2),
                  stdout = "out.txt")
i1 <- InputParam(id = "sth")
o1 <- OutputParam(id = "out", type = "File", outputSource = "echo2/output")
wf <- cwlStepParam(inputs = InputParamList(i1),
                   outputs = OutputParamList(o1))
s1 <- Step(id = "echo1", run = echo1, In = list(sth = "sth"))
s2 <- Step(id = "echo2", run = echo2, In = list(sthout = "echo1/output"))
wf <- wf + s1 + s2
plotCWL(wf)

Rcwl documentation built on Nov. 8, 2020, 8:11 p.m.