transcriptRegionSpectrumPlot | R Documentation |
A diagnostic function that plots the transcript regions of the hosting gene
for each binding site. The function assignToTranscriptRegions
is expected to be executed prior to calling this plot function.
transcriptRegionSpectrumPlot(
object,
values = c("asis", "percentage"),
normalize = FALSE,
normalize.factor = c("sum", "median", "mean"),
show.others = FALSE,
text.size = 4
)
object |
a |
values |
character; if values should be presented 'as-is', that means
for example as frequencies in case |
normalize |
logical; whether to normalize values |
normalize.factor |
character; indicate by what factor values should be normalized to region length by |
show.others |
logical; whether to show 'others' category. Has to be false
if |
text.size |
numeric; font size of the numbers to be displayed on each bar |
Count frequencies can be normalized to the length of the hosting region with
option normalize
. The specific factor how the hosting region length is
used is given by normalize.factor
. In the case of
normalize.factor = "sum"
binding site frequencies are divided by the
summed length of all regions that host the specific binding site.
Further with option values
once can indicate whether raw or normalized
frequencies should be shown 'as-is' or normalized to 'percentages'.
a plot of type ggplot
assignToTranscriptRegions
transcriptRegionOverlapsPlot
# load clip data
files <- system.file("extdata", package="BindingSiteFinder")
load(list.files(files, pattern = ".rda$", full.names = TRUE))
load(list.files(files, pattern = ".rds$", full.names = TRUE)[1])
load(list.files(files, pattern = ".rds$", full.names = TRUE)[2])
bds = makeBindingSites(object = bds, bsSize = 9)
bds = assignToGenes(bds, anno.genes = gns)
bds = assignToTranscriptRegions(object = bds, anno.transcriptRegionList = regions)
transcriptRegionSpectrumPlot(bds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.