# RNA Initial QC 5.1.2

## Overview

The initial RNA QC protocol contains steps to track quality control data from commonly used QC instruments. Through data integrations, QC data can be added to Clarity LIMS directly from the instrument outputs.

Highlights of this protocol include:

* Data integrations for Bioanalyzer 2100, Nanodrop 8000, CaliperGX, and Tapestation 2200, including creation of the input file and parsing of data output.
* Assignment of pass/fail QC based on chosen criteria.
* Aggregation of data from multiple QC steps.

## Protocol 1: RNA Initial QC 5.1.2

* Protocol Type = QC
* Capacity = 50
* QC Filters
  * Bioanalyzer QC (RNA) 5.1.2
    * Did not pass - Bioanalyzer QC (RNA) 5.1.2
  * NanoDrop QC (RNA) 5.1.2
    * Did not pass - NanoDrop QC (RNA) 5.1.2
  * Qubit QC (RNA) 5.1.2
    * Did not pass - Qubit QC (RNA) 5.1.2
  * PicoGreen QC (RNA) 5.1.2
    * Did not pass - PicoGreen QC (RNA) 5.1.2
  * CaliperGX QC 5.1.2
    * Did not pass - CaliperGX QC 5.1.2
  * Tapestation QC (RNA) 5.1.2
    * Did not pass - Tapestation QC (RNA) 5.1.2
  * Aggregate QC (RNA) 5.1.2
    * Passed - Bioanalyzer QC (RNA) 5.1.2 OR
    * Passed - NanoDrop QC (RNA) 5.1.2 OR
    * Passed - Qubit QC (RNA) 5.1.2 OR
    * Passed - PicoGreen QC (RNA) 5.1.2 OR
    * Passed - CaliperGX QC 5.1.2 OR
    * Passed - Tapestation QC (RNA) 5.1.2

### Step: Bioanalyzer QC (RNA) 5.1.2

* Master Step Name = Bioanalyzer QC (RNA) 5.1.2
* Step Type = Standard QC
* Measurement Generation = Fixed, 1
* Naming Convention = {InputItemName} Bioanalyzer

#### Automations

<figure><img src="https://2084401275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfjuebS41N49G1Eh55hP7%2Fuploads%2Fgit-blob-82844f4c631d875465abbe21e37817c3421c4f24%2Fqc-rna-bio-automation.png?alt=media" alt=""><figcaption></figcaption></figure>

<details>

<summary>Generate Bioanalyzer driver file</summary>

* Trigger Location = Record Details
* Trigger Style = Automatic upon entry

{% code overflow="wrap" %}

```markup
bash -l -c "/opt/gls/clarity/bin/java -jar /opt/gls/clarity/extensions/ngs-common/v5/EPP/DriverFileGenerator.jar -u {username} -p {password} \
      script:driver_file_generator \
        -i {processURI:v2} \
        -t /opt/gls/clarity/extensions/ngs-common/v5/EPP/conf/readonly/bioA_driver_file_template.csv \
        -o {compoundOutputFileLuid0}.csv \
        -l {compoundOutputFileLuid1} \
      && /opt/gls/clarity/bin/java -jar /opt/gls/clarity/extensions/ngs-common/v5/EPP/ngs-extensions.jar -u {username} -p {password} \
      script:addBlankLines \
        -i {stepURI:v2} \
        -f {compoundOutputFileLuid0}.csv \
        -l {compoundOutputFileLuid1} \
        -sep COMMA \
        -b ',False,' \
        -h 1 \
        -c LIMSID \
        -pre 'Sample '"
```

{% endcode %}

</details>

<details>

<summary>Parse Bioanalyzer XML and assign QC flags</summary>

* Trigger Location = Record Details
* Trigger Style = Manual button

{% code overflow="wrap" %}

```markup
bash -l -c "/opt/gls/clarity/bin/java -jar /opt/gls/clarity/extensions/ngs-common/v5/EPP/ngs-extensions.jar -u {username} -p {password} -i {processURI:v2} \
      script:parseBioAnalyzer \
        -inputFile {compoundOutputFileLuid2} \
        -log {compoundOutputFileLuid5} \
        -configFile '/opt/gls/clarity/extensions/conf/v5/bioanalyzer/defaultBioAnalyzerRNAConfig.groovy' \
      script:assignQC \
        -log {compoundOutputFileLuid6} \
        -qcResult {compoundOutputFileLuid7}"
```

{% endcode %}

</details>

#### Queue/Ice Bucket

* Defaults
  * Sample Grouping = Group by Projects
  * Well Sort Order = Row
* Sample Table
  * Column Headers

    | **Category**     | **Field Name** | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | ---------------- | -------------- | -------------- | ----------- | ----------------------------------------- |
    | Container        | Container Name | Built-in       |             |                                           |
    | Container        | Well           | Built-in       |             |                                           |
    | Derived Sample   | Sample Name    | Built-in       |             |                                           |
    | Derived Sample   | Waiting        | Built-in       |             |                                           |
    | Submitted Sample | Sample Type    | Text           |             |                                           |
  * Expanded View Fields

    | **Category**   | **Field Name** | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | -------------- | -------------- | -------------- | ----------- | ----------------------------------------- |
    | Derived Sample | Workflow       | Text           |             |                                           |
    | Project        | Project Name   | Built-in       |             |                                           |

#### Placement = Enabled

* Defaults
  * Sample Grouping = Group by Projects
  * Well Sort Order = Row
  * Placement Pattern = Column
* Destination Containers

  * BioAnalyzer RNA Nano Chip

  <figure><img src="https://2084401275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfjuebS41N49G1Eh55hP7%2Fuploads%2Fgit-blob-56666214efa3e62156effb432a13d993b10b588e%2Fbioanalyzer-rna-nano-chip-container.png?alt=media" alt=""><figcaption></figcaption></figure>

  \* BioAnalyzer RNA Pico Chip

  <figure><img src="https://2084401275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfjuebS41N49G1Eh55hP7%2Fuploads%2Fgit-blob-77f87d6692bbbac4c56caf18e3f38b88f63cf2d9%2Fbioanalyzer-rna-pico-chip-container.png?alt=media" alt=""><figcaption></figcaption></figure>

