Installing Packages🔗
Custom software can be installed into your home directory on H4H. This is useful to augment existing modules available via the module system or even to compile your own custom software libraries or languages. Note, however, that you only have 50 GB of disk space in your personal directory and thus should use existing system modules when they are available!
Build Node🔗
While the Login Nodes do have access to the internet, you are NOT allowed to
install packages from them. Instead, the cluster administrators provide a
special internet connected build
partition where you can install software
libraries or compile programs.
Try it yourself🔗
-
Allocate an interactive job on the build parition (Note: can only use 1 CPU and max 12 GB of RAM!)
-
Load an R module and install the
ggplot2
package -
Check that the installed package is available
Installing and Using Miniconda🔗
Since H4H users do not have sudo privileges, it is not possible to install
system dependencies directly via the CentOS package manager yum
. If a system
dependency for one of the packages in your analysis is unavailable or the
incorrect version, the miniconda
utility can be used to install it locally
in your $HOME
directory. The tool can also be used to install a range of other
software including programming languages (such as R or Julia) as well as
Python and R packages.
Use of virtual environments in general enhances the reproducibility
of your analysis and is encouraged. But you should be mindful that all
dependencies installed via conda
will be in your $HOME
directory and thus
count against your 50 GB drive quota.
Try it yourself🔗
-
Allocate an interactive job on the build parition
-
Visit https://docs.conda.io/en/latest/miniconda.html and copy the link for the latest Miniconda installer script on Linux then download the script using
wget
orcurl
-
Run the installer script and configure your
conda
installation (Note: make sure you say yes to running conda init or the installation won't be activated) -
Source your
~/.bashrc
file to update your shell session to useconda
-
Create and activate a new conda environment called test_env to install packages into
-
Install R into test_env using the conda-forge channel (Hint: use the r-base package)
-
Print the path to R
-
Delete the test_env conda environment to clean up your
$HOME
directory