Agent skill

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.

FreedomIntelligencegithub.com/FreedomIntelligenceGitHub ↗
claude-code
Install
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.

Facts
Files in the skill folder: 4
SKILL.md size: 10 KB
Bundled scripts: none
Path: skills/bio-causal-genomics-mediation-analysis/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 2,909
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

## 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

What's inside
Steps it walks through
  1. Version Compatibility
  2. Framework
  3. Basic Mediation with the mediation Package
  4. Interpreting Results
  5. eQTL Mediation
  6. Multi-Omics Mediation
  7. High-Dimensional Mediation (HDMA)
  8. Assumptions and Diagnostics
  9. Visualization
  10. Related Skills
Ships with 3 files
  • examples/eqtl_mediation.R
  • examples/sensitivity_analysis.R
  • usage-guide.md
More from OpenClaw-Medical-Skills
All skills →
About this skill
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.

Keep going