getTSNE | R Documentation |
Run t-SNE dimensionality reduction method on the assay data.
getTSNE( inSCE, useAssay = "logcounts", reducedDimName = "TSNE", n_iterations = 1000, perplexity = NULL, run_pca = TRUE )
inSCE |
Input SCtkExperiment object. Required |
useAssay |
Indicate which assay to use. The default is "logcounts". |
reducedDimName |
a name to store the results of the dimension reductions |
n_iterations |
maximum iterations. Default is 1000 |
perplexity |
perplexity parameter. |
run_pca |
run tSNE on PCA components? Default is TRUE. |
A SCtkE object with the specified reducedDim and pcaVariances updated
data("mouseBrainSubsetSCE") #add a CPM assay assay(mouseBrainSubsetSCE, "cpm") <- apply( assay(mouseBrainSubsetSCE, "counts"), 2, function(x) { x / (sum(x) / 1000000) }) mouseBrainSubsetSCE <- getTSNE(mouseBrainSubsetSCE, useAssay = "cpm", reducedDimName = "TSNE_cpm") reducedDims(mouseBrainSubsetSCE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.