getConsMtx | R Documentation |
This function calculates an average consensus matrix from a set of clustering solutions. It filters out values below a specified minimum threshold ('consMin') and normalizes the remaining non-zero columns to sum to 1.
getConsMtx(dat, consMin, n_cores)
dat |
An integer matrix where each column represents a different clustering solution (cluster assignments for each data point). |
consMin |
The minimum consensus value to retain. Values below this threshold are set to zero. |
n_cores |
The number of cores to use for parallel processing. This can speed up the normalization step. |
A processed consensus matrix where each element (i, j) represents the proportion of times data points i and j were assigned to the same cluster with filtering and normalization applied.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.