getMnn: Mutual nearest neighbors

View source: R/nearestNeighbor.R

getMnnR Documentation

Mutual nearest neighbors

Description

Mutual nearest neighbors in space between group A and B based on position

Usage

getMnn(ctA, ctB, pos, k)

Arguments

ctA

vector of cell names in group A

ctB

vector of cell names in group B

pos

Position

k

Number of mutual nearest neighbors

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.