ppkt2synergy
ppkt2synergy is a Python library for analyzing correlations and synergy in GA4GH Phenopacket cohorts.
Installation
pip install ppkt2synergy
Overview
This package enables the identification of pairwise associations and higher-order interactions between phenotypic features, helping to uncover biologically meaningful patterns in rare disease data.
Features
- Correlation analysis of HPO features (Spearman, Kendall, Phi)
- Synergy analysis to detect non-additive interactions between phenotypic features with respect to a target variable (e.g., variant effects or disease)
- Support for GA4GH phenopacket data
- Structured dataset construction from phenotypic profiles
- Visualization utilities (e.g., correlation heatmaps)
Quickstart
from ppkt2synergy import (
load_phenopackets_by_cohort,
PhenotypeDatasetBuilder,
HPOCorrelationAnalyzer,
CorrelationType,
)
from gpsea.model import VariantEffect
# Load phenopackets
phenopackets = load_phenopackets_by_cohort("FBN1")
# Build dataset
dataset = PhenotypeDatasetBuilder(phenopackets).build(
mane_tx_id="NM_000138.5",
variant_effect_type=VariantEffect.MISSENSE_VARIANT,
)
# Run correlation analysis
analyzer = HPOCorrelationAnalyzer(dataset)
analyzer.compute_correlation_matrix(
correlation_type=CorrelationType.SPEARMAN
)
For a complete workflow and advanced options, see the documentation.
Metadata
Release files for ppkt2synergy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ppkt2synergy-0.1.0.tar.gz | 39.2 kB | Without provenance | Details for ppkt2synergy-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ppkt2synergy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ppkt2synergy-0.1.0-py3-none-any.whl |
Total release size: 87.5 kB
Release files / ppkt2synergy-0.1.0.tar.gz
| Download URL | ppkt2synergy-0.1.0.tar.gz |
|---|---|
| Size | 39.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
068372e6f7ae0271db1b4bb3242d9315c41e420b7322ca3cc2657fd624e83aaa
|
|
BLAKE2b-256 checksum How to use checksums |
1e25a05fd7a182b45a5918ab6583d097eefe9ce0800963f43311af54b5397bde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Release files / ppkt2synergy-0.1.0-py3-none-any.whl
| Download URL | ppkt2synergy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 48.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
48d72b48acf88a03a9dd0076011ce77b89ac42e0cf9586babdde7e6a0ca63837
|
|
BLAKE2b-256 checksum How to use checksums |
c01a3220937151bc58747cecea580439495c00a0235cab7264caaa74581bc685
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Security for ppkt2synergy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.