# Error when running DADA2

**URL:** https://forum.qiime2.org/t/error-when-running-dada2/7910
**Category:** Technical Support
**Created:** [January 21, 2019, 9:18am UTC](https://forum.qiime2.org/t/error-when-running-dada2/7910 "2019-01-21T09:18:29Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Zimtblatt](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/z/df788c/32.png) [@Zimtblatt](https://forum.qiime2.org/u/Zimtblatt)
#### Post date: [January 21, 2019, 9:18am UTC](https://forum.qiime2.org/t/error-when-running-dada2/7910/1 "2019-01-21T09:18:29Z")

</div>

Dear all,

after working with QIIME2 on two datasets, I started working on a third dataset and become the following error code every time I am trying to run dada2:

Plugin error from dada2:

An error was encountered while running DADA2 in R (return code -9), please inspect stdout and stderr to learn more.

Debug info has been saved to /tmp/qiime2-q2cli-err-kqyydc47.log

I am working in the virtual machine on windows 10.

thank you very much for your help!

Isabelle

---

<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: [January 21, 2019, 3:21pm UTC](https://forum.qiime2.org/t/error-when-running-dada2/7910/2 "2019-01-21T15:21:39Z")

</div>

Hi @Zimtblatt,

> [@Zimtblatt](#):
>
> running DADA2 in R (return code -9)

This is a memory error. See here for support with this error on virtualbox:

> [@DADA2 denoise-paired error: R (return code -9)](https://forum.qiime2.org/t/dada2-denoise-paired-error-r-return-code-9/5863):
>
> I am running QIIME2 2017.9 in a Virtual Box, and I ran the following command: qiime dada2 denoise-paired --i-demultiplexed-seqs demux-paired-end.qza --p-trim-left-f 0 --p-trim-left-r 0 --p-trunc-len-f 200 --p-trunc-len-r 200 --o-table table.qza --o-representative-sequences rep-seqs.qza And received this error: An error was encountered while running DADA2 in R (return code -9) please inspect stdout and stderr to learn more. I was looking at the forum, but most of things are abo…

Good luck!

---

<div class="post-metadata">

### Author: ![Zimtblatt](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/z/df788c/32.png) [@Zimtblatt](https://forum.qiime2.org/u/Zimtblatt)
#### Post date: [January 25, 2019, 12:16pm UTC](https://forum.qiime2.org/t/error-when-running-dada2/7910/3 "2019-01-25T12:16:23Z")

</div>

Hi Nicholas,

thank you very much for the rapid reply!

I am a bit confused now. In the link you provided they recommend quality filtering before starting dada 2. Yet, I can find other posts, where quality filtering prior to DADA2 is not recommended:  
[DADA2 and quality filtering?](https://forum.qiime2.org/t/dada2-and-quality-filtering/2903)

In another post they provide a linke to the DADA2 homepage where they suggest a stepwise approach for big datasets. [A DADA2 workflow for Big Data (1.4 or later)](https://benjjneb.github.io/dada2/bigdata.html)  
How can I do this in QIIME.

thank you so much for your help!!

kind regards,

Isabelle

---

<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: [January 25, 2019, 1:32pm UTC](https://forum.qiime2.org/t/error-when-running-dada2/7910/4 "2019-01-25T13:32:31Z")

</div>

Hi @Zimtblatt,

The dada2 workflow in QIIME 2 performs quality filtering as an initial step so earlier filtering is unnecessary. It probably would not hurt, but would be redundant. Hence the mixed messages in different forum posts.

> [@Zimtblatt](#):
>
> In another post they provide a linke to the DADA2 homepage where they suggest a stepwise approach for big datasets. [A DADA2 workflow for Big Data (1.4 or later)](https://benjjneb.github.io/dada2/bigdata.html)  
> How can I do this in QIIME.

That link seems to describe the dada2 workflow that is already implemented in QIIME 2.

return code -9 is a memory error — the best fix is to find a more powerful machine to run this on.

Good luck!

---

<div class="post-metadata">

### Author: ![Zimtblatt](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/z/df788c/32.png) [@Zimtblatt](https://forum.qiime2.org/u/Zimtblatt)
#### Post date: [January 25, 2019, 8:36pm UTC](https://forum.qiime2.org/t/error-when-running-dada2/7910/5 "2019-01-25T20:36:00Z")

</div>

Dear Nicholas,

thank you very much for the instant reply!

Yes, I understood that QIIME2 performs quality filtering step. So you think filtering would not help with the memory problem? Unfortunately I do not have access to a more powerful computer.  
Should I change the settings for the virtual machine while running DADA2?

 ![grafik](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/2X/4/4e3670f1528a1b2b0d5712a708d5d116834eb1b0.png)

Any ideas how I could solve the problem without a more powerful computer?

thank you so much!

Isabelle

---

<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: [January 28, 2019, 2:00pm UTC](https://forum.qiime2.org/t/error-when-running-dada2/7910/6 "2019-01-28T14:00:07Z")

</div>

> [@Zimtblatt](#):
>
> Should I change the settings for the virtual machine while running DADA2?

Yes, give your virtual machine more memory if you can. Wow, 2048 MB is not much... you will probably need at least 4 GB RAM for an average dada2 run (that is a very rough guess). Let us know if that helps!
