Creates a matrix of pairwise opposing-homozygote (OH) counts from a genotype matrix.
Usage
ohg(genotypeMatrix)
Value
Returns a square matrix (sample \(\times\) sample) of pairwise counts of opposing homozygotes.
(Some versions may return this matrix inside a named list element.)
Arguments
genotypeMatrix
matrix. Genotypes (numeric): 0, 1, 2 for AA, AB, BB and 9 for missing.
Author
Ferdosi, M. H., & Boerner, V. (2014). A fast method for evaluating opposing homozygosity in large SNP data sets. Livestock Science.