HET {GeneticSubsetter}R Documentation

Heterozygosity Calculator

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

HET(data)

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

data("genotypes")
HET(genotypes)

[Package GeneticSubsetter version 0.8 Index]