dada2 error-return code 1

I am running dada2 with the following script but getting this error
"An error was encountered while running DADA2 in R (return code 1), please inspect stdout and stderr to learn more."
can anyone suggest a way to solve this, please? Thank you.
qiime dada2 denoise-paired
--i-demultiplexed-seqs primer-trimmed-paired-end-demux


.qza
--p-trim-left-f 8
--p-trim-left-r 20
--p-trunc-len-f 269
--p-trunc-len-r 252
--o-representative-sequences oral_rep-seqs-DADA2.qza
--o-table oral_table.qza
--o-denoising-stats oral_DADA2-stats.qza

Hi @TM3197,
Can you re-run the command with the verbose flag?

Thanks for the reply. I ran the script with the different truncating points and verbose flab and this is the error. any input is appreciated.
qiime dada2 denoise-paired
--i-demultiplexed-seqs paired-end-demux.qza
--p-trim-left-f 30
--p-trim-left-r 23
--p-trunc-len-f 278
--p-trunc-len-r 266
--o-representative-sequences oral_rep-seqs-DADA2_v1.qza
--o-table oral_table_v1.qza
--o-denoising-stats oral_DADA2-stats_v1.qza
--verbose

(qiime2-2020.6) [tmad3197@login1 FASTQ_raw_saliva_V1]$ cat job01.e7421204
Loading required package: Rcpp
Error: package or namespace load failed for ‘dada2’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/usr/local/anaconda3/2020.07/envs/qiime2-2020.6/lib/R/library/RCurl/libs/RCurl.so':
/lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/anaconda3/2020.07/envs/qiime2-2020.6/lib/R/library/RCurl/libs/../../../.././libssl.so.1.1)
Execution halted
Traceback (most recent call last):
File "/usr/local/anaconda3/2020.07/envs/qiime2-2020.6/lib/python3.6/site-packages/q2_dada2/_denoise.py", line 264, in denoise_paired
run_commands([cmd])
File "/usr/local/anaconda3/2020.07/envs/qiime2-2020.6/lib/python3.6/site-packages/q2_dada2/_denoise.py", line 36, in run_commands
subprocess.run(cmd, check=True)
File "/usr/local/anaconda3/2020.07/envs/qiime2-2020.6/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['run_dada_paired.R', '/tmp/pbs.7421204.pbsserver/tmp5px6l6fv/forward', '/tmp/pbs.7421204.pbsserver/tmp5px6l6fv/reverse', '/tmp/pbs.7421204.pbsserver/tmp5px6l6fv/output.tsv.biom', '/tmp/pbs.7421204.pbsserver/tmp5px6l6fv/track.tsv', '/tmp/pbs.7421204.pbsserver/tmp5px6l6fv/filt_f', '/tmp/pbs.7421204.pbsserver/tmp5px6l6fv/filt_r', '278', '266', '30', '23', '2.0', '2.0', '2', 'independent', 'consensus', '1.0', '1', '1000000']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/anaconda3/2020.07/envs/qiime2-2020.6/lib/python3.6/site-packages/q2cli/commands.py", line 329, in call
results = action(**arguments)
File "", line 2, in denoise_paired
File "/usr/local/anaconda3/2020.07/envs/qiime2-2020.6/lib/python3.6/site-packages/qiime2/sdk/action.py", line 245, in bound_callable
output_types, provenance)
File "/usr/local/anaconda3/2020.07/envs/qiime2-2020.6/lib/python3.6/site-packages/qiime2/sdk/action.py", line 390, in callable_executor
output_views = self._callable(**view_args)
File "/usr/local/anaconda3/2020.07/envs/qiime2-2020.6/lib/python3.6/site-packages/q2_dada2/_denoise.py", line 279, 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.

Plugin error from dada2:

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

See above for debug info.

Hi @TM3197
I think this is your issue

Can you run which R and share the output? we need to make sure that your conda env is using the qiime2 installed R and not another R installation on your computer.

1 Like

Thank you for the reply. This is what i get:
/usr/local/anaconda3/2020.07/envs/qiime2-2020.6/bin/R

Alright! Are you using qiime2-2020.6?

Yes, I am running Qiiime2 on Artemis and it has an old OS, and newer versions may not be compatible with it. This is what at least uni informed me.

Hi @TM3197,
I tried running this command in qiime2-2020.6 and it worked fine for me.

You said that you are running this on a super computer? Maybe managers of the super computer have messed with R dependencies that have broken dada2? That's just a guess. Do you have IT people that work on Artemis that you could reach out to about this error?

2 Likes

Thank you for the input. This has been solved by the IT.

1 Like

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