#### Record Details

* Step Data
  * Step Data Heading = Begin by uploading the required Bioanalyzer XML result file
  * Master Step Fields

    | **Field Name**                              | **Field Type** | **Options** | **Additional Options and Dropdown Items**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
    | ------------------------------------------- | -------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
    | Criteria 1 - Operator                       | Text Dropdown  |             | <p>Presets</p><ul><li>>=</li><li><=</li><li>=</li><li>!=</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
    | Criteria 1 - Source Data Field              | Text Dropdown  |             | <p>Presets</p><ul><li>Concentration</li><li>Conc. Units</li><li>RIN</li><li>RNA Area</li><li>28s/18s ratio</li><li>Number of Peaks found</li><li>Peak 1 Size - bp</li><li>Peak 1 Conc.</li><li>Peak 1 Molarity</li><li>Peak 2 Size - bp</li><li>Peak 2 Conc.</li><li>Peak 2 Molarity</li><li>Peak 3 Size - bp</li><li>Peak 3 Conc.</li><li>Peak 3 Molarity</li><li>Peak 4 Size - bp</li><li>Peak 4 Conc.</li><li>Peak 4 Molarity</li><li>Peak 5 Size - bp</li><li>Peak 5 Conc.</li><li>Peak 5 Molarity</li><li>Number of Regions found</li><li>Region 1 Average Size - bp</li><li>Region 1 Conc.</li><li>Region 1 Molarity</li><li>Region 2 Average Size - bp</li><li>Region 2 Conc.</li><li>Region 2 Molarity</li><li>Region 3 Average Size - bp</li><li>Region 3 Conc.</li><li>Region 3 Molarity</li><li>Region 4 Average Size - bp</li><li>Region 4 Conc.</li><li>Region 4 Molarity</li><li>Region 5 Average Size - bp</li><li>Region 5 Conc.</li><li>Region 5 Molarity</li></ul> |
    | Criteria 1 - Threshold Value                | Numeric        |             | Decimal Places Displayed = 2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
    | Criteria 2 - Operator                       | Text Dropdown  |             | <p>Presets</p><ul><li>>=</li><li><=</li><li>=</li><li>!=</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
    | Criteria 2 - Source Data Field              | Text Dropdown  |             | <p>Presets</p><ul><li>Concentration</li><li>Conc. Units</li><li>RIN</li><li>RNA Area</li><li>28s/18s ratio</li><li>Number of Peaks found</li><li>Peak 1 Size - bp</li><li>Peak 1 Conc.</li><li>Peak 1 Molarity</li><li>Peak 2 Size - bp</li><li>Peak 2 Conc.</li><li>Peak 2 Molarity</li><li>Peak 3 Size - bp</li><li>Peak 3 Conc.</li><li>Peak 3 Molarity</li><li>Peak 4 Size - bp</li><li>Peak 4 Conc.</li><li>Peak 4 Molarity</li><li>Peak 5 Size - bp</li><li>Peak 5 Conc.</li><li>Peak 5 Molarity</li><li>Number of Regions found</li><li>Region 1 Average Size - bp</li><li>Region 1 Conc.</li><li>Region 1 Molarity</li><li>Region 2 Average Size - bp</li><li>Region 2 Conc.</li><li>Region 2 Molarity</li><li>Region 3 Average Size - bp</li><li>Region 3 Conc.</li><li>Region 3 Molarity</li><li>Region 4 Average Size - bp</li><li>Region 4 Conc.</li><li>Region 4 Molarity</li><li>Region 5 Average Size - bp</li><li>Region 5 Conc.</li><li>Region 5 Molarity</li></ul> |
    | Criteria 2 - Threshold Value                | Numeric        |             | Decimal Places Displayed = 2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
    | Use strict matching for Bioanalyzer results | Toggle Switch  |             | Default = None Set                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
* Step File Placeholders
  * Bioanalyzer Driver File - Automatically attached
  * Bioanalyzer Driver File Generation Log File - Automatically attached
  * Bioanalyzer XML Result File (required) - Manually uploaded
  * Result File (optional) - Manually uploaded
  * PDF Summary File (optional) - Manually uploaded
  * Bioanalyzer XML Parsing Log File - Automatically attached
  * QC Assignment Log File - Automatically attached
  * QC Assignment Report - Automatically attached
* Sample Table
  * Enable QC Flags = Yes
  * Sample Display Default = Collapse
  * Well Sort Order = Row
  * File Column Options
    * File Column Display = Hide
    * File Attachment Method = Auto
  * Table Columns - Global Fields

    | **Category**   | **Field Name**             | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | -------------- | -------------------------- | -------------- | ----------- | ----------------------------------------- |
    | Container      | Container Name             | Built-in       |             |                                           |
    | Container      | Well                       | Built-in       |             |                                           |
    | Derived Sample | Sample Name                | Built-in       |             |                                           |
    | Measurement    | 28s/18s ratio              | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | BA Sample Name             | Text           |             |                                           |
    | Measurement    | Concentration              | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Conc. Units                | Text           |             |                                           |
    | Measurement    | Number of Peaks found      | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Number of Regions found    | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Peak 1 Conc.               | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 1 Molarity            | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 1 Size - bp           | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Peak 2 Conc.               | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 2 Molarity            | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 2 Size - bp           | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Peak 3 Conc.               | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 3 Molarity            | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 3 Size - bp           | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Peak 4 Conc.               | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 4 Molarity            | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 4 Size - bp           | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Peak 5 Conc.               | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 5 Molarity            | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 5 Size - bp           | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 1 Average Size - bp | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Region 1 Conc.             | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 1 Molarity          | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 2 Average Size - bp | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Region 2 Conc.             | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 2 Molarity          | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 3 Average Size - bp | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Region 3 Conc.             | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 3 Molarity          | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 4 Average Size - bp | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Region 4 Conc.             | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 4 Molarity          | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 5 Average Size - bp | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Region 5 Conc.             | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 5 Molarity          | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | RIN                        | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | RNA Area                   | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Sample Comment             | Text           |             |                                           |
    | Project        | Project Name               | Built-in       |             |                                           |

