Skip to main content

GRNimmuneClock

Cell-Type Specific Aging Clocks for Immune Cells

GRNimmuneClock provides pre-trained aging clocks for immune cell types, trained on genes significantly associated with age. Predict biological age from gene expression data with cell-type specific models trained on multiple cohorts. Each clock also ships with a consensus gene regulatory network (GRN) for the same cell type, usable to interpret the clock's genes in terms of transcription factor (TF) activity.

Features

  • 🔬 Cell-Type Specific: Separate models for CD4T and CD8T cells
  • 🧬 Age-Associated Features: Trained on genes significantly correlated with age, not a fixed gene panel
  • 🔗 Network Analysis: Access bundled consensus GRNs for TF-target exploration, and score TF activity from a clock's coefficients (tf_activity_from_coefs)
  • 🔍 Interpretation: Regulon overrepresentation among a clock's genes (regulon_ora)
  • 🎨 Visualization Tools: Built-in plotting functions for analysis
  • 🚀 Easy to Use: Simple Python API
  • 🔧 Training Pipeline: Tools to train custom aging clocks

Installation

pip install grnimmuneclock

Or install from source:

git clone https://github.com/janursa/GRNimmuneClock.git
cd GRNimmuneClock
pip install -e .

Quick Start

from grnimmuneclock import AgingClock, load_example_data
import grnimmuneclock.plotting as gplot

# Load pre-trained clock for CD4T cells
clock = AgingClock(cell_type='CD4T')

# Load example data
adata = load_example_data()

# Predict biological age
adata_predicted = clock.predict(adata)
print(adata_predicted.obs['predicted_age'])

# Visualize predictions
gplot.plot_predicted_vs_actual(adata_predicted, hue='sex')

See the tutorial.ipynb for more.

Supported Cell Types

  • CD4T: CD4+ T cells
  • CD8T: CD8+ T cells

Model Information

All models are:

  • Algorithm: Ridge regression with StandardScaler
  • Features: Gene expression values, restricted per cell type to genes significantly associated with age (not a GRN target list)
  • Training: Multiple cohorts (European, Korean, Japanese, Chinese)
  • Age Range: 20-80 years
  • Species: Human
  • Tissue: Peripheral blood

Per-model feature counts and held-out performance are in grnimmuneclock/models/<cell_type>/metadata.json.

Citation

If you use GRNimmuneClock in your research, please cite:

@article{nourisa2025grnimmuneclock,
  title={TBD},
  author={Nourisa, Jalil and others},
  journal={TBD},
  year={2025}
}

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For questions and issues, please open an issue on GitHub.

Metadata

Release files for grnimmuneclock 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for grnimmuneclock 1.3.0
File Size Uploaded
grnimmuneclock-1.3.0.tar.gz 2.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for grnimmuneclock 1.3.0
File Interpreter ABI Platform
grnimmuneclock-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.9 MB

Release files / grnimmuneclock-1.3.0.tar.gz

Download URL grnimmuneclock-1.3.0.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
c0a2b68cda1a1658adbdbe4e44af8e60cbb827821a68975eb8111cd4b632a102
BLAKE2b-256 checksum
How to use checksums
b90e789bb11eb5dde7700f61439f801496c295ae8b0570560c1c9d8a5817b2d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.15

Release files / grnimmuneclock-1.3.0-py3-none-any.whl

Download URL grnimmuneclock-1.3.0-py3-none-any.whl
Size 2.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
57b8263b928adbdd9d218c53f387fd6bc182bd43d50c81c68802bdf0fb39ebdf
BLAKE2b-256 checksum
How to use checksums
2c6afd0880be352f0049afe7db8952dfcded95cdd53aff34ed96f7f013d04c44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.15

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release files

1.1.0

1 release file

1.0.0

2 release files

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