addUMAP | R Documentation |
This function will compute a UMAP embedding and add it to an ArchRProject.
addUMAP( ArchRProj = NULL, reducedDims = "IterativeLSI", name = "UMAP", nNeighbors = 40, minDist = 0.4, metric = "cosine", dimsToUse = NULL, scaleDims = NULL, corCutOff = 0.75, sampleCells = NULL, outlierQuantile = 0.9, saveModel = TRUE, verbose = TRUE, seed = 1, force = FALSE, threads = 1, ... )
ArchRProj |
An |
reducedDims |
The name of the |
name |
The name for the UMAP embedding to store in the given |
nNeighbors |
An integer describing the number of nearest neighbors to compute a UMAP. This argument is passed to |
minDist |
A number that determines how tightly the UMAP is allowed to pack points together. This argument is passed to |
metric |
A number that determines how distance is computed in the |
dimsToUse |
A vector containing the dimensions from the |
scaleDims |
A boolean value that indicates whether to z-score the reduced dimensions for each cell. This is useful for minimizing
the contribution of strong biases (dominating early PCs) and lowly abundant populations. However, this may lead to stronger sample-specific
biases since it is over-weighting latent PCs. If set to |
corCutOff |
A numeric cutoff for the correlation of each dimension to the sequencing depth. If the dimension has a correlation to
sequencing depth that is greater than the |
sampleCells |
An integer specifying the number of cells to subsample and perform UMAP Embedding on. The remaining cells that were not subsampled will be re-projected using uwot::umap_transform to the UMAP Embedding. This enables a decrease in run time and memory but can lower the overal quality of the UMAP Embedding. Only recommended for extremely large number of cells. |
outlierQuantile |
A numeric (0 to 1) describing the distance quantile in the subsampled cels (see |
saveModel |
A boolean value indicating whether or not to save the UMAP model in an RDS file for downstream usage such as projection of data into the UMAP embedding. |
verbose |
A boolean value that indicates whether printing UMAP output. |
seed |
A number to be used as the seed for random number generation. It is recommended to keep track of the seed used so that you can reproduce results downstream. |
force |
A boolean value that indicates whether to overwrite the relevant data in the |
threads |
The number of threads to be used for parallel computing. Default set to 1 because if set to high can cause C stack usage errors. |
... |
Additional parameters to pass to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.