# Guidance for feature filtering step of qiime2

**URL:** <https://forum.qiime2.org/t/guidance-for-feature-filtering-step-of-qiime2/33788>\
**Category:** User Support\
**Tags:** filter-features, feature-table\
**Created:** [November 14, 2025, 2:02pm UTC](https://forum.qiime2.org/t/guidance-for-feature-filtering-step-of-qiime2/33788 "2025-11-14T14:02:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Qiime2\_user](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/q/a9a28c/32.png) [@Qiime2\_user](https://forum.qiime2.org/u/Qiime2_user)\
**Post date:** [November 14, 2025, 2:02pm UTC](https://forum.qiime2.org/t/guidance-for-feature-filtering-step-of-qiime2/33788/1 "2025-11-14T14:02:16Z")

</div>

Can I please get some help and guidance as to how to decide on the feature filtering criteria in qiime2?

qiime feature-table filter-features  
--i-table table-dada2.qza  
--p-min-frequency ???  
--p-min-samples ???  
--o-filtered-table table-filt-min-sample.qza  
For the above step, how does one decide the value of --p-min-freq? Which table one should look at to search for the --p-min-freq value - is it “Frequency per sample” or “Frequency per feature” tables from the table.qza output of DADA2? Also, is it mendatory to perform this step (or I can safely skip such filterings given it does not compromise the downstream analysis?

---

<div class="post-metadata">

**Author:** ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)\
**Post date:** [November 14, 2025, 9:37pm UTC](https://forum.qiime2.org/t/guidance-for-feature-filtering-step-of-qiime2/33788/2 "2025-11-14T21:37:15Z")

</div>

Welcome to the forums! :qiime2:

You _don't_ have to perform this step, so this is a very good question to ask!  
I think the goal is to remove rare features, and this would motivate the choice of `--p-min-freq`.

> [@Qiime2\_user](#):
>
> For the above step, how does one decide the value of --p-min-freq? Which table one should look at to search for the --p-min-freq value

Well, in the [Gut-to-soil tutorial](https://amplicon-docs.qiime2.org/en/latest/tutorials/gut-to-soil.html), they run this before the filter to get feature counts:

```css
qiime feature-table tabulate-seqs \
  --i-data asv-seqs.qza \
  --m-metadata-file asv-frequencies.qza \
  --o-visualization asv-seqs.qzv

```

The `asv-seqs.qzv` file includes what would be filtered out if a threshold is applied.

> [@Qiime2\_user](#):
>
> is it “Frequency per sample” or “Frequency per feature”

Both! It's frequence of a feature in a sample. Full docs:

> **[feature-table - Microbiome marker gene analysis with QIIME 2](https://amplicon-docs.qiime2.org/en/latest/references/plugins/feature-table/)**

---

<div class="post-metadata">

**Author:** ![Qiime2\_user](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/q/a9a28c/32.png) [@Qiime2\_user](https://forum.qiime2.org/u/Qiime2_user)\
**Post date:** [November 15, 2025, 6:15pm UTC](https://forum.qiime2.org/t/guidance-for-feature-filtering-step-of-qiime2/33788/3 "2025-11-15T18:15:59Z")

</div>

> [@colinbrislawn](#):
>
> You _don't_ have to perform this step, so this is a very good question to ask!

Hi Colin @colinbrislawn, thank you very much for your response. I understand that rare ASVs often represent noise, which is why filtering is necessary. However, I am still unsure about how to choose an appropriate filtering threshold. I looked at the gut–soil tutorial, kindly tagged by you, but it does not specifically tells about the threshold to be used. The summary tables show the minimum, Q1, median, Q3, mean, and maximum frequencies for the features. Are any of these values actually useful for selecting the feature-filtering threshold? Since QIIME2 provides filtering option, it would be helpful to have clearer guidelines on how to perform this step, especially regarding how to choose appropriate filtering thresholds.

---

<div class="post-metadata">

**Author:** ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)\
**Post date:** [November 17, 2025, 3:16pm UTC](https://forum.qiime2.org/t/guidance-for-feature-filtering-step-of-qiime2/33788/4 "2025-11-17T15:16:15Z")

</div>

> [@Qiime2\_user](#):
>
> clearer guidelines on how to perform this step

That's fair, and it's not discussed in the [gut-to-soil tutorial](https://amplicon-docs.qiime2.org/en/latest/tutorials/gut-to-soil.html#zAWX75ujyJ).

It looks like the [pd-mice tutorial](https://docs.qiime2.org/2024.10/tutorials/pd-mice/#differential-abundance-with-ancom-bc) uses this command as a pre-filter before Differential Abundance testing. Here's the best info I could find:

> [@ANCOM tutorial — do I need to filter my table?](https://forum.qiime2.org/t/ancom-tutorial-do-i-need-to-filter-my-table/13860/12):
>
> I was involved in writing the PD mice tutorial and, to be honest, I can't remember the exact logic behind that _specific_ depth. (I double checked my notes from that period, and... its not recorded :/. Sometimes that's the way it goes in this field: you pick a something and work with it). The mean/total abundance and prevalence co-vary pretty closely so most of the low abundance features will be picked up in your first filtering.

Zooming out a little bit, Qiime2 provides good default settings, so if there was a single 'right' way to do this, we would tell you.

This is a tradeoff between keeping rare features and removing noise, and that depends on the sources of noise for your sample and the biological signal you are trying to identify.

Also, I have found that reviewer three will not like my choice of `--p-min-frequency`, so later I'll have to change it anyway. 🤷

---

<div class="post-metadata">

**Author:** ![jwdebelius](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jwdebelius/32/9655_2.png) [@jwdebelius](https://forum.qiime2.org/u/jwdebelius)\
**Post date:** [November 19, 2025, 2:49pm UTC](https://forum.qiime2.org/t/guidance-for-feature-filtering-step-of-qiime2/33788/5 "2025-11-19T14:49:59Z")

</div>

If I can jump in @colinbrislawn, the good news from the answer you linked is that I got joint filtering in QIIME 2!

In terms of p-min-frequncy; I tie my minimum sample frequency to my rarefaction depth (if Im rarefying to 1000 seqs/sample, I want sampels with at least 1000 sequences). Some one will absloutely be mad about your rarefaction threshhold (mine is reviewer 3 as well!).

In terms of feature discards, it depends. I tend to filter my features more heavily on other criteria. For example, features I cant classify to at least phylum level, reads that don’t insert into a phylogenetic tree, or reads that are assigned to chloroplasts or mitochondria. I might also filter super rare features (singletons). This is the table I then take into subsequent steps.

So, I’d rarefy it as a normalization approach for classic diveristy metrics. I’d filter it again a little more aggressively for differential abundance/prevelance, aitchison distance, or DEICODE.

Not sure if that helps or makes this more confusing.

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [December 20, 2025, 8:50pm UTC](https://forum.qiime2.org/t/guidance-for-feature-filtering-step-of-qiime2/33788/6 "2025-12-20T20:50:32Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
