Skip to main content

Genomics and computational-biology statistical computing for Python

Project description

PyStatsGenomic

Genomics and computational-biology statistical computing for Python.

Status: 0.1.0 — first module shipped. Hardy–Weinberg equilibrium is available now; more statistical-genetics methods are on the roadmap below.

PyStatsGenomic is part of the open-core PyStatistics family:

Package Layer
pystatistics Fundamental, general statistics
pystatsbio Biotech / pharma statistics
pystatsclinical Clinical-trial / clinical-research statistics
pystatsgenomic Genomics / computational-biology statistics
pystatsfinance Financial / quantitative statistics
pystatsinsurance Actuarial / insurance statistics

Like its siblings, it builds on pystatistics for the general statistical layer and adds methods specific to genomics.

What's available now (0.1.0)

Hardy–Weinberg equilibrium for a biallelic locus, via the exact test (Wigginton, Cui & Abecasis 2005, the default) or the Pearson chi-square test:

from pystatsgenomic import hwe

result = hwe.hardy_weinberg(n_AA=298, n_Aa=489, n_aa=213)
print(result.summary())

# Allele frequencies on their own:
freqs = hwe.allele_frequencies(n_AA=298, n_Aa=489, n_aa=213)

hardy_weinberg reports allele frequencies, expected genotype counts, the chi-square statistic, and the p-value (1 df — HWE estimates an allele frequency). It fails loud on negative/non-integer counts and an empty sample.

Roadmap (candidates, not commitments)

  • Linkage disequilibrium (D, D′, r²) and genotyping QC metrics.
  • Single-locus association and GWAS-scan orchestration (with genomic control).
  • Population-genetics summaries: Fst, nucleotide diversity, Tajima's D.

Installation

pip install pystatsgenomic

License

MIT © Hai-Shuo. Part of the SGCX open-core ecosystem.

Project details


Download files

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

Source Distribution

pystatsgenomic-0.1.1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pystatsgenomic-0.1.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file pystatsgenomic-0.1.1.tar.gz.

File metadata

  • Download URL: pystatsgenomic-0.1.1.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pystatsgenomic-0.1.1.tar.gz
Algorithm Hash digest
SHA256 66d670287f8f5eea6413ea7216ffd35fd5670daae3d82193cbcf7a77de50ca73
MD5 2b63a10034e5a330225cc41d8e6f2681
BLAKE2b-256 8092efaca0b8ac3937692f03760837e026718dc6103df897328f6f64bd727d45

See more details on using hashes here.

Provenance

The following attestation bundles were made for pystatsgenomic-0.1.1.tar.gz:

Publisher: publish.yml on sgcx-org/pystatsgenomic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pystatsgenomic-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pystatsgenomic-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pystatsgenomic-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b05c7c5af226fb193bb6c98022aaccbb113b5ef428d132d3ae69e071a72f6ba3
MD5 3162d895d3a8ba7e5f762856a270805d
BLAKE2b-256 9061b98eb189059cedb159c61590cfe7f5e98887063d4ce636ba3035aa6a42e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pystatsgenomic-0.1.1-py3-none-any.whl:

Publisher: publish.yml on sgcx-org/pystatsgenomic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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