plotScanpyEmbedding
plotScanpyEmbedding(
inSCE,
reducedDimName,
useAssay = NULL,
color = NULL,
legend = "right margin",
title = ""
)
Input SingleCellExperiment
object.
Name of reducedDims object containing embeddings. Eg. scanpyUMAP.
Specify name of assay to use. Default is NULL
,
which will use scaled assay by default.
Keys for annotations of observations/cells or variables/genes.
Location of legend, either 'on data', 'right margin' or a valid keyword for the loc parameter of Legend.
Provide title for panels either as string or list of strings
plot object
data(scExample, package = "singleCellTK")
if (FALSE) {
sce <- runScanpyNormalizeData(sce, useAssay = "counts")
sce <- runScanpyFindHVG(sce, useAssay = "scanpyNormData", method = "seurat")
sce <- runScanpyScaleData(sce, useAssay = "scanpyNormData")
sce <- runScanpyPCA(sce, useAssay = "scanpyScaledData")
sce <- runScanpyFindClusters(sce, useReducedDim = "scanpyPCA")
sce <- runScanpyUMAP(sce, useReducedDim = "scanpyPCA")
plotScanpyEmbedding(sce, reducedDimName = "scanpyUMAP", color = 'Scanpy_louvain_1')
}