# Filtering representative sequences

**URL:** https://forum.qiime2.org/t/filtering-representative-sequences/825
**Category:** User Support
**Tags:** filtering
**Created:** [July 13, 2017, 6:43pm UTC](https://forum.qiime2.org/t/filtering-representative-sequences/825 "2017-07-13T18:43:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Lorinda](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lorinda/32/5966_2.png) [@Lorinda](https://forum.qiime2.org/u/Lorinda)
#### Post date: [July 13, 2017, 6:43pm UTC](https://forum.qiime2.org/t/filtering-representative-sequences/825/1 "2017-07-13T18:43:42Z")

</div>

Hi,

Is there a way to filter features from your representative sequence file based on a .tsv of indexes, as you would from a feature table? Or, alternatively, to extract representative sequences from a filtered feature table?

Thank you!

---

<div class="post-metadata">

### Author: ![ebolyen](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ebolyen/32/11_2.png) [@ebolyen](https://forum.qiime2.org/u/ebolyen)
#### Post date: [July 17, 2017, 7:19pm UTC](https://forum.qiime2.org/t/filtering-representative-sequences/825/2 "2017-07-17T19:19:49Z")

</div>

Hi @Lorinda,

Sorry for the very delayed response.

I'm afraid we don't have a way to filter the representative sequences at this time. The feature-table also has no idea what the representative sequences are, it just has IDs and the associations between them. So it can't really help here either.

Having extra sequences in your `FeatureData[Sequences]` artifact should't generally be a problem downstream in QIIME 2, but I take it you are trying to use these outside of QIIME 2 for something else?

---

<div class="post-metadata">

### Author: ![Lorinda](https://forum.qiime2.org/user_avatar/forum.qiime2.org/lorinda/32/5966_2.png) [@Lorinda](https://forum.qiime2.org/u/Lorinda)
#### Post date: [July 18, 2017, 4:11pm UTC](https://forum.qiime2.org/t/filtering-representative-sequences/825/3 "2017-07-18T16:11:51Z")

</div>

@ebolyen For example, if I wanted to assign taxonomy elsewhere, or submit filtered, representative sequences to a database somewhere. For now though, it seems like there is an easy enough work around through QIIME 1, using the filter\_fasta command. Thanks!

---

<div class="post-metadata">

### Author: ![jairideout](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jairideout/32/9_2.png) [@jairideout](https://forum.qiime2.org/u/jairideout)
#### Post date: [July 19, 2017, 5:39pm UTC](https://forum.qiime2.org/t/filtering-representative-sequences/825/4 "2017-07-19T17:39:42Z")

</div>

Just a note, I created [an issue](https://github.com/qiime2/q2-feature-table/issues/119) to track progress on this feature. We'll follow up here when it's available in a release (likely within the next 2-3 releases).

---

<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: [August 19, 2017, 11:39pm UTC](https://forum.qiime2.org/t/filtering-representative-sequences/825/5 "2017-08-19T23:39:53Z")

</div>

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

---

<div class="post-metadata">

### Author: ![ebolyen](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ebolyen/32/11_2.png) [@ebolyen](https://forum.qiime2.org/u/ebolyen)
#### Post date: [September 29, 2017, 7:26pm UTC](https://forum.qiime2.org/t/filtering-representative-sequences/825/7 "2017-09-29T19:26:09Z")

</div>

We now support filtering `FeatureData[Sequence]` with `feature-table filter-seqs` in [QIIME 2 2017.9](https://forum.qiime2.org/t/qiime-2-2017-9-release-is-now-live/1160)!
