Learn R Programming

SpaTopic (version 1.2.0)

Seurat5obj_to_SpaTopic: Convert a Seurat v5 object as the input of 'SpaTopic'

Description

Prepare 'SpaTopic' input from one Seurat v5 object

Usage

Seurat5obj_to_SpaTopic(object, group.by, image = "image1")

Value

Return a data frame as the input of 'SpaTopic'

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".

See Also

lung5

Examples

Run this code

## 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")

Run the code above in your browser using DataLab