### Step: NanoDrop QC (RNA) 5.1.2

* Master Step Name = NanoDrop QC (RNA) 5.1.2
* Step Type = Standard QC
* Measurement Generation = Fixed, 1
* Naming Convention = {InputItemName} NanoDrop

#### Automations

<figure><img src="https://2084401275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfjuebS41N49G1Eh55hP7%2Fuploads%2Fgit-blob-f400c7704756b0debc1155bfd108a9004ef2bd54%2Fqc-rna-nano-automation.png?alt=media" alt=""><figcaption></figcaption></figure>

<details>

<summary>Generate NanoDrop driver file</summary>

* Trigger Location = Record Details
* Trigger Style = Automatic upon entry

{% code overflow="wrap" %}

```markup
bash -l -c "/opt/gls/clarity/bin/java -jar /opt/gls/clarity/extensions/ngs-common/v5/EPP/DriverFileGenerator.jar -u {username} -p {password} \
      script:driver_file_generator \
        -i {processURI:v2} \
        -t /opt/gls/clarity/extensions/ngs-common/v5/EPP/conf/readonly/nd_driver_file_template.csv \
        -o {compoundOutputFileLuid0}.csv \
        -l {compoundOutputFileLuid1}"
```

{% endcode %}

</details>

<details>

<summary>Parse NanoDrop NDT and assign QC flags</summary>

* Trigger Location = Record Details
* Trigger Style = Manual button

{% code overflow="wrap" %}

```markup
bash -l -c "/opt/gls/clarity/bin/java -jar /opt/gls/clarity/extensions/ngs-common/v5/EPP/ngs-extensions.jar -u {username} -p {password} -i {processURI:v2} \
      script:parseCSV \
        -inputFile {compoundOutputFileLuid2} \
        -log {compoundOutputFileLuid3} \
        -headerRow '2' \
        -separator 'TAB' \
        -sampleLocation 'Sample ID' \
        -measurementUDFMap 'Concentration::ng/ul' \
        -measurementUDFMap 'A260/280 ratio::260/280' \
        -measurementUDFMap 'A260/230 ratio::260/230' \
        -measurementUDFMap 'A260::260' \
        -relaxed 'true' \
      script:assignQC \
        -log {compoundOutputFileLuid4} \
        -qcResult {compoundOutputFileLuid5}"
```

{% endcode %}

</details>

#### Queue/Ice Bucket

* Defaults
  * Sample Grouping = Group by Projects
  * Well Sort Order = Row
* Sample Table
  * Column Headers

    | **Category**     | **Field Name** | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | ---------------- | -------------- | -------------- | ----------- | ----------------------------------------- |
    | Container        | Container Name | Built-in       |             |                                           |
    | Container        | Well           | Built-in       |             |                                           |
    | Derived Sample   | Sample Name    | Built-in       |             |                                           |
    | Derived Sample   | Waiting        | Built-in       |             |                                           |
    | Submitted Sample | Sample Type    | Text           |             |                                           |
  * Expanded View Fields

    | **Category**   | **Field Name** | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | -------------- | -------------- | -------------- | ----------- | ----------------------------------------- |
    | Derived Sample | Workflow       | Text           |             |                                           |
    | Project        | Project Name   | Built-in       |             |                                           |

#### Record Details

* Step Data
  * Step Data Heading = Begin by uploading the required NanoDrop NDT result file
  * Master Step Fields

    | **Field Name**                 | **Field Type** | **Options** | **Additional Options and Dropdown Items**                                                                                    |
    | ------------------------------ | -------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------- |
    | Criteria 1 - Operator          | Text Dropdown  |             | <p>Presets</p><ul><li>>=</li><li><=</li><li>=</li><li>!=</li></ul>                                                           |
    | Criteria 1 - Source Data Field | Text Dropdown  |             | <p>Presets</p><ul><li>Concentration</li><li>Conc. Units</li><li>A260</li><li>A260/280 ratio</li><li>A260/230 ratio</li></ul> |
    | Criteria 1 - Threshold Value   | Numeric        |             | Decimal Places Displayed = 2                                                                                                 |
    | Criteria 2 - Operator          | Text Dropdown  |             | <p>Presets</p><ul><li>>=</li><li><=</li><li>=</li><li>!=</li></ul>                                                           |
    | Criteria 2 - Source Data Field | Text Dropdown  |             | <p>Presets</p><ul><li>Concentration</li><li>Conc. Units</li><li>A260</li><li>A260/280 ratio</li><li>A260/230 ratio</li></ul> |
    | Criteria 2 - Threshold Value   | Numeric        |             | Decimal Places Displayed = 2                                                                                                 |
* Step File Placeholders
  * NanoDrop Driver File - Automatically attached
  * NanoDrop Driver File Generation Log File - Automatically attached
  * NanoDrop NDT Result File (required) - Manually uploaded
  * NanoDrop NDT Parsing Log File - Automatically attached
  * QC Assignment Log File - Automatically attached
  * QC Assignment Report - Automatically attached
* Sample Table
  * Enable QC Flags = Yes
  * Sample Display Default = Collapse
  * Well Sort Order = Row
  * File Column Options
    * File Column Display = Hide
    * File Attachment Method = Auto
  * Table Columns - Global Fields

    | **Category**   | **Field Name** | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | -------------- | -------------- | -------------- | ----------- | ----------------------------------------- |
    | Container      | Container Name | Built-in       |             |                                           |
    | Container      | Well           | Built-in       |             |                                           |
    | Derived Sample | Sample Name    | Built-in       |             |                                           |
    | Measurement    | A260           | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | A260/230 ratio | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | A260/280 ratio | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Concentration  | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Conc. Units    | Text           |             |                                           |
    | Project        | Project Name   | Built-in       |             |                                           |

### Step: Qubit QC (RNA) 5.1.2

* Master Step Name = Qubit QC (RNA) 5.1.2
* Step Type = Standard QC
* Measurement Generation = Fixed, 1
* Naming Convention = {InputItemName} Qubit

