Skip to main content

MetaClock workflow

MetaClock workflow diagram

Project overview

MetaClock is an integrated framework that combines predictions from multiple established epigenetic clocks into meta models. This repository organizes the reproducible downstream workflows used to evaluate chronological-age prediction, quantify generalization across array platforms, tissues, and species, and study biological-age associations with disease and interventions.

Environment

Install uv and create the locked Python 3.11 environment from the repository root:

uv sync --frozen

MetaClock Python package

The aging_metaclock distribution provides the importable metaclock package. Install it from PyPI using Python 3.11:

python -m pip install aging_metaclock

For local development, install from the repository root:

python -m pip install -e .

Input contract

metaclock.fit() accepts an .h5ad file in pyaging's standard orientation:

  • rows are samples;
  • columns are DNAm or phenotype features;
  • feature names are stored in adata.var_names;
  • the numeric training response is stored in adata.obs["age"] by default.

Clocks that use phenotype covariates, such as GrimAge, require those covariates in the input matrix and adata.var_names according to pyaging's input rules.

Fit and predict

Pass any ordered list of pyaging component-model names.

import metaclock

component_model_list = [
    "horvath2013",
    "hannum",
    "dnamphenoage",
]

model = metaclock.fit(
    train_adata,
    component_model_list,
    "elastic_net",
    target="age",
)

predicted_age = model.predict(test_adata)

The three positional arguments are the input data, component-model list, and model architecture. Set pyaging_dir when using a specific local pyaging weight cache.

To run the component clocks without fitting a meta-model:

component_outputs = metaclock.predict_components(
    test_adata,
    component_model_list,
)

Metadata

Release files for aging-metaclock 0.1.1

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

Source distribution (sdist)

Source distribution for aging-metaclock 0.1.1
File Size Uploaded Provenance Actions
aging_metaclock-0.1.1.tar.gz 8.8 kB Without provenance Details for aging_metaclock-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aging-metaclock 0.1.1
File Interpreter ABI Platform Actions
aging_metaclock-0.1.1-py3-none-any.whl Python 3 none any Details for aging_metaclock-0.1.1-py3-none-any.whl

Total release size: 19.2 kB

Release files / aging_metaclock-0.1.1.tar.gz

Download URL aging_metaclock-0.1.1.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
de58588d6f5009919631328a3be3d0e20db813c7ae2c36335bb22985e657eef6
BLAKE2b-256 checksum
How to use checksums
01a1dac0442b265cf7b2d63d51ab7ab499ec0baae2f0fcd28de253f4c490f319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.14

Release files / aging_metaclock-0.1.1-py3-none-any.whl

Download URL aging_metaclock-0.1.1-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80c193a71de69272e7a479bdaf333a4ae63164abe97c58d05efca727aeca9182
BLAKE2b-256 checksum
How to use checksums
f8241d709926a31518a5dd377bc79daa4746ec03ad29fbc7eca62e2b0aec0ebb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.14

Security for aging-metaclock 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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