Skip to contents

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.