Skip to content

Commit

Permalink
update instructions to include Q2 metagenome as default
Browse files Browse the repository at this point in the history
  • Loading branch information
adamovanja committed Jun 13, 2024
1 parent f663e12 commit 1dff63e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 22 deletions.
58 changes: 37 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,34 @@
</p><br>

## Installation
You can install q2-fondue using mamba in a conda environment of its own (option 1) or in an existing QIIME 2 environment (option 2) by following the steps described below. The current q2-fondue version supports QIIME 2 **v2021.4** or higher. To install q2-fondue with a version <= 2023.7 see section ["Installing q2-fondue with version <= 2023.7"](#legacy). Alternatively, a minimal Docker image is available to run q2-fondue v2023.7 (option 3 below - note other Docker image q2-fondue versions are work in progress).
There are multiple options to install q2-fondue - each targeted towards different needs. You can install q2-fondue (**v2024.5** or higher):
* as part of the QIIME 2 metagenome distribution if you want to use it in the QIIME 2 metagenome universe (see [option 1](#option1)).
* within a QIIME 2 amplicon environment if you want to use it in the QIIME 2 amplicon universe (see [option 2](#option2)).
* in a conda environment of its own if you want to use it independent of other QIIME 2 tools (see [option 3](#option3)).

For both options 1 and 2 make sure to start by installing [mamba](https://mamba.readthedocs.io/en/latest/index.html) in your base environment:
To install q2-fondue with a version <= 2023.7 see section ["Installing q2-fondue with version <= 2023.7"](#legacy).

### [Option 1:](#option1) Install q2-fondue with QIIME 2 metagenome distribution:
* Install q2-fondue together with the QIIME 2 metagenome distribution as outlined [here](https://docs.qiime2.org/2024.5/install/native/#qiime-2-metagenome-distribution).
* Now, don't forget to run **[the mandatory configuration step](#mandatory-configuration-for-all-three-options)**!

### [Option 2:](#option2) Install q2-fondue within a QIIME 2 amplicon conda environment:
* Install the QIIME 2 amplicon distribution within a conda environment as described in [the official user documentation](https://docs.qiime2.org/2024.5/install/native/#qiime-2-amplicon-distribution).
* Activate the QIIME 2 environment (v2024.5 or higher) and install q2-fondue within while making sure that the used conda channel matches the version of the QIIME 2 environment (replace below `{ENV_VERSION}` with the version number of your QIIME 2 environment):
```
conda activate qiime2-amplicon-{ENV_VERSION}
mamba install -y \
-c https://packages.qiime2.org/qiime2/{ENV_VERSION}/metagenome/released/ \
-c conda-forge -c bioconda -c defaults \
q2-fondue
```
* Now, don't forget to run **[the mandatory configuration step](#mandatory-configuration-for-all-three-options)**!

### [Option 3:](#option3) Minimal fondue environment:
* Start with installing [mamba](https://mamba.readthedocs.io/en/latest/index.html) in your base environment:
```shell
conda install mamba -n base -c conda-forge
```

### Option 1: Minimal fondue environment:
* Create and activate a conda environment with the required dependencies:
```shell
mamba create -y -n fondue \
Expand All @@ -29,21 +49,11 @@ mamba create -y -n fondue \

conda activate fondue
```
Now, don't forget to run [the mandatory configuration step](#mandatory-configuration-for-both-options-1-and-2)!
* Now, don't forget to run **[the mandatory configuration step](#mandatory-configuration-for-all-three-options)**!

### Option 2: Install fondue within existing QIIME 2 environment
* Install QIIME 2 within a conda environment as described in [the official user documentation](https://docs.qiime2.org/).
* Activate the QIIME 2 environment (v2024.5 or higher) and install fondue within while making sure that the used conda channel matches the version of the QIIME 2 environment (replace below `{ENV_VERSION}` with the version number of your QIIME 2 environment):
```
conda activate qiime2-{ENV_VERSION}
mamba install -y \
-c https://packages.qiime2.org/qiime2/{ENV_VERSION}/metagenome/released/ \
-c conda-forge -c bioconda -c defaults \
q2-fondue
```
Now, don't forget to run [the mandatory configuration step](#mandatory-configuration-for-both-options-1-and-2)!
Note: You can replace the version number `2024.5` with later releases if they are already available.

### Mandatory configuration for both options 1 and 2
### Mandatory configuration for all three options
* Refresh the QIIME 2 CLI cache and see that everything worked:
```shell
qiime dev refresh-cache
Expand All @@ -64,11 +74,17 @@ vdb-config --proxy <your proxy URL> --proxy-disable no
```

### [Installing q2-fondue with version <= 2023.7](#legacy)
To install fondue with a version <= 2023.7 in either a minimal environment (option 1) or within an existing QIIME2 environment (option 2), you have to edit the channel to: `https://packages.qiime2.org/qiime2/{ENV_VERSION}/tested/` (inserting the respective version number `{ENV_VERSION}`).
To install fondue with a version <= 2023.7 in a minimal environment run the following command inserting the respective version number `{ENV_VERSION}`:
```shell
mamba create -y -n fondue \
-c https://packages.qiime2.org/qiime2/{ENV_VERSION}/tested/ \
-c conda-forge -c bioconda -c defaults \
q2cli q2-fondue

conda activate fondue
```

### Option 3: Use fondue via a public Docker image
Use containerization to integrate q2-fondue into your pipelines, or simply run reproducibly without the need for heavyweight package managers. [Read more about Docker here.](https://www.docker.com/get-started/)

Alternatively, a minimal Docker image is available to run q2-fondue==v2023.7:
* Install [Docker](https://docs.docker.com/engine/install/) with the linked instructions
* Pull the [q2-fondue Docker image](https://hub.docker.com/layers/linathekim/q2-fondue/2023.7/images/sha256-f5d26959ac035811a8f34e2a46f6cc381f9a4ce21b3604a196c1ee176ba708e7?context=repo):
```shell
Expand Down
2 changes: 1 addition & 1 deletion tutorial/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Some microbiome datasets are also uploaded on [Qiita](https://qiita.ucsd.edu), a
After reading about regionally distinct microbial communities in vineyards in the publication by Bokulich et al. (2016)<sup>2</sup>, we are super curious to explore the dataset this study was based on. Luckily, with _q2-fondue_ retrieving all this data is a cakewalk! :cake:

### Installation
To install _q2-fondue_ please follow the instructions for installing _q2-fondue_ in an existing QIIME 2 environment (option 2) available in the [README](../README.md).
To install _q2-fondue_ please follow the instructions for installing _q2-fondue_ in an existing QIIME 2 amplicon environment (option 2) available in the [README](../README.md).

### Getting started

Expand Down

0 comments on commit 1dff63e

Please sign in to comment.