get_stats-ConsensusPartition-method {cola}R Documentation

Get statistics for the consensus partition

Description

Get statistics for the consensus partition

Usage

## S4 method for signature 'ConsensusPartition'
get_stats(object, k = object@k)

Arguments

object

a ConsensusPartition-class object.

k

number of partitions. The value can be a vector.

Details

The statistics are:

cophcor

cophenetic correlation coefficient. It measures if hierarchical clustering is applied on the consensus matrix, how good it correlates to the consensus matrix itself.

PAC

proportion of ambiguous clustering, calculated by PAC.

mean_silhouette

the mean silhouette score. See https://en.wikipedia.org/wiki/Silhouette_(clustering) .

concordance

the mean probability that each partition fits the consensus partition, calculated by concordance.

area_increased

the increased area under ECDF (the empirical cumulative distribution function curve) to the previous k.

Rand

the Rand index which is the percent of pairs of samples that are both in a same cluster or both are not in a same cluster in the partition of k and k-1. See https://en.wikipedia.org/wiki/Rand_index .

Jaccard

the ratio of pairs of samples are both in a same cluster in the partition of k and k-1 and the pairs of samples are both in a same cluster in the partition k or k-1.

Value

A matrix of partition statistics.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

data(cola_rl)
obj = cola_rl["sd", "kmeans"]
get_stats(obj)
get_stats(obj, k = 2)

[Package cola version 1.0.0 Index]