tooluniverse-mendelian-randomization

Estimates causal effects of exposures on disease outcomes using genetic variants as instrumental variables.

1.7k|254|Updated Mar 3, 2025
One-click install
npx skills add https://github.com/mims-harvard/ToolUniverse --skill tooluniverse-mendelian-randomization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tooluniverse-mendelian-randomization
Source: https://github.com/mims-harvard/ToolUniverse/tree/main/plugins/tooluniverse/skills/tooluniverse-mendelian-randomization
Command: npx skills add https://github.com/mims-harvard/ToolUniverse --skill tooluniverse-mendelian-randomization

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Observational associations cannot distinguish causation from correlation or reverse causation. This Skill answers whether an exposure, biomarker, or risk factor causally affects a disease outcome by running Mendelian randomization (MR) against pre-computed IEU OpenGWAS / EpiGraphDB MR-EvE results, using genetic variants as instrumental variables.

Core Features & Use Cases

  • Causal effect estimation: Retrieve MR beta, standard error, p-value, method (IVW, MR-Egger, weighted median), and instrument quality (MOE score) for an exposure-outcome trait pair.
  • Trait resolution and triangulation: Resolve free-text traits to exact OpenGWAS labels, run bidirectional MR for reverse causation, and compare genetic correlation against causal estimates.
  • Drug-target follow-up: Surface drugs targeting genes behind a causal risk factor for genetics-anchored repurposing hypotheses.
  • Use Case: Ask whether LDL cholesterol causally raises coronary heart disease risk; the Skill resolves the trait labels, fetches the MR estimate, checks reverse causation, and reports a verdict with caveats on pleiotropy and ancestry.

Quick Start

Ask whether LDL cholesterol causally affects coronary heart disease and request the MR estimate with instrument quality and reverse-causation checks.

Frequently Asked Questions about tooluniverse-mendelian-randomization

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

FAQPage Schema
How do I test if a risk factor causally causes a disease?

Use Mendelian randomization, which estimates causal effects using genetic variants as instrumental variables. Resolve the exposure and outcome traits to exact OpenGWAS labels first, then query the pre-computed MR estimate and interpret the beta, p-value, and MOE instrument quality score.

What is the difference between genetic correlation and Mendelian randomization?

Genetic correlation (rg) means two traits share heritability but says nothing about causal direction. Mendelian randomization uses genetic instruments to test whether one trait causally affects another, so only MR supports a causal claim.

Why does my MR query return empty results for a common trait?

EpiGraphDB matches trait labels exactly and case-sensitively, so free-text names often miss. Resolve the trait with the OpenGWAS search first and read the metadata note; an empty result usually means a label mismatch, not absence of a causal effect.

Can I run two-sample MR with my own instruments and thresholds?

The pre-computed MR-EvE resource covers curated trait pairs only. For custom pairs or instrument thresholds, fetch harmonized exposure and outcome SNP data via OpenGWAS (requires a free OPENGWAS_JWT) and compute IVW or MR-Egger estimates yourself or with the TwoSampleMR R package.

What are the limitations of Mendelian randomization causal claims?

MR rests on three assumptions: relevance, independence, and exclusion restriction. Horizontal pleiotropy is the dominant threat, most instruments are European-ancestry, and weak instruments bias toward the observational estimate, so report MOE scores, method agreement, and ancestry.