# 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="https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-c3d36d03897752a91756dc49d5cce1de8b25c664%2Ffilter%20peaks%20image%201.png?alt=media" 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="https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-fa4bf615e56023171d2337c5bcf7bada989213e8%2Ffilter%20peaks%20image%202.png?alt=media" 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="https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-93a37c67d4df0fb4a40f28158636d012a73fe4e8%2Ffilter%20peaks%20image%203.png?alt=media" 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="https://1384254481-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJVEESmJAPppJ3ijFq5aR%2Fuploads%2Fgit-blob-957f2fbff166fe66868077bc6331803e1a6a3a8a%2Ffilter%20peaks%20image%204.png?alt=media" 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).