#### Automations

<figure><img src="https://2084401275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfjuebS41N49G1Eh55hP7%2Fuploads%2Fgit-blob-a03054e40c122c7cc557ab6f929eba00602bad63%2Fqc-rna-qubit-automation.png?alt=media" alt=""><figcaption></figcaption></figure>

<details>

<summary>Assign QC flags</summary>

* Trigger Location = Record Details
* Trigger Style = Manual button

{% code overflow="wrap" %}

```markup
bash -l -c "/opt/gls/clarity/bin/java -jar /opt/gls/clarity/extensions/ngs-common/v5/EPP/ngs-extensions.jar -u {username} -p {password} \
      script:assignQC \
        -i {processURI:v2} \
        -log {compoundOutputFileLuid1} \
        -qcResult {compoundOutputFileLuid2}"
```

{% endcode %}

</details>

#### Queue/Ice Bucket

* Defaults
  * Sample Grouping = Group by Projects
  * Well Sort Order = Row
* Sample Table
  * Column Headers

    | **Category**     | **Field Name** | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | ---------------- | -------------- | -------------- | ----------- | ----------------------------------------- |
    | Container        | Container Name | Built-in       |             |                                           |
    | Container        | Well           | Built-in       |             |                                           |
    | Derived Sample   | Sample Name    | Built-in       |             |                                           |
    | Derived Sample   | Waiting        | Built-in       |             |                                           |
    | Submitted Sample | Sample Type    | Text           |             |                                           |
  * Expanded View Fields

    | **Category**   | **Field Name** | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | -------------- | -------------- | -------------- | ----------- | ----------------------------------------- |
    | Derived Sample | Workflow       | Text           |             |                                           |
    | Project        | Project Name   | Built-in       |             |                                           |

#### Record Details

* Step Data
  * Step Data Heading = Begin by completing the Sample Details table
  * Master Step Fields

    | **Field Name**                 | **Field Type** | **Options** | **Additional Options and Dropdown Items**                          |
    | ------------------------------ | -------------- | ----------- | ------------------------------------------------------------------ |
    | Criteria 1 - Operator          | Text Dropdown  |             | <p>Presets</p><ul><li>>=</li><li><=</li><li>=</li><li>!=</li></ul> |
    | Criteria 1 - Source Data Field | Text Dropdown  |             | <p>Presets</p><ul><li>Concentration</li><li>Conc. Units</li></ul>  |
    | Criteria 1 - Threshold Value   | Numeric        |             | Decimal Places Displayed = 2                                       |
    | Criteria 2 - Operator          | Text Dropdown  |             | <p>Presets</p><ul><li>>=</li><li><=</li><li>=</li><li>!=</li></ul> |
    | Criteria 2 - Source Data Field | Text Dropdown  |             | <p>Presets</p><ul><li>Concentration</li><li>Conc. Units</li></ul>  |
    | Criteria 2 - Threshold Value   | Numeric        |             | Decimal Places Displayed = 2                                       |
* Step File Placeholders
  * Qubit Result File - Manually uploaded
  * QC Assignment Log File - Automatically attached
  * QC Assignment Report - Automatically attached
* Sample Table
  * Enable QC Flags = Yes
  * Sample Display Default = Collapse
  * Well Sort Order = Row
  * File Column Options
    * File Column Display = Hide
    * File Attachment Method = Auto
  * Table Columns - Global Fields

    | **Category**   | **Field Name** | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | -------------- | -------------- | -------------- | ----------- | ----------------------------------------- |
    | Container      | Container Name | Built-in       |             |                                           |
    | Container      | Well           | Built-in       |             |                                           |
    | Derived Sample | Sample Name    | Built-in       |             |                                           |
    | Measurement    | Concentration  | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Conc. Units    | Text           |             |                                           |
    | Project        | Project Name   | Built-in       |             |                                           |

### Step: PicoGreen QC (RNA) 5.1.2

* Master Step Name = PicoGreen QC (RNA) 5.1.2
* Step Type = Standard QC
* Measurement Generation = Fixed, 1
* Naming Convention = {InputItemName} PicoGreen

#### Automations

<figure><img src="https://2084401275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfjuebS41N49G1Eh55hP7%2Fuploads%2Fgit-blob-25846325bbad71c900022094a56a8757f0583f96%2Fqc-rna-pico-automation.png?alt=media" alt=""><figcaption></figcaption></figure>

<details>

<summary>Assign QC flags</summary>

* Trigger Location = Record Details
* Trigger Style = Manual button

{% code overflow="wrap" %}

```markup
bash -l -c "/opt/gls/clarity/bin/java -jar /opt/gls/clarity/extensions/ngs-common/v5/EPP/ngs-extensions.jar -u {username} -p {password} \
      script:assignQC \
        -i {processURI:v2} \
        -log {compoundOutputFileLuid1} \
        -qcResult {compoundOutputFileLuid2}"
```

{% endcode %}

</details>

#### Queue/Ice Bucket

* Defaults
  * Sample Grouping = Group by Containers
  * Well Sort Order = Row
* Sample Table
  * Column Headers

    | **Category**     | **Field Name** | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | ---------------- | -------------- | -------------- | ----------- | ----------------------------------------- |
    | Container        | Container Name | Built-in       |             |                                           |
    | Container        | Well           | Built-in       |             |                                           |
    | Derived Sample   | Sample Name    | Built-in       |             |                                           |
    | Derived Sample   | Waiting        | Built-in       |             |                                           |
    | Submitted Sample | Sample Type    | Text           |             |                                           |
  * Expanded View Fields

    | **Category**   | **Field Name** | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | -------------- | -------------- | -------------- | ----------- | ----------------------------------------- |
    | Derived Sample | Workflow       | Text           |             |                                           |
    | Project        | Project Name   | Built-in       |             |                                           |

#### Placement = Enabled

* Defaults
  * Sample Grouping = Group by Projects
  * Well Sort Order = Row
  * Placement Pattern = Column
* Destination Containers
  * Tube
  * 96 well plate

#### Record Details

