Skip to main content

A Python package for synergy and correlation analysis of HPO annotations in GA4GH phenopacket cohorts

Project description

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.


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

ppkt2synergy-0.1.0.tar.gz (39.2 kB view details)

Uploaded Source

Built Distribution

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

ppkt2synergy-0.1.0-py3-none-any.whl (48.3 kB view details)

Uploaded Python 3

File details

Details for the file ppkt2synergy-0.1.0.tar.gz.

File metadata

  • Download URL: ppkt2synergy-0.1.0.tar.gz
  • Upload date:
  • Size: 39.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ppkt2synergy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 068372e6f7ae0271db1b4bb3242d9315c41e420b7322ca3cc2657fd624e83aaa
MD5 fba6773d4c4c86098cad14475e79bbe9
BLAKE2b-256 1e25a05fd7a182b45a5918ab6583d097eefe9ce0800963f43311af54b5397bde

See more details on using hashes here.

File details

Details for the file ppkt2synergy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ppkt2synergy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 48.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ppkt2synergy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48d72b48acf88a03a9dd0076011ce77b89ac42e0cf9586babdde7e6a0ca63837
MD5 dc6e62994f5fc373eb94bb6d2dc78cda
BLAKE2b-256 c01a3220937151bc58747cecea580439495c00a0235cab7264caaa74581bc685

See more details on using hashes here.

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