get_membership-ConsensusPartitionList-method {cola} | R Documentation

## Get membership matrix

### Description

Get membership matrix

### Usage

    ## S4 method for signature 'ConsensusPartitionList'
    get_membership(object, k)

### Arguments

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

### Details

The membership matrix (the probability of each sample to be in one subgroup, if assuming columns represent samples) is inferred from the consensus partition of every combination of methods, weighted by the mean silhouette score of the partition for each method. So methods which give unstable partitions have lower weights when summarizing membership matrix from all methods.

### Value

A membership matrix where rows correspond to the columns in the original matrix.

### Author(s)

Zuguang Gu <z.gu@dkfz.de>

### See Also

`get_membership,ConsensusPartition-method` returns membership matrix for a single top-value method and partitioning method.

### Examples

    data(golub_cola)
    get_membership(golub_cola, k = 2)

[Package cola version 1.8.1 Index]