MR Corge: Sensitivity analysis of Mendelian randomization based on the core gene hypothesis for polygenic exposures

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.
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.