Cross-tabulate SNP overlap (after applying filter) between each pair of studies.
plot_dataset_overlap(
merged_DT,
snp_filter = "!is.na(SNP)",
filename = NA,
formula_str = "~ SNP + Dataset",
triangle = FALSE
)
Merged fine-mapping results data from finemap_loci.
Filter to use apply to SNPs before plotting.
Path to save file to as PNG.
Formula passed to xtabs.
Plot correlation matrix as a square or a triangle.
Other summarise:
CS_bin_plot()
,
CS_counts_plot()
,
peak_overlap_plot()
,
super_summary_plot()
if (FALSE) {
merged_DT <- echodata::get_Nalls2019_merged()
merged_DT$Dataset <- rep(c("Dataset1","Dataset2"),nrow(merged_DT)/2)
snp_xprod <- plot_dataset_overlap(merged_DT = merged_DT)
}