Create, edit, and share a new workflow
FollowCreating or editing a new Workflow in Terra currently requires working in the "Broad Methods Repository." Below are step-by step instructions for how to
A. Create a new workflow
B. Edit a workflow
C. Share or clone a workflow
A. Create a new workflow
1. Navigate to the Workflow tab and click on the "Find a Workflow" card:
2. From the popup, click on the Broad Methods Repository at the bottom, under "Find Additional Workflows":
3. You will be redirected to the Broad Methods Repository, where you can click on the blue button at the top right corner to "Create New Method.. +":
4. Clicking the 'Create New Method.. +" will open up a modal to set up your new Workflow. You will enter your Namespace* and the Name of your new Workflow followed by your WDL (enter manually or with "Load from file..."). Workflow names can include letters, numbers, underscores, dashes, and periods. Press Upload once you've filled in all the information.
---------------------------------------------------------------
Namespace* acts like a folder containing workflow and workflow configs. For example, if you add the workflow "ExampleNewWorkflow" to the Broad Methods Repository under the namespace "SupportDocs", its identifier would be: SupportDocs/ExampleNewWorkflow
Many analysts choose to put their name and/or institution in the namespace field. You can label your namespaces however you see fit, provided the chosen namespace does not already exist. Administrators may verify namespaces, which like verified twitter accounts, establish the authenticity of namespaces attached to specific organizations (e.g., Broad Institute).
You can permit others to use your namespace. This is great for labs who have multiple contributors but want people to find all of their methods under the "Miller-lab", for example.
In this case, we may add the namespace "SupportDocs" to any workflows that we create for the purpose of documents.
Name is the name of the specific workflow you are creating. This can be any name as long as it does not already exist. In this example, the workflow is called "ExampleNewWorkflow"
Documentation is where you can add information about the WDL and what it does. We encourage developers to add descriptive information such that if you were to share this with another user, they are able to recognize the inputs and outputs as well as any other required information they may need to run the workflow successfully.
Snapshot is a numerical value assigned to the WDL similar to a versioning system. From the WDL section, you can make edits directly to the script and each time you press Upload, you create a new Snapshot.
---------------------------------------------------------------
5. Once you've finished uploading, you'll be directed to your new workflow. You can "Export to Workspace..." from the top right-hand corner:
6. The configuration lets you set inputs and save them to use repeatedly. You can select a configuration if one already exists or use a blank configuration:
7. Choose the destination Workspace - the Terra workspace that you were working in and would like to export your Workflow to. You should be prompted to go to the destination workspace, which will redirect you back to your Terra Workflows tab where you should see your new workflow:
B. Edit a workflow
1. Access your workflow from the Broad Methods Repository so that you are on the Summary tab:
2. Press "Edit..." from the left-hand bar. This should bring up the same modal used to create your workflow:
3. You can edit directly in the WDL section window. The program will automatically recognize syntactical errors when you press Upload. You can also change the snapshot comment depending on the changes that you made. Press "Save as New Snapshot".
You can see that there are now 2 Snapshots. You will not need to export this workflow again to Terra. Just go to the Workflow tab to toggle between the snapshots when you click into the workflow.
C. Share or clone a workflow
You can duplicate (clone) a workflow within your workspace or export your workflow to a new workspace
1. Got to the Workflows tab of your Terra Workspace
2. Click the three button icon for the Workflow you want to share
3. Select "Duplicate" to clone the Workflow within the workspace or select "Copy to Another Workspace" to share with a different Workspace
Comments
0 comments
Please sign in to leave a comment.