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-Lab/MERINGUE documentation built on June 8, 2022, 11:41 p.m.