Version : 1.2
Created by : Jerome Bourgault
Contact : jerome.bourgault@criucpq.ulaval.ca
- cd your/folder/
- git clone ...
- Rscript PWAS.R [options]
- data.table
- TwoSampleMR
- MRInstruments
- coloc
- MRPRESSO
- MendelianRandomization
- hyprcoloc
- ggplot2
- ggrepel
- dplyr
- magrittr
- TissueEnrich
- R2BGLiMS
- ieugwasr
- gcta64 (in PATH)
- proteins information file (should contain at least the follow columns with identical names : id, trait, prot_name, file; All proteins included in the file will be used for the analysis.)
- genes reference file (should contain the following columns in the same order (Chromosome/scaffold name must have the same name) : Gene stable ID version, Gene name, Chromosome/scaffold name, Gene start (bp), Gene end (bp), Gene stable ID)
- chromosome lengths file (should contain at least the following columns in the same order with the same names : Chr, Total_length_db)
- LD reference file for MR clumping (PLINK format)
- (optional) rsids reference file (should contain the following columns in the same order, NO HEADER : rsid, pos, chr)
- Your LD reference files in PLINK format, splitted by chromosomes if possible (to reduce computing time). LD reference file in ./data/ can also be used for CoJo, if samplesize is sufficient.
- 1.PWAS.R or PWAS.proxies.R
- 2.results_table.R (only works with results in MRres folder, not with sensitivity analyses results. If running 'loop' script, you should bind your MR results before calling results_table.R)
- 3.PWAS_sensitivity.R
- TwoSampleMR : Hemani et al., 2018 (doi: 10.7554/eLife.34408)
- JAM : Newcombe et al., 2016 (doi: 10.1002/gepi.21953)
- PCA for PW-MR : Burgess et al., 2017 (doi: 10.1002/gepi.22077)
- CoJo : Yang et al., 2012 (doi: 10.1038/ng.2213)
- coloc : Wallace, 2021 (doi: 10.1101/2021.02.23.432421)
- MR-PRESSO : Verbanck et al., 2018 (doi: 10.1038/s41588-018-0099-7)
- HyPrColoc : Foley et al., 2020 (doi: 10.5281/zenodo.4293559)
- TissueEnrich : Jain et al., 2018 (doi: 10.1093/bioinformatics/bty890)