visualize_graph {tidycwl} | R Documentation |
Visualize the CWL workflow
Description
Visualize the CWL workflow
Usage
visualize_graph(
g,
hierarchical = TRUE,
direction = "LR",
separation = 300,
palette = c("#C3C3C3", "#FF8F00", "#00AAA8"),
width = "100%",
height = 600
)
Arguments
g |
Graph generated by |
hierarchical |
Enable the hierarchical layout? Default is |
direction |
Direction of the hierarchical layout.
Options include |
separation |
Level separation parameter from
|
palette |
Three-color palette for inputs, outputs, and steps. |
width |
Canvas width, see |
height |
Canvas height, see |
Value
A visNetwork
output.
Examples
flow <- system.file("cwl/sbg/workflow/gatk4-wgs.json", package = "tidycwl") %>% read_cwl_json()
get_graph(
flow %>% parse_inputs(),
flow %>% parse_outputs(),
flow %>% parse_steps()
) %>% visualize_graph()
[Package tidycwl version 1.0.7 Index]