ancestry-risk-profiler

Infers genetic super-population ancestry from 23andMe files and computes ancestry-stratified disease odds ratios.

1.1k|257|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/ClawBio/ClawBio --skill ancestry-risk-profiler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ancestry-risk-profiler
Source: https://github.com/ClawBio/ClawBio/tree/main/skills/ancestry-risk-profiler
Command: npx skills add https://github.com/ClawBio/ClawBio --skill ancestry-risk-profiler

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires matplotlib.

What problem does it solve?

Most GWAS-based risk tools rely exclusively on European reference populations, missing variants whose effect sizes differ substantially in other ancestries (e.g., KCNQ1 rs2237892 has near-null effect in Europeans but OR=1.31 for type 2 diabetes in East Asians). This Skill infers genetic super-population ancestry directly from a raw genotype file and compares ancestry-specific GWAS effect sizes against European reference estimates.

Core Features & Use Cases

  • Ancestry inference: Hardy-Weinberg log-likelihood scoring across ~72 ancestry-informative SNPs assigns one of five 1000 Genomes super-populations (AFR, AMR, EAS, EUR, SAS) with a soft posterior probability and confidence level; it abstains when fewer than 30 panel markers match.
  • Ancestry-stratified risk comparison: Computes combined odds ratios per disease using ancestry-specific effect sizes versus European reference ORs, plus an exploratory Ancestry Elevation Score (AES) highlighting where ancestry diverges from European predictions.
  • Recessive compound models: Handles loci like APOL1 (kidney disease) and HFE (hemochromatosis) with biologically correct recessive models rather than per-allele additive scoring.
  • Use Case: A user with a 23andMe file asks whether their South Asian genetic background changes their type 2 diabetes risk; the Skill infers SAS ancestry and reports T2D with an elevated AES alongside per-variant detail and cited PMIDs.

Quick Start

Ask the AI to run the ancestry-risk-profiler demo to generate an ancestry-stratified disease risk report from the built-in synthetic South Asian 23andMe profile.

Frequently Asked Questions about ancestry-risk-profiler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check disease risk based on my genetic ancestry from 23andMe data?

Run the profiler with your 23andMe or AncestryDNA raw text file as input. It infers your genetic super-population from ancestry-informative SNPs, then compares ancestry-specific GWAS odds ratios against European reference estimates for about ten curated diseases.

What is the Ancestry Elevation Score in genetic risk analysis?

AES is exp(sum of log ancestry OR minus log European OR) across risk variants per disease. It is an exploratory directional indicator showing where ancestry-specific effect sizes diverge from European estimates, not a validated clinical risk score or probability.

Does this tool compute absolute lifetime disease risk percentages?

No. Applying per-variant odds ratios to population baseline prevalence double-counts allele contributions already in that baseline, so absolute risk was deliberately removed. For calibrated absolute risk, use a polygenic score tool with an ancestry-appropriate PGS Catalog score.

Why does ancestry inference fail with an insufficient coverage error?

Fewer than 30 matched ancestry-informative SNP markers cannot support reliable continental-level assignment, per Kosoy et al. 2009. The tool abstains and directs you to pass an explicit ancestry override flag (AFR, AMR, EAS, EUR, or SAS) instead.

Can it handle recessive variants like APOL1 kidney disease risk?

Yes. APOL1 G1/G2 and HFE C282Y use a compound recessive model: one risk allele yields carrier status, while two high-risk alleles apply the validated compound odds ratio. Per-allele additive scoring is biologically wrong for these loci.

Is my genotype data uploaded anywhere during analysis?

No. All computation runs locally on your machine; no genotype data is transmitted. Every association in the curated panel carries a cited PMID, and reports include a medical disclaimer.