Takes the pca-data of the object up to the principal component denoted in argument n_pcs and performs UMAP with it.

runUmap(object, n_pcs = 20, of_sample = NA, ...)

runUmap2(object, n_pcs = 20, of_sample = NA, ...)

Arguments

object

A valid spata-object.

n_pcs

Numeric value. Denotes the number of principal components used. Must be smaller or equal to the number of principal components the pca data.frame contains.

of_sample

This argument is currently inactive. It might be reactivated when spata-objects can store more than one sample.

...

Additional arguments given to umap::umap().

Value

  • runUmap(): An updated spata-object containing the reduction variables in the umap data.frame.

  • runUmap2(): The direct output-object of umap::umap()