SkillAgentSearch skills...

TwoSampleMR

R package for performing 2-sample MR using IEU OpenGWAS database

Install / Use

/learn @MRCIEU/TwoSampleMR
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<!-- README.md is generated from README.Rmd. Please edit that file -->

Mendelian randomization with GWAS summary data

<!-- badges: start -->

R-CMD-check Lifecycle:
experimental DOI Codecov test
coverage TwoSampleMR status
badge

<!-- badges: end -->

A package for performing Mendelian randomization using GWAS summary data. It uses the IEU OpenGWAS database to obtain data automatically, and a wide range of methods to run the analysis.

January 2020 major update

We have made substantial changes to the package, database and reference panels. For full details of the changes, please visit https://mrcieu.github.io/TwoSampleMR/articles/gwas2020.html

Installation

Users running Windows and macOS, to install the latest version of TwoSampleMR please install from our MRC IEU r-universe

install.packages("TwoSampleMR", repos = c("https://mrcieu.r-universe.dev", "https://cloud.r-project.org"))

Users running Linux or WebR please see the following instructions.

To update the package run the same command again.

Installing from source

install.packages("remotes")
remotes::install_github("MRCIEU/TwoSampleMR")

To update the package just run the remotes::install_github("MRCIEU/TwoSampleMR") command again.

Docker

A multi-platform docker image containing R with the TwoSampleMR package pre-installed (for both x86_64 and ARM computers) is available here: https://hub.docker.com/r/mrcieu/twosamplemr

<!-- Additional content -->

Documentation

Full documentation available here: https://mrcieu.github.io/TwoSampleMR/

View on GitHub
GitHub Stars536
CategoryData
Updated4h ago
Forks185

Languages

R

Security Score

80/100

Audited on Mar 30, 2026

No findings