Convert a Seurat v5 object as the input of 'SpaTopic'
Source:R/prepare_SpaTopic_input.R
Seurat5obj_to_SpaTopic.Rd
Prepare 'SpaTopic' input from one Seurat v5 object
Arguments
- object
Seurat v5 object
- group.by
character
. The name of the column that contains celltype information in the Seurat object.- image
character
. The name of the image. Default is "image1".
Examples
## nano.obj is a Seurat v5 object
#dataset<-Seurat5obj_to_SpaTopic(object = nano.obj,
# group.by = "predicted.annotation.l1",image = "image1")
## Expect output
data("lung5")