ConstructMetaspots: ConstructMetaspots

View source: R/Metaspots.R

ConstructMetaspotsR Documentation

ConstructMetaspots

Description

Computes metaspots in a given Seurat object containing spatial transcriptomics data. This function is called by MetaspotsByGroups and should NOT be run directly!

Usage

ConstructMetaspots(
  cur_seurat,
  mode = "sum",
  assay = "Spatial",
  slot = "counts",
  layer = "counts"
)

Arguments

cur_seurat

A Seurat object

mode

"sum" or "average"

assay

Assay to extract data for aggregation. Default = 'Spatial'

slot

Slot to extract data for aggregation. Default = 'counts'

layer

Layer to extract data for aggregation. Default = 'counts'. Layer is used with Seurat v5 instead of slot.


smorabit/scWGCNA documentation built on April 4, 2024, 10:32 a.m.