input_matrix {sevenbridges} | R Documentation |
An efficient way to access JSON file, no need to convert a JSON into a
Tool
or Flow
object before access, directly operate on a
list parsed from JSON file. Compare to convert_app
, it is much faster.
input_matrix( from, new.order = c("id", "label", "type", "required", "prefix", "fileTypes"), required = NULL ) output_matrix(from, new.order = c("id", "label", "type", "fileTypes"))
from |
JSON file path |
new.order |
a vector of column orders by default for input it's
|
required |
logical value, show requried input node only or not. |
A data frame of input/output information.
tool.in <- system.file("extdata/app", "tool_unpack_fastq.json", package = "sevenbridges") flow.in <- system.file("extdata/app", "flow_star.json", package = "sevenbridges") input_matrix(tool.in) input_matrix(tool.in, required = TRUE) input_matrix(flow.in) input_matrix(flow.in, c("id", "type")) input_matrix(flow.in, required = TRUE) tool.in <- system.file("extdata/app", "tool_unpack_fastq.json", package = "sevenbridges") flow.in <- system.file("extdata/app", "flow_star.json", package = "sevenbridges") output_matrix(tool.in) output_matrix(flow.in)