# Normalize to baseline

If your experimental design includes a sample or a group of samples serving as a baseline control, you can normalize the experimental samples by subtracting or dividing by the baseline sample(s) using the *Normalize to baseline* task in menu. For example, in PCR experiments, the delta Ct values of control samples are subtracted from the delta Ct values of experimental samples to obtain delta-delta Ct values for the experimental samples.

The **Normalize to baseline** task is available in the *Normalization and Scaling* section of the context-sensitive menu upon selection of any count matrix data node.

There are three options to choose the baseline samples:

* use all samples
* use a group
* use matched pairs

## Use all samples to create baseline

To normalize data to all the samples, choose to calculate the baseline using the **mean** or **median** of all samples for each feature, and choose to **subtract** **baseline** or **ratio to baseline** for the normalization method and click **Finish**.

<div align="left"><figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-5a595e0cbaf2cbd6ce9298e4af1f3cdffe2e7311%2Fimage%20(73).png?alt=media" alt=""><figcaption></figcaption></figure></div>

### Use a group to create baseline

When there is a subset of samples that serve as the baseline in the experiment, select **use group** for *Choose baseline samples*. The specific group should be specified using sample attributes.

<div align="left"><figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-f8653de36f0a94aa91fd6179b9399058d57a3a8e%2Fimage%20(75).png?alt=media" alt=""><figcaption></figcaption></figure></div>

Choose **use group**, select the attribute containing the baseline group information, e.g. **Phenotype** in this example, the samples with the group **Normal** for the **Phenotype** attribute used as the baseline. The normal samples can be filtered out after normalization by selecting the **Remove baseline samples after normalization** check box if you don't want to include normal samples in the downstream analysis.

## Use matched pairs

When using matched pairs, one sample from each pair serves as the control. An attribute specifying the pairs must be selected in addition to an attribute designating which sample in each pair is the baseline sample.

<div align="left"><figure><img src="https://580316046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWMxqQAMFOJtu98OBk9KN%2Fuploads%2Fgit-blob-104b579d89b6b4ddfb4f3ce09ebc354914803425%2Fimage%20(76).png?alt=media" alt=""><figcaption></figcaption></figure></div>

After normalization, all values for the control sample will be either 0 or 1 depending on the normalization method chosen, S*ubtract baseline* or R*atio to baseline* respectively, so we recommend removing baseline samples when using matched pairs.
