anc_coeff_to_GeneticSimilarityMatrix: calculate genetic similarity from ancestry coefficients.

View source: R/anc_coeff_to_GeneticSimilarityMatrix.R

anc_coeff_to_GeneticSimilarityMatrixR Documentation

calculate genetic similarity from ancestry coefficients.

Description

calculate genetic similarity from ancestry coefficients.

Usage

anc_coeff_to_GeneticSimilarityMatrix(anc_coef)

Arguments

anc_coef

a matrix of ancestry coefficients with samples by rows. Each column corresponds to an ancestral population.

Details

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.


GGoutlieR documentation built on Oct. 16, 2023, 1:06 a.m.