runTSNE | R Documentation |
Perform TSNE on sections or genes in a SummarizedExperiment
object for dimensionality reduction.
runTSNE(object, genes = NA, matrix = "auto", perplexity = NA, ...)
object |
A |
genes |
|
matrix |
Character, must be one of |
perplexity |
Numeric, perplexity parameter for Rtsne (default: 0.25 *(number of observations - 1)). |
... |
Other parameters passed to |
A SummarizedExperiment
object. The TSNE embeddings are saved in slot meta
if TSNE is performed on sections, or saved in slot gene_embedding
if TSNE is performed on genes.
Rtsne
for performing TSNE on a matrix.
data(zh.data) zh <- createTomo(zh.data) # Perform TSNE on sections. zh <- runTSNE(zh) # Perform TSNE on sections with other perplexity. zh <- runTSNE(zh, perplexity=10) # Perform TSNE on some genes. zh <- runTSNE(zh, genes=rownames(zh)[1:100])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.