# Analyzing variable length joined paired-end reads with Deblur

**URL:** <https://forum.qiime2.org/t/analyzing-variable-length-joined-paired-end-reads-with-deblur/3993>\
**Category:** User Support\
**Tags:** feature-classifier, deblur, taxonomy\
**Created:** [May 1, 2018, 12:05pm UTC](https://forum.qiime2.org/t/analyzing-variable-length-joined-paired-end-reads-with-deblur/3993 "2018-05-01T12:05:06Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [May 1, 2018, 12:51pm UTC](https://forum.qiime2.org/t/analyzing-variable-length-joined-paired-end-reads-with-deblur/3993/3 "2018-05-01T12:51:22Z")

</div>

Hi @toconnell,

> [@toconnell](#):
>
> I’ve read that it will remove adapters and PhiX, but am not sure if it trims adapters from the reads, or if it tosses reads that contain adapter.

The latter. You can use [q2-cutadapt](https://forum.qiime2.org/t/demultiplexing-and-trimming-adapters-from-reads-with-q2-cutadapt/2313) to trim out adapters/primers.

> [@toconnell](#):
>
> The quality scores are really good for the full length of the joined reads, so would you recommend just setting this value to the shortest observed joined read length?

Yes, unless if those reads are absurdly short. If you are using 16S amplicons, there should not be a vast amount of variation, though sometimes those variants are interesting/rare but real organisms. There should probably be a narrow distribution of the most abundant seqs, and anything much shorter than that may be artifact/poorly joined reads — but if you're concerned you could blast a couple of these before deciding whether to use a higher length threshold.

> [@toconnell](#):
>
> If so, would you expect this to negatively impact taxonomic classification downstream?

You will of course lose a certain amount of information but no it should not impact classification too much. As I mentioned above, 16S gene domains should have a fairly narrow length distribution so trimming to the shortest joined read should still get "in the ballpark" of this length distribution. If you are using ITS or another length-variable marker gene then yes, you may be losing useful information for classification (but such variable genes are often also so heterogeneous that the truncated read may still contain enough information for a good classification).

> [@toconnell](#):
>
> would you then recommend trimming reference sequences to the same length as the trimmed amplicon sequences with the feature-classifier extract-reads function before training a taxonomy classifier with fit-classifier-naive-bayes? Do you think this would make a significant difference in taxonomic assignment?

See the text and notes in [this tutorial section](https://docs.qiime2.org/2018.4/tutorials/feature-classifier/#extract-reference-reads). We do recommend trimming (for 16S) and yes it does impact quality, but in my experience it does not make that much of a difference. Extracting the correct domain with the correct PCR primers is more impactful that trimming to the precise trim length. If you are constrained (e.g., by memory or time) then this step is not critical and using an appropriate pre-trained classifier will be fine.

I hope that helps!

---

_[View the full topic](https://forum.qiime2.org/t/analyzing-variable-length-joined-paired-end-reads-with-deblur/3993)._
