A python package containing two statistical tests for HWE testing: Gibbs Sampling test and a modified Chi Squared test that handles ambiguity
Project description
Badges
hwetests
The Hardy-Weinberg Equilibrium (HWE) assumption is essential to many population genetics models, which assumes that allele pairs from a given population are random. An HWE test needs to test whether the pairing are random or not.
Our python package contains three statistical tests for HWE testing:
- ASTA
- UMAT
- UMAT with sampling
Both ASTA and UMAT with sampling assume ambiguity in the allele pairing while UMAT does not assume ambiguity.
Table of Contents
Installation
Use the package manager pip to install hwetests.
pip install hwetests
Usage
Here we show how to use our package with simulated data.
Create data
ASTA
from hwetests import asta
# returns 'words'
foobar.pluralize('word')
# returns 'geese'
foobar.pluralize('goose')
# returns 'phenomenon'
foobar.singularize('phenomena')
Tests
Go the extra mile and write tests for your application. Then provide examples on how to run them here.
Badges
License
asasda
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.