Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Genetic mediation analysis

Runs causal mediation analysis in R to test if expression or methylation carries a variant's disease effect.

Claude's review

7/10 causal mediation analysis in R with eQTL and HIMA examples plus assumptions and sensitivity checks

We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.

In detail

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

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: bio-causal-genomics-mediation-analysis
description: 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...
license: MIT
author: AIPOCH
---
> **Source**: [https://github.com/aipoch/medical-research-skills](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

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 methylation (mediator) -> gene expression
- SNP -> protein levels (mediator) -> clinical outcome

## Basic Mediation with the mediation Package
...

From aipoch's repository, MIT licence.

Related skills

  • Checked

    Research gap finder

    Finds related papers and open source code on a topic and checks with web search what research is missing.

    by fcakyon 494
    7/101 credit
  • Checked

    Academic paper writing

    Writes and revises academic paper sections, keeps notation consistent and fixes LaTeX builds and templates.

    by fcakyon 494
    7/101 credit
  • Checked

    Citation claim checker

    Checks each claim in a manuscript against its cited source and flags unsupported ones before submission.

    by Boom5426 709
    8/101 credit
  • Checked

    Systematic literature review

    Runs a systematic literature review with a search log, source screening, synthesis and checked citations.

    by affaan-m 314k
    8/101 credit
  • Checked

    Paper figure planning

    Plans manuscript figures around one main claim each, with panel roles and legends that match your text.

    by Boom5426 709
    7/101 credit
  • Checked

    Citation Checker

    Checks every reference in your paper is real and accurately described, then fixes the bibliography errors.

    by Mathews-Tom 347
    8/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added