Skip to content

R package for performing 2-sample MR using MR-Base database

License

Notifications You must be signed in to change notification settings

grantsimongrant/TwoSampleMR

This branch is 7 commits ahead of, 377 commits behind MRCIEU/TwoSampleMR:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4db97b4 · Nov 19, 2023
May 28, 2023
Nov 19, 2023
Mar 27, 2023
May 3, 2023
Apr 17, 2023
Apr 17, 2023
May 1, 2023
Apr 17, 2023
Sep 14, 2021
Apr 17, 2023
May 29, 2023
May 28, 2023
Nov 5, 2019
Nov 5, 2019
May 3, 2023
May 29, 2023
Apr 27, 2021
Apr 20, 2022
Mar 27, 2023
Apr 17, 2023
Jun 28, 2022

Repository files navigation

Mendelian randomization with GWAS summary data

Build Status Lifecycle: experimental DOI Codecov test coverage

A package for performing Mendelian randomization using GWAS summary data. It uses the IEU GWAS database to obtain data automatically, and a wide range of methods to run the analysis. You can use the MR-Base web app to try out a limited range of the functionality in this package, but for any serious work we strongly recommend using this R package.

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

To install the latest version of TwoSampleMR, perform as normal:

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

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

We recommend using this new version going forwards but for a limited time we are enabling backwards compatibility, in case you are in the middle of analysis or need to reproduce old analysis. In order to use the legacy version of the package and the database, install using:

install.packages("remotes")
remotes::install_github("MRCIEU/[email protected]")

Docker

A docker image containing R with the TwoSampleMR package pre-installed is available here: https://hub.docker.com/r/mrcieu/twosamplemr

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

About

R package for performing 2-sample MR using MR-Base database

Resources

License

Citation

Stars

Watchers

Forks

Packages

No packages published

Languages

  • R 96.6%
  • TeX 3.0%
  • Rez 0.4%