Get identity by "mixture distance". The mixture distance between two samples is the proportion of loci that have identical within-sample allele frequencies (WSAFs), or alternatively have WSAFs within a given tolerance. This extends the idea of identity by state (IBS) to continuous WSAFs rather than categorical genotypes.

get_IB_mixture(x, tol = 0, diagonal = NULL, report_progress = TRUE)

Arguments

x

object of class mipanalyzer_biallelic.

tol

tolerance on mixture comparisons. Default = 0.

diagonal

Should the diagonal of the distance matrix be changed to a given value. Default = NULL, which cause no changes.

report_progress

if TRUE then a progress bar is printed to the console.