Get toolkit version for steps
get_steps_version(steps)
Steps object parsed by parse_steps
Vector of step toolkit versions
# steps represented by a dictionary
system.file("cwl/sbg/workflow/rnaseq-salmon.json", package = "tidycwl") %>%
read_cwl_json() %>%
parse_steps() %>%
get_steps_version()
#> [1] "v1.0" "v1.0" NA "0.9.1" "0.9.1"
# steps represented by a list
system.file("cwl/sbg/workflow/rnaseq-salmon.cwl", package = "tidycwl") %>%
read_cwl_yaml() %>%
parse_steps() %>%
get_steps_version()
#> [1] "v1.0" "v1.0" NA "0.9.1" "0.9.1"