Installing Programs

Two possibilities:

A lot of widely-used programs have been installed globally (BLAST, tophat, bowtie, samtools, …)

Since we have moved to using Environment Modules on the cluster, the point about versions is less valid. Once a version of a piece of software is installed as a module it will not be removed, and will therefore remain available to you.

You are encouraged to install the software that you need into your own home directory (or possibly into a shared directory for the project you are working on). This gives you control of the versions of the software you are using, and when upgrades are made. This is good for reproducibility of results. You can use Conda to install specific versions of Python or R, and associated packages into your own home directory. Conda can also install many bioinformatics programs (e.g. STAR, bwa etc.) through the bioconda channel. You can also look at using a (Singularity) container to encapsulate a project or software pipeline - see Using Singularity.

You can install miniconda by downloading the installation script here: https://docs.conda.io/en/latest/miniconda.html.

Installing Ubuntu Packages Locally

apt-get won’t do it.

Possibilities:

Since your home directories are available on all nodes, any program you install locally will automatically be available to you on the compute nodes. (This is not always true with apt-get installations, as they sometimes go into /usr/bin which is not shared across nodes.)

Installing from Source

This can be quite simple, or a nightmare of dependencies.

cd source_dir
make

This first style will build the application in the current directory. You can then run it from where it is, or copy it to a directory from where you usually run locally installed programs (a location that is in your PATH).

./configure --prefix=$HOME
make install

This second style will install the program into $HOME/bin. You can also give a prefix that points to a subdirectory of your home directory, e.g. $HOME/local. The program would then be installed to $HOME/local/bin. You can add this directory to your PATH for ease of running the program.

If you do not specify the “–prefix” argument on the configure command the make install step will likely try to copy the program into /usr/local/bin. You do not have permission to write into /usr/local as a normal user.

Installing a Source Package

apt-get source package-name
tar -zxf package-name.tar.gz
cd package-dir
./configure -prefix=$HOME
make install

Things to Install for Yourself

Conda

You can install conda in your own home directory and then use it to install a specific version of python or R (for instance).

For instance, to install R 3.6.1 (currently):

conda create -n r-test r-base r-tidyverse r-rlang
...
conda activate r-test

To install R 4.0.2 inside a conda environment you can use the command:

conda install -c conda-forge r-base=4.0.2

Singularity

Using a Singularity container allows you to have complete control over your environment and what is installed, and allows you to share that environment with others, but does require a little more effort than other installation techniques.

See the page on Using Singularity.