# dada2 maxMismatch

**URL:** https://forum.qiime2.org/t/dada2-maxmismatch/18757
**Category:** User Support
**Tags:** dada2, paired-end, merge
**Created:** [March 5, 2021, 2:27pm UTC](https://forum.qiime2.org/t/dada2-maxmismatch/18757 "2021-03-05T14:27:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![alison](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/a/e0b2c6/32.png) [@alison](https://forum.qiime2.org/u/alison)
#### Post date: [March 5, 2021, 2:27pm UTC](https://forum.qiime2.org/t/dada2-maxmismatch/18757/1 "2021-03-05T14:27:36Z")

</div>

Is there a way to use the maxMismatch flag in dada2 when running in qiime2?

I noticed the default is zero mismatches, and I suspect that is why so much of my data is being lost in merging (in Qiime1 I used to set this as 20%, a quick alignment of a few reads from my current data set gives ~5% differences). My reads overlap quite a lot, and can be fairly variable in length, so being lenient with merging seems like the best option, at least theoretically. Strict length or QC trimming would risk biasing against the longer reads, and merging should allow the higher quality read to "correct" the lower quality one.

---

<div class="post-metadata">

### Author: ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)
#### Post date: [March 5, 2021, 7:47pm UTC](https://forum.qiime2.org/t/dada2-maxmismatch/18757/2 "2021-03-05T19:47:17Z")

</div>

Hello Alison,

This setting is not yet available in the Qiime2 plugin, but there's an issue open:

> <https://github.com/qiime2/q2-dada2/issues/117>
>
> \*\*Improvement Description\*\*
> exposing minOverlap would allow adjustment of this …parameter, which has been a bit of a bugbear for some users.
> 
> \*\*Current Behavior\*\*
> minOverlap is hardcoded at 20
> 
> \*\*Proposed Behavior\*\*
> Expose minOverlap but leave the default=20
> 
> \*\*References\*\*
> \[forum xref\](https://forum.qiime2.org/t/dada2-minimum-overlap/9917?u=nicholas\_bokulich)

I agree that maxMismatch is a very powerful option and should be configured by the user. Hopefully this feature is enabled in an upcoming version of q2-dada2!

For now, you could change the python script internally, or process your data with dada directly then import back into Qiime for downstream analysis.

Colin

---

<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: [April 6, 2021, 1:47am UTC](https://forum.qiime2.org/t/dada2-maxmismatch/18757/3 "2021-04-06T01:47:39Z")

</div>

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