getNN: finds nearest neighbors

Description Usage Arguments

View source: R/initMMDIT.R

Description

finds nearest neighbors

Usage

1
getNN(alldist, knn = 20, maxdist = -1, useIdentityFunction = FALSE)

Arguments

alldist

the output from getAllDistances

knn

the number of nearest neighbors to find (ties broken arbitrarily)

maxdist

if >-1, returns all neighbors within distance <= maxdist (ignores knn argument)

useIdentityFunction

counts the number of amplicons that differ, not the sum of the distances


Ahhgust/MMDIT documentation built on Jan. 27, 2021, 11:48 a.m.