Hi @ebolyen,
I checked and I realized that I didn't have .Rpofile in my home directory
So, I followed the suggestions on getting .Rpofile into my home directory as shown below:
Run: echo ".libPaths(.libPaths()[2])" > $HOME/.Rprofile
Run: cat ~/.Rprofile
.libPaths(.libPaths()[2])
Run: R -e ".libPaths()"
.libPaths()
[1] "/Users/perismunyaka/miniconda3/envs/qiime2-2017.12/lib/R/library"
After this, I run my DADA2 script again. This time round the script continued running for 30 minutes after which, I got the same error.
Plugin error from dada2:
An error was encountered while running DADA2 in R (return code -11), please inspect stdout and stderr to learn more.
Debug info has been saved to /var/folders/p9/31kshwj91nv0tgcrml76m11m0000gn/T/qiime2-q2cli-err-u6zf12vt.log
Here is the 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_paired.R /var/folders/p9/31kshwj91nv0tgcrml76m11m0000gn/T/tmp00g5__lr/forward /var/folders/p9/31kshwj91nv0tgcrml76m11m0000gn/T/tmp00g5__lr/reverse /var/folders/p9/31kshwj91nv0tgcrml76m11m0000gn/T/tmp00g5__lr/output.tsv.biom /var/folders/p9/31kshwj91nv0tgcrml76m11m0000gn/T/tmp00g5__lr/filt_f /var/folders/p9/31kshwj91nv0tgcrml76m11m0000gn/T/tmp00g5__lr/filt_r 300 240 10 0 2.0 2 consensus 1.0 1 1000000
R version 3.4.1 (2017-06-30)
Loading required package: Rcpp
DADA2 R package version: 1.6.0
- Filtering ........................................................................................................................................................................................................................................................................................................................
- Learning Error Rates
2a) Forward Reads
Initializing error rates to maximum possible estimate.
Sample 1 - 12719 reads in 4682 unique sequences.
*** caught segfault ***
address 0x8, cause 'memory not mapped'
Traceback:
1: .Call("_dada2_dada_uniques", PACKAGE = "dada2", seqs, abundances, err, quals, score, gap, use_kmers, kdist_cutoff, band_size, omegaA, max_clust, min_fold, min_hamming, min_abund, use_quals, final_consensus, vectorized_alignment, homo_gap, multithread, verbose, SSE)
2: dada_uniques(names(derep[[i]]$uniques), unname(derep[[i]]$uniques), err, qi, opts[["SCORE_MATRIX"]], opts[["GAP_PENALTY"]], opts[["USE_KMERS"]], opts[["KDIST_CUTOFF"]], opts[["BAND_SIZE"]], opts[["OMEGA_A"]], if (initializeErr) { 1 } else { opts[["MAX_CLUST"]] }, opts[["MIN_FOLD"]], opts[["MIN_HAMMING"]], opts[["MIN_ABUNDANCE"]], TRUE, FALSE, opts[["VECTORIZED_ALIGNMENT"]], opts[["HOMOPOLYMER_GAP_PENALTY"]], multithread, (verbose >= 2), opts[["SSE"]])
3: dada(drpsF, err = NULL, selfConsist = TRUE, multithread = multithread, VECTORIZED_ALIGNMENT = FALSE, SSE = 2)
An irrecoverable exception occurred. R is aborting now ...
Traceback (most recent call last):
File "/Users/perismunyaka/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2_dada2/_denoise.py", line 179, in denoise_paired
run_commands([cmd])
File "/Users/perismunyaka/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2_dada2/_denoise.py", line 35, in run_commands
subprocess.run(cmd, check=True)
File "/Users/perismunyaka/miniconda3/envs/qiime2-2017.12/lib/python3.5/subprocess.py", line 398, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['run_dada_paired.R', '/var/folders/p9/31kshwj91nv0tgcrml76m11m0000gn/T/tmp00g5__lr/forward', '/var/folders/p9/31kshwj91nv0tgcrml76m11m0000gn/T/tmp00g5__lr/reverse', '/var/folders/p9/31kshwj91nv0tgcrml76m11m0000gn/T/tmp00g5__lr/output.tsv.biom', '/var/folders/p9/31kshwj91nv0tgcrml76m11m0000gn/T/tmp00g5__lr/filt_f', '/var/folders/p9/31kshwj91nv0tgcrml76m11m0000gn/T/tmp00g5__lr/filt_r', '300', '240', '10', '0', '2.0', '2', 'consensus', '1.0', '1', '1000000']' returned non-zero exit status -11
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/perismunyaka/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2cli/commands.py", line 224, in call
results = action(**arguments)
File "", line 2, in denoise_paired
File "/Users/perismunyaka/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/qiime2/sdk/action.py", line 228, in bound_callable
output_types, provenance)
File "/Users/perismunyaka/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/qiime2/sdk/action.py", line 363, in callable_executor
output_views = self._callable(**view_args)
File "/Users/perismunyaka/miniconda3/envs/qiime2-2017.12/lib/python3.5/site-packages/q2_dada2/_denoise.py", line 194, in denoise_paired
" and stderr to learn more." % e.returncode)
Exception: An error was encountered while running DADA2 in R (return code -11), please inspect stdout and stderr to learn more.