Performs Uniform Manifold Approximation and Projection (UMAP) on a SingleCellExperiment object. The algorithm is explained in detail in McInnes et. al. and requires the python packages umap-learn and numpy to be installed.
umap(object, exprs_values, features = NULL, scale = T, n_neighbors = 5L, min_dist = 0.1, metric = "correlation", use_dimred = NULL, seed = NULL)
object | A SingleCellExperiment object. |
---|---|
exprs_values | String indicating which assay contains the data that should be used to perform UMAP. |
features | A character vector (of feature names), a logical vector or numeric vector (of indices) specifying the features to use for UMAP. The default of NULL will use all features. |
scale | Logical scalar indicating whether data should be scaled before UMAP. |
n_neighbors | This determines the number of neighboring points used in local approximations of manifold structure. Larger values will result in more global structure being preserved at the loss of detailed local structure. In general this parameter should often be in the range 5 to 50, with a choice of 10 to 15 being a sensible default. |
min_dist | This controls how tightly the embedding is allowed compress points together. Larger values ensure embedded points are more evenly distributed, while smaller values allow the algorithm to optimise more accurately with regard to local structure. Sensible values are in the range 0.001 to 0.5, with 0.1 being a reasonable default. |
metric | This determines the choice of metric used to measure distance in the input space. |
use_dimred | String indicating which slot in |
seed | A numeric seed to initialize the random number generator. |
A matrix with the two-dimensional embedding.