getAdj_reg: Calculate adjacency matrix for regular spatial coordinates.

View source: R/main.R

getAdj_regR Documentation

Calculate adjacency matrix for regular spatial coordinates.

Description

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

Usage

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.


PRECAST documentation built on May 29, 2024, 3 a.m.