Skip to content

Commit f575070

Browse files
author
ocaisa
authored
Merge pull request #38 from tkphd/miniconda
revise Miniconda instructions
2 parents 80b3806 + 2e1e7c1 commit f575070

File tree

3 files changed

+21
-12
lines changed

3 files changed

+21
-12
lines changed

_episodes/13-cluster.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,24 @@ $ tar -xvzf pipeline.tar.gz
167167
```
168168
{: .language-bash}
169169

170-
If Snakemake and Python are not already installed on your cluster,
171-
you can install them using the following commands:
170+
If Snakemake and Python are not already installed on your cluster, you can
171+
install them in an Anaconda Python environment using the following commands:
172172

173173
```
174174
$ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
175-
$ bash Miniconda3-latest-Linux-x86_64.sh -b
176-
$ echo 'export PATH=~/miniconda3/bin:~/.local/bin:$PATH' >> ~/.bashrc
177-
$ source ~/.bashrc
178-
$ conda install -y matplotlib numpy graphviz
179-
$ pip install --user snakemake
175+
$ bash Miniconda3-latest-Linux-x86_64.sh
176+
```
177+
{: .language-bash}
178+
179+
This is an interactive installation through the command line. Review and accept
180+
the license agreement, then work through the prompts. The defaults are probably
181+
fine. Accept its offer to initialize your environment (`conda init`), then run
182+
the suggested command to load the `conda` base environment so you can use it
183+
straight away. Finally, install Snakemake from the [bioconda channel](
184+
https://anaconda.org/bioconda):
185+
186+
```
187+
$ conda install -y -c bioconda graphviz matplotlib numpy snakemake
180188
```
181189
{: .language-bash}
182190

@@ -208,7 +216,7 @@ Here we've used SLURM's `sbatch` command and arguments for setting time limits
208216
and resources with snakemake wildcards defining the requested values.
209217

210218
We've also specified where to save SLURM logs and what to call them. **Note** that
211-
this folder must already exist. If the folders don't exist, snakemake will hang.
219+
this folder must already exist. If the folders don't exist, Snakemake will hang.
212220

213221
Values for any command line argument to snakemake can be defined in our
214222
profile, although a value is required (e.g. the `--use-conda` argument could be

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ At the end of this lesson, you will know how to:
3535
> <https://docs.conda.io/en/latest/miniconda.html>.
3636
>
3737
> To install snakemake, please run the following in a command-line terminal:
38-
> `conda install snakemake`
38+
> `conda install -c bioconda snakemake`
3939
>
4040
> The files used in this lesson can be downloaded
4141
> [here](files/snakemake-lesson.zip).

setup.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ includes several significant performance improvements over "vanilla" Python.
1717

1818
## Snakemake
1919

20-
Once you have a Miniconda environment configured, please install Snakemake with
20+
Once you have a Miniconda environment configured, please install Snakemake from
21+
the [bioconda channel](https://anaconda.org/bioconda) with
2122

2223
```
23-
conda install snakemake
24+
$ conda install -c bioconda snakemake
2425
```
25-
{: .source}
26+
{: .language-bash}
2627

2728
## Shell and SSH
2829

0 commit comments

Comments
 (0)