Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #166

Merged
merged 1 commit into from
Jul 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 7 additions & 19 deletions config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,14 @@ Make sure to inspect and set up the two config files in this folder.

## 🛢️ Environments

Set up three conda environments:
1. `mamba`: Used for installing mamba and setting up subsequent environments from recipe files
2. `metagem`: Contains most `metaGEM` core workflow tools, Python 3 & Snakemake>=5.10.0,<5.31.1
3. `metawrap` Contains `metaWRAP` and its dependencies, Python 2

### 1. mamba

Conda can take *ages* to solve environment dependencies when installing many tools at once, we can use [mamba](https://github.com/mamba-org/mamba) instead for faster installation.

```
conda create -n mamba mamba
```
Set up two environments:
1. `metagem`: Contains most `metaGEM` core workflow tools, Python 3 & Snakemake>=5.10.0,<5.31.1
2. `metawrap` Contains `metaWRAP` and its dependencies, Python 2

Activate mamba environment to quickly set up subsequent environments.

```
source activate mamba
```

### 2. metaGEM
### 1. metaGEM

Clone metaGEM repo

Expand Down Expand Up @@ -69,10 +57,10 @@ Alternative method: create metaGEM env using recipe .yml file
mamba env create --prefix ./envs/metagem -f envs/metaGEM_env.yml
```

Deactivate mamba env and activate metaGEM env
Deactivate activate metaGEM env

```
source deactivate && source activate envs/metagem
source activate envs/metagem
```

Install pip tools
Expand All @@ -81,7 +69,7 @@ Install pip tools
pip install --user memote carveme smetana
```

### 3. metaWRAP
### 2. metaWRAP

It is best to set up `metaWRAP` in its own isolated environment to prevent version conflicts with `metaGEM`. Note that `metaWRAP v1.3.2` has not migrated from python 2 to python 3 yet.

Expand Down