# Filter peaks

After peak detection, you can filter peaks or annotated peaks to generate peaks of interest for downstream analysis.

### Filter peaks based on peak table column criteria <a href="#filterpeaks-filterpeaksbasedonpeaktablecolumncriteria" id="filterpeaks-filterpeaksbasedonpeaktablecolumncriteria"></a>

The input for this task is a peaks-type data node.

* Choose a *Peaks* data node
* Click **Filter peaks** task in *Peak analysis* section in the pop-up menu (Figure 1)

<figure><img src="/files/CI820DiqDSlgkr3ZSX1H" alt=""><figcaption><p>Figure 1. Configure the filter criteria</p></figcaption></figure>

The first drop-down menu allows you to choose to **include** or **exclude** base on the specified criteria.

The second drop-down menu allows you to choose any categorical or numeric information of the peaks to use for the filter criteria.

When you choose *Sample name*, or *Chromosome,* which are categorical information, the third drop-down menu will have **is** and **is not** as options. The fourth drop-down menu allows you to choose from the subgroups of the information (Figure 2).

<figure><img src="/files/daVJ7TqnzlcQHhVoyn1H" alt=""><figcaption><p>Figure 2. Build filter criteria by using metrics of peaks</p></figcaption></figure>

When you select other information in the 2nd drop-down list, like *Start, End, Length, Absolute summit, Pileup, -log10(pvalue), Fold enrichment* or *-log10(qvalue),* which is numeric, the third drop-down includes:

* <: less than
* <=: less than or equal to
* \==: equal to
* \>: greater than
* \>=: greater than or equal to

The threshold is set using the text box (Figure 3). The input must be a number.\\

<figure><img src="/files/zMAlAePLQDSQk4nRCbcV" alt=""><figcaption><p>Figure 3. Filter peaks using numeric informaiton</p></figcaption></figure>

When use **OR** and **AND** operators, you can build more advanced filter criteria:

When combining multiple filters all set to **Include**:

With **AND**, if all statements must be true for the sample to meet the filter criteria.

With **OR**, if any statement is true, the sample will meet the filter criteria.

When combining multiple filters all set to **Exclude**:

With **AND**, if any statement is true, the sample will meet the filter criteria.

With **OR**, all statements must be true for the sample to meet the filter criteria.

### Filter annotated peaks based on a feature list <a href="#filterpeaks-filterannotatedpeaksbasedonafeaturelist" id="filterpeaks-filterannotatedpeaksbasedonafeaturelist"></a>

When you invoke filter peak task on a transcript/gene annotated peak data node, there is an additional option to filter peak regions based on a list of transcripts or genes (Figure 4).

<figure><img src="/files/s6djGHbv4k3WGQrOdTX6" alt=""><figcaption><p>Figure 4. Filter annotated peak regions based feature list</p></figcaption></figure>

Please see the *Feature list filter* chapter [here](https://help.partek.illumina.com/partek-flow/user-manual/task-menu/filtering/filter-features).


---

# 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.multiomics.illumina.com/partek/partek-flow/user-manual/task-menu/peak-analysis/filter-peaks.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.
