plotPathway | R Documentation |
Generate violin plots for pathway analysis results
plotPathway(
inSCE,
resultName,
geneset,
groupBy = NULL,
boxplot = FALSE,
violin = TRUE,
dots = TRUE,
summary = "median",
axisSize = 10,
axisLabelSize = 10,
dotSize = 0.5,
transparency = 1,
defaultTheme = TRUE,
gridLine = FALSE,
title = geneset,
titleSize = NULL
)
inSCE |
Input SingleCellExperiment object. With
|
resultName |
A single character of the name of a score matrix, which
should be found in |
geneset |
A single character specifying the geneset of interest. Should be found in the geneSetCollection used for performing the analysis. |
groupBy |
Either a single character specifying a column of
|
boxplot |
Boolean, Whether to add a boxplot. Default |
violin |
Boolean, Whether to add a violin plot. Default |
dots |
Boolean, If |
summary |
Adds a summary statistic, as well as a crossbar to the violin
plot. Options are |
axisSize |
Size of x/y-axis ticks. Default |
axisLabelSize |
Size of x/y-axis labels. Default |
dotSize |
Size of dots. Default |
transparency |
Transparency of the dots, values will be 0-1. Default
|
defaultTheme |
Removes grid in plot and sets axis title size to
|
gridLine |
Adds a horizontal grid line if |
title |
Title of plot. Default using |
titleSize |
Size of the title of the plot. Default |
runGSVA()
or runVAM()
should be applied in advance of
using this function. Users can group the data by specifying groupby
.
A ggplot
object for the violin plot
data("scExample", package = "singleCellTK")
sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'")
sce <- scaterlogNormCounts(sce, assayName = "logcounts")
gs1 <- rownames(sce)[seq(10)]
gs2 <- rownames(sce)[seq(11,20)]
gs <- list("geneset1" = gs1, "geneset2" = gs2)
sce <- importGeneSetsFromList(inSCE = sce, geneSetList = gs,
by = "rownames")
sce <- runVAM(inSCE = sce, geneSetCollectionName = "GeneSetCollection",
useAssay = "logcounts")
plotPathway(sce, "VAM_GeneSetCollection_CDF", "geneset1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.