# DADA2 to Qiime2

**URL:** <https://forum.qiime2.org/t/dada2-to-qiime2/26764>\
**Category:** User Support\
**Created:** [June 13, 2023, 7:08am UTC](https://forum.qiime2.org/t/dada2-to-qiime2/26764 "2023-06-13T07:08:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![kulandai1](https://forum.qiime2.org/user_avatar/forum.qiime2.org/kulandai1/32/5232_2.png) [@kulandai1](https://forum.qiime2.org/u/kulandai1)\
**Post date:** [June 13, 2023, 7:08am UTC](https://forum.qiime2.org/t/dada2-to-qiime2/26764/1 "2023-06-13T07:08:17Z")

</div>

Hi I am doing meta-analysis (sample size - 80 files) downloaded from NCBI and ENA.I have done the initial sequence analysis in dada2 in R and i have saved the files in RDS formate after makeSequenceTable command.  
Now my question is - can I import the individual rds files into qiime2 and merge the seq tables and perform chimera. so that I can use fragment insertion to overcome the difference of primers used.  
I tried to merge the rds files in dada2 r but its showing error as ; cannot allocate vector size of 76 GB.

Kindly suggest some way

---

<div class="post-metadata">

**Author:** ![Keegan-Evans](https://forum.qiime2.org/user_avatar/forum.qiime2.org/keegan-evans/32/10422_2.png) [@Keegan-Evans](https://forum.qiime2.org/u/Keegan-Evans)\
**Post date:** [June 14, 2023, 12:45am UTC](https://forum.qiime2.org/t/dada2-to-qiime2/26764/2 "2023-06-14T00:45:25Z")

</div>

@kulandai1, unfortunately there is no way to perform individual DADA2 steps in the QIIME 2 implementation.

It might be possible to do something like this:

- import individual denoised samples as `SampleData[Sequences]`
- dereplicate them
- merge the resulting individual `FeatureTable[Frequency]` and `FeatureData[Sequence]` artifacts using [merge](https://docs.qiime2.org/2023.5/plugins/available/feature-table/merge/) and [merge-seqs](https://docs.qiime2.org/2023.5/plugins/available/feature-table/merge-seqs/)
- [remove chimeras](https://docs.qiime2.org/2023.5/plugins/available/vsearch/uchime-denovo/) using vsearch
- cluster and continue on with the analysis

But this is certainly a non-standard workflow, and it might be helpful to take a look at the [clustering otus](https://docs.qiime2.org/2023.5/tutorials/otu-clustering/) and the [filtering chimeric feature sequences](https://docs.qiime2.org/2023.5/tutorials/chimera/) tutorials for inspiration.

Another difficulty might be importing the RDS data into QIIME 2, though [this older community tutorial](https://forum.qiime2.org/t/importing-dada2-and-phyloseq-objects-to-qiime-2/4683) might be helpful here.

I can't say that I am overly optimistic about this working, but if you can't simply start by pulling all of the data into QIIME 2 initially, this might let you move forward! The easiest solution may be to merge the RDS files in R using a machine with more than 76 GB of RAM, though I am not familiar enough with that operation to know how much more you would need.

---

<div class="post-metadata">

**Author:** ![kulandai1](https://forum.qiime2.org/user_avatar/forum.qiime2.org/kulandai1/32/5232_2.png) [@kulandai1](https://forum.qiime2.org/u/kulandai1)\
**Post date:** [June 14, 2023, 1:17pm UTC](https://forum.qiime2.org/t/dada2-to-qiime2/26764/3 "2023-06-14T13:17:30Z")

</div>

Hi Keegan  
Thank you

> [@Keegan-Evans](#):
>
> Another difficulty might be importing the RDS data into QIIME 2, though [this older community tutorial](https://forum.qiime2.org/t/importing-dada2-and-phyloseq-objects-to-qiime-2/4683) might be helpful here.

Thanks, I think this would help.

Sorry for taking your time, I just want to make sure the following workflow for 16S rDNA meta-analysis (different primer regions) is good.

1. so far I have the ASV tables in rds format (80 files) analyzed in R dada2, now I will convert and import it to qiime2 and merge the table and sequence, then I will do remove chimeras using vsearch.
2. followed by fragment insertion with the chimera-free files and downstream analysis.  
I need some clarification regarding the merging of sequence and table and the issue of duplicate ASVs  
I read some Q&A in the qiime2 forum, but I couldn't understand. Kindly clarify me, if I use the fragment insertion it can overcome the duplication of ASVs and downstream diversity analysis.

Thank you

---

<div class="post-metadata">

**Author:** ![Keegan-Evans](https://forum.qiime2.org/user_avatar/forum.qiime2.org/keegan-evans/32/10422_2.png) [@Keegan-Evans](https://forum.qiime2.org/u/Keegan-Evans)\
**Post date:** [June 14, 2023, 11:48pm UTC](https://forum.qiime2.org/t/dada2-to-qiime2/26764/4 "2023-06-14T23:48:51Z")

</div>



---

<div class="post-metadata">

**Author:** ![colinvwood](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinvwood/32/17303_2.png) [@colinvwood](https://forum.qiime2.org/u/colinvwood)\
**Post date:** [June 20, 2023, 3:17pm UTC](https://forum.qiime2.org/t/dada2-to-qiime2/26764/5 "2023-06-20T15:17:23Z")

</div>

Hello @kulandai1,

What concern about duplicate ASVs do you have? When you merge tables QIIME will recognize duplicate ASVs and merge them in the expected way. What is it about the process of fragment insertion that you expect to influence/interact with the presence of duplicate ASVs?

As a note, DADA2 performs chimera removal, if that is useful or unknown information to you.

---

<div class="post-metadata">

**Author:** ![colinvwood](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinvwood/32/17303_2.png) [@colinvwood](https://forum.qiime2.org/u/colinvwood)\
**Post date:** [June 20, 2023, 3:17pm UTC](https://forum.qiime2.org/t/dada2-to-qiime2/26764/6 "2023-06-20T15:17:26Z")

</div>



---

<div class="post-metadata">

**Author:** ![kulandai1](https://forum.qiime2.org/user_avatar/forum.qiime2.org/kulandai1/32/5232_2.png) [@kulandai1](https://forum.qiime2.org/u/kulandai1)\
**Post date:** [June 23, 2023, 5:57pm UTC](https://forum.qiime2.org/t/dada2-to-qiime2/26764/8 "2023-06-23T17:57:43Z")

</div>

Hi Colin Wood  
Thank you for reply.

I am planning to use fragment insertion, because my meta-analysis has different primer regions.

---

<div class="post-metadata">

**Author:** ![gregcaporaso](https://forum.qiime2.org/user_avatar/forum.qiime2.org/gregcaporaso/32/17769_2.png) [@gregcaporaso](https://forum.qiime2.org/u/gregcaporaso)\
**Post date:** [June 23, 2023, 6:50pm UTC](https://forum.qiime2.org/t/dada2-to-qiime2/26764/9 "2023-06-23T18:50:23Z")

</div>



---

<div class="post-metadata">

**Author:** ![colinvwood](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinvwood/32/17303_2.png) [@colinvwood](https://forum.qiime2.org/u/colinvwood)\
**Post date:** [June 23, 2023, 7:01pm UTC](https://forum.qiime2.org/t/dada2-to-qiime2/26764/11 "2023-06-23T19:01:00Z")

</div>

Hello @kulandai1,

If it would simplify things for you, running dada2 within qiime is a possibility. Then you wouldn't have to worry about importing into qiime afterwards. Has your issue with merging ASV tables been resolved?

---

<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:** [July 25, 2023, 1:01am UTC](https://forum.qiime2.org/t/dada2-to-qiime2/26764/12 "2023-07-25T01:01:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![colinvwood](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinvwood/32/17303_2.png) [@colinvwood](https://forum.qiime2.org/u/colinvwood)\
**Post date:** [July 31, 2023, 4:33pm UTC](https://forum.qiime2.org/t/dada2-to-qiime2/26764/13 "2023-07-31T16:33:22Z")

</div>


