find_neighbors2 {SC.MEB}R Documentation

find_neighbors2.

Description

find_neighbors2 was used to find the neighborhood of spot.

Usage

find_neighbors2(sce, platform)

Arguments

sce

is a SingleCellExperiment object containing PCA and position informatin.

platform

is the name of spatial transcriptomic platform. Specify 'Visium' for hex lattice geometry or 'ST' for square lattice geometry. Specifying this parameter is optional as this information is included in their metadata.

Details

find_neighbors2 was used to find the neighborhood of spot.

Value

a sparse matrix recording the information of neighborhood.

Examples

data(sce)
platform = "ST"
Adj <- find_neighbors2(sce, platform)

[Package SC.MEB version 1.1 Index]