test_to_known_factors-HierarchicalPartition-method {cola}R Documentation

Test correspondance between predicted classes and known factors

Description

Test correspondance between predicted classes and known factors

Usage

## S4 method for signature 'HierarchicalPartition'
test_to_known_factors(object, known = get_anno(object[1]),
    depth = 2:max_depth(object), verbose = FALSE)

Arguments

object

a HierarchicalPartition-class object.

depth

depth of the hierarchy.

known

a vector or a data frame with known factors. By default it is the annotation table set in hierarchical_partition.

verbose

whether to print messages.

Details

The function test correlation between classes and known annotations at each node in the hierarchy.

Value

A data frame with columns:

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

data(cola_rh)
test_to_known_factors(cola_rh, known = 1:60)

[Package cola version 1.0.0 Index]