Skip to main content

Forward-time population genetic simulation in Python

Project description

This is the README for fwdpy11, which is a Python package for forward-time population genetic simulation. It uses fwdpp as its C++ back-end.

Build status

Main:

https://github.com/molpopgen/fwdpy11/workflows/Tests/badge.svg?branch=main https://github.com/molpopgen/fwdpy11/workflows/UbuntuStressTest/badge.svg?branch=main

Development:

https://github.com/molpopgen/fwdpy11/workflows/Tests/badge.svg?branch=dev https://github.com/molpopgen/fwdpy11/workflows/UbuntuStressTest/badge.svg?branch=dev

Conda status

https://anaconda.org/bioconda/fwdpy11/badges/version.svg https://anaconda.org/bioconda/fwdpy11/badges/platforms.svg

Miscellaneous

Python code style:

https://img.shields.io/badge/code%20style-black-000000.svg

Features

  • Pickle-able population objects

  • Parallel computation via multiprocessing or concurrent.futures.

  • Custom temporal samplers to analyze populations during a simulation may be written in pure Python.

  • Flexible interface for simulating models with multiple populations.

Documentation

The manual can be found here.

License

GPLv3 or later (See COPYING)

Supported Python version

fwdpy11 is written for Python 3. We will not modify the package to be compatible with Python 2.7.

Dependencies and installation

These topics are covered in the user manual:

Citation

If you use this software for research, please cite the following publications:

  • Kevin R Thornton. Polygenic adaptation to an environmental shift: temporal dynamics of variation under gaussian stabilizing selection and additive effects on a single trait. Genetics, 213(4):1513–1530, December 2019.

  • Kevin R Thornton. A c++ template library for efficient forward-time population genetic simulation of large populations. Genetics, 198(1):157–166, September 2014.

This software was developed for the first paper. The second paper describes a key part of this software’s back end.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fwdpy11-0.22.0.tar.gz (1.2 MB view hashes)

Uploaded Source

Built Distributions

fwdpy11-0.22.0-cp312-cp312-manylinux_2_28_x86_64.whl (3.2 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.28+ x86-64

fwdpy11-0.22.0-cp312-cp312-macosx_10_15_universal2.whl (2.6 MB view hashes)

Uploaded CPython 3.12 macOS 10.15+ universal2 (ARM64, x86-64)

fwdpy11-0.22.0-cp311-cp311-manylinux_2_28_x86_64.whl (3.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.28+ x86-64

fwdpy11-0.22.0-cp311-cp311-macosx_10_15_universal2.whl (2.6 MB view hashes)

Uploaded CPython 3.11 macOS 10.15+ universal2 (ARM64, x86-64)

fwdpy11-0.22.0-cp310-cp310-manylinux_2_28_x86_64.whl (3.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

fwdpy11-0.22.0-cp310-cp310-macosx_10_15_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.10 macOS 10.15+ x86-64

fwdpy11-0.22.0-cp39-cp39-manylinux_2_28_x86_64.whl (3.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

fwdpy11-0.22.0-cp39-cp39-macosx_10_15_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.9 macOS 10.15+ x86-64

fwdpy11-0.22.0-cp38-cp38-manylinux_2_28_x86_64.whl (3.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

fwdpy11-0.22.0-cp38-cp38-macosx_10_15_x86_64.whl (2.6 MB view hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page