View source: R/precision_recall.R
precision_recall | R Documentation |
Compute precision and recall using each GRanges
object in peakfiles
as the "query"
against each GRanges object in reference
as the subject.
precision_recall(
peakfiles,
reference,
thresholding_cols = c("total_signal", "qValue", "Peak Score"),
initial_threshold = 0,
n_threshold = 20,
max_threshold = 1,
cast = TRUE,
workers = 1,
verbose = TRUE,
save_path = tempfile(fileext = "precision_recall.csv"),
...
)
peakfiles |
A list of peak files as GRanges object and/or as paths to
BED files. If paths are provided, EpiCompare imports the file as GRanges
object. EpiCompare also accepts a list containing a mix of GRanges objects
and paths.Files must be listed and named using |
reference |
A named list containing reference peak file(s) as GRanges
object. Please ensure that the reference file is listed and named
i.e. |
thresholding_cols |
Depending on which columns are present, GRanges will be filtered at each threshold according to one or more of the following:
|
initial_threshold |
Numeric threshold that was provided to SEACR
(via the parameter |
n_threshold |
Number of thresholds to test. |
max_threshold |
Maximum threshold to test. |
cast |
Cast the data into a format that's more compatible with ggplot2. |
workers |
Number of threads to parallelize across. |
verbose |
Print messages. |
save_path |
File path to save precision-recall results to. |
... |
Arguments passed on to
|
Overlap
data("CnR_H3K27ac")
data("CnT_H3K27ac")
data("encode_H3K27ac")
peakfiles <- list(CnR_H3K27ac=CnR_H3K27ac, CnT_H3K27ac=CnT_H3K27ac)
reference <- list("encode_H3K27ac" = encode_H3K27ac)
pr_df <- precision_recall(peakfiles = peakfiles,
reference = reference,
workers = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.