I am using DADA2 (Qiime2 2019.7 which is installed within a conda environment in lab server) to denoise a adapter-trimmed 16S rRNA sequence dataset. However, execution halted after four days computation. I got an error message:
Plugin error from dada2: An error was encountered while running DADA2 in R (return code 1), please inspect stdout and stderr to learn more.
Debug info has been saved to /home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp/qiime2-q2cli-err-hpcrjy3c.log
and I checked the debug info in temporary directory, it said (see entire output below):
Error in table(pairdf$forward, pairdf$reverse) :
attempt to make a table with >= 2^31 elements
Calls: mergePairs -> lapply -> FUN -> table
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.
After searching for similar problems in qiime2 forum and other websites, I only found the following post: .
https://github.com/benjjneb/dada2/issues/641
However, this post does not provide any feasible solution.
I tried to find some clues in code of dada2. It seems that the error generated from the paired-end merging step, but I don't have any idea to overcome this problem. Would you please guide me to solve this problem?
Thank you for your attention and time.
potatoo
computational environment
- Ubuntu 18.04.3 LTS (lab server, RAM: 62GB, CPUs: 4, Cores per CPU: 4, Threads per core: 1)
- Qiime2 2019.7
- conda 4.7.12
dataset overview
qiime_trim_16s_HETrim_191002.qzv (338.0 KB)
command
export TMPDIR=/home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp
indir=/home/qfwfq/DIMP/data/proc/20190927/qiime_trim_16s_dnmgb_190927/qiime_trim_16s_HETrim_190927.qza
outdir=/home/qfwfq/DIMP/data/proc/20191002/denoise_trim_16s_dnmgb_191002
nohup qiime dada2 denoise-paired
--i-demultiplexed-seqs ${indir}
--p-trim-left-f 0
--p-trim-left-r 0
--p-trunc-len-f 0
--p-trunc-len-r 0
--p-n-threads 4
--o-table ${outdir}/table_denoise_16s_dnmgb_191002.qza
--o-representative-sequences ${outdir}/rep_seqs_denoise_16s_dnmgb_191002.qza
--o-denoising-stats ${outdir}/stats_denoise_16s_dnmgb_191002.qza > ${outdir}/denoise_err_20191002.txt &
output message
Plugin error from dada2: An error was encountered while running DADA2 in R (return code 1), please inspect stdout and stderr to learn more.
Debug info has been saved to /home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp/qiime2-q2cli-err-hpcrjy3c.log
qiime2 debug info in temporary directory (qiime2-q2cli-err-hpcrjy3c.log)
R version 3.5.1 (2018-07-02)
Loading required package: Rcpp
DADA2: 1.10.0 / Rcpp: 1.0.2 / RcppParallel: 4.4.3
- Filtering .....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
- Learning Error Rates
182577384 total bases in 1055371 reads from 15 samples will be used for learning the error rates.
180475410 total bases in 1055371 reads from 15 samples will be used for learning the error rates.- Denoise remaining samples .................................................................................Duplicate sequences in merged output.
.....................................................Duplicate sequences in merged output.
...................................Duplicate sequences in merged output.
..................................................Duplicate sequences in merged output.
.........Duplicate sequences in merged output.
.Duplicate sequences in merged output.
.....Duplicate sequences in merged output.
...Duplicate sequences in merged output.
.............Duplicate sequences in merged output.
...........Duplicate sequences in merged output.
........................................................Duplicate sequences in merged output.
.........................Duplicate sequences in merged output.
.Duplicate sequences in merged output.
..................Duplicate sequences in merged output.
.Duplicate sequences in merged output.
.Duplicate sequences in merged output.
.........Duplicate sequences in merged output.
................................................Duplicate sequences in merged output.
...............................................................................Duplicate sequences in merged output.
..................................................................................................................................................................................Duplicate sequences in merged output.
.................................................................................................................................................................................Duplicate sequences in merged output.
................Duplicate sequences in merged output.
...................................................Duplicate sequences in merged output.
.......................................Duplicate sequences in merged output.
...............Duplicate sequences in merged output.
..........................Duplicate sequences in merged output.
............................................................Duplicate sequences in merged output.
..........Duplicate sequences in merged output.
...................Duplicate sequences in merged output.
...............................Duplicate sequences in merged output.
...................Duplicate sequences in merged output.
.........Duplicate sequences in merged output.
....Duplicate sequences in merged output.
.Duplicate sequences in merged output.
........Duplicate sequences in merged output.
......Duplicate sequences in merged output.
.Duplicate sequences in merged output.
.....Duplicate sequences in merged output.
.Duplicate sequences in merged output.
.Duplicate sequences in merged output.
..Duplicate sequences in merged output.
.....Duplicate sequences in merged output.
..Duplicate sequences in merged output.
.........Duplicate sequences in merged output.
...................................................................Duplicate sequences in merged output.
..Duplicate sequences in merged output.
....Duplicate sequences in merged output.
.....Duplicate sequences in merged output.
.Duplicate sequences in merged output.
.....Duplicate sequences in merged output.
.................Duplicate sequences in merged output.
.Duplicate sequences in merged output.
..Duplicate sequences in merged output.
....Duplicate sequences in merged output.
.....Duplicate sequences in merged output.
..Duplicate sequences in merged output.
....Duplicate sequences in merged output.
.........Duplicate sequences in merged output.
..Duplicate sequences in merged output.
.............................................Duplicate sequences in merged output.
....Duplicate sequences in merged output.
....Duplicate sequences in merged output.
....Duplicate sequences in merged output.
.....................................................................................................................................Error in table(pairdf$forward, pairdf$reverse) :
attempt to make a table with >= 2^31 elements
Calls: mergePairs -> lapply -> FUN -> table
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 /home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp/tmp3jlyy1il/forward /home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp/tmp3jlyy1il/reverse /home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp/tmp3jlyy1il/output.tsv.biom /home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp/tmp3jlyy1il/track.tsv /home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp/tmp3jlyy1il/filt_f /home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp/tmp3jlyy1il/filt_r 0 0 0 0 2.0 2.0 2 consensus 1.0 4 1000000
Traceback (most recent call last):
File "/home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/q2_dada2/_denoise.py", line 234, in denoise_paired
run_commands([cmd])
File "/home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/q2_dada2/_denoise.py", line 36, in run_commands
subprocess.run(cmd, check=True)
File "/home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['run_dada_paired.R', '/home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp/tmp3jlyy1il/forward', '/home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp/tmp3jlyy1il/reverse', '/home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp/tmp3jlyy1il/output.tsv.biom', '/home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp/tmp3jlyy1il/track.tsv', '/home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp/tmp3jlyy1il/filt_f', '/home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/tmp/tmp3jlyy1il/filt_r', '0', '0', '0', '0', '2.0', '2.0', '2', 'consensus', '1.0', '4', '1000000']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/q2cli/commands.py", line 327, in call
results = action(**arguments)
File "</home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/decorator.py:decorator-gen-459>", line 2, in denoise_paired
File "/home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/sdk/action.py", line 240, in bound_callable
output_types, provenance)
File "/home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/qiime2/sdk/action.py", line 383, in callable_executor
output_views = self._callable(**view_args)
File "/home/qfwfq/pgm/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/q2_dada2/_denoise.py", line 249, 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.