plotExPosition: Plot back-spliced exon positions

Description Usage Arguments Value Examples

View source: R/getPlots.R

Description

The function plotExPosition() generates a bar chart showing the position of the back-spliced exons within the transcript.

Usage

1
plotExPosition(annotatedBSJs, title = "", n = 0, flip = FALSE)

Arguments

annotatedBSJs

A data frame with the annotated back-spliced junctions. This data frame can be generated with annotateBSJs.

title

A character string specifying the title of the plot.

n

An integer specyfing the position counts cut-off. If 0 is specified all position are plotted. Deafult value is 0.

flip

A logical specifying whether to flip the transcripts. If TRUE all transcripts are flipped and the last exons will correspond to the first ones, the second last exons to the second ones etc. Default value is FALSE.

Value

A ggplot object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# 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
annotatedBSJs <- annotateBSJs(mergedBSJunctions[1:10, ], gtf)

# Plot
p <- plotExPosition(annotatedBSJs, title = "", n = 0, flip = FALSE)
p

Aufiero/circRNAprofiler documentation built on July 22, 2021, 9:34 p.m.