bio-causal-genomics-mediation-analysis

Installation
SKILL.md

Source: https://github.com/aipoch/medical-research-skills

Version Compatibility

Reference examples tested with: R stats (base), ggplot2 3.5+

Before using code patterns, verify installed versions match. If versions differ:

  • R: packageVersion('<pkg>') then ?function_name to verify parameters

If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.

Mediation Analysis

"Test whether gene expression mediates the effect of this variant on disease" → Decompose the total genetic effect into direct and indirect (mediated) paths through a molecular phenotype, estimating ACME, ADE, and proportion mediated with bootstrap confidence intervals.

  • R: mediation::mediate() for causal mediation analysis

Framework

Installs
1
GitHub Stars
2.0K
First Seen
Sep 23, 2026