Learn R Programming

SC.MEB (version 1.1)

find_neighbors2: 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.

Value

a sparse matrix recording the information of neighborhood.

Details

find_neighbors2 was used to find the neighborhood of spot.

Examples

Run this code
# NOT RUN {
data(sce)
platform = "ST"
Adj <- find_neighbors2(sce, platform)
# }

Run the code above in your browser using DataLab