A function to reduce the dimension of the similarity matrix

reducedDimSNF(sce, metadata = "SNF_W", method = "UMAP", dimNames = NULL, ...)

Arguments

sce

A singlecellexperiment object

metadata

indicates the meta data name of affinity matrix to virsualise

method

the method of visualisation, which can be UMAP, tSNE and diffusion map

dimNames

indicates the name of the reduced dimension results.

...

other parameters for tsne(), umap()

Value

A SingleCellExperiment object

Examples

data(sce_control_subset, package = "CiteFuse") sce_control_subset <- CiteFuse(sce_control_subset)
#> Calculating affinity matrix #> Performing SNF
sce_control_subset <- reducedDimSNF(sce_control_subset, method = "tSNE", dimNames = "tSNE_joint")