get_classes-ConsensusPartition-method {cola}R Documentation

Get class IDs from the ConsensusPartition object

Description

Get class IDs from the ConsensusPartition object

Usage

## S4 method for signature 'ConsensusPartition'
get_classes(object, k = object@k)

Arguments

object

a ConsensusPartition-class object.

k

number of partitions.

Value

A data frame with class IDs and other columns which are entropy of the percent membership matrix and the silhouette scores which measure the stability of a sample to stay in its group.

If k is not specified, it returns a data frame with class IDs from every k.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

data(cola_rl)
obj = cola_rl["sd", "kmeans"]
get_classes(obj, k = 2)
get_classes(obj)

[Package cola version 1.0.0 Index]