scTSNE | R Documentation |
The t-SNE is calculated based on the eigenvectors of single cell dataset, and the user can select the eigenvectors manually. Of note, the selected eigenvectors directly affect t-SNE values. For the integrated data (the result of "scMultiIntegrate" funciton), RISC utilizes the PCR output "PLS" to calculate the t-SNE, therefore, the user has to input "PLS" in "use = ", instead of the defaut parameter "PCA".
scTSNE(
object,
npc = 20,
embedding = 2,
use = "PCA",
perplexity = 30,
seed = 123,
...
)
object |
RISC object: a framework dataset. |
npc |
The number of PCs (or PLS) using for t-SNE, the default is 20, but need to be modified by the users. The PCA for individual dataset, while PLS for the integrated data. |
embedding |
The number of components t-SNE output. |
use |
What components used for t-SNE: PCA or PLS. |
perplexity |
Perplexity parameter: if the cell numbers are small, decrease this parameter, otherwise tSNE cannot be calculated. |
seed |
The random seed to keep tSNE result consistent. |
RISC single cell dataset, the DimReduction slot.
Laurens van der Maaten, JMLR (2014)
# RISC object
obj0 = raw.mat[[3]]
obj0 = scPCA(obj0, npc = 10)
obj0 = scTSNE(obj0, npc = 4, perplexity = 10)
DimPlot(obj0, slot = "cell.tsne", colFactor = 'Group', size = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.