数据与复现统计与数据分析FreedomIntelligence/OpenClaw-Medical-Skills数据与复现
BI

bio-causal-genomics-mendelian-randomization

维护者 FreedomIntelligence · 最近更新 2026年4月1日

bio-causal-genomics-mendelian-randomization:Estimate causal effects between exposures 、 outcomes ,使用 genetic variants as instrumental variables ,支持 TwoSampleMR。 Implements IVW,MR-Egger,weighted median,、 MR-PRESSO methods ,用于 robust causal inference ,面向 GWAS summary statistics。 适合在testing whether exposure causally affects outcome ,使用 genetic instruments时使用。

OpenClawNanoClaw分析处理复现实验bio-causal-genomics-mendelian-randomization🧬 bioinformatics (gptomics bio-* suite)bioinformatics — epidemiological & causal genomicsestimate

原始来源

FreedomIntelligence/OpenClaw-Medical-Skills

https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/bio-causal-genomics-mendelian-randomization

维护者
FreedomIntelligence
许可
MIT
最近更新
2026年4月1日

技能摘要

来自 SKILL.md 的关键信息

2 min

核心说明

  • R:TwoSampleMR::mr() ,用于 multi-method causal estimation。
  • R:MendelianRandomization::mr_ivw() ,用于 individual methods。
  • Test whether my exposure causally affects this outcome ,使用 GWAS data" → Use genetic variants as instrumental variables to estimate causal effects ,面向 GWAS summary statistics,applying IVW,MR-Egger,、 weighted median methods ,用于 robust inference. R:TwoSampleMR::mr() ,用于 multi-method causal estimation R:MendelianRandomization::mr_ivw() ,用于 individual methods。
  • exposure_dat <- extract_instruments(outcomes = 'ieu- -2',p1 = 5e-08,clump = TRUE)。

原始文档

SKILL.md 摘录

Core Concepts

Mendelian randomization (MR) uses genetic variants as instrumental variables (IVs) to estimate causal effects of exposures on outcomes. Valid instruments must satisfy three assumptions:

  1. Relevance - The variant is associated with the exposure (F-statistic > 10)
  2. Independence - The variant is not associated with confounders
  3. Exclusion restriction - The variant affects the outcome only through the exposure

TwoSampleMR Workflow

Goal: Estimate the causal effect of an exposure on an outcome using GWAS summary statistics and genetic instruments.

Approach: Extract instruments for the exposure, extract matching outcome data, harmonize allele directions, and run multiple MR methods (IVW, Egger, weighted median, weighted mode).

"Test if an exposure causally affects an outcome" -> Use genetic variants as instrumental variables to estimate causal effects from GWAS data.

  • R: TwoSampleMR (extract_instruments + harmonise_data + mr)
  • R: MendelianRandomization (mr_input + mr_ivw/mr_egger)
library(TwoSampleMR)

## From local GWAS summary statistics

exposure_dat <- read_exposure_data(
  filename = 'exposure_gwas.txt',
  sep = '\t',
  snp_col = 'SNP', beta_col = 'BETA', se_col = 'SE',
  effect_allele_col = 'A1', other_allele_col = 'A2',
  pval_col = 'P', eaf_col = 'EAF'
)

适用场景

  • 适合在testing whether exposure causally affects outcome ,使用 genetic instruments时使用。

不适用场景

  • Do not rely on this catalog entry alone ,用于 installation 或 maintenance details。

上游相关技能

  • pleiotropy-detection - Sensitivity analyses for MR assumptions
  • colocalization-analysis - Confirm shared causal variants
  • fine-mapping - Prioritize causal variants at instrument loci
  • population-genetics/association-testing - GWAS for exposure and outcome data

相关技能

相关技能

返回目录
AR
数据与复现统计与数据分析

arxiv-database

arxiv-database:This skill provides Python tools ,用于 searching 、 retrieving preprints ,面向 arXiv.org ,通过 its public Atom A…

Claude Code分析处理
K-Dense-AI/claude-scientific-skills查看
BA
数据与复现统计与数据分析

bayesian-optimizer

bayesian-optimizer:Bayesian optimization ,用于 experimental design 、 hyperparameter tuning in biomedical research。

OpenClawNanoClaw分析处理
FreedomIntelligence/OpenClaw-Medical-Skills查看
BI
数据与复现统计与数据分析

bio-alignment-files-bam-statistics

bio-alignment-files-bam-statistics:Compute alignment statistics:flagstat,idxstats,coverage depth。

OpenClawNanoClaw分析处理
FreedomIntelligence/OpenClaw-Medical-Skills查看
BI
数据与复现统计与数据分析

bio-alignment-msa-statistics

bio-alignment-msa-statistics:Calculate alignment statistics ,涵盖 sequence identity,conservation scores,substitution matri…

OpenClawNanoClaw分析处理
FreedomIntelligence/OpenClaw-Medical-Skills查看