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: Out-of-sample permutation gene importance (permutation_gene_importance)
  • 🎨 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.2.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.2.0
File Size Uploaded
grnimmuneclock-1.2.0.tar.gz 13.5 MB Details

Built distribution (wheel)

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

Total release size: 27.1 MB

Release files / grnimmuneclock-1.2.0.tar.gz

Download URL grnimmuneclock-1.2.0.tar.gz
Size 13.5 MB
Tags Source
SHA-256 checksum
How to use checksums
60e4f6455a976ce9b686bd1cae2c4991ce3f041c089e7923cd37a5ab1ac80230
BLAKE2b-256 checksum
How to use checksums
d9ee4865e6cf7b066be6ef7eafa4e2420670b9b1af50e15ea6c154d7c83f8016
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.2.0-py3-none-any.whl

Download URL grnimmuneclock-1.2.0-py3-none-any.whl
Size 13.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4fb7b3083c65fe61a1a2024de9299b55e51779d35c5edc388a398d585f7963ab
BLAKE2b-256 checksum
How to use checksums
b696672b858352b48639ccb9c9dd0370356acfe30498aca578214e5ac5897995
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

1.3.0

2 release files

This release

1.2.0 This release

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