-
Notifications
You must be signed in to change notification settings - Fork 2
Software Installation
Haoliang Xue edited this page Mar 11, 2025
·
1 revision
We provide a pre-built Docker image on DockerHub for immediate usage.
Using KaMRaT within apptainer/singularity is highly recommended for users at any level unless software development work is involved, because:
- Building the container is simple and only requires the dependency of
apptainer/singularitywhich should be pre-installed on most of HPC clusters. - Usage of KaMRaT in container ensures better reproducibility of results.
- Several companion scripts can be easily run within the container, e.g., to construct k-mer count matrix.
In case when installation of apptainer is needed, please refer to their website for instructions.
To build apptainer/singularity image, please run:
apptainer build KaMRaT.sif docker://xuehl/kamrat:latest
# alternatively to build singularity image: simply replace "apptainer" to "singularity"- CMake,
- MLPack >=4.0.0,
- Armadillo,
- Boost-iostreams,
- To use the provided
Snakefilethat builds input k-mer matrix from fastq files, Snakemake is also required.
If you are installing MLPack with conda, please add the following line into your .bashrc file in the home/ directory before compiling KaMRaT:
export LD_LIBRARY_PATH=/path_to_conda_env/mlpack/lib:$LD_LIBRARY_PATHgit clone --recursive https://github.com/Transipedia/KaMRaT.git
cd KaMRaT
cmake . && make -jFinally, an executable binary file is available as apps/kamrat.