Calculate adjacency matrix for regular spatial coordinates from ST or Visium platform.

getAdj_reg(pos, platform= "Visium")

Arguments

pos

is a n-by-d matrix of position, where n is the number of spots, and d is the dimension of coordinates.

platform

a string, specify the platform of the provided data, default as "Visium", and only support "ST" and "Visium" platform.

Value

A sparse matrix containing the neighbourhood.

See also

getAdj_auto, getAdj, getAdj_fixedNumber.