create_workflow: Creates a new workflow on the server.

Description Usage Arguments Value Examples

Description

This method expects a file with valid json as input, since creating a workflow is best done by hand. Use a good editor like VS Code for this task.

Usage

1
create_workflow(connection, path_to_workflow)

Arguments

connection

The connection to be used, call connect to obtain one.

path_to_workflow

The file path to the edit model JSON.

Value

A FGResponse object if no errors, otherwisea a FGErrorResponse

Examples

1
2
3
4
5
6
7
8
9
connection <- fastgenomicsRclient::connect("https://fastgenomics.org/", "Beaer ey...")
 # get a workflow as example
workflow <- fastgenomicsRclient::get_edit_model_of_workflow(connection, "wf_abc")
print(workflows@content) # the workflows as an easily usable model
path <- "workflow.json"
save_workflow_as_file(workflow, path) # save the workflow on disk
# make edits on the file...
result <- create_workflow(connection, path) # create the workflow
# check that the Result is not an FGErrorResponse, if it is an error check the "errors" field on the object.

FASTGenomics/r_client documentation built on June 25, 2019, 12:12 a.m.