# Label Non-Labeled Outputs

**Available from:** Clarity LIMS v2.0.5

A user may need to add reagent labels to sample outputs that do not have reagent labels assigned to them.

## Script Overview

The *labelNonLabeledOutputs* script provides the ability to add reagent labels to sample outputs for which there is no pre-existing reagent label.

The script checks each process output for existing reagent labels; if an output does not have at least one pre-existing reagent label then the label supplied as a script parameter is applied.

* For each output that does not already have a reagent label applied to it (e.g. control samples), the script will apply a reagent label named with the supplied string.
* In the Preconfigured Package for Illumina NGS, all sequencing libraries go through a demultiplex process to both convert data to FASTQ and demultiplex reads if necessary. Note that presently, inputs that do not have a reagent label do not create an output in a demultiplex process even though we need BCL convertor to convert their reads to FASTQ.

## Script Parameters

| **Parameter** | **Description**                                                    |
| ------------- | ------------------------------------------------------------------ |
| -u {username} | (Required) LIMS login username                                     |
| -p {password} | (Required) LIMS login password                                     |
| -i {URI}      | (Required) LIMS process URI (must have at least one sample output) |
| -l {name}     | (Required) Reagent label to be applied                             |

## Command Line Example

<details>

<summary>Example</summary>

{% code overflow="wrap" %}

```markup
java -jar ngs-extensions.jar script:labelNonLabeledOutputs -u admin -p pass -i http://localhost:8080/api/v1/processes/RCX-RCX-110315-24-3 -l "GENERIC_INDEX"
```

{% endcode %}

</details>

You may also find the following script useful: [Initialize Artifact UDFs](https://help.claritylims.illumina.com/instruments-and-integrations/ngs/ngs-initialize-artifact-udfs)
