Personal tools for using the Hydra cluster
/share/apps/bioinformatics/PACKAGE/VERSION
- Within
/share/apps/bioinformatics/create a subdirectory for the program.- Use all-lowercase
- Within the program's subdirectory, create a subdirectory for the version being installed.
- Create a file named
INSTALL_HYDRAin side the version directory with install notes (they can be abridged, you don't have to include everycdortarcommands.)
conda-create.shdoes this in addition to some other features.- Use system-installed mamba or conda
- Create a new env for the install using
-p /path/to/env - Install from conda-forge and bioconda only (unless you have to use main, R, etc)
ml tools/mamba
start-mamba
mamba create -p /share/apps/bioinformatics/PACKAGE/VERSION -c conda-forge -c bioconda bioconda::PACKAGE- How do you know what version to use for the path before you install the package? Check on anaconda.org or run
mamba search bioconda::PACKAGEto find the latest version. You can also specify a specific version in themamba createcommand with-v VERSION
- When possible use the module
gcc/10.1.0- Need gsl? Use
gcc/10.1/gsl- Need mpi? I'be been using
gcc/10.1/openmpi - Compilation errors? Sometimes I have to use
gcc/7.3.0
- Need mpi? I'be been using
- Need gsl? Use
- Executables should go into:
/share/apps/bioinformatics/PACKAGE/VERSION/bin- Specify the install prefix when possible. For example:
./configure --prefix=/share/apps/bioinformatics/vcftools/0.1.16 - These can be copies or sympolic links from the original compilation location
- Specify the install prefix when possible. For example:
- I retain the source code in the directory, but I delete the downloaded source archive (
….tar.gz)
After install is complete, change the permission of /share/apps/bioinformatics/PACKAGE/
sab_perms.sh does.
DIR=/share/apps/bioinformatics/PACKAGE/
echo " Changing group to bioinformatics..."
chgrp -R bioinformatics $DIR
echo " Changing perms to a+r,g+w..."
chmod -R a+r,g+w $DIR
echo " Changing executables to a+x..."
find $DIR -executable -exec chmod a+x {} \;- If a packages uses numpy, add
module load tools/mthread-numpyto the program's module file. This sets environmental variables such that numpy with use, at most, the number of CPUs requested withqsub. Without this, the numpy may use all available CPUs.