# Auto Analysis QC

You can configure BaseSpace Sequence Hub to automatically apply a QC status to analyses as they complete. BaseSpace Sequence Hub compares the analysis metrics to your predefined thresholds and assigns a dataset or a analysis status as QC Passed or QC Failed.

Automatic Analysis QC uses the BaseSpace Sequence Hub API. For more information, see the developer documentation at [developer.basespace.illumina.com](https://developer.basespace.illumina.com/).

When a dataset is set to QC failed, its data are excluded from downstream data analyses and total yield calculations.

Automatic Analysis QC uses Analysis Workflows and requires the following:

* The app used in the Analysis Workflow must register analysis metrics.
* The Analysis Workflow must be launched automatically. See [Biosample Workflow](https://help.basespace.illumina.com/biosamples/biosample-workflow).
* The Analysis Workflow must contain metric thresholds. See [Create an Analysis Workflow](https://help.basespace.illumina.com/analysis-workflows#create-an-analysis-workflow).

To view the analysis metrics, select Metrics from the analysis details page. For information about manually applying QC status, see [Manual QC](https://help.basespace.illumina.com/automate/manual-qc).


---

# 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.basespace.illumina.com/analyze/automatic-analysis-qc.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.
