Skip to content

Building BayesTyper from source

Jonas Andreas Sibbesen edited this page Oct 18, 2018 · 7 revisions

Prerequisites

  • GCC (c++11 support required)
  • CMake (version 2.8.0 or higher)
  • Boost (tested with version 1.53.0, 1.56.0, 1.59.0 and 1.67.0)

Compilation

  1. git clone https://github.com/bioinformatics-centre/BayesTyper.git
  2. cd BayesTyper
  3. mkdir build && cd build
  4. cmake ..
  5. make -j <threads>

The compiled bayesTyper and bayesTyperTools binaries are located in the bin directory.

Important: The kmer size used is determined compile time and by default BayesTyper compiles with a kmer size of 55. The size can be changed using the cmake argument -DKMER_SIZE=<kmer_size>.

Note: The scripts under src/bayesTyperTools/scripts/ are not compiled by default as they are not required for the standard BayesTyper pipeline. Compilation of these can be enabled using the cmake argument -DBUILD_SCRIPTS=1.