getUMAP: Get UMAP data and plot from Seurat object.

View source: R/utility_functions.R

getUMAPR Documentation

Get UMAP data and plot from Seurat object.

Description

Get UMAP data and plot from Seurat object.

Usage

getUMAP(
  object,
  umap.key = "umap",
  node.type = "point",
  meta.features = colnames(object@meta.data),
  size = autoPointSize(ncol(object)),
  ...
)

Arguments

object

Seurat Object.

umap.key

Character UMAP key slot in seurat object. Default is "umap"

node.type

"point" or "text"

meta.features

character vector specifying which meta features to retrieve. Default is 'colnames(object@meta.data)'

...

additional parameters to geom_point or geom_text

Value

list containing UMAP data.frame and ggplot handle

Author(s)

Nicholas Mikolajewicz

Examples


wnnUMAP.list <- getUMAP(so.gene, umap.key = "wnn.umap", node.type = "text")

df.wnn.umap <- wnnUMAP.list$df.umap
plt.wnn.umap <- wnnUMAP.list$plt.umap


NMikolajewicz/scMiko documentation built on June 28, 2023, 1:41 p.m.