Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/plotNeighborsOrientation.R
Plots stacked bars of the percentage of each orientation for the upstream and downstream genes.
1 | plotNeighborsOrientation(orientationStats)
|
orientationStats |
A data frame produced by the
|
The function only plots the following orientations, if present:
SameStrand. The upstream/downstream gene is on the same strand as the focus gene
OppositeStrand. The upstream/downstream gene is on the opposite strand of the focus gene
OppositeOverlap. The upstream/downstream gene is on the opposite strand of the focus gene and overlaps with the focus gene
SameOverlap. The upstream/downstream gene is on the same strand of the focus gene and overlaps with the focus gene
other. Any other, more complex situation (e.g. multiple overlaps, focus gene contained within another gene, etc.)
A ggplot
object
Pascal GP Martin
1 2 3 4 5 6 7 8 9 | ## Obtain gene neighborhood information:
GeneNeighbors <- getGeneNeighborhood(Genegr)
## Define a (random) set of (100) genes:
set.seed(123)
randGenes <- sample(names(Genegr), 100)
## Analyze the orientation of their neighbors:
NOS <- analyzeNeighborsOrientation(randGenes, GeneNeighborhood = GeneNeighbors)
## Plot the results:
plotNeighborsOrientation(NOS)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.