Hello There,
I am using 6 samples-16S RNA metagenomics data for analysis. I am using 64 GB RAM system with 16 processors and running ubuntu in windows subsystem.
I have encountered with the (reuturn code 1) error in dada2 step. My data is already filtered and trimmed using cutadapt.
Please see the following command:
qiime dada2 denoise-paired
--i-demultiplexed-seqs IHF_37_paired-end-demux.qza
--p-trim-left-f 0
--p-trim-left-r 0
--p-trunc-len-f 0
--p-trunc-len-r 0
--o-representative-sequences IHF_37_rep-seqs-dada2.qza
--o-table table-dada2.qza
--o-denoising-stats stats-dada2.qza
--p-n-threads 12
I have installed qiime2 (version:2022)
Ichecked the error in the forum but unable to find the solution for my error.
Error:
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.R --input_directory /tmp/tmpwnwjuvx5/forward --input_directory_reverse /tmp/tmpwnwjuvx5/reverse --output_path /tmp/tmpwnwjuvx5/output.tsv.biom --output_track /tmp/tmpwnwjuvx5/track.tsv --filtered_directory /tmp/tmpwnwjuvx5/filt_f --filtered_directory_reverse /tmp/tmpwnwjuvx5/filt_r --truncation_length 0 --truncation_length_reverse 0 --trim_left 0 --trim_left_reverse 0 --max_expected_errors 2.0 --max_expected_errors_reverse 2.0 --truncation_quality_score 2 --min_overlap 12 --pooling_method independent --chimera_method consensus --min_parental_fold 1.0 --allow_one_off False --num_threads 12 --learn_min_reads 1000000 R version 4.1.3 (2022-03-10) Loading required package: Rcpp DADA2: 1.22.0 / Rcpp: 1.0.9 / RcppParallel: 5.1.5 2) Filtering Error in filterAndTrim(unfilts, filts, unfiltsR, filtsR, truncLen = c(truncLen, : These are the errors (up to 5) encountered in individual cores... Error in writeFastq(fqR, fout[[2]], "a", compress = compress) : failed to write record 44333 Error in writeFastq(fqF, fout[[1]], "a", compress = compress) : failed to write record 1334 Error in writeFastq(fqF, fout[[1]], "a", compress = compress) : failed to write record 1081 Error in writeFastq(fqF, fout[[1]], "a", compress = compress) : failed to write record 814 Error in writeFastq(fqR, fout[[2]], "a", compress = compress) : failed to write record 9275 Execution halted Traceback (most recent call last): File "/home/mmmuser_101/anaconda3/envs/qiime2-2022/lib/python3.8/site-packages/q2_dada2/_denoise.py", line 308, in denoise_paired run_commands([cmd]) File "/home/mmmuser_101/anaconda3/envs/qiime2-2022/lib/python3.8/site-packages/q2_dada2/_denoise.py", line 36, in run_commands subprocess.run(cmd, check=True) File "/home/mmmuser_101/anaconda3/envs/qiime2-2022/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['run_dada.R', '--input_directory', '/tmp/tmpwnwjuvx5/forward', '--input_directory_reverse', '/tmp/tmpwnwjuvx5/reverse', '--output_path', '/tmp/tmpwnwjuvx5/output.tsv.biom', '--output_track', '/tmp/tmpwnwjuvx5/track.tsv', '--filtered_directory', '/tmp/tmpwnwjuvx5/filt_f', '--filtered_directory_reverse', '/tmp/tmpwnwjuvx5/filt_r', '--truncation_length', '0', '--truncation_length_reverse', '0', '--trim_left', '0', '--trim_left_reverse', '0', '--max_expected_errors', '2.0', '--max_expected_errors_reverse', '2.0', '--truncation_quality_score', '2', '--min_overlap', '12', '--pooling_method', 'independent', '--chimera_method', 'consensus', '--min_parental_fold', '1.0', '--allow_one_off', 'False', '--num_threads', '12', '--learn_min_reads', '1000000']' returned non-zero exit status 1. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/mmmuser_101/anaconda3/envs/qiime2-2022/lib/python3.8/site-packages/q2cli/commands.py", line 339, in call results = action(**arguments) File "", line 2, in denoise_paired File "/home/mmmuser_101/anaconda3/envs/qiime2-2022/lib/python3.8/site-packages/qiime2/sdk/action.py", line 234, in bound_callable outputs = self.callable_executor(scope, callable_args, File "/home/mmmuser_101/anaconda3/envs/qiime2-2022/lib/python3.8/site-packages/qiime2/sdk/action.py", line 381, in callable_executor output_views = self._callable(**view_args) File "/home/mmmuser_101/anaconda3/envs/qiime2-2022/lib/python3.8/site-packages/q2_dada2/_denoise.py", line 321, in denoise_paired raise Exception("An error was encountered while running DADA2" Exception: An error was encountered while running DADA2 in R (return code 1), please inspect stdout and stderr to learn more.