Skip to content

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

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

conorjudge/TwoSampleMR

 
 

Repository files navigation

Mendelian randomization with GWAS summary data

Build Status Travis 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.

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

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("devtools")
devtools::install_github("MRCIEU/TwoSampleMR")

To update the package just run the 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("devtools")
devtools::install_github("MRCIEU/TwoSampleMR@0.4.26")

Docker

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

About

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

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 64.7%
  • R 35.3%