Get CWL version

get_cwl_version(x)

Arguments

x

CWL object

Value

CWL version number

Examples

system.file("cwl/sbg/workflow/gatk4-wgs.json", package = "tidycwl") %>%
  read_cwl_json() %>%
  get_cwl_version()
#> [1] "sbg:draft-2"

system.file("cwl/sbg/workflow/rnaseq-salmon.json", package = "tidycwl") %>%
  read_cwl_json() %>%
  get_cwl_version()
#> [1] "v1.0"