Class 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 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)