Step 6. Collect Information About the Current R Session.

Contact - Centre for AIDD

Contact Us

The Centre for Artificial Intelligence Driven Drug Discovery (AIDD) at Macao Polytechnic University

Get in Touch

Location

匯智樓 (WUI CHI)-4/F, N46B
Rua de Luís Gonzaga Gomes
Macau

Email

kefengl@mpu.edu.mo

Phone

(+853) 8599 6883

Office Hours

Monday - Friday
10:00 AM - 4:00 PM

Community Discussion

Join our community discussion, ask questions, share insights, or provide feedback about our research and tools. Your input helps us improve and advance our work in MRanalysis.

Loading discussion platform...

Two Sample Mendelian Randomization (2SMR)

Two Sample Mendelian Randomization

A powerful method to estimate causal effects of exposures on outcomes using genome-wide association study (GWAS) summary statistics

A demo

The TwoSampleMR package combines three important components to make causal inference accessible and reliable.

Analysis Workflow

Select Instruments: Choose genetic variants for the exposure and perform LD clumping if necessary.

Extract Data: Retrieve instruments from the IEU GWAS database for outcomes.

Harmonise Data: Align effect sizes for instruments to the same reference allele.

Analyze & Report: Perform MR analysis, sensitivity analyses, and create reports.

The general principles and statistical methods can be found elsewhere. Here we outline how to use the application based on the TwoSampleMR R package.

Workflow Overview

2SMR Workflow Diagram

Critical Considerations

Essential guidelines for responsible and effective Mendelian randomization analysis

Methodological Rigor

While democratizing MR methodology is crucial, atheoretical applications pose significant risks. Avoid randomly selecting exposure-outcome pairs without biological justification or established hypotheses.

Best Practice: Ground analyses in well-defined, evidence-based hypotheses and adhere to established guidelines [1]. Consider biological plausibility, pleiotropic pathways, and implement comprehensive quality control including F-statistics evaluation and heterogeneity assessment.

1. Guidelines for performing Mendelian randomization investigations: update for summer 2023

Evidence Integration

MR results should never be interpreted in isolation. Robust causal inference requires integrating multiple analytical strategies and evidence sources.

Recommended Approach: Combine univariable MR (basic causal relationships), multivariable MR (controlling confounders), and mediation MR (causal pathways) with complementary analyses including colocalization, fine-mapping, and experimental validation. Treat MR as contributory evidence, not definitive proof.

Known Limitations

Methodological constraints require careful consideration during interpretation. Key limitations include population stratification differences, shared genetic architecture assumptions, and horizontal pleiotropy vulnerability.

Critical Issues: Sample overlap bias, differential LD patterns across populations, weak instrument bias, inability to model time-varying effects or non-linear relationships, and challenges in detecting pleiotropic effects using summary statistics. Statistical power depends on instrument strength and GWAS sample dimensions.

   Step 1. Choose exposure data.


                      

 Information for exposure

   Step 2. Choose outcome data.


                      
                    

 Information for outcome

Step 3. Filter instruments for use in MR from exposure data.

   Step 3.1. Genetic variants significantly linked to the exposure factor.

   Step 3.2. Perform LD clumping.

   Step 3.3. Calculate R2 and F value.

   Step 4. Remove confounding factors.

Step 5. Perform two-sample Mendelian randomization.

   Options for MR analysis.