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.
Value
a sparse matrix recording the information of neighborhood.
Details
find_neighbors2 was used to find the neighborhood of spot.