Hi there,
I have encountered the following error running dada2. Here is my original command and the contents of the log file. Strange to see only one sample being used for estimating error rates as there are 82 samples in the qza file. Error rates could not be estimated seems to be the culprit, error matrix null. Any idea what may be going on here? Is the program stalling out on the first file?
Sample data was imported via a manifest file but was checked to make sure it was imported correctly. Viewing the summary of importing shows 82 samples with 10,000 to 12,000,000 reads each, run on NovaSeq.
COMMAND:
(qiime2-2022.8) [email protected] raw % qiime dada2 denoise-paired \
--i-demultiplexed-seqs /Volumes/Accelsior4M2/Emily_CEGA_2022/12S/qiime/12S_samples.qza \
--p-trunc-len-f 116 \
--p-trunc-len-r 108 \
--p-n-threads 0 \
--o-table /Volumes/Accelsior4M2/Emily_CEGA_2022/12S/qiime/12S_samples_filtered_table.qza \
--o-representative-sequences /Volumes/Accelsior4M2/Emily_CEGA_2022/12S/qiime/12S_samples_rep_seqs.qza \
--o-denoising-stats /Volumes/Accelsior4M2/Emily_CEGA_2022/12S/qiime/12S_samples_denoising_stats.qza
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 /var/folders/ct/s1pv_mxs0kd8s0m574z7ds980000gn/T/qiime2-q2cli-err-k4gofbvc.log
LOG FILE:
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 /var/folders/ct/s1pv_mxs0kd8s0m574z7ds980000gn/T/tmpht0r8905/forward --input_directory_reverse /var/folders/ct/s1pv_mxs0kd8s0m574z7ds980000gn/T/tmpht0r8905/reverse --output_path /var/folders/ct/s1pv_mxs0kd8s0m574z7ds980000gn/T/tmpht0r8905/output.tsv.biom --output_track /var/folders/ct/s1pv_mxs0kd8s0m574z7ds980000gn/T/tmpht0r8905/track.tsv --filtered_directory /var/folders/ct/s1pv_mxs0kd8s0m574z7ds980000gn/T/tmpht0r8905/filt_f --filtered_directory_reverse /var/folders/ct/s1pv_mxs0kd8s0m574z7ds980000gn/T/tmpht0r8905/filt_r --truncation_length 116 --truncation_length_reverse 108 --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 0 --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 ........................................................................
3) Learning Error Rates
281961200 total bases in 2430700 reads from 1 samples will be used for learning the error rates.
262515600 total bases in 2430700 reads from 1 samples will be used for learning the error rates.
Error rates could not be estimated (this is usually because of very few reads).
Error in getErrors(err, enforce = TRUE) : Error matrix is NULL.
Execution halted
Traceback (most recent call last):
File "/Users/mobio/opt/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/q2_dada2/_denoise.py", line 308, in denoise_paired
run_commands([cmd])
File "/Users/mobio/opt/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/q2_dada2/_denoise.py", line 36, in run_commands
subprocess.run(cmd, check=True)
File "/Users/mobio/opt/miniconda3/envs/qiime2-2022.8/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['run_dada.R', '--input_directory', '/var/folders/ct/s1pv_mxs0kd8s0m574z7ds980000gn/T/tmpht0r8905/forward', '--input_directory_reverse', '/var/folders/ct/s1pv_mxs0kd8s0m574z7ds980000gn/T/tmpht0r8905/reverse', '--output_path', '/var/folders/ct/s1pv_mxs0kd8s0m574z7ds980000gn/T/tmpht0r8905/output.tsv.biom', '--output_track', '/var/folders/ct/s1pv_mxs0kd8s0m574z7ds980000gn/T/tmpht0r8905/track.tsv', '--filtered_directory', '/var/folders/ct/s1pv_mxs0kd8s0m574z7ds980000gn/T/tmpht0r8905/filt_f', '--filtered_directory_reverse', '/var/folders/ct/s1pv_mxs0kd8s0m574z7ds980000gn/T/tmpht0r8905/filt_r', '--truncation_length', '116', '--truncation_length_reverse', '108', '--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', '0', '--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 "/Users/mobio/opt/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/q2cli/commands.py", line 339, in __call__
results = action(**arguments)
File "<decorator-gen-292>", line 2, in denoise_paired
File "/Users/mobio/opt/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/qiime2/sdk/action.py", line 234, in bound_callable
outputs = self._callable_executor_(scope, callable_args,
File "/Users/mobio/opt/miniconda3/envs/qiime2-2022.8/lib/python3.8/site-packages/qiime2/sdk/action.py", line 381, in _callable_executor_
output_views = self._callable(**view_args)
File "/Users/mobio/opt/miniconda3/envs/qiime2-2022.8/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.
THANKS!!!