hl {Rhh} | R Documentation |
Calculate homozygosity by loci.
hl(genotypes)
genotypes |
An array with each row representing an individual and every two columns representing genotype data for two alleles in a loci. |
Calculates homozygosity by loci, a multilocus heterozygosity measure developed by Aparicio et al. (2007), for each individual in the genotype data.
An array with homozygosity by loci estimate for each individual. If the estimate could not be calculated for a given individual,
the corresponding value is NaN
.
The genotype data should be checked for problems with chkdata
before this function is used.
Aparicio JM, Ortego J, Cordero PJ (2006) What should we weigh to estimate heterozygosity, alleles or loci? Mol Ecol 15:4659-4665