Compute the Pairwise Allele Sharing Matrix for a gen_tibble
object
pairwise_allele_sharing.Rd
This function computes the Allele Sharing matrix.
Estimates Allele Sharing (hierfstat::matching()
)) between pairs of individuals
(for each locus, gives 1 if the two individuals are homozygous
for the same allele, 0 if they are homozygous for a different allele, and 1/2 if at least one individual
is heterozygous. Matching is the average of these 0, 1/2 and 1s)
Usage
pairwise_allele_sharing(
x,
as_matrix = FALSE,
block_size = bigstatsr::block_size(count_loci(x))
)