anc_coeff_to_GeneticSimilarityMatrix {GGoutlieR} | 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.