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

Master:

https://travis-ci.org/molpopgen/fwdpy11.svg?branch=master

Development:

https://travis-ci.org/molpopgen/fwdpy11.svg?branch=dev

Manual

Latest/master:

https://readthedocs.org/projects/fwdpy11/badge/?version=latest

Development branch:

https://readthedocs.org/projects/fwdpy11/badge/?version=dev

Features

  • Picklable population objects

  • Parallel computation via multiprocessing or concurrent.futures.

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

Dependencies

The following must be present on your system:

  • GSL. This is a C library. It is available via conda.

  • pybind11. This should be installed via pip or conda as appropriate for your system.

fwdpy11 also uses fwdpp, which is included as a submodule.

License

GPLv3 or later (See COPYING)

Suppored Python version

fwdpy11 is written for Python 3. Given time/energy, we may look into supporting Python 2.7. However, it is impossible to support all fwdpy11 features in Python 2.7. Specifically, it is not possible to provide full pickling support.

git submodule init
git submodule update
python setup.py build_ext -i
python test.py

Installation

Using pip on Linux (or pip3 as appropriate for your system):

pip install --upgrade fwdpy11

On OS X, you must use GCC. It is highly recommended that you use a GCC installed from Anaconda. We do all of our OS X testing using the GCC 4.8.5 from Anaconda:

CC=gcc CXX=g++ pip install --upgrade fwdpy11

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.1.post1.tar.gz (213.0 kB view details)

Uploaded Source

File details

Details for the file fwdpy11-0.1.post1.tar.gz.

File metadata

  • Download URL: fwdpy11-0.1.post1.tar.gz
  • Upload date:
  • Size: 213.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fwdpy11-0.1.post1.tar.gz
Algorithm Hash digest
SHA256 a43810b444dff55e85503cc1e8ae2fd0e09aaa59fd56bf9464bfdcc9787066a7
MD5 55b03f5c4dfd257f9d92f1a74daf9d08
BLAKE2b-256 eeec6985889b5454b12c12e1a1e2119cee043f7f6cd3c52f583354be14ccda66

See more details on using hashes here.

Supported by

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