View source: R/overlap_heatmap.R
overlap_heatmap | R Documentation |
This function generates a heatmap showing percentage of overlapping peaks between peak files.
overlap_heatmap(
peaklist,
interact = TRUE,
draw_cellnote = TRUE,
fill_diag = NA,
verbose = TRUE
)
peaklist |
A list of peak files as GRanges object.
Files must be listed and named using |
interact |
Default TRUE. By default heatmap is interactive. If FALSE, heatmap is static. |
draw_cellnote |
Draw the numeric values within each heatmap cell. |
fill_diag |
Fill the diagonal of the overlap matrix. |
verbose |
Print messages. |
An interactive heatmap
### Load Data ###
data("encode_H3K27ac") # example peakfile GRanges object
data("CnT_H3K27ac") # example peakfile GRanges object
### Create Named List ###
peaklist <- list("encode"=encode_H3K27ac, "CnT"=CnT_H3K27ac)
### Run ###
my_heatmap <- overlap_heatmap(peaklist = peaklist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.