HET: Heterozygosity Calculator

Description Usage Arguments Value Note Author(s) Examples

View source: R/HET.R

Description

This function calculates the Expected Heterozygosity (HET; called PIC in earlier versions and in the paper describing this package) of a set of genotypes.

Usage

1

Arguments

data

A matrix of genotypes, where each column is one individual, each row is one marker, and marker values are 1, 0, or -1, or NA, where 0 represents a heterozygous marker, and NA represents missing data. Note that this coding is different from the earlier PicCalc, which cannot handle heterozygous markers. All data in this matrix must be numeric.

Value

The mean Heterozygosity of all markers for the given set of genotypes.

Note

The ability to recogize heterozygous markers was included in HET, resulting in a slightly different genotype coding scheme than the earlier PicCalc.

Author(s)

Ryan C. Graebner

Examples

1
2
data("genotypes")
HET(genotypes)

GeneticSubsetter documentation built on May 2, 2019, 3:56 a.m.