# Denoising paired ends with DADA2

**URL:** <https://forum.qiime2.org/t/denoising-paired-ends-with-dada2/8447>\
**Category:** Technical Support\
**Created:** [February 20, 2019, 3:57am UTC](https://forum.qiime2.org/t/denoising-paired-ends-with-dada2/8447 "2019-02-20T03:57:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Imee19](https://forum.qiime2.org/user_avatar/forum.qiime2.org/imee19/32/6330_2.png) [@Imee19](https://forum.qiime2.org/u/Imee19)\
**Post date:** [March 1, 2019, 12:21am UTC](https://forum.qiime2.org/t/denoising-paired-ends-with-dada2/8447/4 "2019-03-01T00:21:24Z")

</div>

Hi Everyone,  
I have been running DADA following the script above for more than a week and i got this an error message.

Can you help me figure this out?

Loading required package: Rcpp  
DADA2 R package version: 1.6.0

1. Filtering ....................
2. Learning Error Rates  
2a) Forward Reads  
Initializing error rates to maximum possible estimate.  
Sample 1 - 2210368 reads in 2188405 unique sequences.  
selfConsist step 2  
selfConsist step 3  
selfConsist step 4  
selfConsist step 5  
Convergence after 5 rounds.  
2b) Reverse Reads  
Initializing error rates to maximum possible estimate.  
Error rates could not be estimated.  
Error in err[c(1, 6, 11, 16),] \<- 1 :  
incorrect number of subscripts on matrix  
Calls: dada  
Execution halted  
Running external command line application(s). This may print messages to stdout and/or stderr.  
The command(s) being run are below. These commands cannot be manually re-run as they will depend on temporary files that no longer exist.

Command: run\_dada\_paired.R /tmp/tmpxpo322w2/forward /tmp/tmpxpo322w2/reverse /tmp/tmpxpo322w2/output.tsv.biom /tmp/tmpxpo322w2/track.tsv /tmp/tmpxpo322w2/filt\_f /tmp/tmpxpo322w2/filt\_r 200 180 10 10 2.0 2 consensus 1.0 10 1000000

Traceback (most recent call last):  
File "/home/imelda/anaconda2/envs/qiime2-2018.11/lib/python3.5/site-packages/q2\_dada2/\_denoise.py", line 231, in denoise\_paired  
run\_commands([cmd])  
File "/home/imelda/anaconda2/envs/qiime2-2018.11/lib/python3.5/site-packages/q2\_dada2/\_denoise.py", line 36, in run\_commands  
subprocess.run(cmd, check=True)  
File "/home/imelda/anaconda2/envs/qiime2-2018.11/lib/python3.5/subprocess.py", line 398, in run  
output=stdout, stderr=stderr)  
subprocess.CalledProcessError: Command '['run\_dada\_paired.R', '/tmp/tmpxpo322w2/forward', '/tmp/tmpxpo322w2/reverse', '/tmp/tmpxpo322w2/output.tsv.biom', '/tmp/tmpxpo322w2/track.tsv', '/tmp/tmpxpo322w2/filt\_f', '/tmp/tmpxpo322w2/filt\_r', '200', '180', '10', '10', '2.0', '2', 'consensus', '1.0', '10', '1000000']' returned non-zero exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File "/home/imelda/anaconda2/envs/qiime2-2018.11/lib/python3.5/site-packages/q2cli/commands.py", line 274, in **call**  
results = action(\*\*arguments)  
File "", line 2, in denoise\_paired  
File "/home/imelda/anaconda2/envs/qiime2-2018.11/lib/python3.5/site-packages/qiime2/sdk/action.py", line 231, in bound\_callable  
output\_types, provenance)  
File "/home/imelda/anaconda2/envs/qiime2-2018.11/lib/python3.5/site-packages/qiime2/sdk/action.py", line 362, in _callable\_executor_  
output\_views = self.\_callable(\*\*view\_args)  
File "/home/imelda/anaconda2/envs/qiime2-2018.11/lib/python3.5/site-packages/q2\_dada2/\_denoise.py", line 246, in denoise\_paired  
" and stderr to learn more." % e.returncode)  
Exception: An error was encountered while running DADA2 in R (return code 1), please inspect stdout and stderr to learn more.

---

_[View the full topic](https://forum.qiime2.org/t/denoising-paired-ends-with-dada2/8447)._
