Add UMAP embeddings for a SRTProject object

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

# S3 method for SRTProject
AddUMAP(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 UMAP, 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 UMAP embeddings