Package htsjdk.tribble.util.popgen
Class HardyWeinbergCalculation
java.lang.Object
htsjdk.tribble.util.popgen.HardyWeinbergCalculation
This class calculates a HardyWeinberg p-value given three values representing
the observed frequences of homozygous and heterozygous genotypes in the
test population.
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
hwCalculate
(int obsAA, int obsAB, int obsBB) Calculates exact two-sided hardy-weinberg p-value.
-
Method Details
-
hwCalculate
public static double hwCalculate(int obsAA, int obsAB, int obsBB) Calculates exact two-sided hardy-weinberg p-value. Parameters are number of genotypes, number of rare alleles observed and number of heterozygotes observed. (c) 2003 Jan Wigginton, Goncalo Abecasis ([email protected])
-