The MRAPSS package implement the MR-APSS approach to test for the causal effects between an exposure and a outcome disease.
The MR-APSS is a unified approach to Mendelian Randomization accounting for pleiotropy, sample overlap ans selection bias using genome wide summary statistics.
This R package is developed by HU Xianghong(maxhu@ust.hk).
Xianghong Hu, Jia Zhao, Heng Peng, Yang Wang, Xiang Wan, Yang Can, MR-APSS: a unified approach to Mendelian Randomization accounting for pleiotropy, sample overlap ans selection bias using genome wide summary statistics.
#install.packages("devtools")
devtools::install_github("hxh0504/MRAPSS")
To have a quick look at the MRAPSS, run
library(MRAPSS)
exposure = "LDL-C"
outcome = "CAD"
Threshold = 5e-05 # IV selection Threshold
data(Omega) # estimates of covariance matrix of background effects
data(Sigma_err) # estimates of correlation matrix for error term
data(MRdat) # dataset for clumped SNPs
MRres = MRAPSS(MRdat,
exposure = "LDl-C",
outcome = "CAD",
Sigma_err = Sigma_err,
Omega = Omega ,
Threshold = Threshold)
MRplot(MRres, exposure="LDL-C", outcome="CAD")
See A real example for perfroming GWAS summary-level data based MR analysis with MRAPSS package for details.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.