Description of code for paper "A Mendelian randomization-based exploration of red blood cell distribution width and mean corpuscular volume with risk of hemorrhagic strokes"
Authors: Jundong Liu,1 Elizabeth L Chou,2 Kui Kai Lau,34 Peter YM Woo,5 Tsz Kin Wan,6 Ruixuan Huang,6 Kei Hang Katie Chan167*
- Department of Biomedical Sciences, City University of Hong Kong, Hong Kong SAR, China
- Massachusetts General Hospital, Boston, MA, USA
- Division of Neurology, Department of Medicine, The University of Hong Kong, Hong Kong SAR, China
- The State Key Laboratory of Brain and Cognitive Sciences, The University of Hong Kong, Hong Kong SAR, China
- Department of Neurosurgery, Kwong Wah Hospital, Hong Kong SAR, China
- Department of Electrical Engineering, City University of Hong Kong, Hong Kong SAR, China
- Department of Epidemiology, Centre for Global Cardiometabolic Health, Brown University, RI, USA
*Corresponding author
This codes are test on Rstudio(2021.09.1+372 "Ghost Orchid" Release (8b9ced188245155642d024aa3630363df611088a, 2021-11-08)), requiring following packages.
Rstudio: TwoSampleMR, readxl, tidyverse, RadialMR, boot, LDlinkR, dplyr, MVMR, MRPRESSO, boot.pval, MendelianRandomization, GWAS.utils, phenoscanner, cause, RMVMR, RColorBrewer, cowplot, gridExtra, MASS, glmnet, quantreg, robustbase, Hmisc, forestplot, qvalue, fdrtool, rlist, pipeR, vcfR, stringr, data.table
- Medical Research Council Integrative Epidemiology Unit OpenGWAS, https://gwas.mrcieu.ac.uk/
- UK Biobank database, https://www.ukbiobank.ac.uk/
- UK Biobank - Neale lab, http://www.nealelab.is/uk-biobank
- FINNGEN, https://www.finngen.fi/fi
- Genetic correlation: preporcessing_data_for_phenoSpD.R
- UMR: preporcessing_data_for_umr.R, umr_estimates.R, umr_tool.R
- MVMR: mvmr_estimates.R, mvmr_tool.R
- Coloc: read_vcf.R, coloc.R
- Mediation analysis: mediation analysis.R