get_edges: Get edges in a CWL workflow into a data frame

View source: R/get-graph.R

get_edgesR Documentation

Get edges in a CWL workflow into a data frame

Description

Get edges in a CWL workflow into a data frame

Usage

get_edges(outputs, steps)

Arguments

outputs

Parsed outputs

steps

Parsed steps

Value

Data frame containing edge information

Examples

# edges represented by a dictionary
flow <- system.file("cwl/sbg/workflow/rnaseq-salmon.json", package = "tidycwl") %>% read_cwl_json()
get_edges(
  flow %>% parse_outputs(),
  flow %>% parse_steps()
) %>% str()

# edges represented by a list
try(
  flow <- system.file("cwl/sbg/workflow/rnaseq-salmon.cwl", package = "tidycwl") %>% read_cwl_yaml()
)
try(
  get_edges(
    flow %>% parse_outputs(),
    flow %>% parse_steps()
  ) %>% str()
)

sbg/tidycwl documentation built on April 2, 2022, 3:29 a.m.