convert_app {sevenbridges} | R Documentation

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

### Description

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

### Usage

    convert_app(from)

    appType(x)

### 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

    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)

[Package sevenbridges version 1.17.1 Index]