Package htsjdk.tribble.util.popgen
Class HardyWeinbergCalculation
- java.lang.Object
-
- htsjdk.tribble.util.popgen.HardyWeinbergCalculation
-
public final class HardyWeinbergCalculation extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
hwCalculate(int obsAA, int obsAB, int obsBB)
Calculates exact two-sided hardy-weinberg p-value.
-
-
-
Method Detail
-
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 (goncalo@umich.edu)
-
-