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
)A list of peak files as GRanges object.
Files must be listed and named using list().
e.g. list("name1"=file1, "name2"=file2).
If not named, default file names will be assigned.
peaklist1 A list of peak files as GRanges object.
Files must be listed and named using list().
e.g. list("name1"=file1, "name2"=file2).
If TRUE, keep only the ranges in x that do not
overlap ranges.
Return percision-recall results for all combinations
of peaklist1 (the "query") and peaklist2 (the "subject").
See subsetByOverlaps for more details on this terminology.
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)
#> Computing precision-recall results.