Learn R Programming

karyotapR (version 1.0.1)

runUMAP: Cluster matrix data by UMAP

Description

Analyzes matrix data by UMAP and saves results to reducedDims slot of TapestriObject.

Usage

runUMAP(
  TapestriExperiment,
  alt.exp = "alleleFrequency",
  assay = NULL,
  use.pca.dims = TRUE,
  pca.dims = NULL,
  ...
)

Value

TapestriExperiment with UMAP embeddings saved to reducedDims slot of altExp.

Arguments

TapestriExperiment

TapestriExperiment object

alt.exp

Character, altExp to use, NULL uses top-level/main experiment. Default "alleleFrequency".

assay

Character, assay to use. NULL (default) uses first-indexed assay. Not used when use.pca.dims = TRUE.

use.pca.dims

Logical, if TRUE, uses experiment PCA, otherwise uses assay data. Default TRUE.

pca.dims

Numeric, indices of PCs to use in UMAP. Default NULL.

...

Additional parameters to pass to umap::umap(), e.g. for configuration (see umap::umap.defaults()).

Examples

Run this code
tap.object <- newTapestriExperimentExample() # example TapestriExperiment object
tap.object <- runPCA(tap.object, alt.exp = "alleleFrequency")
tap.object <- runUMAP(tap.object, pca.dims = 1:3)

Run the code above in your browser using DataLab