plotSoupXResults | R Documentation |
This function will generate a combination of plots basing on the correction done by SoupX. For each sample, there will be a UMAP with cluster labeling, followed by a number of UMAPs showing the change in selected top markers. The cluster labeling is what should be used for SoupX to estimate the contamination. The Soup Fraction is calculated by subtracting the gene expression value of the output corrected matrix from that of the original input matrix, and then devided by the input.
plotSoupXResults(
inSCE,
sample = NULL,
background = FALSE,
reducedDimName = NULL,
plotNCols = 3,
plotNRows = 2,
baseSize = 8,
combinePlot = c("all", "sample", "none"),
xlab = NULL,
ylab = NULL,
dim1 = NULL,
dim2 = NULL,
labelClusters = FALSE,
clusterLabelSize = 3.5,
defaultTheme = TRUE,
dotSize = 0.5,
transparency = 1,
titleSize = NULL,
axisLabelSize = NULL,
axisSize = NULL,
legendSize = NULL,
legendTitleSize = NULL
)
inSCE |
A SingleCellExperiment object. With
|
sample |
Character vector. Indicates which sample each cell belongs to.
Default |
background |
Logical. Whether |
reducedDimName |
Character. The embedding to use for plotting. Leave it
|
plotNCols |
Integer. Number of columns for the plot grid per sample.
Will determine the number of top markers to show together with
|
plotNRows |
Integer. Number of rows for the plot grid per sample. Will
determine the number of top markers to show together with |
baseSize |
Numeric. The base font size for all text. Default 12. Can be
overwritten by titleSize, axisSize, and axisLabelSize, legendSize,
legendTitleSize. Default |
combinePlot |
Must be either |
xlab |
Character vector. Label for x-axis. Default |
ylab |
Character vector. Label for y-axis. Default |
dim1 |
See |
dim2 |
See |
labelClusters |
Logical. Whether the cluster labels are plotted. Default
|
clusterLabelSize |
Numeric. Determines the size of cluster label when
|
defaultTheme |
Logical. Adds grid to plot when |
dotSize |
Numeric. Size of dots. Default |
transparency |
Numeric. Transparency of the dots, values will be from 0
to 1. Default |
titleSize |
Numeric. Size of title of plot. Default |
axisLabelSize |
Numeric. Size of x/y-axis labels. Default |
axisSize |
Numeric. Size of x/y-axis ticks. Default |
legendSize |
Numeric. Size of legend. Default |
legendTitleSize |
Numeric. Size of legend title. Default |
ggplot object of the combination of UMAPs. See description.
runSoupX
## Not run:
sce <- importExampleData("pbmc3k")
sce <- runSoupX(sce, sample = "sample")
plotSoupXResults(sce, sample = "sample")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.