View source: R/overlap_percent.R
overlap_percent | R Documentation |
This function calculates the percentage of overlapping peaks and outputs a table or matrix of results.
overlap_percent(
peaklist1,
peaklist2,
invert = FALSE,
precision_recall = TRUE,
suppress_messages = TRUE
)
peaklist1 |
A list of peak files as GRanges object.
Files must be listed and named using |
peaklist2 |
peaklist1 A list of peak files as GRanges object.
Files must be listed and named using |
invert |
If |
precision_recall |
Return percision-recall results for all combinations
of |
suppress_messages |
Suppress messages. |
data frame
### Load Data ###
data("encode_H3K27ac") # example peakfile GRanges object
data("CnT_H3K27ac") # example peakfile GRanges object
data("CnR_H3K27ac") # example peakfile GRanges object
### Create Named Peaklist ###
peaks <- list("CnT"=CnT_H3K27ac, "CnR"=CnR_H3K27ac)
reference_peak <- list("ENCODE"=encode_H3K27ac)
### Run ###
overlap <- overlap_percent(peaklist1=peaks,
peaklist2=reference_peak)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.