collect_classes-HierarchicalPartition-method {cola}R Documentation

Collect classes from HierarchicalPartition object

Description

Collect classes from HierarchicalPartition object

Usage

## S4 method for signature 'HierarchicalPartition'
collect_classes(object, depth = max_depth(object),
    anno = get_anno(object[1]), anno_col = get_anno_col(object[1]))

Arguments

object

a HierarchicalPartition-class object.

depth

depth of the hierarchy.

anno

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

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 function plots the hierarchy of the classes.

Value

No value is returned.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

data(cola_rh)
collect_classes(cola_rh)
collect_classes(cola_rh, depth = 2)

[Package cola version 1.0.0 Index]