# Unable to filter reads of particular length

**URL:** <https://forum.qiime2.org/t/unable-to-filter-reads-of-particular-length/23074>\
**Category:** User Support\
**Tags:** dada2\
**Created:** [May 15, 2022, 10:40pm UTC](https://forum.qiime2.org/t/unable-to-filter-reads-of-particular-length/23074 "2022-05-15T22:40:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [June 1, 2022, 5:07am UTC](https://forum.qiime2.org/t/unable-to-filter-reads-of-particular-length/23074/2 "2022-06-01T05:07:40Z")

</div>

Hi @himadri2007 ,

There is a QIIME 2 plugin called RESCRIPt (which needs to be installed separately, follow instructions at the link below). It has an action for filtering sequences by both minimum and maximum lengths:

> [@Processing, filtering, and evaluating the SILVA database (and other reference sequence data) with RESCRIPt](https://forum.qiime2.org/t/processing-filtering-and-evaluating-the-silva-database-and-other-reference-sequence-data-with-rescript/15494#heading--twelfth-header):
>
> construction Please consider this tutorial a living document, which may change based upon community feedback and ongoing plugin development. RESCRIPt [RESCRIPt](https://github.com/bokulich-lab/RESCRIPt) (REference Sequence annotation and CuRatIon Pipeline) is a python package and QIIME 2 plugin for formatting, managing, and manipulating sequence reference databases. This package was designed for compiling, manipulating, and evaluating sequence reference databases from SILVA, NCBI, Greengenes, GTDB, and other sources, and for construc…

This will need to be run after denoising, however, so may or may not help your use case.

> [@himadri2007](#):
>
> qiime dada2 denoise-single --i-demultiplexed-seqs demux.qza --p-trunc-len 200 --p-trim-left 0 --o-representative-sequences rep-seqs-dada2.qza --o-table table-dada2.qza --output-dir dada2-dmx-pe\_data

This will truncate all reads at position 200, and filter out any that are shorter. But indeed this will not filter out reads that are too long (it will only trim them).

Good luck!

---

_[View the full topic](https://forum.qiime2.org/t/unable-to-filter-reads-of-particular-length/23074)._
