convert_app: Convert App or a CWL JSON file to Tool or Flow object

Description Usage Arguments Details Value appType Examples

View source: R/class-app.R

Description

Convert App or a CWL JSON file to Tool or Flow object

Usage

1
2
3

Arguments

from

an App object or a CWL JSON

x

a App object

Details

This function import CWL JSON file, based on its class: CommandLineTool or Worklfow to relevant object in R, Tool object or Flow object.

Value

Tool or Flow object depends on CWL type.

appType

this function return class of a App object.

Examples

1
2
3
4
5
6
tool.in <- system.file("extdata/app", "tool_star.json", package = "sevenbridges")
flow.in <- system.file("extdata/app", "flow_star.json", package = "sevenbridges")
# convert to Tool object
convert_app(tool.in)
# convert to Flow object
convert_app(flow.in)

sbg/sevenbridges-r documentation built on March 26, 2021, 3:33 p.m.