Importance Notice

Version 5 is now available and contains a series of major updates:

Version 4 is not supported anymore. Version 5 is available from the following places:

SHAPEIT5 website / SHAPEIT5 github

Introduction

SHAPEIT4 is a fast and accurate method for estimation of haplotypes (aka phasing) for SNP array and high coverage sequencing data. The version 4 is a refactored and improved version of the SHAPEIT algorithm with multiple key additional features:

If you use the SHAPEIT4 in your research work, please cite the following paper:

Olivier Delaneau, Jean-Francois Zagury, Matthew R Robinson, Jonathan Marchini, Emmanouil Dermitzakis. Accurate, scalable and integrative haplotype estimation. Nat. Comm. 2019.

SHAPEIT4 is available under the MIT licence on the github repository https://github.com/odelaneau/shapeit4.

Previous versions of SHAPEIT are still available on original webpages: SHAPEIT2 and SHAPEIT3.

Versions [ALWAYS USE LAST VERSION!]

Version 4.2.2: Small update, it contains the following changes compared to previous version:

Version 4.2.1: Small update, it contains the following changes compared to previous version:

Version 4.2.0: Fourth release. This is a major update, it contains the following changes compared to previous version:

Version 4.1.3: Third release. Contains the following changes compared to previous version:

Version 4.1.2: Second release. Contains the following changes compared to previous version:

Version 4.1.1: Contains the following changes compared to previous version:

Version 4.0: First release.

installation

Important notes before starting:

  1. Compile SHAPEIT4 on the same machine it will be run if possible. This significantly increases performance.
  2. Run preferentially SHAPEIT4 on CPUs supporting AVX2 instruction set as the code has been heavily optimized in that direction. AVX2 is usually available for CPUs from 2012+. Run cat /proc/cpuinfo in order to check.
  3. Compile SHAPEIT4 using g++ version >= 5 at the very least. I personally use version v7.4.0. Compiling it using g++ v4 does not work. Run g++ --version in order to check. I've never tried to compile it using Intel compiler.

Make sure that the two following libraries are installed on your system:

  1. HTSlib: A great C library for reading/writing high-throughput sequencing data.
  2. BOOST: A free peer-reviewed portable C++ source libraries. SHAPEIT4 uses two specific BOOST libraries: iostreams and program_options.

Make sure that the following standard library flags can be used by g++ on your system:

  • -lz, -lbz2 and -llzma for reading/writing compressed files.
  • -lm for basic math operations.
  • -lpthread for multi-threading.

You can do so by checking the outcome of the following commands:

locate -b '\libz.so'
locate -b '\libbz2.so'
locate -b '\liblzma.so'
locate -b '\libm.so'
locate -b '\libpthread.so'

Then, download the last stable version of the SHAPEIT4 code here: