🐍 pyaging: a Python-based compendium of GPU-optimized aging clocks
pyaging is a cutting-edge Python package designed for the longevity research community, offering a comprehensive suite of GPU-optimized biological aging clocks.
Installation - Clock gallery - Search, cite, get metadata and clock parameters - Illumina Human Methylation Arrays - Illumina Mammalian Methylation Arrays - RRBS DNA methylation - Bulk histone mark ChIP-Seq - Bulk ATAC-Seq - Bulk RNA-Seq - Blood chemistry - CpGPTGrimAge3 - API Reference
With a growing number of aging clocks and biomarkers of aging, comparing and analyzing them can be challenging. pyaging simplifies this process, allowing researchers to input various molecular layers (DNA methylation, histone ChIP-Seq, ATAC-seq, transcriptomics, etc.) and quickly analyze them using multiple aging clocks, thanks to its GPU-backed infrastructure. This makes it an ideal tool for large datasets and multi-layered analysis.
📦 Installation
pyaging requires Python 3.11 or newer and is available on PyPI:
pip install pyaging
To use the histone mark clocks, install the optional pyBigWig dependency as well (not supported on Windows):
pip install pyaging[histone]
🚀 Quickstart
import pandas as pd
import pyaging as pya
pya.data.download_example_data("GSE139307")
df = pd.read_pickle("pyaging_data/GSE139307.pkl")
adata = pya.pp.df_to_adata(df)
pya.pred.predict_age(adata, ["Horvath2013", "AltumAge", "DunedinPACE"])
adata.obs.head()
Clock weights are downloaded on demand from per-clock repositories under the pyaging Hugging Face organization (example data comes from lucascamillomd/pyaging-data). Set the PYAGING_DATA_REVISION environment variable to a release tag (e.g. v0.3.1) to pin downloads to a specific data revision for reproducibility; it defaults to main, the live data release.
❓ Can't find an aging clock?
If you have recently developed an aging clock and would like it to be integrated into pyaging, please email me. I aim to incorporate it within one to two weeks! I'm also happy to adapt to any licensing terms for commercial entities.
💬 Community Discussion
For coding-related queries, feedback, and discussions, please visit our GitHub Issues page.
📝 Changelog
Release notes for each version are available on the GitHub Releases page.
📖 Citation
To cite pyaging, please use the following:
@article{de_Lima_Camillo_pyaging,
author = {de Lima Camillo, Lucas Paulo},
title = "{pyaging: a Python-based compendium of GPU-optimized aging clocks}",
journal = {Bioinformatics},
pages = {btae200},
year = {2024},
month = {04},
issn = {1367-4811},
doi = {10.1093/bioinformatics/btae200},
url = {https://doi.org/10.1093/bioinformatics/btae200},
eprint = {https://academic.oup.com/bioinformatics/advance-article-pdf/doi/10.1093/bioinformatics/btae200/57218155/btae200.pdf},
}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyaging-0.4.0.tar.gz.
File metadata
- Download URL: pyaging-0.4.0.tar.gz
- Upload date:
- Size: 46.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a24251a3d5cafc1178b1c8046838008edb92309c221f597dcb7f2c4afa7cb14c
|
|
| MD5 |
9d365a8d4028abed2225b4925482e2b7
|
|
| BLAKE2b-256 |
feb7750ca2f0d51f27a05450968b837ee06f9999ea0ced9970f169552bda12c4
|
Provenance
The following attestation bundles were made for pyaging-0.4.0.tar.gz:
Publisher:
release.yaml on lucascamillomd/pyaging
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyaging-0.4.0.tar.gz -
Subject digest:
a24251a3d5cafc1178b1c8046838008edb92309c221f597dcb7f2c4afa7cb14c - Sigstore transparency entry: 2513957537
- Sigstore integration time:
-
Permalink:
lucascamillomd/pyaging@f43d776d68972ec4c0e19d2796eae9904f4c8614 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/lucascamillomd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@f43d776d68972ec4c0e19d2796eae9904f4c8614 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyaging-0.4.0-py3-none-any.whl.
File metadata
- Download URL: pyaging-0.4.0-py3-none-any.whl
- Upload date:
- Size: 53.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58ef9c4a3f5a847dacd9114935701bc00001806c8833870fe5b889304f053df8
|
|
| MD5 |
dfd904855d98084f297d2f86d30b5b1e
|
|
| BLAKE2b-256 |
e53989b39352abe2605bdbe61f17e2110bb8e45ce3fdc6559954c2f33c9ff142
|
Provenance
The following attestation bundles were made for pyaging-0.4.0-py3-none-any.whl:
Publisher:
release.yaml on lucascamillomd/pyaging
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyaging-0.4.0-py3-none-any.whl -
Subject digest:
58ef9c4a3f5a847dacd9114935701bc00001806c8833870fe5b889304f053df8 - Sigstore transparency entry: 2513957597
- Sigstore integration time:
-
Permalink:
lucascamillomd/pyaging@f43d776d68972ec4c0e19d2796eae9904f4c8614 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/lucascamillomd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@f43d776d68972ec4c0e19d2796eae9904f4c8614 -
Trigger Event:
push
-
Statement type: