Data input and preprocessing

Convenience functions for preparing input to model

collapseHighCorSNPs()

Collapse high correlation SNPs

flipAllelesAndGather()

Flip alleles and gather results into lists

plotInitEstimates()

Plot initial estimates over signal clusters

trimClusters()

Trim signal clusters based on pairwise r2

Fitting the MRLocus model

Two step Bayesian model and convenience function

fitBetaColoc()

Fit the colocalization model per signal cluster

extractForSlope()

Extract SNPs from colocalization for slope fitting

fitSlope()

Fit the mediation slope model: effect of A on B

Visualization of model fit

plotMrlocus()

Plot estimates from MRLocus slope fitting step

normalizedAllelicSpread()

Estimate the normalized allelic spread

priorCheck()

Basic prior checks on MRLocus slope fit

Simulation

makeSimDataForMrlocus()

Make simple simulated summary data

Package man page

mrlocus-package mrlocus

MRLocus - see this page for typical order of functions