mHapTools is written in c++ and depends on htslib library. It has been tested on centOS and should support other Linux distributions as well.
The mHaptools requires the following dependencies :
git clone https://github.com/butyuhao/mHapTools.git
cd ./mHapTools/htslib-1.10.2
./configure --prefix=`pwd`
make
make install
cd ..
g++ -o mhaptools haptk.cpp convert.cpp mhap.cpp merge.cpp beta.cpp summary.cpp utils.cpp \
-I ./htslib-1.10.2/htslib -I ./include -L ./htslib-1.10.2/ -lhts -std=c++11
export LD_LIBRARY_PATH=`pwd`/htslib-1.10.2/lib