targetGeneSpectrumPlot: Bar-chart to show the hosting gene types of binding sites

View source: R/PlotFunction.R

targetGeneSpectrumPlotR Documentation

Bar-chart to show the hosting gene types of binding sites

Description

A diagnostic function that plots the gene type of the hosting gene for each binding site. The function assignToGenes is expected to be executed prior to calling this plot function.

Usage

targetGeneSpectrumPlot(object, showNGroups = 5, text.size = 4)

Arguments

object

a BSFDataSet object

showNGroups

numeric; the number of different gene types to show

text.size

numeric; the size of the text elments on the plot

Value

a plot of type ggplot

See Also

assignToGenes geneOverlapsPlot

Examples

# 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])
bds = makeBindingSites(object = bds, bsSize = 9)
bds = assignToGenes(bds, anno.genes = gns)
targetGeneSpectrumPlot(bds)


ZarnackGroup/BindingSiteFinder documentation built on May 31, 2024, 3:29 a.m.