ohd {hsphase} | R Documentation |
Opposing Homozygote Detection
Description
Counts the number of opposing homozygotes for each animal that caused a heterozygus site in the sire.
Usage
ohd(genotypeMatrix, unique_check = FALSE, SNPs = 6000)
Arguments
genotypeMatrix |
|
unique_check |
|
SNPs |
|
Value
Returns a vector with the number of heterozygous sites that each sample caused.
Note
This function can be used to identify pedigree errors; i.e., the outliers.
Author(s)
This method is suggested by Bruce Tier <btier@une.edu.au> to identify pedigree errors.
Examples
genotype <- matrix(c(
2,1,0,
2,0,0,
0,0,2
), byrow = TRUE, ncol = 3)
ohd(genotype)
[Package hsphase version 2.0.3 Index]