This tutorial provides a step-by-step guide to performing basic polygenic risk score (PRS) analyses and accompanies our PRS Guide paper. The aim of this tutorial is to provide a simple introduction to PRS analyses to those new to PRS, while equipping existing users with a better understanding of the processes and implementation "underneath the hood" of popular PRS software.
The tutorial is separated into four main sections and reflects the structure of our guide paper: the first two sections on QC correspond to Section 2 of the paper and constitute a 'QC checklist' for PRS analyses, the third section on calculating PRS (here with examples using PLINK, PRSice-2, LDpred and lassosum) corresponds to Section 3 of the paper, while the fourth section, which provides some examples of visualising PRS results, accompanies Section 4 of the paper.
- Quality Control (QC) of Base Data
- Quality Control (QC) of Target Data
- Calculating and analysing PRS
- Visualising PRS Results
We will be referring to our guide paper in each section and so you may find it helpful to have the paper open as you go through the tutorial.
If you are only interested in how to perform PRS on previously QC'ed data then you can skip to Step 3. Links to download the required data are provided under each section.
This tutorial is written for Linux and OS X operating systems. Windows users will need to change some commands accordingly.
Throughout the tutorial you will see tabs above some of the code:
echo "Tab A"
echo "Tab B"
You can click on the tab to change to an alternative code (eg. to a different operation system)
- Base data: Modified summary statistics file from the GIANT consortium study on height
- Target data: Simulated data based on the 1000 Genomes Project European samples
To follow the tutorial, you will need the following programs installed:
If you find this tutorial helpful for a publication, then please consider citing:
Choi SW, Mak TSH, O'Reilly PF. A guide to performing Polygenic Risk Score analyses. bioRxiv 416545 (2018). https://doi.org/10.1101/416545