bio-causal-genomics-mediation-analysis
Decompose genetic effects into direct and indirect paths through mediating variables using the mediation R package. Tests whether gene expression, methylation, or other molecular phenotypes mediate the effect of genetic variants on disease. Use when testing whether a molecular phenotype mediates the genotype-to-phenotype relationship.
npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-causal-genomics-mediation-analysis --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
## 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 Causal mediation decomposes the total effect of a treatment (genotype) on an outcome (phenotype) into: - **ACME** (Average Causal Mediation Effect) - Indirect effect through the mediator - **ADE** (Average Direct Effect) - Direct effect not through the mediator - **Total effect** = ACME + ADE - **Proportion mediated** = ACME / Total effect Typical genomic applications: - SNP -> gene expression (mediator) -> disease - SNP -> DNA m
- Version Compatibility
- Framework
- Basic Mediation with the mediation Package
- Interpreting Results
- eQTL Mediation
- Multi-Omics Mediation
- High-Dimensional Mediation (HDMA)
- Assumptions and Diagnostics
- Visualization
- Related Skills
What does the bio-causal-genomics-mediation-analysis skill do?
Decompose genetic effects into direct and indirect paths through mediating variables using the mediation R package. Tests whether gene expression, methylation, or other molecular phenotypes mediate the effect of genetic variants on disease. Use when testing whether a molecular phenotype mediates the genotype-to-phenotype relationship.
How do I install it?
Run `npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-causal-genomics-mediation-analysis --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From FreedomIntelligence/OpenClaw-Medical-Skills, a repository with 2,909 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
