Skip to contents

plot_mismatch_freq Plot the frequency of mismatches per offtarget.

Usage

plot_mismatch_freq(x, bins = 1 + diff(range(x$mismatches)))

Arguments

x

A GRanges object containing the results of a breakinspectoR analysis.

bins

number of bins tu use in the histogram. Defaults to the maximum number of mismatches + 1.

Value

A ggplot object.

Examples

if (FALSE) { # \dontrun{
  offtargets <- breakinspectoR(
    target   =system.file("extdata/vegfa.chr6.bed.gz", package="breakinspectoR"),
    nontarget=system.file("extdata/nontarget.chr6.bed.gz", package="breakinspectoR"),
    guide    ="GACCCCCTCCACCCCGCCTC",
    PAM      =c("NGG", "NAG"),
    bsgenome ="BSgenome.Hsapiens.UCSC.hg38",
    cutsiteFromPAM=3
  )
} # }
data(breakinspectoR_examples)

plot_mismatch_freq(offtargets)