Description Usage Arguments Value Examples
Your modifications will not affect any existing analyses or analysistemplates. A successfull modification will increase the version field of the workflow. You can update an analysistemplate through AnalysisApi: /api/v1/analysistemplates/id/update_workflow
1 | modify_workflow(connection, path_to_workflow, workflow_id)
|
connection |
The connection to be used, call |
path_to_workflow |
The file path to the edit model JSON. |
workflow_id |
The id of the workflow to be updated |
A FGResponse object if no errors, otherwisea a FGErrorResponse
1 2 3 4 5 6 7 8 9 10 | 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
updated_workflow <- modify_workflow(connection, path, result@content[["id"]]) # update the workflow
print(updated_workflow@content[["version"]]) # should be 2.0
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.