Introduction Build StatusDOI

Here is the guideline for anyone who might want to compile PRSice from source.

Prerequisites

For the C++ executable 1. GCC version 7 or higher (for C++17 support) 2. CMake version 3.1 or higher (Optional) 3. Git (Optional)

Note

Only the C++ executable need to be built

Using CMake

With CMake, you can simply do the following:

git clone https://github.com/choishingwan/PRSice.git
cd PRSice
mkdir build
cd build
cmake ../
make
Then the PRSice executable will be located within PRSice/bin

If you don't have git installed, you can still do (remember to download eigen to lib )

curl https://codeload.github.com/choishingwan/PRSice/tar.gz/2.3.3 > PRSice.tar.gz
tar -xvf PRSice.tar.gz
cd PRSice-2.3.3
mkdir build
cd build
cmake ../
make

Note

The above procedure was not tested on Windows

Without CMake

Without CMake, you will need to first download the eigen library

You can then do the following

git clone https://github.com/choishingwan/PRSice.git
cd PRSice
g++ -std=c++17 -O3 -DNDEBUG -march=native -isystem lib -isystem ${PATH_TO_EIGEN} -I inc src/*.cpp -lpthread -lz -o PRSice
Then PRSice will be located in the current directory

Alternatively, if you don't have git installed, you can still do

curl https://codeload.github.com/choishingwan/PRSice/tar.gz/2.3.3 > PRSice.tar.gz
tar -xvf PRSice.tar.gz
cd PRSice-2.3.3
g++ -std=c++17 -O3 -DNDEBUG -march=native -isystem lib -isystem ${PATH_TO_EIGEN}  -I inc src/*.cpp -lpthread -lz -o PRSice

Intel MKL

If you know how to setup the Intel \(\circledR\) MKL library, you can compile PRSice with it to speed up the processing speed. You can use this to help you with the linking.