← The Protocol Lab — all BIOVIA Pipeline Pilot guides

Data Processing with Pipeline Pilot

Reading, cleaning, transforming and writing data — the Pipeline Pilot way.

Data processing is the bread and butter of Pipeline Pilot. Whether you're pulling from an Oracle database, a CSV on a network share, a REST API, a LIMS (the lab's sample-and-results system of record) or a scientific instrument, Pipeline Pilot handles it with the same visual, auditable approach. Here's the complete picture from reader to writer — with the patterns that actually hold up in production.

Readers — getting data in

Almost every protocol starts with a reader. Pipeline Pilot ships with readers for practically every format you'll encounter in a scientific environment:

SourceComponentWhen I use it
Oracle / SQL ServerRead Database (Query)Primary for LIMS, manufacturing and ERP data at Pfizer
Stored ProcedureRead Database (Stored Proc)Complex queries — SQL lives in the DB where DBAs own it
CSV / TSV filesRead Delimited TextInstrument exports, flat transfers between systems
Excel (.xlsx)Read ExcelReports from business users, configuration lookup tables
XML / JSONRead XML · Parse JSONREST API responses, web service returns, config files
SDF / SD filesRead SDChemical structure data from LIMS and chemistry platforms
Fixed-width textRead TextLegacy mainframe extracts with fixed column positions

Database connectivity — the right way

Most production pipelines read from a relational database. Here's how to do it correctly:

  • Always use named Connection Definitions (managed in Pipeline Pilot Server's Connection Manager by your admin) — never embed server / user / password directly in component properties.
  • Use parameterized SQL with %(RunDate)% token substitution so dates and environment-specific values are never hardcoded in your query.
  • Prefer stored procedures over inline SQL for complex queries — the SQL lives in the database, is version-controlled there, and reviewed by DBAs.
  • Set the Batch Size property on large reads — Pipeline Pilot streams records, so you do not need everything in memory at once. 5,000–10,000 rows per batch is a common starting point.

Tip: Never put credentials in a protocol property or a parameter. In a GxP (regulated 'good practice') environment this is an audit finding waiting to happen. Always route through named server-side connection definitions that the admin team manages and rotates on schedule.

Filtering — keeping only what you need

After reading, you almost always filter. Filter components eliminate bad records, enforce business rules and narrow the dataset before expensive transforms or joins:

  • Filter by Property — the workhorse. Set one or more conditions on any property: Status = 'APPROVED', Count > 100, Date >= %(StartDate)%. Supports AND/OR logic.
  • Filter Duplicates — remove repeated records based on key properties. Essential after database joins that accidentally create Cartesian products.
  • Script Filter — use a PilotScript expression for complex conditions the standard filter UI cannot express. A single line of script is often cleaner than chaining three standard filters.
  • Always wire the 'filtered-out' output port to a counter or a log writer. Silent record loss is the hardest production bug to catch — if you are filtering, always count what you dropped and why.

Transforms — reshaping your data

Transforms change what your data looks like — adding computed properties, renaming columns, splitting or merging values, doing calculations:

  • Add Property — computes a new property on each record. Accepts PilotScript expressions, static values, or references to existing properties.
  • Rename Properties — maps incoming names to your output schema. Critical when source systems use cryptic column names and your output needs to be business-readable.
  • Select Properties — strips all properties except those you explicitly list. Use this before every write step to avoid writing internal working properties to your output table.
  • Concatenate Text — combine first and last name, build a file path from a date and site code, construct a composite key from multiple fields.
  • Calculate Statistics — mean, median, standard deviation, percentiles across a batch of records. Outputs a summary record rather than processing one at a time.

Joining data from multiple sources

Real-world protocols rarely work with a single source. Joining strategies in Pipeline Pilot:

  • Database join — when both tables are in the same database, put the join in your SQL query. A database engine does this far more efficiently than any in-memory join.
  • Merge by Key — use the Merge component to join two record streams that run as separate protocol branches, matching on a shared property. Think in-memory SQL JOIN.
  • Lookup — enriches records from one stream with properties from a smaller reference set (e.g. adding a site name from a site code). More memory-efficient than Merge for many-to-one lookups.
  • Append — stacks two streams vertically (SQL UNION). Use when the same type of data comes from multiple sources and you need one unified downstream record set.

Source A (LIMS) → Source B (ERP) → Merge on Key → Lookup Enrichment → Unified Output

Writers — getting data out

The last step in most protocols is a writer. Match your writer to your destination:

  • Write Database — inserts, updates or upserts records to a table. Use named connections, set ON DUPLICATE KEY behavior, and always handle constraint violation errors explicitly.
  • Write Excel / Write Delimited Text — file output for reports and data transfers. Parameterize the file path with %(RunDate)% so each run produces a uniquely named file.
  • Write PDF — formatted PDF reports for compliance-ready distribution. In regulated environments, PDF is the standard — printable, tamper-evident, archivable.
  • Send Email (SMTP) — send notifications with results attached. Pair this with a record count check so you only send email when there is something meaningful to report.