* Step Data
  * Step Data Heading = Begin by completing the Sample Details table
  * Master Step Fields

    | **Field Name**                 | **Field Type** | **Options** | **Additional Options and Dropdown Items**                          |
    | ------------------------------ | -------------- | ----------- | ------------------------------------------------------------------ |
    | Criteria 1 - Operator          | Text Dropdown  |             | <p>Presets</p><ul><li>>=</li><li><=</li><li>=</li><li>!=</li></ul> |
    | Criteria 1 - Source Data Field | Text Dropdown  |             | <p>Presets</p><ul><li>Concentration</li><li>Conc. Units</li></ul>  |
    | Criteria 1 - Threshold Value   | Numeric        |             | Decimal Places Displayed = 2                                       |
    | Criteria 2 - Operator          | Text Dropdown  |             | <p>Presets</p><ul><li>>=</li><li><=</li><li>=</li><li>!=</li></ul> |
    | Criteria 2 - Source Data Field | Text Dropdown  |             | <p>Presets</p><ul><li>Concentration</li><li>Conc. Units</li></ul>  |
    | Criteria 2 - Threshold Value   | Numeric        |             | Decimal Places Displayed = 2                                       |
* Step File Placeholders
  * PicoGreen Result File - Manually uploaded
  * QC Assignment Log File - Automatically attached
  * QC Assignment Report - Automatically attached
* Sample Table
  * Enable QC Flags = Yes
  * Sample Display Default = Collapse
  * Well Sort Order = Row
  * File Column Options
    * File Column Display = Hide
    * File Attachment Method = Auto
  * Table Columns - Global Fields

    | **Category**   | **Field Name** | **Field Type** | **Options**    | **Additional Options and Dropdown Items** |
    | -------------- | -------------- | -------------- | -------------- | ----------------------------------------- |
    | Container      | Container Name | Built-in       |                |                                           |
    | Container      | Well           | Built-in       |                |                                           |
    | Derived Sample | Sample Name    | Built-in       |                |                                           |
    | Derived Sample | Concentration  | Numeric        | Required Field | Decimal Places Displayed = 2              |
    | Derived Sample | Conc. Units    | Text           | Required Field |                                           |
    | Measurement    | Concentration  | Numeric        |                | Decimal Places Displayed = 2              |
    | Measurement    | Conc. Units    | Text           |                |                                           |
    | Project        | Project Name   | Built-in       |                |                                           |

### Step: CaliperGX QC 5.1.2

* Master Step Name = CaliperGX QC 5.1.2
* Step Type = Standard QC
* Measurement Generation = Fixed, 1
* Naming Convention = {InputItemName} CaliperGX

#### Automations

<figure><img src="https://2084401275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfjuebS41N49G1Eh55hP7%2Fuploads%2Fgit-blob-918e004f7d16a8b86a49afb7b1b96b3a93f799f8%2Fqc-rna-caliper-automation.png?alt=media" alt=""><figcaption></figcaption></figure>

<details>

<summary>Generate Driver File</summary>

* Trigger Location = Record Details
* Trigger Style = Automatic upon entry

{% code overflow="wrap" %}

```markup
bash -l -c "/opt/gls/clarity/bin/java -jar /opt/gls/clarity/extensions/ngs-common/v5/EPP/DriverFileGenerator.jar -u {username} -p {password} \
      script:driver_file_generator \
        -i {processURI:v2} \
        -t /opt/gls/clarity/extensions/ngs-common/v5/EPP/conf/readonly/caliperGX_driver_file_template.csv \
        -o {compoundOutputFileLuid0}.csv \
        -l {compoundOutputFileLuid1}"
```

{% endcode %}

</details>

<details>

<summary>Parse CaliperGX CSV</summary>

* Trigger Location = Record Details
* Trigger Style = Manual button

{% code overflow="wrap" %}

```markup
bash -l -c "/opt/gls/clarity/bin/java -jar /opt/gls/clarity/extensions/ngs-common/v5/EPP/ngs-extensions.jar -u {username} -p {password} -i {processURI:v2} \
      script:parseCSV \
        -inputFile {compoundOutputFileLuid2} \
        -log {compoundOutputFileLuid3} \
        -headerRow '1' \
        -separator 'comma' \
        -containerName 'Plate Name' \
        -wellPosition 'Well Label' \
        -measurementUDFMap 'Concentration::Region[100-1000] Conc. (ng/ul)' \
        -measurementUDFMap 'Size (bp)::Region[100-1000] Size at Maximum [BP]' \
        -relaxed 'true' \
        -matchOutput 'true' \
      script:assignQC \
        -log {compoundOutputFileLuid4} \
        -qcResult {compoundOutputFileLuid5}"
```

{% endcode %}

</details>

#### Queue/Ice Bucket

* Defaults
  * Sample Grouping = Group by Projects
  * Well Sort Order = Row
* Sample Table
  * Column Headers

    | **Category**   | **Field Name** | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | -------------- | -------------- | -------------- | ----------- | ----------------------------------------- |
    | Container      | Container Name | Built-in       |             |                                           |
    | Container      | Well           | Built-in       |             |                                           |
    | Derived Sample | Sample Name    | Built-in       |             |                                           |
    | Derived Sample | Waiting        | Built-in       |             |                                           |
  * Expanded View Fields

    | **Category** | **Field Name**      | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | ------------ | ------------------- | -------------- | ----------- | ----------------------------------------- |
    | Container    | LIMS ID (Container) | Built-in       |             |                                           |
    | Project      | Project Name        | Built-in       |             |                                           |

#### Placement = Enabled

* Defaults
  * Sample Grouping = Group by Projects
  * Well Sort Order = Row
  * Placement Pattern = Column
* Destination Containers
  * 384 well plate
  * 96 well plate

#### Record Details

**Group of Defaults**

<details>

<summary>Caliper Defaults</summary>

* Criteria 1 - Operator = >=
* Criteria 1 - Source Data Field = Concentration
* Criteria 1 - Threshold Value = 0
* Criteria 2 - Operator = >=
* Criteria 2 - Source Data Field = Size (bp)
* Criteria 2 - Threshold Value = 300

</details>

