pairwise_genetic_diff | R Documentation |
pairwise_genetic_diff
Calculate measures of genetic differentiation across all population pairs.
pairwise_genetic_diff(vcf, pops, method = "nei")
vcf |
a vcfR object |
pops |
factor indicating populations |
method |
the method to measure differentiation |
a data frame containing the pairwise population differentiation indices of interest across all pairs of populations in the population factor.
Javier F. Tabima
genetic_diff
in vcfR
data(vcfR_example)
pops <- as.factor(rep(c('a','b'), each = 9))
myDiff <- pairwise_genetic_diff(vcf, pops, method = "nei")
colMeans(myDiff[,c(4:ncol(myDiff))], na.rm = TRUE)
pops <- as.factor(rep(c('a','b','c'), each = 6))
myDiff <- pairwise_genetic_diff(vcf, pops, method = "nei")
colMeans(myDiff[,c(4:ncol(myDiff))], na.rm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.