Subsections


Branching elements

Branching elements control the path that data takes through a workflow.

Branch on Coverage

Branch on Coverage (Image branch_on_coverage_16_n_p) controls the flow of read mappings based on coverage information from a coverage report. The input read mapping flows through the Pass or Fail output channel, depending on whether the coverage level in the report meets the defined condition (figure 14.65).

Image branch_on_coverage
Figure 14.65: Read mappings that meet the condition specified in the Branch on Coverage element, based on coverage information in the associated report, flow through the Pass output channel and continue to the Basic Variant Detection step. Read mappings that do not meet the condition flow through the Fail output channel and are not processed further.

Reports generated by the following tools can be used with Branch on Coverage:

The following options can be configured (figure 14.66):

Image branch_on_coverage_configure
Figure 14.66: Configuration of a Branch on Coverage element.

Branch on Item Count

Branch on Item Count (Image branch_on_item_count_16_n_p) controls the flow of elements based on their item count or that of another element. The input element flows through the Pass or Fail output channel, depending on whether the item count meets the defined condition (figure 14.67).

Image branch_on_item_count
Figure 14.67: Sequences that meet the condition specified in the Branch on Item Count element flow through the Pass output channel and continue to the Assemble Sequences step. Sequences that do not meet the condition flow through the Fail output channel and are not processed further.

The following options can be configured (figure 14.68):

Image branch_on_item_count_configure
Figure 14.68: Configuration of a Branch on Item Count element.

Many element types containing countable items can be used with Branch on Item Count. Examples of countable items include sequences in a sequence list (Image seq_list_nucleotide) (Image seq_list_protein) or an alignment (Image alignment), reads in a stand-alone read mapping (Image contig) or reads track (Image read_track_16_n_p), or number of features in an annotation track (Image annotation_track_16_n_p).

Branch on Sample Quality

Branch on Sample Quality (Image branch_on_samplereport_16_n_p) controls the flow of data based on quality information from a sample report or a combined report. The input data flows through the Passed, Uncertain, or Failed output channel, depending on whether the report meets certain quality control conditions (figure 14.69).

Image branch_on_sample_quality
Figure 14.69: Sample data that meet the conditions specified in the "Quality control" subsection of the associated report flow through the Passed output channel and continue to the Map Reads to Reference step. Sample data that do not meet the conditions flow through the Uncertain output channel and continue to the QC for Sequencing Reads step, or through the Failed output channel and are not processed further, depending on which quality conditions are not met.

Reports generated by the following tools can be used with Branch on Sample Quality:

For each quality condition configured in Create Sample Report, a color (red or yellow) can be assigned when the condition is not met. The branching element uses this information as follows:

  1. If a condition assigned red is not met, the data flows through the Failed channel.
  2. Otherwise, if a condition assigned yellow is not met, the data flows through the Uncertain channel.
  3. Otherwise, the data flows through the Passed channel.

If a report does not include the "Quality control" section, the data flows through the Passed channel.

The branching elements Branch on Item Count and Branch on Coverage also control the flow of data through a workflow based on quality measures. However, they do not have the same flexibility: they allow a single quality condition for a single data type, with data flowing into only two downstream paths.