R/mrlocus-package.R
    mrlocus-package.RdMendelian Randomization per locus, leveraging eQTL and GWAS summary statistics, for estimation of gene-to-trait effect size and dispersion.
The main functions (in order of typical usage) are:
collapseHighCorSNPs - collapse high correlation SNPs
flipAllelesAndGather - flip alleles and gather for colocalization
fitBetaColoc - perform colocalization across signal clusters
extractForSlope - extract one SNP per signal cluster for MR analysis
fitSlope - perform MR analysis to estimate gene-to-trait effect
plotMrlocus - plot estimates from MR analysis
priorCheck - perform prior predictive checks
Anqi Zhu*, Nana Matoba*, Emmaleigh Wilson, Amanda L. Tapia, Yun Li, Joseph G. Ibrahim, Jason L. Stein, Michael I. Love. MRLocus: identifying causal genes mediating a trait through Bayesian estimation of allelic heterogeneity. (2020) bioRxiv https://doi.org/10.1101/2020.08.14.250720
Stan Development Team (2019). RStan: the R interface to Stan. R package version 2.19.2. https://mc-stan.org