arxiv-database
arxiv-database:This skill provides Python tools ,用于 searching 、 retrieving preprints ,面向 arXiv.org ,通过 its public Atom A…
维护者 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时使用。
原始来源
https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/bio-causal-genomics-mendelian-randomization
技能摘要
原始文档
Mendelian randomization (MR) uses genetic variants as instrumental variables (IVs) to estimate causal effects of exposures on outcomes. Valid instruments must satisfy three assumptions:
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.
TwoSampleMR (extract_instruments + harmonise_data + mr)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'
)
相关技能
arxiv-database:This skill provides Python tools ,用于 searching 、 retrieving preprints ,面向 arXiv.org ,通过 its public Atom A…
bayesian-optimizer:Bayesian optimization ,用于 experimental design 、 hyperparameter tuning in biomedical research。
bio-alignment-files-bam-statistics:Compute alignment statistics:flagstat,idxstats,coverage depth。
bio-alignment-msa-statistics:Calculate alignment statistics ,涵盖 sequence identity,conservation scores,substitution matri…