Learn R Programming

tidycwl (version 1.0.7)

get_graph: 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

Run this code
# NOT RUN {
# 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()
# }

Run the code above in your browser using DataLab