View source: R/VarID_functions.R
cleanNN | R Documentation |
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)
res |
List object with k nearest neighbour information returned by |
minN |
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. |
no_cores |
Positive integer number. Number of cores for multithreading. If set to |
A res
object with update pvalue entries (pvM
element).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.