Installation¶
There are 3 ways to install PCAone.
Download compiled binary¶
There are compiled binaries provided for both Linux and Mac platform. Check the releases page to download one.
pkg=https://github.com/Zilong-Li/PCAone/releases/latest/download/PCAone-Linux.zip
wget $pkg || curl -LO $pkg
unzip -o PCAone-Linux.zip
Via Conda¶
PCAone is also available from bioconda.
Build from source¶
PCAone has been tested on both Linux and MacOS system. To build PCAone from the source code, the following dependencies are required:
- GCC/Clang compiler with C++17 support
- GNU make
- zlib
On Linux, we recommend building the software from source with MKL as backend to maximize the performance.
With MKL or OpenBLAS as backend¶
Build PCAone dynamically with MKL can maximize the performance for large
dataset particularly, because the faster threading layer libiomp5 will be
linked at runtime. There are two options to obtain MKL library:
- download
MKLfrom the website
After having MKL installed, find the MKL root path and replace the path below with your own.
Alternatively, for advanced user, modify variables directly in Makefile and run make to use MKL or OpenBlas as backend.
- install
MKLby conda
conda install -c conda-forge -c anaconda -y mkl mkl-include intel-openmp
git clone https://github.com/Zilong-Li/PCAone.git
cd PCAone
# if mkl is installed by conda then use ${CONDA_PREFIX} as mklroot
make -j4 MKLROOT=${CONDA_PREFIX}
./PCAone -h
Without MKL or OpenBLAS dependency¶
If you don't want any optimized math library as backend, just run:
macOS¶
For macOS users, install OpenMP first and build as above. The mac workflow shows a full build.
Commands in this guide using ./PCAone assume a local binary; use PCAone if it is on your PATH.