* Step Data
  * Group of Defaults = Caliper Defaults
  * Master Step Fields

    | **Field Name**                 | **Field Type** | **Options**    | **Additional Options and Dropdown Items**                          |
    | ------------------------------ | -------------- | -------------- | ------------------------------------------------------------------ |
    | Criteria 1 - Operator          | Text Dropdown  | Custom Entries | <p>Presets</p><ul><li>>=</li><li><=</li><li>=</li><li>!=</li></ul> |
    | Criteria 1 - Source Data Field | Text Dropdown  | Custom Entries | <p>Presets</p><ul><li>Concentration</li></ul>                      |
    | Criteria 1 - Threshold Value   | Numeric        |                | Decimal Places Displayed = 0                                       |
    | Criteria 2 - Operator          | Text Dropdown  | Custom Entries | <p>Presets</p><ul><li>>=</li><li><=</li><li>=</li><li>!=</li></ul> |
    | Criteria 2 - Source Data Field | Text Dropdown  | Custom Entries | <p>Presets</p><ul><li>Size (bp)</li></ul>                          |
    | Criteria 2 - Threshold Value   | Numeric        |                | Decimal Places Displayed = 0                                       |
* Step File Placeholders
  * Driver File - Automatically attached
  * Driver File Log - Automatically attached
  * CaliperGX WellTable (required) - Manually uploaded
  * CaliperGX Parsing Log File - Automatically attached
  * QC Assignment Log File - Automatically attached
  * QC Assignment Report - Automatically attached
* Sample Table
  * Enable QC Flags = Yes
  * Sample Display Default = Collapse
  * Well Sort Order = Row
  * File Column Options
    * File Column Display = Hide
    * File Attachment Method = Auto
  * Table Columns - Global Fields

    | **Category**   | **Field Name**      | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | -------------- | ------------------- | -------------- | ----------- | ----------------------------------------- |
    | Container      | Container Name      | Built-in       |             |                                           |
    | Container      | LIMS ID (Container) | Built-in       |             |                                           |
    | Container      | Well                | Built-in       |             |                                           |
    | Derived Sample | Sample Name         | Built-in       |             |                                           |
    | Measurement    | Concentration       | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Size (bp)           | Numeric        |             | Decimal Places Displayed = 0              |
    | Project        | Project Name        | Built-in       |             |                                           |

### Step: Tapestation QC (RNA) 5.1.2

* Master Step Name = Tapestation QC (RNA) 5.1.2
* Step Type = Standard QC
* Measurement Generation = Fixed, 1
* Naming Convention = {InputItemName} Tapestation

#### Automations

<figure><img src="https://2084401275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfjuebS41N49G1Eh55hP7%2Fuploads%2Fgit-blob-a6fedcba7b47843d6f71144fe231231ea875fb27%2Fqc-rna-tape-automation.png?alt=media" alt=""><figcaption></figcaption></figure>

<details>

<summary>Generate Tapestation Input Sampletable CSV</summary>

* Trigger Location = Record Details
* Trigger Style = Automatic upon entry

{% code overflow="wrap" %}

```markup
bash -l -c "/opt/gls/clarity/bin/java -jar /opt/gls/clarity/extensions/ngs-common/v5/EPP/DriverFileGenerator.jar -u {username} -p {password} \
      script:driver_file_generator \
        -i {processURI:v2} \
        -t /opt/gls/clarity/extensions/ngs-common/v5/EPP/conf/readonly/tapestation_driver_file_template.csv \
        -o {compoundOutputFileLuid0}.csv \
        -l {compoundOutputFileLuid1}"
```

{% endcode %}

</details>

<details>

<summary>Parse Tapestation XML and assign QC flags</summary>

* Trigger Location = Record Details
* Trigger Style = Manual button

{% code overflow="wrap" %}

```markup
bash -l -c "/opt/gls/clarity/bin/java -jar /opt/gls/clarity/extensions/ngs-common/v5/EPP/XmlSampleNameParser.jar -u {username} -p {password} \
      script:parseXmlBySampleName \
        -i {processURI:v2} \
        -inputFile {compoundOutputFileLuid2} \
        -log {compoundOutputFileLuid3}.html \
        -configFile /opt/gls/clarity/extensions/conf/v5/tapestation/defaultTapeStationRNAConfig.groovy \
      && /opt/gls/clarity/bin/java -jar /opt/gls/clarity/extensions/ngs-common/v5/EPP/ngs-extensions.jar -u {username} -p {password} \
      script:assignQC \
        -i {processURI:v2} \
        -log {compoundOutputFileLuid4} \
        -qcResult {compoundOutputFileLuid5}"
```

{% endcode %}

</details>

#### Queue/Ice Bucket

* Defaults
  * Sample Grouping = Group by Projects
  * Well Sort Order = Row
* Sample Table
  * Column Headers

    | **Category**   | **Field Name** | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | -------------- | -------------- | -------------- | ----------- | ----------------------------------------- |
    | Container      | Container Name | Built-in       |             |                                           |
    | Container      | Well           | Built-in       |             |                                           |
    | Derived Sample | Sample Name    | Built-in       |             |                                           |
    | Derived Sample | Waiting        | Built-in       |             |                                           |
  * Expanded View Fields

    | **Category** | **Field Name**      | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | ------------ | ------------------- | -------------- | ----------- | ----------------------------------------- |
    | Container    | LIMS ID (Container) | Built-in       |             |                                           |
    | Project      | Project Name        | Built-in       |             |                                           |

#### Record Details

