Basic configuration of workflow elements
When an element is first added to a workflow, it has a default name, default values for any configurable settings, and usually, all settings are locked, meaning that their values cannot be changed when the workflow is launched. All these aspects are configurable.
Beyond affecting what is displayed in the editor, these changes can affect what is seen when launching the workflow and the settings used by default when the workflow is run.
This section covers:
- Opening a workflow element for configuration.
- Specifying whether a setting should be configurable when launching the workflow
- Updating default values for workflow settings
- Updating setting labels
- Using a template data element to support configuration
- Renaming workflow elements
Opening a workflow element for configuration
A configuration dialog for editing settings in a workflow element can be opened by:
- Double-clicking on an element name in the editor, or
- Right-clicking on an element name and choosing the Configure Element... option from the menu that appears.
These settings can also be edited in the Workflow Configuration view.
There are three main types of configuration that can be done in this dialog, each described in more detail below:
- Specifying whether a setting should be configurable when launching the workflow (locked/unlocked status)
- Updating default values for workflow settings
- Updating setting labels
Note: Clicking the Reset button in a workflow element configuration dialog sets all name and value changes in that particular configuration step back to the defaults. It has no effect on the locked/unlocked status of the settings.
Specifying whether a setting should be configurable when launching the workflow
Beside each setting is a lock symbol. Values for locked (
) settings cannot be changed when launching the workflow. Values of unlocked (
) settings can be changed when launching the workflow.
Click on a lock icon to change it from locked (
) to unlocked (
), or vice versa.
Figure 14.28: Four settings in the Create Alignment element have been unlocked. These will be presented and configurable in the workflow launch wizard.
Locked settings can be listed in the launch wizard, but are not shown by default (figure 14.29).
Figure 14.29: The workflow launch wizard for the Create Alignment step of the workflow shown in figure 14.28. The configurable (unlocked) settings are in the top section. The "Locked Settings" section has been expanded, revealing the settings for this tool that cannot be changed when launching this workflow.
Updating default values for workflow settings
When analysis elements are added to a workflow, the default settings are the same as the defaults for the corresponding tool when run from the Tools menu. Changes to these settings can be made in the configuration dialog, thereby updating the default values the workflow will use when it is run.
Settings in control flow elements affect the flow of data through a workflow, and in many cases, especially when working with Fork or Branching elements, configuration will be needed.
Updating setting labels
Updating a setting's label changes what is displayed in the workflow launch wizard.
To update a setting name, click on the edit icon (
) beside its name (figure 14.30).
Figure 14.30: The "Gap open score" setting has been renamed "Gap opening score" in the element configuration dialog.
Using a template data element to support configuration
Certain settings in some workflow elements support the use of a data element as a template to support configuration. Where this is supported, a Template element field will be present in the configuration wizard.
Information in a template data element is used to populate a list from which the relevant values can be selected. A case where this can be helpful is when providing column or attribute names, where picking from a list may be faster and less error prone.
To supply a data element to use as a template, click the browse (
) button next to the Template element field and select the data element to use. Once selected, click the Load button to populate the drop-down list with values (figure 14.31).
Figure 14.31: Split Sequence List is being configured to split based on attribute values. A template element has been loaded, thereby populating a drop-down list with all its attributes. The attribute to use can then be selected from the list.
We recommend selecting a small element for use as a template, as loading large data elements can take a long time.
When configuring column or attribute names, the use of a template data element is usually optional. They can be typed in manually instead. For other purposes, such as when configuring Extract Table from Report, specifying a template data element to populate the list of possible values is required.
Renaming workflow elements
Understanding a workflow is aided by tailoring element names to reflect their intended use.
To rename an element, right click its name, choose the option "Rename Element..." (figure 14.32), and enter the desired name in the dialog that opens.
Figure 14.32: To rename a workflow element, right-click its name and select "Rename Element...".
Element names within a workflow must be unique. Thus, when an element is added to a workflow, if its name is not unique, it will be automatically renamed by adding a numeric extension such as "-1", "-2", etc.
Workflow element names are visible in various places:
- The Workflow Editor, in the Workflow view (figure 14.33) and in the Workflow Configuration view (figure 14.34).
Note: The Find functionality in the Side Panel of the Workflow view finds elements based on terms in the current name. By contrast, terms from either the current or original name can be used in the Filter Elements field of the Workflow Configuration view.
- The workflow launch wizard (figure 14.35), where element names are used as labels for launch wizard steps.
- The analysis log (figure 14.36).
- History information in results (figure 14.37).
Figure 14.33: Create Alignment elements were renamed to "Aign All" and "Align E. Coli", reflecting their intended function within the workflow. The Filter on Custom Criteria element was renamed "Filter for E. coli".
Figure 14.34: When an element's name has been updated, the Workflow Configuration view shows both the current and the original element names. Here, "Create", a term in the original names of two elements, was used to filter the list of elements shown in the view.
Figure 14.35: Launch wizard steps for the workflow shown in figure 14.33. The naming makes clear which alignment the settings will be applied to.
Figure 14.36: An analysis log generated by running the workflow shown in figure 14.33.
Figure 14.37: The History view of an alignment created using the workflow shown in figure 14.33.
