library(catalogueR) 

Introduction

List datasets

gwas.qtl_paths <- catalogueR::eQTLcatalogue_example_queries(fnames = c(
  "BST1__Alasoo_2018.macrophage_IFNg+Salmonella.tsv.gz",
  "BST1__Alasoo_2018.macrophage_naive.tsv.gz",
  "BST1__Alasoo_2018.macrophage_Salmonella.tsv.gz"
))

Run coloc

coloc_QTLs <- catalogueR::COLOC_run(gwas.qtl_paths = gwas.qtl_paths,
                                    top_snp_only = TRUE,
                                    split_by_group = FALSE,
                                    method = "abf")

Plot results

First, let's plot only the results with >80% colocalization probability. This is a colocalization threshold commonly used in the field.

coloc_plot <- catalogueR::COLOC_heatmap(coloc_QTLs = coloc_QTLs, 
                                             coloc_thresh = .8)
coloc_plot <- catalogueR::COLOC_heatmap(coloc_QTLs = coloc_QTLs,
                                             coloc_thresh = 0)

Too many results:

Session info

utils::sessionInfo()



RajLabMSSM/catalogueR documentation built on Jan. 1, 2023, 10:45 a.m.