FindNN: Find nearest neighbors

View source: R/seurat_anchor_correction.R

FindNNR Documentation

Find nearest neighbors

Description

Find nearest neighbors

Usage

FindNN(ref_emb, query_emb, k = 300, eps = 0, verbose = FALSE)

Arguments

ref_emb

a (cell x feature) embedding of a protein expression matrix

query_emb

a (cell x feature) embedding of protein expression matrix to be corrected

k

number of nearest neighbor to find between the matrices

eps

error bound on nearest neighbor search (see eps parameter for nn2)

verbose

...

Value

list of nearest neighbor lists: nnab = for each cell in a, its knn in b nnba = for each cell in b, its knn in a nnbb = knn within b, nnaa = knn within a


CamaraLab/STvEA documentation built on April 2, 2024, 6:07 a.m.