COLOC_corplot: Plot summary of coloc tests: heatmap

View source: R/COLOC_corplot.R

COLOC_corplotR Documentation

Plot summary of coloc tests: heatmap

Description

Plots the output from COLOC_run.

Usage

COLOC_corplot(
  coloc_QTLs,
  coloc_thresh = 0.8,
  label_top_snps = 1,
  facets = Study + System + Tissue ~ Locus.eGene,
  show_plot = TRUE,
  save_dir = tempdir(),
  seed = 2022,
  verbose = TRUE
)

Arguments

coloc_QTLs

Colocalization results from COLOC_run.

coloc_thresh

Colocalization Posterior Probability threshold, using the formula: (PP.H3 + PP.H4 >= coloc_thresh) & (PP.H4 / PP.H3 >= 2.

label_top_snps

Label the top n SNPs per facets group, sorted by SNP.PP.H4 from coloc.

show_plot

Whether to print the plot.

save_dir

Directory to save plot in.

verbose

Print messages.

See Also

Other coloc: COLOC_get_example_res(), COLOC_get_res(), COLOC_heatmap(), COLOC_merge_res(), COLOC_report_summary(), COLOC_run()

Examples

coloc_QTLs <- catalogueR::COLOC_get_example_res()
gg_coloc <- COLOC_corplot(coloc_QTLs = coloc_QTLs,
                          coloc_thresh = .5)

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