Learn R Programming

sevenbridges (version 1.2.4)

link: link two nodes to form a new Workflow

Description

link two nodes to form a new Workflow

shows potential link methods by providing grouped inputs/ouputs

Usage

link(from, to, ...)
"link"(from, to, id1, id2, flow_id = NULL, flow_label = NULL, flow_input = NULL, flow_output = NULL)
"link"(from, to, id1, id2)
"link"(from, to, id1, id2)
"link"(from, to, id1, id2)
"link"(from, to, id1, id2)
"link"(from, to, id1, id2)
link_what(from, to)

Arguments

from
either Tool App or Workflow object
to
either Tool App or Workflow object
...
more auguments
id1
id to be connected from the ouput of the first node
id2
id id to be connected from the input of the second first node
flow_id
workflow id, if ignored, going to create one by joning tool id.
flow_label
workflow label, if ignored, going to create one by joning tool labels.
flow_input
full flow input id, e.g. "#SBG_Unpack_FASTQs.input_archive_file"
flow_output
full flow output id, e.g. "#STAR.log_files"

Value

A Workflow object

Details

Flexible enought to allow users to connect two objects by ids

Examples

Run this code
t1 = system.file("extdata/app", "tool_unpack_fastq.json", package = "sevenbridges")
t2 = system.file("extdata/app", "tool_star.json", package = "sevenbridges")
t1 = convert_app(t1)
t2 = convert_app(t2)
## check possible link
link_what(t1, t2)
## link
f = link(t1, t2, "output_fastq_files", "reads")
## link
f = link(t1, t2, "output_fastq_files", "reads",
         flow_input = "#SBG_Unpack_FASTQs.input_archive_file",
         flow_output = "#STAR.log_files")
tool.in = system.file("extdata/app", "tool_unpack_fastq.json", package = "sevenbridges")
flow.in = system.file("extdata/app", "flow_star.json", package = "sevenbridges")
t1 = convert_app(tool.in)
f2 = convert_app(flow.in)
lw = link_what(t1, f2)
lw

Run the code above in your browser using DataLab