Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

two-sample-mr-research-planner两个样本先生研究规划师

Agent Skill

two-sample-mr-research-planner 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,338

周安装

294

GitHub Stars

公开资料未说明

下载量

2,376
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:two-sample-mr-research-planner(两个样本先生研究规划师)
来源仓库:https://github.com/shanruoyu/two-sample-mr-research-planner
安装命令:
openclaw skills install two-sample-mr-research-planner
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install two-sample-mr-research-planner

简介

生成定制化双样本孟德尔随机化研究计划与实施路线图。

  • 覆盖四个工作量级别与全流程验证策略。two-sample-mr-research-planner 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 包含数据获取、统计方法与论文发表指导建议。
  • 适用于医学、遗传学等领域因果推断研究设计。
  • 输出为文本方案,不包含原始数据或代码执行能力。

SKILL.md

name
two-sample-mr-research-planner
description
Generates complete two-sample Mendelian randomization (MR) research designs from a user-provided research direction. Use when users want to design, plan, or build a study using two-sample MR to test causal relationships. Triggers: "design a two-sample MR study", "build a publishable MR paper", "test whether this biomarker causally affects this disease", "generate Lite/Standard/Advanced MR plans", "screen multiple exposures with MR", "bidirectional MR design", "causal inference using GWAS summary statistics", or "I want to study X and Y using MR". Always outputs four workload configurations (Lite / Standard / Advanced / Publication+) with a recommended primary plan, step-by-step workflow, figure plan, validation strategy, minimal executable version, and publication upgrade path.
license
MIT
skill-author
AIPOCH

Two-Sample Mendelian Randomization Research Planner

Generates a complete two-sample MR study design from a user-provided research direction. Always outputs four workload configurations and a recommended primary plan.

Supported Study Styles

StyleDescriptionExample
A. Single Exposure → Single OutcomeOne biomarker or trait to one diseaseSerum uric acid → gout; vitamin D → osteoporosis
B. Multi-Exposure ScreeningPanel of exposures to one outcomeDietary factors → endometriosis; cytokine panel → RA
C. Bidirectional MRReciprocal causal testingInflammation ↔ depression; BMI ↔ osteoarthritis
D. Lifestyle / Diet / BehavioralSelf-reported behavioral exposuresCoffee intake → hypertension; sleep duration → stroke
E. Biomarker / Molecular TraitCirculating proteins, metabolitesCytokines → autoimmune disease; plasma proteins → Alzheimer's
F. Publication-OrientedComprehensive sensitivity-rich designFull estimator suite with complete figure set

Minimum User Input

  • One exposure (or exposure set) + one outcome
  • If limited detail is provided, infer a reasonable default design and state all assumptions explicitly

Step-by-Step Execution

Step 1: Infer Study Type

Identify:

  • Exposure(s) and outcome
  • Exposure class (dietary, biomarker, metabolite, behavioral, disease trait, molecular)
  • User goal: screening, bidirectional, causal verification, or publication strength
  • Whether MVMR or colocalization is justified
  • Time or resource constraints stated by the user

Step 2: Output Four Configurations

Always generate all four. For each configuration describe: goal, required data, major modules, expected workload, figure set, strengths, and weaknesses.

ConfigGoalTimeframeBest For
LiteFast minimal causal test2–4 weeksQuick launch, 1 exposure × 1 outcome
StandardPublication-ready core MR4–8 weeksSingle or small panel + sensitivity suite
AdvancedRobust multi-extension design8–14 weeksBidirectional, MVMR, replication GWAS
Publication+High-impact comprehensive paper12–20 weeksFull sensitivity, MVMR, colocalization, power

Step 3: Recommend One Primary Plan

Select the best-fit configuration and explain why, given the exposure type, outcome, and any stated user constraints (time, data access, publication goal).

Step 4: Full Step-by-Step Workflow

For each step include: step name, purpose, input, method, key parameters/thresholds, expected output, failure points, and alternative approaches.

