hl {Rhh}R Documentation

Homozygosity By Loci

Description

Calculate homozygosity by loci.

Usage

hl(genotypes)

Arguments

genotypes An array with each row representing an individual and every two columns representing genotype data for two alleles in a loci.

Details

Calculates homozygosity by loci, a multilocus heterozygosity measure developed by Aparicio et al. (2007), for each individual in the genotype data.

Value

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.

Note

The genotype data should be checked for problems with chkdata before this function is used.

References

Aparicio JM, Ortego J, Cordero PJ (2006) What should we weigh to estimate heterozygosity, alleles or loci? Mol Ecol 15:4659-4665

See Also

ir, sh, chkdata and mlh


[Package Rhh version 1.0 Index]