umap: Uniform Manifold Approximation and Projection (UMAP).

Description Usage Arguments Value

View source: R/reduce_dimension.R

Description

Dimension reduction technique that can be used for visualisation similarly to t-SNE, but also for general non-linear dimension reduction.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
umap(
  mat,
  umap.args = list(),
  n_neighbors = 20,
  n_components = 2,
  metric = "euclidean",
  negative_sample_rate = 5,
  init = "spectral",
  min_dist = 0.3,
  random_state = 1,
  verbose = FALSE
)

Arguments

mat

Data with rows are samples and cols are genes.

n_neighbors

float (optional, default 15) The size of local neighborhood (in terms of number of neighboring sample points) used for manifold approximation. Larger values result in more global views of the manifold, while smaller values result in more local data being preserved. In general values should be in the range 2 to 100.

n_components

int (optional, default 2) The dimension of the space to embed into.

metric

string (optional, default 'euclidean') The metric to use to compute distances in high dimensional space. Valid string metrics include: euclidean, manhattan, minkowski, mahalanobis, seuclidean, cosine, correlation, hamming, jaccard, kulsinski.

negative_sample_rate

int (optional, default 5) The number of negative edge/1-simplex samples to use per positive edge/1-simplex sample in optimizing the low dimensional embedding.

init

string (optional, default 'spectral') How to initialize the low dimensional embedding. Options are: 'spectral', 'random', A numpy array of initial embedding positions.

min_dist

float (optional, default 0.1) The effective minimum distance between embedded points. The value should be set relative to the spread value, which determines the scale at which embedded points will be spread out.

random_state

int, RandomState instance or NULL, optional (default: NULL)

verbose

bool (optional, default False) Controls verbosity of logging.

Value

Low dimension embedding


JiekaiLab/SOT documentation built on Jan. 25, 2022, 3:14 p.m.