Skip to main content

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

Static Badge

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

Static Badge

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.

Source Distribution

hwetests-0.6.5.tar.gz (10.6 kB view hashes)

Uploaded Source

Built Distribution

hwetests-0.6.5-py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page