dmc
Distinguishing among modes of convergent adaptation using population genomic data
This repository contains code associated with Lee and Coop (2017).
1. Scripts to run DMC
-
A fully worked example for how to use DMC can be found at dmc_example.md
-
Short descriptions of the scripts needed to run DMC found in this repository.
See individual files for more details and example for their usage in context.
-
calcNeutralF.R contains code to generate and save F as an R object.
-
genSelMatrices_individualModes.R contains functions to generate F^(S)^ for single modes of convergent adaptation.
-
genSelMatrices_multipleModes.R contains functions to generate F^(S)^ for multiple modes of convergence.
-
calcInvDetSelMatrices_all.R contains scripts to generate all the possible inverses and determinants.
-
calcCompositeLike.R contains functions for calculating the composite log-likelihoods for all models.
-
getMCLE.R contains functions to get the maximum composite likelihood estimates of parameters for all convergence models.
-
Mimulus and killifish analyses in Lee and Coop (2017)
2. Scripts associated with theModified version of mssel, a version of ms [1] that allows for the incorporation of selection at a single site, modified by KL to allow for multiple independent origins of beneficial lineages.
3.[1] Hudson, R. R. (2002). Generating samples under a Wright–Fisher neutral model of genetic variation. Bioinformatics 18, 337–338.