ohg {hsphase} | R Documentation |
Matrix of Opposing Homozygotes
Description
Creates a matrix of opposing homozygotes from the genotype matrix.
Usage
ohg(genotypeMatrix)
Arguments
genotypeMatrix |
|
Value
Returns a square matrix (sample X sample) with the pairwise counts of opposing homozygotes.
Note
This function can be slow with a large data set. The fast version of this function will be available after publish of the related manuscript.
Author(s)
Ferdosi, M. H., & Boerner, V. (2014). A fast method for evaluating opposing homozygosity in large SNP data sets. Livestock Science.
See Also
Examples
genotype <- matrix(c(
2,1,0,
2,0,0,
0,0,2
), byrow = TRUE, ncol = 3)
ohg(genotype)
[Package hsphase version 2.0.3 Index]