LizaDarrous / PheWAS-cluster

GNU General Public License v3.0
14 stars 4 forks source link

PheWAS-cluster

:warning: :grey_exclamation: This repository contains personalised scripts that were used to run the full analysis. A working example is provided instead with instructions below to help you replicate and run your own analysis :grey_exclamation:

Overview

The scripts in 'PheWAS-cluster' represent our approach of Phe-WAS based clustering of Mendelian Randomisation instruments (PWC-MR). Our approach was used to investigate the large causal effect of body mass index (BMI) on educational attainment (EDU) -0.19 [-0.22, -0.16], where we hypothesise that potential horizontal pleiotropic effects (emerging due to heritable confounders, dynastic effects, genetic subtypes of obesity and other pleiotropic mechanisms, see panel a in the figure below) are biassing BMI's effect on educational attainment.

The main steps of the PWC-MR method are (illustrated in panel b of the figure below):

Working Example - BMI

Please download the working-example folder and set it as your working directory in R. There are two subfolders you would use, and one file to download from here (150 MBs):


This analysis was run entirely on R version 4.2.2 (2022-10-31 as well as R version 4.1.3 (2022-03-10).
Analysis run time takes on average 15 minutes.

Secondary analysis is provided as non-custom scripts (systematic confounder search using MR followed by MVMR), that can be modified to include proper paths for analysis.