Example: Building and Running a Simple Pipeline

This example guides you through building a pipeline that takes molecular data, calculates the molecular weight of the molecules, and then filters them by weight.

Important: Complete all the tasks that this page discusses in the order listed.

This task shows you how to:


Before you begin:
  • This example uses the Build Dataset template, which requires a Scientific Pipeline Author (BSP) or Therapeutics Data Scientist (BTD) role.
  • This example requires you to provide an SD format molecule file with multiple molecules (> 100 molecules is best.)
  • Review About Pipelines.
  • To access certain templates, you must have the appropriate roles. For more information, see Available Templates.

Start Building the Pipeline from a Template

Context: Start a new pipeline from a Build Dataset template.

  1. From the Pipeline Creator home page, click New.
  2. In the Create new pipeline from template dialog box, enter the Title Calculate Molecular Weight and Filter.
  3. For Template, choose Build Dataset.
  4. Click Create.
    The template pipeline opens in the work area. For more information, see About the Work Area.

Change the Default Reader and Writer

Context: Configure your pipeline to read and write SD files.

  1. From the top level of the pipeline you created, delete the existing text reader component.
  2. Drag an SD Reader component from the Catalog panel to the work area.
  3. Connect the output pipe of the reader to the input of the subpipeline.
  4. Delete the existing text writer component.
  5. Drag an SD Writer component from the Catalog panel to the work area.
  6. Connect the output of the final subpipeline to the input of the new writer.

Set the Data Source and Destination

Context: Configure your pipeline to read your SD file from 3DDrive, and write the output there.

  1. Select the SD Reader component.
  2. From the Parameters panel, click for the Source parameter.
  3. From the dialog, choose 3DDrive for Type.
  4. Drop one or more files from 3DDrive.
  5. Select the SD Writer component.
  6. From the Parameters panel, click for the Destination parameter.
  7. Drop a folder from 3DDrive. If you do not choose a folder, the destination is My Files.
  8. Enter a File name.

Add Components

Context: Add components to prepare the data, calculate the molecular weight, and then filter by the weight.

  1. Double-click the Editable Subpipeline component to begin editing the pipeline.
  2. Add a Clean Data component to filter out bad or incomplete data records:

    1. Click the Data Port component's output pipe.
    2. In the Component panel, start typing Clean Data in the text box near the top to filter a find the Clean Data component.

      Tip: Hover over the component in the Component panel to view help in the Component Help panel.

    3. Click the Clean Data component to add it to the selected pipe.
  3. Add a Standardize Molecule component, to correct any geometry issues:
    1. Click the Clean Data component's pass port pipe.

      The pass port is indicated by a small green hub.

    2. In the Component panel, locate the Standardize Molecule component, and click it to add it to the pipe.

  4. Add a Molecular Weight component to calculate the Molecular_Weight property for each molecule and add it to the data record:
    1. Click the Standardize Molecule component's output pipe.
    2. In the Component panel, locate the Molecular Weight component, and click it to add it to the pipeline.

  5. Add a Property Value Threshold Filter component to filter data records by a specified property value:
    1. Click the Molecular Weight component's output pipe.
    2. In the Component panel, locate the Property Value Threshold Filter component, and click it to add it to the pipeline.

      The filter component is added. A small triangle warning icon and bent pipe indicate that you must specify the required parameters for the component.
  6. Click the Property Value Threshold Filter component in the pipeline.
  7. From the Parameters panel, specify the following parameters:

    Tip: You can view help for the selected parameter in the Parameter Help panel.

    The Property Value Threshold Filter component filters data records by the molecular weight, which is calculated by the Molecular Weight component. Molecules with a molecular weight of less than 500 go to the pass port and are available in the output file specified for the Output Data Path parameter, filtered.sd. Molecules with a molecular weight of more than 500 are sent to the fail port.

Run the Pipeline and Check the Results

Context: Run your pipeline in data mode, monitor progress, check results in the Data Cache panel, and then download the output file from 3DDrive.

  1. Click Data Mode .

    The pipeline runs, caching data records that flow through each pipe. You can also run your pipeline without caching. For more information, see Running the Pipeline.

    Tip: To limit the number of data records read into the pipeline, use the Limit Records option before running.

    The Status panel opens, which shows the status of the pipeline run and the duration. When finished, the Status panel indicates that the pipeline is Complete.

    If a pipeline is running in data mode, the pipes indicate the number of data records that have passed through them.

  2. When the pipeline finishes, click the number bubble next to the final pass port to view the results in the Data Cache panel. To sort the values, click a column in the Data Cache panel.

  3. When the pipeline run completes, the output file is sent according to the output parameters. In this example, filtered.sd is available in 3DDrive.