# Filter features conditionally not working as intended

**URL:** <https://forum.qiime2.org/t/filter-features-conditionally-not-working-as-intended/20571>\
**Category:** Technical Support\
**Tags:** filter-features, feature-table\
**Created:** [August 27, 2021, 3:50pm UTC](https://forum.qiime2.org/t/filter-features-conditionally-not-working-as-intended/20571 "2021-08-27T15:50:57Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [August 29, 2021, 3:56pm UTC](https://forum.qiime2.org/t/filter-features-conditionally-not-working-as-intended/20571/12 "2021-08-29T15:56:38Z")

</div>

Hi @Alxdu,

I think your high abundance/low prevelance is addressed in the filter-features function I linked above; most low prevalence taxa are also low abundance. Depending on your sequencing depth, etc you could easily select for features that are abundant in a single sample as long as they have enough reads.

> [@Alxdu](#):
>
> Is that a functionality that can be implemented, such that niche features (i.e., contaminants) which may be highly abundant with very low prevalence can still be retained, while low abundance and low prevalence noise can still be removed.

If you're looking for contaminat filtering specifically, I recommend looking into [decontam](https://dalmug.org/decontam-R-package/) and the forum discussion on decontamination. It's a more complex topic than what you're describing and I think that's a good area to start.

> [@Discussion: methods for removing contaminants and cross-talk](https://forum.qiime2.org/t/discussion-methods-for-removing-contaminants-and-cross-talk/5626/19):
>
> Cross-referencing another post here. @Mechah provided some great discussion of his lab's protocols for contaminant removal from low-biomass samples in this topic:

Best,  
Justine

---

_[View the full topic](https://forum.qiime2.org/t/filter-features-conditionally-not-working-as-intended/20571)._
