arxiv-database
This skill provides Python tools for searching and retrieving preprints from arXiv.org via its public Atom API. It supports keyword search,…
Maintainer FreedomIntelligence · Last updated April 1, 2026
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.
Original source
https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/bio-causal-genomics-mediation-analysis
Skill Snapshot
Source Doc
Causal mediation decomposes the total effect of a treatment (genotype) on an outcome (phenotype) into:
Typical genomic applications:
Goal: Decompose a genetic effect into direct and indirect (mediated) paths through a molecular phenotype.
Approach: Fit separate models for mediator and outcome, then run mediate() with bootstrap to estimate ACME (indirect), ADE (direct), and proportion mediated.
library(mediation)
## For binary outcome, use glm with family = binomial
outcome_model <- glm(
disease ~ genotype + expression + age + sex + pc1 + pc2,
data = dat, family = binomial
)
Related skills
This skill provides Python tools for searching and retrieving preprints from arXiv.org via its public Atom API. It supports keyword search,…
Bayesian optimization for experimental design and hyperparameter tuning in biomedical research.
Compute alignment statistics: flagstat, idxstats, coverage depth.
Calculate alignment statistics including sequence identity, conservation scores, substitution matrices, and similarity metrics. Use when com…