An authorized user designs an assay by creating a named instance of either the flexible "Standard" type or of a built-in "Specialty" assay type. In an assay design, you describe the structure of the data you will be importing and can customize it adding and modifying fields and properties as needed. This topic covers properties and fields available for Standard assay designs.

Assay Properties

Assay properties describe attributes of an assay design that are common to all runs and batches imported using it. Every assay design must have a unique Name; other properties are optional and depend on the needs of the group using it. When you define an assay, the first panel includes properties in the following categories:

Basic Properties

  • Name (Required): Text. Each assay design must have a unique name.
    • The name must be unique, must start with a letter or number character, and cannot contain special characters or some reserved substrings listed here.
  • Description: Optional text with a more verbose description.
  • QC States: (Premium Feature/Available in Standard assays) Check to enable defining and using assay QC states for this assay design.

Editing Settings

By default, assay data cannot be edited after import into LabKey Server. It's often the case that the instrument generates the final, authoritative form of the data, which should not be changed after the fact. In cases where you want to allow authorized users to change assay run information or result data after import to the server, you can use these settings:

  • Editable Runs: If enabled, users with sufficient permissions can edit values at the run level after the initial import is complete. These changes will be audited.
  • Editable Results: If enabled, users with sufficient permissions can edit and delete at the individual results row level after the initial import is complete.
    • These changes will be audited.
    • Displaying the Created/CreatedBy/Modified/ModifiedBy fields in the grid view of results can help track any editing changes.
    • Note that new result rows cannot be added to existing runs.
Can Batch fields be edited? Yes, but only if you re-import a run. The import wizard allows you to update any batch fields.

Import Settings

  • Import in Background: If enabled, assay imports will be processed as jobs in the data pipeline. If there are any errors during import, they can be viewed from the log file for that job.

Transform Script Options (For Developers)

Users with the "Platform Developer" role (and Site Administrators) will have additional options in the Import Settings section for using transform scripts with their assay designs. Transform scripts run before the assay data is imported and can reshape the data file to match the expected import format. Learn more in this topic: Transform Scripts.

  • Transform Scripts:
    • Click Add Script to either directly upload a script file (via select or drag and drop) to the "@scripts" subdirectory of the file root, or you can also enter the full path to the transform script file located elsewhere.
    • For each script, you can select whether it is run on import, on edit, or both.
    • Multiple scripts can be attached to an assay design. They will run in the order specified.
    • Disassociate a script from an assay using > Remove Path; this does not delete the file.
    • Use Manage Script Files to access the "@scripts" location where you can delete or update script files.
  • Save Script Data for Debugging: Typically transform and validation data files are deleted on script completion. For debug purposes, it can be helpful to be able to view the files generated by the server that are passed to the script. If this checkbox is checked, files will be saved to a subfolder named: "TransformAndValidationFiles", located in under the file root of the folder.

Link to Study Settings

  • Auto-link Data to Study: If a target study is selected, then when new runs are imported, data rows are automatically linked to the specified target study (if they include subject and visit/date information). Learn more here: Link Assay Data into a Study
  • Linked Dataset Category: Specify the desired category for the Assay Dataset that will be created (or appended to) in the target study when rows are linked. Learn more here: Manage Categories.

Batch Fields

The user is prompted for batch properties once for each set of runs during import. The batch is a convenience to let users set properties once and import many runs using the same suite of properties. Typically, batch properties are properties that rarely change. Default properties:

  • Participant Visit Resolver This field records the method used to associate the assay with participant/visit pairs. The user chooses a method of association during the assay import process. See also Participant/Visit Resolver Field.
  • TargetStudy: An optional field that simplifies the link-to-study process.
    • When importing data, TargetStudy presents the user with a dropdown list of available studies. This list is generated dynamically, showing the Study folders the current user can read within the assay's scope (project or site, depending on server configuration).
    • To let users choose a different target study for each run, instead of one study for a whole batch, add "TargetStudy" as a Run field.
    • If no studies exist yet in scope, or the user lacks Read permission on them, the dropdown will be empty. This is expected: it does not mean data or configuration has been lost. Once a Study folder exists (or permissions are granted) within scope, it will appear in the list automatically.
    • "TargetStudy" is a reserved property name, handled differently than other properties: the server recognizes it specifically to drive the link-to-study workflow.
    • See Auto-Link Data to Study to apply a target study automatically on every import, without prompting the user.

Run Fields

Run properties are set once for all data records imported as part of a given run. An example run property might be the ID of the instrument or the operator performing the upload.

No default run properties are defined for Standard Assays.

Results Fields

Results fields (also can be called data properties) apply to individual rows within the imported run.

The pre-defined Results Fields fields for Standard Assays are:

  • SpecimenID
  • ParticipantID
  • VisitID
  • Date
These properties are used to associate assay data with other data from the same source material. For more, see Participant/Visit Resolver Field.

In addition, there are Created/CreatedBy/Modified/ModifiedBy fields built into most LabKey data structures, including Assay Results. Exposing these fields in a custom grid view can help track changes, particularly when Editable Results are enabled for the Assay Design.

Files and Attachments

Assay designs support associating a given row of data with a file using either a run field or results field of one of these types:

  • File: A field that creates a link to a file. The file will be stored in the file root on the server, and will be associated with an assay result.
  • Attachment: A field that will associate an image file with a row of data in a list.
These files might contain images or rectangular data. For example, to index microscopy files, you might create an assay design with metadata and descriptive fields (such as content, timing, staining) and then include an attachment file with the image.

Related Topics

For assay-specific properties and fields see the following pages:

Was this content helpful?

Log in or register an account to provide feedback


previousnext
 
expand allcollapse all