View source: R/scanpyFunctions.R
runScanpyTSNE | R Documentation |
runScanpyTSNE Computes tSNE from the given sce object and stores the tSNE computations back into the sce object
runScanpyTSNE(
inSCE,
useAssay = NULL,
useReducedDim = "scanpyPCA",
reducedDimName = "scanpyTSNE",
dims = 40,
perplexity = 30,
externalReduction = NULL,
seed = 12345
)
inSCE |
(sce) object on which to compute the tSNE |
useAssay |
Specify name of assay to use. Default is |
useReducedDim |
selected reduction method to use for computing tSNE.
Default |
reducedDimName |
Name of new reducedDims object containing Scanpy tSNE
Default |
dims |
Number of reduction components to use for tSNE computation.
Default |
perplexity |
Adjust the perplexity tuneable parameter for the underlying
tSNE call. Default |
externalReduction |
Pass DimReduc object if PCA computed through
other libraries. Default |
seed |
Specify numeric value to set as a seed. Default |
Updated sce object with tSNE 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 <- runScanpyTSNE(sce, useReducedDim = "scanpyPCA")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.