# using q2-fragment insertion to filter sequences

**URL:** <https://forum.qiime2.org/t/using-q2-fragment-insertion-to-filter-sequences/20112>\
**Category:** User Support\
**Tags:** fragment-insertion\
**Created:** [July 7, 2021, 1:09am UTC](https://forum.qiime2.org/t/using-q2-fragment-insertion-to-filter-sequences/20112 "2021-07-07T01:09:42Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![lizgehret](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lizgehret/32/17128_2.png) [@lizgehret](https://forum.qiime2.org/u/lizgehret)\
**Post date:** [July 15, 2021, 4:08pm UTC](https://forum.qiime2.org/t/using-q2-fragment-insertion-to-filter-sequences/20112/7 "2021-07-15T16:08:59Z")

</div>

Hi @anna-schrecengost,

> [@anna-schrecengost](#):
>
> Do you know if there is a way in QIIME to filter ASV tables by a list of feature IDs that I copy from the tree?

I'm not sure if this is exactly what you're looking for, but [this forum post](https://forum.qiime2.org/t/how-can-i-quickly-identify-the-asvs-belong-to/19867) does go over filtering on specific ASVs in QIIME 2 - which may be useful if you go the QIIME 2 route!

> [@anna-schrecengost](#):
>
> Or, if I prune the tree in a different program, and obtain a tree with only my target ASVs (as well as the reference), I could use that tree with `qiime fragment-insertion filter-features` to obtain an ASV table with only target sequences, and then re-run `qiime fragment-insertion sepp` with that ASV table --- does that seem reasonable?

This seems reasonable to me, so if you don't have any luck with the suggestion in that separate forum post above, I would recommend taking this route!

Cheers,  
Liz

---

_[View the full topic](https://forum.qiime2.org/t/using-q2-fragment-insertion-to-filter-sequences/20112)._
