Connecting workflow elements

Connections between workflow elements are made between an output channel in one element and a compatible input channel in another. These connections defines the flow of data through the workflow.

The names of output channels usually indicate the type of data generated and the names of input channels usually indicate the type of data expected.

An output channel can be connected to more than one input channel and an input channel can accept data from more than one output channel (figure 14.7).

Image workflow_multiple_connections
Figure 14.7: In this workflow, two elements are supplying data to the Reads input channel of the Map Reads to Reference element, while data from the Reads Track output channel of Map Reads to Reference is being used as input to two elements.

Making new connections between output and input channels

Two ways that compatible input and output channels can be connected are:

Selecting connections

Before acting on existing connections, they must be selected.

An individual connection can be selected by clicking on the connection line. Right-clicking on a connection line will select that connection and open a context menu.

Clicking on the source/destination box on a given channel will select all connections connected to that channel.

As with other items in the editor, keeping the Ctrl key (Image command_key_web on Mac) depressed allows multiple connections (and elements) to be selected.

Moving existing connections

Connections in the workflow can be moved by selecting them and then:

Reordering connections to a single tool

Some tools accept multiple incoming connections to their main input channel. In some cases, the order that the incoming connections are processed affects the outputs, for example Combine Reports, where the order of content in the report is affected, or Create Track List, where the order of the tracks in the list is affected.

By default, the processing order reflects the order the connections were attached in.

To make changes to this order, right-click on the relevant input channel and choose the option Update Processing Order... from the context menu. In the Update Processing Order dialog, Connections are identified by the name of the originating element and the output channel name. They can be moved up and down in the list.

Click on the Jump to Source button to bring the focus in the editor to the source element.

Numbers on the connections are added, or updated if further changes are made using the Update Processing Order dialog.

Information about connection sources and destinations

The source and destination of a connection can be investigated in the following ways:

Image workflow_mouse_over_connection
Figure 14.10: Hover the mouse cursor over a connection to reveal a tooltip containing the names of the elements and channels connected.

Image workflow_connection_right_click
Figure 14.11: Right-click on a connection to reveal options to jump to the source element or the destination element of that connection.

Removing connections

Connections can be removed by selecting them and using the Delete/Backspace key.