* Step Data (Master Step Fields)

  | **Field Name**                 | **Field Type** | **Options** | **Additional Options and Dropdown Items**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
  | ------------------------------ | -------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Criteria 1 - Operator          | Text Dropdown  |             | <ul><li><p>Presets</p><ul><li>>=</li><li><=</li><li>=</li><li>!=</li></ul></li><li>Default = >=</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
  | Criteria 1 - Source Data Field | Text Dropdown  |             | <ul><li><p>Presets</p><ul><li>Conc. Units</li><li>Concentration</li><li>Molarity Units</li><li>MW Units</li><li>Peak 1 % Integrated Area</li><li>Peak 1 Conc.</li><li>Peak 1 MW</li><li>Peak 2 % Integrated Area</li><li>Peak 2 Conc.</li><li>Peak 2 MW</li><li>Peak 3 % Integrated Area</li><li>Peak 3 Conc.</li><li>Peak 3 MW</li><li>Peak 4 % Integrated Area</li><li>Peak 4 Conc.</li><li>Peak 4 MW</li><li>Peak 5 % Integrated Area</li><li>Peak 5 Conc.</li><li>Peak 5 MW</li><li>Region 1 % of Total</li><li>Region 1 Average Size - bp</li><li>Region 1 Conc.</li><li>Region 1 Molarity</li><li>Region 2 % of Total</li><li>Region 2 Average Size - bp</li><li>Region 2 Conc.</li><li>Region 2 Molarity</li><li>Region 3 % of Total</li><li>Region 3 Average Size - bp</li><li>Region 3 Conc.</li><li>Region 3 Molarity</li><li>Region 4 % of Total</li><li>Region 4 Average Size - bp</li><li>Region 4 Conc.</li><li>Region 4 Molarity</li><li>Region 5 % of Total</li><li>Region 5 Average Size - bp</li><li>Region 5 Conc.</li><li>Region 5 Molarity</li></ul></li><li>Default = Conc. Units</li></ul>   |
  | Criteria 1 - Threshold Value   | Numeric        |             | <ul><li>Decimal Places Displayed = 0</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
  | Criteria 2 - Operator          | Text Dropdown  |             | <ul><li><p>Presets</p><ul><li>>=</li><li><=</li><li>=</li><li>!=</li></ul></li><li>Default = >=</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
  | Criteria 2 - Source Data Field | Text Dropdown  |             | <ul><li><p>Presets</p><ul><li>Concentration</li><li>Conc. Units</li><li>Peak 1 Conc.</li><li>Peak 2 Conc.</li><li>Peak 3 Conc.</li><li>Peak 4 Conc.</li><li>Peak 5 Conc.</li><li>Region 1 Average Size - bp</li><li>Region 1 Conc.</li><li>Region 1 Molarity</li><li>Region 2 Average Size - bp</li><li>Region 2 Conc.</li><li>Region 2 Molarity</li><li>Region 3 Average Size - bp</li><li>Region 3 Conc.</li><li>Region 3 Molarity</li><li>Region 4 Average Size - bp</li><li>Region 4 Conc.</li><li>Region 4 Molarity</li><li>Region 5 Average Size - bp</li><li>Region 5 Conc.</li><li>Region 5 Molarity</li><li>Region 1 % of Total</li><li>Region 2 % of Total</li><li>Region 3 % of Total</li><li>Region 4 % of Total</li><li>Region 5 % of Total</li><li>Peak 1 MW</li><li>Peak 2 MW</li><li>Peak 3 MW</li><li>Peak 4 MW</li><li>Peak 5 MW</li><li>Molarity Units</li><li>Peak 1 % Integrated Area</li><li>Peak 2 % Integrated Area</li><li>Peak 3 % Integrated Area</li><li>Peak 4 % Integrated Area</li><li>Peak 5 % Integrated Area</li><li>MW Units</li></ul></li><li>Default = Concentration</li></ul> |
  | Criteria 2 - Threshold Value   | Numeric        |             | <ul><li>Decimal Places Displayed = 0</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
* Step File Placeholders
  * TapeStation Input SampleTable - Automatically attached
  * Sample Table Generation Log - Automatically attached
  * Tapestation Output XML (required) - Manually uploaded
  * Tapestation XML Parsing Log - Automatically attached
  * QC Assignment Log - Automatically attached
  * QC Assignment Report - Automatically attached
* Sample Table
  * Enable QC Flags = Yes
  * Sample Display Default = Collapse
  * Well Sort Order = Row
  * File Column Options
    * File Column Display = Hide
    * File Attachment Method = Auto
  * Table Columns - Global Fields

    | **Category**   | **Field Name**             | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | -------------- | -------------------------- | -------------- | ----------- | ----------------------------------------- |
    | Container      | Container Name             | Built-in       |             |                                           |
    | Container      | LIMS ID (Container)        | Built-in       |             |                                           |
    | Container      | Well                       | Built-in       |             |                                           |
    | Derived Sample | Sample Name                | Built-in       |             |                                           |
    | Measurement    | 28s/18s ratio              | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Concentration              | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Conc. Units                | Text           |             |                                           |
    | Measurement    | Molarity Units             | Text           |             |                                           |
    | Measurement    | MW Units                   | Text           |             |                                           |
    | Measurement    | Peak 1 % Integrated Area   | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 1 Conc.               | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 1 MW                  | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Peak 2 % Integrated Area   | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 2 Conc.               | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 2 MW                  | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Peak 3 % Integrated Area   | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 3 Conc.               | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 3 MW                  | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Peak 4 % Integrated Area   | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 4 Conc.               | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 4 MW                  | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Peak 5 % Integrated Area   | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Peak 5 MW                  | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Peak 5 Conc.               | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 1 % of Total        | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 1 Average Size - bp | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Region 1 Conc.             | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 1 Molarity          | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 2 % of Total        | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 2 Average Size - bp | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Region 2 Conc.             | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 2 Molarity          | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 3 % of Total        | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 3 Average Size - bp | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Region 3 Conc.             | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 3 Molarity          | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 4 % of Total        | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 4 Average Size - bp | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Region 4 Conc.             | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 4 Molarity          | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 5 % of Total        | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 5 Average Size - bp | Numeric        |             | Decimal Places Displayed = 0              |
    | Measurement    | Region 5 Conc.             | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | Region 5 Molarity          | Numeric        |             | Decimal Places Displayed = 2              |
    | Measurement    | RIN                        | Numeric        |             | Decimal Places Displayed = 2              |
    | Project        | Project Name               | Built-in       |             |                                           |

### Step: Aggregate QC (RNA) 5.1.2

* Master Step Name = Aggregate QC (RNA) 5.1.2
* Step Type = No Outputs

#### Automations

