View source: R/nucleotideDivergence.R
nucleotideDivergence | R Documentation |
Calculate distributions of between- and within-strata
nucleotide divergence (sequence distance), which includes
Nei's \pi
(usually referred to as "nucleotide diversity") and
Nei's dA between strata.
nucleotideDivergence(g, probs = c(0, 0.025, 0.5, 0.975, 1), model = "raw", ...)
g |
a gtypes object. |
probs |
a numeric vector of probabilities of the pairwise distance
distributions with values in |
model |
evolutionary model to be used. see |
... |
other arguments passed to |
a list with summaries of the $within
and $between
strata
pairwise distances including Nei's dA (in $between
).
Nei's \pi
is the mean between-strata divergence.
Eric Archer eric.archer@noaa.gov
Nei, M., and S. Kumar (2000) Molecular Evolution and Phylogenetics. Oxford University Press, Oxford. (dA: pp. 256, eqn 12.67)
data(dloop.g)
nd <- nucleotideDivergence(dloop.g)
nd$within
nd$between
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.