# DADA2 error: unused argument (method = "consensus")

**URL:** https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095
**Category:** User Support
**Tags:** dada2
**Created:** [December 5, 2017, 1:37pm UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095 "2017-12-05T13:37:44Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![ana\_RODILES](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ana_rodiles/32/6854_2.png) [@ana\_RODILES](https://forum.qiime2.org/u/ana_RODILES)
#### Post date: [December 5, 2017, 1:37pm UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/1 "2017-12-05T13:37:44Z")

</div>

Hi Thermokarst,

I got a similar error. I am trying qiime2 with a small set of 9 samples. The files are .bz2, I converted to .gz, renamed to cassava 1.8 standard format (I haven't change the set number ''\_001" in any of them, I hope that is fine), examples of the conversion below:

NG-12583\_4A03\_lib191453\_5405\_1\_1.fastq.gz -\> L4A03\_1\_L001\_R1\_001.fastq.gz  
NG-12583\_4A03\_lib191453\_5405\_1\_2.fastq.gz -\> L4A03\_1\_L001\_R2\_001.fastq.gz  
NG-12583\_4A04\_lib191453\_5405\_1\_1.fastq.gz -\> L4A04\_1\_L001\_R1\_001.fastq.gz  
NG-12583\_4A04\_lib191453\_5405\_1\_2.fastq.gz -\> L4A04\_1\_L001\_R2\_001.fastq.gz  
NG-12583\_4A05\_lib191453\_5405\_1\_1.fastq.gz -\> L4A05\_1\_L001\_R1\_001.fastq.gz  
NG-12583\_4A05\_lib191453\_5405\_1\_2.fastq.gz -\> L4A05\_1\_L001\_R2\_001.fastq.gz  
(name of the samples: 4A03, 4A04, 4A05)

Then I imported the data with:

```bash
qiime tools import   
--type 'SampleData[PairedEndSequencesWithQuality]'   
--input-path /mnt/fastqfiles/GATC-04/test  
--source-format CasavaOneEightSingleLanePerSampleDirFmt   
--output-path demux-paired-end.qza

```

then:

```bash
qiime demux summarize \
  --i-data demux-paired-end.qza \
  --o-visualization demux-summary.qzv

```

and finally this, where I got the error:

```bash
qiime dada2 denoise-paired \
  --p-trim-left-f 10 \
  --p-trim-left-r 10 \
  --p-trunc-len-f 260 \
  --p-trunc-len-r 210 \
  --p-max-ee 3 \
  --p-trunc-q 2 \
  --p-n-threads 0 \
  --i-demultiplexed-seqs demux-paired-end.qza \
  --o-representative-sequences rep-seqs.qza \
  --o-table table.qza \
  --verbose;

```

The error I got is:

```bash
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 /tmp/tmp1nuehqcl/forward /tmp/tmp1nuehqcl/reverse /tmp/tmp1nuehqcl/output.tsv.biom /tmp/tmp1nuehqcl/filt_f /tmp/tmp1nuehqcl/filt_r 260 210 10 10 3.0 2 consensus 1.0 0 1000000

R version 3.3.2 (2016-10-31)
Loading required package: Rcpp
DADA2 R package version: 1.2.1
1) Filtering ...................
2) Learning Error Rates
2a) Forward Reads
Initial error matrix unspecified. Error rates will be initialized to the maximum possible estimate from this data.
Initializing error rates to maximum possible estimate.
Sample 1 - 922654 reads in 125731 unique sequences.
Sample 2 - 883708 reads in 116308 unique sequences.
   selfConsist step 2
   selfConsist step 3
   selfConsist step 4
   selfConsist step 5
   selfConsist step 6

Convergence after 6 rounds.
2b) Reverse Reads
Initial error matrix unspecified. Error rates will be initialized to the maximum possible estimate from this data.
Initializing error rates to maximum possible estimate.
Sample 1 - 922654 reads in 156636 unique sequences.
Sample 2 - 883708 reads in 151915 unique sequences.
   selfConsist step 2
   selfConsist step 3
   selfConsist step 4
   selfConsist step 5
   selfConsist step 6
   selfConsist step 7

Convergence after 7 rounds.

3) Denoise remaining samples .................
The sequences being tabled vary in length.
4) Remove chimeras (method = consensus)
Error in isBimeraDenovo(unqs[[i]], ..., verbose = verbose) :
  unused argument (method = "consensus")
Calls: removeBimeraDenovo -> isBimeraDenovo
Execution halted
Traceback (most recent call last):
  File "/home/mothur/anaconda3/envs/qiime2-2017.10/lib/python3.5/site-packages/q2_dada2/_denoise.py", line 179, in denoise_paired
    run_commands([cmd])
  File "/home/mothur/anaconda3/envs/qiime2-2017.10/lib/python3.5/site-packages/q2_dada2/_denoise.py", line 35, in run_commands
    subprocess.run(cmd, check=True)
  File "/home/mothur/anaconda3/envs/qiime2-2017.10/lib/python3.5/subprocess.py", line 398, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['run_dada_paired.R', '/tmp/tmp1nuehqcl/forward', '/tmp/tmp1nuehqcl/reverse', '/tmp/tmp1nuehqcl/output.tsv.biom', '/t mp/tmp1nuehqcl/filt_f', '/tmp/tmp1nuehqcl/filt_r', '260', '210', '10', '10', '3.0', '2', 'consensus', '1.0', '0', '1000000']' returned non-zero exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mothur/anaconda3/envs/qiime2-2017.10/lib/python3.5/site-packages/q2cli/commands.py", line 218, in __call__
    results = action(**arguments)
  File "<decorator-gen-338>", line 2, in denoise_paired
  File "/home/mothur/anaconda3/envs/qiime2-2017.10/lib/python3.5/site-packages/qiime2/sdk/action.py", line 220, in bound_callable
    output_types, provenance)
  File "/home/mothur/anaconda3/envs/qiime2-2017.10/lib/python3.5/site-packages/qiime2/sdk/action.py", line 355, in _callable_executor_
    output_views = self._callable(**view_args)
  File "/home/mothur/anaconda3/envs/qiime2-2017.10/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 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."

```

I haven't remove the primers (10 bp), but I thought with the comand --p-trim-left-f 10   
--p-trim-left-r 10 I am doing this already, please correct me if that is absolutely wrong. I am also using conda not miniconda, could be this also the problem? Many thanks in advance for your help! 🙂

Ana.

---

<div class="post-metadata">

### Author: ![Brightbeard](https://forum.qiime2.org/user_avatar/forum.qiime2.org/brightbeard/32/6473_2.png) [@Brightbeard](https://forum.qiime2.org/u/Brightbeard)
#### Post date: [December 5, 2017, 3:22pm UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/2 "2017-12-05T15:22:50Z")

</div>

The error code and consensus argument look similar to a thread I stumbled upon trying to debug my own DADA2 issue, which can be found here: [An error was encountered while running DADA2 in R (return code 1), please inspect stdout and stderr to learn more - #5 by kkcool](https://forum.qiime2.org/t/an-error-was-encountered-while-running-dada2-in-r-return-code-1-please-inspect-stdout-and-stderr-to-learn-more/1938/5)

Not sure if this is exactly the issue you're encountering or a possible fix, but it's worth checking out.

---

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [December 5, 2017, 3:28pm UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/4 "2017-12-05T15:28:12Z")

</div>

Thanks @Brightbeard! That is actually a different error (`Input must be a valid sequence table.` vs `unused argument(method = "consensus")`, so that thread isn't really applicable to @ana_RODILES issue. Thanks!

* * *

> [@ana\_RODILES](#):
>
> R version 3.3.2 (2016-10-31)  
> Loading required package: Rcpp  
> DADA2 R package version: 1.2.1

@ana_RODILES, it looks like you have a different version of `R` and `dada2` that is overriding the versions that we provide with QIIME 2! This happens sometimes, [please take a look at this hack](https://forum.qiime2.org/t/rprofile-and-libpaths-with-dada2-exit-code-11/1519/3) to see if it fixes the issue for you.

Thanks! 🦖

---

<div class="post-metadata">

### Author: ![parachrosis](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/p/6f9a4e/32.png) [@parachrosis](https://forum.qiime2.org/u/parachrosis)
#### Post date: [December 7, 2017, 6:39pm UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/6 "2017-12-07T18:39:40Z")

</div>

Hİ Matthew,  
Thank you for your reply. I have increased the mem to 500 gb and I change the TEMP directory to somewhere else with the following command.

```bash
export TMPDIR="/home/projects/pr_46704/people/argl/Projects/BioCat/Functional_guilds/Enrichments/ftp.cbs.dtu.dk/Arda/RawData/ftp.cbs.dtu.dk/Raw_Seqs/Temporary"

```

Then it started to analyse however, I got the following error afterwards.

* * *

```bash
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/projects/pr_46704/people/argl/Projects/BioCat/Functional_guilds/Enrichments/ftp.cbs.dtu.dk/Arda/RawData/ftp.cbs.dtu.dk/Raw_Seqs/Temporary/tmpdx70hxgr/forward /home/projects/pr_46704/people/argl/Projects/BioCat/Functional_guilds/Enrichments/ftp.cbs.dtu.dk/Arda/RawData/ftp.cbs.dtu.dk/Raw_Seqs/Temporary/tmpdx70hxgr/reverse /home/projects/pr_46704/people/argl/Projects/BioCat/Functional_guilds/Enrichments/ftp.cbs.dtu.dk/Arda/RawData/ftp.cbs.dtu.dk/Raw_Seqs/Temporary/tmpdx70hxgr/output.tsv.biom /home/projects/pr_46704/people/argl/Projects/BioCat/Functional_guilds/Enrichments/ftp.cbs.dtu.dk/Arda/RawData/ftp.cbs.dtu.dk/Raw_Seqs/Temporary/tmpdx70hxgr/filt_f /home/projects/pr_46704/people/argl/Projects/BioCat/Functional_guilds/Enrichments/ftp.cbs.dtu.dk/Arda/RawData/ftp.cbs.dtu.dk/Raw_Seqs/Temporary/tmpdx70hxgr/filt_r 225 218 22 18 2.0 2 consensus 1.0 0 1000000

R version 3.3.2 (2016-10-31) 
Loading required package: Rcpp
There were 50 or more warnings (use warnings() to see the first 50)
DADA2 R package version: 1.2.2 
1) Filtering ..............................
2) Learning Error Rates
2a) Forward Reads
Initial error matrix unspecified. Error rates will be initialized to the maximum possible estimate from this data.
Initializing error rates to maximum possible estimate.
Sample 1 - 406330 reads in 136553 unique sequences.
Sample 2 - 349337 reads in 134597 unique sequences.
Sample 3 - 276323 reads in 102283 unique sequences.
   selfConsist step 2 
   selfConsist step 3 
   selfConsist step 4 
   selfConsist step 5 

Convergence after 5 rounds.
2b) Reverse Reads
Initial error matrix unspecified. Error rates will be initialized to the maximum possible estimate from this data.
Initializing error rates to maximum possible estimate.
Sample 1 - 406330 reads in 170848 unique sequences.
Sample 2 - 349337 reads in 160545 unique sequences.
Sample 3 - 276323 reads in 125927 unique sequences.
   selfConsist step 2 
   selfConsist step 3 
   selfConsist step 4 
   selfConsist step 5 

Convergence after 5 rounds.

3) Denoise remaining samples ...........................
The sequences being tabled vary in length.
4) Remove chimeras (method = consensus)
Error in isBimeraDenovo(unqs[[i]], ..., verbose = verbose) : 
  unused argument (method = "consensus")
Calls: removeBimeraDenovo -> isBimeraDenovo
Execution halted
Traceback (most recent call last):
  File "/home/people/argl/.conda/envs/qiime2-2017.10/lib/python3.5/site-packages/q2_dada2/_denoise.py", line 179, in denoise_paired
    run_commands([cmd])
  File "/home/people/argl/.conda/envs/qiime2-2017.10/lib/python3.5/site-packages/q2_dada2/_denoise.py", line 35, in run_commands
    subprocess.run(cmd, check=True)
  File "/home/people/argl/.conda/envs/qiime2-2017.10/lib/python3.5/subprocess.py", line 398, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['run_dada_paired.R', '/home/projects/pr_46704/people/argl/Projects/BioCat/Functional_guilds/Enrichments/ftp.cbs.dtu.dk/Arda/RawData/ftp.cbs.dtu.dk/Raw_Seqs/Temporary/tmpdx70hxgr/forward', '/home/projects/pr_46704/people/argl/Projects/BioCat/Functional_guilds/Enrichments/ftp.cbs.dtu.dk/Arda/RawData/ftp.cbs.dtu.dk/Raw_Seqs/Temporary/tmpdx70hxgr/reverse', '/home/projects/pr_46704/people/argl/Projects/BioCat/Functional_guilds/Enrichments/ftp.cbs.dtu.dk/Arda/RawData/ftp.cbs.dtu.dk/Raw_Seqs/Temporary/tmpdx70hxgr/output.tsv.biom', '/home/projects/pr_46704/people/argl/Projects/BioCat/Functional_guilds/Enrichments/ftp.cbs.dtu.dk/Arda/RawData/ftp.cbs.dtu.dk/Raw_Seqs/Temporary/tmpdx70hxgr/filt_f', '/home/projects/pr_46704/people/argl/Projects/BioCat/Functional_guilds/Enrichments/ftp.cbs.dtu.dk/Arda/RawData/ftp.cbs.dtu.dk/Raw_Seqs/Temporary/tmpdx70hxgr/filt_r', '225', '218', '22', '18', '2.0', '2', 'consensus', '1.0', '0', '1000000']' returned non-zero exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/people/argl/.conda/envs/qiime2-2017.10/lib/python3.5/site-packages/q2cli/commands.py", line 218, in __call__
    results = action(**arguments)
  File "<decorator-gen-338>", line 2, in denoise_paired
  File "/home/people/argl/.conda/envs/qiime2-2017.10/lib/python3.5/site-packages/qiime2/sdk/action.py", line 220, in bound_callable
    output_types, provenance)
  File "/home/people/argl/.conda/envs/qiime2-2017.10/lib/python3.5/site-packages/qiime2/sdk/action.py", line 355, in _callable_executor_
    output_views = self._callable(**view_args)
  File "/home/people/argl/.conda/envs/qiime2-2017.10/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 1), please inspect stdout and stderr to learn more.

```

* * *

How can I solve the issue any advices?

---

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [December 7, 2017, 6:59pm UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/8 "2017-12-07T18:59:11Z")

</div>

Hi @parachrosis, can you take a look [at this post](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/4) - specifically the part about package versions? Thanks! 🦖

---

<div class="post-metadata">

### Author: ![ana\_RODILES](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ana_rodiles/32/6854_2.png) [@ana\_RODILES](https://forum.qiime2.org/u/ana_RODILES)
#### Post date: [December 11, 2017, 5:26pm UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/10 "2017-12-11T17:26:37Z")

</div>

Hi @thermokarst, many thanks for your reply. I have tried echo ".libPaths(.libPaths()[2])" \> ~/.Rprofile but unfortunately haven't work. After other advises I have also tried to download the last version of R 3.4.3 (outside of the qiime enviromment) and dada2 1.2.2 (inside of the qiime environment). However I got 'the same' error. Then I uninstall R outside of the qiime2 environment and I got the same error (below). Not very sure what else I can do. Any suggestions please? Many thanks!

(qiime2-2017.11) mothur@Microbiome:/mnt/fastqfiles/GATC-04/test$ qiime dada2 denoise-paired \

> --p-trim-left-f 10   
> --p-trim-left-r 10   
> --p-trunc-len-f 260   
> --p-trunc-len-r 210   
> --p-max-ee 3   
> --p-trunc-q 2   
> --p-n-threads 0   
> --p-chimera-method consensus   
> --i-demultiplexed-seqs demux-paired-end.qza   
> --o-representative-sequences rep-seqs.qza   
> --o-table table.qza   
> --verbose;  
> 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 /tmp/tmpjw1lrtkf/forward /tmp/tmpjw1lrtkf/reverse /tmp/tmpjw1lrtkf/output.tsv.biom /tmp/tmpjw1lrtkf/filt\_f /tmp/tmpjw1lrtkf/filt\_r 260 210 10 10 3.0 2 consensus 1.0 0 1000000

R version 3.3.2 (2016-10-31)  
Loading required package: Rcpp  
There were 50 or more warnings (use warnings() to see the first 50)  
DADA2 R package version: 1.2.2

1. Filtering ...................
2. Learning Error Rates  
2a) Forward Reads  
Initial error matrix unspecified. Error rates will be initialized to the maximum possible estimate from this data.  
Initializing error rates to maximum possible estimate.  
Sample 1 - 922654 reads in 125731 unique sequences.  
Sample 2 - 883708 reads in 116308 unique sequences.  
selfConsist step 2  
selfConsist step 3  
selfConsist step 4  
selfConsist step 5  
selfConsist step 6

Convergence after 6 rounds.  
2b) Reverse Reads  
Initial error matrix unspecified. Error rates will be initialized to the maximum possible estimate from this data.  
Initializing error rates to maximum possible estimate.  
Sample 1 - 922654 reads in 156636 unique sequences.  
Sample 2 - 883708 reads in 151915 unique sequences.  
selfConsist step 2  
selfConsist step 3  
selfConsist step 4  
selfConsist step 5  
selfConsist step 6  
selfConsist step 7

Convergence after 7 rounds.

1. Denoise remaining samples .................  
The sequences being tabled vary in length.
2. Remove chimeras (method = consensus)  
Error in isBimeraDenovo(unqs[[i]], ..., verbose = verbose) :  
unused argument (method = "consensus")  
Calls: removeBimeraDenovo -\> isBimeraDenovo  
Execution halted  
Traceback (most recent call last):  
File "/home/mothur/miniconda3/envs/qiime2-2017.11/lib/python3.5/site-packages/q2\_dada2/\_denoise.py", line 179, in denoise\_paired  
run\_commands([cmd])  
File "/home/mothur/miniconda3/envs/qiime2-2017.11/lib/python3.5/site-packages/q2\_dada2/\_denoise.py", line 35, in run\_commands  
subprocess.run(cmd, check=True)  
File "/home/mothur/miniconda3/envs/qiime2-2017.11/lib/python3.5/subprocess.py", line 398, in run  
output=stdout, stderr=stderr)  
subprocess.CalledProcessError: Command '['run\_dada\_paired.R', '/tmp/tmpjw1lrtkf/forward', '/tmp/tmpjw1lrtkf/reverse', '/tmp/tmpjw1lrtkf/output.tsv.biom', '/tmp/tmpjw1lrtkf/filt\_f', '/tmp/tmpjw1lrtkf/filt\_r', '260', '210', '10', '10', '3.0', '2', 'consensus', '1.0', '0', '1000000']' returned non-zero exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File "/home/mothur/miniconda3/envs/qiime2-2017.11/lib/python3.5/site-packages/q2cli/commands.py", line 218, in **call**  
results = action(\*\*arguments)  
File "", line 2, in denoise\_paired  
File "/home/mothur/miniconda3/envs/qiime2-2017.11/lib/python3.5/site-packages/qiime2/sdk/action.py", line 220, in bound\_callable  
output\_types, provenance)  
File "/home/mothur/miniconda3/envs/qiime2-2017.11/lib/python3.5/site-packages/qiime2/sdk/action.py", line 355, in _callable\_executor_  
output\_views = self.\_callable(\*\*view\_args)  
File "/home/mothur/miniconda3/envs/qiime2-2017.11/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 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.

---

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [December 12, 2017, 3:06am UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/12 "2017-12-12T03:06:09Z")

</div>

> [@ana\_RODILES](#):
>
> I have tried echo “.libPaths(.libPaths()[2])” \> ~/.Rprofile but unfortunately haven’t work.

What do you get when you run the following command?

```bash
$ cat ~/.Rprofile

```

* * *

> [@ana\_RODILES](#):
>
> After other advises I have also tried to download the last version of R 3.4.3 (outside of the qiime enviromment) and dada2 1.2.2 (inside of the qiime environment).

Hmm, I don't think that will help here, but good try!

---

<div class="post-metadata">

### Author: ![ana\_RODILES](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ana_rodiles/32/6854_2.png) [@ana\_RODILES](https://forum.qiime2.org/u/ana_RODILES)
#### Post date: [December 12, 2017, 2:45pm UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/14 "2017-12-12T14:45:39Z")

</div>

> [@thermokarst](#):
>
> What do you get when you run the following command?
> 
> $ echo ~/.Rprofile

I got this:  
/home/mothur/.Rprofile

which is weird because we also tried to delete R, and apparently is still there... The previous person working on the server installed R and dada2... this why "/home/mothur". However my knowledge about virtual machines is scarce... but I'm suspecting some interactions of R dependencies.

I also tried yesterday with Atacama tutorial, in case the problem were because of the sample nature, but same error as usual, in DADA2 with R. Anyway there is something good, I tried today Atacama with Deblur following [Analyzing paired end reads in QIIME 2](https://forum.qiime2.org/t/analyzing-paired-end-reads-in-qiime-2/2021) and it worked (got table, sequences data and stats.qza!). So there is something working 😃

Thanks @thermokarst

Ps. QIIME2 have been also upgraded to qiime2-2017.11

---

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [December 12, 2017, 2:46pm UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/15 "2017-12-12T14:46:24Z")

</div>

Oops! I made a mistake here, I meant to ask you to run this command:

```bash
$ cat ~/.Rprofile

```

* * *

> [@ana\_RODILES](#):
>
> I also tried yesterday with Atacama tutorial, in case the problem were because of the sample nature, but same error as usual, in DADA2 with R. Anyway there is something good, I tried today Atacama with Deblur following Analyzing paired end reads in QIIME 2 and it worked (got table, sequences data and stats.qza!). So there is something working 😃

This makes sense --- deblur doesn't use `R`, so it isn't implicated in all of this!

---

<div class="post-metadata">

### Author: ![ana\_RODILES](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ana_rodiles/32/6854_2.png) [@ana\_RODILES](https://forum.qiime2.org/u/ana_RODILES)
#### Post date: [December 12, 2017, 4:44pm UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/16 "2017-12-12T16:44:45Z")

</div>

> [@thermokarst](#):
>
> Oops! I made a mistake here, I meant to ask you to run this command:
> 
> $ cat ~/.Rprofile

Thanks @thermokarst. I got this:

.libPaths(.libPaths()[2])

Aha, so 2 libraries in here. Any suggestions about how to get free of them? Many thanks!

---

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [December 12, 2017, 5:41pm UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/18 "2017-12-12T17:41:03Z")

</div>

> [@ana\_RODILES](#):
>
> Aha, so 2 libraries in here. Any suggestions about how to get free of them? Many thanks!

I don't think we want to get rid of anything in this file, it looks like exactly what it should be!

Can you report the results when running this command?

```bash
$ R -e ".libPaths()"

```

---

<div class="post-metadata">

### Author: ![ana\_RODILES](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ana_rodiles/32/6854_2.png) [@ana\_RODILES](https://forum.qiime2.org/u/ana_RODILES)
#### Post date: [December 13, 2017, 8:36am UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/20 "2017-12-13T08:36:19Z")

</div>

> [@thermokarst](#):
>
> R -e ".libPaths()"

Ahhhh... that's my knowledge about (=0) Sorry!

-\> Outside of the environment I got this:

The program 'R' is currently not installed. You can install it by typing:  
sudo apt install r-base-core

-\> Inside of the environment I got this:

R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"  
Copyright (C) 2016 The R Foundation for Statistical Computing  
Platform: x86\_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.  
You are welcome to redistribute it under certain conditions.  
Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors.  
Type 'contributors()' for more information and  
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or  
'help.start()' for an HTML browser interface to help.  
Type 'q()' to quit R.

> .libPaths()  
> [1] "/home/mothur/miniconda3/envs/qiime2-2017.11/lib/R/library"

Many thanks!

---

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [December 13, 2017, 7:54pm UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/22 "2017-12-13T19:54:08Z")

</div>

Hi @ana_RODILES, how about we remove your environment and try again? Specifically, can you run the following:

```bash
$ source deactivate
$ conda env remove -n qiime2-2017.11

```

Don't do anything to the `~/.Rprofile` file, we want that to stay right where it is, with the content it has right now.

Then, follow the [official install guide](https://docs.qiime2.org/2017.11/install/native/) to re-install. Let us know how it goes! 🦖

---

<div class="post-metadata">

### Author: ![ana\_RODILES](https://forum.qiime2.org/user_avatar/forum.qiime2.org/ana_rodiles/32/6854_2.png) [@ana\_RODILES](https://forum.qiime2.org/u/ana_RODILES)
#### Post date: [December 15, 2017, 8:37am UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/24 "2017-12-15T08:37:02Z")

</div>

Hi @thermokarst, when I applied those commands I got this:  
Proceed ([y]/n)? y

WARNING conda.core.link:run\_script(516): pre-unlink script failed for package conda-forge::widgetsnbextension-3.0.8-py35\_0  
consider notifying the package maintainer  
mothur@Microbiome:~$ source activate qiime2-2017.11

CondaEnvironmentNotFoundError: Could not find environment: qiime2-2017.11 .  
You can list all discoverable environments with `conda info --envs`.

So I proceed (Y) and I installed qiime 2 following the website again. And magic, dada2 works finally! I think the key was to uninstall qiime2 properly with the last commands you provided. Many thanks for your great help, @thermokarst!!!!!

---

<div class="post-metadata">

### Author: ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)
#### Post date: [January 15, 2018, 2:37pm UTC](https://forum.qiime2.org/t/dada2-error-unused-argument-method-consensus/2095/25 "2018-01-15T14:37:08Z")

</div>

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