# only show taxa that has over 3% relative abundance on taxonomy bar plots

**URL:** <https://forum.qiime2.org/t/only-show-taxa-that-has-over-3-relative-abundance-on-taxonomy-bar-plots/17440>\
**Category:** User Support\
**Created:** [November 13, 2020, 10:45am UTC](https://forum.qiime2.org/t/only-show-taxa-that-has-over-3-relative-abundance-on-taxonomy-bar-plots/17440 "2020-11-13T10:45:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilycrook](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/l/8491ac/32.png) [@lilycrook](https://forum.qiime2.org/u/lilycrook)\
**Post date:** [November 13, 2020, 10:45am UTC](https://forum.qiime2.org/t/only-show-taxa-that-has-over-3-relative-abundance-on-taxonomy-bar-plots/17440/1 "2020-11-13T10:45:11Z")

</div>

Hi there,

I am comparing 4 cucumber microbiome datasets, trying to find the microbes they have in common, and I am only interested in the microbes they have above 3% relative abundance, Can I filter the ones that are below that?

Cheers,

Lily

---

<div class="post-metadata">

**Author:** ![vheidrich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/vheidrich/32/3280_2.png) [@vheidrich](https://forum.qiime2.org/u/vheidrich)\
**Post date:** [November 13, 2020, 11:06am UTC](https://forum.qiime2.org/t/only-show-taxa-that-has-over-3-relative-abundance-on-taxonomy-bar-plots/17440/2 "2020-11-13T11:06:44Z")

</div>

Hi,

Yes! Take a look at this [reply](https://forum.qiime2.org/t/how-to-filter-the-relative-abundance-table-with-0-1-in-order-to-fill-in-the-nmit/4834/3) and adapt the parameters to your problem.

However, assuming that you are going to filter sample-wise, be aware that to filter all taxa with less than 3% relative abundance in any sample may be a little too stringent (you may end up filtering all taxa). Other concern is that it would greatly distort the relative abundance of other taxa, especially for high diversity samples, besides losing a lot of data.

Maybe the best choice would be to export the barplot raw data and replot assigning "Other" for the taxa that are below your threshold. This way you don't disturb the relative frequency of other taxa and get rid of endless legends.

Good luck,

Vitor

---

<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 14, 2020, 5:06pm UTC](https://forum.qiime2.org/t/only-show-taxa-that-has-over-3-relative-abundance-on-taxonomy-bar-plots/17440/3 "2020-12-14T17:06:47Z")

</div>

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