Fisher-Wright Population Simulation

Simulates a population under the Fisher-Wright model (fixed or stochastic population size) with a one-step neutral mutation process (stepwise mutation model, logistic mutation model and exponential mutation model supported). The stochastic population sizes are random Poisson distributed and different kinds of population growth are supported. For the stepwise mutation model, it is possible to specify locus and direction specific mutation rate (in terms of upwards and downwards mutation rate). Intermediate generations can be saved in order to study e.g. drift.


Changes in version 0.3.3

  • Error in fwsim_fixed corrected. Sorry about that.

Changes in version 0.3.2

  • Implemented original/traditional Fisher-Wright simulation with fixed population size (function called fwsim_fixed)

Changes in version 0.3.1

  • Solved minor C++ errors on some platforms

Changes in version 0.3

  • Updated entire infrastructure to using Rcpp
  • Updated API to allow for different mutation models and to specify a starting population explicitely
  • Utility functions (print.fwsim, summary.fwsim, plot.fwsim and print.mutmodel) introduced

Changes in version 0.2-6

  • Updated license information

Changes in version 0.2-5

  • Added possibility to save populations during evolution (e.g. for analysing drift)
  • User interrupt now allowed

Changes in version 0.2-3

  • Added expected population size of target population
  • Added expected population size for each generation

Changes in version 0.2-2

  • Corrected NEWS bug

Changes in version 0.2-1 * Clarified documentation * Support for locus and direction specific mutation rate * New implementation of the mutation sampling

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.3.4 by Mikkel Meyer Andersen, 18 days ago

Browse source code at

Authors: Mikkel Meyer Andersen and Poul Svante Eriksen

Documentation:   PDF Manual  

GPL-2 license

Imports Rcpp, methods

Linking to Rcpp

System requirements: C++11

Suggested by disclapmix.

See at CRAN