# DADA2 denoise-paired error: R (return code -9)

**URL:** https://forum.qiime2.org/t/dada2-denoise-paired-error-r-return-code-9/5863
**Category:** User Support
**Tags:** dada2
**Created:** [August 31, 2018, 11:35pm UTC](https://forum.qiime2.org/t/dada2-denoise-paired-error-r-return-code-9/5863 "2018-08-31T23:35:16Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![YisBel](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/y/35a633/32.png) [@YisBel](https://forum.qiime2.org/u/YisBel)
#### Post date: [August 31, 2018, 11:35pm UTC](https://forum.qiime2.org/t/dada2-denoise-paired-error-r-return-code-9/5863/1 "2018-08-31T23:35:16Z")

</div>

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 about code 1, even -11.

I don’t know how to interpret this error. Any idea?

Thanks!

---

<div class="post-metadata">

### Author: ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)
#### Post date: [September 1, 2018, 6:25am UTC](https://forum.qiime2.org/t/dada2-denoise-paired-error-r-return-code-9/5863/2 "2018-09-01T06:25:26Z")

</div>

Hi, I think that you are running out of memory, how strong is your machine? If not very strong, you can try perform quality filtering first to get read of excessive reads

---

<div class="post-metadata">

### Author: ![YisBel](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/y/35a633/32.png) [@YisBel](https://forum.qiime2.org/u/YisBel)
#### Post date: [September 4, 2018, 3:31pm UTC](https://forum.qiime2.org/t/dada2-denoise-paired-error-r-return-code-9/5863/3 "2018-09-04T15:31:40Z")

</div>

Hi!!  
It has 8 Mb of RAM, but I'm not sure how much takes Virtual Box to run Qiime2. I think this details cann't be change once Qiime2 package has been loaded on VB.  
Do you know how much memory is necessary to use Qiime2?

---

<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: [September 4, 2018, 3:31pm UTC](https://forum.qiime2.org/t/dada2-denoise-paired-error-r-return-code-9/5863/4 "2018-09-04T15:31:57Z")

</div>



---

<div class="post-metadata">

### Author: ![timanix](https://forum.qiime2.org/user_avatar/forum.qiime2.org/timanix/32/17879_2.png) [@timanix](https://forum.qiime2.org/u/timanix)
#### Post date: [September 4, 2018, 3:40pm UTC](https://forum.qiime2.org/t/dada2-denoise-paired-error-r-return-code-9/5863/5 "2018-09-04T15:40:36Z")

</div>

8 gb, I suppose, not 8 mb =). I don't know exactly but once I took a look in htop during DADA2 and it was taking about 7 gb of RAM. You can filter your data to decrease the ammount of processes or try use half of the number of your threads using  
--p-n-threads

---

<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: [September 4, 2018, 6:33pm UTC](https://forum.qiime2.org/t/dada2-denoise-paired-error-r-return-code-9/5863/6 "2018-09-04T18:33:05Z")

</div>

Hey there @YisBel!

> [@YisBel](#):
>
> I think this details cann’t be change once Qiime2 package has been loaded on VB.

You should be able to change the allocation - please check out [virtualbox.org](http://virtualbox.org) for links to their docs/support forum/etc (we do not develop Virtualbox).

> [@YisBel](#):
>
> Do you know how much memory is necessary to use Qiime2?

There is no single answer to this, since every dataset and analysis of it is totally unique. As far as DADA2 goes, please see the following:

[https://benjjneb.github.io/dada2/bigdata.html#how-long-does-it-take](https://benjjneb.github.io/dada2/bigdata.html#how-long-does-it-take)

---

<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: [September 4, 2018, 6:33pm UTC](https://forum.qiime2.org/t/dada2-denoise-paired-error-r-return-code-9/5863/7 "2018-09-04T18:33:07Z")

</div>



---

<div class="post-metadata">

### Author: ![YisBel](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/y/35a633/32.png) [@YisBel](https://forum.qiime2.org/u/YisBel)
#### Post date: [September 6, 2018, 8:06pm UTC](https://forum.qiime2.org/t/dada2-denoise-paired-error-r-return-code-9/5863/8 "2018-09-06T20:06:18Z")

</div>

thanks!!

This information was very useful

---

<div class="post-metadata">

### Author: ![YisBel](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/y/35a633/32.png) [@YisBel](https://forum.qiime2.org/u/YisBel)
#### Post date: [September 6, 2018, 8:06pm UTC](https://forum.qiime2.org/t/dada2-denoise-paired-error-r-return-code-9/5863/9 "2018-09-06T20:06:19Z")

</div>

thaks, I wil try to filter my data like you said. I figured out how increase memory to VB also.

---

<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 8, 2018, 2:06am UTC](https://forum.qiime2.org/t/dada2-denoise-paired-error-r-return-code-9/5863/10 "2018-10-08T02:06:19Z")

</div>

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