knn_neighborhood: k nearest neighbors - niche selection

View source: R/map_assays.R

knn_neighborhoodR Documentation

k nearest neighbors - niche selection

Description

k nearest neighbors - niche selection

Usage

knn_neighborhood(coord, k)

Arguments

coord

data.frame - coordinates of spatial indices in assay

k

int - number of nearest neighbors to select

Value

list containing barcodes of nearest neighbors for each spatial index.


patrickCNMartin/Vesalius documentation built on April 17, 2025, 11:31 p.m.