Apply Reagent Labels When Samples are Imported

When importing sample data into Clarity LIMS using a spreadsheet, you can specify the reagent labels to be applied during the import process. To do this, you must include the reagent label names in the spreadsheet, in a column named Sample/Reagent Label.

Prerequisites

Before you follow the example, make sure that you have the following items:

  • Reagent types that are configured in Clarity LIMS and are named index 1 through index 6.

  • Reagents of type index 1 through index 6 that have been added to Clarity LIMS.

  • A compatible version of API (v2 r14 to v2 r24).

Code Example

The following example spreadsheet would import six samples into the system. These samples are Sample-1 through Sample-6 with reagent labels Index 1 through Index 6:

<TABLE HEADER>

Sample/Name

Container/Type

Container/Name

Sample/Well Location

Sample/Reagent Label

</TABLE HEADER>

<SAMPLE ENTRIES>

Sample-1

96 well plate

labeled-samples

A:1

Index 1

Sample-2

96 well plate

labeled-samples

A:2

Index 2

Sample-3

96 well plate

labeled-samples

A:3

Index 3

Sample-4

96 well plate

labeled-samples

A:4

Index 4

Sample-5

96 well plate

labeled-samples

A:5

Index 5

Sample-6

96 well plate

labeled-samples

A:6

Index 6

</SAMPLE ENTRIES>

Although not mandatory, it is recommended that you name reagent labels after reagent types using the Index special type. This allows you to relate the reagent label back to its sequence.

Verify with the REST API

If you examine the REST API representation of the samples imported, you are able to verify the following:

  • The sample representation shows no indication that reagent labels were applied.

  • The sample artifact (the analyte artifact linked from the sample representation) will indicate the label applied via the <reagent-label> element.

The following example shows how an imported sample artifact (Sample-1), with reagent label name applied (Index 1), appears when verified via the REST API:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<art:artifact xmlns:udf="http://genologics.com/ri/userdefined"
    xmlns:file="http://genologics.com/ri/file" xmlns:art="http://genologics.com/ri/artifact"
    uri="http://yourIPaddress/api/v2/artifacts/RCY1A97PA1?state=301" limsid="RCY1A97PA1">
    <name>Sample-1</name>
    <type>Analyte</type>
    <output-type>Analyte</output-type>
    <qc-flag>UNKNOWN</qc-flag>
    <location>
        <container uri="http://yourIPaddress/api/v2/containers/27-12" limsid="27-12" />
        <value>A:1</value>
    </location>
    <working-flag>true</working-flag>
    <sample uri="http://yourIPaddress/api/v2/samples/RCY1A97" limsid="RCY1A97" />
    <reagent-label name="Index 1" />
</art:artifact>

Last updated