This function generates upset plot of overlapping peaks files using the ComplexUpset package.

overlap_upset_plot(peaklist, verbose = TRUE)

Arguments

peaklist

A named list of peak files as GRanges object. Objects must be listed and named using list(). e.g. list("name1"=file1, "name2"=file2). If not named, default file names are assigned.

verbose

Print messages

Value

Upset plot of overlapping peaks.

Examples

### Load Data ###
data("encode_H3K27ac") # load example data
data("CnT_H3K27ac") # load example data 
peaklist <- list("encode"=encode_H3K27ac, "CnT"=CnT_H3K27ac) 
my_plot <- overlap_upset_plot(peaklist = peaklist)
#> --- Running overlap_upset_plot() ---
#> overlap_upset_plot(): Done in 0.3s.