# reverse complementing

**URL:** <https://forum.qiime2.org/t/reverse-complementing/13461>\
**Category:** User Support\
**Tags:** reverse-complement\
**Created:** [February 4, 2020, 4:16am UTC](https://forum.qiime2.org/t/reverse-complementing/13461 "2020-02-04T04:16:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![claudia](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/c/a88e57/32.png) [@claudia](https://forum.qiime2.org/u/claudia)\
**Post date:** [February 4, 2020, 4:16am UTC](https://forum.qiime2.org/t/reverse-complementing/13461/1 "2020-02-04T04:16:07Z")

</div>

Hi, Does Dada2 automatically reverse complement the reverse reads or do I need to do that before the denoising step? My reverse reads were provided to me in the forward orientation. I was not able to find that in the original Dada2 paper or anywhere else. Thank you for your help.

---

<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:** [February 4, 2020, 1:35pm UTC](https://forum.qiime2.org/t/reverse-complementing/13461/2 "2020-02-04T13:35:58Z")

</div>

Hello Claudia,

> [@claudia](#):
>
> Does Dada2 automatically reverse complement the reverse reads

Yes! You can pass in your reads exactly as they come off the Illumina sequencer.

Bonus: here's the line in the dada2 pairing script where the reverse read gets `rc()` reverse complemented:

> <https://github.com/benjjneb/dada2/blob/master/R/paired.R#L138>

Colin

---

<div class="post-metadata">

**Author:** ![claudia](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/c/a88e57/32.png) [@claudia](https://forum.qiime2.org/u/claudia)\
**Post date:** [February 4, 2020, 5:37pm UTC](https://forum.qiime2.org/t/reverse-complementing/13461/3 "2020-02-04T17:37:30Z")

</div>

Thank you very much much for your response! I will run it without reverse complementing first. However, your script doesn't correspond to the one Im using from qiime2:2019.10. which doesn't have the reverse complement part (rc) that you show here. So, I am still wondering if this qiime2 version automatically reverse complement the reverse reads or not. Any ideas?

---

<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:** [February 4, 2020, 5:38pm UTC](https://forum.qiime2.org/t/reverse-complementing/13461/4 "2020-02-04T17:38:08Z")

</div>



---

<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:** [February 4, 2020, 6:25pm UTC](https://forum.qiime2.org/t/reverse-complementing/13461/5 "2020-02-04T18:25:20Z")

</div>

Hello Claudia,

The script I posted is part of dada2, which is called by the the Qiime 2 plugin q2-dada2, which is included in qiime2:2019.10. So while this is not the _same_ script you are running, this exact line of code is being run when you denoise your data.

It's Qiime2, calling Dada2, calling `rc()`  
It's code, calling code, calling code  
It's turtles all the way down 🐢 🐢 🐢

Colin

---

<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:** [February 4, 2020, 6:27pm UTC](https://forum.qiime2.org/t/reverse-complementing/13461/6 "2020-02-04T18:27:42Z")

</div>



---

<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:** [March 7, 2020, 12:27am UTC](https://forum.qiime2.org/t/reverse-complementing/13461/7 "2020-03-07T00:27:46Z")

</div>

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