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 partitions.

Details

The membership matrix (the probability of each sample to be in one group, 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 instable 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 partition method.

Examples

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

[Package cola version 1.0.1 Index]