Get class IDs from the HierarchicalPartition object

# S4 method for HierarchicalPartition
get_classes(object, merge_node = merge_node_param())

Arguments

object

A HierarchicalPartition-class object.

merge_node

Parameters to merge sub-dendrograms, see merge_node_param.

Value

A data frame of classes IDs. The class IDs are the node IDs where the subgroup sits in the hierarchy.

Author

Zuguang Gu <z.gu@dkfz.de>

Examples

data(golub_cola_rh)
get_classes(golub_cola_rh)
#> sample_39 sample_40 sample_42 sample_47 sample_48 sample_49 sample_41 sample_43 
#>      "03"      "03"     "013"     "012"     "011"      "03"     "011"     "012" 
#> sample_44 sample_45 sample_46 sample_70 sample_71 sample_72 sample_68 sample_69 
#>     "012"     "012"     "012"     "012"     "013"     "013"     "011"     "011" 
#> sample_67 sample_55 sample_56 sample_59 sample_52 sample_53 sample_51 sample_50 
#>     "013"      "03"      "03"     "012"     "022"     "021"     "021"     "021" 
#> sample_54 sample_57 sample_58 sample_60 sample_61 sample_65 sample_66 sample_63 
#>     "012"     "022"     "022"     "012"     "022"     "022"     "013"     "022" 
#> sample_64 sample_62  sample_1  sample_2  sample_3  sample_4  sample_5  sample_6 
#>     "022"     "022"      "03"     "013"      "03"      "03"     "011"      "03" 
#>  sample_7  sample_8  sample_9 sample_10 sample_11 sample_12 sample_13 sample_14 
#>      "03"      "03"     "013"     "013"     "013"     "021"     "011"     "013" 
#> sample_15 sample_16 sample_17 sample_18 sample_19 sample_20 sample_21 sample_22 
#>     "011"     "012"     "011"     "012"     "012"     "011"     "011"     "021" 
#> sample_23 sample_24 sample_25 sample_26 sample_27 sample_34 sample_35 sample_36 
#>      "03"     "011"     "021"     "012"      "03"     "022"     "022"     "021" 
#> sample_37 sample_38 sample_28 sample_29 sample_30 sample_31 sample_32 sample_33 
#>     "021"     "021"     "021"     "013"     "021"     "022"     "021"     "021"