methylation-clock
БесплатноЗапускает вложенные скриптыНе проверенCompute epigenetic age from DNA methylation arrays using PyAging clocks from GEO accessions or local files.
от ClawBio★ 1 197 звёзд на GitHubОб этом скилле
Methylation Clock
Domain Decisions
Epigenetic age workflows are difficult to reproduce because preprocessing and clock inputs differ across tools and publications. This skill standardizes a PyAging-first pipeline from ingestion to report generation, with explicit reproducibility outputs.
Core Capabilities
- Accepts exactly one input source: GEO accession (
--geo-id) or local methylation file (--input). - Applies notebook-aligned preprocessing (female derivation and EPICv2 aggregation by default).
- Converts tabular data to AnnData and runs one or more methylation clocks.
- Exports predictions, missing-feature diagnostics, metadata, figures, and reproducibility artifacts.
Input Contract
- Exactly one input source:
- GEO accession with
--geo-id(example:GSE139307) - Local file with
--input(.pkl,.pickle,.csv,.tsv,.csv.gz,.tsv.gz)
- GEO accession with
- One row per sample and numeric methylation beta values in
[0, 1]undercg,ch,rs, ornvprobe IDs. Missing probe values are allowed and passed to PyAging's selected imputer. Illumina defines beta values on[0, 1]; if your export reports methylation percentages on[0, 100], divide the probe values by 100 before running this skill. Do not divide age or other metadata. The skill never guesses the input scale. - An optional
sample_idcolumn in CSV/TSV files becomes the sample index and must be present, nonblank, and unique. Otherwise CSV/TSV rows receive numeric IDs. Pickle files retain their DataFrame index, which must also have present, nonblank, unique identifiers. - Known metadata columns are
gender,sex,tissue_type, anddataset. List any other nonnumeric columns with--metadata-cols; do not list a probe column as metadata. For PCGrimAge or GrimAge2, supply numericagein years and knowngender/sex(F/M,Female/Male) or a numericfemalecolumn (1/0). Numericgender/sexcodes are rejected because their meaning is ambiguous. Do not listageorfemalein--metadata-cols: PyAging needs them as model features. The skill rejects missing inputs for those two clocks rather than imputing demographic covariates. - Required output directory via
--output - Optional clock list via
--clocks
Demo And Usage
The bundled two-sample demo is synthetic. Its fixed-seed generator, public probe-identifier source, and checksums are documented in skills/methylation-clock/data/PROVENANCE.md. Its placeholder ages and sex labels have no relationship to the simulated beta values; use its clock predictions only to check that the workflow runs. Reports label this fixture as synthetic whether it is selected with --demo or supplied through --input.
Install the optional PyAging dependency in the Python environment used to run ClawBio. The demo below was verified with PyAging 0.5.7; first use of a clock downloads its public model weights. Local input data is not uploaded.
python -m pip install "pyaging>=0.5.7,<0.6"
# Demo
python skills/methylation-clock/methylation_clock.py \
--demo --clocks Horvath2013 \
--output /tmp/methylation_clock_demo
# GEO input
python skills/methylation-clock/methylation_clock.py \
--geo-id GSE139307 \
--clocks Horvath2013 \
--output /tmp/methylation_clock_geo
# Local methylation file
python skills/methylation-clock/methylation_clock.py \
--input my_methylation.csv.gz \
--clocks Horvath2013,DunedinPACE \
--output /tmp/methylation_clock_local
Use pickle input only when you trust its source; deserializing an untrusted pickle can execute code. --geo-id downloads a public GEO example into the chosen output directory. The skill refuses a nonempty output directory.
What The Five Default Clocks Measure
| Clock | PyAging target | Intended tissue | Additional model inputs | Output unit |
|---|---|---|---|---|
| Horvath2013 | Chronological age | Multiple tissues | None | Years |
| AltumAge | Chronological age | Multiple tissues | None | Years |
| PCGrimAge | Mortality-risk proxy reproducing GrimAge | Whole blood | Age and sex | Years |
| GrimAge2 | Mortality risk | Whole blood | Age and sex | Years |
| DunedinPACE | Pace of aging | Whole blood | None | Biological years per chronological year |
The targets, tissues, and units come from the PyAging clock catalogue; its DNA methylation tutorial identifies age and sex as features for PCGrimAge and GrimAge2. The report uses a unit from PyAging metadata when available, with documented units for the five default clocks as fallbacks. tissue_type is descriptive metadata, not an automatic compatibility check. Compare predictions only within an appropriate tissue and target; a DunedinPACE value is not an age in years. A difference between an estimate and chronological age is not, by itself, a validated health assessment or an age-acceleration analysi
Установить methylation-clock в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл methylation-clock?
Compute epigenetic age from DNA methylation arrays using PyAging clocks from GEO accessions or local files.
Как установить скилл methylation-clock?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл methylation-clock запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic