RAFM and driftsel

RAFM is an R package that fits an admixture F model to neutral genetic data.

The admixture F models is based on random drift in the allele frequencies of neutral DNA. In place of a single FST value, RAFM calculates a unique coancestry coefficient for each pair of populations.


The name driftsel stands for drift and selection. driftsel is an R package for Bayesian evolutionary quantitative genetics. Specifically, driftsel can be used to perform neutrality tests, i.e. to detect signals of natural selection in quantitative traits.


Ovaskainen, O., Karhunen, M., Zheng, C., Cano Arias, J. M. and Merilä, J. 2011. A new method to uncover signatures of divergent and stabilizing selection in quantitative traits. Genetics 189, 621-632.

Karhunen, M. and Ovaskainen, O. 2012 Estimating population-level coancestry coefficients by an admixture F-model. Genetics 192, 609-617.

Karhunen, M., Merilä, J., Leinonen, T., Cano Arias, J. M. and Ovaskainen, O. 2013. driftsel: an R package for detecting signals of natural selection in quantitative traits. Molecular Ecology Resources 13, 746-754.

Karhunen, M., Ovaskainen, O., Herczeg, G. and Merilä, J. 2014. Bringing habitat information into statistical tests of local adaptation in quantitative traits: a case study of nine-spined sticklebacks. Evolution 68, 559-568.