tooluniverse-polygenic-risk-score
Build and interpret polygenic risk scores (PRS) for complex diseases using GWAS summary statistics. Covers PRS construction (clumping/thresholding, PRS-CS), validation in independent cohorts, ancestry-aware adjustment, and clinical interpretation (population-relative risk, not absolute prediction). Use for PRS-based risk stratification.
What this skill does
# Polygenic Risk Score (PRS) Builder Build and interpret polygenic risk scores for complex diseases using genome-wide association study (GWAS) data. ## Reasoning Strategy A polygenic risk score predicts genetic risk, not disease. A high PRS means elevated risk relative to the population — it does not mean the person will develop the condition, and a low PRS does not confer immunity. PRS performance varies dramatically across ancestries: a European-derived PRS applied to a West African population can lose 50–70% of its predictive power because the underlying GWAS was trained on European allele frequencies and LD patterns. Effect sizes from discovery GWAS are subject to winner's curse (overestimation in single studies); always prefer weights from large meta-analyses or validated PGS Catalog models. PRS should always be interpreted in the context of non-genetic risk factors — for most complex diseases, environmental factors contribute as much or more than genetics. **LOOK UP DON'T GUESS**: Do not assume effect sizes, allele frequencies, or which SNPs are genome-wide significant for a trait — always query GWAS Catalog (`gwas_get_associations_for_trait`) for actual data. Do not assume a validated PRS model exists for a trait; check PGS Catalog via PubMed search. ## Overview **Use Cases:** - "Calculate my genetic risk for type 2 diabetes" - "Build a polygenic risk score for coronary artery disease" - "What's my genetic predisposition to Alzheimer's disease?" - "Interpret my PRS percentile for breast cancer risk" **What This Skill Does:** - Extracts genome-wide significant variants (p < 5e-8) from GWAS Catalog - Builds weighted PRS models using effect sizes (beta coefficients) - Calculates individual risk scores from genotype data - Interprets PRS as population percentiles and risk categories **What This Skill Does NOT Do:** - Diagnose disease (PRS is probabilistic, not deterministic) - Replace clinical assessment or genetic counseling - Account for non-genetic factors (lifestyle, environment) - Provide treatment recommendations ## Methodology ### PRS Calculation Formula A polygenic risk score is calculated as a weighted sum across genetic variants: ``` PRS = Σ (dosage_i × effect_size_i) ``` Where: - **dosage_i**: Number of effect alleles at SNP i (0, 1, or 2) - **effect_size_i**: Beta coefficient or log(odds ratio) from GWAS ### Standardization Raw PRS is standardized to z-scores for interpretation: ``` z-score = (PRS - population_mean) / population_std ``` This allows comparison to population distribution and percentile calculation. ### Significance Thresholds - **Genome-wide significance**: p < 5×10⁻⁸ (default threshold) - This corrects for ~1 million independent tests across the genome - Relaxed thresholds (e.g., p < 1×10⁻⁵) can include more SNPs but may add noise ### Effect Size Handling - **Continuous traits** (e.g., height, BMI): Beta coefficient (units of trait per allele) - **Binary traits** (e.g., disease): Odds ratio converted to log-odds (beta = ln(OR)) - Missing effect sizes or non-significant SNPs are excluded ## Data Sources This skill uses ToolUniverse GWAS tools to query: 1. **GWAS Catalog** (EMBL-EBI) - Curated GWAS associations, 5000+ studies - Tools: `gwas_search_associations` (param: `disease_trait`, `size`; also `gwas_get_associations_for_trait`), `gwas_get_snps_for_gene` (param: `gene_symbol`), `dbsnp_get_variant_by_rsid` - Note: `disease_trait` search returns associations where the trait is one of potentially several linked EFO traits. For precise filtering, use EFO IDs via `efo_trait` param. 2. **Open Targets Genetics** - Integrated genetics platform with fine-mapped credible sets - Tools: `OpenTargets_search_gwas_studies_by_disease`, `EnsemblVEP_annotate_hgvs` (for variant consequence/frequency) 3. **Variant Annotation** - `gnomad_search_variants` + `gnomad_get_variant` — population allele frequencies (ancestry-specific via VEP colocated_variants) - `MyVariant_query_variants` — CADD, SIFT, PolyPhen, ClinVar, gnomAD in one call - `gnomad_get_gene_constraints` — gene constraint metrics (pLI, oe_lof) for target prioritization ## Key Concepts ### Polygenic Risk Scores (PRS) Polygenic risk scores aggregate the effects of many genetic variants to estimate an individual's genetic predisposition to a trait or disease. Unlike Mendelian diseases caused by single mutations, complex diseases involve hundreds to thousands of variants, each with small effects. **Key Properties:** - **Continuous distribution**: PRS forms a bell curve in populations - **Relative risk**: Compares individual to population average - **Probabilistic**: High PRS doesn't guarantee disease, low PRS doesn't guarantee protection - **Ancestry-specific**: PRS accuracy depends on matching GWAS and target ancestry ### GWAS (Genome-Wide Association Studies) GWAS compare allele frequencies between cases and controls (or correlate with trait values) across millions of SNPs to identify disease-associated variants. **Study Design:** - **Discovery cohort**: Initial identification of associations - **Replication cohort**: Validation in independent samples - **Sample size**: Larger studies detect smaller effects (power ∝ √N) - **Multiple testing correction**: Bonferroni-type correction for ~1M tests ### Effect Sizes and Odds Ratios - **Beta (β)**: Change in trait per copy of effect allele - Example: β = 0.5 kg/m² means each allele increases BMI by 0.5 units - **Odds Ratio (OR)**: Multiplicative change in disease odds - OR = 1.5 means 50% increased odds per allele - Convert to beta: β = ln(OR) ### Linkage Disequilibrium (LD) and Clumping Nearby variants are often inherited together (LD). To avoid double-counting: - **LD clumping**: Select independent variants (r² < 0.1 within 1 Mb windows) - **Fine-mapping**: Statistical methods to identify causal variants - This skill uses raw associations; production PRS should include LD pruning ### Population Stratification GWAS and PRS are most accurate when ancestries match: - **Population structure**: Different ancestries have different allele frequencies - **Transferability**: European-trained PRS perform worse in non-European populations - **Solution**: Train PRS on diverse cohorts or use ancestry-matched references ## Applications ### Clinical Risk Assessment PRS can stratify individuals for: - **Screening programs**: Target high-risk individuals (e.g., mammography, colonoscopy) - **Prevention strategies**: Lifestyle interventions for high genetic risk - **Drug response**: Pharmacogenomics based on metabolism genes **Example**: Khera et al. (2018) showed PRS identifies 3× more individuals at >3-fold coronary artery disease risk than monogenic mutations. ### Research Applications - **Gene discovery**: PRS-based phenome-wide association studies (PheWAS) - **Genetic correlation**: Compare PRS across traits - **Causal inference**: Mendelian randomization using PRS as instruments - **Simulation studies**: Model polygenic architecture ### Personal Genomics Consumer genetic testing (23andMe, Ancestry DNA) provides raw genotypes. Users can: - Calculate PRS for traits not reported - Compare to published PRS models - Understand genetic contribution vs. lifestyle factors **Caution**: Personal PRS should not replace medical advice. Results may cause anxiety if not properly contextualized. ## Limitations and Considerations - **Heritability gap**: PRS explains only a fraction of genetic heritability (T2D: ~50% heritable, PRS explains ~10–20%). Rare variants, epistasis, and gene-environment interactions are not captured. - **Ancestry bias**: European-derived PRS performance drops substantially in non-European populations. Use multi-ancestry GWAS weights when available. - **Winner's curse**: Discovery effect sizes are overestimated; use meta-analysis weights or PGS Catalog validated models. - **Not diagnostic**: High PRS does not guarantee disease; low PRS does not guarantee p
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.