Description Usage Arguments Value Examples
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.
1 | create_workflow(connection, path_to_workflow)
|
connection |
The connection to be used, call |
path_to_workflow |
The file path to the edit model JSON. |
A FGResponse object if no errors, otherwisea a FGErrorResponse
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.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.