Skip to main content

fast hardy weinberg test

Project description

snphwe: An exact test of Hardy-Weinberg Equilibrium

Reimplementation in Python of an exact SNP test of Hardy-Weinberg Equilibrium, as described in Wigginton, JE, Cutler, DJ, and Abecasis, GR (2005) A Note on Exact Tests of Hardy-Weinberg Equilibrium. AJHG 76: 887-893.

This package is just a python wrapper around their c implementation.


The simplest way to install snphwe is through pip:

pip install snphwe


Use snphwe within a python environment

from snphwe import snphwe

hom1 = 10
hets = 500
hom2 = 5000
hwe_p = snphwe(hets, hom1, hom2)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for snphwe, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size snphwe-1.1.0.tar.gz (26.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page