Compute t-SNE and UMAP dimreds on a SingleCellExperiment
object.
Source: R/clustering.R
sce_compute_dimreds.Rd
Compute t-SNE and UMAP dimreds on a SingleCellExperiment
object.
Usage
sce_compute_dimreds(
sce_pca_selected_pcs,
tsne_perp,
tsne_max_iter,
dimred = "pca",
n_dimred = "selected_pcs",
BPPARAM = BiocParallel::SerialParam()
)
Arguments
- sce_pca_selected_pcs
A
SingleCellExperiment
object with calculated PCA and known number of selected PCs.- tsne_perp
A numeric scalar: t-SNE perplexity.
- tsne_max_iter
A numeric scalar: number of t-SNE iterations.
- dimred
A character scalar: name of matrix in
reducedDim()
used to calculate the dimreds.- n_dimred
A character scalar
"selected_pcs"
: ifdimred
is"pca"
, then use selected PCs stored inmetadata(sce_pca_selected_pcs)$pca_selected_pcs
NULL
: use all dimensions ofdimred
An integer scalar: use first
n_dimred
dimensions ofdimred
- BPPARAM
A BiocParallel::BiocParallelParam object.