get_graph {tidycwl} | R Documentation |
Get the CWL workflow graph
Description
Get the CWL workflow graph as a list of two data frames: a data frame of nodes and a data frame of edges.
Usage
get_graph(inputs, outputs, steps)
Arguments
inputs |
Parsed inputs |
outputs |
Parsed outputs |
steps |
Parsed steps |
Value
List of two data frames containing node and edge information
Examples
# sbg:draft2
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()
) %>% str()
# v1.0
flow <- system.file("cwl/sbg/workflow/rnaseq-salmon.json", package = "tidycwl") %>% read_cwl_json()
get_graph(
flow %>% parse_inputs(),
flow %>% parse_outputs(),
flow %>% parse_steps()
) %>% str()
[Package tidycwl version 1.0.7 Index]