calc_eh: Calculate expected heterozygosity

Description Usage Arguments Value

Description

Calculates expected heterozygosity of markers given a matrix where rows are markers, and markers are haploid, encoded as 0 and 2

Usage

1
calc_eh(genotypes)

Arguments

genotypes

a matrix of haploid markers as rows with alleles encoded as 0 and 2

Value

a vector of expected heterozygosities of the markers


DiDeoxy/PGDA documentation built on June 19, 2020, 5:38 a.m.