# filtering features for top genera and exclusive features

**URL:** <https://forum.qiime2.org/t/filtering-features-for-top-genera-and-exclusive-features/10553>\
**Category:** User Support\
**Created:** [July 5, 2019, 4:24am UTC](https://forum.qiime2.org/t/filtering-features-for-top-genera-and-exclusive-features/10553 "2019-07-05T04:24:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ChrisKeefe](https://forum.qiime2.org/user_avatar/forum.qiime2.org/chriskeefe/32/1907_2.png) [@ChrisKeefe](https://forum.qiime2.org/u/ChrisKeefe)\
**Post date:** [July 5, 2019, 5:30pm UTC](https://forum.qiime2.org/t/filtering-features-for-top-genera-and-exclusive-features/10553/2 "2019-07-05T17:30:40Z")

</div>

Hi @jng!  
Have you played with [`qiime feature-table filter-features`](https://docs.qiime2.org/2019.4/plugins/available/feature-table/filter-features/)? The [filtering tutorial](https://docs.qiime2.org/2019.4/tutorials/filtering/), especially the [metadata filtering section](https://docs.qiime2.org/2019.4/tutorials/filtering/#metadata-based-filtering) and the docs linked above will give you some basic background.

It's a powerful tool, so there are a number of different approaches you might take. I haven't tested any of the following for your specific situation, but they represent a few possible approaches.

For your first question, `--p-min-frequency` could probably be used, by passing the number of features in the 50th-most-prevalent feature. This is probably not the _best_ approach, but would do the job.

For your second question, you might be able to filter tables to include all features in each group, then [pass these tables as metadata](https://docs.qiime2.org/2019.4/tutorials/metadata/#using-qiime-2-artifacts-as-metadata), using `--p-exclude-ids` to remove any overlapping (non-exclusive) features.

Good luck!  
Chris

---

_[View the full topic](https://forum.qiime2.org/t/filtering-features-for-top-genera-and-exclusive-features/10553)._
