View source: R/scanpyFunctions.R
runScanpyUMAP | R Documentation |
runScanpyUMAP Computes UMAP from the given sce object and stores the UMAP computations back into the sce object
runScanpyUMAP(
inSCE,
useAssay = NULL,
useReducedDim = "scanpyPCA",
reducedDimName = "scanpyUMAP",
dims = 40,
minDist = 0.5,
nNeighbors = 10,
spread = 1,
alpha = 1,
gamma = 1,
externalReduction = NULL,
seed = 12345
)
inSCE |
(sce) object on which to compute the UMAP |
useAssay |
Specify name of assay to use. Default is |
useReducedDim |
Reduction to use for computing UMAP.
Default is |
reducedDimName |
Name of new reducedDims object containing Scanpy UMAP
Default |
dims |
Numerical value of how many reduction components to use for UMAP
computation. Default |
minDist |
Sets the |
nNeighbors |
Sets the |
spread |
Sets the |
alpha |
Sets the |
gamma |
Sets the |
externalReduction |
Pass DimReduce object if PCA computed through
other libraries. Default |
seed |
Specify numeric value to set as a seed. Default |
Updated sce object with UMAP computations stored
data(scExample, package = "singleCellTK")
## Not run:
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")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.