hwe

package
v0.0.0-...-66a4754 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Approximate

func Approximate(AA, Aa, aa float64) (p float64)

func Exact

func Exact(AA, Aa, aa int64) (p float64)

Exact computes an exact Hardy-Weinberg equilibrium P-value, based on the Abecasis paper, itself based on RA Fisher's method. Exact is safe to call from concurrent goroutines. The resources used to create this were http://courses.washington.edu/b516/lectures_2009/HWE_Lecture.pdf slides 21-22 and https://www.cog-genomics.org/software/stats for sanity checks.

func Fast

func Fast(AA, Aa, aa, Cutoff float64) (p float64)

Fast uses the Chi Square approximation. If the P value based on a 1 dimensional Chi Square test is found to be significant based on your Cutoff, then the exact P value is calculated and returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL