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.4.tar.gz (37.1 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.4-py3-none-any.whl (45.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: phenosign-0.1.4.tar.gz
  • Upload date:
  • Size: 37.1 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.4.tar.gz
Algorithm Hash digest
SHA256 1eded713d192ce451376abb91f729eb2c5814c88986ac33e5f214e4ece776d32
MD5 50d251ff4ade455a59a0ecfe790758c8
BLAKE2b-256 74baf16bc81c52ef81935e156e72d16fe1c07cdcca98cc31f0bbdd44078af7fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: phenosign-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 45.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5d77f516f25e228c7e7ed1ad32732bb415e074578b153b059c9888206b4f6177
MD5 8fbcbbf67fd1e575af38025185d0e1d8
BLAKE2b-256 cd331636b5b908c5f6200973db07df05f4dccd96ab9a85fa852c5d03c26059af

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.5

2 files

This release

0.1.4 This release

2 files

0.1.3

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