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

fix conda install #166

Merged
merged 1 commit into from
Jul 24, 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
14 changes: 4 additions & 10 deletions bih-cluster/docs/best-practice/software-installation-with-conda.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ When you logged into the cluster, please make sure that you also executed `srun`
hpc-login-1:~$ srun --mem=5G --pty bash -i
hpc-cpu-123:~$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
hpc-cpu-123:~$ bash Miniconda3-latest-Linux-x86_64.sh -b -f -p $HOME/work/miniconda
hpc-cpu-123:~$ eval "$(/$HOME/work/miniconda/bin/conda shell.bash hook)"
hpc-cpu-123:~$ conda init
hpc-cpu-123:~$ conda config --set auto_activate_base false
```

This will install conda to `$HOME/work/miniconda`.
This path can be changed to your liking.
Please note that the `$HOME` folder has limited space, so be sure to place it in `work`. More about this [here](../storage/home-quota.md).
You can change the path to your liking, but please note that your `$HOME` folder has limited space.
The `work` subfolder however has a bigger quota. More about this [here](../storage/home-quota.md).

To make bioinformatics software available, we have to add the `bioconda` and
some other channels to the conda configuration:
Expand All @@ -37,14 +39,6 @@ hpc-cpu-123:~$ conda config --add channels default
hpc-cpu-123:~$ conda config --add channels conda-forge
```

!!! warning "Important"
By default conda will automatically activate the (base) environment for new shell sessions.
This can significantly delay your login process and should be turned off:

```sh
hpc-cpu-123:~$ conda config --set auto_activate_base false
```

## Installing software with conda
Installing packages with conda is straight forward:

Expand Down