is_tool: Is this a CWL command line tool?

View source: R/utils.R

is_toolR Documentation

Is this a CWL command line tool?

Description

Is this a CWL command line tool?

Usage

is_tool(x)

Arguments

x

CWL object

Value

Logical. TRUE if it is a CWL command line tool (instead of a workflow), FALSE if not.

Examples

system.file("cwl/sbg/tool/bwa-mem.json", package = "tidycwl") %>%
  read_cwl(format = "json") %>%
  is_tool()

system.file("cwl/sbg/workflow/gatk4-wgs.json", package = "tidycwl") %>%
  read_cwl(format = "json") %>%
  is_tool()

sbg/tidycwl documentation built on April 2, 2022, 3:29 a.m.