# Process Summary Report

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

Often, a user wants to determine what work has been performed on several samples by running the Sample History Report. However, suppose they were to use the *sampleHistoryReport* script on 600 samples that involve the same four processes. The result would be 600 reports (one for each sample), each of which provides information on only that one sample.

A preferable alternative is to use the *processHistoryReport* script, which is run only once for each process. In this example, therefore, it would produce only four reports (one for each process) allowing for a better grouping of information and less files.

## Script Overview

The *processHistoryReport* script has two parts: 1. Retrieve the necessary information, and 2. Compile that information into a report.

* The script generates one report ('Process Summary Report') for all inputs, output as a single shared result file.
* The script is configured on the Illumina Sequencing (Illumina SBS) 5.0 step, as 'Report creation script.'
* The report is generated in XLS format using POI.
* The report is automatically attached to the pre-configured report process result file output.

## Script Parameters

| **Parameter** | **Description**                |
| ------------- | ------------------------------ |
| -u {username} | (Required) LIMS login username |
| -p {password} | (Required) LIMS login password |
| -i {URI}      | (Required) LIMS process URI    |

## Adding Processes to a Report

1. Add a process UDF of type Checkbox, with the exact name of the process you want to include. For example: "3. Denature, Dilute and Load Sample (MiSeq)"
2. When the process is run, select the checkbox to include that process in the Process Summary Report.

   <pre class="language-markup" data-overflow="wrap"><code class="lang-markup">OUTPUT GENERATION NAMING EXAMPLE:
   Process History Report

   EPP PARAMETER STRING EXAMPLE:
   java -jar ngs-extensions.jar script:processHistoryReport -u {username} -p {password} -i {processURI}
   </code></pre>

Note that the script may also be run in the following directory:

{% code overflow="wrap" %}

```markup
/opt/gls/clarity/extensions/ngs-common/v5/EPP
```

{% endcode %}

## Configuration

Report process configuration may be obtained using the LIMS configuration import/export tools or the LIMS Config-Slicer tool.

## Rules & constraints

* The script must be run from the LIMS Operations Interface.
* To be included in the report, a process must have at least one output UDF specified.
* The report requires a pre-configured process type + EPP parameter string ('TruSeq Process Summary Report').
* The report runs from the specified artifact down the genealogy tree. For complete and correct output, it is recommended that it be run on the original submitted samples.

## Additional information

Other scripts you may find useful:

* [Set UDF](/instruments-and-integrations/ngs/ngs-set-udf.md)
* [Copy UDFs](/instruments-and-integrations/ngs/ngs-copy-udfs.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.claritylims.illumina.com/instruments-and-integrations/ngs/ngs-process-summary-report.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
