Run UMAP to project single cells into 2D space using cell-cell pairwise distances
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | ## S3 method for class 'Seurat'
umapFromDistane(
object,
assay = "All",
seed = 42,
method = "umap-learn",
n.neighbors = 15,
n.components = 2,
metric = "euclidean",
verbose = FALSE,
n.epochs = 200,
min.dist = 0.1,
spread = 1,
set.op.mix.ratio = 1,
local.connectivity = 1L,
negative.sample.rate = 5L
)
## Default S3 method:
umapFromDistane(
object,
seed = 42,
method = "umap-learn",
n.neighbors = 15,
n.components = 2,
metric = "euclidean",
verbose = TRUE,
n.epochs = 200,
min.dist = 0.1,
spread = 1,
set.op.mix.ratio = 1,
local.connectivity = 1L,
negative.sample.rate = 5L
)
umapFromDistane(object, ...)
|
object |
(For Seurat) Seurat object |
assay |
(For Seurat) run UMAP for which assay, choose from RNA, ADT, Joint or All |
seed |
see number. default is 42 |
method |
could be "naive" or "umap-learn" |
n.neighbors |
integer; number of nearest neighbors |
n.components |
integer; dimension of target (output) space |
metric |
character or function; determines how distances between data points are computed. When using a string, available metrics are: euclidean, manhattan. Other available generalized metrics are: cosine, pearson, pearson2. Note the triangle inequality may not be satisfied by some generalized metrics, hence knn search may not be optimal. When using metric.function as a function, the signature must be function(matrix, origin, target) and should compute a distance between the origin column and the target columns |
verbose |
logical or integer; determines whether to show progress messages |
n.epochs |
integer; number of iterations performed during layout optimization |
min.dist |
numeric; determines how close points appear in the final layout |
spread |
numeric; used during automatic estimation of a/b parameters. |
set.op.mix.ratio |
numeric in range [0,1]; determines who the knn-graph is used to create a fuzzy simplicial graph |
local.connectivity |
numeric; used during construction of fuzzy simplicial set |
negative.sample.rate |
integer; determines how many non-neighbor points are used per point and per iteration during layout optimization |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.