COLOC_run | R Documentation |
Runs colocalization tests (coloc.abf) on merged GWAS-QTL data.tables generated by eQTLcatalogue_query. Iteratively runs coloc across each:
QTL dataset
GWAS locus
QTL gene
NOTE: Assumes that each file is within a subfolder named after the QTL dataset it came from.
COLOC_run( gwas.qtl_paths, save_path = tempfile(pattern = "coloc_results", fileext = ".tsv.gz"), top_snp_only = TRUE, split_by_group = FALSE, method = "abf", coloc_thresh = 0.8, compute_n = NULL, nThread = 1, verbose = TRUE )
gwas.qtl_paths |
Query results paths from eQTLcatalogue_query. |
save_path |
Where to save results to. |
top_snp_only |
Only include the SNP (with the highest SNP-wise PP.H4, which is usually the one with the smallest p-value) instead of all SNPs. Can be useful for reducing data size. |
split_by_group |
Split files by QTL group when saving. |
method |
Method for querying eQTL Catalogue:
Note: "tabix" is about ~17x faster than the REST API, but is currently a far less reliable method than the REST API because tabix tends to get blocked by eQTL Catalogue's firewall. See here for more details. |
coloc_thresh |
Colocalization Posterior Probability threshold,
using the formula:
|
compute_n |
How to compute per-SNP sample size (new column "N").
|
nThread |
The number of CPU cores you want to use to speed up your queries through parallelization. |
verbose |
Print messages. |
If top_snp_only=TRUE
, returns SNP-level stats for only the SNP
with the highest colocalization probability (SNP.PP.H4)
If top_snp_only=FALSE
, returns SNP-level stats for every SNP.
In either case, summary-level coloc stats are added in the columns
PP.H0, PP.H1, PP.H2, PP.H3, PP.H4.
Other coloc:
COLOC_corplot()
,
COLOC_get_example_res()
,
COLOC_get_res()
,
COLOC_heatmap()
,
COLOC_merge_res()
,
COLOC_report_summary()
gwas.qtl_paths <- catalogueR::eQTLcatalogue_example_queries() coloc_QTLs <- catalogueR::COLOC_run(gwas.qtl_paths = gwas.qtl_paths)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.