collect_classes-ConsensusPartition-method {cola}R Documentation

Collect classes from ConsensusPartition object

Description

Collect classes from ConsensusPartition object

Usage

## S4 method for signature 'ConsensusPartition'
collect_classes(object, internal = FALSE, show_row_names = FALSE,
    anno = get_anno(object), anno_col = get_anno_col(object))

Arguments

object

a ConsensusPartition-class object.

internal

used internally.

show_row_names

whether show row names in the heatmap (which is the column name in the original matrix).

anno

a data frame of annotations for the original matrix columns. By default it uses the annotations specified in consensus_partition or run_all_consensus_partition_methods.

anno_col

a list of colors (color is defined as a named vector) for the annotations. If anno is a data frame, anno_col should be a named list where names correspond to the column names in anno.

Details

The percent membership matrix and the class IDs for each k are plotted in the heatmaps.

Same row in all heatmaps corresponds to the same column in the original matrix.

Value

No value is returned.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

data(cola_rl)
collect_classes(cola_rl["sd", "kmeans"])

[Package cola version 1.0.0 Index]