# Interactive plot wrong after qiime vsearch join-pairs

**URL:** <https://forum.qiime2.org/t/interactive-plot-wrong-after-qiime-vsearch-join-pairs/5751>\
**Category:** User Support\
**Tags:** joining\
**Created:** [August 24, 2018, 5:42pm UTC](https://forum.qiime2.org/t/interactive-plot-wrong-after-qiime-vsearch-join-pairs/5751 "2018-08-24T17:42:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbmail01](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/p/ecb155/32.png) [@pbmail01](https://forum.qiime2.org/u/pbmail01)\
**Post date:** [August 24, 2018, 5:42pm UTC](https://forum.qiime2.org/t/interactive-plot-wrong-after-qiime-vsearch-join-pairs/5751/1 "2018-08-24T17:42:38Z")

</div>

The interactive plots after qiime tools import and qiime demux summarize look normal. The interactive plot after qiime vsearch join-pairs looks wrong.

Seems like the process only used the forward reads. What caused this and how can I fix it?  
I used Qiime 2017.12

This happens with the mockrobiota mock\_12 sample: [mockrobiota/data/mock-12 at master · caporaso-lab/mockrobiota · GitHub](https://github.com/caporaso-lab/mockrobiota/tree/master/data/mock-12)

See scripts used and the plots created in attached Word doc  
[Problem after Vsearch join-pairs.zip](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/qiime21/original/2X/7/7df42cc6ce4e2d03ea21f5ac15ae15b269b4ffff.zip) (305.1 KB)

 ![wrong%20plot%20after%20vsearch%20join-pairs](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/e/e7f0c99eec94c3ab78056b4f25c3a1d0559f57bf.png)

---

<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:** [August 27, 2018, 1:24pm UTC](https://forum.qiime2.org/t/interactive-plot-wrong-after-qiime-vsearch-join-pairs/5751/2 "2018-08-27T13:24:09Z")

</div>

Hi @pbmail01,  
Is the issue that the quality score plot looks funny and q-scores are unreasonably high? This is actually normal. See [here](https://github.com/torognes/vsearch/issues/326):

> In the overlap region the q-scores will increase considerably due to the increased certainty of the base call from two reads. The scores are calculated as in USEARCH and described in Edgar & Flyvbjerg (2015) [doi:10.1093/bioinformatics/btv401](https://doi.org/10.1093/bioinformatics/btv401).

> [@pbmail01](#):
>
> Seems like the process only used the forward reads

What makes you think that? These are V4 reads, so the length looks about right (though the actual length distribution is not shown in the screenshot you shared).

> [@pbmail01](#):
>
> I used Qiime 2017.12

Your version is nearly a year old! Please install the latest version and use that — if this is in fact a bug we will need to start with the latest version for providing support. Thanks!

Let me know if that clears things up for you!

---

<div class="post-metadata">

**Author:** ![pbmail01](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/p/ecb155/32.png) [@pbmail01](https://forum.qiime2.org/u/pbmail01)\
**Post date:** [August 28, 2018, 12:52pm UTC](https://forum.qiime2.org/t/interactive-plot-wrong-after-qiime-vsearch-join-pairs/5751/3 "2018-08-28T12:52:54Z")

</div>

Thank you for your reply.  
As you can see after position 245 or so it says in red for all positions, that the plot at that position was generated using a random sampling of 1 out of many more sequences. So when selecting the trim length for Deblur for this sequence, what would you recommend I pick?

---

<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:** [August 28, 2018, 3:35pm UTC](https://forum.qiime2.org/t/interactive-plot-wrong-after-qiime-vsearch-join-pairs/5751/4 "2018-08-28T15:35:50Z")

</div>



---

<div class="post-metadata">

**Author:** ![pbmail01](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/p/ecb155/32.png) [@pbmail01](https://forum.qiime2.org/u/pbmail01)\
**Post date:** [August 28, 2018, 10:44pm UTC](https://forum.qiime2.org/t/interactive-plot-wrong-after-qiime-vsearch-join-pairs/5751/5 "2018-08-28T22:44:31Z")

</div>

Here is the result with Qiime 2018.6. I have looked everywhere and cannot figure out based on this plot what length to use to trim when denoising with deblur. I would be very happy for an answer to: What length do I use to trim with deblur and why?

 ![6](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/5/55dca8c5ccb0b428717b71bf55d266eaf4fed250.png)

---

<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:** [September 5, 2018, 3:54pm UTC](https://forum.qiime2.org/t/interactive-plot-wrong-after-qiime-vsearch-join-pairs/5751/6 "2018-09-05T15:54:05Z")

</div>

Hi @pbmail01,  
Sorry for the delayed reply.

> [@pbmail01](#):
>
> As you can see after position 245 or so it says in red for all positions, that the plot at that position was generated using a random sampling of 1 out of many more sequences

It looks like the reads are probably joining correctly, but that most joined reads are ~245 nt long. Those other sequences appear to be (one or more) outliers that have longer joined lengths. So I still don't think the quality plot is wrong, it just looks bizarre.

> [@pbmail01](#):
>
> I would be very happy for an answer to: What length do I use to trim with deblur and why?

I would recommend truncating at 245, because that is the joined length of all but a handful of sequences. Longer would cause the 245-nt-long seqs to be dropped, and shorter would reduce the amount of information in your sequences.

I hope that helps!

---

<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:** [September 5, 2018, 3:54pm UTC](https://forum.qiime2.org/t/interactive-plot-wrong-after-qiime-vsearch-join-pairs/5751/7 "2018-09-05T15:54:07Z")

</div>



---

<div class="post-metadata">

**Author:** ![pbmail01](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/p/ecb155/32.png) [@pbmail01](https://forum.qiime2.org/u/pbmail01)\
**Post date:** [September 27, 2018, 11:00pm UTC](https://forum.qiime2.org/t/interactive-plot-wrong-after-qiime-vsearch-join-pairs/5751/8 "2018-09-27T23:00:12Z")

</div>

Thank you! That answers all my questions. And sorry for the late reply.

---

<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:** [October 29, 2018, 5:06am UTC](https://forum.qiime2.org/t/interactive-plot-wrong-after-qiime-vsearch-join-pairs/5751/9 "2018-10-29T05:06:05Z")

</div>

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