get_consensus-ConsensusPartition-method: Get consensus matrix

get_consensus-ConsensusPartition-methodR 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(golub_cola)
obj = golub_cola["ATC", "skmeans"]
get_consensus(obj, k = 2)

jokergoo/cola documentation built on Feb. 29, 2024, 1:41 a.m.