find_neighbors2: find_neighbors2.

Description Usage Arguments Details Value Examples

View source: R/find_neighbours.R

Description

find_neighbors2 was used to find the neighborhood of spot.

Usage

1
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

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

SC.MEB documentation built on Oct. 8, 2021, 9:08 a.m.