Here we’ll perform colocalisation analysis for a particular region, and plot the regions as well. We’ll do the same analysis two ways:
We’ll use the example of LDL cholesterol ieu-a-300 and coronary heart disease ieu-a-7.
Load libraries:
suppressPackageStartupMessages(suppressWarnings({
library(gwasglue)
library(dplyr)
library(gassocplot)
library(coloc)
}))First find a region that we know to be associated with LDL cholesterol.
Choose the best signal and create a range
Extract, harmonise and format the data
Run colocalisation analysis
Plot
Let’s do the same with the vcf files (and the indexes). Download from here:
Set a region to plot:
Extract region from vcf files and convert to coloc object
Run colocalisation analysis
Plot