Compute the per-individual proportion homozygous. For example, to use as a predictor for a directional dominance model.
getPropHom(M)
M | dosage matrix. Assumes SNPs in M coded 0, 1, 2 (requires rounding dosages to integers). M is Nind x Mrow, numeric matrix, with row/columanes to indicate SNP/ind ID |
---|
vector of per-individual proportion homozygous