| plotLenBSEs {circRNAprofiler} | R Documentation |
The function plotLenBSEs() generates vertical boxplots for comparison of length of back-spliced exons (e.g. detected Vs randomly selected).
plotLenBSEs(annotatedFBSJs, annotatedBBSJs, df1Name = "foreground", df2Name = "background", title = "")
annotatedFBSJs |
A data frame with the annotated back-spliced junctions
(e.g. detected). It can be generated with |
annotatedBBSJs |
A data frame with the annotated back-spliced junctions
(e.g. randomly selected). It can generated with |
df1Name |
A string specifying the name of the first data frame. This will be displayed in the legend of the plot. |
df2Name |
A string specifying the name of the first data frame. This will be displayed in the legend of the plot. |
title |
A character string specifying the title of the plot |
A ggplot object.
# Load data frame containing detected back-spliced junctions
data("mergedBSJunctions")
# Load short version of the gencode v19 annotation file
data("gtf")
# Annotate the first 10 back-spliced junctions
annotatedFBSJs <- annotateBSJs(mergedBSJunctions[1:10, ], gtf)
# Get random back-spliced junctions
randomBSJunctions <- getRandomBSJunctions(n = 10, f = 10, gtf)
# Annotate random back-spliced junctions
annotatedBBSJs <- annotateBSJs(randomBSJunctions, gtf, isRandom = TRUE)
# Plot
p <- plotLenBSEs(
annotatedFBSJs,
annotatedBBSJs,
df1Name = "foreground",
df2Name = "background",
title = "")
p