File: tutorial-install.md

package info (click to toggle)
sourmash 4.9.4-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 54,688 kB
  • sloc: python: 59,380; ansic: 332; makefile: 277; sh: 6
file content (44 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Installing sourmash

This tutorial should run without modification on Linux or Mac OS X,
under [Miniforge](https://github.com/conda-forge/miniforge).

You'll need about 5 GB of free disk space.

## Install miniforge

If you don't have the `mamba` command installed, you'll need to install
[miniforge](https://github.com/conda-forge/miniforge#install).

On Linux, this should work:
```
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh -b

~/miniforge3/bin/mamba init

echo 'source ~/.bashrc' > ~/.bash_profile
source ~/.bash_profile
```
otherwise, follow the instructions [here](https://github.com/conda-forge/miniforge#install).

## Install sourmash

To install sourmash, create a new environment named `smash` and install sourmash:

```
mamba create -y -n smash sourmash-minimal
```

and then activate:
```
conda activate smash
```

You should now be able to use the `sourmash` command:

```
sourmash info
```

Voila!