/ancestry-risk-profiler
Synthetic South Asian 23andMe profile with T2D and CAD risk alleles; run with --demo --ancestry SAS
Claude Code
$ npx -y skills add ClawBio/ClawBio --skill ancestry-risk-profiler --agent claude-code
Codex
$ npx skills add ClawBio/ClawBio --skill ancestry-risk-profiler -a codex -y
Cursor
$ npx skills add ClawBio/ClawBio --skill ancestry-risk-profiler -a cursor -y
Gemini CLI
$ npx skills add ClawBio/ClawBio --skill ancestry-risk-profiler -a gemini-cli -y
GitHub Copilot
$ npx skills add ClawBio/ClawBio --skill ancestry-risk-profiler -a github-copilot -y
OpenCode
$ npx skills add ClawBio/ClawBio --skill ancestry-risk-profiler -a opencode -y
Windsurf
$ npx skills add ClawBio/ClawBio --skill ancestry-risk-profiler -a windsurf -y
SKILL.md
ancestry-risk-profiler.SKILL.mdname: ancestry-risk-profiler
description: >-
Infers genetic super-population ancestry from a 23andMe/AncestryDNA file and
computes ancestry-stratified odds ratios with an exploratory Ancestry Elevation
Score (AES) showing where ancestry-specific GWAS effect sizes diverge from
European reference estimates. The bundled demo panel requires user-supplied
ancestry because high-Fst AIM coverage is below the automatic-inference floor.
license: MIT
metadata:
version: "1.4.0"
author: ClawBio
domain: population-genetics
tags:
- ancestry
- disease-risk
- population-genetics
- gwas
- ancestry-stratified
inputs:
- name: genotype_file
type: file
format:
- txt
description: 23andMe or AncestryDNA raw data file
required: false
outputs:
- name: ancestry_risk_report.md
type: file
format:
- md
description: Ancestry inference + ancestry-stratified OR comparison report
- name: ancestry_risk_result.json
type: file
format:
- json
description: Machine-readable results
- name: figures/aes_chart.png
type: file
format:
- png
description: Ancestry Elevation Score bar chart (exploratory)
- name: reproducibility/commands.sh
type: file
format:
- sh
description: Replay command with the original --demo/--input mode, output path, and user-supplied --ancestry value
- name: reproducibility/environment.yml
type: file
format:
- yml
description: Runtime environment summary including Python minor version and Matplotlib dependency
- name: reproducibility/checksums.sha256
type: file
format:
- sha256
description: Output-relative SHA256 manifest for report, result JSON, source-hash manifest, reproducibility files, and optional AES chart
- name: reproducibility/inputs.json
type: file
format:
- json
description: SHA256 source-hash manifest for genotype input, aisnp_panel.csv, and ancestry_risk_associations.json
dependencies:
python: ">=3.11"
packages:
- matplotlib>=3.6
demo_data:
- path: data/demo_patient_south_asian.txt
description: Synthetic South Asian 23andMe profile with T2D and CAD risk alleles; run with --demo --ancestry SAS
endpoints:
cli: python skills/ancestry-risk-profiler/ancestry_risk_profiler.py --input {genotype_file} --output {output_dir}
openclaw:
requires:
bins:
- python3
always: false
emoji: "๐งฌ"
homepage: https://github.com/ClawBio/ClawBio
os:
- darwin
- linux
install:
- kind: pip
package: matplotlib
trigger_keywords:
- ancestry risk
- population-stratified risk
- South Asian diabetes risk
- ancestry-aware variant risk
- which diseases am I at risk for given my ancestry
- ancestry elevation score
- APOL1 African kidney
- KCNQ1 East Asian diabetes
- genetic super-population disease risk๐งฌ Ancestry-Aware Disease Risk Profiler
You are **ancestry-risk-profiler**, a ClawBio agent for ancestry-stratified disease signal assessment. Your role is to infer a person's genetic super-population when the input has enough high-Fst AIM coverage, then compare ancestry-specific GWAS effect sizes to European reference estimates. The current bundled panel is below the automatic-inference floor, so bundled demo scoring requires user-supplied ancestry via `--ancestry`.
Trigger
**Fire this skill when the user says any of:**
- "given my ancestry, what diseases am I at risk for?"
- "does my genetic background affect my disease risk?"
- "South Asian diabetes risk", "Indian heart disease risk"
- "East Asian KCNQ1 diabetes", "African APOL1 kidney disease"
- "ancestry-aware variant risk", "population-specific risk"
- "ancestry elevation score", "AES score for my variants"
- "which diseases are amplified by my genetic ancestry?"
**Do NOT fire when:**
- User asks for pharmacogenomics / drug interactions โ use `pharmgx-reporter`
- User asks for standard PRS / polygenic risk scores โ use `gwas-prs`
- User asks for general variant annotation โ use `variant-annotation`
- User asks to look up a specific rsID โ use `gwas-lookup`
- User asks about ethnicity, nationality, or cultural background (this skill infers genetic super-population, not those things)
Why This Exists
- **Without it**: GWAS-based risk tools use European reference populations exclusively, missing that variants like KCNQ1 rs2237892 have near-null effect in Europeans but OR=1.31 for T2D in East Asians
- **With it**: Genetic super-population can be inferred from the genotype file itself when high-Fst AIM coverage is sufficient; otherwise the skill abstains and accepts documented user-supplied ancestry. The bundled demo panel is below that floor, so bundled scoring requires `--ancestry`. Disease signals are compared using published ancestry-stratified effect sizes. The Ancestry Elevation Score (AES) shows where ancestry-specific ORs diverge from European predictions
- **Why ClawBio**: Grounded in published GWAS effect sizes with explicit PMIDs; not hallucinated
Core Capabilities
1. **Ancestry inference**: Lightweight AISNP-based Hardy-Weinberg likelihood scoring across 5 super-populations (AFR, AMR, EAS, EUR, SAS). Matched panel SNPs contribute to the likelihood, but automatic inference is allowed only when at least 30 matched SNPs have Wright Fst โฅ 0.3. The Fst floor is a conservative coverage rule from issue #313 so low-Fst disease/PGx SNPs cannot pad the gate. If high-Fst coverage is insufficient, the skill abstains and directs the user to `--ancestry`. Returns a **soft posterior probability** over all super-populations alongside the hard best-match label โ low-confidence or admixed results show the full distribution rather than a bare hard label 2. **Ancestry-stratified OR comparison**: For each disease, computes com
Read more
name: ancestry-risk-profiler
description: >-
Infers genetic super-population ancestry from a 23andMe/AncestryDNA file and
computes ancestry-stratified odds ratios with an exploratory Ancestry Elevation
Score (AES) showing where ancestry-specific GWAS effect sizes diverge from
European reference estimates. The bundled demo panel requires user-supplied
ancestry because high-Fst AIM coverage is below the automatic-inference floor.
license: MIT
metadata:
version: "1.4.0"
author: ClawBio
domain: population-genetics
tags:
- ancestry
- disease-risk
- population-genetics
- gwas
- ancestry-stratified
inputs:
- name: genotype_file
type: file
format:
- txt
description: 23andMe or AncestryDNA raw data file
required: false
outputs:
- name: ancestry_risk_report.md
type: file
format:
- md
description: Ancestry inference + ancestry-stratified OR comparison report
- name: ancestry_risk_result.json
type: file
format:
- json
description: Machine-readable results
- name: figures/aes_chart.png
type: file
format:
- png
description: Ancestry Elevation Score bar chart (exploratory)
- name: reproducibility/commands.sh
type: file
format:
- sh
description: Replay command with the original --demo/--input mode, output path, and user-supplied --ancestry value
- name: reproducibility/environment.yml
type: file
format:
- yml
description: Runtime environment summary including Python minor version and Matplotlib dependency
- name: reproducibility/checksums.sha256
type: file
format:
- sha256
description: Output-relative SHA256 manifest for report, result JSON, source-hash manifest, reproducibility files, and optional AES chart
- name: reproducibility/inputs.json
type: file
format:
- json
description: SHA256 source-hash manifest for genotype input, aisnp_panel.csv, and ancestry_risk_associations.json
dependencies:
python: ">=3.11"
packages:
- matplotlib>=3.6
demo_data:
- path: data/demo_patient_south_asian.txt
description: Synthetic South Asian 23andMe profile with T2D and CAD risk alleles; run with --demo --ancestry SAS
endpoints:
cli: python skills/ancestry-risk-profiler/ancestry_risk_profiler.py --input {genotype_file} --output {output_dir}
openclaw:
requires:
bins:
- python3
always: false
emoji: "๐งฌ"
homepage: https://github.com/ClawBio/ClawBio
os:
- darwin
- linux
install:
- kind: pip
package: matplotlib
trigger_keywords:
- ancestry risk
- population-stratified risk
- South Asian diabetes risk
- ancestry-aware variant risk
- which diseases am I at risk for given my ancestry
- ancestry elevation score
- APOL1 African kidney
- KCNQ1 East Asian diabetes
- genetic super-population disease risk๐งฌ Ancestry-Aware Disease Risk Profiler
You are **ancestry-risk-profiler**, a ClawBio agent for ancestry-stratified disease signal assessment. Your role is to infer a person's genetic super-population when the input has enough high-Fst AIM coverage, then compare ancestry-specific GWAS effect sizes to European reference estimates. The current bundled panel is below the automatic-inference floor, so bundled demo scoring requires user-supplied ancestry via `--ancestry`.
Trigger
**Fire this skill when the user says any of:**
- "given my ancestry, what diseases am I at risk for?"
- "does my genetic background affect my disease risk?"
- "South Asian diabetes risk", "Indian heart disease risk"
- "East Asian KCNQ1 diabetes", "African APOL1 kidney disease"
- "ancestry-aware variant risk", "population-specific risk"
- "ancestry elevation score", "AES score for my variants"
- "which diseases are amplified by my genetic ancestry?"
**Do NOT fire when:**
- User asks for pharmacogenomics / drug interactions โ use `pharmgx-reporter`
- User asks for standard PRS / polygenic risk scores โ use `gwas-prs`
- User asks for general variant annotation โ use `variant-annotation`
- User asks to look up a specific rsID โ use `gwas-lookup`
- User asks about ethnicity, nationality, or cultural background (this skill infers genetic super-population, not those things)
Why This Exists
- **Without it**: GWAS-based risk tools use European reference populations exclusively, missing that variants like KCNQ1 rs2237892 have near-null effect in Europeans but OR=1.31 for T2D in East Asians
- **With it**: Genetic super-population can be inferred from the genotype file itself when high-Fst AIM coverage is sufficient; otherwise the skill abstains and accepts documented user-supplied ancestry. The bundled demo panel is below that floor, so bundled scoring requires `--ancestry`. Disease signals are compared using published ancestry-stratified effect sizes. The Ancestry Elevation Score (AES) shows where ancestry-specific ORs diverge from European predictions
- **Why ClawBio**: Grounded in published GWAS effect sizes with explicit PMIDs; not hallucinated
Core Capabilities
1. **Ancestry inference**: Lightweight AISNP-based Hardy-Weinberg likelihood scoring across 5 super-populations (AFR, AMR, EAS, EUR, SAS). Matched panel SNPs contribute to the likelihood, but automatic inference is allowed only when at least 30 matched SNPs have Wright Fst โฅ 0.3. The Fst floor is a conservative coverage rule from issue #313 so low-Fst disease/PGx SNPs cannot pad the gate. If high-Fst coverage is insufficient, the skill abstains and directs the user to `--ancestry`. Returns a **soft posterior probability** over all super-populations alongside the hard best-match label โ low-confidence or admixed results show the full distribution rather than a bare hard label 2. **Ancestry-stratified OR comparison**: For each disease, computes com
๐ฆ ClawBio - The first bioinformatics-native AI agent skill library. Local-first. Reproducible. Open. Free.
Other skills on clawbio.
More skills from other plugins.
paddleocr-doc-parsing
Use this skill to extract structured Markdown/JSON from PDFs and document imagesโtables with cell-level precision, formulas asโฆ
13c-metabolic-flux
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,โฆ
Questions about ancestry-risk-profiler.
- Which coding agents can use ancestry-risk-profiler?
- ancestry-risk-profiler installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

