Skip to contents

This function identifies conserved spatial ecotypes based on cell type specific gene expression signature of spatial clusters from all samples.

Usage

Integrate(
  avgexprs,
  Region = NULL,
  nfeatures = 3000,
  min.features = 5,
  minibatch = 5000,
  ncores = 1
)

Arguments

avgexprs

Gene expression signature of spatial clusters, where each column represents a spatial cluster.

Region

A character vector specifying the region annotations for all spatial clusters.

nfeatures

Integer specifying the maximum number of top variable genes to select for each cell type.

min.features

Integer specifying the minimum number of shared features (genes) required across samples.

minibatch

Integer specifying the number of columns to process in each minibatch in the SNF analysis. Default is 5000. This option splits the matrix into smaller chunks (minibatch), thus reducing memory usage.

ncores

Integer specifying the number of cores for parallel processing. Default is 1.

Value

Integrated similarity matrix of spatial clusters across all samples.