Deeper dive - WDLs, workflows, and tasks

Allie Hajian
  • Updated

Identifying workflow and task inputs and outputs

Inputs and outputs are defined in the WDL.and can be at the "workflow" or the "task" level. Terra interprets the WDL and provides an input "form" to fill out. The outputs part of the form is optional. To access the inputs and outputs forms as well as more details on the inner workings of the WDL, click on the workflow card from within the Workflows page. 

To learn more about configuring workflow inputs and outputs, see this article

Understanding where the inputs and outputs are used by the WDL can help with troubleshooting, if your submission fails.  

This is an example of what you will see after clicking on the workflow card. There are separate forms for the WDL script, inputs, and outputs:
Workflow_configuration_Screen_Shot.png

To look at the WDL script in the Exercise1_CRAM_to_BAM workflow of the Terra-Workflows-QuickStart workspace, click here and select the Script tab at the left. 

How many workflows and how many tasks are in the WDL?

Click on the "Script" tab (at left) to look at the WDL script and find this information.

Workflows-Deep_Dive_WDL_script_Screen_shot.png

Answer: The WDL includes one workflow - CramToBamFlow (1) with two tasks - CramToBamTask (2) and ValidateSameFile (3).

You can identify tasks by the "call" command. There are inputs listed for the workflow and separately for the tasks, followed by outputs for the workflow.

In the Inputs tab, you can tell the difference between workflow inputs and task inputs by looking at the name in the first column. The first four inputs are the workflow inputs (i.e. correspond to the workflow, CramToBamFlow) according to the WDL.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.