EggLib version 2.1 is archived.

Table Of Contents

Next topic

Download and install

This Page

EggLib documentation

EggLib is a C++/Python library and program package for evolutionary genetics and genomics. Main features are sequence data management, sequence polymorphism analysis, coalescent simulations and Approximate Bayesian Computation. EggLib is a flexible Python module with a performant underlying C++ library (which can be used independently), and allows fast and intuitive development of Python programs and scripts. A number of pre-programmed applications of EggLib possibilities are available interactively. To get an idea of the possibilities offered by EggLib, see the Manual section.


EggLib version 2.1 is now in archive mode while EggLib version 3.0 is in beta. Bugs in EggLib 2.1 will be fixed if they are reported but we encourage users to try the new version of EggLib in order to report bugs or incorrect results.

Go to EggLib 3 web site.

Get EggLib: instructionsdownload.

Citation: De Mita S. and M. Siol. 2012. EggLib: processing, analysis and simulation tools for population genetics and genomics. BMC Genet. 13:27. Open access.

What’s new ?

  • March 4, 2016: Release of version 2.1.11 (in which an occasional bug if eggcoal is fixed).

  • March 23, 2014: Version 2.1.10 supports Bio++ 2.2.0 and higher but does not support earlier versions of Bio++. Note that this version also fix a minor problem with the coalescent simulator that only appears when you deal directly from low-level classes. Only the source code is released.

  • October 04, 2014: Version 2.1.9 is out to fix a rather minor error affecting the Staden parser only (in particular staden2fasta).

  • September 23, 2014: Version 2.1.8 is out to fix a heavy error affecting the abc_sample command and more precisely the TPS, TPF and TPK summary statistics sets. The error was that the program used only the last locus for computing per-population \pi (ignoring all previous ones). The three summary statistics sets are fixed. This error did not affect other summary statistics sets or the other statistics of those three summary statistics sets. Since this behaviour was consistent for both observed data sets and simulations, the consequence of the error was, in principle, a complete lack of resolution of these summary statistics sets rather than erroneous results, but it is much likely that results using these summary statistics sets were inaccurate.

    Also: version 2.2.0 has been elevated to version 3 due to large-scale changes in the interface. A preliminary package of version 3 is out (for testing purpose).

  • November 20, 2013: The pre-compiled package of version 2.1.7 is available for Python 2.7 32 bits.

  • November 7, 2013: Version 2.1.7 (source only, at the moment) is out to include minor changes. Warning: If you use non-standard genetic codes, you must update because there was an error preventing the code argument to be passed to underlying polymorphism analysis routines in egglib-py.


  • An underlying C++ library which might be used independently.

  • Two standalone programs:
    • eggcoal: an extensive coalescent simulator.
    • eggstats: a simple command line tool for analyzing diversity in fasta files.
  • A flexible Python module bringing together the C++ library and additional high-level tools: Python module.

  • A script egglib providing a number of modular tools for processing and analyzing sequence data (and others). See Directly executable commands.


These pages describe the Python module and the C++ library. They are available as an independent downloadable archive from the download site. A pdf version of the general description of EggLib and reference manual of egglib-py is available here and a pdf version of the reference manual of the C++ library is available there.

Detailed contents

Indices and tables

Hosted by  Get seqlib at Fast, secure and Free Open Source software downloads