Example

This page shows how to build a simple pipeline. The pipeline will take text as input, transform spaces into underscores, and finally show the result on screen. The process consists of the following steps:

  1. create an empty pipeline setup with the necessary modules installed;
  2. installing the modules that make up the pipeline.
  3. create a new pipeline within the pipeline setup.
  4. adding the modules to the pipeline.
  5. linking the modules.
  6. run the new pipeline.

Creating an empty pipeline setup

In PipeT Editor, create a new pipeline setup by selecting New from the File menu. This gives you a fresh start.

Installing the modules

In this example, we install three modules: an input module, a processing module, and an output module. The processing module will just replace all space characters in the input by underscores.

  1. Select Manage modules from the Settings menu.
  2. Press add module to install a new module. Use the I/O modules method to add a text-input module and a screen-output module.
  3. Use the Shell command method to add another module. When PipeT Editor prompts for a command, enter "sed s/[[:space:]]/_/g" (without the quotes).

Creating a pipeline

In the Pipeline menu, select New. When PipeT Editor prompts for a name, enter "remove-spaces" (or any other name you may prefer).

Add the modules to the pipeline

Press the add module button and add all three of the installed modules one by one.

Link the modules

Press and hold the Control key while using the mouse to draw an edge from one module to another. Use this to draw an edge from the Text Input module to the sed module, and from the sed module to the Screen Output module.

Run the pipeline

Select Run in the Pipeline menu to start the pipeline. The Text Input module now prompts for input. Enter "Hello World!" Two windows will show up: one which shows the processing status and one by the Screen Output module which shows the output. The output window should show the input text with spaces replaced by underscored: "Hello_World!"