# qiime feature-table filter-features

**URL:** https://forum.qiime2.org/t/qiime-feature-table-filter-features/12211
**Category:** Technical Support
**Tags:** dada2, quality-control
**Created:** [October 29, 2019, 2:52pm UTC](https://forum.qiime2.org/t/qiime-feature-table-filter-features/12211 "2019-10-29T14:52:33Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [December 15, 2019, 4:51am UTC](https://forum.qiime2.org/t/qiime-feature-table-filter-features/12211/5 "2019-12-15T04:51:01Z")

</div>

Hey @Luke_Thompson!

This should help you get started:

> [@Filtering out ASVs from DADA2 based on length](https://forum.qiime2.org/t/filtering-out-asvs-from-dada2-based-on-length/9217/4):
>
> Just wanted to toss out one more option for length-based filtering: qiime feature-table filter-seqs \ --i-data seqs.qza \ --m-metadata-file seqs.qza \ --p-where 'length(sequence) \> 4' \ --o-filtered-data filtered-seqs.qza This works by viewing the FeatureData[Sequence] as Metadata, and then using a SQL-where clause to compute the length. The advantage here is then you don't have to export anything. This command above would keep any sequences longer than 4 nts. :qiime2:

---

_[View the full topic](https://forum.qiime2.org/t/qiime-feature-table-filter-features/12211)._
