Is this a CWL command line tool?
is_tool(x)
| x | CWL object |
|---|
Logical. TRUE if it is a CWL command line tool
(instead of a workflow), FALSE if not.
system.file("cwl/sbg/tool/bwa-mem.json", package = "tidycwl") %>% read_cwl(format = "json") %>% is_tool()#> [1] TRUEsystem.file("cwl/sbg/workflow/gatk4-wgs.json", package = "tidycwl") %>% read_cwl(format = "json") %>% is_tool()#> [1] FALSE