Skip to main content

phenosign

phenosign is a Python library for analyzing correlations and synergy in GA4GH Phenopacket cohorts.

Installation

pip install phenosign

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 (Phi Coefficient)
  • 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 pathlib import Path
import json
from phenosign import (
    PhenotypeDatasetBuilder,
    HPOCorrelationAnalyzer,
)

# Load phenopackets
phenopacket_dir = Path("path/to/your/fbn1_phenopackets/")

phenopackets = []
for file_path in phenopacket_dir.glob("*.json"):
    with open(file_path, "r", encoding="utf-8") as f:
        data: str = f.read()
        phenopacket: Phenopacket = Parse(data, Phenopacket())
        phenopackets.append(phenopacket)

# Build dataset
dataset = PhenotypeDatasetBuilder(phenopackets).build()

# Run correlation analysis
analyzer = HPOCorrelationAnalyzer(dataset)
results = analyzer.compute_correlation_matrix()
results.result_table.head()

For a complete workflow and advanced options, see the documentation.

Download files

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

Source Distribution

phenosign-0.1.3.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

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

phenosign-0.1.3-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

Details for the file phenosign-0.1.3.tar.gz.

File metadata

  • Download URL: phenosign-0.1.3.tar.gz
  • Upload date:
  • Size: 36.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for phenosign-0.1.3.tar.gz
Algorithm Hash digest
SHA256 19bdd71391bdd86a24bf546c8c30436df3e9f06906eeac0c1c6458e0d52a7558
MD5 3fc91d4f3b4c956d4227291ce5059393
BLAKE2b-256 b584a9d68bb4d65a0b6fbfbffd931fa60e9ba91c0066cfa58b769d9263bcd1db

See more details on using hashes here.

File details

Details for the file phenosign-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: phenosign-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 44.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for phenosign-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 71f783540c8b72dd2a24547462382d0e10be041b4b3a68c2f329a1c7b560e2b6
MD5 c0f131d0111034f6039f004e747965e7
BLAKE2b-256 97d9fcb0de9ae005dca5bb1301634df022f0309fd0890671e5a334e0cd829d08

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.5

2 files

0.1.4

2 files

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

1 file

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