Skip to main content

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.


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)

Source distribution for ppkt2synergy 0.1.0
File Size Uploaded
ppkt2synergy-0.1.0.tar.gz 39.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ppkt2synergy 0.1.0
File Interpreter ABI Platform
ppkt2synergy-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.7

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page