concordance {cola} | R Documentation

## Concordance to the consensus partition

### Description

Concordance to the consensus partition

### Usage

    concordance(membership_each, class)

### Arguments

`membership_each` | A matrix which contains partitions in every single runs where columns correspond to runs.
`class` | Consensus class IDs.

### Details

Note class IDs in `membership_each` should already be adjusted to the consensus class IDs to let `sum(x_single == x_consensus)` reach maximum.

The concordance score is the mean proportion of samples having the same class ID as the consensus class ID among runs.

This function is used internally.

### Value

A numeric value.

### Author(s)

Zuguang Gu <z.gu@dkfz.de>

### Examples

    data(cola_rl)
    membership_each = get_membership(cola_rl["sd", "kmeans"], each = TRUE, k = 3)
    consensus_classes = get_classes(cola_rl["sd", "kmeans"], k = 3)$class
    concordance(membership_each, consensus_classes)

[Package cola version 1.2.1 Index]