bindingSiteDefinednessPlot | R Documentation |
Binding site definedness is given by the percent of crosslinks that fall
diretly inside the binding site compare to those around the binding site.
This plotting function shows the distribution of those percentage values
grouped by what is indicated in the by
argument.
bindingSiteDefinednessPlot(
object,
by = c("all", "transcript_region", "gene_type"),
showN.genes = 5,
show.others = FALSE
)
object |
a |
by |
character; the option by which the plot should be grouped by. Options are: "all", "transcript_region", "gene_type" |
showN.genes |
numeric; if |
show.others |
logical; whether to show 'others' category. |
If by
= 'all', then all binding site are grouped into one distribution.
For options 'transcript_region' and 'gene_type' binding sites are split into
groups according to the respective assignment. This requires that the respective
assignment function was executed on the dataset prior to calling this plot function.
a plot of type ggplot
BSFind
, calculateSignalToFlankScore
# 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 = BSFind(bds, anno.genes = gns, anno.transcriptRegionList = regions,
est.subsetChromosome = "chr22")
bds = calculateSignalToFlankScore(bds)
bindingSiteDefinednessPlot(bds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.