<figure><img src="https://2084401275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfjuebS41N49G1Eh55hP7%2Fuploads%2Fgit-blob-546b69d8a17ac43dad74f83fa10c04272e9921da%2Fqc-rna-agg-automation.png?alt=media" alt=""><figcaption></figcaption></figure>

<details>

<summary>Aggregate QC Flags and Copy Fields</summary>

* Trigger Location = Record Details
* Trigger Style = Manual button

{% code overflow="wrap" %}

```markup
bash -l -c "/opt/gls/clarity/bin/java -jar /opt/gls/clarity/extensions/ngs-common/v5/EPP/ngs-extensions.jar -u {username} -p {password} \
      script:setUDF \
        -i {processURI:v2} \
        -f 'Progress' \
        -t '//input/@uri->//sample/@uri' \
        -v 'Initial sample QC complete' \
      script:aggregateQC \
        -i {stepURI:v2} \
        -c 'true' \
        -a 'true' \
        -log {compoundOutputFileLuid0} \
        -aggregatelog {compoundOutputFileLuid1} \
        -copylog {compoundOutputFileLuid2}"
```

{% endcode %}

</details>

#### Queue/Ice Bucket

* Defaults
  * Sample Grouping = Group by Projects
  * Well Sort Order = Row
* Sample Table
  * Column Headers

    | **Category**   | **Field Name** | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | -------------- | -------------- | -------------- | ----------- | ----------------------------------------- |
    | Container      | Well           | Built-in       |             |                                           |
    | Derived Sample | Sample Name    | Built-in       |             |                                           |
    | Derived Sample | Waiting        | Built-in       |             |                                           |
    | Derived Sample | Workflow       | Text           |             |                                           |
    | Project        | Project Name   | Built-in       |             |                                           |
  * Expanded View Fields

    | **Category** | **Field Name** | **Field Type** | **Options** | **Additional Options and Dropdown Items** |
    | ------------ | -------------- | -------------- | ----------- | ----------------------------------------- |
    | Container    | Container Name | Built-in       |             |                                           |

#### Record Details

**Group of Defaults**

<details>

<summary>CaliperGX Values</summary>

* Bioanalzyer QC (RNA) 5.1.2 = Use if available (Priority 5)
* CaliperGX QC 5.1.2 = Use if available (Priority 5)
* Copy task 1 - Source Field = Concentration
* Copy task 1 - Source Step = CaliperGX QC 5.1.2
* Copy task 2 - Source Field = Conc. Units
* Copy task 2 - Source Step = CaliperGX QC 5.1.2
* NanoDrop QC (RNA) 5.1.2 = Use if available (Priority 5)
* PicoGreen QC (RNA) 5.1.2 = Use if available (Priority 5)
* Qubit QC (RNA) 5.1.2 = Use if available (Priority 5)
* Tapestation QC (RNA) 5.1.2 = Use if available (Priority 5)

</details>

* Step Data
  * Step Data Heading = Begin by verifying copy tasks and aggregation priorities
  * Group of Defaults = CaliperGX Values
  * Master Step Fields

    | **Field Name**             | **Field Type** | **Options**    | **Additional Options and Dropdown Items**                                                                                                                                                                              |
    | -------------------------- | -------------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Copy task 1 - Source Field | Text Dropdown  |                | <p>Presets</p><ul><li>Concentration</li><li>Conc. Units</li></ul>                                                                                                                                                      |
    | Copy task 1 - Source Step  | Text Dropdown  |                | <p>Presets</p><ul><li>Bioanalyzer QC (RNA) 5.1.2</li><li>NanoDrop QC (RNA) 5.1.2</li><li>PicoGreen QC (RNA) 5.1.2</li><li>Qubit QC (RNA) 5.1.2</li><li>CaliperGX QC 5.1.2</li><li>Tapestation QC (RNA) 5.1.2</li></ul> |
    | Copy task 2 - Source Field | Text Dropdown  |                | <p>Presets</p><ul><li>Concentration</li><li>Conc. Units</li></ul>                                                                                                                                                      |
    | Copy task 2 - Source Step  | Text Dropdown  |                | <p>Presets</p><ul><li>Bioanalyzer QC (RNA) 5.1.2</li><li>NanoDrop QC (RNA) 5.1.2</li><li>PicoGreen QC (RNA) 5.1.2</li><li>Qubit QC (RNA) 5.1.2</li><li>CaliperGX QC 5.1.2</li><li>Tapestation QC (RNA) 5.1.2</li></ul> |
    | Copy task 3 - Source Field | Text Dropdown  |                | <p>Presets</p><ul><li>Concentration</li><li>Conc. Units</li><li>A260/280 ratio</li></ul>                                                                                                                               |
    | Copy task 3 - Source Step  | Text Dropdown  | Custom Entries | <p>Presets</p><ul><li>Bioanalyzer QC (RNA) 5.1.2</li><li>NanoDrop QC (RNA) 5.1.2</li><li>PicoGreen QC (RNA) 5.1.2</li><li>Qubit QC (RNA) 5.1.2</li><li>CaliperGX QC 5.1.2</li><li>Tapestation QC (RNA) 5.1.2</li></ul> |
* Step File Placeholders
  * Aggregation Script Log - Automatically attached
  * QC Flag Aggregation Log - Automatically attached
  * QC UDF Copy Log - Automatically attached
* Sample Table
  * Enable QC Flags = Yes
  * Sample Display Default = Collapse
  * Well Sort Order = Row
  * Table Columns - Global Fields

    | **Category**   | **Field Name** | **Field Type** | **Options**    | **Additional Options and Dropdown Items** |
    | -------------- | -------------- | -------------- | -------------- | ----------------------------------------- |
    | Container      | Container Name | Built-in       |                |                                           |
    | Container      | Well           | Built-in       |                |                                           |
    | Derived Sample | Concentration  | Numeric        | Required Field | Decimal Places Displayed = 2              |
    | Derived Sample | Conc. Units    | Text           | Required Field |                                           |
    | Derived Sample | Sample Name    | Built-in       |                |                                           |
    | Project        | Project Name   | Built-in       |                |                                           |
