The element allows you to join two data flows into a single data flow, i.e. to join messages from two input ports into concatenated messages and send them to the output. The concatenation approach is determined by the Multiplexing rule parameter.

There are the following multiplexing rules:

Rule: 1 to 1

This rule means that the multiplexer gets one message from the first input port and one message from the second input port, joins them into a single message, and transfers it to the output. This procedure is repeated while there are available messages in both input slots.

See an example workflow below:

<center>
  <img src="/wiki/download/attachments/16126399/multiplexer_element_1to1.png"/>
</center>

As you can see:

Rule: 1 to many

This rule means that the multiplexer gets one message from the first input port, joins it with each message from the second input port, and transfers the joined messages to the output. This procedure is repeated for each message from the first input port.

See an example workflow below:

<center>
  <img src="/wiki/download/attachments/16126399/multiplexer_element_1toMany.png"/>
</center>

As you can see the conditions are the same as in the first "1 to 1" case, described above:

However, the multiplexing is done so that each message from A is concatenated from each message from C. As a result the following messages are produced:

Parameters in GUI

ParameterDescriptionDefault value
Multiplexing rule

Available values are:

  • 1 to 1
  • 1 to many

See the detailed description of the values above.

1 to 1

Parameters in Workflow File

Type: multiplexer

ParameterParameter in the GUIType
multiplexing-ruleMultiplexing rulestring

Input/Output Ports

The Multiplexer has ports but has not slots, because its use the whole data flow.

The element has 2 input port:

Name in GUI: First input data flow

Name in Workflow File: input-data-1

Name in GUI:Second input data flow

Name in Workflow File: input-data-2

The element has 1 output port:

Name in GUI: Multiplexed output data flow

Name in Workflow File: output-data

Samples

Also see the Find Substrings at SequencesSearch for TFBS examples with Multiplexer element.