Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.29 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.29 KB

BWMR

BWMR (Bayesian Weighted Mendelian Randomization), is an efficient statistical method to infer the causality between a risk exposure factor and a trait or disease outcome, based on GWAS summary statistics. 'BWMR' package provides the estimate of causal effect with its standard error and the P-value under the test of causality.

Installation

To install the development version of BWMR, it's easiest to use the 'devtools' package.

# install.packages("devtools")
library(devtools)
install_github("YangLabHKUST/BWMR")

Usage

The 'BWMR' vignette will provide a good start point for Mendelian randomization analysis using BWMR package. The main function is BWMR. You can find examples by running

library(ggplot2)
library(BWMR)
example(BWMR)

Reference

Jia Zhao, Jingsi Ming, Xianghong Hu, Gang Chen, Jin Liu, Can Yang, Bayesian weighted Mendelian randomization for causal inference based on summary statistics, Bioinformatics, btz749, https://doi.org/10.1093/bioinformatics/btz749

Development

This R package is developed by Jia Zhao ([email protected]).

Contact information

Please feel free to contact Jia Zhao ([email protected]) or Prof. Can Yang ([email protected]) if any questions.