This function creates a boxplot showing the distribution of peak scores in each peak file.

plot_peak_scores(
  peaklist,
  score_cols = c("score", "signal.value"),
  interact = FALSE
)

Arguments

peaklist

A list of peak files as GRanges object. Files must be named and listed using list(). e.g. list("name1"=file1, "name2"=file2)

score_cols

Depending on which columns are present, this value will be used to get peak scores to plot from the metadata columns.

interact

Default TRUE. By default, plots are interactive. If set FALSE, all plots in the report will be static.

Value

A boxplot of peak scores.

Examples

data("encode_H3K27ac") # example peaklist GRanges object
data("CnT_H3K27ac") # example peaklist GRanges object
peaklist <- list("encode"=encode_H3K27ac, "CnT"=CnT_H3K27ac)
my_plot <- plot_peak_scores(peaklist = peaklist)
#> --- Running plot_peak_scores() ---
#> Done.