View source: R/anc_coeff_to_GeneticSimilarityMatrix.R
anc_coeff_to_GeneticSimilarityMatrix | R Documentation |
calculate genetic similarity from ancestry coefficients.
anc_coeff_to_GeneticSimilarityMatrix(anc_coef)
anc_coef |
a matrix of ancestry coefficients with samples by rows. Each column corresponds to an ancestral population. |
Since ancestry coefficients can be interpreted as a propotion of genome derived from a specific ancestral population, this function calculate genetic similarity as the probability of a random genome segment of two individuals derived from the same ancestral population.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.