PlotUTRLengthShift: Plot global shifts in 3'UTR length

View source: R/plotting_functions.R

PlotUTRLengthShiftR Documentation

Plot global shifts in 3'UTR length

Description

Plot global shifts in 3'UTR lengths between cell populations. Input is a table of results from the Detect3UTRLengthShift functions. By default evaluates whether there is a significant shift in 3'UTR length between upregulated and downregulated peaks using the Wilcoxon Rank-sum test.

Usage

PlotUTRLengthShift(
  results.table,
  plot.title = "Global shift in 3'UTR length",
  do.ranksum.test = TRUE,
  return.plot = TRUE,
  do.plot = FALSE
)

Arguments

results.table

table produced by the DetectUTRLengthShift function

plot.title

optional title

do.ranksum.test

whether to perform a ranksum test on the shift in UTR usage

return.plot

whether to return the ggplot2 object

do.plot

whether to print the figure to output

Examples


extdata_path <- system.file("extdata",package = "Sierra")
results.file <- paste0(extdata_path,"/Cycling_vs_resting_fibro_UTR_length_res.RData")
load(results.file)

PlotUTRLengthShift(res.table)


VCCRI/Sierra documentation built on July 3, 2023, 6:39 a.m.