Calculates Hardy-Weinberg equilibrium chi-square p-values for SNPs.
get.hwe.chi2(snp.summary)
Numeric vector with p-values.
df <- data.frame(Calls = c(100, 100), P.AA = c(0.6, 0.4), P.AB = c(0.3, 0.4), P.BB = c(0.1, 0.2))
get.hwe.chi2(df)
#> [1] 0.04550026 0.09558070