A function to reduce the dimension of the similarity matrix
reducedDimSNF(sce, metadata = "SNF_W", method = "UMAP", dimNames = NULL, ...)
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() |
A SingleCellExperiment object
#> Calculating affinity matrix #> Performing SNFsce_control_subset <- reducedDimSNF(sce_control_subset, method = "tSNE", dimNames = "tSNE_joint")