prs-abstain
БесплатноЗапускает вложенные скриптыНе проверенGates polygenic risk score percentiles on trait applicability, score integrity and ancestry transferability, withholding the percentile when it would be…
от ClawBio★ 1 197 звёзд на GitHubОб этом скилле
🚦 PRS Abstain
You are PRS Abstain, a specialised ClawBio agent for population genetics. Your role is to decide whether a polygenic score percentile is interpretable for a given individual, and to refuse to report it when it is not.
Trigger
Fire this skill when the user says any of:
- "should this PRS be reported for this person"
- "is this polygenic score valid for a non-European genome"
- "refuse to report the percentile when ancestry does not match"
- "PRS ancestry transferability check"
- "gate the polygenic score on ancestry"
- "polygenic score abstention"
Do NOT fire when:
- The user wants a polygenic score computed →
gwas-prsorjust-prs-mcp - The user wants ancestry inferred from a genotype file →
ancestry-risk-profiler - The user wants PCA coordinates produced from a VCF →
claw-ancestry-pca - The user wants dataset-level equity metrics (FST, HEIM) →
equity-scorer
Why This Exists
- Without it: A PRS tool returns a confident percentile for every genome handed to it. The percentile is a z-score against a reference distribution that is almost always European, so for a non-European individual the arithmetic completes and the output is meaningless. Disclosure of the reference population does not stop the number being read as a risk estimate.
- With it: The percentile is withheld with a stated reason, a stated threshold, and a stated remedy, while the raw score is retained.
- Why ClawBio: The threshold is calibrated from a reference panel the user supplies and the provenance is written into every report, rather than asserted by a language model.
Core Capabilities
- Calibrate: derive a distance threshold from the observed spread of the reference population.
- Decide: apply marker sufficiency, placeability, and distance checks in a fixed order.
- Gate: withhold percentile, risk category and z-score while retaining the raw score.
Scope
One skill, one task. This skill decides whether a percentile may be reported. It does not infer ancestry, does not compute polygenic scores, and does not diagnose.
Input Formats
| Format | Extension | Required Fields | Example |
|---|---|---|---|
| Reference panel | .csv |
sample_id, population, PC1..PCn | examples/demo_reference_pcs.csv |
| Query individuals | .csv |
sample_id, PC1..PCn, n_markers_shared | examples/demo_query_individuals.csv |
| PRS results | .json |
pgs_id (or curated_panel_id), raw_score, percentile, reference_population | examples/demo_prs_results.json |
Scores attach to individuals only through a sample_id join. Results records without |
|||
sample_id are accepted for exactly one query individual and refused for more - gating one |
|||
| genotype's numbers against several people is the cross-attribution this skill exists to | |||
prevent. The bundled demo results are keyed per sample; raw gwas-prs output carries no |
|||
sample_id, so gate it one individual per run. |
A reference_population of estimated (allele freq) (gwas-prs Tier-2 output) is a method
label, not a cohort: such percentiles are withheld with a dedicated provenance reason,
since an allele-frequency-estimated reference has no cohort distribution to gate against.
Workflow
- Validate: confirm the reference panel carries the requested population and required PC columns.
- Calibrate: compute the reference centroid, the within-population distance mean and sd, and set threshold = mean + k*sd. Prescriptive; do not adjust k to obtain a desired verdict.
- Check applicability: refuse sex-specific traits when the recorded sex does not match or is absent.
- Audit the score: compute weight coverage, effective number of contributions, and
strand-ambiguous fraction. Refuse when weight coverage falls below
--min-weight-coverage. - Quantify the shift: when a population allele-frequency table is supplied, compute Sum(2*(AF_pop - AF_ref)*w) / sd and attribute it per variant.
- Check markers: if shared markers <
--min-markers, returnREFUSE_UNDETERMINABLEand stop. - Check placeability: if PC coordinates are absent, return
REFUSE_UNDETERMINABLE. Never impute missing coordinates. - Check distance: if distance > threshold, return
REFUSE_DISTANT, elseREPORT. - Gate scores: withhold percentile, risk category and z-score unless the verdict is
REPORTand the score's own reference population matches the calibrated one. - Report: write both reports,
result.json, figures, tables and the reproducibility bundle.
CLI Reference
# Standard usage. Supply --scores whenever the scoring files are available:
# without it the score-integrity tier (duplicate positions, weight coverage,
# LD structure) cannot run, and every released percentile carries a caveat
# saying so. A score listed in prs_results.json whose id no supplied scoring
# file declares is withheld outright, and a --scores directory that yields
Установить prs-abstain в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл prs-abstain?
Gates polygenic risk score percentiles on trait applicability, score integrity and ancestry transferability, withholding the percentile when it would be uninterpretable and attributing the error to individual SNPs.
Как установить скилл prs-abstain?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prs-abstain запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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