get_graph: Get the CWL workflow graph

View source: R/get-graph.R

get_graphR 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()

tidycwl documentation built on May 3, 2022, 9:07 a.m.