calcDistance2SpotSet: Calculates distance from each spot to the spot set

View source: R/tissue.in.depth.R

calcDistance2SpotSetR Documentation

Calculates distance from each spot to the spot set

Description

Finds distance to the closest spot from the set and returns it expressed in inter-spot distances

Usage

calcDistance2SpotSet(v, spots, image.name = NULL)

Arguments

v

Seurat visium object

spots

set of spots (character, intereger, or logical index of the spots in v)

image.name

image to use, specify if object contains more than one sample

Value

numeric vector with distances to the nearest spot from set (in interspot distances)


iaaka/visutils documentation built on Jan. 17, 2025, 11:29 p.m.