Skip to main content

Chara Survival

Chara Survival is a cross-platform survival-analysis toolkit for frozen molecular prognostic models. It provides strict gene-signature alignment, independent microarray standardization, Coxnet inference, thermodynamic graph utilities, and reproducible clinical benchmarking for lung adenocarcinoma cohorts.

Scientific scope

The package supports inference with the 4,337-gene Chara intersection signature derived between TCGA-LUAD RNA-seq and the independent GSE31210 Affymetrix cohort. Its preprocessing path preserves feature order, coerces expression values safely, imputes unavailable genes deterministically, and applies external-cohort StandardScaler normalization before generating linear risk scores.

The repository also contains utilities for thermodynamic graph Laplacians, exponential heat kernels, frozen Coxnet model bundles, survival-curve rendering, and comparative frontier benchmarking against Coxnet, Random Survival Forest, clinical Cox-PH, and DeepSurv baselines.

Research context

This work was carried out under the guidance of Dr. Kharerin Hungyo, who is leading the Computational and Physical Genomics Lab at IIT, Mandi.

Installation

pip install chara-survival

For development:

git clone https://github.com/<your-account>/chara-survival.git
cd chara-survival
pip install -e .

Model inference

import pandas as pd
from chara import CharaModel

model = CharaModel.load("chara_model_4337.pkl")
expression = pd.read_csv("patient_expression.csv", index_col=0)
risk, x_scaled, aligned, scaler, alpha_index = model.predict(expression)

The frozen model artifact is distributed separately from the lightweight Python package. Keep chara_model_4337.pkl beside application code when launching the included Gradio interface.

Web application

Run the Apple-inspired scientific interface with:

python app.py

Upload a patient-by-gene CSV to receive aligned risk scores, survival curves, and a downloadable report.

License and citation

This repository is intended for research use. Cite the associated manuscript and acknowledge the Computational and Physical Genomics Lab at IIT, Mandi when using the model or software in published work.

Download files

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

Source Distribution

chara_survival-0.1.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

chara_survival-0.1.4-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chara_survival-0.1.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for chara_survival-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4633635fcc37425ba97050f66a77ca26ba16250e498db2fa202f887573d3bc09
MD5 2c33d53ebb42fdead8b0da4df00715fd
BLAKE2b-256 f172476128c134aa5a3eda3fd3f065815c5e10a27b8c6cc789e8edc763bf2c09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chara_survival-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for chara_survival-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e70d48bb432db64cc8f03fb5ed45c5affd14abc3e636437c4f86ef823cd4b89d
MD5 ee69ffe96bf64066d3914688057047a8
BLAKE2b-256 342a8a1bdf2396ce117b8b0735fd15f45e8fd153d3e07e347490e816a4cb3764

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

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

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page