Description Usage Arguments Details Value Examples
MKT calculation corrected using DGRP method (Mackay et al. 2012 Nature).
1 |
daf |
data frame containing DAF, Pi and P0 values |
divergence |
data frame containing divergent and analyzed sites for selected (i) and neutral (0) classes |
listCutoffs |
list of cutoffs to use (optional). Default cutoffs are: 0, 0.05, 0.1 |
plot |
report plot (optional). Default is FALSE |
In the standard McDonald and Kreitman test, the estimate of adaptive evolution (alpha) can be easily biased by the segregation of slightly deleterious non-synonymous substitutions. Specifically, slightly deleterious mutations contribute more to polymorphism than they do to divergence, and thus, lead to an underestimation of alpha. Because adaptive mutations and weakly deleterious selection act in opposite directions on the MKT, alpha and the fraction of substitutions that are slighlty deleterious, b, will be both underestimated when both selection regimes occur. To take adaptive and slighlty deleterious mutations mutually into account, Pi, the count off segregatning sites in class i, should be separated into the number of neutral variants and the number of weakly deleterious variants, Pi = Pineutral + Pi weak del. Alpha is then estimated as 1-(Pineutral/P0)(D0/Di). As weakly deleterious mutations tend to segregate at low frequencies, neutral and weakly deleterious fractions from Pi can be estimated based on any frequency cutoff established.
MKT corrected by the DGRP method. List with alpha results, graph (optional), divergence metrics, MKT tables and negative selection fractions
1 2 3 4 | ## Using default cutoffs
DGRP(myDafData, myDivergenceData)
## Using custom cutoffs and rendering plot
DGRP(myDafData, myDivergenceData, c(0.05, 0.1, 0.15), plot=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.