Description Usage Arguments Value Note Author(s) Examples
This function returns a measure of genetic distance based upon the Nei's Genetic distance metric. Assumes drift/mutation equilibrium is the main force governing your observed differences.
1 | dist_nei(x, stratum = "Population")
|
x |
A data frame with locus objects in it as well as a stratum object. |
stratum |
A factor indicating the stratum to use. |
The Nei Genetic distance
This is the bias corrected Nei's Standard genetic distance.
Rodney J. Dyer rjdyer@vcu.edu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | AA <- locus( c("A","A") )
AB <- locus( c("A","B") )
BB <- locus( c("B","B") )
AC <- locus( c("A","C") )
AD <- locus( c("A","D") )
BC <- locus( c("B","C") )
BD <- locus( c("B","D") )
CC <- locus( c("C","C") )
CD <- locus( c("C","D") )
DD <- locus( c("D","D") )
loc1 <- c(AA,AB,AC,AD,BB,BC,BD,CC,CD,DD)
loc2 <- c(AA,AA,AC,AA,CC,CC,AC,CC,AA,AC)
df <- data.frame( Population=c(rep("Pop-A",5),rep("Pop-B",5)), TPI=loc1, PGM=loc2 )
dist_nei( df )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.