Standalone C/C++ exact statistical test functions.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
binom.c
binom_test.c
binom_test.txt
fisher.c
fisher.py
fisher_test.c
fisher_test.txt
snphwe2.c
snphwe_test.c
snphwe_test.txt

README.md

stats

Standalone functions for calculating binomial, Hardy-Weinberg equilibrium, and Fisher 2x2/2x3 exact test statistics.

Test program compilation:

gcc -O2 binom.c binom_test.c -o binom_test

gcc -O2 snphwe2.c snphwe_test.c -o snphwe_test

gcc -O2 fisher.c fisher_test.c -o fisher_test

Test program usage examples:

binom_test binom_test.txt

binom_test 2900 5000 0.52

snphwe_test snphwe_test.txt

snphwe_test 16 3 81

fisher_test fisher_test.txt

fisher_test 20 30 40 50 60 70

binom.c and fisher.c are covered by GPLv3 (see the LICENSE file). For snphwe2.c usage rules, refer to the Abecasis Lab's SNP-HWE page at http://sph.umich.edu/csg/abecasis/Exact .