Skip to contents

example image

Overview

Mendelian randomization using polygenic exposures can be significantly biased by horizontal pleiotropy. Built on the core gene hypothesis, we developed MR Corge to identify putative core instruments that are more likely to affect genes with a direct biological role in exposures to reduce the risk of horizontal pleiotropy.

Installation

To install the lastest version of MR Corge:

devtools::install_github("zhwm/MRCorge")

Inputs

The input of the mrcorge function is a harmonized dataframe that works with the TwoSampleMR package.

Example usage

For detailed examples and usage, see the vignette.

Outputs

The mrcorge function outputs the MR estimates based on core instruments as well as sensitivity analysis results based on other instrument groups. Q-statistics are calculated to assess the heterogeneity of MR estimates across different groups. The plot_mrcorge function can be used to visualize these results.

Versions

  • Version 0.1.0: Initial release