forward-time population genetic simulation in python

Reference manual
Google Group

View the Project on GitHub

The fwdpy home page

This is the homepage for fwdpy, which is an Python package for forward-time population- and quantitative- genetic simulations.

Source code

The source code is here


The manual is manually generated by us via a separate project hosted on GitHub. We are attempting to make sure that the manual is current with the latest stable release of fwdpy, but that won’t always be the case.

We are attempting to have it automatically build via readthedocs, but that is proving a challenge.


Here are some examples generated using Ipython/Jupyter:

Advanced examples

These examples use Python’s built-in multiprocessing features to run simulations and synchronize writing output from multiple threads:

Extending fwdpy

A major goal of fwdpy is to make it extensible, which can be done via Python, Cython, and/or C++. The Cython option simplifies the use of C++ in writing extensions:


If you use fwdpy for yor research, please cite the following manuscript, which is the basis for this package: