Last updated

Using FileContents with steps requiring a worklist

Hit Picking, Reagent from File, and Normalization steps let a protocol determine its pipetting targets (and optionally volumes) at runtime, based on a user-provided worklist file, rather than values that were fixed when the protocol was designed. This guide explains what the worklist file is, how to submit it through the API, and how to format it in order to be accepted successfully.

Before submitting a worklist file, the protocol must already be created and contain a Hit Picking, Reagent from File, or Normalization step that is waiting for a file to be submitted.

About worklist files

A worklist file is a plain-text, comma-separated (CSV-style) file that tells the system which wells to pipette from and/or to, and optionally how much volume to transfer. Rather than uploading this as a binary file attachment, its full text content is sent as a string value (FileContents) in the request body, along with the file's name and the identifiers of the protocol and step it belongs to.

Key concepts

  • Comments: Any line starting with # is ignored and can be used to add notes to the file.

  • Header row: The first line that's not a comment is treated as the column header row. Column names are case-sensitive and separated by commas.

  • Deck vs. barcode addressing: For hit picking and reagent from file steps, depending on how the step was configured when the protocol was designed, the file must identify locations either by deck site number or by labware barcode. (Check the step's configuration to see which one applies.) Normalization files always use deck site numbers.

  • Single-row files: If a file only specifies a volume, with no source or target wells, it must contain exactly one data row. That single volume is then applied to every transfer in the step.

Hit Picking steps

A Hit Picking step transfers liquid between source and target wells listed in the submitted file. Depending on how the step was configured, the file may need to include source columns, target columns, volume columns, or any combination of these.

Required header columns

Data Described

Deck Location Method

Barcode Location Method (Plate)

Barcode Location Method (Individually-barcoded tube)

Sources

SourceSite, SourceWell

SourceSiteBarcode, SourceWell

SourceWellBarcode

Targets

TargetSite, TargetWell

TargetSiteBarcode, TargetWell

TargetWellBarcode

Volumes

Volume

Volume

Volume

When using barcode addressing, choose one style per role (source/target), and don't combine them.

If the labware is a plate, include both the plate's barcode column and a well column; if the labware is an individually-barcoded tube, a single barcode column is enough since it already identifies the exact location.

Example worklist (deck location method, sources + targets + volumes)

json
# Hit picking worklist
SourceSite,SourceWell,TargetSite,TargetWell,Volume
1,A1,3,A1,50 1,A2,3,A2,50

Example worklist (barcode location method, plate-based sources and targets)

json
SourceSiteBarcode,SourceWell,TargetSiteBarcode,TargetWell,Volume
PLT00123,A1,PLT00456,A1,50
PLT00123,A2,PLT00456,A2,50

Example worklist (barcode location method, individually-barcoded tube sources and targets)

json
SourceWellBarcode,TargetWellBarcode,Volume
TUBE0001,TUBE0501,50
TUBE0002,TUBE0502,50

Submit a Hit Picking worklist file

Submit the worklist file for a Hit Picking step using the following endpoint:

put/api/v1/ProtocolRun/submit-hit-pick-file

put/api/v2/protocol-run/submit-hit-pick-file
curl 'http://{{your_prep_ip_address}}/api/v2/protocol-run/submit-hit-pick-file' \
  --request PUT \
  --header 'Authorization: Bearer <token>' \
  --data '{
  "protocolId": 0,
  "stepId": 0,
  "fileName": "string",
  "fileContents": "string"
}'
Response
The hit-picking file was submitted successfully

If the submitted file contains no data rows, the request still succeeds but the response includes hasWarning: true along with a message warning that the step will be skipped when the protocol runs.

Reagent from file steps

A Reagent from File step dispenses a single reagent (chosen when the protocol was designed) to the target wells listed in the submitted file. Every row in the file must also include a reagent name column. Only rows whose reagent name matches the reagent configured for that step are used; any other rows are ignored.

Required header columns

Data Described

Deck Location Method

Barcode Location Method (Plate)

Barcode Location Method (Individually-barcoded tube)

Reagent name (always required)

ReagentName

ReagentName

ReagentName

Targets

TargetSite, TargetWell

TargetSiteBarcode, TargetWell

TargetWellBarcode

Volumes

Reagent Volume

Reagent Volume

Reagent Volume

When using barcode addressing, choose one barcode style for the target, and don't combine them.

Use TargetSiteBarcode with TargetWell for plates, or TargetWellBarcode alone for individually-barcoded tubes.

Example worklist (deck location method, targets + volumes)

json
ReagentName,TargetSite,TargetWell,ReagentVolume
Buffer A,3,A1,25
Buffer A,3,A2,25
Buffer B,3,A3,25

In this example, if the step's configured reagent is Buffer A. Only the first two rows are used, and the Buffer B row is ignored.

Submit a Reagent from File worklist file

Submit the worklist file for a Reagent from File step using the following endpoint:

put/api/v1/ProtocolRun/submit-reagent-from-file-file

put/api/v2/protocol-run/submit-reagent-from-file-file
curl 'http://{{your_prep_ip_address}}/api/v2/protocol-run/submit-reagent-from-file-file' \
  --request PUT \
  --header 'Authorization: Bearer <token>' \
  --data '{
  "protocolId": 0,
  "stepId": 0,
  "fileName": "string",
  "fileContents": "string"
}'
Response
The file for reagent from file was submitted successfully

Normalization steps

A Normalization step dilutes each sample to a target concentration. The submitted file lists the source wells holding the samples, the concentration measured for each sample, and the target wells the normalized samples are transferred to. Sources and targets are always addressed by deck site number.

Barcode addressing is not used for Normalization worklist files.

Required header columns

Data Described

Deck Location Method

Sources

SourceSite, SourceWell

Targets

TargetSite, TargetWell

Concentration

Concentration

Volumes (only if the step is configured to take volumes from the file)

SampleVolume, DiluentVolume

An optional SourceID column can be included to label each sample; it does not affect pipetting, but is carried through to the step's output file.

If the step is not configured to take volumes from the file, omit SampleVolume and DiluentVolume; the system calculates them from each row's Concentration and the step's configured target concentration and volume. If the step is configured to take volumes from the file, both columns must be present.

Example worklist (concentrations only; volumes calculated by the system)

json
# Normalization worklist
SourceSite,SourceWell,SourceID,Concentration,TargetSite,TargetWell
4,A1,SAMPLE001,4.001,5,A1
4,B1,SAMPLE002,2.750,5,B1

Example worklist (volumes specified in the file)

json
SourceSite,SourceWell,Concentration,SampleVolume,DiluentVolume,TargetSite,TargetWell
4,A1,4.001,2.2,3.5,5,A1
4,B1,2.750,3.2,2.5,5,B1

Rows where SampleVolume and DiluentVolume are both zero (0) are skipped, as are rows whose target well is already used by an earlier row in the file.

Submit a Normalization worklist file

Submit the worklist file for a Normalization step using the following endpoint:

put/api/v1/ProtocolRun/submit-normalization-file

put/api/v2/protocol-run/submit-normalization-file
curl 'http://{{your_prep_ip_address}}/api/v2/protocol-run/submit-normalization-file' \
  --request PUT \
  --header 'Authorization: Bearer <token>' \
  --data '{
  "protocolId": 0,
  "stepId": 0,
  "fileName": "string",
  "filePath": "string",
  "fileContents": "string"
}'
Response
The normalization file was submitted successfully