getConsMtx: This function calculates an average consensus matrix from a...

View source: R/RcppExports.R

getConsMtxR 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.

Description

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.

Usage

getConsMtx(dat, consMin, n_cores)

Arguments

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.

Value

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.


khazum/ccImpute documentation built on July 26, 2024, 1:13 a.m.