Skip to content

Commit d6df160

Browse files
jairideoutGreg Caporaso
authored andcommitted
ENH: install latest dada2 via Bioconductor (qiime2#62)
Also updates conda install commands to specify ``--override-channels`` and ``-c defaults`` to avoid issues with channels in ``.condarc``.
1 parent 85cdcf2 commit d6df160

File tree

4 files changed

+54
-14
lines changed

4 files changed

+54
-14
lines changed

source/data-resources.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Taxonomy classifiers for use with q2-feature-classifier
1111
.. command-block::
1212
:no-exec:
1313

14-
conda install scikit-learn=0.18.1
14+
conda install --override-channels -c defaults scikit-learn=0.18.1
1515

1616
.. note:: Taxonomic classifiers perform best when they are trained based on your specific sample preparation and sequencing parameters, including the primers that were used for amplification and the length of your sequence reads. Therefore in general you should follow the instructions in :doc:`Training feature classifiers with q2-feature-classifier <../tutorials/feature-classifier>` to train your own taxonomic classifiers (for example, from the marker gene reference databases below). We provided some common classifiers as this step can require a large amount of memory. For example, the Silva classifier linked here required approximately 30 GB of RAM to train.
1717

source/install/native.rst

Lines changed: 51 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
Natively installing QIIME 2
22
===========================
33

4-
.. note:: QIIME 2 does not currently support Windows. It is something we will be working on soon, and in the meantime we recommend using a virtual machine or services such as Amazon Elastic Compute Cloud if a Unix/Mac platform is not available to you.
5-
64
This document describes how to install the QIIME 2 framework, a command-line interface, and some plugins used in the :doc:`tutorials <../tutorials/index>`.
75

6+
.. note:: QIIME 2 does not currently support Windows. It is something we will be working on soon, and in the meantime we recommend using one of the :doc:`QIIME 2 virtual machines <virtual-machine>`.
7+
8+
.. note:: Installing QIIME 2 will become easier as we transition out of the alpha release phase.
9+
810
Install Miniconda
911
-----------------
1012

@@ -22,9 +24,9 @@ You can choose whatever name you'd like for the environment. In this example, we
2224
.. command-block::
2325
:no-exec:
2426

25-
conda create -n qiime2 -c qiime2 python=3.5 qiime q2cli
27+
conda create -n qiime2 --override-channels -c qiime2 -c defaults python=3.5 qiime2 q2cli
2628

27-
``-n qiime2`` specifies the name of the environment, and ``-c qiime2`` specifies the channel to search for packages.
29+
.. note:: ``-n qiime2`` specifies the name of the environment, and ``--override-channels -c qiime2 -c defaults`` specifies the channels to search for packages, regardless of the channels that may exist in a `.condarc` file.
2830

2931
Now that you have an environment, activate it using the environment's name:
3032

@@ -81,8 +83,8 @@ Out of the box, installing the QIIME 2 framework and command-line interface does
8183
.. command-block::
8284
:no-exec:
8385

84-
conda install matplotlib==1.5.1
85-
conda install -c qiime2 q2-types q2-feature-table
86+
conda install --override-channels -c defaults matplotlib==1.5.1
87+
conda install --override-channels -c qiime2 -c defaults q2-types q2-feature-table
8688

8789
Now execute the ``qiime info`` command again:
8890

@@ -105,7 +107,7 @@ Install the ``q2-diversity`` and ``q2-emperor`` plugins as well:
105107
.. command-block::
106108
:no-exec:
107109

108-
conda install -c qiime2 -c conda-forge q2-diversity q2-emperor
110+
conda install --override-channels -c qiime2 -c conda-forge -c defaults q2-diversity q2-emperor
109111

110112
You'll now have four plugins installed:
111113

@@ -121,14 +123,52 @@ To see more information about an action provided by a plugin, pass ``--help`` to
121123

122124
qiime diversity beta-phylogenetic --help
123125

124-
Let's wrap up by installing several more plugins used in the tutorials.
126+
Let's wrap up by installing several more plugins used in the tutorials, along with their dependencies.
125127

126128
.. command-block::
127129
:no-exec:
128130

129-
conda install -c bioconda -c r bioconductor-dada2 mafft
130-
conda install -c biocore fasttree
131-
conda install -c qiime2 q2-demux q2-alignment q2-phylogeny q2-dada2 q2-composition q2-taxa q2-feature-classifier
131+
conda install --override-channels -c bioconda -c defaults mafft
132+
conda install --override-channels -c biocore -c defaults fasttree
133+
conda install --override-channels -c qiime2 -c defaults q2-demux q2-alignment q2-phylogeny q2-composition q2-taxa q2-feature-classifier
134+
135+
The ``q2-dada2`` plugin requires R and the `latest version of dada2 available through Bioconductor <https://www.bioconductor.org/packages/release/bioc/html/dada2.html>`_. Installing dada2 through Bioconductor is necessary because the latest version of dada2 is not available through ``conda`` at the time of this writing. There is work being done to make the latest version of dada2 available through ``conda``. When the package is available, the installation process will become faster and easier.
136+
137+
.. command-block::
138+
:no-exec:
139+
140+
conda install --override-channels -c r -c defaults r
141+
CDPATH= R -e 'source("https://bioconductor.org/biocLite.R"); biocLite("dada2")'
142+
conda install --override-channels -c qiime2 -c defaults q2-dada2
143+
144+
.. tip::
145+
146+
If installation of dada2 using Bioconductor fails, try the following suggestions (if applicable to your computing environment):
147+
148+
* Per the `Bioconductor installation instructions <https://www.bioconductor.org/install/>`_, try using ``http://`` instead of ``https://`` in the Bioconductor URL that is sourced above (i.e. http://bioconductor.org/biocLite.R instead of https://bioconductor.org/biocLite.R).
149+
150+
* If you are using a Mac (i.e. macOS or OS X), install the Xcode Command Line Tools.
151+
152+
* Ensure the version of R you have installed is compatible with dada2. The `dada2 Bioconductor install guide <https://www.bioconductor.org/packages/release/bioc/html/dada2.html>`_ lists the minimum required version of R. You can see what version of R you have installed by running:
153+
154+
.. command-block::
155+
156+
R --version
157+
158+
If the R version is incompatible, try updating to a newer version by running:
159+
160+
.. command-block::
161+
:no-exec:
162+
163+
conda update --override-channels -c r -c defaults r
164+
165+
* To test that dada2 installed correctly, run:
166+
167+
.. command-block::
168+
169+
R -e 'library("dada2")'
170+
171+
If no errors are reported, the installation was successful!
132172

133173
Now that you have some plugins installed and have explored the command-line interface a bit, you're ready to analyze microbiome data! Check out the :doc:`QIIME 2 tutorials <../tutorials/index>` for analyses of tutorial datasets.
134174

source/interfaces/artifact-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Next, reinstall the ``q2-feature-table`` and ``q2-diversity`` plugins (``q2-dive
2323
.. command-block::
2424
:no-exec:
2525

26-
conda install -c qiime2 q2-feature-table q2-diversity
26+
conda install --override-channels -c qiime2 -c defaults q2-feature-table q2-diversity
2727

2828
Open your interpreter, and you should now be able to import this plugin:
2929

source/plugins/developing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The plugin includes some example functionality that you can try out (for example
4646
.. command-block::
4747
:no-exec:
4848

49-
conda install -c qiime2 q2-dummy-types
49+
conda install --override-channels -c qiime2 -c defaults q2-dummy-types
5050

5151
Next, navigate to the plugin directory that was created and install the plugin in development mode:
5252

0 commit comments

Comments
 (0)