Installation

Install dependencies and build source code

The source code of IPK depends on libraries you need to install from your distro’s repository: boost (v1.67+) and zlib. Other depencies are provided as submodules and should be compiled within IPK.

On a Debian-based system, it can be installed with the following commands:

$ sudo apt-get update
$ sudo apt-get install -yq libboost-dev libboost-serialization-dev \
                           libboost-filesystem-dev libboost-iostreams-dev \
                           libboost-program-options-dev
$ sudo apt-get install -yq zlib1g-dev

Clone the repository including the submodules:

$ git clone --recursive https://github.com/phylo42/IPK.git ipk

Compile the code:

$ cd ipk && mkdir bin && cd bin
$ cmake -DHASH_MAP=USE_TSL_ROBIN_MAP -DCMAKE_CXX_FLAGS="-O3" ..
$ make -j4

Other dependencies

To run IPK, you will also need to install either raxml-ng or phyml. Both of them are available in Bioconda:

$ conda install raxml-ng

Or:

$ conda install phyml

Check installation

To check that installation is complete, run the following command to see the help message:

$ python ipk.py --help