RTsne.pdf

From Array Suite Wiki

(Redirected from T-SNE Clustering)
Jump to: navigation, search


Contents

t-SNE clustering

Overview

The Rtsne module in Array Studio will allow the user to cluster different cells with UMI counts, using the Rtsne package in R: T-Distributed Stochastic Neighbor Embedding using a Barnes-Hut Implementation. t-SNE is a method for constructing a low dimensional embedding of high-dimensional data, distances or similarities. Nowadays, t-SNE has been a typical method to cluster different subgroup of cells in the process of analyzing Single Cell sequencing data. This function is intended to use Single Cell UMI count data, and directly runs the R implementation of t-SNE.

To open this module, please go to Analysis | NGS | Sing Cell RNA-Seq | t-SNE Clustering.

Tsne01.png

[back to top]


Input Data Requirements

This module works on -Omic data objects and Zero inflated binary matrix (ZIM) data.

[back to top]


General Options

User can choose to perform this analysis locally:

Tsne00.png

Or perform this analysis on the server:

Tsne02.png

[back to top]

Input/Outputs

  • Project & Data: The window includes a dropdown box to select the Project and Data object to be filtered.
  • Variables: Selections can be made on which variables should be included in the filtering (options include All variables, Selected variables, Visible variables, and Customized variables (select any pre-generated Lists)).
  • Observations: Selections can be made on which observations should be included in the filtering (options include All observations, Selected observations, Visible observations, and Customized observations (select any pre-generated Lists).
  • Output name: The user can choose to name the output data object.


[back to top]


Options

  • Dimension: integer; Output dimensionality (default: 2)
  • Perplexity: numeric; Perplexity parameter
  • Theta: numeric; Speed/accuracy trade-off (increase for less accuracy), set to 0.0 for exact TSNE (default: 0.5)
  • Max iteration: integer; Number of iterations (default: 1000)
  • Cluster color: User can choose to color the resulted scatter plot with any pre-defined group (like tissue, treatment). User can leave it empty.
    • Run initial PCA: logical; Whether an initial PCA step should be performed (default: TRUE)
    • Check duplicates: logical; Checks whether duplicates are present. It is best to make sure there are no duplicates present and set this option to FALSE, especially for large datasets (default: FALSE)
  • PCA settings :
    • initial PCA dimensions: integer; the number of dimensions that should be retained in the initial PCA step (default: 50)
    • Center data before PCA: logical; Should data be centered before pca is applied? (default: TRUE)
    • Scale data before PCA: logical; Should data be scaled before pca is applied? (default: FALSE)

Warning.png WARNING: if user see the package compatibility is not OK, it means that the R integrated with ArrayStudio is not ready to run Rtsne, please check with R implementation of t-SNE to configure the Rtsne in ArrayStudio

[back to top]


Advanced Options

Tsne11.png

  • Stop lying iteration number: integer; Iteration after which the perplexities are no longer exaggerated (default: 250, except when Y_init is used, then 0)
  • Moment switch iteration number: integer; Iteration after which the final momentum is used (default: 250, except when Y_init is used, then 0)
  • Momentum: numeric; Momentum used in the first part of the optimization (default: 0.5)
  • Final Momentum: numeric; Momentum used in the final part of the optimization (default: 0.8)
  • Eta: numeric; Learning rate (default: 200.0)
  • Exaggeration factor: numeric; Exaggeration factor used to multiply the P matrix in the first part of the optimization (default: 12.0)

Output Results

The Rtsne module will generate a table and a scatter plot view for this table in ArrayStudio:

Tsne03.png

An example of TsneScoreTable is shown below:

Tsne04.png

An example of scatter plot with the two principle component defined by Rtsne is shown below. Each data point represents a cell:

Tsne05.png


Additional Options

Once the scatter plot is generated, user can try to manually select cells that belongs to the same cluster, and add a list name to these clusters:

Tsne06.png

If all of the cells have been assigned a list name based on their distribution in the scatter plot, user can select all the lists defined from this scatter plot and right click to choose to add the list membership to the original TsneScoreTable:

Tsne07.png

Tsne08.png

Then user can go to the scatter plot, and choose to Change Symbol Properties, and color the plot by Categorical value, and set the newly added ListMembership:

Tsne09.png

With this operation, user can see that different colors can be assigned to each cluster:

Tsne10.png


[back to top]


OmicScript

R t-SNE

[back to top]


Related Articles

EnvelopeLarge2.png

[back to top]