Is this CWL v1.0?

is_v1.0(x)

Arguments

x

CWL object

Value

Logical. TRUE if it is a CWL v1.0 object, FALSE if not.

Examples

system.file("cwl/sbg/workflow/gatk4-wgs.json", package = "tidycwl") %>%
  read_cwl(format = "json") %>%
  is_v1.0()
#> [1] FALSE

system.file("cwl/sbg/workflow/rnaseq-salmon.json", package = "tidycwl") %>%
  read_cwl(format = "json") %>%
  is_v1.0()
#> [1] TRUE