get_consensus-ConsensusPartition-method {cola} | R Documentation

## Get consensus matrix

### Description

Get consensus matrix

### Usage

    ## S4 method for signature 'ConsensusPartition'
    get_consensus(object, k)

### Arguments

`object` | A `ConsensusPartition-class` object.
`k` | Number of subgroups.

### Details

For row i and column j in the consensus matrix, the value of corresponding x_ij is the probability of sample i and sample j being in the same group from all partitions.

### Value

A consensus matrix corresponding to the current k.

### Author(s)

Zuguang Gu <z.gu@dkfz.de>

### Examples

    data(cola_rl)
    obj = cola_rl["SD", "kmeans"]
    get_consensus(obj, k = 2)

[Package cola version 1.4.1 Index]