You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/embed.R
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -17,20 +17,20 @@
17
17
18
18
#' Process the cells with SOM into a nice embedding
19
19
#'
20
-
#' @param data Data matrix with points that optionally overrides the one from `fsom$data`.
20
+
#' @param data Data matrix with points that optionally overrides the one from `fsom$data`
21
21
#' @param map Map object in FlowSOM format, to optionally override `fsom$map`
22
22
#' @param fsom FlowSOM object with a built SOM (used if data or map are missing)
23
23
#' @param smooth Produce smoother (positive values) or more rough approximation (negative values).
24
-
#' @param k How many SOM neighbors to take into the whole computation
25
-
#' @param adjust How much non-local information to remove (parameter a)
26
-
#' @param importance Importance of dimensions that was used to train the SOM
27
-
#' @param coords A matrix of embedding-space coordinates that correspond to 'map$codes' (i.e. the "embedded landmarks"). Overrides 'map$grid' if not NULL.
28
-
#' @param coordsFn A coordinates-generating function (e.g. 'EmbedSOM::tSNECoords()') that overrides the existing 'map$grid'.
29
-
#' @param emcoords Provided for backwards compatibility, will be removed. Either a matrix of embedded coordinates (same number of rows as 'map$codes', and either 2 or 3 columns depending on the SOM grid dimension), or one of 'flat' (default behavior), 'som' (adjust the SOM coords according to U-matrix distances), 'mst' (embed to MST-like structure), 'fsom-mst' (embed to MST that should look exactly like that of FlowSOM), 'tsne' (embed using tSNE from package Rtsne), 'umap' (embed using UMAP from package umap) or 'uwot::umap' (embed using UMAP from package uwot)
30
-
#' @param emcoords.pow Provided for backwards compatibility, will be removed. Exaggeration factor (power) of the distances in U-matrix used for some methods of auto-generating emcoords; default 1.
24
+
#' @param k How many neighboring landmarks (e.g. SOM nodes) to take into the whole computation
25
+
#' @param adjust How much non-local information to remove from the approximation
26
+
#' @param importance Scaling of the landmarks, will be used to scale the incoming data (should be same as used for training the SOM or to select the landmarks)
27
+
#' @param coords A matrix of embedding-space coordinates that correspond to `map$codes` (i.e. the "embedded landmarks"). Overrides `map$grid` if not NULL.
28
+
#' @param coordsFn A coordinates-generating function (e.g. [tSNECoords()]) that overrides the existing `map$grid`.
29
+
#' @param emcoords Provided for backwards compatibility, will be removed. Use `coords` and `coordsFn` instead.
30
+
#' @param emcoords.pow Provided for backwards compatibility, will be removed. Use a parametrized `coordsFn` instead.
31
31
#' @param threads Number of threads used for computation, 0 chooses hardware concurrency, 1 (default) turns off parallelization.
32
-
#' @param parallel Boolean flag whether the computation should be parallelized (this flag is just a nice name for 'threads' and does not do anything directly -- default FALSE sets threads=1, TRUE sets threads=0)
33
-
#' @return matrix with 2D or 3D coordinates of the embedded cels, depending on the map
32
+
#' @param parallel Boolean flag whether the computation should be parallelized (this flag is just a nice name for `threads` and does not do anything directly -- default FALSE sets threads=1, TRUE sets threads=0)
33
+
#' @return matrix with 2D or 3D coordinates of the embedded `data`, depending on the `map`
34
34
#'
35
35
#' @examples
36
36
#' d <- cbind(rnorm(10000), 3*runif(10000), rexp(10000))
0 commit comments