Add tSNE embeddings for a SRTProject object

AddTSNE(SRTProj, n_comp = 2, reduction = NULL, seed = 1)

# S3 method for SRTProject
AddTSNE(SRTProj, n_comp = 2, reduction = NULL, seed = 1)

Arguments

SRTProj

a SRTProject object.

n_comp

an optional positive integer, specify the number of features to be extracted.

reduction

an optional string, means which dimensional reduction (e.g. PRECAST, PCA) to use for the tSNE, default as the last one in the SRTProject object.

seed

a non-negative integer, the random seed for reproducibility.

Value

Return a revised SRTProject object by adding tSNE embeddings metadata