Plot motif disruption results generated by MOTIFBREAKR.
Results generated by MOTIFBREAKR, in GRanges format.
GRanges object
used to filter mb_res
before plotting.
Character; the identifier of the variant to be visualized
Character; show motifs that are strongly effected c("strong")
,
weakly effected c("weak")
, or both c("strong", "weak")
Directory where results should be saved
as a file named:
<results_dir>/_genome_wide/motifbreakR/motifbreakR_results.rds.
If NULL
, results will not be saved to disk.
the height of the device.
the width of the device.
Print messages.
Named list of motif plot paths.
Notes:
Saving as a PDF seems to work much better than PNG format (at least when using grDevices).
library(BSgenome) ## <-- IMPORTANT!
library(BSgenome.Hsapiens.UCSC.hg19) ## <-- IMPORTANT!
#### Example fine-mapping results ####
merged_DT <- echodata::get_Nalls2019_merged()
#### Run motif analyses ####
mb_res <- MOTIFBREAKR(rsid_list = c("rs11175620"),
# limit the number of datasets tested
# for demonstration purposes only
pwmList_max = 5,
calculate_pvals = FALSE)
#> genome_build set to hg19 by default.
#> Using genome_build hg19
#> + MOTIFBREAKR:: Using pre-existing tmp file.
if (FALSE) {
plot_paths <- MOTIFBREAKR_plot(mb_res = mb_res)
}