Get nodes in a CWL workflow into a data frame

get_nodes(inputs, outputs, steps)

Arguments

inputs

Parsed inputs

outputs

Parsed outputs

steps

Parsed steps

Value

Data frame containing node information

Examples

flow <- system.file("cwl/sbg/workflow/gatk4-wgs.json", package = "tidycwl") %>% read_cwl_json()
get_nodes(
  flow %>% parse_inputs(),
  flow %>% parse_outputs(),
  flow %>% parse_steps()
) %>% str()
#> 'data.frame':	36 obs. of  3 variables:
#>  $ id   : chr  "intervals_file" "dbsnp" "mills" "fastq" ...
#>  $ label: chr  "Target BED" "dbsnp" "Mills" "Fastq" ...
#>  $ group: chr  "input" "input" "input" "input" ...