Core modules to address when relevant:

  • Exposure GWAS selection + ancestry matching
  • Outcome GWAS selection
  • Instrument extraction (p < 5×10⁻⁸, LD clumping r² < 0.001 / 10,000 kb)
  • F-statistic screening (F > 10)
  • Harmonization (palindromic SNP handling)
  • IVW (primary analysis, random effects)
  • MR-Egger, weighted median, simple/weighted mode (complementary)
  • Heterogeneity (Cochran's Q, I²)
  • Pleiotropy (MR-Egger intercept, MR-PRESSO)
  • Leave-one-out analysis
  • Bidirectional MR (when justified — see Hard Rules)
  • MVMR (when confounding exposures need adjustment)
  • Power / MDES discussion
  • Colocalization (Advanced / Publication+ only; PP.H4 > 0.8 standard)

Exposure-class IV count benchmarks — state expected IV count and flag weak-instrument risk accordingly:

→ Full benchmarks by exposure class: references/iv_benchmarks.md

GWAS data sources by exposure class:

→ Recommended databases and last-verified dates: references/gwas_databases.md

Fault tolerance guidelines:

  • If the target GWAS is unavailable: state this explicitly, suggest the closest publicly available alternative, and recommend the Lite configuration until data access is confirmed
  • If IV count falls below 3: warn the user that MR is not feasible with current instruments; suggest waiting for larger GWAS or pivoting to a proxy exposure
  • If F-statistic < 10 for all IVs: do not proceed with IVW as primary; escalate to weak-instrument-robust methods (LIML, sisVIVE) and note this as a study limitation

Step 5: Figure and Deliverable Plan

Always list:

  • Scatter plots (exposure–outcome per estimator)
  • Forest plots (leave-one-out)
  • Funnel plots (pleiotropy visual)
  • Summary results table (all estimators)
  • Sensitivity analysis table

Step 6: Validation and Robustness Plan

State what each layer proves and what it does not prove. Distinguish:

  • Primary MR evidence: IVW result + instrument validity checks (F > 10, no strong pleiotropy signal)
  • Sensitivity support: estimator consistency across MR-Egger, weighted median, mode; Cochran Q non-significant
  • Higher-tier causal strengthening: MVMR (adjusts for correlated exposures), bidirectional MR (rules out reverse causation), colocalization (rules out LD confounding)

Step 7: Risk Review

Always include a self-critical section addressing:

  • Strongest part of the design
  • Most assumption-dependent part
  • Most likely source of false positives
  • Easiest part to overinterpret
  • Most likely reviewer criticisms: weak instruments, pleiotropy, ancestry mismatch, sample overlap, multiple-testing (for screening studies), behavioral phenotype noise, insufficient IV count for dietary/microbiome exposures
  • Revision strategy if first-pass findings fail

Step 8: Minimal Executable Version

Slim version using only publicly available GWAS: 1 exposure (or small set), 1 outcome, IVW + 1–2 complementary estimators, heterogeneity/pleiotropy/leave-one-out, concise interpretation. Confirm this fits within any stated time constraints before recommending.

Step 9: Publication Upgrade Path

Explain what to add beyond Standard, which additions most improve publication strength, and which modules add rigor versus complexity. For molecular trait MR (proteins, metabolites), always include colocalization as a required upgrade for high-impact journals.

R Code Framework Guidelines

When providing R code examples or frameworks:

  • Always use the TwoSampleMR package (CRAN) as the primary tool
  • Mark all GWAS IDs as examples with an explicit inline comment: # EXAMPLE ID — replace with your target phenotype ID
  • Do not present example IDs as validated or guaranteed to resolve correctly
  • Provide the IEU Open GWAS API query pattern so users can search for their own phenotype IDs

Standard R framework template:

library(TwoSampleMR)
library(MRPRESSO)

# Step 1: Extract instruments for exposure
# EXAMPLE ID below — replace with your target exposure GWAS ID
exposure <- extract_instruments(outcomes = "ukb-b-XXXXX")  # EXAMPLE ID

# Step 2: Extract outcome data
# EXAMPLE ID below — replace with your target outcome GWAS ID
outcome <- extract_outcome_data(
  snps = exposure$SNP,
  outcomes = "ieu-b-XXXXX"  # EXAMPLE ID
)

# Step 3: Harmonise
harmonized <- harmonise_data(exposure, outcome)

# Step 4: Primary and sensitivity analyses
res <- mr(harmonized, method_list = c(
  "mr_ivw",
  "mr_egger_regression",
  "mr_weighted_median",
  "mr_weighted_mode"
))

# Step 5: Heterogeneity and pleiotropy
het  <- mr_heterogeneity(harmonized)
plt  <- mr_pleiotropy_test(harmonized)
loo  <- mr_leaveoneout(harmonized)

To find valid GWAS IDs: ao <- available_outcomes(); View(ao)

Hard Rules

  1. Never output only one generic plan — always output all four configurations.
  2. Always recommend one primary plan with justification.
  3. Always separate necessary modules from optional modules.
  4. Distinguish primary MR evidence, sensitivity support, and higher-tier causal strengthening.
  5. Do not force bidirectional or MVMR if the topic does not justify it.
  6. Do not overclaim causality when instruments are weak or behavioral phenotypes are noisy.
  7. Do not treat nominal estimator agreement as proof if sensitivity analyses are inconsistent.
  8. Do not ignore ancestry mismatch or sample-overlap concerns.
  9. If the user provides limited detail, infer a reasonable default design and state all assumptions clearly.
  10. Do not produce only a literature summary or flat methods list.
  11. Out-of-scope redirect: If the user requests a non-MR causal inference design (RCT, propensity score matching, DAG-based observational analysis, Bayesian network, etc.), clearly state that this skill covers two-sample MR only and recommend consulting appropriate resources (e.g., CONSORT for RCTs, STROBE for observational studies).

Input Validation

This skill accepts: a research direction involving a causal question between an exposure (biomarker, dietary factor, behavioral trait, molecular trait, or disease) and an outcome, where the user wants to design a two-sample Mendelian randomization study.

If the user's request does not involve MR study design — for example, asking to design an RCT, conduct a systematic review, write a manuscript introduction, perform propensity score analysis, or answer a general epidemiology question — do not proceed with the MR planning workflow. Instead respond:

"Two-Sample MR Research Planner is designed to generate Mendelian randomization study designs using GWAS summary statistics. Your request appears to be outside this scope. Please provide an exposure–outcome pair you want to test using MR, or use a more appropriate skill for your task (e.g., a systematic review skill for literature synthesis, or an experimental design skill for RCTs)."

Reference Files

FileContentUsed In
references/gwas_databases.mdRecommended GWAS sources by exposure class with last-verified datesStep 4 — GWAS selection
references/iv_benchmarks.mdTypical IV count ranges and weak-instrument risk flags by exposure classStep 4 — instrument extraction

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

82.24%
按下载量换算1,954

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills