Parse the inputs of the CWL workflow into a data frame

parse_inputs(x, simplify = TRUE)

Arguments

x

CWL object

simplify

Simplify the list as a data frame?

Value

List or data frame of inputs

Examples

system.file("cwl/sbg/workflow/rnaseq-salmon.json", package = "tidycwl") %>%
  read_cwl_json() %>%
  parse_inputs() %>%
  names()
#>  [1] "description"          "sbg:fileTypes"        "type"                
#>  [4] "label"                "doc"                  "id"                  
#>  [7] "format"               "sbg:includeInPorts"   "sbg:toolDefaultValue"
#> [10] "sbg:category"         "sbg:altPrefix"       

system.file("cwl/sbg/workflow/rnaseq-salmon.cwl", package = "tidycwl") %>%
  read_cwl_yaml() %>%
  parse_inputs() %>%
  names()
#>  [1] "id"                   "sbg:fileTypes"        "type"                
#>  [4] "label"                "doc"                  "description"         
#>  [7] "format"               "sbg:includeInPorts"   "sbg:category"        
#> [10] "sbg:toolDefaultValue" "sbg:altPrefix"