getBnn: Nearest background neighbor

View source: R/nearestNeighbor.R

getBnnR Documentation

Nearest background neighbor

Description

Identify nearest neighbors in the background cell-type

Usage

getBnn(cct, nct, pos, k)

Arguments

cct

Vector of cell names from cell type of interest

nct

Vector of cell names from background

pos

Position

k

Number of nearest neighbors from background for each cell from cell type of interest

Value

Boolean matrix where value = 1 if two cells are considered adjacency ie. neighbors, else 0


JEFworks/MERingue documentation built on June 11, 2022, 4:16 a.m.