# Filtering phyloseq object by otu id instead of the target level

**URL:** <https://forum.qiime2.org/t/filtering-phyloseq-object-by-otu-id-instead-of-the-target-level/24580>\
**Category:** Other Bioinformatics Tools\
**Tags:** phyloseq, feature-table, filtering\
**Created:** [October 28, 2022, 12:29pm UTC](https://forum.qiime2.org/t/filtering-phyloseq-object-by-otu-id-instead-of-the-target-level/24580 "2022-10-28T12:29:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elsamdea](https://forum.qiime2.org/user_avatar/forum.qiime2.org/elsamdea/32/11178_2.png) [@elsamdea](https://forum.qiime2.org/u/elsamdea)\
**Post date:** [October 28, 2022, 12:29pm UTC](https://forum.qiime2.org/t/filtering-phyloseq-object-by-otu-id-instead-of-the-target-level/24580/1 "2022-10-28T12:29:09Z")

</div>

Hi everyone!!

Firstly, I have looking in the forum (in case someone had had my same doubt), but I didn't find it. If this has been commented in the past, please, could you indicate the posts? Thanks in advance!

But, in case it has not been brought up before:

I am a bit confuse about the filtering processing after importing phyloseq object. I know that if you want to remove contaminants (for example) of your phyloseq object, you should find them and then, removing them from the original table by OTU ID instead of by the taxonomy target level you were checking (for example, family level).

However, I would like to understand why is that. And read more about it. Could you recommend me some reliable sources or articles?

Thank you so much!

Best,

Elsa

---

<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:** [October 28, 2022, 3:34pm UTC](https://forum.qiime2.org/t/filtering-phyloseq-object-by-otu-id-instead-of-the-target-level/24580/2 "2022-10-28T15:34:32Z")

</div>

Hello Elsa,

Filtering contamination is controversial because there are different sources of unwanted 'contamination' and it's nearly impossible to separate the sources of observed variation and get rid of just the 'bad' ones you don't want.

> [@elsamdea](#):
>
> Could you recommend me some reliable sources or articles?

Check out this discussion of contamination and cross-talk on this **best-of-the-forums** thread:

> [@Discussion: methods for removing contaminants and cross-talk](https://forum.qiime2.org/t/discussion-methods-for-removing-contaminants-and-cross-talk/5626):
>
> Just to add further to this discussion, I've previously used decontam prior to it being incorporated into QIIME 2, and whilst I'm a huge fan of the principles it's built around, it didn't work fantastically for my samples. I will caveat that as I did only attempt the prevalence method with 2 negative controls (one kit negative and one sequencing negative) for around 20 samples, which is likely too low a number of controls to have any real statistical power, I'm not sure what the ideal number of …

Good luck. Let us know if you have questions.
