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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66d670287f8f5eea6413ea7216ffd35fd5670daae3d82193cbcf7a77de50ca73
|
|
| MD5 |
2b63a10034e5a330225cc41d8e6f2681
|
|
| BLAKE2b-256 |
8092efaca0b8ac3937692f03760837e026718dc6103df897328f6f64bd727d45
|
Provenance
The following attestation bundles were made for pystatsgenomic-0.1.1.tar.gz:
Publisher:
publish.yml on sgcx-org/pystatsgenomic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pystatsgenomic-0.1.1.tar.gz -
Subject digest:
66d670287f8f5eea6413ea7216ffd35fd5670daae3d82193cbcf7a77de50ca73 - Sigstore transparency entry: 1618899904
- Sigstore integration time:
-
Permalink:
sgcx-org/pystatsgenomic@7a3a9013ccf53c6a7c89ac50b7ee7c63270681d7 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/sgcx-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7a3a9013ccf53c6a7c89ac50b7ee7c63270681d7 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b05c7c5af226fb193bb6c98022aaccbb113b5ef428d132d3ae69e071a72f6ba3
|
|
| MD5 |
3162d895d3a8ba7e5f762856a270805d
|
|
| BLAKE2b-256 |
9061b98eb189059cedb159c61590cfe7f5e98887063d4ce636ba3035aa6a42e2
|
Provenance
The following attestation bundles were made for pystatsgenomic-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on sgcx-org/pystatsgenomic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pystatsgenomic-0.1.1-py3-none-any.whl -
Subject digest:
b05c7c5af226fb193bb6c98022aaccbb113b5ef428d132d3ae69e071a72f6ba3 - Sigstore transparency entry: 1618900031
- Sigstore integration time:
-
Permalink:
sgcx-org/pystatsgenomic@7a3a9013ccf53c6a7c89ac50b7ee7c63270681d7 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/sgcx-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7a3a9013ccf53c6a7c89ac50b7ee7c63270681d7 -
Trigger Event:
release
-
Statement type: