Skip to contents

plot_position_cutsite Plot the frequency of the position of the cutsite relative to the guide.

Usage

plot_position_cutsite(x, guide, pam)

Arguments

x

A GRanges object containing the results of a breakinspectoR analysis.

guide

character with the guide sequence. Only used for drawing.

pam

character with PAM sequence. Only used for drawing.

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_position_cutsite(offtargets, guide="GACCCCCTCCACCCCGCCTC", pam="NGG")