Get class from CWL JSON file
get_cwl_class(input)
input | cwl json file path |
---|
character for cwl class "Workflow" or "CommandLineTool"
tool.in <- system.file("extdata/app", "tool_unpack_fastq.json", package = "sevenbridges") flow.in <- system.file("extdata/app", "flow_star.json", package = "sevenbridges") get_cwl_class(tool.in)#> [1] "CommandLineTool"is_commandlinetool(tool.in)#> [1] TRUEis_workflow(tool.in)#> [1] FALSEget_cwl_class(flow.in)#> [1] "Workflow"is_commandlinetool(flow.in)#> [1] FALSEis_workflow(flow.in)#> [1] TRUE