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.3.tar.gz (4.3 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.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chara_survival-0.1.3.tar.gz
  • Upload date:
  • Size: 4.3 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.3.tar.gz
Algorithm Hash digest
SHA256 7583bde1fd39f6b035a3e26935566b1bc87d8949259dd9089cf5052400744fd0
MD5 5fd995f7b86cf356dd3c0ec2ddc20220
BLAKE2b-256 9d173b6b3c59597853ee31c6b1ef782d5fe56c08ab5817767ba8addb3b965a76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chara_survival-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f6253db4548369f441aca48d991ed0ac803ba3b9cf115475f6be46a0965e616f
MD5 2a498b7e782799beef262fd051e25eb9
BLAKE2b-256 55724f1a9cc9cc9901f97ed25055e7b290cdc478453f23509cead085056969b6

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

0.1.4

2 files

This release

0.1.3 This release

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