overlap_upset_plot: Generate Upset plot for overlapping peaks

View source: R/overlap_upset_plot.R

overlap_upset_plotR Documentation

Generate Upset plot for overlapping peaks

Description

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

Usage

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)

neurogenomics/EpiCompare documentation built on April 30, 2024, 3:58 p.m.