This function compares the neighborhood of a cell with the neighorhoods of all of its k nearest neighors and prunes links to neighbors that do not co-occur in a defined minimum number of neighborhoods by setting their link p-value (entry in pvM
data.frame of res
input object) to 0.
cleanNN(res, minN = 2, no_cores = NULL)
A res
object with update pvalue entries (pvM
element).
List object with k nearest neighbour information returned by pruneKnn
function.
Positive integer number. Minimum of neighborhoods across the k nearest neighbours of a cell expected to share a neighbor with the cell. Default is 2.
Positive integer number. Number of cores for multithreading. If set to NULL
then the number of available cores minus two is used. Default is NULL
.