# How does DADA2 handle the sequence with different truncation lengths?

**URL:** <https://forum.qiime2.org/t/how-does-dada2-handle-the-sequence-with-different-truncation-lengths/16930>\
**Category:** User Support\
**Tags:** dada2\
**Created:** [October 7, 2020, 1:44am UTC](https://forum.qiime2.org/t/how-does-dada2-handle-the-sequence-with-different-truncation-lengths/16930 "2020-10-07T01:44:27Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ChrisKeefe](https://forum.qiime2.org/user_avatar/forum.qiime2.org/chriskeefe/32/1907_2.png) [@ChrisKeefe](https://forum.qiime2.org/u/ChrisKeefe)\
**Post date:** [October 7, 2020, 9:25pm UTC](https://forum.qiime2.org/t/how-does-dada2-handle-the-sequence-with-different-truncation-lengths/16930/6 "2020-10-07T21:25:43Z")

</div>

@Claire010, I think you're right to go to the paper and/or DADA2 docs to find more concrete answers, as I haven't spent much time with how exactly DADA2 performs error correction. The Sequence Comparison, Abundance P-value, and Divisive Partitioning Algorithm sections are likely the most useful to you for this.

When we truncate the read at position(Q=2), we do so because we don't trust that read. DADA2 doesn't "save back" the truncated nucleotide, and isn't deciding that we _do_ trust the read. DADA2 is happy to let the untrustworthy data go. It uses its error model to choose likely "true sequences", and replaces likely-erroneous sequences with the likely "true sequence" they most closely resemble.

Incidentally, I think DADA2 author @benjjneb generally recommends using the "base-wise" trim and trunc parameters, rather than trimming by q-score, as [this allows DADA2 to rely on `max-ee`](https://forum.qiime2.org/t/why-do-the-dada2-default-setting-have-such-a-low-phred-score/10156/8) instead of raw q-scores.

---

_[View the full topic](https://forum.qiime2.org/t/how-does-dada2-handle-the-sequence-with-different-truncation-lengths/16930)._
