mat_gen_dist | R Documentation |
The function computes a pairwise matrix of genetic distances between populations and allows to implement several formula.
mat_gen_dist(x, dist = "basic", null_val = FALSE)
x |
An object of class |
dist |
A character string indicating the method used to compute the multilocus genetic distance between populations
|
null_val |
(optional) Logical. Should negative and null FST, FST_lin, GST or D values be replaced by half the minimum positive value? This option allows to compute Gabriel graphs from these "distances". Default is null_val = FALSE. This option only works if 'dist = 'FST” or 'FST_lin' or 'GST' or 'D' |
Negative values are converted into 0. Euclidean genetic distance d_{ij} between population i and j is computed as follows:
d_{ij}^{2} = ∑_{k=1}^{n} (x_{ki} - x_{kj})^{2}
where x_{ki} is the allelic frequency of allele k in population i and n is the total number of alleles. Note that when 'dist = 'weight”, the formula becomes
d_{ij}^{2} = ∑_{k=1}^{n} (1/(K*p_{k}))(x_{ki} - x_{kj})^{2}
where K is the number of alleles at the locus of the allele k and p_{k} is the frequency of the allele k in all populations. Note that when 'dist = 'PCA”, n is the number of conserved independent principal components and x_{ki} is the value taken by the principal component k in population i.
An object of class matrix
P. Savary
bowcock1994highgraph4lg \insertRefexcoffier1992analysisgraph4lg \insertRefdyer2004populationgraph4lg \insertReffortuna2009networksgraph4lg \insertRefweir1984estimatinggraph4lg \insertRefhedrick2005standardizedgraph4lg \insertRefjost2008gstgraph4lg
data(data_ex_genind) x <- data_ex_genind D <- mat_gen_dist(x = x, dist = "basic")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.