MetaspotsByGroups.Rd
Computes metaspots in a given Seurat object containing spatial transcriptomics data.
MetaspotsByGroups(
seurat_obj,
group.by = c("seurat_clusters"),
ident.group = "seurat_clusters",
assay = "Spatial",
slot = "counts",
layer = "counts",
mode = "sum",
min_spots = 50,
wgcna_name = NULL
)
A character vector of Seurat metadata column names representing groups for which metacells will be computed.
Assay to extract data for aggregation. Default = 'Spatial'
Slot to extract data for aggregation. Default = 'counts'
Layer to extract data for aggregation. Default = 'counts'. Layer is used with Seurat v5 instead of slot.
determines how to make gene expression profiles for metacells from their constituent single cells. Options are "average" or "sum".
the minimum number of spots in a particular grouping to construct metaspots
name of the WGCNA experiment
A Seurat object