cola Report for Hierarchical Partitioning - 'TCGA_ESCA_methylation'

Date: 2021-07-22 16:26:36 CEST, cola version: 1.9.4

Document is loading...


Summary

First the variable is renamed to res_rh.

res_rh = rh

The partition hierarchy and all available functions which can be applied to res_rh object.

res_rh
#> A 'HierarchicalPartition' object with 4 combinations of top-value methods and partitioning methods.
#>   On a matrix with 376149 rows and 202 columns.
#>   Performed in total 63000 partitions.
#>   There are 31 groups under the following parameters:
#>     - min_samples: 6
#>     - mean_silhouette_cutoff: 0.9
#>     - min_n_signatures: 1000 (signatures are selected based on:)
#>       - fdr_cutoff: 0.05
#>       - group_diff: 0.25
#> 
#> Hierarchy of the partition:
#>   0, 202 cols
#>   |-- 01, 71 cols, 18356 signatures
#>   |   |-- 011, 28 cols, 9255 signatures
#>   |   |   |-- 0111, 9 cols (b)
#>   |   |   |-- 0112, 11 cols (b)
#>   |   |   `-- 0113, 8 cols (b)
#>   |   |-- 012, 20 cols, 1449 signatures
#>   |   |   |-- 0121, 10 cols (b)
#>   |   |   |-- 0122, 5 cols (b)
#>   |   |   `-- 0123, 5 cols (b)
#>   |   `-- 013, 23 cols, 3489 signatures
#>   |       |-- 0131, 8 cols (b)
#>   |       |-- 0132, 7 cols (b)
#>   |       `-- 0133, 8 cols (b)
#>   |-- 02, 75 cols, 16138 signatures
#>   |   |-- 021, 15 cols, 10873 signatures
#>   |   |   |-- 0211, 6 cols (b)
#>   |   |   `-- 0212, 9 cols (b)
#>   |   |-- 022, 46 cols, 13097 signatures
#>   |   |   |-- 0221, 14 cols, 486 signatures (c)
#>   |   |   |-- 0222, 25 cols, 3429 signatures
#>   |   |   |   |-- 02221, 12 cols, 1432 signatures
#>   |   |   |   |   |-- 022211, 8 cols (b)
#>   |   |   |   |   `-- 022212, 4 cols (b)
#>   |   |   |   |-- 02222, 8 cols (b)
#>   |   |   |   `-- 02223, 5 cols (b)
#>   |   |   `-- 0223, 7 cols (b)
#>   |   `-- 023, 14 cols, 2070 signatures
#>   |       |-- 0231, 7 cols (b)
#>   |       |-- 0232, 4 cols (b)
#>   |       `-- 0233, 3 cols (b)
#>   |-- 03, 20 cols, 34722 signatures
#>   |   |-- 031, 5 cols (b)
#>   |   |-- 032, 5 cols (b)
#>   |   |-- 033, 4 cols (b)
#>   |   |-- 034, 4 cols (b)
#>   |   `-- 035, 2 cols (b)
#>   |-- 04, 14 cols, 4028 signatures
#>   |   |-- 041, 4 cols (b)
#>   |   |-- 042, 6 cols (b)
#>   |   `-- 043, 4 cols (b)
#>   `-- 05, 22 cols, 37386 signatures
#>       |-- 051, 8 cols (b)
#>       |-- 052, 8 cols (b)
#>       `-- 053, 6 cols (b)
#> Stop reason:
#>   b) Subgroup had too few columns.
#>   c) There were too few signatures.
#> 
#> Following methods can be applied to this 'HierarchicalPartition' object:
#>  [1] "all_leaves"            "all_nodes"             "cola_report"           "collect_classes"      
#>  [5] "colnames"              "compare_signatures"    "dimension_reduction"   "functional_enrichment"
#>  [9] "get_anno_col"          "get_anno"              "get_children_nodes"    "get_classes"          
#> [13] "get_matrix"            "get_signatures"        "is_leaf_node"          "max_depth"            
#> [17] "merge_node"            "ncol"                  "node_info"             "node_level"           
#> [21] "nrow"                  "rownames"              "show"                  "split_node"           
#> [25] "suggest_best_k"        "test_to_known_factors" "top_rows_heatmap"      "top_rows_overlap"     
#> 
#> You can get result for a single node by e.g. object["01"]

The call of hierarchical_partition() was:

#> hierarchical_partition(data = mat, top_n = 1000, top_value_method = c("SD", "ATC"), 
#>     partition_method = c("kmeans", "skmeans"), subset = 500, group_diff = 0.25, min_n_signatures = 1000, 
#>     filter_fun = function(mat) {
#>         s = rowSds(mat)
#>         order(-s)[1:30000]
#>     }, max_k = 8, scale_rows = FALSE, cores = 4)

Dimension of the input matrix:

mat = get_matrix(res_rh)
dim(mat)
#> [1] 376149    202

All the methods that were tried:

res_rh@param$combination_method
#> [[1]]
#> [1] "SD"     "kmeans"
#> 
#> [[2]]
#> [1] "ATC"    "kmeans"
#> 
#> [[3]]
#> [1] "SD"      "skmeans"
#> 
#> [[4]]
#> [1] "ATC"     "skmeans"

Density distribution

The density distribution for each sample is visualized as one column in the following heatmap. The clustering is based on the distance which is the Kolmogorov-Smirnov statistic between two distributions.

library(ComplexHeatmap)
densityHeatmap(mat, ylab = "value", cluster_columns = TRUE, show_column_names = FALSE,
    mc.cores = 1)

plot of chunk density-heatmap

Some values about the hierarchy:

all_nodes(res_rh)
#>  [1] "0"      "01"     "011"    "0111"   "0112"   "0113"   "012"    "0121"   "0122"   "0123"  
#> [11] "013"    "0131"   "0132"   "0133"   "02"     "021"    "0211"   "0212"   "022"    "0221"  
#> [21] "0222"   "02221"  "022211" "022212" "02222"  "02223"  "0223"   "023"    "0231"   "0232"  
#> [31] "0233"   "03"     "031"    "032"    "033"    "034"    "035"    "04"     "041"    "042"   
#> [41] "043"    "05"     "051"    "052"    "053"
all_leaves(res_rh)
#>  [1] "0111"   "0112"   "0113"   "0121"   "0122"   "0123"   "0131"   "0132"   "0133"   "0211"  
#> [11] "0212"   "0221"   "022211" "022212" "02222"  "02223"  "0223"   "0231"   "0232"   "0233"  
#> [21] "031"    "032"    "033"    "034"    "035"    "041"    "042"    "043"    "051"    "052"   
#> [31] "053"
node_info(res_rh)
#>        id best_method depth best_k n_columns n_signatures p_signatures is_leaf
#> 1       0  SD:skmeans     1      5       202        67663      0.17988   FALSE
#> 2      01  ATC:kmeans     2      3        71        18356      0.04880   FALSE
#> 3     011  ATC:kmeans     3      3        28         9255      0.02460   FALSE
#> 4    0111 not applied     4     NA         9           NA           NA    TRUE
#> 5    0112 not applied     4     NA        11           NA           NA    TRUE
#> 6    0113 not applied     4     NA         8           NA           NA    TRUE
#> 7     012  ATC:kmeans     3      3        20         1449      0.00385   FALSE
#> 8    0121 not applied     4     NA        10           NA           NA    TRUE
#> 9    0122 not applied     4     NA         5           NA           NA    TRUE
#> 10   0123 not applied     4     NA         5           NA           NA    TRUE
#> 11    013  ATC:kmeans     3      3        23         3489      0.00928   FALSE
#> 12   0131 not applied     4     NA         8           NA           NA    TRUE
#> 13   0132 not applied     4     NA         7           NA           NA    TRUE
#> 14   0133 not applied     4     NA         8           NA           NA    TRUE
#> 15     02 ATC:skmeans     2      3        75        16138      0.04290   FALSE
#> 16    021  ATC:kmeans     3      2        15        10873      0.02891   FALSE
#> 17   0211 not applied     4     NA         6           NA           NA    TRUE
#> 18   0212 not applied     4     NA         9           NA           NA    TRUE
#> 19    022  ATC:kmeans     3      3        46        13097      0.03482   FALSE
#> 20   0221 ATC:skmeans     4      3        14          486      0.00129    TRUE
#> 21   0222  ATC:kmeans     4      3        25         3429      0.00912   FALSE
#> 22  02221  ATC:kmeans     5      2        12         1432      0.00381   FALSE
#> 23 022211 not applied     6     NA         8           NA           NA    TRUE
#> 24 022212 not applied     6     NA         4           NA           NA    TRUE
#> 25  02222 not applied     5     NA         8           NA           NA    TRUE
#> 26  02223 not applied     5     NA         5           NA           NA    TRUE
#> 27   0223 not applied     4     NA         7           NA           NA    TRUE
#> 28    023  ATC:kmeans     3      3        14         2070      0.00550   FALSE
#> 29   0231 not applied     4     NA         7           NA           NA    TRUE
#> 30   0232 not applied     4     NA         4           NA           NA    TRUE
#> 31   0233 not applied     4     NA         3           NA           NA    TRUE
#> 32     03  SD:skmeans     2      5        20        34722      0.09231   FALSE
#> 33    031 not applied     3     NA         5           NA           NA    TRUE
#> 34    032 not applied     3     NA         5           NA           NA    TRUE
#> 35    033 not applied     3     NA         4           NA           NA    TRUE
#> 36    034 not applied     3     NA         4           NA           NA    TRUE
#> 37    035 not applied     3     NA         2           NA           NA    TRUE
#> 38     04  ATC:kmeans     2      3        14         4028      0.01071   FALSE
#> 39    041 not applied     3     NA         4           NA           NA    TRUE
#> 40    042 not applied     3     NA         6           NA           NA    TRUE
#> 41    043 not applied     3     NA         4           NA           NA    TRUE
#> 42     05  ATC:kmeans     2      3        22        37386      0.09939   FALSE
#> 43    051 not applied     3     NA         8           NA           NA    TRUE
#> 44    052 not applied     3     NA         8           NA           NA    TRUE
#> 45    053 not applied     3     NA         6           NA           NA    TRUE

In the output from node_info(), there are the following columns:

Labels of nodes are encoded in a special way. The number of digits correspond to the depth of the node in the hierarchy and the value of the digits correspond to the index of the subgroup in the current node, E.g. a label of “012” means the node is the second subgroup of the partition which is the first subgroup of the root node.

Suggest the best k

Following table shows the best k (number of partitions) for each node in the partition hierarchy. Clicking on the node name in the table goes to the corresponding section for the partitioning on that node.

The cola vignette explains the definition of the metrics used for determining the best number of partitions.

suggest_best_k(res_rh)
Node Best method Is leaf Best k 1-PAC Mean silhouette Concordance #samples
Node0 SD:skmeans 5 1.00 0.95 0.98 202 **
Node01 ATC:kmeans 3 1.00 0.96 0.98 71 **
Node011 ATC:kmeans 5 0.90 0.92 0.91 28 *
Node0111-leaf not applied ✓ (b) 9
Node0112-leaf not applied ✓ (b) 11
Node0113-leaf not applied ✓ (b) 8
Node012 ATC:kmeans 3 1.00 0.99 0.99 20 **
Node0121-leaf not applied ✓ (b) 10
Node0122-leaf not applied ✓ (b) 5
Node0123-leaf not applied ✓ (b) 5
Node013 ATC:kmeans 3 1.00 0.95 0.98 23 **
Node0131-leaf not applied ✓ (b) 8
Node0132-leaf not applied ✓ (b) 7
Node0133-leaf not applied ✓ (b) 8
Node02 ATC:skmeans 3 0.96 0.95 0.98 75 **
Node021 ATC:kmeans 2 1.00 1.00 1.00 15 **
Node0211-leaf not applied ✓ (b) 6
Node0212-leaf not applied ✓ (b) 9
Node022 ATC:kmeans 3 1.00 0.97 0.99 46 **
Node0221-leaf ATC:skmeans ✓ (c) 5 0.91 0.78 0.94 14 *
Node0222 ATC:kmeans 3 1.00 0.95 0.98 25 **
Node02221 ATC:kmeans 5 0.91 0.80 0.95 12 *
Node022211-leaf not applied ✓ (b) 8
Node022212-leaf not applied ✓ (b) 4
Node02222-leaf not applied ✓ (b) 8
Node02223-leaf not applied ✓ (b) 5
Node0223-leaf not applied ✓ (b) 7
Node023 ATC:kmeans 3 1.00 1.00 1.00 14 **
Node0231-leaf not applied ✓ (b) 7
Node0232-leaf not applied ✓ (b) 4
Node0233-leaf not applied ✓ (b) 3
Node03 SD:skmeans 5 0.93 0.97 0.97 20 *
Node031-leaf not applied ✓ (b) 5
Node032-leaf not applied ✓ (b) 5
Node033-leaf not applied ✓ (b) 4
Node034-leaf not applied ✓ (b) 4
Node035-leaf not applied ✓ (b) 2
Node04 ATC:kmeans 3 1.00 1.00 1.00 14 **
Node041-leaf not applied ✓ (b) 4
Node042-leaf not applied ✓ (b) 6
Node043-leaf not applied ✓ (b) 4
Node05 ATC:kmeans 3 1.00 0.99 0.99 22 **
Node051-leaf not applied ✓ (b) 8
Node052-leaf not applied ✓ (b) 8
Node053-leaf not applied ✓ (b) 6

Stop reason: b) Subgroup had too few columns. c) There were too few signatures.

**: 1-PAC > 0.95, *: 1-PAC > 0.9

Partition hierarchy

The nodes of the hierarchy can be merged by setting the merge_node parameters. Here we control the hierarchy with the min_n_signatures parameter. The value of min_n_signatures is from node_info().

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 1432))

plot of chunk tab-collect-classes-from-hierarchical-partition-1

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 1449))

plot of chunk tab-collect-classes-from-hierarchical-partition-2

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 2070))

plot of chunk tab-collect-classes-from-hierarchical-partition-3

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 3429))

plot of chunk tab-collect-classes-from-hierarchical-partition-4

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 3489))

plot of chunk tab-collect-classes-from-hierarchical-partition-5

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 4028))

plot of chunk tab-collect-classes-from-hierarchical-partition-6

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 9255))

plot of chunk tab-collect-classes-from-hierarchical-partition-7

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 10873))

plot of chunk tab-collect-classes-from-hierarchical-partition-8

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 13097))

plot of chunk tab-collect-classes-from-hierarchical-partition-9

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 16138))

plot of chunk tab-collect-classes-from-hierarchical-partition-10

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 18356))

plot of chunk tab-collect-classes-from-hierarchical-partition-11

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 34722))

plot of chunk tab-collect-classes-from-hierarchical-partition-12

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 37386))

plot of chunk tab-collect-classes-from-hierarchical-partition-13

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 67663))

plot of chunk tab-collect-classes-from-hierarchical-partition-14

Following shows the table of the partitions (You need to click the show/hide code output link to see it).

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 1432))
#> TCGA.JY.A6FB.01 TCGA.LN.A49L.01 TCGA.LN.A4A4.01 TCGA.LN.A49M.01 TCGA.Q9.A6FW.01 TCGA.Z6.AAPN.01 
#>          "0221"           "053"          "0122"           "051"          "0223"           "032" 
#> TCGA.Q9.A6FU.01 TCGA.L5.A43C.11 TCGA.S8.A6BW.01 TCGA.S8.A6BV.01 TCGA.V5.A7RC.01 TCGA.VR.A8ET.01 
#>          "0112"           "031"          "0133"          "0223"          "0131"           "032" 
#> TCGA.LN.A4A3.01 TCGA.L5.A4OH.11 TCGA.LN.A49X.01 TCGA.L5.A4OI.01 TCGA.LN.A7HV.01 TCGA.R6.A6DN.01 
#>          "0113"           "031"          "0113"          "0221"          "0121"         "02222" 
#> TCGA.IG.A3YB.01 TCGA.IG.A3YC.01 TCGA.L5.A4OE.11 TCGA.L5.A4OG.01 TCGA.KH.A6WC.01 TCGA.L7.A56G.01 
#>           "053"          "0113"           "031"         "02223"          "0132"          "0132" 
#> TCGA.IG.A51D.01 TCGA.VR.A8EP.01 TCGA.L5.A88T.01 TCGA.L5.A4ON.11 TCGA.L5.A43J.01 TCGA.L5.A43E.01 
#>           "052"          "0121"           "035"           "032"           "053"          "0221" 
#> TCGA.X8.AAAR.01 TCGA.JY.A6FE.01 TCGA.LN.A49N.01 TCGA.L5.A4ON.01 TCGA.V5.AASW.01 TCGA.L5.A43I.01 
#>          "0223"          "0121"          "0112"          "0221"          "0221"          "0231" 
#> TCGA.L5.A4OF.01 TCGA.L5.A4OQ.11 TCGA.IG.A3I8.01 TCGA.VR.AA7B.01 TCGA.L5.A4OJ.01 TCGA.IG.A3Y9.01 
#>          "0211"           "032"           "052"          "0112"          "0221"          "0113" 
#> TCGA.L5.A4OM.01 TCGA.LN.A4A6.01 TCGA.LN.A49V.01 TCGA.L5.A4OH.01 TCGA.L5.A4OI.11 TCGA.LN.A49R.01 
#>          "0122"          "0121"           "053"          "0233"           "031"          "0122" 
#> TCGA.LN.A49K.01 TCGA.IG.A4QT.01 TCGA.R6.A6L4.01 TCGA.L7.A6VZ.01 TCGA.LN.A49U.01 TCGA.L5.A4OF.11 
#>          "0131"           "032"          "0212"          "0221"          "0123"           "031" 
#> TCGA.LN.A7HX.01 TCGA.L5.A4OO.01 TCGA.LN.A4A8.01 TCGA.JY.A6FG.01 TCGA.L5.A4OJ.11 TCGA.LN.A5U7.01 
#>          "0123"          "0212"          "0121"           "051"           "033"          "0111" 
#> TCGA.V5.A7RC.06 TCGA.IG.A625.01 TCGA.L5.A4OP.01 TCGA.IG.A4P3.01 TCGA.LN.A49Y.01 TCGA.L5.A43C.01 
#>          "0131"          "0111"          "0232"          "0132"          "0121"          "0212" 
#> TCGA.L5.A88W.01 TCGA.L5.A43H.01 TCGA.L5.A4OE.01 TCGA.IG.A50L.01 TCGA.LN.A7HY.01 TCGA.R6.A6KZ.01 
#>           "051"          "0133"        "022212"          "0112"          "0132"          "0211" 
#> TCGA.LN.A49P.01 TCGA.L5.A4OM.11 TCGA.LN.A4A1.01 TCGA.LN.A49O.01 TCGA.LN.A4A5.01 TCGA.LN.A49W.01 
#>          "0133"           "033"          "0123"          "0112"           "053"          "0132" 
#> TCGA.L5.A4OR.01 TCGA.L5.A43M.01 TCGA.L5.A4OP.11 TCGA.V5.A7RE.01 TCGA.VR.AA7I.01 TCGA.IG.A3YA.01 
#>          "0231"           "041"           "033"          "0231"           "052"          "0113" 
#> TCGA.V5.A7RE.11 TCGA.LN.A7HZ.01 TCGA.VR.AA7D.01 TCGA.V5.A7RB.01 TCGA.L5.A4OQ.01 TCGA.IG.A3QL.01 
#>          "0231"          "0111"           "052"          "0223"           "042"          "0111" 
#> TCGA.R6.A6DQ.01 TCGA.IG.A3I8.11 TCGA.LN.A4A2.01 TCGA.IC.A6RF.01 TCGA.LN.A49S.01 TCGA.IG.A4QS.01 
#>         "02223"           "034"          "0111"           "051"          "0121"          "0231" 
#> TCGA.L5.A4OG.11 TCGA.L5.A88Y.01 TCGA.L5.A88V.01 TCGA.LN.A7HW.01 TCGA.IG.A8O2.01 TCGA.IG.A7DP.01 
#>           "033"        "022212"          "0223"          "0131"          "0123"           "034" 
#> TCGA.L5.A8NQ.01 TCGA.LN.A8I0.01 TCGA.JY.A93F.01 TCGA.M9.A5M8.01 TCGA.L5.A4OW.01 TCGA.2H.A9GK.01 
#>          "0113"          "0111"           "051"         "02223"        "022212"         "02223" 
#> TCGA.L5.A8NW.01 TCGA.R6.A8W5.01 TCGA.L5.A8NH.01 TCGA.2H.A9GR.01 TCGA.L5.A8NV.01 TCGA.XP.A8T8.01 
#>         "02222"           "042"          "0231"        "022211"        "022211"          "0111" 
#> TCGA.L5.A88Z.01 TCGA.IG.A5B8.01 TCGA.R6.A6XG.01 TCGA.L5.A8NN.01 TCGA.LN.A9FP.01 TCGA.LN.A4MR.01 
#>           "053"          "0121"          "0232"          "0211"           "034"          "0121" 
#> TCGA.L5.A8NS.01 TCGA.LN.A4MQ.01 TCGA.LN.A4A9.01 TCGA.VR.A8EX.01 TCGA.JY.A938.01 TCGA.JY.A6FA.01 
#>        "022211"          "0131"          "0121"          "0112"          "0223"          "0122" 
#> TCGA.R6.A8WG.01 TCGA.VR.A8EO.01 TCGA.VR.A8EU.01 TCGA.R6.A6L6.01 TCGA.L5.A8NE.01 TCGA.V5.AASX.11 
#>          "0211"          "0122"          "0112"          "0212"           "042"          "0221" 
#> TCGA.LN.A8I1.01 TCGA.L5.A893.01 TCGA.IC.A6RF.11 TCGA.L5.A8NU.01 TCGA.R6.A6XQ.01 TCGA.LN.A5U5.01 
#>          "0133"        "022212"           "051"          "0212"          "0211"          "0133" 
#> TCGA.Z6.A8JD.01 TCGA.L5.A4OT.01 TCGA.ZR.A9CJ.01 TCGA.Z6.A8JE.01 TCGA.JY.A6FH.01 TCGA.XP.A8T6.01 
#>          "0113"          "0221"          "0212"           "052"           "042"          "0123" 
#> TCGA.R6.A8W8.01 TCGA.JY.A93E.01 TCGA.2H.A9GI.01 TCGA.IG.A6QS.01 TCGA.VR.A8Q7.01 TCGA.R6.A6Y0.01 
#>          "0233"        "022211"         "02222"           "052"           "043"           "042" 
#> TCGA.VR.A8EZ.01 TCGA.2H.A9GL.01 TCGA.LN.A8HZ.01 TCGA.L5.A891.01 TCGA.L5.A8NM.01 TCGA.JY.A93D.01 
#>          "0131"         "02222"          "0111"           "043"        "022211"          "0212" 
#> TCGA.XP.A8T7.01 TCGA.L5.A4OX.01 TCGA.R6.A6Y2.01 TCGA.2H.A9GF.01 TCGA.2H.A9GO.01 TCGA.L5.A8NR.01 
#>           "052"         "02222"          "0212"          "0232"          "0211"         "02222" 
#> TCGA.L5.A88S.01 TCGA.VR.A8EW.01 TCGA.VR.A8ER.01 TCGA.L5.A4OU.01 TCGA.JY.A93C.01 TCGA.V5.AASX.01 
#>          "0113"          "0111"          "0131"          "0223"         "02222"        "022211" 
#> TCGA.IG.A97H.01 TCGA.L5.A8NT.01 TCGA.R6.A8WC.01 TCGA.2H.A9GJ.01 TCGA.VR.AA4G.01 TCGA.JY.A6FD.01 
#>          "0133"         "02222"          "0221"           "043"          "0112"          "0112" 
#> TCGA.2H.A9GN.01 TCGA.VR.AA4D.01 TCGA.IG.A97I.01 TCGA.2H.A9GM.01 TCGA.L5.A8NG.01 TCGA.IG.A5S3.01 
#>           "041"          "0232"          "0133"          "0231"        "022211"          "0132" 
#> TCGA.IC.A6RE.11 TCGA.IC.A6RE.01 TCGA.2H.A9GG.01 TCGA.LN.A5U6.01 TCGA.LN.A9FQ.01 TCGA.L5.A8NK.01 
#>           "035"          "0233"           "041"          "0133"          "0131"          "0112" 
#> TCGA.L5.A4OS.01 TCGA.RE.A7BO.01 TCGA.LN.A9FO.01 TCGA.L5.A8NJ.01 TCGA.JY.A939.01 TCGA.VR.A8EY.01 
#>           "034"          "0221"          "0112"          "0221"          "0212"           "051" 
#> TCGA.Z6.A9VB.01 TCGA.V5.AASV.01 TCGA.LN.A9FR.01 TCGA.JY.A6F8.01 TCGA.VR.A8EQ.01 TCGA.2H.A9GQ.01 
#>           "052"           "051"          "0132"          "0221"         "02223"           "043" 
#> TCGA.L5.A8NL.01 TCGA.2H.A9GH.01 TCGA.L5.A8NF.01 TCGA.L5.A8NI.01 
#>        "022211"          "0221"           "042"           "041"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 1449))
#> TCGA.JY.A6FB.01 TCGA.LN.A49L.01 TCGA.LN.A4A4.01 TCGA.LN.A49M.01 TCGA.Q9.A6FW.01 TCGA.Z6.AAPN.01 
#>          "0221"           "053"          "0122"           "051"          "0223"           "032" 
#> TCGA.Q9.A6FU.01 TCGA.L5.A43C.11 TCGA.S8.A6BW.01 TCGA.S8.A6BV.01 TCGA.V5.A7RC.01 TCGA.VR.A8ET.01 
#>          "0112"           "031"          "0133"          "0223"          "0131"           "032" 
#> TCGA.LN.A4A3.01 TCGA.L5.A4OH.11 TCGA.LN.A49X.01 TCGA.L5.A4OI.01 TCGA.LN.A7HV.01 TCGA.R6.A6DN.01 
#>          "0113"           "031"          "0113"          "0221"          "0121"         "02222" 
#> TCGA.IG.A3YB.01 TCGA.IG.A3YC.01 TCGA.L5.A4OE.11 TCGA.L5.A4OG.01 TCGA.KH.A6WC.01 TCGA.L7.A56G.01 
#>           "053"          "0113"           "031"         "02223"          "0132"          "0132" 
#> TCGA.IG.A51D.01 TCGA.VR.A8EP.01 TCGA.L5.A88T.01 TCGA.L5.A4ON.11 TCGA.L5.A43J.01 TCGA.L5.A43E.01 
#>           "052"          "0121"           "035"           "032"           "053"          "0221" 
#> TCGA.X8.AAAR.01 TCGA.JY.A6FE.01 TCGA.LN.A49N.01 TCGA.L5.A4ON.01 TCGA.V5.AASW.01 TCGA.L5.A43I.01 
#>          "0223"          "0121"          "0112"          "0221"          "0221"          "0231" 
#> TCGA.L5.A4OF.01 TCGA.L5.A4OQ.11 TCGA.IG.A3I8.01 TCGA.VR.AA7B.01 TCGA.L5.A4OJ.01 TCGA.IG.A3Y9.01 
#>          "0211"           "032"           "052"          "0112"          "0221"          "0113" 
#> TCGA.L5.A4OM.01 TCGA.LN.A4A6.01 TCGA.LN.A49V.01 TCGA.L5.A4OH.01 TCGA.L5.A4OI.11 TCGA.LN.A49R.01 
#>          "0122"          "0121"           "053"          "0233"           "031"          "0122" 
#> TCGA.LN.A49K.01 TCGA.IG.A4QT.01 TCGA.R6.A6L4.01 TCGA.L7.A6VZ.01 TCGA.LN.A49U.01 TCGA.L5.A4OF.11 
#>          "0131"           "032"          "0212"          "0221"          "0123"           "031" 
#> TCGA.LN.A7HX.01 TCGA.L5.A4OO.01 TCGA.LN.A4A8.01 TCGA.JY.A6FG.01 TCGA.L5.A4OJ.11 TCGA.LN.A5U7.01 
#>          "0123"          "0212"          "0121"           "051"           "033"          "0111" 
#> TCGA.V5.A7RC.06 TCGA.IG.A625.01 TCGA.L5.A4OP.01 TCGA.IG.A4P3.01 TCGA.LN.A49Y.01 TCGA.L5.A43C.01 
#>          "0131"          "0111"          "0232"          "0132"          "0121"          "0212" 
#> TCGA.L5.A88W.01 TCGA.L5.A43H.01 TCGA.L5.A4OE.01 TCGA.IG.A50L.01 TCGA.LN.A7HY.01 TCGA.R6.A6KZ.01 
#>           "051"          "0133"         "02221"          "0112"          "0132"          "0211" 
#> TCGA.LN.A49P.01 TCGA.L5.A4OM.11 TCGA.LN.A4A1.01 TCGA.LN.A49O.01 TCGA.LN.A4A5.01 TCGA.LN.A49W.01 
#>          "0133"           "033"          "0123"          "0112"           "053"          "0132" 
#> TCGA.L5.A4OR.01 TCGA.L5.A43M.01 TCGA.L5.A4OP.11 TCGA.V5.A7RE.01 TCGA.VR.AA7I.01 TCGA.IG.A3YA.01 
#>          "0231"           "041"           "033"          "0231"           "052"          "0113" 
#> TCGA.V5.A7RE.11 TCGA.LN.A7HZ.01 TCGA.VR.AA7D.01 TCGA.V5.A7RB.01 TCGA.L5.A4OQ.01 TCGA.IG.A3QL.01 
#>          "0231"          "0111"           "052"          "0223"           "042"          "0111" 
#> TCGA.R6.A6DQ.01 TCGA.IG.A3I8.11 TCGA.LN.A4A2.01 TCGA.IC.A6RF.01 TCGA.LN.A49S.01 TCGA.IG.A4QS.01 
#>         "02223"           "034"          "0111"           "051"          "0121"          "0231" 
#> TCGA.L5.A4OG.11 TCGA.L5.A88Y.01 TCGA.L5.A88V.01 TCGA.LN.A7HW.01 TCGA.IG.A8O2.01 TCGA.IG.A7DP.01 
#>           "033"         "02221"          "0223"          "0131"          "0123"           "034" 
#> TCGA.L5.A8NQ.01 TCGA.LN.A8I0.01 TCGA.JY.A93F.01 TCGA.M9.A5M8.01 TCGA.L5.A4OW.01 TCGA.2H.A9GK.01 
#>          "0113"          "0111"           "051"         "02223"         "02221"         "02223" 
#> TCGA.L5.A8NW.01 TCGA.R6.A8W5.01 TCGA.L5.A8NH.01 TCGA.2H.A9GR.01 TCGA.L5.A8NV.01 TCGA.XP.A8T8.01 
#>         "02222"           "042"          "0231"         "02221"         "02221"          "0111" 
#> TCGA.L5.A88Z.01 TCGA.IG.A5B8.01 TCGA.R6.A6XG.01 TCGA.L5.A8NN.01 TCGA.LN.A9FP.01 TCGA.LN.A4MR.01 
#>           "053"          "0121"          "0232"          "0211"           "034"          "0121" 
#> TCGA.L5.A8NS.01 TCGA.LN.A4MQ.01 TCGA.LN.A4A9.01 TCGA.VR.A8EX.01 TCGA.JY.A938.01 TCGA.JY.A6FA.01 
#>         "02221"          "0131"          "0121"          "0112"          "0223"          "0122" 
#> TCGA.R6.A8WG.01 TCGA.VR.A8EO.01 TCGA.VR.A8EU.01 TCGA.R6.A6L6.01 TCGA.L5.A8NE.01 TCGA.V5.AASX.11 
#>          "0211"          "0122"          "0112"          "0212"           "042"          "0221" 
#> TCGA.LN.A8I1.01 TCGA.L5.A893.01 TCGA.IC.A6RF.11 TCGA.L5.A8NU.01 TCGA.R6.A6XQ.01 TCGA.LN.A5U5.01 
#>          "0133"         "02221"           "051"          "0212"          "0211"          "0133" 
#> TCGA.Z6.A8JD.01 TCGA.L5.A4OT.01 TCGA.ZR.A9CJ.01 TCGA.Z6.A8JE.01 TCGA.JY.A6FH.01 TCGA.XP.A8T6.01 
#>          "0113"          "0221"          "0212"           "052"           "042"          "0123" 
#> TCGA.R6.A8W8.01 TCGA.JY.A93E.01 TCGA.2H.A9GI.01 TCGA.IG.A6QS.01 TCGA.VR.A8Q7.01 TCGA.R6.A6Y0.01 
#>          "0233"         "02221"         "02222"           "052"           "043"           "042" 
#> TCGA.VR.A8EZ.01 TCGA.2H.A9GL.01 TCGA.LN.A8HZ.01 TCGA.L5.A891.01 TCGA.L5.A8NM.01 TCGA.JY.A93D.01 
#>          "0131"         "02222"          "0111"           "043"         "02221"          "0212" 
#> TCGA.XP.A8T7.01 TCGA.L5.A4OX.01 TCGA.R6.A6Y2.01 TCGA.2H.A9GF.01 TCGA.2H.A9GO.01 TCGA.L5.A8NR.01 
#>           "052"         "02222"          "0212"          "0232"          "0211"         "02222" 
#> TCGA.L5.A88S.01 TCGA.VR.A8EW.01 TCGA.VR.A8ER.01 TCGA.L5.A4OU.01 TCGA.JY.A93C.01 TCGA.V5.AASX.01 
#>          "0113"          "0111"          "0131"          "0223"         "02222"         "02221" 
#> TCGA.IG.A97H.01 TCGA.L5.A8NT.01 TCGA.R6.A8WC.01 TCGA.2H.A9GJ.01 TCGA.VR.AA4G.01 TCGA.JY.A6FD.01 
#>          "0133"         "02222"          "0221"           "043"          "0112"          "0112" 
#> TCGA.2H.A9GN.01 TCGA.VR.AA4D.01 TCGA.IG.A97I.01 TCGA.2H.A9GM.01 TCGA.L5.A8NG.01 TCGA.IG.A5S3.01 
#>           "041"          "0232"          "0133"          "0231"         "02221"          "0132" 
#> TCGA.IC.A6RE.11 TCGA.IC.A6RE.01 TCGA.2H.A9GG.01 TCGA.LN.A5U6.01 TCGA.LN.A9FQ.01 TCGA.L5.A8NK.01 
#>           "035"          "0233"           "041"          "0133"          "0131"          "0112" 
#> TCGA.L5.A4OS.01 TCGA.RE.A7BO.01 TCGA.LN.A9FO.01 TCGA.L5.A8NJ.01 TCGA.JY.A939.01 TCGA.VR.A8EY.01 
#>           "034"          "0221"          "0112"          "0221"          "0212"           "051" 
#> TCGA.Z6.A9VB.01 TCGA.V5.AASV.01 TCGA.LN.A9FR.01 TCGA.JY.A6F8.01 TCGA.VR.A8EQ.01 TCGA.2H.A9GQ.01 
#>           "052"           "051"          "0132"          "0221"         "02223"           "043" 
#> TCGA.L5.A8NL.01 TCGA.2H.A9GH.01 TCGA.L5.A8NF.01 TCGA.L5.A8NI.01 
#>         "02221"          "0221"           "042"           "041"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 2070))
#> TCGA.JY.A6FB.01 TCGA.LN.A49L.01 TCGA.LN.A4A4.01 TCGA.LN.A49M.01 TCGA.Q9.A6FW.01 TCGA.Z6.AAPN.01 
#>          "0221"           "053"           "012"           "051"          "0223"           "032" 
#> TCGA.Q9.A6FU.01 TCGA.L5.A43C.11 TCGA.S8.A6BW.01 TCGA.S8.A6BV.01 TCGA.V5.A7RC.01 TCGA.VR.A8ET.01 
#>          "0112"           "031"          "0133"          "0223"          "0131"           "032" 
#> TCGA.LN.A4A3.01 TCGA.L5.A4OH.11 TCGA.LN.A49X.01 TCGA.L5.A4OI.01 TCGA.LN.A7HV.01 TCGA.R6.A6DN.01 
#>          "0113"           "031"          "0113"          "0221"           "012"         "02222" 
#> TCGA.IG.A3YB.01 TCGA.IG.A3YC.01 TCGA.L5.A4OE.11 TCGA.L5.A4OG.01 TCGA.KH.A6WC.01 TCGA.L7.A56G.01 
#>           "053"          "0113"           "031"         "02223"          "0132"          "0132" 
#> TCGA.IG.A51D.01 TCGA.VR.A8EP.01 TCGA.L5.A88T.01 TCGA.L5.A4ON.11 TCGA.L5.A43J.01 TCGA.L5.A43E.01 
#>           "052"           "012"           "035"           "032"           "053"          "0221" 
#> TCGA.X8.AAAR.01 TCGA.JY.A6FE.01 TCGA.LN.A49N.01 TCGA.L5.A4ON.01 TCGA.V5.AASW.01 TCGA.L5.A43I.01 
#>          "0223"           "012"          "0112"          "0221"          "0221"          "0231" 
#> TCGA.L5.A4OF.01 TCGA.L5.A4OQ.11 TCGA.IG.A3I8.01 TCGA.VR.AA7B.01 TCGA.L5.A4OJ.01 TCGA.IG.A3Y9.01 
#>          "0211"           "032"           "052"          "0112"          "0221"          "0113" 
#> TCGA.L5.A4OM.01 TCGA.LN.A4A6.01 TCGA.LN.A49V.01 TCGA.L5.A4OH.01 TCGA.L5.A4OI.11 TCGA.LN.A49R.01 
#>           "012"           "012"           "053"          "0233"           "031"           "012" 
#> TCGA.LN.A49K.01 TCGA.IG.A4QT.01 TCGA.R6.A6L4.01 TCGA.L7.A6VZ.01 TCGA.LN.A49U.01 TCGA.L5.A4OF.11 
#>          "0131"           "032"          "0212"          "0221"           "012"           "031" 
#> TCGA.LN.A7HX.01 TCGA.L5.A4OO.01 TCGA.LN.A4A8.01 TCGA.JY.A6FG.01 TCGA.L5.A4OJ.11 TCGA.LN.A5U7.01 
#>           "012"          "0212"           "012"           "051"           "033"          "0111" 
#> TCGA.V5.A7RC.06 TCGA.IG.A625.01 TCGA.L5.A4OP.01 TCGA.IG.A4P3.01 TCGA.LN.A49Y.01 TCGA.L5.A43C.01 
#>          "0131"          "0111"          "0232"          "0132"           "012"          "0212" 
#> TCGA.L5.A88W.01 TCGA.L5.A43H.01 TCGA.L5.A4OE.01 TCGA.IG.A50L.01 TCGA.LN.A7HY.01 TCGA.R6.A6KZ.01 
#>           "051"          "0133"         "02221"          "0112"          "0132"          "0211" 
#> TCGA.LN.A49P.01 TCGA.L5.A4OM.11 TCGA.LN.A4A1.01 TCGA.LN.A49O.01 TCGA.LN.A4A5.01 TCGA.LN.A49W.01 
#>          "0133"           "033"           "012"          "0112"           "053"          "0132" 
#> TCGA.L5.A4OR.01 TCGA.L5.A43M.01 TCGA.L5.A4OP.11 TCGA.V5.A7RE.01 TCGA.VR.AA7I.01 TCGA.IG.A3YA.01 
#>          "0231"           "041"           "033"          "0231"           "052"          "0113" 
#> TCGA.V5.A7RE.11 TCGA.LN.A7HZ.01 TCGA.VR.AA7D.01 TCGA.V5.A7RB.01 TCGA.L5.A4OQ.01 TCGA.IG.A3QL.01 
#>          "0231"          "0111"           "052"          "0223"           "042"          "0111" 
#> TCGA.R6.A6DQ.01 TCGA.IG.A3I8.11 TCGA.LN.A4A2.01 TCGA.IC.A6RF.01 TCGA.LN.A49S.01 TCGA.IG.A4QS.01 
#>         "02223"           "034"          "0111"           "051"           "012"          "0231" 
#> TCGA.L5.A4OG.11 TCGA.L5.A88Y.01 TCGA.L5.A88V.01 TCGA.LN.A7HW.01 TCGA.IG.A8O2.01 TCGA.IG.A7DP.01 
#>           "033"         "02221"          "0223"          "0131"           "012"           "034" 
#> TCGA.L5.A8NQ.01 TCGA.LN.A8I0.01 TCGA.JY.A93F.01 TCGA.M9.A5M8.01 TCGA.L5.A4OW.01 TCGA.2H.A9GK.01 
#>          "0113"          "0111"           "051"         "02223"         "02221"         "02223" 
#> TCGA.L5.A8NW.01 TCGA.R6.A8W5.01 TCGA.L5.A8NH.01 TCGA.2H.A9GR.01 TCGA.L5.A8NV.01 TCGA.XP.A8T8.01 
#>         "02222"           "042"          "0231"         "02221"         "02221"          "0111" 
#> TCGA.L5.A88Z.01 TCGA.IG.A5B8.01 TCGA.R6.A6XG.01 TCGA.L5.A8NN.01 TCGA.LN.A9FP.01 TCGA.LN.A4MR.01 
#>           "053"           "012"          "0232"          "0211"           "034"           "012" 
#> TCGA.L5.A8NS.01 TCGA.LN.A4MQ.01 TCGA.LN.A4A9.01 TCGA.VR.A8EX.01 TCGA.JY.A938.01 TCGA.JY.A6FA.01 
#>         "02221"          "0131"           "012"          "0112"          "0223"           "012" 
#> TCGA.R6.A8WG.01 TCGA.VR.A8EO.01 TCGA.VR.A8EU.01 TCGA.R6.A6L6.01 TCGA.L5.A8NE.01 TCGA.V5.AASX.11 
#>          "0211"           "012"          "0112"          "0212"           "042"          "0221" 
#> TCGA.LN.A8I1.01 TCGA.L5.A893.01 TCGA.IC.A6RF.11 TCGA.L5.A8NU.01 TCGA.R6.A6XQ.01 TCGA.LN.A5U5.01 
#>          "0133"         "02221"           "051"          "0212"          "0211"          "0133" 
#> TCGA.Z6.A8JD.01 TCGA.L5.A4OT.01 TCGA.ZR.A9CJ.01 TCGA.Z6.A8JE.01 TCGA.JY.A6FH.01 TCGA.XP.A8T6.01 
#>          "0113"          "0221"          "0212"           "052"           "042"           "012" 
#> TCGA.R6.A8W8.01 TCGA.JY.A93E.01 TCGA.2H.A9GI.01 TCGA.IG.A6QS.01 TCGA.VR.A8Q7.01 TCGA.R6.A6Y0.01 
#>          "0233"         "02221"         "02222"           "052"           "043"           "042" 
#> TCGA.VR.A8EZ.01 TCGA.2H.A9GL.01 TCGA.LN.A8HZ.01 TCGA.L5.A891.01 TCGA.L5.A8NM.01 TCGA.JY.A93D.01 
#>          "0131"         "02222"          "0111"           "043"         "02221"          "0212" 
#> TCGA.XP.A8T7.01 TCGA.L5.A4OX.01 TCGA.R6.A6Y2.01 TCGA.2H.A9GF.01 TCGA.2H.A9GO.01 TCGA.L5.A8NR.01 
#>           "052"         "02222"          "0212"          "0232"          "0211"         "02222" 
#> TCGA.L5.A88S.01 TCGA.VR.A8EW.01 TCGA.VR.A8ER.01 TCGA.L5.A4OU.01 TCGA.JY.A93C.01 TCGA.V5.AASX.01 
#>          "0113"          "0111"          "0131"          "0223"         "02222"         "02221" 
#> TCGA.IG.A97H.01 TCGA.L5.A8NT.01 TCGA.R6.A8WC.01 TCGA.2H.A9GJ.01 TCGA.VR.AA4G.01 TCGA.JY.A6FD.01 
#>          "0133"         "02222"          "0221"           "043"          "0112"          "0112" 
#> TCGA.2H.A9GN.01 TCGA.VR.AA4D.01 TCGA.IG.A97I.01 TCGA.2H.A9GM.01 TCGA.L5.A8NG.01 TCGA.IG.A5S3.01 
#>           "041"          "0232"          "0133"          "0231"         "02221"          "0132" 
#> TCGA.IC.A6RE.11 TCGA.IC.A6RE.01 TCGA.2H.A9GG.01 TCGA.LN.A5U6.01 TCGA.LN.A9FQ.01 TCGA.L5.A8NK.01 
#>           "035"          "0233"           "041"          "0133"          "0131"          "0112" 
#> TCGA.L5.A4OS.01 TCGA.RE.A7BO.01 TCGA.LN.A9FO.01 TCGA.L5.A8NJ.01 TCGA.JY.A939.01 TCGA.VR.A8EY.01 
#>           "034"          "0221"          "0112"          "0221"          "0212"           "051" 
#> TCGA.Z6.A9VB.01 TCGA.V5.AASV.01 TCGA.LN.A9FR.01 TCGA.JY.A6F8.01 TCGA.VR.A8EQ.01 TCGA.2H.A9GQ.01 
#>           "052"           "051"          "0132"          "0221"         "02223"           "043" 
#> TCGA.L5.A8NL.01 TCGA.2H.A9GH.01 TCGA.L5.A8NF.01 TCGA.L5.A8NI.01 
#>         "02221"          "0221"           "042"           "041"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 3429))
#> TCGA.JY.A6FB.01 TCGA.LN.A49L.01 TCGA.LN.A4A4.01 TCGA.LN.A49M.01 TCGA.Q9.A6FW.01 TCGA.Z6.AAPN.01 
#>          "0221"           "053"           "012"           "051"          "0223"           "032" 
#> TCGA.Q9.A6FU.01 TCGA.L5.A43C.11 TCGA.S8.A6BW.01 TCGA.S8.A6BV.01 TCGA.V5.A7RC.01 TCGA.VR.A8ET.01 
#>          "0112"           "031"          "0133"          "0223"          "0131"           "032" 
#> TCGA.LN.A4A3.01 TCGA.L5.A4OH.11 TCGA.LN.A49X.01 TCGA.L5.A4OI.01 TCGA.LN.A7HV.01 TCGA.R6.A6DN.01 
#>          "0113"           "031"          "0113"          "0221"           "012"         "02222" 
#> TCGA.IG.A3YB.01 TCGA.IG.A3YC.01 TCGA.L5.A4OE.11 TCGA.L5.A4OG.01 TCGA.KH.A6WC.01 TCGA.L7.A56G.01 
#>           "053"          "0113"           "031"         "02223"          "0132"          "0132" 
#> TCGA.IG.A51D.01 TCGA.VR.A8EP.01 TCGA.L5.A88T.01 TCGA.L5.A4ON.11 TCGA.L5.A43J.01 TCGA.L5.A43E.01 
#>           "052"           "012"           "035"           "032"           "053"          "0221" 
#> TCGA.X8.AAAR.01 TCGA.JY.A6FE.01 TCGA.LN.A49N.01 TCGA.L5.A4ON.01 TCGA.V5.AASW.01 TCGA.L5.A43I.01 
#>          "0223"           "012"          "0112"          "0221"          "0221"           "023" 
#> TCGA.L5.A4OF.01 TCGA.L5.A4OQ.11 TCGA.IG.A3I8.01 TCGA.VR.AA7B.01 TCGA.L5.A4OJ.01 TCGA.IG.A3Y9.01 
#>          "0211"           "032"           "052"          "0112"          "0221"          "0113" 
#> TCGA.L5.A4OM.01 TCGA.LN.A4A6.01 TCGA.LN.A49V.01 TCGA.L5.A4OH.01 TCGA.L5.A4OI.11 TCGA.LN.A49R.01 
#>           "012"           "012"           "053"           "023"           "031"           "012" 
#> TCGA.LN.A49K.01 TCGA.IG.A4QT.01 TCGA.R6.A6L4.01 TCGA.L7.A6VZ.01 TCGA.LN.A49U.01 TCGA.L5.A4OF.11 
#>          "0131"           "032"          "0212"          "0221"           "012"           "031" 
#> TCGA.LN.A7HX.01 TCGA.L5.A4OO.01 TCGA.LN.A4A8.01 TCGA.JY.A6FG.01 TCGA.L5.A4OJ.11 TCGA.LN.A5U7.01 
#>           "012"          "0212"           "012"           "051"           "033"          "0111" 
#> TCGA.V5.A7RC.06 TCGA.IG.A625.01 TCGA.L5.A4OP.01 TCGA.IG.A4P3.01 TCGA.LN.A49Y.01 TCGA.L5.A43C.01 
#>          "0131"          "0111"           "023"          "0132"           "012"          "0212" 
#> TCGA.L5.A88W.01 TCGA.L5.A43H.01 TCGA.L5.A4OE.01 TCGA.IG.A50L.01 TCGA.LN.A7HY.01 TCGA.R6.A6KZ.01 
#>           "051"          "0133"         "02221"          "0112"          "0132"          "0211" 
#> TCGA.LN.A49P.01 TCGA.L5.A4OM.11 TCGA.LN.A4A1.01 TCGA.LN.A49O.01 TCGA.LN.A4A5.01 TCGA.LN.A49W.01 
#>          "0133"           "033"           "012"          "0112"           "053"          "0132" 
#> TCGA.L5.A4OR.01 TCGA.L5.A43M.01 TCGA.L5.A4OP.11 TCGA.V5.A7RE.01 TCGA.VR.AA7I.01 TCGA.IG.A3YA.01 
#>           "023"           "041"           "033"           "023"           "052"          "0113" 
#> TCGA.V5.A7RE.11 TCGA.LN.A7HZ.01 TCGA.VR.AA7D.01 TCGA.V5.A7RB.01 TCGA.L5.A4OQ.01 TCGA.IG.A3QL.01 
#>           "023"          "0111"           "052"          "0223"           "042"          "0111" 
#> TCGA.R6.A6DQ.01 TCGA.IG.A3I8.11 TCGA.LN.A4A2.01 TCGA.IC.A6RF.01 TCGA.LN.A49S.01 TCGA.IG.A4QS.01 
#>         "02223"           "034"          "0111"           "051"           "012"           "023" 
#> TCGA.L5.A4OG.11 TCGA.L5.A88Y.01 TCGA.L5.A88V.01 TCGA.LN.A7HW.01 TCGA.IG.A8O2.01 TCGA.IG.A7DP.01 
#>           "033"         "02221"          "0223"          "0131"           "012"           "034" 
#> TCGA.L5.A8NQ.01 TCGA.LN.A8I0.01 TCGA.JY.A93F.01 TCGA.M9.A5M8.01 TCGA.L5.A4OW.01 TCGA.2H.A9GK.01 
#>          "0113"          "0111"           "051"         "02223"         "02221"         "02223" 
#> TCGA.L5.A8NW.01 TCGA.R6.A8W5.01 TCGA.L5.A8NH.01 TCGA.2H.A9GR.01 TCGA.L5.A8NV.01 TCGA.XP.A8T8.01 
#>         "02222"           "042"           "023"         "02221"         "02221"          "0111" 
#> TCGA.L5.A88Z.01 TCGA.IG.A5B8.01 TCGA.R6.A6XG.01 TCGA.L5.A8NN.01 TCGA.LN.A9FP.01 TCGA.LN.A4MR.01 
#>           "053"           "012"           "023"          "0211"           "034"           "012" 
#> TCGA.L5.A8NS.01 TCGA.LN.A4MQ.01 TCGA.LN.A4A9.01 TCGA.VR.A8EX.01 TCGA.JY.A938.01 TCGA.JY.A6FA.01 
#>         "02221"          "0131"           "012"          "0112"          "0223"           "012" 
#> TCGA.R6.A8WG.01 TCGA.VR.A8EO.01 TCGA.VR.A8EU.01 TCGA.R6.A6L6.01 TCGA.L5.A8NE.01 TCGA.V5.AASX.11 
#>          "0211"           "012"          "0112"          "0212"           "042"          "0221" 
#> TCGA.LN.A8I1.01 TCGA.L5.A893.01 TCGA.IC.A6RF.11 TCGA.L5.A8NU.01 TCGA.R6.A6XQ.01 TCGA.LN.A5U5.01 
#>          "0133"         "02221"           "051"          "0212"          "0211"          "0133" 
#> TCGA.Z6.A8JD.01 TCGA.L5.A4OT.01 TCGA.ZR.A9CJ.01 TCGA.Z6.A8JE.01 TCGA.JY.A6FH.01 TCGA.XP.A8T6.01 
#>          "0113"          "0221"          "0212"           "052"           "042"           "012" 
#> TCGA.R6.A8W8.01 TCGA.JY.A93E.01 TCGA.2H.A9GI.01 TCGA.IG.A6QS.01 TCGA.VR.A8Q7.01 TCGA.R6.A6Y0.01 
#>           "023"         "02221"         "02222"           "052"           "043"           "042" 
#> TCGA.VR.A8EZ.01 TCGA.2H.A9GL.01 TCGA.LN.A8HZ.01 TCGA.L5.A891.01 TCGA.L5.A8NM.01 TCGA.JY.A93D.01 
#>          "0131"         "02222"          "0111"           "043"         "02221"          "0212" 
#> TCGA.XP.A8T7.01 TCGA.L5.A4OX.01 TCGA.R6.A6Y2.01 TCGA.2H.A9GF.01 TCGA.2H.A9GO.01 TCGA.L5.A8NR.01 
#>           "052"         "02222"          "0212"           "023"          "0211"         "02222" 
#> TCGA.L5.A88S.01 TCGA.VR.A8EW.01 TCGA.VR.A8ER.01 TCGA.L5.A4OU.01 TCGA.JY.A93C.01 TCGA.V5.AASX.01 
#>          "0113"          "0111"          "0131"          "0223"         "02222"         "02221" 
#> TCGA.IG.A97H.01 TCGA.L5.A8NT.01 TCGA.R6.A8WC.01 TCGA.2H.A9GJ.01 TCGA.VR.AA4G.01 TCGA.JY.A6FD.01 
#>          "0133"         "02222"          "0221"           "043"          "0112"          "0112" 
#> TCGA.2H.A9GN.01 TCGA.VR.AA4D.01 TCGA.IG.A97I.01 TCGA.2H.A9GM.01 TCGA.L5.A8NG.01 TCGA.IG.A5S3.01 
#>           "041"           "023"          "0133"           "023"         "02221"          "0132" 
#> TCGA.IC.A6RE.11 TCGA.IC.A6RE.01 TCGA.2H.A9GG.01 TCGA.LN.A5U6.01 TCGA.LN.A9FQ.01 TCGA.L5.A8NK.01 
#>           "035"           "023"           "041"          "0133"          "0131"          "0112" 
#> TCGA.L5.A4OS.01 TCGA.RE.A7BO.01 TCGA.LN.A9FO.01 TCGA.L5.A8NJ.01 TCGA.JY.A939.01 TCGA.VR.A8EY.01 
#>           "034"          "0221"          "0112"          "0221"          "0212"           "051" 
#> TCGA.Z6.A9VB.01 TCGA.V5.AASV.01 TCGA.LN.A9FR.01 TCGA.JY.A6F8.01 TCGA.VR.A8EQ.01 TCGA.2H.A9GQ.01 
#>           "052"           "051"          "0132"          "0221"         "02223"           "043" 
#> TCGA.L5.A8NL.01 TCGA.2H.A9GH.01 TCGA.L5.A8NF.01 TCGA.L5.A8NI.01 
#>         "02221"          "0221"           "042"           "041"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 3489))
#> TCGA.JY.A6FB.01 TCGA.LN.A49L.01 TCGA.LN.A4A4.01 TCGA.LN.A49M.01 TCGA.Q9.A6FW.01 TCGA.Z6.AAPN.01 
#>          "0221"           "053"           "012"           "051"          "0223"           "032" 
#> TCGA.Q9.A6FU.01 TCGA.L5.A43C.11 TCGA.S8.A6BW.01 TCGA.S8.A6BV.01 TCGA.V5.A7RC.01 TCGA.VR.A8ET.01 
#>          "0112"           "031"          "0133"          "0223"          "0131"           "032" 
#> TCGA.LN.A4A3.01 TCGA.L5.A4OH.11 TCGA.LN.A49X.01 TCGA.L5.A4OI.01 TCGA.LN.A7HV.01 TCGA.R6.A6DN.01 
#>          "0113"           "031"          "0113"          "0221"           "012"          "0222" 
#> TCGA.IG.A3YB.01 TCGA.IG.A3YC.01 TCGA.L5.A4OE.11 TCGA.L5.A4OG.01 TCGA.KH.A6WC.01 TCGA.L7.A56G.01 
#>           "053"          "0113"           "031"          "0222"          "0132"          "0132" 
#> TCGA.IG.A51D.01 TCGA.VR.A8EP.01 TCGA.L5.A88T.01 TCGA.L5.A4ON.11 TCGA.L5.A43J.01 TCGA.L5.A43E.01 
#>           "052"           "012"           "035"           "032"           "053"          "0221" 
#> TCGA.X8.AAAR.01 TCGA.JY.A6FE.01 TCGA.LN.A49N.01 TCGA.L5.A4ON.01 TCGA.V5.AASW.01 TCGA.L5.A43I.01 
#>          "0223"           "012"          "0112"          "0221"          "0221"           "023" 
#> TCGA.L5.A4OF.01 TCGA.L5.A4OQ.11 TCGA.IG.A3I8.01 TCGA.VR.AA7B.01 TCGA.L5.A4OJ.01 TCGA.IG.A3Y9.01 
#>          "0211"           "032"           "052"          "0112"          "0221"          "0113" 
#> TCGA.L5.A4OM.01 TCGA.LN.A4A6.01 TCGA.LN.A49V.01 TCGA.L5.A4OH.01 TCGA.L5.A4OI.11 TCGA.LN.A49R.01 
#>           "012"           "012"           "053"           "023"           "031"           "012" 
#> TCGA.LN.A49K.01 TCGA.IG.A4QT.01 TCGA.R6.A6L4.01 TCGA.L7.A6VZ.01 TCGA.LN.A49U.01 TCGA.L5.A4OF.11 
#>          "0131"           "032"          "0212"          "0221"           "012"           "031" 
#> TCGA.LN.A7HX.01 TCGA.L5.A4OO.01 TCGA.LN.A4A8.01 TCGA.JY.A6FG.01 TCGA.L5.A4OJ.11 TCGA.LN.A5U7.01 
#>           "012"          "0212"           "012"           "051"           "033"          "0111" 
#> TCGA.V5.A7RC.06 TCGA.IG.A625.01 TCGA.L5.A4OP.01 TCGA.IG.A4P3.01 TCGA.LN.A49Y.01 TCGA.L5.A43C.01 
#>          "0131"          "0111"           "023"          "0132"           "012"          "0212" 
#> TCGA.L5.A88W.01 TCGA.L5.A43H.01 TCGA.L5.A4OE.01 TCGA.IG.A50L.01 TCGA.LN.A7HY.01 TCGA.R6.A6KZ.01 
#>           "051"          "0133"          "0222"          "0112"          "0132"          "0211" 
#> TCGA.LN.A49P.01 TCGA.L5.A4OM.11 TCGA.LN.A4A1.01 TCGA.LN.A49O.01 TCGA.LN.A4A5.01 TCGA.LN.A49W.01 
#>          "0133"           "033"           "012"          "0112"           "053"          "0132" 
#> TCGA.L5.A4OR.01 TCGA.L5.A43M.01 TCGA.L5.A4OP.11 TCGA.V5.A7RE.01 TCGA.VR.AA7I.01 TCGA.IG.A3YA.01 
#>           "023"           "041"           "033"           "023"           "052"          "0113" 
#> TCGA.V5.A7RE.11 TCGA.LN.A7HZ.01 TCGA.VR.AA7D.01 TCGA.V5.A7RB.01 TCGA.L5.A4OQ.01 TCGA.IG.A3QL.01 
#>           "023"          "0111"           "052"          "0223"           "042"          "0111" 
#> TCGA.R6.A6DQ.01 TCGA.IG.A3I8.11 TCGA.LN.A4A2.01 TCGA.IC.A6RF.01 TCGA.LN.A49S.01 TCGA.IG.A4QS.01 
#>          "0222"           "034"          "0111"           "051"           "012"           "023" 
#> TCGA.L5.A4OG.11 TCGA.L5.A88Y.01 TCGA.L5.A88V.01 TCGA.LN.A7HW.01 TCGA.IG.A8O2.01 TCGA.IG.A7DP.01 
#>           "033"          "0222"          "0223"          "0131"           "012"           "034" 
#> TCGA.L5.A8NQ.01 TCGA.LN.A8I0.01 TCGA.JY.A93F.01 TCGA.M9.A5M8.01 TCGA.L5.A4OW.01 TCGA.2H.A9GK.01 
#>          "0113"          "0111"           "051"          "0222"          "0222"          "0222" 
#> TCGA.L5.A8NW.01 TCGA.R6.A8W5.01 TCGA.L5.A8NH.01 TCGA.2H.A9GR.01 TCGA.L5.A8NV.01 TCGA.XP.A8T8.01 
#>          "0222"           "042"           "023"          "0222"          "0222"          "0111" 
#> TCGA.L5.A88Z.01 TCGA.IG.A5B8.01 TCGA.R6.A6XG.01 TCGA.L5.A8NN.01 TCGA.LN.A9FP.01 TCGA.LN.A4MR.01 
#>           "053"           "012"           "023"          "0211"           "034"           "012" 
#> TCGA.L5.A8NS.01 TCGA.LN.A4MQ.01 TCGA.LN.A4A9.01 TCGA.VR.A8EX.01 TCGA.JY.A938.01 TCGA.JY.A6FA.01 
#>          "0222"          "0131"           "012"          "0112"          "0223"           "012" 
#> TCGA.R6.A8WG.01 TCGA.VR.A8EO.01 TCGA.VR.A8EU.01 TCGA.R6.A6L6.01 TCGA.L5.A8NE.01 TCGA.V5.AASX.11 
#>          "0211"           "012"          "0112"          "0212"           "042"          "0221" 
#> TCGA.LN.A8I1.01 TCGA.L5.A893.01 TCGA.IC.A6RF.11 TCGA.L5.A8NU.01 TCGA.R6.A6XQ.01 TCGA.LN.A5U5.01 
#>          "0133"          "0222"           "051"          "0212"          "0211"          "0133" 
#> TCGA.Z6.A8JD.01 TCGA.L5.A4OT.01 TCGA.ZR.A9CJ.01 TCGA.Z6.A8JE.01 TCGA.JY.A6FH.01 TCGA.XP.A8T6.01 
#>          "0113"          "0221"          "0212"           "052"           "042"           "012" 
#> TCGA.R6.A8W8.01 TCGA.JY.A93E.01 TCGA.2H.A9GI.01 TCGA.IG.A6QS.01 TCGA.VR.A8Q7.01 TCGA.R6.A6Y0.01 
#>           "023"          "0222"          "0222"           "052"           "043"           "042" 
#> TCGA.VR.A8EZ.01 TCGA.2H.A9GL.01 TCGA.LN.A8HZ.01 TCGA.L5.A891.01 TCGA.L5.A8NM.01 TCGA.JY.A93D.01 
#>          "0131"          "0222"          "0111"           "043"          "0222"          "0212" 
#> TCGA.XP.A8T7.01 TCGA.L5.A4OX.01 TCGA.R6.A6Y2.01 TCGA.2H.A9GF.01 TCGA.2H.A9GO.01 TCGA.L5.A8NR.01 
#>           "052"          "0222"          "0212"           "023"          "0211"          "0222" 
#> TCGA.L5.A88S.01 TCGA.VR.A8EW.01 TCGA.VR.A8ER.01 TCGA.L5.A4OU.01 TCGA.JY.A93C.01 TCGA.V5.AASX.01 
#>          "0113"          "0111"          "0131"          "0223"          "0222"          "0222" 
#> TCGA.IG.A97H.01 TCGA.L5.A8NT.01 TCGA.R6.A8WC.01 TCGA.2H.A9GJ.01 TCGA.VR.AA4G.01 TCGA.JY.A6FD.01 
#>          "0133"          "0222"          "0221"           "043"          "0112"          "0112" 
#> TCGA.2H.A9GN.01 TCGA.VR.AA4D.01 TCGA.IG.A97I.01 TCGA.2H.A9GM.01 TCGA.L5.A8NG.01 TCGA.IG.A5S3.01 
#>           "041"           "023"          "0133"           "023"          "0222"          "0132" 
#> TCGA.IC.A6RE.11 TCGA.IC.A6RE.01 TCGA.2H.A9GG.01 TCGA.LN.A5U6.01 TCGA.LN.A9FQ.01 TCGA.L5.A8NK.01 
#>           "035"           "023"           "041"          "0133"          "0131"          "0112" 
#> TCGA.L5.A4OS.01 TCGA.RE.A7BO.01 TCGA.LN.A9FO.01 TCGA.L5.A8NJ.01 TCGA.JY.A939.01 TCGA.VR.A8EY.01 
#>           "034"          "0221"          "0112"          "0221"          "0212"           "051" 
#> TCGA.Z6.A9VB.01 TCGA.V5.AASV.01 TCGA.LN.A9FR.01 TCGA.JY.A6F8.01 TCGA.VR.A8EQ.01 TCGA.2H.A9GQ.01 
#>           "052"           "051"          "0132"          "0221"          "0222"           "043" 
#> TCGA.L5.A8NL.01 TCGA.2H.A9GH.01 TCGA.L5.A8NF.01 TCGA.L5.A8NI.01 
#>          "0222"          "0221"           "042"           "041"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 4028))
#> TCGA.JY.A6FB.01 TCGA.LN.A49L.01 TCGA.LN.A4A4.01 TCGA.LN.A49M.01 TCGA.Q9.A6FW.01 TCGA.Z6.AAPN.01 
#>          "0221"           "053"           "012"           "051"          "0223"           "032" 
#> TCGA.Q9.A6FU.01 TCGA.L5.A43C.11 TCGA.S8.A6BW.01 TCGA.S8.A6BV.01 TCGA.V5.A7RC.01 TCGA.VR.A8ET.01 
#>          "0112"           "031"           "013"          "0223"           "013"           "032" 
#> TCGA.LN.A4A3.01 TCGA.L5.A4OH.11 TCGA.LN.A49X.01 TCGA.L5.A4OI.01 TCGA.LN.A7HV.01 TCGA.R6.A6DN.01 
#>          "0113"           "031"          "0113"          "0221"           "012"          "0222" 
#> TCGA.IG.A3YB.01 TCGA.IG.A3YC.01 TCGA.L5.A4OE.11 TCGA.L5.A4OG.01 TCGA.KH.A6WC.01 TCGA.L7.A56G.01 
#>           "053"          "0113"           "031"          "0222"           "013"           "013" 
#> TCGA.IG.A51D.01 TCGA.VR.A8EP.01 TCGA.L5.A88T.01 TCGA.L5.A4ON.11 TCGA.L5.A43J.01 TCGA.L5.A43E.01 
#>           "052"           "012"           "035"           "032"           "053"          "0221" 
#> TCGA.X8.AAAR.01 TCGA.JY.A6FE.01 TCGA.LN.A49N.01 TCGA.L5.A4ON.01 TCGA.V5.AASW.01 TCGA.L5.A43I.01 
#>          "0223"           "012"          "0112"          "0221"          "0221"           "023" 
#> TCGA.L5.A4OF.01 TCGA.L5.A4OQ.11 TCGA.IG.A3I8.01 TCGA.VR.AA7B.01 TCGA.L5.A4OJ.01 TCGA.IG.A3Y9.01 
#>          "0211"           "032"           "052"          "0112"          "0221"          "0113" 
#> TCGA.L5.A4OM.01 TCGA.LN.A4A6.01 TCGA.LN.A49V.01 TCGA.L5.A4OH.01 TCGA.L5.A4OI.11 TCGA.LN.A49R.01 
#>           "012"           "012"           "053"           "023"           "031"           "012" 
#> TCGA.LN.A49K.01 TCGA.IG.A4QT.01 TCGA.R6.A6L4.01 TCGA.L7.A6VZ.01 TCGA.LN.A49U.01 TCGA.L5.A4OF.11 
#>           "013"           "032"          "0212"          "0221"           "012"           "031" 
#> TCGA.LN.A7HX.01 TCGA.L5.A4OO.01 TCGA.LN.A4A8.01 TCGA.JY.A6FG.01 TCGA.L5.A4OJ.11 TCGA.LN.A5U7.01 
#>           "012"          "0212"           "012"           "051"           "033"          "0111" 
#> TCGA.V5.A7RC.06 TCGA.IG.A625.01 TCGA.L5.A4OP.01 TCGA.IG.A4P3.01 TCGA.LN.A49Y.01 TCGA.L5.A43C.01 
#>           "013"          "0111"           "023"           "013"           "012"          "0212" 
#> TCGA.L5.A88W.01 TCGA.L5.A43H.01 TCGA.L5.A4OE.01 TCGA.IG.A50L.01 TCGA.LN.A7HY.01 TCGA.R6.A6KZ.01 
#>           "051"           "013"          "0222"          "0112"           "013"          "0211" 
#> TCGA.LN.A49P.01 TCGA.L5.A4OM.11 TCGA.LN.A4A1.01 TCGA.LN.A49O.01 TCGA.LN.A4A5.01 TCGA.LN.A49W.01 
#>           "013"           "033"           "012"          "0112"           "053"           "013" 
#> TCGA.L5.A4OR.01 TCGA.L5.A43M.01 TCGA.L5.A4OP.11 TCGA.V5.A7RE.01 TCGA.VR.AA7I.01 TCGA.IG.A3YA.01 
#>           "023"           "041"           "033"           "023"           "052"          "0113" 
#> TCGA.V5.A7RE.11 TCGA.LN.A7HZ.01 TCGA.VR.AA7D.01 TCGA.V5.A7RB.01 TCGA.L5.A4OQ.01 TCGA.IG.A3QL.01 
#>           "023"          "0111"           "052"          "0223"           "042"          "0111" 
#> TCGA.R6.A6DQ.01 TCGA.IG.A3I8.11 TCGA.LN.A4A2.01 TCGA.IC.A6RF.01 TCGA.LN.A49S.01 TCGA.IG.A4QS.01 
#>          "0222"           "034"          "0111"           "051"           "012"           "023" 
#> TCGA.L5.A4OG.11 TCGA.L5.A88Y.01 TCGA.L5.A88V.01 TCGA.LN.A7HW.01 TCGA.IG.A8O2.01 TCGA.IG.A7DP.01 
#>           "033"          "0222"          "0223"           "013"           "012"           "034" 
#> TCGA.L5.A8NQ.01 TCGA.LN.A8I0.01 TCGA.JY.A93F.01 TCGA.M9.A5M8.01 TCGA.L5.A4OW.01 TCGA.2H.A9GK.01 
#>          "0113"          "0111"           "051"          "0222"          "0222"          "0222" 
#> TCGA.L5.A8NW.01 TCGA.R6.A8W5.01 TCGA.L5.A8NH.01 TCGA.2H.A9GR.01 TCGA.L5.A8NV.01 TCGA.XP.A8T8.01 
#>          "0222"           "042"           "023"          "0222"          "0222"          "0111" 
#> TCGA.L5.A88Z.01 TCGA.IG.A5B8.01 TCGA.R6.A6XG.01 TCGA.L5.A8NN.01 TCGA.LN.A9FP.01 TCGA.LN.A4MR.01 
#>           "053"           "012"           "023"          "0211"           "034"           "012" 
#> TCGA.L5.A8NS.01 TCGA.LN.A4MQ.01 TCGA.LN.A4A9.01 TCGA.VR.A8EX.01 TCGA.JY.A938.01 TCGA.JY.A6FA.01 
#>          "0222"           "013"           "012"          "0112"          "0223"           "012" 
#> TCGA.R6.A8WG.01 TCGA.VR.A8EO.01 TCGA.VR.A8EU.01 TCGA.R6.A6L6.01 TCGA.L5.A8NE.01 TCGA.V5.AASX.11 
#>          "0211"           "012"          "0112"          "0212"           "042"          "0221" 
#> TCGA.LN.A8I1.01 TCGA.L5.A893.01 TCGA.IC.A6RF.11 TCGA.L5.A8NU.01 TCGA.R6.A6XQ.01 TCGA.LN.A5U5.01 
#>           "013"          "0222"           "051"          "0212"          "0211"           "013" 
#> TCGA.Z6.A8JD.01 TCGA.L5.A4OT.01 TCGA.ZR.A9CJ.01 TCGA.Z6.A8JE.01 TCGA.JY.A6FH.01 TCGA.XP.A8T6.01 
#>          "0113"          "0221"          "0212"           "052"           "042"           "012" 
#> TCGA.R6.A8W8.01 TCGA.JY.A93E.01 TCGA.2H.A9GI.01 TCGA.IG.A6QS.01 TCGA.VR.A8Q7.01 TCGA.R6.A6Y0.01 
#>           "023"          "0222"          "0222"           "052"           "043"           "042" 
#> TCGA.VR.A8EZ.01 TCGA.2H.A9GL.01 TCGA.LN.A8HZ.01 TCGA.L5.A891.01 TCGA.L5.A8NM.01 TCGA.JY.A93D.01 
#>           "013"          "0222"          "0111"           "043"          "0222"          "0212" 
#> TCGA.XP.A8T7.01 TCGA.L5.A4OX.01 TCGA.R6.A6Y2.01 TCGA.2H.A9GF.01 TCGA.2H.A9GO.01 TCGA.L5.A8NR.01 
#>           "052"          "0222"          "0212"           "023"          "0211"          "0222" 
#> TCGA.L5.A88S.01 TCGA.VR.A8EW.01 TCGA.VR.A8ER.01 TCGA.L5.A4OU.01 TCGA.JY.A93C.01 TCGA.V5.AASX.01 
#>          "0113"          "0111"           "013"          "0223"          "0222"          "0222" 
#> TCGA.IG.A97H.01 TCGA.L5.A8NT.01 TCGA.R6.A8WC.01 TCGA.2H.A9GJ.01 TCGA.VR.AA4G.01 TCGA.JY.A6FD.01 
#>           "013"          "0222"          "0221"           "043"          "0112"          "0112" 
#> TCGA.2H.A9GN.01 TCGA.VR.AA4D.01 TCGA.IG.A97I.01 TCGA.2H.A9GM.01 TCGA.L5.A8NG.01 TCGA.IG.A5S3.01 
#>           "041"           "023"           "013"           "023"          "0222"           "013" 
#> TCGA.IC.A6RE.11 TCGA.IC.A6RE.01 TCGA.2H.A9GG.01 TCGA.LN.A5U6.01 TCGA.LN.A9FQ.01 TCGA.L5.A8NK.01 
#>           "035"           "023"           "041"           "013"           "013"          "0112" 
#> TCGA.L5.A4OS.01 TCGA.RE.A7BO.01 TCGA.LN.A9FO.01 TCGA.L5.A8NJ.01 TCGA.JY.A939.01 TCGA.VR.A8EY.01 
#>           "034"          "0221"          "0112"          "0221"          "0212"           "051" 
#> TCGA.Z6.A9VB.01 TCGA.V5.AASV.01 TCGA.LN.A9FR.01 TCGA.JY.A6F8.01 TCGA.VR.A8EQ.01 TCGA.2H.A9GQ.01 
#>           "052"           "051"           "013"          "0221"          "0222"           "043" 
#> TCGA.L5.A8NL.01 TCGA.2H.A9GH.01 TCGA.L5.A8NF.01 TCGA.L5.A8NI.01 
#>          "0222"          "0221"           "042"           "041"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 9255))
#> TCGA.JY.A6FB.01 TCGA.LN.A49L.01 TCGA.LN.A4A4.01 TCGA.LN.A49M.01 TCGA.Q9.A6FW.01 TCGA.Z6.AAPN.01 
#>          "0221"           "053"           "012"           "051"          "0223"           "032" 
#> TCGA.Q9.A6FU.01 TCGA.L5.A43C.11 TCGA.S8.A6BW.01 TCGA.S8.A6BV.01 TCGA.V5.A7RC.01 TCGA.VR.A8ET.01 
#>          "0112"           "031"           "013"          "0223"           "013"           "032" 
#> TCGA.LN.A4A3.01 TCGA.L5.A4OH.11 TCGA.LN.A49X.01 TCGA.L5.A4OI.01 TCGA.LN.A7HV.01 TCGA.R6.A6DN.01 
#>          "0113"           "031"          "0113"          "0221"           "012"          "0222" 
#> TCGA.IG.A3YB.01 TCGA.IG.A3YC.01 TCGA.L5.A4OE.11 TCGA.L5.A4OG.01 TCGA.KH.A6WC.01 TCGA.L7.A56G.01 
#>           "053"          "0113"           "031"          "0222"           "013"           "013" 
#> TCGA.IG.A51D.01 TCGA.VR.A8EP.01 TCGA.L5.A88T.01 TCGA.L5.A4ON.11 TCGA.L5.A43J.01 TCGA.L5.A43E.01 
#>           "052"           "012"           "035"           "032"           "053"          "0221" 
#> TCGA.X8.AAAR.01 TCGA.JY.A6FE.01 TCGA.LN.A49N.01 TCGA.L5.A4ON.01 TCGA.V5.AASW.01 TCGA.L5.A43I.01 
#>          "0223"           "012"          "0112"          "0221"          "0221"           "023" 
#> TCGA.L5.A4OF.01 TCGA.L5.A4OQ.11 TCGA.IG.A3I8.01 TCGA.VR.AA7B.01 TCGA.L5.A4OJ.01 TCGA.IG.A3Y9.01 
#>          "0211"           "032"           "052"          "0112"          "0221"          "0113" 
#> TCGA.L5.A4OM.01 TCGA.LN.A4A6.01 TCGA.LN.A49V.01 TCGA.L5.A4OH.01 TCGA.L5.A4OI.11 TCGA.LN.A49R.01 
#>           "012"           "012"           "053"           "023"           "031"           "012" 
#> TCGA.LN.A49K.01 TCGA.IG.A4QT.01 TCGA.R6.A6L4.01 TCGA.L7.A6VZ.01 TCGA.LN.A49U.01 TCGA.L5.A4OF.11 
#>           "013"           "032"          "0212"          "0221"           "012"           "031" 
#> TCGA.LN.A7HX.01 TCGA.L5.A4OO.01 TCGA.LN.A4A8.01 TCGA.JY.A6FG.01 TCGA.L5.A4OJ.11 TCGA.LN.A5U7.01 
#>           "012"          "0212"           "012"           "051"           "033"          "0111" 
#> TCGA.V5.A7RC.06 TCGA.IG.A625.01 TCGA.L5.A4OP.01 TCGA.IG.A4P3.01 TCGA.LN.A49Y.01 TCGA.L5.A43C.01 
#>           "013"          "0111"           "023"           "013"           "012"          "0212" 
#> TCGA.L5.A88W.01 TCGA.L5.A43H.01 TCGA.L5.A4OE.01 TCGA.IG.A50L.01 TCGA.LN.A7HY.01 TCGA.R6.A6KZ.01 
#>           "051"           "013"          "0222"          "0112"           "013"          "0211" 
#> TCGA.LN.A49P.01 TCGA.L5.A4OM.11 TCGA.LN.A4A1.01 TCGA.LN.A49O.01 TCGA.LN.A4A5.01 TCGA.LN.A49W.01 
#>           "013"           "033"           "012"          "0112"           "053"           "013" 
#> TCGA.L5.A4OR.01 TCGA.L5.A43M.01 TCGA.L5.A4OP.11 TCGA.V5.A7RE.01 TCGA.VR.AA7I.01 TCGA.IG.A3YA.01 
#>           "023"            "04"           "033"           "023"           "052"          "0113" 
#> TCGA.V5.A7RE.11 TCGA.LN.A7HZ.01 TCGA.VR.AA7D.01 TCGA.V5.A7RB.01 TCGA.L5.A4OQ.01 TCGA.IG.A3QL.01 
#>           "023"          "0111"           "052"          "0223"            "04"          "0111" 
#> TCGA.R6.A6DQ.01 TCGA.IG.A3I8.11 TCGA.LN.A4A2.01 TCGA.IC.A6RF.01 TCGA.LN.A49S.01 TCGA.IG.A4QS.01 
#>          "0222"           "034"          "0111"           "051"           "012"           "023" 
#> TCGA.L5.A4OG.11 TCGA.L5.A88Y.01 TCGA.L5.A88V.01 TCGA.LN.A7HW.01 TCGA.IG.A8O2.01 TCGA.IG.A7DP.01 
#>           "033"          "0222"          "0223"           "013"           "012"           "034" 
#> TCGA.L5.A8NQ.01 TCGA.LN.A8I0.01 TCGA.JY.A93F.01 TCGA.M9.A5M8.01 TCGA.L5.A4OW.01 TCGA.2H.A9GK.01 
#>          "0113"          "0111"           "051"          "0222"          "0222"          "0222" 
#> TCGA.L5.A8NW.01 TCGA.R6.A8W5.01 TCGA.L5.A8NH.01 TCGA.2H.A9GR.01 TCGA.L5.A8NV.01 TCGA.XP.A8T8.01 
#>          "0222"            "04"           "023"          "0222"          "0222"          "0111" 
#> TCGA.L5.A88Z.01 TCGA.IG.A5B8.01 TCGA.R6.A6XG.01 TCGA.L5.A8NN.01 TCGA.LN.A9FP.01 TCGA.LN.A4MR.01 
#>           "053"           "012"           "023"          "0211"           "034"           "012" 
#> TCGA.L5.A8NS.01 TCGA.LN.A4MQ.01 TCGA.LN.A4A9.01 TCGA.VR.A8EX.01 TCGA.JY.A938.01 TCGA.JY.A6FA.01 
#>          "0222"           "013"           "012"          "0112"          "0223"           "012" 
#> TCGA.R6.A8WG.01 TCGA.VR.A8EO.01 TCGA.VR.A8EU.01 TCGA.R6.A6L6.01 TCGA.L5.A8NE.01 TCGA.V5.AASX.11 
#>          "0211"           "012"          "0112"          "0212"            "04"          "0221" 
#> TCGA.LN.A8I1.01 TCGA.L5.A893.01 TCGA.IC.A6RF.11 TCGA.L5.A8NU.01 TCGA.R6.A6XQ.01 TCGA.LN.A5U5.01 
#>           "013"          "0222"           "051"          "0212"          "0211"           "013" 
#> TCGA.Z6.A8JD.01 TCGA.L5.A4OT.01 TCGA.ZR.A9CJ.01 TCGA.Z6.A8JE.01 TCGA.JY.A6FH.01 TCGA.XP.A8T6.01 
#>          "0113"          "0221"          "0212"           "052"            "04"           "012" 
#> TCGA.R6.A8W8.01 TCGA.JY.A93E.01 TCGA.2H.A9GI.01 TCGA.IG.A6QS.01 TCGA.VR.A8Q7.01 TCGA.R6.A6Y0.01 
#>           "023"          "0222"          "0222"           "052"            "04"            "04" 
#> TCGA.VR.A8EZ.01 TCGA.2H.A9GL.01 TCGA.LN.A8HZ.01 TCGA.L5.A891.01 TCGA.L5.A8NM.01 TCGA.JY.A93D.01 
#>           "013"          "0222"          "0111"            "04"          "0222"          "0212" 
#> TCGA.XP.A8T7.01 TCGA.L5.A4OX.01 TCGA.R6.A6Y2.01 TCGA.2H.A9GF.01 TCGA.2H.A9GO.01 TCGA.L5.A8NR.01 
#>           "052"          "0222"          "0212"           "023"          "0211"          "0222" 
#> TCGA.L5.A88S.01 TCGA.VR.A8EW.01 TCGA.VR.A8ER.01 TCGA.L5.A4OU.01 TCGA.JY.A93C.01 TCGA.V5.AASX.01 
#>          "0113"          "0111"           "013"          "0223"          "0222"          "0222" 
#> TCGA.IG.A97H.01 TCGA.L5.A8NT.01 TCGA.R6.A8WC.01 TCGA.2H.A9GJ.01 TCGA.VR.AA4G.01 TCGA.JY.A6FD.01 
#>           "013"          "0222"          "0221"            "04"          "0112"          "0112" 
#> TCGA.2H.A9GN.01 TCGA.VR.AA4D.01 TCGA.IG.A97I.01 TCGA.2H.A9GM.01 TCGA.L5.A8NG.01 TCGA.IG.A5S3.01 
#>            "04"           "023"           "013"           "023"          "0222"           "013" 
#> TCGA.IC.A6RE.11 TCGA.IC.A6RE.01 TCGA.2H.A9GG.01 TCGA.LN.A5U6.01 TCGA.LN.A9FQ.01 TCGA.L5.A8NK.01 
#>           "035"           "023"            "04"           "013"           "013"          "0112" 
#> TCGA.L5.A4OS.01 TCGA.RE.A7BO.01 TCGA.LN.A9FO.01 TCGA.L5.A8NJ.01 TCGA.JY.A939.01 TCGA.VR.A8EY.01 
#>           "034"          "0221"          "0112"          "0221"          "0212"           "051" 
#> TCGA.Z6.A9VB.01 TCGA.V5.AASV.01 TCGA.LN.A9FR.01 TCGA.JY.A6F8.01 TCGA.VR.A8EQ.01 TCGA.2H.A9GQ.01 
#>           "052"           "051"           "013"          "0221"          "0222"            "04" 
#> TCGA.L5.A8NL.01 TCGA.2H.A9GH.01 TCGA.L5.A8NF.01 TCGA.L5.A8NI.01 
#>          "0222"          "0221"            "04"            "04"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 10873))
#> TCGA.JY.A6FB.01 TCGA.LN.A49L.01 TCGA.LN.A4A4.01 TCGA.LN.A49M.01 TCGA.Q9.A6FW.01 TCGA.Z6.AAPN.01 
#>          "0221"           "053"           "012"           "051"          "0223"           "032" 
#> TCGA.Q9.A6FU.01 TCGA.L5.A43C.11 TCGA.S8.A6BW.01 TCGA.S8.A6BV.01 TCGA.V5.A7RC.01 TCGA.VR.A8ET.01 
#>           "011"           "031"           "013"          "0223"           "013"           "032" 
#> TCGA.LN.A4A3.01 TCGA.L5.A4OH.11 TCGA.LN.A49X.01 TCGA.L5.A4OI.01 TCGA.LN.A7HV.01 TCGA.R6.A6DN.01 
#>           "011"           "031"           "011"          "0221"           "012"          "0222" 
#> TCGA.IG.A3YB.01 TCGA.IG.A3YC.01 TCGA.L5.A4OE.11 TCGA.L5.A4OG.01 TCGA.KH.A6WC.01 TCGA.L7.A56G.01 
#>           "053"           "011"           "031"          "0222"           "013"           "013" 
#> TCGA.IG.A51D.01 TCGA.VR.A8EP.01 TCGA.L5.A88T.01 TCGA.L5.A4ON.11 TCGA.L5.A43J.01 TCGA.L5.A43E.01 
#>           "052"           "012"           "035"           "032"           "053"          "0221" 
#> TCGA.X8.AAAR.01 TCGA.JY.A6FE.01 TCGA.LN.A49N.01 TCGA.L5.A4ON.01 TCGA.V5.AASW.01 TCGA.L5.A43I.01 
#>          "0223"           "012"           "011"          "0221"          "0221"           "023" 
#> TCGA.L5.A4OF.01 TCGA.L5.A4OQ.11 TCGA.IG.A3I8.01 TCGA.VR.AA7B.01 TCGA.L5.A4OJ.01 TCGA.IG.A3Y9.01 
#>          "0211"           "032"           "052"           "011"          "0221"           "011" 
#> TCGA.L5.A4OM.01 TCGA.LN.A4A6.01 TCGA.LN.A49V.01 TCGA.L5.A4OH.01 TCGA.L5.A4OI.11 TCGA.LN.A49R.01 
#>           "012"           "012"           "053"           "023"           "031"           "012" 
#> TCGA.LN.A49K.01 TCGA.IG.A4QT.01 TCGA.R6.A6L4.01 TCGA.L7.A6VZ.01 TCGA.LN.A49U.01 TCGA.L5.A4OF.11 
#>           "013"           "032"          "0212"          "0221"           "012"           "031" 
#> TCGA.LN.A7HX.01 TCGA.L5.A4OO.01 TCGA.LN.A4A8.01 TCGA.JY.A6FG.01 TCGA.L5.A4OJ.11 TCGA.LN.A5U7.01 
#>           "012"          "0212"           "012"           "051"           "033"           "011" 
#> TCGA.V5.A7RC.06 TCGA.IG.A625.01 TCGA.L5.A4OP.01 TCGA.IG.A4P3.01 TCGA.LN.A49Y.01 TCGA.L5.A43C.01 
#>           "013"           "011"           "023"           "013"           "012"          "0212" 
#> TCGA.L5.A88W.01 TCGA.L5.A43H.01 TCGA.L5.A4OE.01 TCGA.IG.A50L.01 TCGA.LN.A7HY.01 TCGA.R6.A6KZ.01 
#>           "051"           "013"          "0222"           "011"           "013"          "0211" 
#> TCGA.LN.A49P.01 TCGA.L5.A4OM.11 TCGA.LN.A4A1.01 TCGA.LN.A49O.01 TCGA.LN.A4A5.01 TCGA.LN.A49W.01 
#>           "013"           "033"           "012"           "011"           "053"           "013" 
#> TCGA.L5.A4OR.01 TCGA.L5.A43M.01 TCGA.L5.A4OP.11 TCGA.V5.A7RE.01 TCGA.VR.AA7I.01 TCGA.IG.A3YA.01 
#>           "023"            "04"           "033"           "023"           "052"           "011" 
#> TCGA.V5.A7RE.11 TCGA.LN.A7HZ.01 TCGA.VR.AA7D.01 TCGA.V5.A7RB.01 TCGA.L5.A4OQ.01 TCGA.IG.A3QL.01 
#>           "023"           "011"           "052"          "0223"            "04"           "011" 
#> TCGA.R6.A6DQ.01 TCGA.IG.A3I8.11 TCGA.LN.A4A2.01 TCGA.IC.A6RF.01 TCGA.LN.A49S.01 TCGA.IG.A4QS.01 
#>          "0222"           "034"           "011"           "051"           "012"           "023" 
#> TCGA.L5.A4OG.11 TCGA.L5.A88Y.01 TCGA.L5.A88V.01 TCGA.LN.A7HW.01 TCGA.IG.A8O2.01 TCGA.IG.A7DP.01 
#>           "033"          "0222"          "0223"           "013"           "012"           "034" 
#> TCGA.L5.A8NQ.01 TCGA.LN.A8I0.01 TCGA.JY.A93F.01 TCGA.M9.A5M8.01 TCGA.L5.A4OW.01 TCGA.2H.A9GK.01 
#>           "011"           "011"           "051"          "0222"          "0222"          "0222" 
#> TCGA.L5.A8NW.01 TCGA.R6.A8W5.01 TCGA.L5.A8NH.01 TCGA.2H.A9GR.01 TCGA.L5.A8NV.01 TCGA.XP.A8T8.01 
#>          "0222"            "04"           "023"          "0222"          "0222"           "011" 
#> TCGA.L5.A88Z.01 TCGA.IG.A5B8.01 TCGA.R6.A6XG.01 TCGA.L5.A8NN.01 TCGA.LN.A9FP.01 TCGA.LN.A4MR.01 
#>           "053"           "012"           "023"          "0211"           "034"           "012" 
#> TCGA.L5.A8NS.01 TCGA.LN.A4MQ.01 TCGA.LN.A4A9.01 TCGA.VR.A8EX.01 TCGA.JY.A938.01 TCGA.JY.A6FA.01 
#>          "0222"           "013"           "012"           "011"          "0223"           "012" 
#> TCGA.R6.A8WG.01 TCGA.VR.A8EO.01 TCGA.VR.A8EU.01 TCGA.R6.A6L6.01 TCGA.L5.A8NE.01 TCGA.V5.AASX.11 
#>          "0211"           "012"           "011"          "0212"            "04"          "0221" 
#> TCGA.LN.A8I1.01 TCGA.L5.A893.01 TCGA.IC.A6RF.11 TCGA.L5.A8NU.01 TCGA.R6.A6XQ.01 TCGA.LN.A5U5.01 
#>           "013"          "0222"           "051"          "0212"          "0211"           "013" 
#> TCGA.Z6.A8JD.01 TCGA.L5.A4OT.01 TCGA.ZR.A9CJ.01 TCGA.Z6.A8JE.01 TCGA.JY.A6FH.01 TCGA.XP.A8T6.01 
#>           "011"          "0221"          "0212"           "052"            "04"           "012" 
#> TCGA.R6.A8W8.01 TCGA.JY.A93E.01 TCGA.2H.A9GI.01 TCGA.IG.A6QS.01 TCGA.VR.A8Q7.01 TCGA.R6.A6Y0.01 
#>           "023"          "0222"          "0222"           "052"            "04"            "04" 
#> TCGA.VR.A8EZ.01 TCGA.2H.A9GL.01 TCGA.LN.A8HZ.01 TCGA.L5.A891.01 TCGA.L5.A8NM.01 TCGA.JY.A93D.01 
#>           "013"          "0222"           "011"            "04"          "0222"          "0212" 
#> TCGA.XP.A8T7.01 TCGA.L5.A4OX.01 TCGA.R6.A6Y2.01 TCGA.2H.A9GF.01 TCGA.2H.A9GO.01 TCGA.L5.A8NR.01 
#>           "052"          "0222"          "0212"           "023"          "0211"          "0222" 
#> TCGA.L5.A88S.01 TCGA.VR.A8EW.01 TCGA.VR.A8ER.01 TCGA.L5.A4OU.01 TCGA.JY.A93C.01 TCGA.V5.AASX.01 
#>           "011"           "011"           "013"          "0223"          "0222"          "0222" 
#> TCGA.IG.A97H.01 TCGA.L5.A8NT.01 TCGA.R6.A8WC.01 TCGA.2H.A9GJ.01 TCGA.VR.AA4G.01 TCGA.JY.A6FD.01 
#>           "013"          "0222"          "0221"            "04"           "011"           "011" 
#> TCGA.2H.A9GN.01 TCGA.VR.AA4D.01 TCGA.IG.A97I.01 TCGA.2H.A9GM.01 TCGA.L5.A8NG.01 TCGA.IG.A5S3.01 
#>            "04"           "023"           "013"           "023"          "0222"           "013" 
#> TCGA.IC.A6RE.11 TCGA.IC.A6RE.01 TCGA.2H.A9GG.01 TCGA.LN.A5U6.01 TCGA.LN.A9FQ.01 TCGA.L5.A8NK.01 
#>           "035"           "023"            "04"           "013"           "013"           "011" 
#> TCGA.L5.A4OS.01 TCGA.RE.A7BO.01 TCGA.LN.A9FO.01 TCGA.L5.A8NJ.01 TCGA.JY.A939.01 TCGA.VR.A8EY.01 
#>           "034"          "0221"           "011"          "0221"          "0212"           "051" 
#> TCGA.Z6.A9VB.01 TCGA.V5.AASV.01 TCGA.LN.A9FR.01 TCGA.JY.A6F8.01 TCGA.VR.A8EQ.01 TCGA.2H.A9GQ.01 
#>           "052"           "051"           "013"          "0221"          "0222"            "04" 
#> TCGA.L5.A8NL.01 TCGA.2H.A9GH.01 TCGA.L5.A8NF.01 TCGA.L5.A8NI.01 
#>          "0222"          "0221"            "04"            "04"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 13097))
#> TCGA.JY.A6FB.01 TCGA.LN.A49L.01 TCGA.LN.A4A4.01 TCGA.LN.A49M.01 TCGA.Q9.A6FW.01 TCGA.Z6.AAPN.01 
#>          "0221"           "053"           "012"           "051"          "0223"           "032" 
#> TCGA.Q9.A6FU.01 TCGA.L5.A43C.11 TCGA.S8.A6BW.01 TCGA.S8.A6BV.01 TCGA.V5.A7RC.01 TCGA.VR.A8ET.01 
#>           "011"           "031"           "013"          "0223"           "013"           "032" 
#> TCGA.LN.A4A3.01 TCGA.L5.A4OH.11 TCGA.LN.A49X.01 TCGA.L5.A4OI.01 TCGA.LN.A7HV.01 TCGA.R6.A6DN.01 
#>           "011"           "031"           "011"          "0221"           "012"          "0222" 
#> TCGA.IG.A3YB.01 TCGA.IG.A3YC.01 TCGA.L5.A4OE.11 TCGA.L5.A4OG.01 TCGA.KH.A6WC.01 TCGA.L7.A56G.01 
#>           "053"           "011"           "031"          "0222"           "013"           "013" 
#> TCGA.IG.A51D.01 TCGA.VR.A8EP.01 TCGA.L5.A88T.01 TCGA.L5.A4ON.11 TCGA.L5.A43J.01 TCGA.L5.A43E.01 
#>           "052"           "012"           "035"           "032"           "053"          "0221" 
#> TCGA.X8.AAAR.01 TCGA.JY.A6FE.01 TCGA.LN.A49N.01 TCGA.L5.A4ON.01 TCGA.V5.AASW.01 TCGA.L5.A43I.01 
#>          "0223"           "012"           "011"          "0221"          "0221"           "023" 
#> TCGA.L5.A4OF.01 TCGA.L5.A4OQ.11 TCGA.IG.A3I8.01 TCGA.VR.AA7B.01 TCGA.L5.A4OJ.01 TCGA.IG.A3Y9.01 
#>           "021"           "032"           "052"           "011"          "0221"           "011" 
#> TCGA.L5.A4OM.01 TCGA.LN.A4A6.01 TCGA.LN.A49V.01 TCGA.L5.A4OH.01 TCGA.L5.A4OI.11 TCGA.LN.A49R.01 
#>           "012"           "012"           "053"           "023"           "031"           "012" 
#> TCGA.LN.A49K.01 TCGA.IG.A4QT.01 TCGA.R6.A6L4.01 TCGA.L7.A6VZ.01 TCGA.LN.A49U.01 TCGA.L5.A4OF.11 
#>           "013"           "032"           "021"          "0221"           "012"           "031" 
#> TCGA.LN.A7HX.01 TCGA.L5.A4OO.01 TCGA.LN.A4A8.01 TCGA.JY.A6FG.01 TCGA.L5.A4OJ.11 TCGA.LN.A5U7.01 
#>           "012"           "021"           "012"           "051"           "033"           "011" 
#> TCGA.V5.A7RC.06 TCGA.IG.A625.01 TCGA.L5.A4OP.01 TCGA.IG.A4P3.01 TCGA.LN.A49Y.01 TCGA.L5.A43C.01 
#>           "013"           "011"           "023"           "013"           "012"           "021" 
#> TCGA.L5.A88W.01 TCGA.L5.A43H.01 TCGA.L5.A4OE.01 TCGA.IG.A50L.01 TCGA.LN.A7HY.01 TCGA.R6.A6KZ.01 
#>           "051"           "013"          "0222"           "011"           "013"           "021" 
#> TCGA.LN.A49P.01 TCGA.L5.A4OM.11 TCGA.LN.A4A1.01 TCGA.LN.A49O.01 TCGA.LN.A4A5.01 TCGA.LN.A49W.01 
#>           "013"           "033"           "012"           "011"           "053"           "013" 
#> TCGA.L5.A4OR.01 TCGA.L5.A43M.01 TCGA.L5.A4OP.11 TCGA.V5.A7RE.01 TCGA.VR.AA7I.01 TCGA.IG.A3YA.01 
#>           "023"            "04"           "033"           "023"           "052"           "011" 
#> TCGA.V5.A7RE.11 TCGA.LN.A7HZ.01 TCGA.VR.AA7D.01 TCGA.V5.A7RB.01 TCGA.L5.A4OQ.01 TCGA.IG.A3QL.01 
#>           "023"           "011"           "052"          "0223"            "04"           "011" 
#> TCGA.R6.A6DQ.01 TCGA.IG.A3I8.11 TCGA.LN.A4A2.01 TCGA.IC.A6RF.01 TCGA.LN.A49S.01 TCGA.IG.A4QS.01 
#>          "0222"           "034"           "011"           "051"           "012"           "023" 
#> TCGA.L5.A4OG.11 TCGA.L5.A88Y.01 TCGA.L5.A88V.01 TCGA.LN.A7HW.01 TCGA.IG.A8O2.01 TCGA.IG.A7DP.01 
#>           "033"          "0222"          "0223"           "013"           "012"           "034" 
#> TCGA.L5.A8NQ.01 TCGA.LN.A8I0.01 TCGA.JY.A93F.01 TCGA.M9.A5M8.01 TCGA.L5.A4OW.01 TCGA.2H.A9GK.01 
#>           "011"           "011"           "051"          "0222"          "0222"          "0222" 
#> TCGA.L5.A8NW.01 TCGA.R6.A8W5.01 TCGA.L5.A8NH.01 TCGA.2H.A9GR.01 TCGA.L5.A8NV.01 TCGA.XP.A8T8.01 
#>          "0222"            "04"           "023"          "0222"          "0222"           "011" 
#> TCGA.L5.A88Z.01 TCGA.IG.A5B8.01 TCGA.R6.A6XG.01 TCGA.L5.A8NN.01 TCGA.LN.A9FP.01 TCGA.LN.A4MR.01 
#>           "053"           "012"           "023"           "021"           "034"           "012" 
#> TCGA.L5.A8NS.01 TCGA.LN.A4MQ.01 TCGA.LN.A4A9.01 TCGA.VR.A8EX.01 TCGA.JY.A938.01 TCGA.JY.A6FA.01 
#>          "0222"           "013"           "012"           "011"          "0223"           "012" 
#> TCGA.R6.A8WG.01 TCGA.VR.A8EO.01 TCGA.VR.A8EU.01 TCGA.R6.A6L6.01 TCGA.L5.A8NE.01 TCGA.V5.AASX.11 
#>           "021"           "012"           "011"           "021"            "04"          "0221" 
#> TCGA.LN.A8I1.01 TCGA.L5.A893.01 TCGA.IC.A6RF.11 TCGA.L5.A8NU.01 TCGA.R6.A6XQ.01 TCGA.LN.A5U5.01 
#>           "013"          "0222"           "051"           "021"           "021"           "013" 
#> TCGA.Z6.A8JD.01 TCGA.L5.A4OT.01 TCGA.ZR.A9CJ.01 TCGA.Z6.A8JE.01 TCGA.JY.A6FH.01 TCGA.XP.A8T6.01 
#>           "011"          "0221"           "021"           "052"            "04"           "012" 
#> TCGA.R6.A8W8.01 TCGA.JY.A93E.01 TCGA.2H.A9GI.01 TCGA.IG.A6QS.01 TCGA.VR.A8Q7.01 TCGA.R6.A6Y0.01 
#>           "023"          "0222"          "0222"           "052"            "04"            "04" 
#> TCGA.VR.A8EZ.01 TCGA.2H.A9GL.01 TCGA.LN.A8HZ.01 TCGA.L5.A891.01 TCGA.L5.A8NM.01 TCGA.JY.A93D.01 
#>           "013"          "0222"           "011"            "04"          "0222"           "021" 
#> TCGA.XP.A8T7.01 TCGA.L5.A4OX.01 TCGA.R6.A6Y2.01 TCGA.2H.A9GF.01 TCGA.2H.A9GO.01 TCGA.L5.A8NR.01 
#>           "052"          "0222"           "021"           "023"           "021"          "0222" 
#> TCGA.L5.A88S.01 TCGA.VR.A8EW.01 TCGA.VR.A8ER.01 TCGA.L5.A4OU.01 TCGA.JY.A93C.01 TCGA.V5.AASX.01 
#>           "011"           "011"           "013"          "0223"          "0222"          "0222" 
#> TCGA.IG.A97H.01 TCGA.L5.A8NT.01 TCGA.R6.A8WC.01 TCGA.2H.A9GJ.01 TCGA.VR.AA4G.01 TCGA.JY.A6FD.01 
#>           "013"          "0222"          "0221"            "04"           "011"           "011" 
#> TCGA.2H.A9GN.01 TCGA.VR.AA4D.01 TCGA.IG.A97I.01 TCGA.2H.A9GM.01 TCGA.L5.A8NG.01 TCGA.IG.A5S3.01 
#>            "04"           "023"           "013"           "023"          "0222"           "013" 
#> TCGA.IC.A6RE.11 TCGA.IC.A6RE.01 TCGA.2H.A9GG.01 TCGA.LN.A5U6.01 TCGA.LN.A9FQ.01 TCGA.L5.A8NK.01 
#>           "035"           "023"            "04"           "013"           "013"           "011" 
#> TCGA.L5.A4OS.01 TCGA.RE.A7BO.01 TCGA.LN.A9FO.01 TCGA.L5.A8NJ.01 TCGA.JY.A939.01 TCGA.VR.A8EY.01 
#>           "034"          "0221"           "011"          "0221"           "021"           "051" 
#> TCGA.Z6.A9VB.01 TCGA.V5.AASV.01 TCGA.LN.A9FR.01 TCGA.JY.A6F8.01 TCGA.VR.A8EQ.01 TCGA.2H.A9GQ.01 
#>           "052"           "051"           "013"          "0221"          "0222"            "04" 
#> TCGA.L5.A8NL.01 TCGA.2H.A9GH.01 TCGA.L5.A8NF.01 TCGA.L5.A8NI.01 
#>          "0222"          "0221"            "04"            "04"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 16138))
#> TCGA.JY.A6FB.01 TCGA.LN.A49L.01 TCGA.LN.A4A4.01 TCGA.LN.A49M.01 TCGA.Q9.A6FW.01 TCGA.Z6.AAPN.01 
#>           "022"           "053"           "012"           "051"           "022"           "032" 
#> TCGA.Q9.A6FU.01 TCGA.L5.A43C.11 TCGA.S8.A6BW.01 TCGA.S8.A6BV.01 TCGA.V5.A7RC.01 TCGA.VR.A8ET.01 
#>           "011"           "031"           "013"           "022"           "013"           "032" 
#> TCGA.LN.A4A3.01 TCGA.L5.A4OH.11 TCGA.LN.A49X.01 TCGA.L5.A4OI.01 TCGA.LN.A7HV.01 TCGA.R6.A6DN.01 
#>           "011"           "031"           "011"           "022"           "012"           "022" 
#> TCGA.IG.A3YB.01 TCGA.IG.A3YC.01 TCGA.L5.A4OE.11 TCGA.L5.A4OG.01 TCGA.KH.A6WC.01 TCGA.L7.A56G.01 
#>           "053"           "011"           "031"           "022"           "013"           "013" 
#> TCGA.IG.A51D.01 TCGA.VR.A8EP.01 TCGA.L5.A88T.01 TCGA.L5.A4ON.11 TCGA.L5.A43J.01 TCGA.L5.A43E.01 
#>           "052"           "012"           "035"           "032"           "053"           "022" 
#> TCGA.X8.AAAR.01 TCGA.JY.A6FE.01 TCGA.LN.A49N.01 TCGA.L5.A4ON.01 TCGA.V5.AASW.01 TCGA.L5.A43I.01 
#>           "022"           "012"           "011"           "022"           "022"           "023" 
#> TCGA.L5.A4OF.01 TCGA.L5.A4OQ.11 TCGA.IG.A3I8.01 TCGA.VR.AA7B.01 TCGA.L5.A4OJ.01 TCGA.IG.A3Y9.01 
#>           "021"           "032"           "052"           "011"           "022"           "011" 
#> TCGA.L5.A4OM.01 TCGA.LN.A4A6.01 TCGA.LN.A49V.01 TCGA.L5.A4OH.01 TCGA.L5.A4OI.11 TCGA.LN.A49R.01 
#>           "012"           "012"           "053"           "023"           "031"           "012" 
#> TCGA.LN.A49K.01 TCGA.IG.A4QT.01 TCGA.R6.A6L4.01 TCGA.L7.A6VZ.01 TCGA.LN.A49U.01 TCGA.L5.A4OF.11 
#>           "013"           "032"           "021"           "022"           "012"           "031" 
#> TCGA.LN.A7HX.01 TCGA.L5.A4OO.01 TCGA.LN.A4A8.01 TCGA.JY.A6FG.01 TCGA.L5.A4OJ.11 TCGA.LN.A5U7.01 
#>           "012"           "021"           "012"           "051"           "033"           "011" 
#> TCGA.V5.A7RC.06 TCGA.IG.A625.01 TCGA.L5.A4OP.01 TCGA.IG.A4P3.01 TCGA.LN.A49Y.01 TCGA.L5.A43C.01 
#>           "013"           "011"           "023"           "013"           "012"           "021" 
#> TCGA.L5.A88W.01 TCGA.L5.A43H.01 TCGA.L5.A4OE.01 TCGA.IG.A50L.01 TCGA.LN.A7HY.01 TCGA.R6.A6KZ.01 
#>           "051"           "013"           "022"           "011"           "013"           "021" 
#> TCGA.LN.A49P.01 TCGA.L5.A4OM.11 TCGA.LN.A4A1.01 TCGA.LN.A49O.01 TCGA.LN.A4A5.01 TCGA.LN.A49W.01 
#>           "013"           "033"           "012"           "011"           "053"           "013" 
#> TCGA.L5.A4OR.01 TCGA.L5.A43M.01 TCGA.L5.A4OP.11 TCGA.V5.A7RE.01 TCGA.VR.AA7I.01 TCGA.IG.A3YA.01 
#>           "023"            "04"           "033"           "023"           "052"           "011" 
#> TCGA.V5.A7RE.11 TCGA.LN.A7HZ.01 TCGA.VR.AA7D.01 TCGA.V5.A7RB.01 TCGA.L5.A4OQ.01 TCGA.IG.A3QL.01 
#>           "023"           "011"           "052"           "022"            "04"           "011" 
#> TCGA.R6.A6DQ.01 TCGA.IG.A3I8.11 TCGA.LN.A4A2.01 TCGA.IC.A6RF.01 TCGA.LN.A49S.01 TCGA.IG.A4QS.01 
#>           "022"           "034"           "011"           "051"           "012"           "023" 
#> TCGA.L5.A4OG.11 TCGA.L5.A88Y.01 TCGA.L5.A88V.01 TCGA.LN.A7HW.01 TCGA.IG.A8O2.01 TCGA.IG.A7DP.01 
#>           "033"           "022"           "022"           "013"           "012"           "034" 
#> TCGA.L5.A8NQ.01 TCGA.LN.A8I0.01 TCGA.JY.A93F.01 TCGA.M9.A5M8.01 TCGA.L5.A4OW.01 TCGA.2H.A9GK.01 
#>           "011"           "011"           "051"           "022"           "022"           "022" 
#> TCGA.L5.A8NW.01 TCGA.R6.A8W5.01 TCGA.L5.A8NH.01 TCGA.2H.A9GR.01 TCGA.L5.A8NV.01 TCGA.XP.A8T8.01 
#>           "022"            "04"           "023"           "022"           "022"           "011" 
#> TCGA.L5.A88Z.01 TCGA.IG.A5B8.01 TCGA.R6.A6XG.01 TCGA.L5.A8NN.01 TCGA.LN.A9FP.01 TCGA.LN.A4MR.01 
#>           "053"           "012"           "023"           "021"           "034"           "012" 
#> TCGA.L5.A8NS.01 TCGA.LN.A4MQ.01 TCGA.LN.A4A9.01 TCGA.VR.A8EX.01 TCGA.JY.A938.01 TCGA.JY.A6FA.01 
#>           "022"           "013"           "012"           "011"           "022"           "012" 
#> TCGA.R6.A8WG.01 TCGA.VR.A8EO.01 TCGA.VR.A8EU.01 TCGA.R6.A6L6.01 TCGA.L5.A8NE.01 TCGA.V5.AASX.11 
#>           "021"           "012"           "011"           "021"            "04"           "022" 
#> TCGA.LN.A8I1.01 TCGA.L5.A893.01 TCGA.IC.A6RF.11 TCGA.L5.A8NU.01 TCGA.R6.A6XQ.01 TCGA.LN.A5U5.01 
#>           "013"           "022"           "051"           "021"           "021"           "013" 
#> TCGA.Z6.A8JD.01 TCGA.L5.A4OT.01 TCGA.ZR.A9CJ.01 TCGA.Z6.A8JE.01 TCGA.JY.A6FH.01 TCGA.XP.A8T6.01 
#>           "011"           "022"           "021"           "052"            "04"           "012" 
#> TCGA.R6.A8W8.01 TCGA.JY.A93E.01 TCGA.2H.A9GI.01 TCGA.IG.A6QS.01 TCGA.VR.A8Q7.01 TCGA.R6.A6Y0.01 
#>           "023"           "022"           "022"           "052"            "04"            "04" 
#> TCGA.VR.A8EZ.01 TCGA.2H.A9GL.01 TCGA.LN.A8HZ.01 TCGA.L5.A891.01 TCGA.L5.A8NM.01 TCGA.JY.A93D.01 
#>           "013"           "022"           "011"            "04"           "022"           "021" 
#> TCGA.XP.A8T7.01 TCGA.L5.A4OX.01 TCGA.R6.A6Y2.01 TCGA.2H.A9GF.01 TCGA.2H.A9GO.01 TCGA.L5.A8NR.01 
#>           "052"           "022"           "021"           "023"           "021"           "022" 
#> TCGA.L5.A88S.01 TCGA.VR.A8EW.01 TCGA.VR.A8ER.01 TCGA.L5.A4OU.01 TCGA.JY.A93C.01 TCGA.V5.AASX.01 
#>           "011"           "011"           "013"           "022"           "022"           "022" 
#> TCGA.IG.A97H.01 TCGA.L5.A8NT.01 TCGA.R6.A8WC.01 TCGA.2H.A9GJ.01 TCGA.VR.AA4G.01 TCGA.JY.A6FD.01 
#>           "013"           "022"           "022"            "04"           "011"           "011" 
#> TCGA.2H.A9GN.01 TCGA.VR.AA4D.01 TCGA.IG.A97I.01 TCGA.2H.A9GM.01 TCGA.L5.A8NG.01 TCGA.IG.A5S3.01 
#>            "04"           "023"           "013"           "023"           "022"           "013" 
#> TCGA.IC.A6RE.11 TCGA.IC.A6RE.01 TCGA.2H.A9GG.01 TCGA.LN.A5U6.01 TCGA.LN.A9FQ.01 TCGA.L5.A8NK.01 
#>           "035"           "023"            "04"           "013"           "013"           "011" 
#> TCGA.L5.A4OS.01 TCGA.RE.A7BO.01 TCGA.LN.A9FO.01 TCGA.L5.A8NJ.01 TCGA.JY.A939.01 TCGA.VR.A8EY.01 
#>           "034"           "022"           "011"           "022"           "021"           "051" 
#> TCGA.Z6.A9VB.01 TCGA.V5.AASV.01 TCGA.LN.A9FR.01 TCGA.JY.A6F8.01 TCGA.VR.A8EQ.01 TCGA.2H.A9GQ.01 
#>           "052"           "051"           "013"           "022"           "022"            "04" 
#> TCGA.L5.A8NL.01 TCGA.2H.A9GH.01 TCGA.L5.A8NF.01 TCGA.L5.A8NI.01 
#>           "022"           "022"            "04"            "04"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 18356))
#> TCGA.JY.A6FB.01 TCGA.LN.A49L.01 TCGA.LN.A4A4.01 TCGA.LN.A49M.01 TCGA.Q9.A6FW.01 TCGA.Z6.AAPN.01 
#>            "02"           "053"           "012"           "051"            "02"           "032" 
#> TCGA.Q9.A6FU.01 TCGA.L5.A43C.11 TCGA.S8.A6BW.01 TCGA.S8.A6BV.01 TCGA.V5.A7RC.01 TCGA.VR.A8ET.01 
#>           "011"           "031"           "013"            "02"           "013"           "032" 
#> TCGA.LN.A4A3.01 TCGA.L5.A4OH.11 TCGA.LN.A49X.01 TCGA.L5.A4OI.01 TCGA.LN.A7HV.01 TCGA.R6.A6DN.01 
#>           "011"           "031"           "011"            "02"           "012"            "02" 
#> TCGA.IG.A3YB.01 TCGA.IG.A3YC.01 TCGA.L5.A4OE.11 TCGA.L5.A4OG.01 TCGA.KH.A6WC.01 TCGA.L7.A56G.01 
#>           "053"           "011"           "031"            "02"           "013"           "013" 
#> TCGA.IG.A51D.01 TCGA.VR.A8EP.01 TCGA.L5.A88T.01 TCGA.L5.A4ON.11 TCGA.L5.A43J.01 TCGA.L5.A43E.01 
#>           "052"           "012"           "035"           "032"           "053"            "02" 
#> TCGA.X8.AAAR.01 TCGA.JY.A6FE.01 TCGA.LN.A49N.01 TCGA.L5.A4ON.01 TCGA.V5.AASW.01 TCGA.L5.A43I.01 
#>            "02"           "012"           "011"            "02"            "02"            "02" 
#> TCGA.L5.A4OF.01 TCGA.L5.A4OQ.11 TCGA.IG.A3I8.01 TCGA.VR.AA7B.01 TCGA.L5.A4OJ.01 TCGA.IG.A3Y9.01 
#>            "02"           "032"           "052"           "011"            "02"           "011" 
#> TCGA.L5.A4OM.01 TCGA.LN.A4A6.01 TCGA.LN.A49V.01 TCGA.L5.A4OH.01 TCGA.L5.A4OI.11 TCGA.LN.A49R.01 
#>           "012"           "012"           "053"            "02"           "031"           "012" 
#> TCGA.LN.A49K.01 TCGA.IG.A4QT.01 TCGA.R6.A6L4.01 TCGA.L7.A6VZ.01 TCGA.LN.A49U.01 TCGA.L5.A4OF.11 
#>           "013"           "032"            "02"            "02"           "012"           "031" 
#> TCGA.LN.A7HX.01 TCGA.L5.A4OO.01 TCGA.LN.A4A8.01 TCGA.JY.A6FG.01 TCGA.L5.A4OJ.11 TCGA.LN.A5U7.01 
#>           "012"            "02"           "012"           "051"           "033"           "011" 
#> TCGA.V5.A7RC.06 TCGA.IG.A625.01 TCGA.L5.A4OP.01 TCGA.IG.A4P3.01 TCGA.LN.A49Y.01 TCGA.L5.A43C.01 
#>           "013"           "011"            "02"           "013"           "012"            "02" 
#> TCGA.L5.A88W.01 TCGA.L5.A43H.01 TCGA.L5.A4OE.01 TCGA.IG.A50L.01 TCGA.LN.A7HY.01 TCGA.R6.A6KZ.01 
#>           "051"           "013"            "02"           "011"           "013"            "02" 
#> TCGA.LN.A49P.01 TCGA.L5.A4OM.11 TCGA.LN.A4A1.01 TCGA.LN.A49O.01 TCGA.LN.A4A5.01 TCGA.LN.A49W.01 
#>           "013"           "033"           "012"           "011"           "053"           "013" 
#> TCGA.L5.A4OR.01 TCGA.L5.A43M.01 TCGA.L5.A4OP.11 TCGA.V5.A7RE.01 TCGA.VR.AA7I.01 TCGA.IG.A3YA.01 
#>            "02"            "04"           "033"            "02"           "052"           "011" 
#> TCGA.V5.A7RE.11 TCGA.LN.A7HZ.01 TCGA.VR.AA7D.01 TCGA.V5.A7RB.01 TCGA.L5.A4OQ.01 TCGA.IG.A3QL.01 
#>            "02"           "011"           "052"            "02"            "04"           "011" 
#> TCGA.R6.A6DQ.01 TCGA.IG.A3I8.11 TCGA.LN.A4A2.01 TCGA.IC.A6RF.01 TCGA.LN.A49S.01 TCGA.IG.A4QS.01 
#>            "02"           "034"           "011"           "051"           "012"            "02" 
#> TCGA.L5.A4OG.11 TCGA.L5.A88Y.01 TCGA.L5.A88V.01 TCGA.LN.A7HW.01 TCGA.IG.A8O2.01 TCGA.IG.A7DP.01 
#>           "033"            "02"            "02"           "013"           "012"           "034" 
#> TCGA.L5.A8NQ.01 TCGA.LN.A8I0.01 TCGA.JY.A93F.01 TCGA.M9.A5M8.01 TCGA.L5.A4OW.01 TCGA.2H.A9GK.01 
#>           "011"           "011"           "051"            "02"            "02"            "02" 
#> TCGA.L5.A8NW.01 TCGA.R6.A8W5.01 TCGA.L5.A8NH.01 TCGA.2H.A9GR.01 TCGA.L5.A8NV.01 TCGA.XP.A8T8.01 
#>            "02"            "04"            "02"            "02"            "02"           "011" 
#> TCGA.L5.A88Z.01 TCGA.IG.A5B8.01 TCGA.R6.A6XG.01 TCGA.L5.A8NN.01 TCGA.LN.A9FP.01 TCGA.LN.A4MR.01 
#>           "053"           "012"            "02"            "02"           "034"           "012" 
#> TCGA.L5.A8NS.01 TCGA.LN.A4MQ.01 TCGA.LN.A4A9.01 TCGA.VR.A8EX.01 TCGA.JY.A938.01 TCGA.JY.A6FA.01 
#>            "02"           "013"           "012"           "011"            "02"           "012" 
#> TCGA.R6.A8WG.01 TCGA.VR.A8EO.01 TCGA.VR.A8EU.01 TCGA.R6.A6L6.01 TCGA.L5.A8NE.01 TCGA.V5.AASX.11 
#>            "02"           "012"           "011"            "02"            "04"            "02" 
#> TCGA.LN.A8I1.01 TCGA.L5.A893.01 TCGA.IC.A6RF.11 TCGA.L5.A8NU.01 TCGA.R6.A6XQ.01 TCGA.LN.A5U5.01 
#>           "013"            "02"           "051"            "02"            "02"           "013" 
#> TCGA.Z6.A8JD.01 TCGA.L5.A4OT.01 TCGA.ZR.A9CJ.01 TCGA.Z6.A8JE.01 TCGA.JY.A6FH.01 TCGA.XP.A8T6.01 
#>           "011"            "02"            "02"           "052"            "04"           "012" 
#> TCGA.R6.A8W8.01 TCGA.JY.A93E.01 TCGA.2H.A9GI.01 TCGA.IG.A6QS.01 TCGA.VR.A8Q7.01 TCGA.R6.A6Y0.01 
#>            "02"            "02"            "02"           "052"            "04"            "04" 
#> TCGA.VR.A8EZ.01 TCGA.2H.A9GL.01 TCGA.LN.A8HZ.01 TCGA.L5.A891.01 TCGA.L5.A8NM.01 TCGA.JY.A93D.01 
#>           "013"            "02"           "011"            "04"            "02"            "02" 
#> TCGA.XP.A8T7.01 TCGA.L5.A4OX.01 TCGA.R6.A6Y2.01 TCGA.2H.A9GF.01 TCGA.2H.A9GO.01 TCGA.L5.A8NR.01 
#>           "052"            "02"            "02"            "02"            "02"            "02" 
#> TCGA.L5.A88S.01 TCGA.VR.A8EW.01 TCGA.VR.A8ER.01 TCGA.L5.A4OU.01 TCGA.JY.A93C.01 TCGA.V5.AASX.01 
#>           "011"           "011"           "013"            "02"            "02"            "02" 
#> TCGA.IG.A97H.01 TCGA.L5.A8NT.01 TCGA.R6.A8WC.01 TCGA.2H.A9GJ.01 TCGA.VR.AA4G.01 TCGA.JY.A6FD.01 
#>           "013"            "02"            "02"            "04"           "011"           "011" 
#> TCGA.2H.A9GN.01 TCGA.VR.AA4D.01 TCGA.IG.A97I.01 TCGA.2H.A9GM.01 TCGA.L5.A8NG.01 TCGA.IG.A5S3.01 
#>            "04"            "02"           "013"            "02"            "02"           "013" 
#> TCGA.IC.A6RE.11 TCGA.IC.A6RE.01 TCGA.2H.A9GG.01 TCGA.LN.A5U6.01 TCGA.LN.A9FQ.01 TCGA.L5.A8NK.01 
#>           "035"            "02"            "04"           "013"           "013"           "011" 
#> TCGA.L5.A4OS.01 TCGA.RE.A7BO.01 TCGA.LN.A9FO.01 TCGA.L5.A8NJ.01 TCGA.JY.A939.01 TCGA.VR.A8EY.01 
#>           "034"            "02"           "011"            "02"            "02"           "051" 
#> TCGA.Z6.A9VB.01 TCGA.V5.AASV.01 TCGA.LN.A9FR.01 TCGA.JY.A6F8.01 TCGA.VR.A8EQ.01 TCGA.2H.A9GQ.01 
#>           "052"           "051"           "013"            "02"            "02"            "04" 
#> TCGA.L5.A8NL.01 TCGA.2H.A9GH.01 TCGA.L5.A8NF.01 TCGA.L5.A8NI.01 
#>            "02"            "02"            "04"            "04"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 34722))
#> TCGA.JY.A6FB.01 TCGA.LN.A49L.01 TCGA.LN.A4A4.01 TCGA.LN.A49M.01 TCGA.Q9.A6FW.01 TCGA.Z6.AAPN.01 
#>            "02"           "053"            "01"           "051"            "02"           "032" 
#> TCGA.Q9.A6FU.01 TCGA.L5.A43C.11 TCGA.S8.A6BW.01 TCGA.S8.A6BV.01 TCGA.V5.A7RC.01 TCGA.VR.A8ET.01 
#>            "01"           "031"            "01"            "02"            "01"           "032" 
#> TCGA.LN.A4A3.01 TCGA.L5.A4OH.11 TCGA.LN.A49X.01 TCGA.L5.A4OI.01 TCGA.LN.A7HV.01 TCGA.R6.A6DN.01 
#>            "01"           "031"            "01"            "02"            "01"            "02" 
#> TCGA.IG.A3YB.01 TCGA.IG.A3YC.01 TCGA.L5.A4OE.11 TCGA.L5.A4OG.01 TCGA.KH.A6WC.01 TCGA.L7.A56G.01 
#>           "053"            "01"           "031"            "02"            "01"            "01" 
#> TCGA.IG.A51D.01 TCGA.VR.A8EP.01 TCGA.L5.A88T.01 TCGA.L5.A4ON.11 TCGA.L5.A43J.01 TCGA.L5.A43E.01 
#>           "052"            "01"           "035"           "032"           "053"            "02" 
#> TCGA.X8.AAAR.01 TCGA.JY.A6FE.01 TCGA.LN.A49N.01 TCGA.L5.A4ON.01 TCGA.V5.AASW.01 TCGA.L5.A43I.01 
#>            "02"            "01"            "01"            "02"            "02"            "02" 
#> TCGA.L5.A4OF.01 TCGA.L5.A4OQ.11 TCGA.IG.A3I8.01 TCGA.VR.AA7B.01 TCGA.L5.A4OJ.01 TCGA.IG.A3Y9.01 
#>            "02"           "032"           "052"            "01"            "02"            "01" 
#> TCGA.L5.A4OM.01 TCGA.LN.A4A6.01 TCGA.LN.A49V.01 TCGA.L5.A4OH.01 TCGA.L5.A4OI.11 TCGA.LN.A49R.01 
#>            "01"            "01"           "053"            "02"           "031"            "01" 
#> TCGA.LN.A49K.01 TCGA.IG.A4QT.01 TCGA.R6.A6L4.01 TCGA.L7.A6VZ.01 TCGA.LN.A49U.01 TCGA.L5.A4OF.11 
#>            "01"           "032"            "02"            "02"            "01"           "031" 
#> TCGA.LN.A7HX.01 TCGA.L5.A4OO.01 TCGA.LN.A4A8.01 TCGA.JY.A6FG.01 TCGA.L5.A4OJ.11 TCGA.LN.A5U7.01 
#>            "01"            "02"            "01"           "051"           "033"            "01" 
#> TCGA.V5.A7RC.06 TCGA.IG.A625.01 TCGA.L5.A4OP.01 TCGA.IG.A4P3.01 TCGA.LN.A49Y.01 TCGA.L5.A43C.01 
#>            "01"            "01"            "02"            "01"            "01"            "02" 
#> TCGA.L5.A88W.01 TCGA.L5.A43H.01 TCGA.L5.A4OE.01 TCGA.IG.A50L.01 TCGA.LN.A7HY.01 TCGA.R6.A6KZ.01 
#>           "051"            "01"            "02"            "01"            "01"            "02" 
#> TCGA.LN.A49P.01 TCGA.L5.A4OM.11 TCGA.LN.A4A1.01 TCGA.LN.A49O.01 TCGA.LN.A4A5.01 TCGA.LN.A49W.01 
#>            "01"           "033"            "01"            "01"           "053"            "01" 
#> TCGA.L5.A4OR.01 TCGA.L5.A43M.01 TCGA.L5.A4OP.11 TCGA.V5.A7RE.01 TCGA.VR.AA7I.01 TCGA.IG.A3YA.01 
#>            "02"            "04"           "033"            "02"           "052"            "01" 
#> TCGA.V5.A7RE.11 TCGA.LN.A7HZ.01 TCGA.VR.AA7D.01 TCGA.V5.A7RB.01 TCGA.L5.A4OQ.01 TCGA.IG.A3QL.01 
#>            "02"            "01"           "052"            "02"            "04"            "01" 
#> TCGA.R6.A6DQ.01 TCGA.IG.A3I8.11 TCGA.LN.A4A2.01 TCGA.IC.A6RF.01 TCGA.LN.A49S.01 TCGA.IG.A4QS.01 
#>            "02"           "034"            "01"           "051"            "01"            "02" 
#> TCGA.L5.A4OG.11 TCGA.L5.A88Y.01 TCGA.L5.A88V.01 TCGA.LN.A7HW.01 TCGA.IG.A8O2.01 TCGA.IG.A7DP.01 
#>           "033"            "02"            "02"            "01"            "01"           "034" 
#> TCGA.L5.A8NQ.01 TCGA.LN.A8I0.01 TCGA.JY.A93F.01 TCGA.M9.A5M8.01 TCGA.L5.A4OW.01 TCGA.2H.A9GK.01 
#>            "01"            "01"           "051"            "02"            "02"            "02" 
#> TCGA.L5.A8NW.01 TCGA.R6.A8W5.01 TCGA.L5.A8NH.01 TCGA.2H.A9GR.01 TCGA.L5.A8NV.01 TCGA.XP.A8T8.01 
#>            "02"            "04"            "02"            "02"            "02"            "01" 
#> TCGA.L5.A88Z.01 TCGA.IG.A5B8.01 TCGA.R6.A6XG.01 TCGA.L5.A8NN.01 TCGA.LN.A9FP.01 TCGA.LN.A4MR.01 
#>           "053"            "01"            "02"            "02"           "034"            "01" 
#> TCGA.L5.A8NS.01 TCGA.LN.A4MQ.01 TCGA.LN.A4A9.01 TCGA.VR.A8EX.01 TCGA.JY.A938.01 TCGA.JY.A6FA.01 
#>            "02"            "01"            "01"            "01"            "02"            "01" 
#> TCGA.R6.A8WG.01 TCGA.VR.A8EO.01 TCGA.VR.A8EU.01 TCGA.R6.A6L6.01 TCGA.L5.A8NE.01 TCGA.V5.AASX.11 
#>            "02"            "01"            "01"            "02"            "04"            "02" 
#> TCGA.LN.A8I1.01 TCGA.L5.A893.01 TCGA.IC.A6RF.11 TCGA.L5.A8NU.01 TCGA.R6.A6XQ.01 TCGA.LN.A5U5.01 
#>            "01"            "02"           "051"            "02"            "02"            "01" 
#> TCGA.Z6.A8JD.01 TCGA.L5.A4OT.01 TCGA.ZR.A9CJ.01 TCGA.Z6.A8JE.01 TCGA.JY.A6FH.01 TCGA.XP.A8T6.01 
#>            "01"            "02"            "02"           "052"            "04"            "01" 
#> TCGA.R6.A8W8.01 TCGA.JY.A93E.01 TCGA.2H.A9GI.01 TCGA.IG.A6QS.01 TCGA.VR.A8Q7.01 TCGA.R6.A6Y0.01 
#>            "02"            "02"            "02"           "052"            "04"            "04" 
#> TCGA.VR.A8EZ.01 TCGA.2H.A9GL.01 TCGA.LN.A8HZ.01 TCGA.L5.A891.01 TCGA.L5.A8NM.01 TCGA.JY.A93D.01 
#>            "01"            "02"            "01"            "04"            "02"            "02" 
#> TCGA.XP.A8T7.01 TCGA.L5.A4OX.01 TCGA.R6.A6Y2.01 TCGA.2H.A9GF.01 TCGA.2H.A9GO.01 TCGA.L5.A8NR.01 
#>           "052"            "02"            "02"            "02"            "02"            "02" 
#> TCGA.L5.A88S.01 TCGA.VR.A8EW.01 TCGA.VR.A8ER.01 TCGA.L5.A4OU.01 TCGA.JY.A93C.01 TCGA.V5.AASX.01 
#>            "01"            "01"            "01"            "02"            "02"            "02" 
#> TCGA.IG.A97H.01 TCGA.L5.A8NT.01 TCGA.R6.A8WC.01 TCGA.2H.A9GJ.01 TCGA.VR.AA4G.01 TCGA.JY.A6FD.01 
#>            "01"            "02"            "02"            "04"            "01"            "01" 
#> TCGA.2H.A9GN.01 TCGA.VR.AA4D.01 TCGA.IG.A97I.01 TCGA.2H.A9GM.01 TCGA.L5.A8NG.01 TCGA.IG.A5S3.01 
#>            "04"            "02"            "01"            "02"            "02"            "01" 
#> TCGA.IC.A6RE.11 TCGA.IC.A6RE.01 TCGA.2H.A9GG.01 TCGA.LN.A5U6.01 TCGA.LN.A9FQ.01 TCGA.L5.A8NK.01 
#>           "035"            "02"            "04"            "01"            "01"            "01" 
#> TCGA.L5.A4OS.01 TCGA.RE.A7BO.01 TCGA.LN.A9FO.01 TCGA.L5.A8NJ.01 TCGA.JY.A939.01 TCGA.VR.A8EY.01 
#>           "034"            "02"            "01"            "02"            "02"           "051" 
#> TCGA.Z6.A9VB.01 TCGA.V5.AASV.01 TCGA.LN.A9FR.01 TCGA.JY.A6F8.01 TCGA.VR.A8EQ.01 TCGA.2H.A9GQ.01 
#>           "052"           "051"            "01"            "02"            "02"            "04" 
#> TCGA.L5.A8NL.01 TCGA.2H.A9GH.01 TCGA.L5.A8NF.01 TCGA.L5.A8NI.01 
#>            "02"            "02"            "04"            "04"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 37386))
#> TCGA.JY.A6FB.01 TCGA.LN.A49L.01 TCGA.LN.A4A4.01 TCGA.LN.A49M.01 TCGA.Q9.A6FW.01 TCGA.Z6.AAPN.01 
#>            "02"           "053"            "01"           "051"            "02"            "03" 
#> TCGA.Q9.A6FU.01 TCGA.L5.A43C.11 TCGA.S8.A6BW.01 TCGA.S8.A6BV.01 TCGA.V5.A7RC.01 TCGA.VR.A8ET.01 
#>            "01"            "03"            "01"            "02"            "01"            "03" 
#> TCGA.LN.A4A3.01 TCGA.L5.A4OH.11 TCGA.LN.A49X.01 TCGA.L5.A4OI.01 TCGA.LN.A7HV.01 TCGA.R6.A6DN.01 
#>            "01"            "03"            "01"            "02"            "01"            "02" 
#> TCGA.IG.A3YB.01 TCGA.IG.A3YC.01 TCGA.L5.A4OE.11 TCGA.L5.A4OG.01 TCGA.KH.A6WC.01 TCGA.L7.A56G.01 
#>           "053"            "01"            "03"            "02"            "01"            "01" 
#> TCGA.IG.A51D.01 TCGA.VR.A8EP.01 TCGA.L5.A88T.01 TCGA.L5.A4ON.11 TCGA.L5.A43J.01 TCGA.L5.A43E.01 
#>           "052"            "01"            "03"            "03"           "053"            "02" 
#> TCGA.X8.AAAR.01 TCGA.JY.A6FE.01 TCGA.LN.A49N.01 TCGA.L5.A4ON.01 TCGA.V5.AASW.01 TCGA.L5.A43I.01 
#>            "02"            "01"            "01"            "02"            "02"            "02" 
#> TCGA.L5.A4OF.01 TCGA.L5.A4OQ.11 TCGA.IG.A3I8.01 TCGA.VR.AA7B.01 TCGA.L5.A4OJ.01 TCGA.IG.A3Y9.01 
#>            "02"            "03"           "052"            "01"            "02"            "01" 
#> TCGA.L5.A4OM.01 TCGA.LN.A4A6.01 TCGA.LN.A49V.01 TCGA.L5.A4OH.01 TCGA.L5.A4OI.11 TCGA.LN.A49R.01 
#>            "01"            "01"           "053"            "02"            "03"            "01" 
#> TCGA.LN.A49K.01 TCGA.IG.A4QT.01 TCGA.R6.A6L4.01 TCGA.L7.A6VZ.01 TCGA.LN.A49U.01 TCGA.L5.A4OF.11 
#>            "01"            "03"            "02"            "02"            "01"            "03" 
#> TCGA.LN.A7HX.01 TCGA.L5.A4OO.01 TCGA.LN.A4A8.01 TCGA.JY.A6FG.01 TCGA.L5.A4OJ.11 TCGA.LN.A5U7.01 
#>            "01"            "02"            "01"           "051"            "03"            "01" 
#> TCGA.V5.A7RC.06 TCGA.IG.A625.01 TCGA.L5.A4OP.01 TCGA.IG.A4P3.01 TCGA.LN.A49Y.01 TCGA.L5.A43C.01 
#>            "01"            "01"            "02"            "01"            "01"            "02" 
#> TCGA.L5.A88W.01 TCGA.L5.A43H.01 TCGA.L5.A4OE.01 TCGA.IG.A50L.01 TCGA.LN.A7HY.01 TCGA.R6.A6KZ.01 
#>           "051"            "01"            "02"            "01"            "01"            "02" 
#> TCGA.LN.A49P.01 TCGA.L5.A4OM.11 TCGA.LN.A4A1.01 TCGA.LN.A49O.01 TCGA.LN.A4A5.01 TCGA.LN.A49W.01 
#>            "01"            "03"            "01"            "01"           "053"            "01" 
#> TCGA.L5.A4OR.01 TCGA.L5.A43M.01 TCGA.L5.A4OP.11 TCGA.V5.A7RE.01 TCGA.VR.AA7I.01 TCGA.IG.A3YA.01 
#>            "02"            "04"            "03"            "02"           "052"            "01" 
#> TCGA.V5.A7RE.11 TCGA.LN.A7HZ.01 TCGA.VR.AA7D.01 TCGA.V5.A7RB.01 TCGA.L5.A4OQ.01 TCGA.IG.A3QL.01 
#>            "02"            "01"           "052"            "02"            "04"            "01" 
#> TCGA.R6.A6DQ.01 TCGA.IG.A3I8.11 TCGA.LN.A4A2.01 TCGA.IC.A6RF.01 TCGA.LN.A49S.01 TCGA.IG.A4QS.01 
#>            "02"            "03"            "01"           "051"            "01"            "02" 
#> TCGA.L5.A4OG.11 TCGA.L5.A88Y.01 TCGA.L5.A88V.01 TCGA.LN.A7HW.01 TCGA.IG.A8O2.01 TCGA.IG.A7DP.01 
#>            "03"            "02"            "02"            "01"            "01"            "03" 
#> TCGA.L5.A8NQ.01 TCGA.LN.A8I0.01 TCGA.JY.A93F.01 TCGA.M9.A5M8.01 TCGA.L5.A4OW.01 TCGA.2H.A9GK.01 
#>            "01"            "01"           "051"            "02"            "02"            "02" 
#> TCGA.L5.A8NW.01 TCGA.R6.A8W5.01 TCGA.L5.A8NH.01 TCGA.2H.A9GR.01 TCGA.L5.A8NV.01 TCGA.XP.A8T8.01 
#>            "02"            "04"            "02"            "02"            "02"            "01" 
#> TCGA.L5.A88Z.01 TCGA.IG.A5B8.01 TCGA.R6.A6XG.01 TCGA.L5.A8NN.01 TCGA.LN.A9FP.01 TCGA.LN.A4MR.01 
#>           "053"            "01"            "02"            "02"            "03"            "01" 
#> TCGA.L5.A8NS.01 TCGA.LN.A4MQ.01 TCGA.LN.A4A9.01 TCGA.VR.A8EX.01 TCGA.JY.A938.01 TCGA.JY.A6FA.01 
#>            "02"            "01"            "01"            "01"            "02"            "01" 
#> TCGA.R6.A8WG.01 TCGA.VR.A8EO.01 TCGA.VR.A8EU.01 TCGA.R6.A6L6.01 TCGA.L5.A8NE.01 TCGA.V5.AASX.11 
#>            "02"            "01"            "01"            "02"            "04"            "02" 
#> TCGA.LN.A8I1.01 TCGA.L5.A893.01 TCGA.IC.A6RF.11 TCGA.L5.A8NU.01 TCGA.R6.A6XQ.01 TCGA.LN.A5U5.01 
#>            "01"            "02"           "051"            "02"            "02"            "01" 
#> TCGA.Z6.A8JD.01 TCGA.L5.A4OT.01 TCGA.ZR.A9CJ.01 TCGA.Z6.A8JE.01 TCGA.JY.A6FH.01 TCGA.XP.A8T6.01 
#>            "01"            "02"            "02"           "052"            "04"            "01" 
#> TCGA.R6.A8W8.01 TCGA.JY.A93E.01 TCGA.2H.A9GI.01 TCGA.IG.A6QS.01 TCGA.VR.A8Q7.01 TCGA.R6.A6Y0.01 
#>            "02"            "02"            "02"           "052"            "04"            "04" 
#> TCGA.VR.A8EZ.01 TCGA.2H.A9GL.01 TCGA.LN.A8HZ.01 TCGA.L5.A891.01 TCGA.L5.A8NM.01 TCGA.JY.A93D.01 
#>            "01"            "02"            "01"            "04"            "02"            "02" 
#> TCGA.XP.A8T7.01 TCGA.L5.A4OX.01 TCGA.R6.A6Y2.01 TCGA.2H.A9GF.01 TCGA.2H.A9GO.01 TCGA.L5.A8NR.01 
#>           "052"            "02"            "02"            "02"            "02"            "02" 
#> TCGA.L5.A88S.01 TCGA.VR.A8EW.01 TCGA.VR.A8ER.01 TCGA.L5.A4OU.01 TCGA.JY.A93C.01 TCGA.V5.AASX.01 
#>            "01"            "01"            "01"            "02"            "02"            "02" 
#> TCGA.IG.A97H.01 TCGA.L5.A8NT.01 TCGA.R6.A8WC.01 TCGA.2H.A9GJ.01 TCGA.VR.AA4G.01 TCGA.JY.A6FD.01 
#>            "01"            "02"            "02"            "04"            "01"            "01" 
#> TCGA.2H.A9GN.01 TCGA.VR.AA4D.01 TCGA.IG.A97I.01 TCGA.2H.A9GM.01 TCGA.L5.A8NG.01 TCGA.IG.A5S3.01 
#>            "04"            "02"            "01"            "02"            "02"            "01" 
#> TCGA.IC.A6RE.11 TCGA.IC.A6RE.01 TCGA.2H.A9GG.01 TCGA.LN.A5U6.01 TCGA.LN.A9FQ.01 TCGA.L5.A8NK.01 
#>            "03"            "02"            "04"            "01"            "01"            "01" 
#> TCGA.L5.A4OS.01 TCGA.RE.A7BO.01 TCGA.LN.A9FO.01 TCGA.L5.A8NJ.01 TCGA.JY.A939.01 TCGA.VR.A8EY.01 
#>            "03"            "02"            "01"            "02"            "02"           "051" 
#> TCGA.Z6.A9VB.01 TCGA.V5.AASV.01 TCGA.LN.A9FR.01 TCGA.JY.A6F8.01 TCGA.VR.A8EQ.01 TCGA.2H.A9GQ.01 
#>           "052"           "051"            "01"            "02"            "02"            "04" 
#> TCGA.L5.A8NL.01 TCGA.2H.A9GH.01 TCGA.L5.A8NF.01 TCGA.L5.A8NI.01 
#>            "02"            "02"            "04"            "04"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 67663))
#> TCGA.JY.A6FB.01 TCGA.LN.A49L.01 TCGA.LN.A4A4.01 TCGA.LN.A49M.01 TCGA.Q9.A6FW.01 TCGA.Z6.AAPN.01 
#>            "02"            "05"            "01"            "05"            "02"            "03" 
#> TCGA.Q9.A6FU.01 TCGA.L5.A43C.11 TCGA.S8.A6BW.01 TCGA.S8.A6BV.01 TCGA.V5.A7RC.01 TCGA.VR.A8ET.01 
#>            "01"            "03"            "01"            "02"            "01"            "03" 
#> TCGA.LN.A4A3.01 TCGA.L5.A4OH.11 TCGA.LN.A49X.01 TCGA.L5.A4OI.01 TCGA.LN.A7HV.01 TCGA.R6.A6DN.01 
#>            "01"            "03"            "01"            "02"            "01"            "02" 
#> TCGA.IG.A3YB.01 TCGA.IG.A3YC.01 TCGA.L5.A4OE.11 TCGA.L5.A4OG.01 TCGA.KH.A6WC.01 TCGA.L7.A56G.01 
#>            "05"            "01"            "03"            "02"            "01"            "01" 
#> TCGA.IG.A51D.01 TCGA.VR.A8EP.01 TCGA.L5.A88T.01 TCGA.L5.A4ON.11 TCGA.L5.A43J.01 TCGA.L5.A43E.01 
#>            "05"            "01"            "03"            "03"            "05"            "02" 
#> TCGA.X8.AAAR.01 TCGA.JY.A6FE.01 TCGA.LN.A49N.01 TCGA.L5.A4ON.01 TCGA.V5.AASW.01 TCGA.L5.A43I.01 
#>            "02"            "01"            "01"            "02"            "02"            "02" 
#> TCGA.L5.A4OF.01 TCGA.L5.A4OQ.11 TCGA.IG.A3I8.01 TCGA.VR.AA7B.01 TCGA.L5.A4OJ.01 TCGA.IG.A3Y9.01 
#>            "02"            "03"            "05"            "01"            "02"            "01" 
#> TCGA.L5.A4OM.01 TCGA.LN.A4A6.01 TCGA.LN.A49V.01 TCGA.L5.A4OH.01 TCGA.L5.A4OI.11 TCGA.LN.A49R.01 
#>            "01"            "01"            "05"            "02"            "03"            "01" 
#> TCGA.LN.A49K.01 TCGA.IG.A4QT.01 TCGA.R6.A6L4.01 TCGA.L7.A6VZ.01 TCGA.LN.A49U.01 TCGA.L5.A4OF.11 
#>            "01"            "03"            "02"            "02"            "01"            "03" 
#> TCGA.LN.A7HX.01 TCGA.L5.A4OO.01 TCGA.LN.A4A8.01 TCGA.JY.A6FG.01 TCGA.L5.A4OJ.11 TCGA.LN.A5U7.01 
#>            "01"            "02"            "01"            "05"            "03"            "01" 
#> TCGA.V5.A7RC.06 TCGA.IG.A625.01 TCGA.L5.A4OP.01 TCGA.IG.A4P3.01 TCGA.LN.A49Y.01 TCGA.L5.A43C.01 
#>            "01"            "01"            "02"            "01"            "01"            "02" 
#> TCGA.L5.A88W.01 TCGA.L5.A43H.01 TCGA.L5.A4OE.01 TCGA.IG.A50L.01 TCGA.LN.A7HY.01 TCGA.R6.A6KZ.01 
#>            "05"            "01"            "02"            "01"            "01"            "02" 
#> TCGA.LN.A49P.01 TCGA.L5.A4OM.11 TCGA.LN.A4A1.01 TCGA.LN.A49O.01 TCGA.LN.A4A5.01 TCGA.LN.A49W.01 
#>            "01"            "03"            "01"            "01"            "05"            "01" 
#> TCGA.L5.A4OR.01 TCGA.L5.A43M.01 TCGA.L5.A4OP.11 TCGA.V5.A7RE.01 TCGA.VR.AA7I.01 TCGA.IG.A3YA.01 
#>            "02"            "04"            "03"            "02"            "05"            "01" 
#> TCGA.V5.A7RE.11 TCGA.LN.A7HZ.01 TCGA.VR.AA7D.01 TCGA.V5.A7RB.01 TCGA.L5.A4OQ.01 TCGA.IG.A3QL.01 
#>            "02"            "01"            "05"            "02"            "04"            "01" 
#> TCGA.R6.A6DQ.01 TCGA.IG.A3I8.11 TCGA.LN.A4A2.01 TCGA.IC.A6RF.01 TCGA.LN.A49S.01 TCGA.IG.A4QS.01 
#>            "02"            "03"            "01"            "05"            "01"            "02" 
#> TCGA.L5.A4OG.11 TCGA.L5.A88Y.01 TCGA.L5.A88V.01 TCGA.LN.A7HW.01 TCGA.IG.A8O2.01 TCGA.IG.A7DP.01 
#>            "03"            "02"            "02"            "01"            "01"            "03" 
#> TCGA.L5.A8NQ.01 TCGA.LN.A8I0.01 TCGA.JY.A93F.01 TCGA.M9.A5M8.01 TCGA.L5.A4OW.01 TCGA.2H.A9GK.01 
#>            "01"            "01"            "05"            "02"            "02"            "02" 
#> TCGA.L5.A8NW.01 TCGA.R6.A8W5.01 TCGA.L5.A8NH.01 TCGA.2H.A9GR.01 TCGA.L5.A8NV.01 TCGA.XP.A8T8.01 
#>            "02"            "04"            "02"            "02"            "02"            "01" 
#> TCGA.L5.A88Z.01 TCGA.IG.A5B8.01 TCGA.R6.A6XG.01 TCGA.L5.A8NN.01 TCGA.LN.A9FP.01 TCGA.LN.A4MR.01 
#>            "05"            "01"            "02"            "02"            "03"            "01" 
#> TCGA.L5.A8NS.01 TCGA.LN.A4MQ.01 TCGA.LN.A4A9.01 TCGA.VR.A8EX.01 TCGA.JY.A938.01 TCGA.JY.A6FA.01 
#>            "02"            "01"            "01"            "01"            "02"            "01" 
#> TCGA.R6.A8WG.01 TCGA.VR.A8EO.01 TCGA.VR.A8EU.01 TCGA.R6.A6L6.01 TCGA.L5.A8NE.01 TCGA.V5.AASX.11 
#>            "02"            "01"            "01"            "02"            "04"            "02" 
#> TCGA.LN.A8I1.01 TCGA.L5.A893.01 TCGA.IC.A6RF.11 TCGA.L5.A8NU.01 TCGA.R6.A6XQ.01 TCGA.LN.A5U5.01 
#>            "01"            "02"            "05"            "02"            "02"            "01" 
#> TCGA.Z6.A8JD.01 TCGA.L5.A4OT.01 TCGA.ZR.A9CJ.01 TCGA.Z6.A8JE.01 TCGA.JY.A6FH.01 TCGA.XP.A8T6.01 
#>            "01"            "02"            "02"            "05"            "04"            "01" 
#> TCGA.R6.A8W8.01 TCGA.JY.A93E.01 TCGA.2H.A9GI.01 TCGA.IG.A6QS.01 TCGA.VR.A8Q7.01 TCGA.R6.A6Y0.01 
#>            "02"            "02"            "02"            "05"            "04"            "04" 
#> TCGA.VR.A8EZ.01 TCGA.2H.A9GL.01 TCGA.LN.A8HZ.01 TCGA.L5.A891.01 TCGA.L5.A8NM.01 TCGA.JY.A93D.01 
#>            "01"            "02"            "01"            "04"            "02"            "02" 
#> TCGA.XP.A8T7.01 TCGA.L5.A4OX.01 TCGA.R6.A6Y2.01 TCGA.2H.A9GF.01 TCGA.2H.A9GO.01 TCGA.L5.A8NR.01 
#>            "05"            "02"            "02"            "02"            "02"            "02" 
#> TCGA.L5.A88S.01 TCGA.VR.A8EW.01 TCGA.VR.A8ER.01 TCGA.L5.A4OU.01 TCGA.JY.A93C.01 TCGA.V5.AASX.01 
#>            "01"            "01"            "01"            "02"            "02"            "02" 
#> TCGA.IG.A97H.01 TCGA.L5.A8NT.01 TCGA.R6.A8WC.01 TCGA.2H.A9GJ.01 TCGA.VR.AA4G.01 TCGA.JY.A6FD.01 
#>            "01"            "02"            "02"            "04"            "01"            "01" 
#> TCGA.2H.A9GN.01 TCGA.VR.AA4D.01 TCGA.IG.A97I.01 TCGA.2H.A9GM.01 TCGA.L5.A8NG.01 TCGA.IG.A5S3.01 
#>            "04"            "02"            "01"            "02"            "02"            "01" 
#> TCGA.IC.A6RE.11 TCGA.IC.A6RE.01 TCGA.2H.A9GG.01 TCGA.LN.A5U6.01 TCGA.LN.A9FQ.01 TCGA.L5.A8NK.01 
#>            "03"            "02"            "04"            "01"            "01"            "01" 
#> TCGA.L5.A4OS.01 TCGA.RE.A7BO.01 TCGA.LN.A9FO.01 TCGA.L5.A8NJ.01 TCGA.JY.A939.01 TCGA.VR.A8EY.01 
#>            "03"            "02"            "01"            "02"            "02"            "05" 
#> TCGA.Z6.A9VB.01 TCGA.V5.AASV.01 TCGA.LN.A9FR.01 TCGA.JY.A6F8.01 TCGA.VR.A8EQ.01 TCGA.2H.A9GQ.01 
#>            "05"            "05"            "01"            "02"            "02"            "04" 
#> TCGA.L5.A8NL.01 TCGA.2H.A9GH.01 TCGA.L5.A8NF.01 TCGA.L5.A8NI.01 
#>            "02"            "02"            "04"            "04"

Top rows heatmap

Heatmaps of the top rows:

top_rows_heatmap(res_rh)

plot of chunk top-rows-heatmap

#> Error in h(simpleError(msg, call)) : 
#>   error in evaluating the argument 'object' in selecting a method for function 'draw': no applicable method for 'height' applied to an object of class "list"

Top rows on each node:

top_rows_overlap(res_rh, method = "upset")

plot of chunk top-rows-overlap

UMAP plot

UMAP plot which shows how samples are separated.

par(mfrow = c(1, 2))
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 1432),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 1432),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

plot of chunk tab-dimension-reduction-by-depth-1

par(mfrow = c(1, 2))
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 1449),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 1449),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

plot of chunk tab-dimension-reduction-by-depth-2

par(mfrow = c(1, 2))
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 2070),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 2070),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

plot of chunk tab-dimension-reduction-by-depth-3

par(mfrow = c(1, 2))
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 3429),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 3429),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

plot of chunk tab-dimension-reduction-by-depth-4

par(mfrow = c(1, 2))
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 3489),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 3489),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

plot of chunk tab-dimension-reduction-by-depth-5

par(mfrow = c(1, 2))
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 4028),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 4028),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

plot of chunk tab-dimension-reduction-by-depth-6

par(mfrow = c(1, 2))
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 9255),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 9255),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

plot of chunk tab-dimension-reduction-by-depth-7

par(mfrow = c(1, 2))
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 10873),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 10873),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

plot of chunk tab-dimension-reduction-by-depth-8

par(mfrow = c(1, 2))
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 13097),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 13097),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

plot of chunk tab-dimension-reduction-by-depth-9

par(mfrow = c(1, 2))
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 16138),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 16138),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

plot of chunk tab-dimension-reduction-by-depth-10

par(mfrow = c(1, 2))
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 18356),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 18356),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

plot of chunk tab-dimension-reduction-by-depth-11

par(mfrow = c(1, 2))
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 34722),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 34722),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

plot of chunk tab-dimension-reduction-by-depth-12

par(mfrow = c(1, 2))
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 37386),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 37386),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

plot of chunk tab-dimension-reduction-by-depth-13

par(mfrow = c(1, 2))
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 67663),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 67663),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

plot of chunk tab-dimension-reduction-by-depth-14

Signature heatmap

Signatures on the heatmap are the union of all signatures found on every node on the hierarchy. The number of k-means on rows are automatically selected by the function.

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 1432))

plot of chunk tab-get-signatures-from-hierarchical-partition-1

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 1449))

plot of chunk tab-get-signatures-from-hierarchical-partition-2

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 2070))

plot of chunk tab-get-signatures-from-hierarchical-partition-3

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 3429))

plot of chunk tab-get-signatures-from-hierarchical-partition-4

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 3489))

plot of chunk tab-get-signatures-from-hierarchical-partition-5

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 4028))

plot of chunk tab-get-signatures-from-hierarchical-partition-6

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 9255))

plot of chunk tab-get-signatures-from-hierarchical-partition-7

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 10873))

plot of chunk tab-get-signatures-from-hierarchical-partition-8

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 13097))

plot of chunk tab-get-signatures-from-hierarchical-partition-9

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 16138))

plot of chunk tab-get-signatures-from-hierarchical-partition-10

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 18356))

plot of chunk tab-get-signatures-from-hierarchical-partition-11

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 34722))

plot of chunk tab-get-signatures-from-hierarchical-partition-12

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 37386))

plot of chunk tab-get-signatures-from-hierarchical-partition-13

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 67663))

plot of chunk tab-get-signatures-from-hierarchical-partition-14

Compare signatures from different nodes:

compare_signatures(res_rh, verbose = FALSE)

plot of chunk unnamed-chunk-24

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs. Note it only works on every node and the final signatures are the union of all signatures of all nodes.

# code only for demonstration
# e.g. to show the top 500 most significant rows on each node.
tb = get_signature(res_rh, top_signatures = 500)

Results for each node


Node0

Child nodes: Node01 , Node02 , Node03 , Node04 , Node05 .

The object with results only for a single top-value method and a single partitioning method can be extracted as:

res = res_rh["0"]

A summary of res and all the functions that can be applied to it:

res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6, 7, 8.
#>   On a matrix with 30000 rows and 202 columns.
#>   Top rows (1000) are extracted by 'SD' method.
#>   Subgroups are detected by 'skmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 5.
#> 
#> Following methods can be applied to this 'ConsensusPartition' object:
#>  [1] "cola_report"             "collect_classes"         "collect_plots"          
#>  [4] "collect_stats"           "colnames"                "compare_partitions"     
#>  [7] "compare_signatures"      "consensus_heatmap"       "dimension_reduction"    
#> [10] "functional_enrichment"   "get_anno_col"            "get_anno"               
#> [13] "get_classes"             "get_consensus"           "get_matrix"             
#> [16] "get_membership"          "get_param"               "get_signatures"         
#> [19] "get_stats"               "is_best_k"               "is_stable_k"            
#> [22] "membership_heatmap"      "ncol"                    "nrow"                   
#> [25] "plot_ecdf"               "predict_classes"         "rownames"               
#> [28] "select_partition_number" "show"                    "suggest_best_k"         
#> [31] "test_to_known_factors"   "top_rows_heatmap"

collect_plots() function collects all the plots made from res for all k (number of subgroups) into one single page to provide an easy and fast comparison between different k.

collect_plots(res)

plot of chunk node-0-collect-plots

The plots are:

All the plots in panels can be made by individual functions and they are plotted later in this section.

select_partition_number() produces several plots showing different statistics for choosing “optimized” k. There are following statistics:

The detailed explanations of these statistics can be found in the cola vignette.

Generally speaking, higher 1-PAC score, higher mean silhouette score or higher concordance corresponds to better partition. Rand index and Jaccard index measure how similar the current partition is compared to partition with k-1. If they are too similar, we won't accept k is better than k-1.

select_partition_number(res)

plot of chunk node-0-select-partition-number

The numeric values for all these statistics can be obtained by get_stats().

get_stats(res)
#>   k 1-PAC mean_silhouette concordance area_increased  Rand Jaccard
#> 2 2 1.000           0.989       0.995         0.5017 0.499   0.499
#> 3 3 1.000           0.963       0.985         0.2052 0.875   0.755
#> 4 4 0.884           0.891       0.947         0.1071 0.922   0.805
#> 5 5 1.000           0.953       0.984         0.0647 0.941   0.824
#> 6 6 0.849           0.848       0.912         0.0748 0.934   0.773
#> 7 7 0.840           0.653       0.863         0.0321 0.985   0.937
#> 8 8 0.833           0.648       0.734         0.0277 0.911   0.640

suggest_best_k() suggests the best \(k\) based on these statistics. The rules are as follows:

suggest_best_k(res)
#> [1] 5
#> attr(,"optional")
#> [1] 2 3

There is also optional best \(k\) = 2 3 that is worth to check.

Following is the table of the partitions (You need to click the show/hide code output link to see it). The membership matrix (columns with name p*) is inferred by clue::cl_consensus() function with the SE method. Basically the value in the membership matrix represents the probability to belong to a certain group. The finall subgroup label for an item is determined with the group with highest probability it belongs to.

In get_classes() function, the entropy is calculated from the membership matrix and the silhouette score is calculated from the consensus matrix.

show/hide code output

cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#>                 class entropy silhouette   p1   p2
#> TCGA.JY.A6FB.01     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A49L.01     1   0.529      0.864 0.88 0.12
#> TCGA.LN.A4A4.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A49M.01     1   0.000      0.996 1.00 0.00
#> TCGA.Q9.A6FW.01     2   0.000      0.995 0.00 1.00
#> TCGA.Z6.AAPN.01     1   0.000      0.996 1.00 0.00
#> TCGA.Q9.A6FU.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A43C.11     1   0.000      0.996 1.00 0.00
#> TCGA.S8.A6BW.01     1   0.000      0.996 1.00 0.00
#> TCGA.S8.A6BV.01     2   0.000      0.995 0.00 1.00
#> TCGA.V5.A7RC.01     1   0.000      0.996 1.00 0.00
#> TCGA.VR.A8ET.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A4A3.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OH.11     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A49X.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OI.01     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A7HV.01     1   0.000      0.996 1.00 0.00
#> TCGA.R6.A6DN.01     2   0.000      0.995 0.00 1.00
#> TCGA.IG.A3YB.01     2   0.000      0.995 0.00 1.00
#> TCGA.IG.A3YC.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OE.11     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OG.01     2   0.000      0.995 0.00 1.00
#> TCGA.KH.A6WC.01     1   0.000      0.996 1.00 0.00
#> TCGA.L7.A56G.01     1   0.000      0.996 1.00 0.00
#> TCGA.IG.A51D.01     1   0.000      0.996 1.00 0.00
#> TCGA.VR.A8EP.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A88T.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4ON.11     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A43J.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A43E.01     2   0.000      0.995 0.00 1.00
#> TCGA.X8.AAAR.01     2   0.000      0.995 0.00 1.00
#> TCGA.JY.A6FE.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A49N.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4ON.01     2   0.000      0.995 0.00 1.00
#> TCGA.V5.AASW.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A43I.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A4OF.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A4OQ.11     1   0.000      0.996 1.00 0.00
#> TCGA.IG.A3I8.01     1   0.000      0.996 1.00 0.00
#> TCGA.VR.AA7B.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OJ.01     2   0.000      0.995 0.00 1.00
#> TCGA.IG.A3Y9.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OM.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A4A6.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A49V.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OH.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A4OI.11     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A49R.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A49K.01     1   0.000      0.996 1.00 0.00
#> TCGA.IG.A4QT.01     1   0.000      0.996 1.00 0.00
#> TCGA.R6.A6L4.01     2   0.000      0.995 0.00 1.00
#> TCGA.L7.A6VZ.01     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A49U.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OF.11     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A7HX.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OO.01     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A4A8.01     1   0.000      0.996 1.00 0.00
#> TCGA.JY.A6FG.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A4OJ.11     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A5U7.01     1   0.000      0.996 1.00 0.00
#> TCGA.V5.A7RC.06     1   0.000      0.996 1.00 0.00
#> TCGA.IG.A625.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OP.01     2   0.000      0.995 0.00 1.00
#> TCGA.IG.A4P3.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A49Y.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A43C.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A88W.01     2   0.680      0.779 0.18 0.82
#> TCGA.L5.A43H.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OE.01     2   0.000      0.995 0.00 1.00
#> TCGA.IG.A50L.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A7HY.01     1   0.000      0.996 1.00 0.00
#> TCGA.R6.A6KZ.01     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A49P.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OM.11     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A4A1.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A49O.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A4A5.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A49W.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OR.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A43M.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A4OP.11     1   0.000      0.996 1.00 0.00
#> TCGA.V5.A7RE.01     2   0.000      0.995 0.00 1.00
#> TCGA.VR.AA7I.01     1   0.000      0.996 1.00 0.00
#> TCGA.IG.A3YA.01     1   0.000      0.996 1.00 0.00
#> TCGA.V5.A7RE.11     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A7HZ.01     1   0.000      0.996 1.00 0.00
#> TCGA.VR.AA7D.01     1   0.000      0.996 1.00 0.00
#> TCGA.V5.A7RB.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A4OQ.01     2   0.000      0.995 0.00 1.00
#> TCGA.IG.A3QL.01     1   0.000      0.996 1.00 0.00
#> TCGA.R6.A6DQ.01     2   0.000      0.995 0.00 1.00
#> TCGA.IG.A3I8.11     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A4A2.01     1   0.000      0.996 1.00 0.00
#> TCGA.IC.A6RF.01     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A49S.01     1   0.000      0.996 1.00 0.00
#> TCGA.IG.A4QS.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A4OG.11     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A88Y.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A88V.01     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A7HW.01     1   0.000      0.996 1.00 0.00
#> TCGA.IG.A8O2.01     1   0.000      0.996 1.00 0.00
#> TCGA.IG.A7DP.01     1   0.584      0.838 0.86 0.14
#> TCGA.L5.A8NQ.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A8I0.01     1   0.000      0.996 1.00 0.00
#> TCGA.JY.A93F.01     2   0.000      0.995 0.00 1.00
#> TCGA.M9.A5M8.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A4OW.01     2   0.000      0.995 0.00 1.00
#> TCGA.2H.A9GK.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A8NW.01     2   0.000      0.995 0.00 1.00
#> TCGA.R6.A8W5.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A8NH.01     2   0.000      0.995 0.00 1.00
#> TCGA.2H.A9GR.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A8NV.01     2   0.000      0.995 0.00 1.00
#> TCGA.XP.A8T8.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A88Z.01     1   0.000      0.996 1.00 0.00
#> TCGA.IG.A5B8.01     1   0.000      0.996 1.00 0.00
#> TCGA.R6.A6XG.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A8NN.01     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A9FP.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A4MR.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A8NS.01     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A4MQ.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A4A9.01     1   0.000      0.996 1.00 0.00
#> TCGA.VR.A8EX.01     1   0.000      0.996 1.00 0.00
#> TCGA.JY.A938.01     2   0.000      0.995 0.00 1.00
#> TCGA.JY.A6FA.01     1   0.000      0.996 1.00 0.00
#> TCGA.R6.A8WG.01     2   0.000      0.995 0.00 1.00
#> TCGA.VR.A8EO.01     1   0.000      0.996 1.00 0.00
#> TCGA.VR.A8EU.01     1   0.000      0.996 1.00 0.00
#> TCGA.R6.A6L6.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A8NE.01     2   0.000      0.995 0.00 1.00
#> TCGA.V5.AASX.11     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A8I1.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A893.01     2   0.000      0.995 0.00 1.00
#> TCGA.IC.A6RF.11     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A8NU.01     2   0.000      0.995 0.00 1.00
#> TCGA.R6.A6XQ.01     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A5U5.01     1   0.000      0.996 1.00 0.00
#> TCGA.Z6.A8JD.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OT.01     2   0.000      0.995 0.00 1.00
#> TCGA.ZR.A9CJ.01     2   0.000      0.995 0.00 1.00
#> TCGA.Z6.A8JE.01     2   0.000      0.995 0.00 1.00
#> TCGA.JY.A6FH.01     2   0.000      0.995 0.00 1.00
#> TCGA.XP.A8T6.01     1   0.000      0.996 1.00 0.00
#> TCGA.R6.A8W8.01     2   0.000      0.995 0.00 1.00
#> TCGA.JY.A93E.01     2   0.000      0.995 0.00 1.00
#> TCGA.2H.A9GI.01     2   0.000      0.995 0.00 1.00
#> TCGA.IG.A6QS.01     1   0.000      0.996 1.00 0.00
#> TCGA.VR.A8Q7.01     1   0.000      0.996 1.00 0.00
#> TCGA.R6.A6Y0.01     1   0.680      0.782 0.82 0.18
#> TCGA.VR.A8EZ.01     1   0.000      0.996 1.00 0.00
#> TCGA.2H.A9GL.01     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A8HZ.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A891.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A8NM.01     2   0.000      0.995 0.00 1.00
#> TCGA.JY.A93D.01     2   0.000      0.995 0.00 1.00
#> TCGA.XP.A8T7.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OX.01     2   0.000      0.995 0.00 1.00
#> TCGA.R6.A6Y2.01     2   0.000      0.995 0.00 1.00
#> TCGA.2H.A9GF.01     2   0.000      0.995 0.00 1.00
#> TCGA.2H.A9GO.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A8NR.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A88S.01     1   0.000      0.996 1.00 0.00
#> TCGA.VR.A8EW.01     1   0.000      0.996 1.00 0.00
#> TCGA.VR.A8ER.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OU.01     2   0.000      0.995 0.00 1.00
#> TCGA.JY.A93C.01     2   0.000      0.995 0.00 1.00
#> TCGA.V5.AASX.01     2   0.000      0.995 0.00 1.00
#> TCGA.IG.A97H.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A8NT.01     2   0.000      0.995 0.00 1.00
#> TCGA.R6.A8WC.01     2   0.000      0.995 0.00 1.00
#> TCGA.2H.A9GJ.01     2   0.000      0.995 0.00 1.00
#> TCGA.VR.AA4G.01     1   0.000      0.996 1.00 0.00
#> TCGA.JY.A6FD.01     1   0.000      0.996 1.00 0.00
#> TCGA.2H.A9GN.01     2   0.000      0.995 0.00 1.00
#> TCGA.VR.AA4D.01     2   0.000      0.995 0.00 1.00
#> TCGA.IG.A97I.01     1   0.000      0.996 1.00 0.00
#> TCGA.2H.A9GM.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A8NG.01     2   0.000      0.995 0.00 1.00
#> TCGA.IG.A5S3.01     1   0.000      0.996 1.00 0.00
#> TCGA.IC.A6RE.11     1   0.000      0.996 1.00 0.00
#> TCGA.IC.A6RE.01     2   0.000      0.995 0.00 1.00
#> TCGA.2H.A9GG.01     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A5U6.01     1   0.000      0.996 1.00 0.00
#> TCGA.LN.A9FQ.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A8NK.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A4OS.01     1   0.000      0.996 1.00 0.00
#> TCGA.RE.A7BO.01     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A9FO.01     1   0.000      0.996 1.00 0.00
#> TCGA.L5.A8NJ.01     2   0.000      0.995 0.00 1.00
#> TCGA.JY.A939.01     2   0.000      0.995 0.00 1.00
#> TCGA.VR.A8EY.01     2   0.904      0.529 0.32 0.68
#> TCGA.Z6.A9VB.01     1   0.000      0.996 1.00 0.00
#> TCGA.V5.AASV.01     2   0.000      0.995 0.00 1.00
#> TCGA.LN.A9FR.01     1   0.000      0.996 1.00 0.00
#> TCGA.JY.A6F8.01     2   0.000      0.995 0.00 1.00
#> TCGA.VR.A8EQ.01     2   0.000      0.995 0.00 1.00
#> TCGA.2H.A9GQ.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A8NL.01     2   0.000      0.995 0.00 1.00
#> TCGA.2H.A9GH.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A8NF.01     2   0.000      0.995 0.00 1.00
#> TCGA.L5.A8NI.01     2   0.000      0.995 0.00 1.00

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette   p1   p2   p3
#> TCGA.JY.A6FB.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A49L.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.LN.A4A4.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.LN.A49M.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.Q9.A6FW.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.Z6.AAPN.01     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.Q9.A6FU.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A43C.11     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.S8.A6BW.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.S8.A6BV.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.V5.A7RC.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.VR.A8ET.01     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.LN.A4A3.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OH.11     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.LN.A49X.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OI.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A7HV.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.R6.A6DN.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.IG.A3YB.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.IG.A3YC.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OE.11     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.L5.A4OG.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.KH.A6WC.01     1  0.0892      0.975 0.98 0.00 0.02
#> TCGA.L7.A56G.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.IG.A51D.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.VR.A8EP.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A88T.01     3  0.5835      0.490 0.34 0.00 0.66
#> TCGA.L5.A4ON.11     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.L5.A43J.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A43E.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.X8.AAAR.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.JY.A6FE.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.LN.A49N.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4ON.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.V5.AASW.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A43I.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A4OF.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A4OQ.11     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.IG.A3I8.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.VR.AA7B.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OJ.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.IG.A3Y9.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OM.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.LN.A4A6.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.LN.A49V.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OH.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A4OI.11     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.LN.A49R.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.LN.A49K.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.IG.A4QT.01     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.R6.A6L4.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L7.A6VZ.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A49U.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OF.11     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.LN.A7HX.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OO.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A4A8.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.JY.A6FG.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A4OJ.11     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.LN.A5U7.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.V5.A7RC.06     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.IG.A625.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OP.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.IG.A4P3.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.LN.A49Y.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A43C.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A88W.01     1  0.4796      0.662 0.78 0.22 0.00
#> TCGA.L5.A43H.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OE.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.IG.A50L.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.LN.A7HY.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.R6.A6KZ.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A49P.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OM.11     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.LN.A4A1.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.LN.A49O.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.LN.A4A5.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.LN.A49W.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OR.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A43M.01     3  0.2959      0.857 0.00 0.10 0.90
#> TCGA.L5.A4OP.11     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.V5.A7RE.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.VR.AA7I.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.IG.A3YA.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.V5.A7RE.11     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A7HZ.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.VR.AA7D.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.V5.A7RB.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A4OQ.01     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.IG.A3QL.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.R6.A6DQ.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.IG.A3I8.11     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.LN.A4A2.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.IC.A6RF.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A49S.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.IG.A4QS.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A4OG.11     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.L5.A88Y.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A88V.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A7HW.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.IG.A8O2.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.IG.A7DP.01     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.L5.A8NQ.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.LN.A8I0.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.JY.A93F.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.M9.A5M8.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A4OW.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.2H.A9GK.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A8NW.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.R6.A8W5.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A8NH.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.2H.A9GR.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A8NV.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.XP.A8T8.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A88Z.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.IG.A5B8.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.R6.A6XG.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A8NN.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A9FP.01     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.LN.A4MR.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A8NS.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A4MQ.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.LN.A4A9.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.VR.A8EX.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.JY.A938.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.JY.A6FA.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.R6.A8WG.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.VR.A8EO.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.VR.A8EU.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.R6.A6L6.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A8NE.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.V5.AASX.11     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A8I1.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A893.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.IC.A6RF.11     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A8NU.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.R6.A6XQ.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A5U5.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.Z6.A8JD.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OT.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.ZR.A9CJ.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.Z6.A8JE.01     2  0.5397      0.565 0.28 0.72 0.00
#> TCGA.JY.A6FH.01     2  0.3686      0.831 0.00 0.86 0.14
#> TCGA.XP.A8T6.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.R6.A8W8.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.JY.A93E.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.2H.A9GI.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.IG.A6QS.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.VR.A8Q7.01     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.R6.A6Y0.01     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.VR.A8EZ.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.2H.A9GL.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A8HZ.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A891.01     2  0.6280      0.169 0.00 0.54 0.46
#> TCGA.L5.A8NM.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.JY.A93D.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.XP.A8T7.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OX.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.R6.A6Y2.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.2H.A9GF.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.2H.A9GO.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A8NR.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A88S.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.VR.A8EW.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.VR.A8ER.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OU.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.JY.A93C.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.V5.AASX.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.IG.A97H.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A8NT.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.R6.A8WC.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.2H.A9GJ.01     2  0.5835      0.495 0.00 0.66 0.34
#> TCGA.VR.AA4G.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.JY.A6FD.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.2H.A9GN.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.VR.AA4D.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.IG.A97I.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.2H.A9GM.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A8NG.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.IG.A5S3.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.IC.A6RE.11     3  0.6244      0.233 0.44 0.00 0.56
#> TCGA.IC.A6RE.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.2H.A9GG.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A5U6.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.LN.A9FQ.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A8NK.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A4OS.01     3  0.0000      0.954 0.00 0.00 1.00
#> TCGA.RE.A7BO.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A9FO.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.L5.A8NJ.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.JY.A939.01     2  0.5216      0.653 0.00 0.74 0.26
#> TCGA.VR.A8EY.01     1  0.1529      0.943 0.96 0.04 0.00
#> TCGA.Z6.A9VB.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.V5.AASV.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.LN.A9FR.01     1  0.0000      0.996 1.00 0.00 0.00
#> TCGA.JY.A6F8.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.VR.A8EQ.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.2H.A9GQ.01     3  0.4555      0.722 0.00 0.20 0.80
#> TCGA.L5.A8NL.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.2H.A9GH.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A8NF.01     2  0.0000      0.981 0.00 1.00 0.00
#> TCGA.L5.A8NI.01     2  0.2959      0.879 0.00 0.90 0.10

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2   p3   p4
#> TCGA.JY.A6FB.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.LN.A49L.01     4  0.0000     0.6114 0.00 0.00 0.00 1.00
#> TCGA.LN.A4A4.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.LN.A49M.01     1  0.4277     0.6857 0.72 0.00 0.00 0.28
#> TCGA.Q9.A6FW.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.Z6.AAPN.01     3  0.2647     0.7400 0.12 0.00 0.88 0.00
#> TCGA.Q9.A6FU.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A43C.11     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.S8.A6BW.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.S8.A6BV.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.V5.A7RC.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.VR.A8ET.01     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.LN.A4A3.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OH.11     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.LN.A49X.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OI.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.LN.A7HV.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.R6.A6DN.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.IG.A3YB.01     4  0.3400     0.6703 0.00 0.18 0.00 0.82
#> TCGA.IG.A3YC.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OE.11     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.L5.A4OG.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.KH.A6WC.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L7.A56G.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.IG.A51D.01     1  0.4277     0.6857 0.72 0.00 0.00 0.28
#> TCGA.VR.A8EP.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A88T.01     3  0.4790     0.3744 0.38 0.00 0.62 0.00
#> TCGA.L5.A4ON.11     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.L5.A43J.01     1  0.4134     0.7101 0.74 0.00 0.00 0.26
#> TCGA.L5.A43E.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.X8.AAAR.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.JY.A6FE.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.LN.A49N.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4ON.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.V5.AASW.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A43I.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OF.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OQ.11     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.IG.A3I8.01     1  0.4277     0.6857 0.72 0.00 0.00 0.28
#> TCGA.VR.AA7B.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OJ.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.IG.A3Y9.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OM.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.LN.A4A6.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.LN.A49V.01     1  0.4855     0.4721 0.60 0.00 0.00 0.40
#> TCGA.L5.A4OH.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OI.11     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.LN.A49R.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.LN.A49K.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.IG.A4QT.01     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.R6.A6L4.01     2  0.4855     0.0944 0.00 0.60 0.00 0.40
#> TCGA.L7.A6VZ.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.LN.A49U.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OF.11     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.LN.A7HX.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OO.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.LN.A4A8.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.JY.A6FG.01     4  0.3400     0.6703 0.00 0.18 0.00 0.82
#> TCGA.L5.A4OJ.11     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.LN.A5U7.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.V5.A7RC.06     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.IG.A625.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OP.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.IG.A4P3.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.LN.A49Y.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A43C.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A88W.01     4  0.3853     0.5270 0.16 0.02 0.00 0.82
#> TCGA.L5.A43H.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OE.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.IG.A50L.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.LN.A7HY.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.R6.A6KZ.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.LN.A49P.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OM.11     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.LN.A4A1.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.LN.A49O.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.LN.A4A5.01     1  0.4277     0.6857 0.72 0.00 0.00 0.28
#> TCGA.LN.A49W.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OR.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A43M.01     4  0.4277     0.5123 0.00 0.00 0.28 0.72
#> TCGA.L5.A4OP.11     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.V5.A7RE.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.VR.AA7I.01     1  0.4277     0.6857 0.72 0.00 0.00 0.28
#> TCGA.IG.A3YA.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.V5.A7RE.11     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.LN.A7HZ.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.VR.AA7D.01     1  0.4277     0.6857 0.72 0.00 0.00 0.28
#> TCGA.V5.A7RB.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OQ.01     4  0.4277     0.5123 0.00 0.00 0.28 0.72
#> TCGA.IG.A3QL.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.R6.A6DQ.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.IG.A3I8.11     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.LN.A4A2.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.IC.A6RF.01     2  0.4855     0.2092 0.00 0.60 0.00 0.40
#> TCGA.LN.A49S.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.IG.A4QS.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OG.11     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.L5.A88Y.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A88V.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.LN.A7HW.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.IG.A8O2.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.IG.A7DP.01     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.L5.A8NQ.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.LN.A8I0.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.JY.A93F.01     4  0.4790     0.4611 0.00 0.38 0.00 0.62
#> TCGA.M9.A5M8.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OW.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.2H.A9GK.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NW.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.R6.A8W5.01     4  0.4277     0.6737 0.00 0.28 0.00 0.72
#> TCGA.L5.A8NH.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.2H.A9GR.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NV.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.XP.A8T8.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A88Z.01     1  0.3172     0.8189 0.84 0.00 0.00 0.16
#> TCGA.IG.A5B8.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.R6.A6XG.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NN.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.LN.A9FP.01     3  0.1211     0.8600 0.04 0.00 0.96 0.00
#> TCGA.LN.A4MR.01     1  0.1637     0.9104 0.94 0.00 0.00 0.06
#> TCGA.L5.A8NS.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.LN.A4MQ.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.LN.A4A9.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EX.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.JY.A938.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.JY.A6FA.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.R6.A8WG.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.VR.A8EO.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EU.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.R6.A6L6.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NE.01     4  0.4277     0.6737 0.00 0.28 0.00 0.72
#> TCGA.V5.AASX.11     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.LN.A8I1.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A893.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.IC.A6RF.11     4  0.3400     0.6703 0.00 0.18 0.00 0.82
#> TCGA.L5.A8NU.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.R6.A6XQ.01     2  0.0707     0.9602 0.00 0.98 0.00 0.02
#> TCGA.LN.A5U5.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.Z6.A8JD.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OT.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.ZR.A9CJ.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.Z6.A8JE.01     4  0.4088     0.6536 0.04 0.14 0.00 0.82
#> TCGA.JY.A6FH.01     4  0.5486     0.6794 0.00 0.20 0.08 0.72
#> TCGA.XP.A8T6.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.R6.A8W8.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.JY.A93E.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.2H.A9GI.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.IG.A6QS.01     1  0.4277     0.6857 0.72 0.00 0.00 0.28
#> TCGA.VR.A8Q7.01     3  0.2647     0.7892 0.00 0.00 0.88 0.12
#> TCGA.R6.A6Y0.01     4  0.4277     0.5123 0.00 0.00 0.28 0.72
#> TCGA.VR.A8EZ.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GL.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.LN.A8HZ.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A891.01     4  0.5327     0.5949 0.00 0.06 0.22 0.72
#> TCGA.L5.A8NM.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.JY.A93D.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.XP.A8T7.01     1  0.4277     0.6857 0.72 0.00 0.00 0.28
#> TCGA.L5.A4OX.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.R6.A6Y2.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.2H.A9GF.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.2H.A9GO.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NR.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A88S.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EW.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.VR.A8ER.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OU.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.JY.A93C.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.V5.AASX.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.IG.A97H.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NT.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.R6.A8WC.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.2H.A9GJ.01     4  0.5486     0.6145 0.00 0.08 0.20 0.72
#> TCGA.VR.AA4G.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.JY.A6FD.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GN.01     4  0.4277     0.6737 0.00 0.28 0.00 0.72
#> TCGA.VR.AA4D.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.IG.A97I.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GM.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NG.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.IG.A5S3.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.IC.A6RE.11     3  0.4907     0.3290 0.42 0.00 0.58 0.00
#> TCGA.IC.A6RE.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.2H.A9GG.01     4  0.4277     0.6737 0.00 0.28 0.00 0.72
#> TCGA.LN.A5U6.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.LN.A9FQ.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NK.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OS.01     3  0.0000     0.9075 0.00 0.00 1.00 0.00
#> TCGA.RE.A7BO.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.LN.A9FO.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NJ.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.JY.A939.01     2  0.4088     0.7296 0.00 0.82 0.14 0.04
#> TCGA.VR.A8EY.01     4  0.3400     0.4975 0.18 0.00 0.00 0.82
#> TCGA.Z6.A9VB.01     1  0.4277     0.6857 0.72 0.00 0.00 0.28
#> TCGA.V5.AASV.01     4  0.3400     0.6703 0.00 0.18 0.00 0.82
#> TCGA.LN.A9FR.01     1  0.0000     0.9577 1.00 0.00 0.00 0.00
#> TCGA.JY.A6F8.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.VR.A8EQ.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.2H.A9GQ.01     4  0.4134     0.5299 0.00 0.00 0.26 0.74
#> TCGA.L5.A8NL.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.2H.A9GH.01     2  0.0000     0.9838 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NF.01     4  0.4277     0.6737 0.00 0.28 0.00 0.72
#> TCGA.L5.A8NI.01     4  0.5486     0.6795 0.00 0.20 0.08 0.72

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1   p2   p3   p4   p5
#> TCGA.JY.A6FB.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A49L.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.LN.A4A4.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49M.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.Q9.A6FW.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.Z6.AAPN.01     3  0.4182      0.392 0.40 0.00 0.60 0.00 0.00
#> TCGA.Q9.A6FU.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43C.11     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.S8.A6BW.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.S8.A6BV.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.V5.A7RC.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8ET.01     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A4A3.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OH.11     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A49X.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OI.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A7HV.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6DN.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A3YB.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.IG.A3YC.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OE.11     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OG.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.KH.A6WC.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L7.A56G.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A51D.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.VR.A8EP.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88T.01     3  0.4126      0.415 0.38 0.00 0.62 0.00 0.00
#> TCGA.L5.A4ON.11     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A43J.01     5  0.1410      0.860 0.06 0.00 0.00 0.00 0.94
#> TCGA.L5.A43E.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.X8.AAAR.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.JY.A6FE.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49N.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4ON.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.V5.AASW.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A43I.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OF.01     2  0.0609      0.982 0.00 0.98 0.00 0.02 0.00
#> TCGA.L5.A4OQ.11     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.IG.A3I8.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.VR.AA7B.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OJ.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A3Y9.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OM.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A6.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49V.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.L5.A4OH.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OI.11     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A49R.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49K.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A4QT.01     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.R6.A6L4.01     2  0.0609      0.982 0.00 0.98 0.00 0.02 0.00
#> TCGA.L7.A6VZ.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A49U.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OF.11     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A7HX.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OO.01     2  0.0609      0.982 0.00 0.98 0.00 0.02 0.00
#> TCGA.LN.A4A8.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A6FG.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.L5.A4OJ.11     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A5U7.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.V5.A7RC.06     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A625.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OP.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A4P3.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49Y.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43C.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A88W.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.L5.A43H.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OE.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A50L.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A7HY.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6KZ.01     2  0.0609      0.982 0.00 0.98 0.00 0.02 0.00
#> TCGA.LN.A49P.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OM.11     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A4A1.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49O.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A5.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.LN.A49W.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OR.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A43M.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00
#> TCGA.L5.A4OP.11     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.V5.A7RE.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.VR.AA7I.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.IG.A3YA.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.V5.A7RE.11     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A7HZ.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.AA7D.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.V5.A7RB.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OQ.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00
#> TCGA.IG.A3QL.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6DQ.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A3I8.11     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A4A2.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.IC.A6RF.01     5  0.3424      0.580 0.00 0.24 0.00 0.00 0.76
#> TCGA.LN.A49S.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A4QS.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OG.11     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A88Y.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A88V.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A7HW.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A8O2.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A7DP.01     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NQ.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A8I0.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A93F.01     5  0.3274      0.613 0.00 0.22 0.00 0.00 0.78
#> TCGA.M9.A5M8.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OW.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GK.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NW.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.R6.A8W5.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00
#> TCGA.L5.A8NH.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GR.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NV.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.XP.A8T8.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88Z.01     5  0.3561      0.543 0.26 0.00 0.00 0.00 0.74
#> TCGA.IG.A5B8.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6XG.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NN.01     2  0.0609      0.982 0.00 0.98 0.00 0.02 0.00
#> TCGA.LN.A9FP.01     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A4MR.01     1  0.3895      0.529 0.68 0.00 0.00 0.00 0.32
#> TCGA.L5.A8NS.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A4MQ.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A9.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EX.01     1  0.0609      0.969 0.98 0.00 0.00 0.00 0.02
#> TCGA.JY.A938.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.JY.A6FA.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A8WG.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EO.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EU.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6L6.01     2  0.0609      0.982 0.00 0.98 0.00 0.02 0.00
#> TCGA.L5.A8NE.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00
#> TCGA.V5.AASX.11     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A8I1.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A893.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.IC.A6RF.11     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.L5.A8NU.01     2  0.0609      0.982 0.00 0.98 0.00 0.02 0.00
#> TCGA.R6.A6XQ.01     2  0.0609      0.982 0.00 0.98 0.00 0.02 0.00
#> TCGA.LN.A5U5.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.Z6.A8JD.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OT.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.ZR.A9CJ.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.Z6.A8JE.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.JY.A6FH.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00
#> TCGA.XP.A8T6.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A8W8.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.JY.A93E.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GI.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A6QS.01     5  0.0609      0.913 0.02 0.00 0.00 0.00 0.98
#> TCGA.VR.A8Q7.01     4  0.4262      0.239 0.00 0.00 0.44 0.56 0.00
#> TCGA.R6.A6Y0.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00
#> TCGA.VR.A8EZ.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GL.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A8HZ.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A891.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00
#> TCGA.L5.A8NM.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.JY.A93D.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.XP.A8T7.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.L5.A4OX.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.R6.A6Y2.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GF.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GO.01     2  0.0609      0.982 0.00 0.98 0.00 0.02 0.00
#> TCGA.L5.A8NR.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A88S.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EW.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8ER.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OU.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.JY.A93C.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.V5.AASX.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A97H.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NT.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.R6.A8WC.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GJ.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00
#> TCGA.VR.AA4G.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A6FD.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GN.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00
#> TCGA.VR.AA4D.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A97I.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GM.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NG.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A5S3.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.IC.A6RE.11     3  0.4227      0.339 0.42 0.00 0.58 0.00 0.00
#> TCGA.IC.A6RE.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GG.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00
#> TCGA.LN.A5U6.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FQ.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NK.01     1  0.3796      0.571 0.70 0.00 0.00 0.00 0.30
#> TCGA.L5.A4OS.01     3  0.0000      0.889 0.00 0.00 1.00 0.00 0.00
#> TCGA.RE.A7BO.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A9FO.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NJ.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.JY.A939.01     2  0.1043      0.963 0.00 0.96 0.00 0.04 0.00
#> TCGA.VR.A8EY.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.Z6.A9VB.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.V5.AASV.01     5  0.0000      0.936 0.00 0.00 0.00 0.00 1.00
#> TCGA.LN.A9FR.01     1  0.0000      0.990 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A6F8.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EQ.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GQ.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00
#> TCGA.L5.A8NL.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GH.01     2  0.0000      0.997 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NF.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00
#> TCGA.L5.A8NI.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00

show/hide code output

cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6
#> TCGA.JY.A6FB.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49L.01     5  0.0000     0.9181 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.LN.A4A4.01     1  0.0937     0.8166 0.96 0.00 0.00 0.00 0.00 0.04
#> TCGA.LN.A49M.01     5  0.0547     0.9151 0.00 0.00 0.00 0.00 0.98 0.02
#> TCGA.Q9.A6FW.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.Z6.AAPN.01     6  0.2794     0.7668 0.08 0.00 0.06 0.00 0.00 0.86
#> TCGA.Q9.A6FU.01     1  0.3499     0.5923 0.68 0.00 0.00 0.00 0.00 0.32
#> TCGA.L5.A43C.11     3  0.0000     0.9406 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.S8.A6BW.01     1  0.2793     0.7090 0.80 0.00 0.00 0.00 0.00 0.20
#> TCGA.S8.A6BV.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.V5.A7RC.01     1  0.0547     0.8267 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.VR.A8ET.01     3  0.3409     0.6826 0.00 0.00 0.70 0.00 0.00 0.30
#> TCGA.LN.A4A3.01     6  0.3076     0.7889 0.24 0.00 0.00 0.00 0.00 0.76
#> TCGA.L5.A4OH.11     3  0.0000     0.9406 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A49X.01     6  0.2048     0.8033 0.12 0.00 0.00 0.00 0.00 0.88
#> TCGA.L5.A4OI.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A7HV.01     1  0.2941     0.6791 0.78 0.00 0.00 0.00 0.00 0.22
#> TCGA.R6.A6DN.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A3YB.01     5  0.0000     0.9181 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.IG.A3YC.01     6  0.2260     0.8097 0.14 0.00 0.00 0.00 0.00 0.86
#> TCGA.L5.A4OE.11     3  0.0000     0.9406 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OG.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.KH.A6WC.01     6  0.2260     0.8097 0.14 0.00 0.00 0.00 0.00 0.86
#> TCGA.L7.A56G.01     1  0.1267     0.8222 0.94 0.00 0.00 0.00 0.00 0.06
#> TCGA.IG.A51D.01     5  0.0547     0.9151 0.00 0.00 0.00 0.00 0.98 0.02
#> TCGA.VR.A8EP.01     1  0.1556     0.8140 0.92 0.00 0.00 0.00 0.00 0.08
#> TCGA.L5.A88T.01     6  0.2728     0.7866 0.10 0.00 0.04 0.00 0.00 0.86
#> TCGA.L5.A4ON.11     3  0.1267     0.9229 0.00 0.00 0.94 0.00 0.00 0.06
#> TCGA.L5.A43J.01     5  0.4534     0.3598 0.04 0.00 0.00 0.00 0.58 0.38
#> TCGA.L5.A43E.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.X8.AAAR.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A6FE.01     1  0.2793     0.7090 0.80 0.00 0.00 0.00 0.00 0.20
#> TCGA.LN.A49N.01     6  0.3076     0.7465 0.24 0.00 0.00 0.00 0.00 0.76
#> TCGA.L5.A4ON.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASW.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43I.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OF.01     2  0.3321     0.8278 0.00 0.82 0.00 0.10 0.00 0.08
#> TCGA.L5.A4OQ.11     3  0.1267     0.9229 0.00 0.00 0.94 0.00 0.00 0.06
#> TCGA.IG.A3I8.01     5  0.1807     0.8842 0.02 0.00 0.00 0.00 0.92 0.06
#> TCGA.VR.AA7B.01     1  0.3309     0.6540 0.72 0.00 0.00 0.00 0.00 0.28
#> TCGA.L5.A4OJ.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A3Y9.01     1  0.2793     0.7411 0.80 0.00 0.00 0.00 0.00 0.20
#> TCGA.L5.A4OM.01     1  0.1556     0.8219 0.92 0.00 0.00 0.00 0.00 0.08
#> TCGA.LN.A4A6.01     6  0.3198     0.7768 0.26 0.00 0.00 0.00 0.00 0.74
#> TCGA.LN.A49V.01     5  0.1480     0.8961 0.02 0.00 0.00 0.00 0.94 0.04
#> TCGA.L5.A4OH.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OI.11     3  0.0000     0.9406 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A49R.01     1  0.1267     0.8171 0.94 0.00 0.00 0.00 0.00 0.06
#> TCGA.LN.A49K.01     1  0.1267     0.8306 0.94 0.00 0.00 0.00 0.00 0.06
#> TCGA.IG.A4QT.01     3  0.1267     0.9229 0.00 0.00 0.94 0.00 0.00 0.06
#> TCGA.R6.A6L4.01     2  0.2190     0.9008 0.00 0.90 0.00 0.06 0.00 0.04
#> TCGA.L7.A6VZ.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49U.01     1  0.2260     0.7745 0.86 0.00 0.00 0.00 0.00 0.14
#> TCGA.L5.A4OF.11     3  0.0000     0.9406 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A7HX.01     1  0.1814     0.8055 0.90 0.00 0.00 0.00 0.00 0.10
#> TCGA.L5.A4OO.01     2  0.3073     0.8487 0.00 0.84 0.00 0.08 0.00 0.08
#> TCGA.LN.A4A8.01     6  0.3309     0.7563 0.28 0.00 0.00 0.00 0.00 0.72
#> TCGA.JY.A6FG.01     5  0.0000     0.9181 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.L5.A4OJ.11     3  0.0000     0.9406 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A5U7.01     1  0.2048     0.8173 0.88 0.00 0.00 0.00 0.00 0.12
#> TCGA.V5.A7RC.06     1  0.0547     0.8267 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.IG.A625.01     1  0.2631     0.7335 0.82 0.00 0.00 0.00 0.00 0.18
#> TCGA.L5.A4OP.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A4P3.01     1  0.3647     0.4210 0.64 0.00 0.00 0.00 0.00 0.36
#> TCGA.LN.A49Y.01     1  0.3828     0.0974 0.56 0.00 0.00 0.00 0.00 0.44
#> TCGA.L5.A43C.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88W.01     5  0.0000     0.9181 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.L5.A43H.01     1  0.0937     0.8296 0.96 0.00 0.00 0.00 0.00 0.04
#> TCGA.L5.A4OE.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A50L.01     1  0.0547     0.8267 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.LN.A7HY.01     6  0.2631     0.8044 0.18 0.00 0.00 0.00 0.00 0.82
#> TCGA.R6.A6KZ.01     2  0.3321     0.8278 0.00 0.82 0.00 0.10 0.00 0.08
#> TCGA.LN.A49P.01     6  0.3309     0.7121 0.28 0.00 0.00 0.00 0.00 0.72
#> TCGA.L5.A4OM.11     3  0.0000     0.9406 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A4A1.01     1  0.2793     0.7105 0.80 0.00 0.00 0.00 0.00 0.20
#> TCGA.LN.A49O.01     1  0.2260     0.7946 0.86 0.00 0.00 0.00 0.00 0.14
#> TCGA.LN.A4A5.01     6  0.4144     0.2101 0.02 0.00 0.00 0.00 0.36 0.62
#> TCGA.LN.A49W.01     6  0.2631     0.8044 0.18 0.00 0.00 0.00 0.00 0.82
#> TCGA.L5.A4OR.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43M.01     4  0.0000     0.9919 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OP.11     3  0.0000     0.9406 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.V5.A7RE.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.AA7I.01     5  0.0547     0.9151 0.00 0.00 0.00 0.00 0.98 0.02
#> TCGA.IG.A3YA.01     6  0.2260     0.8097 0.14 0.00 0.00 0.00 0.00 0.86
#> TCGA.V5.A7RE.11     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A7HZ.01     1  0.0937     0.8257 0.96 0.00 0.00 0.00 0.00 0.04
#> TCGA.VR.AA7D.01     5  0.0000     0.9181 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.V5.A7RB.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OQ.01     4  0.0000     0.9919 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.IG.A3QL.01     1  0.2631     0.7524 0.82 0.00 0.00 0.00 0.00 0.18
#> TCGA.R6.A6DQ.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A3I8.11     3  0.0937     0.9301 0.00 0.00 0.96 0.00 0.00 0.04
#> TCGA.LN.A4A2.01     1  0.1814     0.8028 0.90 0.00 0.00 0.00 0.00 0.10
#> TCGA.IC.A6RF.01     5  0.1267     0.8465 0.00 0.06 0.00 0.00 0.94 0.00
#> TCGA.LN.A49S.01     6  0.3198     0.7755 0.26 0.00 0.00 0.00 0.00 0.74
#> TCGA.IG.A4QS.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OG.11     3  0.0000     0.9406 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A88Y.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88V.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A7HW.01     1  0.0547     0.8267 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.IG.A8O2.01     1  0.3869     0.0507 0.50 0.00 0.00 0.00 0.00 0.50
#> TCGA.IG.A7DP.01     3  0.3076     0.7889 0.00 0.00 0.76 0.00 0.00 0.24
#> TCGA.L5.A8NQ.01     6  0.2260     0.8097 0.14 0.00 0.00 0.00 0.00 0.86
#> TCGA.LN.A8I0.01     1  0.1814     0.8023 0.90 0.00 0.00 0.00 0.00 0.10
#> TCGA.JY.A93F.01     5  0.0937     0.8750 0.00 0.04 0.00 0.00 0.96 0.00
#> TCGA.M9.A5M8.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OW.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GK.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NW.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A8W5.01     4  0.0937     0.9664 0.00 0.00 0.00 0.96 0.00 0.04
#> TCGA.L5.A8NH.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GR.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NV.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.XP.A8T8.01     1  0.1814     0.8028 0.90 0.00 0.00 0.00 0.00 0.10
#> TCGA.L5.A88Z.01     1  0.4926     0.4884 0.64 0.00 0.00 0.00 0.24 0.12
#> TCGA.IG.A5B8.01     6  0.3309     0.7563 0.28 0.00 0.00 0.00 0.00 0.72
#> TCGA.R6.A6XG.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NN.01     2  0.3321     0.8278 0.00 0.82 0.00 0.10 0.00 0.08
#> TCGA.LN.A9FP.01     3  0.2793     0.8100 0.00 0.00 0.80 0.00 0.00 0.20
#> TCGA.LN.A4MR.01     6  0.3045     0.7683 0.10 0.00 0.00 0.00 0.06 0.84
#> TCGA.L5.A8NS.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4MQ.01     1  0.0547     0.8314 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.LN.A4A9.01     1  0.2454     0.7553 0.84 0.00 0.00 0.00 0.00 0.16
#> TCGA.VR.A8EX.01     6  0.2793     0.7550 0.20 0.00 0.00 0.00 0.00 0.80
#> TCGA.JY.A938.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A6FA.01     1  0.1267     0.8171 0.94 0.00 0.00 0.00 0.00 0.06
#> TCGA.R6.A8WG.01     2  0.1556     0.9199 0.00 0.92 0.00 0.00 0.00 0.08
#> TCGA.VR.A8EO.01     1  0.1267     0.8278 0.94 0.00 0.00 0.00 0.00 0.06
#> TCGA.VR.A8EU.01     1  0.0937     0.8296 0.96 0.00 0.00 0.00 0.00 0.04
#> TCGA.R6.A6L6.01     2  0.3321     0.8278 0.00 0.82 0.00 0.10 0.00 0.08
#> TCGA.L5.A8NE.01     4  0.0547     0.9834 0.00 0.00 0.00 0.98 0.00 0.02
#> TCGA.V5.AASX.11     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A8I1.01     1  0.0547     0.8314 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.L5.A893.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IC.A6RF.11     5  0.0000     0.9181 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.L5.A8NU.01     2  0.3073     0.8487 0.00 0.84 0.00 0.08 0.00 0.08
#> TCGA.R6.A6XQ.01     2  0.3321     0.8278 0.00 0.82 0.00 0.10 0.00 0.08
#> TCGA.LN.A5U5.01     1  0.1267     0.8301 0.94 0.00 0.00 0.00 0.00 0.06
#> TCGA.Z6.A8JD.01     6  0.2260     0.8097 0.14 0.00 0.00 0.00 0.00 0.86
#> TCGA.L5.A4OT.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.ZR.A9CJ.01     2  0.1556     0.9199 0.00 0.92 0.00 0.00 0.00 0.08
#> TCGA.Z6.A8JE.01     5  0.0000     0.9181 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.JY.A6FH.01     4  0.0000     0.9919 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.XP.A8T6.01     6  0.3797     0.2976 0.42 0.00 0.00 0.00 0.00 0.58
#> TCGA.R6.A8W8.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A93E.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GI.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A6QS.01     5  0.4328     0.2219 0.02 0.00 0.00 0.00 0.52 0.46
#> TCGA.VR.A8Q7.01     6  0.5575    -0.0923 0.00 0.00 0.14 0.40 0.00 0.46
#> TCGA.R6.A6Y0.01     4  0.0000     0.9919 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.VR.A8EZ.01     1  0.1267     0.8171 0.94 0.00 0.00 0.00 0.00 0.06
#> TCGA.2H.A9GL.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A8HZ.01     1  0.0000     0.8280 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A891.01     4  0.0000     0.9919 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NM.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A93D.01     2  0.1556     0.9199 0.00 0.92 0.00 0.00 0.00 0.08
#> TCGA.XP.A8T7.01     5  0.1807     0.8842 0.02 0.00 0.00 0.00 0.92 0.06
#> TCGA.L5.A4OX.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6Y2.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GF.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GO.01     2  0.3321     0.8278 0.00 0.82 0.00 0.10 0.00 0.08
#> TCGA.L5.A8NR.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88S.01     6  0.2793     0.7987 0.20 0.00 0.00 0.00 0.00 0.80
#> TCGA.VR.A8EW.01     1  0.3499     0.5007 0.68 0.00 0.00 0.00 0.00 0.32
#> TCGA.VR.A8ER.01     1  0.0547     0.8314 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.L5.A4OU.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A93C.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASX.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A97H.01     1  0.0547     0.8267 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.L5.A8NT.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A8WC.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GJ.01     4  0.0000     0.9919 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.VR.AA4G.01     1  0.2941     0.7130 0.78 0.00 0.00 0.00 0.00 0.22
#> TCGA.JY.A6FD.01     6  0.3828     0.2171 0.44 0.00 0.00 0.00 0.00 0.56
#> TCGA.2H.A9GN.01     4  0.0547     0.9834 0.00 0.00 0.00 0.98 0.00 0.02
#> TCGA.VR.AA4D.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A97I.01     1  0.1814     0.8047 0.90 0.00 0.00 0.00 0.00 0.10
#> TCGA.2H.A9GM.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NG.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A5S3.01     1  0.3198     0.6607 0.74 0.00 0.00 0.00 0.00 0.26
#> TCGA.IC.A6RE.11     6  0.2956     0.7877 0.12 0.00 0.04 0.00 0.00 0.84
#> TCGA.IC.A6RE.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GG.01     4  0.0000     0.9919 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A5U6.01     1  0.0937     0.8296 0.96 0.00 0.00 0.00 0.00 0.04
#> TCGA.LN.A9FQ.01     1  0.0547     0.8314 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.L5.A8NK.01     6  0.5265     0.2319 0.40 0.00 0.00 0.00 0.10 0.50
#> TCGA.L5.A4OS.01     3  0.0000     0.9406 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.RE.A7BO.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FO.01     6  0.3499     0.6886 0.32 0.00 0.00 0.00 0.00 0.68
#> TCGA.L5.A8NJ.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A939.01     2  0.3321     0.8278 0.00 0.82 0.00 0.10 0.00 0.08
#> TCGA.VR.A8EY.01     5  0.0000     0.9181 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.Z6.A9VB.01     5  0.1480     0.8961 0.02 0.00 0.00 0.00 0.94 0.04
#> TCGA.V5.AASV.01     5  0.0000     0.9181 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.LN.A9FR.01     1  0.3706     0.4049 0.62 0.00 0.00 0.00 0.00 0.38
#> TCGA.JY.A6F8.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EQ.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GQ.01     4  0.0000     0.9919 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NL.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GH.01     2  0.0000     0.9753 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NF.01     4  0.0547     0.9834 0.00 0.00 0.00 0.98 0.00 0.02
#> TCGA.L5.A8NI.01     4  0.0000     0.9919 0.00 0.00 0.00 1.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 7), get_membership(res, k = 7))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7
#> TCGA.JY.A6FB.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49L.01     5  0.0504     0.8313 0.00 0.00 0.00 0.00 0.98 0.02 0.00
#> TCGA.LN.A4A4.01     1  0.1928     0.5235 0.90 0.00 0.00 0.00 0.00 0.02 0.08
#> TCGA.LN.A49M.01     5  0.1664     0.8211 0.00 0.00 0.00 0.00 0.92 0.02 0.06
#> TCGA.Q9.A6FW.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.Z6.AAPN.01     6  0.0863     0.6578 0.00 0.00 0.04 0.00 0.00 0.96 0.00
#> TCGA.Q9.A6FU.01     1  0.5073     0.0291 0.54 0.00 0.00 0.00 0.00 0.16 0.30
#> TCGA.L5.A43C.11     3  0.0000     0.8779 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.S8.A6BW.01     1  0.4698    -0.1928 0.62 0.00 0.00 0.00 0.00 0.14 0.24
#> TCGA.S8.A6BV.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.V5.A7RC.01     1  0.0504     0.5774 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.VR.A8ET.01     6  0.3413    -0.0311 0.00 0.00 0.38 0.00 0.00 0.62 0.00
#> TCGA.LN.A4A3.01     6  0.4630     0.2718 0.12 0.00 0.00 0.00 0.00 0.62 0.26
#> TCGA.L5.A4OH.11     3  0.0000     0.8779 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49X.01     6  0.0504     0.6785 0.02 0.00 0.00 0.00 0.00 0.98 0.00
#> TCGA.L5.A4OI.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A7HV.01     1  0.4714    -0.2511 0.60 0.00 0.00 0.00 0.00 0.12 0.28
#> TCGA.R6.A6DN.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A3YB.01     5  0.0504     0.8289 0.00 0.00 0.00 0.00 0.98 0.00 0.02
#> TCGA.IG.A3YC.01     6  0.0504     0.6785 0.02 0.00 0.00 0.00 0.00 0.98 0.00
#> TCGA.L5.A4OE.11     3  0.0000     0.8779 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OG.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KH.A6WC.01     6  0.0504     0.6785 0.02 0.00 0.00 0.00 0.00 0.98 0.00
#> TCGA.L7.A56G.01     1  0.3086     0.3711 0.80 0.00 0.00 0.00 0.00 0.04 0.16
#> TCGA.IG.A51D.01     5  0.2278     0.8099 0.00 0.00 0.00 0.00 0.88 0.04 0.08
#> TCGA.VR.A8EP.01     1  0.3417     0.1752 0.72 0.00 0.00 0.00 0.00 0.02 0.26
#> TCGA.L5.A88T.01     6  0.0504     0.6785 0.02 0.00 0.00 0.00 0.00 0.98 0.00
#> TCGA.L5.A4ON.11     3  0.2708     0.7865 0.00 0.00 0.78 0.00 0.00 0.22 0.00
#> TCGA.L5.A43J.01     5  0.6450     0.2823 0.12 0.00 0.00 0.00 0.46 0.26 0.16
#> TCGA.L5.A43E.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X8.AAAR.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A6FE.01     1  0.4338    -0.0829 0.64 0.00 0.00 0.00 0.00 0.08 0.28
#> TCGA.LN.A49N.01     6  0.4993     0.3395 0.24 0.00 0.00 0.00 0.02 0.62 0.12
#> TCGA.L5.A4ON.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASW.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43I.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OF.01     2  0.4191     0.6140 0.00 0.64 0.00 0.06 0.00 0.00 0.30
#> TCGA.L5.A4OQ.11     3  0.2708     0.7865 0.00 0.00 0.78 0.00 0.00 0.22 0.00
#> TCGA.IG.A3I8.01     5  0.3047     0.7213 0.00 0.00 0.00 0.00 0.72 0.00 0.28
#> TCGA.VR.AA7B.01     1  0.4649     0.1726 0.62 0.00 0.00 0.00 0.02 0.06 0.30
#> TCGA.L5.A4OJ.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A3Y9.01     1  0.2572     0.3353 0.80 0.00 0.00 0.00 0.00 0.20 0.00
#> TCGA.L5.A4OM.01     1  0.2832     0.3693 0.76 0.00 0.00 0.00 0.00 0.00 0.24
#> TCGA.LN.A4A6.01     6  0.4714     0.2364 0.12 0.00 0.00 0.00 0.00 0.60 0.28
#> TCGA.LN.A49V.01     5  0.3315     0.7688 0.08 0.00 0.00 0.00 0.82 0.02 0.08
#> TCGA.L5.A4OH.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OI.11     3  0.0000     0.8779 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49R.01     1  0.0000     0.5822 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49K.01     1  0.0000     0.5822 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A4QT.01     3  0.2945     0.7499 0.00 0.00 0.74 0.00 0.00 0.26 0.00
#> TCGA.R6.A6L4.01     2  0.2803     0.8231 0.00 0.84 0.00 0.06 0.00 0.00 0.10
#> TCGA.L7.A6VZ.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49U.01     1  0.4108    -0.0219 0.66 0.00 0.00 0.00 0.00 0.06 0.28
#> TCGA.L5.A4OF.11     3  0.0000     0.8779 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A7HX.01     1  0.3841     0.0529 0.68 0.00 0.00 0.00 0.00 0.04 0.28
#> TCGA.L5.A4OO.01     2  0.3927     0.6412 0.00 0.66 0.00 0.04 0.00 0.00 0.30
#> TCGA.LN.A4A8.01     6  0.4714     0.2364 0.12 0.00 0.00 0.00 0.00 0.60 0.28
#> TCGA.JY.A6FG.01     5  0.1886     0.8119 0.00 0.00 0.00 0.00 0.88 0.00 0.12
#> TCGA.L5.A4OJ.11     3  0.0000     0.8779 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A5U7.01     1  0.2512     0.4954 0.86 0.00 0.00 0.00 0.00 0.04 0.10
#> TCGA.V5.A7RC.06     1  0.0504     0.5774 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.IG.A625.01     1  0.4338    -0.0829 0.64 0.00 0.00 0.00 0.00 0.08 0.28
#> TCGA.L5.A4OP.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A4P3.01     1  0.3358    -0.0682 0.64 0.00 0.00 0.00 0.00 0.36 0.00
#> TCGA.LN.A49Y.01     7  0.5829     0.0000 0.38 0.00 0.00 0.00 0.02 0.20 0.40
#> TCGA.L5.A43C.01     2  0.0504     0.9315 0.00 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.L5.A88W.01     5  0.1886     0.8119 0.00 0.00 0.00 0.00 0.88 0.00 0.12
#> TCGA.L5.A43H.01     1  0.0000     0.5822 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OE.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A50L.01     1  0.1166     0.5557 0.94 0.00 0.00 0.00 0.00 0.00 0.06
#> TCGA.LN.A7HY.01     6  0.3315     0.6209 0.08 0.00 0.00 0.00 0.02 0.82 0.08
#> TCGA.R6.A6KZ.01     2  0.4191     0.6140 0.00 0.64 0.00 0.06 0.00 0.00 0.30
#> TCGA.LN.A49P.01     6  0.4908     0.3387 0.26 0.00 0.00 0.00 0.02 0.62 0.10
#> TCGA.L5.A4OM.11     3  0.0000     0.8779 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A1.01     1  0.4714    -0.2511 0.60 0.00 0.00 0.00 0.00 0.12 0.28
#> TCGA.LN.A49O.01     1  0.1718     0.5359 0.92 0.00 0.00 0.00 0.00 0.04 0.04
#> TCGA.LN.A4A5.01     6  0.4699     0.4758 0.06 0.00 0.00 0.00 0.24 0.66 0.04
#> TCGA.LN.A49W.01     6  0.2769     0.6470 0.04 0.00 0.00 0.00 0.02 0.86 0.08
#> TCGA.L5.A4OR.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43M.01     4  0.1433     0.9315 0.00 0.00 0.00 0.92 0.00 0.00 0.08
#> TCGA.L5.A4OP.11     3  0.0000     0.8779 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.V5.A7RE.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.AA7I.01     5  0.2572     0.7953 0.00 0.00 0.00 0.00 0.86 0.08 0.06
#> TCGA.IG.A3YA.01     6  0.0504     0.6785 0.02 0.00 0.00 0.00 0.00 0.98 0.00
#> TCGA.V5.A7RE.11     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A7HZ.01     1  0.2376     0.4747 0.86 0.00 0.00 0.00 0.00 0.02 0.12
#> TCGA.VR.AA7D.01     5  0.0000     0.8319 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.V5.A7RB.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OQ.01     4  0.0000     0.9772 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A3QL.01     1  0.3566     0.3707 0.78 0.00 0.00 0.00 0.02 0.04 0.16
#> TCGA.R6.A6DQ.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A3I8.11     3  0.2081     0.8323 0.00 0.00 0.86 0.00 0.00 0.14 0.00
#> TCGA.LN.A4A2.01     1  0.0000     0.5822 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IC.A6RF.01     5  0.2722     0.7827 0.00 0.04 0.00 0.00 0.84 0.00 0.12
#> TCGA.LN.A49S.01     6  0.4630     0.2836 0.12 0.00 0.00 0.00 0.00 0.62 0.26
#> TCGA.IG.A4QS.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OG.11     3  0.0000     0.8779 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88Y.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88V.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A7HW.01     1  0.1886     0.4963 0.88 0.00 0.00 0.00 0.00 0.00 0.12
#> TCGA.IG.A8O2.01     1  0.6084    -0.4021 0.52 0.00 0.00 0.00 0.08 0.22 0.18
#> TCGA.IG.A7DP.01     3  0.5375     0.4696 0.00 0.00 0.46 0.00 0.00 0.34 0.20
#> TCGA.L5.A8NQ.01     6  0.0504     0.6785 0.02 0.00 0.00 0.00 0.00 0.98 0.00
#> TCGA.LN.A8I0.01     1  0.3637     0.1744 0.72 0.00 0.00 0.00 0.00 0.04 0.24
#> TCGA.JY.A93F.01     5  0.2722     0.7827 0.00 0.04 0.00 0.00 0.84 0.00 0.12
#> TCGA.M9.A5M8.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OW.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GK.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NW.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A8W5.01     4  0.1166     0.9533 0.00 0.00 0.00 0.94 0.00 0.00 0.06
#> TCGA.L5.A8NH.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GR.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NV.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.XP.A8T8.01     1  0.0863     0.5623 0.96 0.00 0.00 0.00 0.00 0.00 0.04
#> TCGA.L5.A88Z.01     1  0.5402    -0.0235 0.48 0.00 0.00 0.00 0.24 0.00 0.28
#> TCGA.IG.A5B8.01     6  0.4714     0.2364 0.12 0.00 0.00 0.00 0.00 0.60 0.28
#> TCGA.R6.A6XG.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NN.01     2  0.4615     0.5497 0.00 0.60 0.00 0.10 0.00 0.00 0.30
#> TCGA.LN.A9FP.01     3  0.3558     0.3569 0.00 0.00 0.52 0.00 0.00 0.48 0.00
#> TCGA.LN.A4MR.01     6  0.5130     0.4864 0.04 0.00 0.00 0.00 0.14 0.64 0.18
#> TCGA.L5.A8NS.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4MQ.01     1  0.0000     0.5822 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A9.01     1  0.4714    -0.2497 0.60 0.00 0.00 0.00 0.00 0.12 0.28
#> TCGA.VR.A8EX.01     6  0.5455     0.4412 0.18 0.00 0.00 0.00 0.08 0.62 0.12
#> TCGA.JY.A938.01     2  0.0504     0.9315 0.00 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.JY.A6FA.01     1  0.0863     0.5677 0.96 0.00 0.00 0.00 0.00 0.00 0.04
#> TCGA.R6.A8WG.01     2  0.3139     0.6899 0.00 0.70 0.00 0.00 0.00 0.00 0.30
#> TCGA.VR.A8EO.01     1  0.2163     0.5218 0.88 0.00 0.00 0.00 0.00 0.02 0.10
#> TCGA.VR.A8EU.01     1  0.0000     0.5822 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6L6.01     2  0.4418     0.5834 0.00 0.62 0.00 0.08 0.00 0.00 0.30
#> TCGA.L5.A8NE.01     4  0.0863     0.9649 0.00 0.00 0.00 0.96 0.00 0.00 0.04
#> TCGA.V5.AASX.11     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A8I1.01     1  0.0504     0.5774 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.L5.A893.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IC.A6RF.11     5  0.1886     0.8119 0.00 0.00 0.00 0.00 0.88 0.00 0.12
#> TCGA.L5.A8NU.01     2  0.4191     0.6140 0.00 0.64 0.00 0.06 0.00 0.00 0.30
#> TCGA.R6.A6XQ.01     2  0.4348     0.6479 0.00 0.68 0.00 0.14 0.00 0.00 0.18
#> TCGA.LN.A5U5.01     1  0.0863     0.5695 0.96 0.00 0.00 0.00 0.00 0.00 0.04
#> TCGA.Z6.A8JD.01     6  0.0504     0.6785 0.02 0.00 0.00 0.00 0.00 0.98 0.00
#> TCGA.L5.A4OT.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.ZR.A9CJ.01     2  0.3047     0.7116 0.00 0.72 0.00 0.00 0.00 0.00 0.28
#> TCGA.Z6.A8JE.01     5  0.0000     0.8319 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.JY.A6FH.01     4  0.0000     0.9772 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.XP.A8T6.01     1  0.5438    -0.2810 0.44 0.00 0.00 0.00 0.02 0.42 0.12
#> TCGA.R6.A8W8.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A93E.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GI.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A6QS.01     5  0.5606     0.1593 0.06 0.00 0.00 0.00 0.48 0.38 0.08
#> TCGA.VR.A8Q7.01     6  0.5451     0.1749 0.00 0.00 0.16 0.28 0.00 0.54 0.02
#> TCGA.R6.A6Y0.01     4  0.0000     0.9772 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EZ.01     1  0.0000     0.5822 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GL.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A8HZ.01     1  0.1433     0.5440 0.92 0.00 0.00 0.00 0.00 0.00 0.08
#> TCGA.L5.A891.01     4  0.0000     0.9772 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NM.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A93D.01     2  0.3047     0.7116 0.00 0.72 0.00 0.00 0.00 0.00 0.28
#> TCGA.XP.A8T7.01     5  0.3841     0.6870 0.00 0.00 0.00 0.00 0.68 0.04 0.28
#> TCGA.L5.A4OX.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6Y2.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GF.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GO.01     2  0.4418     0.5834 0.00 0.62 0.00 0.08 0.00 0.00 0.30
#> TCGA.L5.A8NR.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88S.01     6  0.3985     0.5095 0.10 0.00 0.00 0.00 0.00 0.72 0.18
#> TCGA.VR.A8EW.01     1  0.5164    -0.4992 0.54 0.00 0.00 0.00 0.00 0.20 0.26
#> TCGA.VR.A8ER.01     1  0.0000     0.5822 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OU.01     2  0.0504     0.9315 0.00 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.JY.A93C.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASX.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A97H.01     1  0.1433     0.5440 0.92 0.00 0.00 0.00 0.00 0.00 0.08
#> TCGA.L5.A8NT.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A8WC.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GJ.01     4  0.0000     0.9772 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.VR.AA4G.01     1  0.4870     0.1179 0.58 0.00 0.00 0.00 0.00 0.14 0.28
#> TCGA.JY.A6FD.01     1  0.6022    -0.2516 0.36 0.00 0.00 0.00 0.02 0.30 0.32
#> TCGA.2H.A9GN.01     4  0.0863     0.9649 0.00 0.00 0.00 0.96 0.00 0.00 0.04
#> TCGA.VR.AA4D.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A97I.01     1  0.1363     0.5480 0.94 0.00 0.00 0.00 0.00 0.02 0.04
#> TCGA.2H.A9GM.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NG.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A5S3.01     1  0.5377     0.0700 0.56 0.00 0.00 0.00 0.02 0.16 0.26
#> TCGA.IC.A6RE.11     6  0.1505     0.6628 0.02 0.00 0.02 0.00 0.00 0.94 0.02
#> TCGA.IC.A6RE.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GG.01     4  0.0000     0.9772 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A5U6.01     1  0.0000     0.5822 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FQ.01     1  0.0000     0.5822 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NK.01     1  0.6957    -0.1521 0.34 0.00 0.00 0.00 0.20 0.18 0.28
#> TCGA.L5.A4OS.01     3  0.1166     0.8641 0.00 0.00 0.94 0.00 0.00 0.06 0.00
#> TCGA.RE.A7BO.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FO.01     6  0.5410    -0.3595 0.26 0.00 0.00 0.00 0.00 0.48 0.26
#> TCGA.L5.A8NJ.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A939.01     2  0.4191     0.6140 0.00 0.64 0.00 0.06 0.00 0.00 0.30
#> TCGA.VR.A8EY.01     5  0.1433     0.8208 0.00 0.00 0.00 0.00 0.92 0.00 0.08
#> TCGA.Z6.A9VB.01     5  0.3396     0.7719 0.02 0.00 0.00 0.00 0.80 0.04 0.14
#> TCGA.V5.AASV.01     5  0.1886     0.8119 0.00 0.00 0.00 0.00 0.88 0.00 0.12
#> TCGA.LN.A9FR.01     1  0.3685    -0.0330 0.66 0.00 0.00 0.00 0.00 0.32 0.02
#> TCGA.JY.A6F8.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EQ.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GQ.01     4  0.0000     0.9772 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NL.01     2  0.0504     0.9315 0.00 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.2H.A9GH.01     2  0.0000     0.9440 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NF.01     4  0.1166     0.9533 0.00 0.00 0.00 0.94 0.00 0.00 0.06
#> TCGA.L5.A8NI.01     4  0.0000     0.9772 0.00 0.00 0.00 1.00 0.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 8), get_membership(res, k = 8))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7   p8
#> TCGA.JY.A6FB.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49L.01     5  0.0941    0.71329 0.00 0.00 0.00 0.00 0.96 0.00 0.02 0.02
#> TCGA.LN.A4A4.01     1  0.3272   -0.07108 0.58 0.00 0.00 0.00 0.00 0.00 0.42 0.00
#> TCGA.LN.A49M.01     5  0.1275    0.70207 0.00 0.00 0.00 0.00 0.94 0.00 0.04 0.02
#> TCGA.Q9.A6FW.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.Z6.AAPN.01     6  0.0941    0.70553 0.02 0.00 0.02 0.00 0.00 0.96 0.00 0.00
#> TCGA.Q9.A6FU.01     7  0.5563    0.26949 0.18 0.00 0.00 0.00 0.00 0.10 0.56 0.16
#> TCGA.L5.A43C.11     3  0.0000    0.90923 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.S8.A6BW.01     1  0.2818    0.40099 0.82 0.00 0.00 0.00 0.00 0.06 0.12 0.00
#> TCGA.S8.A6BV.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.V5.A7RC.01     1  0.3714   -0.13323 0.54 0.00 0.00 0.00 0.00 0.00 0.44 0.02
#> TCGA.VR.A8ET.01     6  0.2267    0.54206 0.00 0.00 0.18 0.00 0.00 0.82 0.00 0.00
#> TCGA.LN.A4A3.01     1  0.3237    0.01434 0.60 0.00 0.00 0.00 0.00 0.40 0.00 0.00
#> TCGA.L5.A4OH.11     3  0.0000    0.90923 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49X.01     6  0.0941    0.72067 0.02 0.00 0.00 0.00 0.00 0.96 0.02 0.00
#> TCGA.L5.A4OI.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A7HV.01     1  0.1091    0.43928 0.94 0.00 0.00 0.00 0.00 0.06 0.00 0.00
#> TCGA.R6.A6DN.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A3YB.01     5  0.1275    0.71559 0.00 0.00 0.00 0.00 0.94 0.02 0.00 0.04
#> TCGA.IG.A3YC.01     6  0.0941    0.72067 0.02 0.00 0.00 0.00 0.00 0.96 0.02 0.00
#> TCGA.L5.A4OE.11     3  0.0000    0.90923 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OG.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KH.A6WC.01     6  0.0941    0.72067 0.02 0.00 0.00 0.00 0.00 0.96 0.02 0.00
#> TCGA.L7.A56G.01     1  0.3880    0.12087 0.64 0.00 0.00 0.00 0.00 0.02 0.32 0.02
#> TCGA.IG.A51D.01     5  0.1091    0.70362 0.00 0.00 0.00 0.00 0.94 0.00 0.06 0.00
#> TCGA.VR.A8EP.01     1  0.2981    0.29631 0.76 0.00 0.00 0.00 0.00 0.02 0.22 0.00
#> TCGA.L5.A88T.01     6  0.0941    0.72067 0.02 0.00 0.00 0.00 0.00 0.96 0.02 0.00
#> TCGA.L5.A4ON.11     3  0.2756    0.72521 0.00 0.00 0.74 0.00 0.00 0.26 0.00 0.00
#> TCGA.L5.A43J.01     5  0.5751    0.26199 0.00 0.00 0.00 0.00 0.46 0.18 0.30 0.06
#> TCGA.L5.A43E.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X8.AAAR.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A6FE.01     1  0.1275    0.44164 0.94 0.00 0.00 0.00 0.00 0.04 0.02 0.00
#> TCGA.LN.A49N.01     6  0.6637    0.39853 0.12 0.00 0.00 0.00 0.16 0.44 0.24 0.04
#> TCGA.L5.A4ON.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASW.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43I.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OF.01     8  0.3193    0.97401 0.00 0.38 0.00 0.00 0.00 0.00 0.00 0.62
#> TCGA.L5.A4OQ.11     3  0.2756    0.72521 0.00 0.00 0.74 0.00 0.00 0.26 0.00 0.00
#> TCGA.IG.A3I8.01     5  0.4693    0.42480 0.00 0.00 0.00 0.00 0.46 0.00 0.42 0.12
#> TCGA.VR.AA7B.01     7  0.4337    0.36078 0.10 0.00 0.00 0.00 0.00 0.04 0.70 0.16
#> TCGA.L5.A4OJ.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A3Y9.01     7  0.4554    0.18465 0.42 0.00 0.00 0.00 0.00 0.10 0.48 0.00
#> TCGA.L5.A4OM.01     7  0.3934    0.36406 0.16 0.00 0.00 0.00 0.00 0.00 0.70 0.14
#> TCGA.LN.A4A6.01     1  0.3658   -0.03875 0.58 0.00 0.00 0.00 0.00 0.40 0.00 0.02
#> TCGA.LN.A49V.01     5  0.3808    0.54839 0.00 0.00 0.00 0.00 0.62 0.00 0.34 0.04
#> TCGA.L5.A4OH.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OI.11     3  0.0000    0.90923 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49R.01     7  0.3333    0.17204 0.50 0.00 0.00 0.00 0.00 0.00 0.50 0.00
#> TCGA.LN.A49K.01     7  0.3737    0.21348 0.48 0.00 0.00 0.00 0.00 0.02 0.50 0.00
#> TCGA.IG.A4QT.01     3  0.3142    0.57010 0.00 0.00 0.64 0.00 0.00 0.36 0.00 0.00
#> TCGA.R6.A6L4.01     2  0.3660    0.08266 0.00 0.70 0.00 0.06 0.00 0.00 0.00 0.24
#> TCGA.L7.A6VZ.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49U.01     1  0.0471    0.44417 0.98 0.00 0.00 0.00 0.00 0.02 0.00 0.00
#> TCGA.L5.A4OF.11     3  0.0000    0.90923 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A7HX.01     1  0.0471    0.43133 0.98 0.00 0.00 0.00 0.00 0.00 0.02 0.00
#> TCGA.L5.A4OO.01     8  0.3193    0.97401 0.00 0.38 0.00 0.00 0.00 0.00 0.00 0.62
#> TCGA.LN.A4A8.01     1  0.3237    0.01434 0.60 0.00 0.00 0.00 0.00 0.40 0.00 0.00
#> TCGA.JY.A6FG.01     5  0.3913    0.68700 0.00 0.00 0.00 0.00 0.74 0.04 0.06 0.16
#> TCGA.L5.A4OJ.11     3  0.0000    0.90923 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A5U7.01     7  0.4770    0.28241 0.40 0.00 0.00 0.00 0.04 0.02 0.52 0.02
#> TCGA.V5.A7RC.06     1  0.3714   -0.13323 0.54 0.00 0.00 0.00 0.00 0.00 0.44 0.02
#> TCGA.IG.A625.01     1  0.1275    0.43802 0.94 0.00 0.00 0.00 0.00 0.02 0.04 0.00
#> TCGA.L5.A4OP.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A4P3.01     1  0.5270    0.00575 0.36 0.00 0.00 0.00 0.00 0.30 0.34 0.00
#> TCGA.LN.A49Y.01     1  0.4134    0.35207 0.76 0.00 0.00 0.00 0.02 0.08 0.08 0.06
#> TCGA.L5.A43C.01     2  0.0471    0.95868 0.00 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.L5.A88W.01     5  0.3913    0.68700 0.00 0.00 0.00 0.00 0.74 0.04 0.06 0.16
#> TCGA.L5.A43H.01     7  0.3318    0.25158 0.46 0.00 0.00 0.00 0.00 0.00 0.54 0.00
#> TCGA.L5.A4OE.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A50L.01     1  0.3299   -0.07977 0.56 0.00 0.00 0.00 0.00 0.00 0.44 0.00
#> TCGA.LN.A7HY.01     6  0.5241    0.59282 0.10 0.00 0.00 0.00 0.08 0.66 0.12 0.04
#> TCGA.R6.A6KZ.01     8  0.3193    0.97401 0.00 0.38 0.00 0.00 0.00 0.00 0.00 0.62
#> TCGA.LN.A49P.01     6  0.6347    0.34505 0.06 0.00 0.00 0.00 0.16 0.42 0.32 0.04
#> TCGA.L5.A4OM.11     3  0.0000    0.90923 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A1.01     1  0.0941    0.44310 0.96 0.00 0.00 0.00 0.00 0.02 0.02 0.00
#> TCGA.LN.A49O.01     7  0.4702    0.34104 0.36 0.00 0.00 0.00 0.04 0.02 0.56 0.02
#> TCGA.LN.A4A5.01     6  0.4779    0.40737 0.00 0.00 0.00 0.00 0.28 0.60 0.08 0.04
#> TCGA.LN.A49W.01     6  0.4428    0.63146 0.14 0.00 0.00 0.00 0.02 0.72 0.08 0.04
#> TCGA.L5.A4OR.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43M.01     4  0.1765    0.89119 0.00 0.00 0.00 0.88 0.00 0.00 0.00 0.12
#> TCGA.L5.A4OP.11     3  0.0000    0.90923 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.V5.A7RE.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.AA7I.01     5  0.3421    0.61744 0.00 0.00 0.00 0.00 0.80 0.08 0.08 0.04
#> TCGA.IG.A3YA.01     6  0.0941    0.72067 0.02 0.00 0.00 0.00 0.00 0.96 0.02 0.00
#> TCGA.V5.A7RE.11     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A7HZ.01     1  0.2938    0.18790 0.70 0.00 0.00 0.00 0.00 0.00 0.30 0.00
#> TCGA.VR.AA7D.01     5  0.0808    0.70756 0.00 0.00 0.00 0.00 0.96 0.00 0.04 0.00
#> TCGA.V5.A7RB.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OQ.01     4  0.0471    0.95932 0.00 0.00 0.00 0.98 0.00 0.00 0.02 0.00
#> TCGA.IG.A3QL.01     7  0.4684    0.38654 0.14 0.00 0.00 0.00 0.06 0.02 0.70 0.08
#> TCGA.R6.A6DQ.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A3I8.11     3  0.2114    0.81799 0.00 0.00 0.84 0.00 0.00 0.16 0.00 0.00
#> TCGA.LN.A4A2.01     7  0.3880    0.37255 0.32 0.00 0.00 0.00 0.02 0.00 0.64 0.02
#> TCGA.IC.A6RF.01     5  0.4661    0.65717 0.00 0.04 0.00 0.00 0.70 0.04 0.06 0.16
#> TCGA.LN.A49S.01     1  0.3237    0.01434 0.60 0.00 0.00 0.00 0.00 0.40 0.00 0.00
#> TCGA.IG.A4QS.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OG.11     3  0.0000    0.90923 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88Y.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88V.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A7HW.01     1  0.3193    0.03671 0.62 0.00 0.00 0.00 0.00 0.00 0.38 0.00
#> TCGA.IG.A8O2.01     1  0.6950   -0.08190 0.36 0.00 0.00 0.00 0.20 0.10 0.28 0.06
#> TCGA.IG.A7DP.01     6  0.4998    0.09681 0.00 0.00 0.24 0.00 0.00 0.50 0.00 0.26
#> TCGA.L5.A8NQ.01     6  0.0941    0.72067 0.02 0.00 0.00 0.00 0.00 0.96 0.02 0.00
#> TCGA.LN.A8I0.01     1  0.0808    0.43165 0.96 0.00 0.00 0.00 0.00 0.00 0.04 0.00
#> TCGA.JY.A93F.01     5  0.4355    0.67457 0.00 0.02 0.00 0.00 0.72 0.04 0.06 0.16
#> TCGA.M9.A5M8.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OW.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GK.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NW.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A8W5.01     4  0.1341    0.93238 0.00 0.00 0.00 0.92 0.00 0.00 0.00 0.08
#> TCGA.L5.A8NH.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GR.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NV.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.XP.A8T8.01     7  0.3514    0.36589 0.34 0.00 0.00 0.00 0.00 0.00 0.64 0.02
#> TCGA.L5.A88Z.01     7  0.3314    0.34479 0.02 0.00 0.00 0.00 0.10 0.00 0.80 0.08
#> TCGA.IG.A5B8.01     1  0.3237    0.01434 0.60 0.00 0.00 0.00 0.00 0.40 0.00 0.00
#> TCGA.R6.A6XG.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NN.01     8  0.3193    0.97401 0.00 0.38 0.00 0.00 0.00 0.00 0.00 0.62
#> TCGA.LN.A9FP.01     6  0.3299   -0.09868 0.00 0.00 0.44 0.00 0.00 0.56 0.00 0.00
#> TCGA.LN.A4MR.01     6  0.6929    0.28283 0.18 0.00 0.00 0.00 0.24 0.38 0.16 0.04
#> TCGA.L5.A8NS.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4MQ.01     7  0.3329    0.22452 0.48 0.00 0.00 0.00 0.00 0.00 0.52 0.00
#> TCGA.LN.A4A9.01     1  0.0471    0.44417 0.98 0.00 0.00 0.00 0.00 0.02 0.00 0.00
#> TCGA.VR.A8EX.01     6  0.6675    0.26168 0.08 0.00 0.00 0.00 0.22 0.38 0.28 0.04
#> TCGA.JY.A938.01     2  0.0471    0.95850 0.00 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.JY.A6FA.01     1  0.3329   -0.19186 0.52 0.00 0.00 0.00 0.00 0.00 0.48 0.00
#> TCGA.R6.A8WG.01     8  0.3193    0.97401 0.00 0.38 0.00 0.00 0.00 0.00 0.00 0.62
#> TCGA.VR.A8EO.01     1  0.4358   -0.10063 0.54 0.00 0.00 0.00 0.00 0.02 0.40 0.04
#> TCGA.VR.A8EU.01     7  0.3329    0.22452 0.48 0.00 0.00 0.00 0.00 0.00 0.52 0.00
#> TCGA.R6.A6L6.01     8  0.3193    0.97401 0.00 0.38 0.00 0.00 0.00 0.00 0.00 0.62
#> TCGA.L5.A8NE.01     4  0.1091    0.94458 0.00 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.V5.AASX.11     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A8I1.01     7  0.3329    0.22452 0.48 0.00 0.00 0.00 0.00 0.00 0.52 0.00
#> TCGA.L5.A893.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IC.A6RF.11     5  0.3913    0.68700 0.00 0.00 0.00 0.00 0.74 0.04 0.06 0.16
#> TCGA.L5.A8NU.01     8  0.3193    0.97401 0.00 0.38 0.00 0.00 0.00 0.00 0.00 0.62
#> TCGA.R6.A6XQ.01     8  0.4008    0.78275 0.00 0.48 0.00 0.04 0.00 0.00 0.00 0.48
#> TCGA.LN.A5U5.01     1  0.3299   -0.08515 0.56 0.00 0.00 0.00 0.00 0.00 0.44 0.00
#> TCGA.Z6.A8JD.01     6  0.0941    0.72067 0.02 0.00 0.00 0.00 0.00 0.96 0.02 0.00
#> TCGA.L5.A4OT.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.ZR.A9CJ.01     8  0.3237    0.95463 0.00 0.40 0.00 0.00 0.00 0.00 0.00 0.60
#> TCGA.Z6.A8JE.01     5  0.1804    0.71609 0.00 0.00 0.00 0.00 0.90 0.00 0.02 0.08
#> TCGA.JY.A6FH.01     4  0.0471    0.95932 0.00 0.00 0.00 0.98 0.00 0.00 0.02 0.00
#> TCGA.XP.A8T6.01     7  0.6523    0.22102 0.22 0.00 0.00 0.00 0.14 0.18 0.44 0.02
#> TCGA.R6.A8W8.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A93E.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GI.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A6QS.01     5  0.5727    0.05848 0.00 0.00 0.00 0.00 0.42 0.32 0.22 0.04
#> TCGA.VR.A8Q7.01     6  0.4074    0.45824 0.00 0.00 0.02 0.26 0.00 0.68 0.02 0.02
#> TCGA.R6.A6Y0.01     4  0.0471    0.95932 0.00 0.00 0.00 0.98 0.00 0.00 0.02 0.00
#> TCGA.VR.A8EZ.01     7  0.3329    0.22452 0.48 0.00 0.00 0.00 0.00 0.00 0.52 0.00
#> TCGA.2H.A9GL.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A8HZ.01     1  0.3318   -0.12418 0.54 0.00 0.00 0.00 0.00 0.00 0.46 0.00
#> TCGA.L5.A891.01     4  0.0471    0.95932 0.00 0.00 0.00 0.98 0.00 0.00 0.02 0.00
#> TCGA.L5.A8NM.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A93D.01     8  0.3237    0.95463 0.00 0.40 0.00 0.00 0.00 0.00 0.00 0.60
#> TCGA.XP.A8T7.01     5  0.4554    0.44315 0.00 0.00 0.00 0.00 0.48 0.00 0.42 0.10
#> TCGA.L5.A4OX.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6Y2.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GF.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GO.01     8  0.3193    0.97401 0.00 0.38 0.00 0.00 0.00 0.00 0.00 0.62
#> TCGA.L5.A8NR.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88S.01     6  0.4350    0.44082 0.30 0.00 0.00 0.00 0.00 0.62 0.06 0.02
#> TCGA.VR.A8EW.01     1  0.2224    0.42966 0.86 0.00 0.00 0.00 0.00 0.12 0.02 0.00
#> TCGA.VR.A8ER.01     1  0.3333   -0.21563 0.50 0.00 0.00 0.00 0.00 0.00 0.50 0.00
#> TCGA.L5.A4OU.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A93C.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASX.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A97H.01     1  0.3272   -0.04254 0.58 0.00 0.00 0.00 0.00 0.00 0.42 0.00
#> TCGA.L5.A8NT.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A8WC.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GJ.01     4  0.0471    0.95932 0.00 0.00 0.00 0.98 0.00 0.00 0.02 0.00
#> TCGA.VR.AA4G.01     7  0.4808    0.34620 0.08 0.00 0.00 0.00 0.00 0.10 0.66 0.16
#> TCGA.JY.A6FD.01     7  0.5948    0.09875 0.20 0.00 0.00 0.00 0.00 0.14 0.50 0.16
#> TCGA.2H.A9GN.01     4  0.1091    0.94458 0.00 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.VR.AA4D.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A97I.01     7  0.3514    0.35687 0.34 0.00 0.00 0.00 0.00 0.02 0.64 0.00
#> TCGA.2H.A9GM.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NG.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A5S3.01     7  0.4764    0.32651 0.06 0.00 0.00 0.00 0.00 0.12 0.66 0.16
#> TCGA.IC.A6RE.11     6  0.0941    0.70553 0.02 0.00 0.02 0.00 0.00 0.96 0.00 0.00
#> TCGA.IC.A6RE.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GG.01     4  0.0000    0.95841 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A5U6.01     7  0.3329    0.22452 0.48 0.00 0.00 0.00 0.00 0.00 0.52 0.00
#> TCGA.LN.A9FQ.01     7  0.3329    0.22452 0.48 0.00 0.00 0.00 0.00 0.00 0.52 0.00
#> TCGA.L5.A8NK.01     7  0.6077   -0.07453 0.02 0.00 0.00 0.00 0.20 0.10 0.52 0.16
#> TCGA.L5.A4OS.01     3  0.1091    0.88258 0.00 0.00 0.94 0.00 0.00 0.06 0.00 0.00
#> TCGA.RE.A7BO.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FO.01     1  0.2938    0.24403 0.70 0.00 0.00 0.00 0.00 0.30 0.00 0.00
#> TCGA.L5.A8NJ.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A939.01     8  0.3570    0.94522 0.00 0.36 0.00 0.02 0.00 0.00 0.00 0.62
#> TCGA.VR.A8EY.01     5  0.3758    0.69164 0.00 0.00 0.00 0.00 0.76 0.04 0.06 0.14
#> TCGA.Z6.A9VB.01     5  0.3594    0.57115 0.00 0.00 0.00 0.00 0.68 0.00 0.28 0.04
#> TCGA.V5.AASV.01     5  0.3913    0.68700 0.00 0.00 0.00 0.00 0.74 0.04 0.06 0.16
#> TCGA.LN.A9FR.01     1  0.5305    0.09938 0.50 0.00 0.00 0.00 0.00 0.20 0.28 0.02
#> TCGA.JY.A6F8.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EQ.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GQ.01     4  0.0941    0.95461 0.00 0.00 0.00 0.96 0.00 0.00 0.02 0.02
#> TCGA.L5.A8NL.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GH.01     2  0.0000    0.99107 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NF.01     4  0.1091    0.94458 0.00 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.L5.A8NI.01     4  0.0000    0.95841 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00

Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.

consensus_heatmap(res, k = 2)

plot of chunk tab-node-0-consensus-heatmap-1

consensus_heatmap(res, k = 3)

plot of chunk tab-node-0-consensus-heatmap-2

consensus_heatmap(res, k = 4)

plot of chunk tab-node-0-consensus-heatmap-3

consensus_heatmap(res, k = 5)

plot of chunk tab-node-0-consensus-heatmap-4

consensus_heatmap(res, k = 6)

plot of chunk tab-node-0-consensus-heatmap-5

consensus_heatmap(res, k = 7)

plot of chunk tab-node-0-consensus-heatmap-6

consensus_heatmap(res, k = 8)

plot of chunk tab-node-0-consensus-heatmap-7

Heatmaps for the membership of samples in all partitions to see how consistent they are:

membership_heatmap(res, k = 2)

plot of chunk tab-node-0-membership-heatmap-1

membership_heatmap(res, k = 3)

plot of chunk tab-node-0-membership-heatmap-2

membership_heatmap(res, k = 4)

plot of chunk tab-node-0-membership-heatmap-3

membership_heatmap(res, k = 5)

plot of chunk tab-node-0-membership-heatmap-4

membership_heatmap(res, k = 6)

plot of chunk tab-node-0-membership-heatmap-5

membership_heatmap(res, k = 7)

plot of chunk tab-node-0-membership-heatmap-6

membership_heatmap(res, k = 8)

plot of chunk tab-node-0-membership-heatmap-7

As soon as the classes for columns are determined, the signatures that are significantly different between subgroups can be looked for. Following are the heatmaps for signatures.

get_signatures(res, k = 2)

plot of chunk tab-node-0-get-signatures-1

get_signatures(res, k = 3)

plot of chunk tab-node-0-get-signatures-2

get_signatures(res, k = 4)

plot of chunk tab-node-0-get-signatures-3

get_signatures(res, k = 5)

plot of chunk tab-node-0-get-signatures-4

get_signatures(res, k = 6)

plot of chunk tab-node-0-get-signatures-5

get_signatures(res, k = 7)

plot of chunk tab-node-0-get-signatures-6

get_signatures(res, k = 8)

plot of chunk tab-node-0-get-signatures-7

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-0-signature_compare

get_signature() returns a data frame invisibly. To get the list of signatures, the function call should be assigned to a variable explicitly. In following code, if plot argument is set to FALSE, no heatmap is plotted while only the differential analysis is performed.

# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)

An example of the output of tb is:

#>   which_row         fdr    mean_1    mean_2 scaled_mean_1 scaled_mean_2 km
#> 1        38 0.042760348  8.373488  9.131774    -0.5533452     0.5164555  1
#> 2        40 0.018707592  7.106213  8.469186    -0.6173731     0.5762149  1
#> 3        55 0.019134737 10.221463 11.207825    -0.6159697     0.5749050  1
#> 4        59 0.006059896  5.921854  7.869574    -0.6899429     0.6439467  1
#> 5        60 0.018055526  8.928898 10.211722    -0.6204761     0.5791110  1
#> 6        98 0.009384629 15.714769 14.887706     0.6635654    -0.6193277  2
...

The columns in tb are:

  1. which_row: row indices corresponding to the input matrix.
  2. fdr: FDR for the differential test.
  3. mean_x: The mean value in group x.
  4. scaled_mean_x: The mean value in group x after rows are scaled.
  5. km: Row groups if k-means clustering is applied to rows (which is done by automatically selecting number of clusters).

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs:

# code only for demonstration
# e.g. to show the top 500 most significant rows
tb = get_signature(res, k = ..., top_signatures = 500)

If the signatures are defined as these which are uniquely high in current group, diff_method argument can be set to "uniquely_high_in_one_group":

# code only for demonstration
tb = get_signature(res, k = ..., diff_method = "uniquely_high_in_one_group")

UMAP plot which shows how samples are separated.

dimension_reduction(res, k = 2, method = "UMAP")

plot of chunk tab-node-0-dimension-reduction-1

dimension_reduction(res, k = 3, method = "UMAP")

plot of chunk tab-node-0-dimension-reduction-2

dimension_reduction(res, k = 4, method = "UMAP")

plot of chunk tab-node-0-dimension-reduction-3

dimension_reduction(res, k = 5, method = "UMAP")

plot of chunk tab-node-0-dimension-reduction-4

dimension_reduction(res, k = 6, method = "UMAP")

plot of chunk tab-node-0-dimension-reduction-5

dimension_reduction(res, k = 7, method = "UMAP")

plot of chunk tab-node-0-dimension-reduction-6

dimension_reduction(res, k = 8, method = "UMAP")

plot of chunk tab-node-0-dimension-reduction-7

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-0-collect-classes

If matrix rows can be associated to genes, consider to use functional_enrichment(res, ...) to perform function enrichment for the signature genes. See this vignette for more detailed explanations.


Node01

Parent node: Node0. Child nodes: Node011 , Node012 , Node013 , Node021 , Node022 , Node023 , Node031-leaf , Node032-leaf , Node033-leaf , Node034-leaf , Node035-leaf , Node041-leaf , Node042-leaf , Node043-leaf , Node051-leaf , Node052-leaf , Node053-leaf .

The object with results only for a single top-value method and a single partitioning method can be extracted as:

res = res_rh["01"]

A summary of res and all the functions that can be applied to it:

res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6, 7, 8.
#>   On a matrix with 30000 rows and 71 columns.
#>   Top rows (1000) are extracted by 'ATC' method.
#>   Subgroups are detected by 'kmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 3.
#> 
#> Following methods can be applied to this 'ConsensusPartition' object:
#>  [1] "cola_report"             "collect_classes"         "collect_plots"          
#>  [4] "collect_stats"           "colnames"                "compare_partitions"     
#>  [7] "compare_signatures"      "consensus_heatmap"       "dimension_reduction"    
#> [10] "functional_enrichment"   "get_anno_col"            "get_anno"               
#> [13] "get_classes"             "get_consensus"           "get_matrix"             
#> [16] "get_membership"          "get_param"               "get_signatures"         
#> [19] "get_stats"               "is_best_k"               "is_stable_k"            
#> [22] "membership_heatmap"      "ncol"                    "nrow"                   
#> [25] "plot_ecdf"               "predict_classes"         "rownames"               
#> [28] "select_partition_number" "show"                    "suggest_best_k"         
#> [31] "test_to_known_factors"   "top_rows_heatmap"

collect_plots() function collects all the plots made from res for all k (number of subgroups) into one single page to provide an easy and fast comparison between different k.

collect_plots(res)

plot of chunk node-01-collect-plots

The plots are:

All the plots in panels can be made by individual functions and they are plotted later in this section.

select_partition_number() produces several plots showing different statistics for choosing “optimized” k. There are following statistics:

The detailed explanations of these statistics can be found in the cola vignette.

Generally speaking, higher 1-PAC score, higher mean silhouette score or higher concordance corresponds to better partition. Rand index and Jaccard index measure how similar the current partition is compared to partition with k-1. If they are too similar, we won't accept k is better than k-1.

select_partition_number(res)

plot of chunk node-01-select-partition-number

The numeric values for all these statistics can be obtained by get_stats().

get_stats(res)
#>   k 1-PAC mean_silhouette concordance area_increased  Rand Jaccard
#> 2 2 1.000           1.000       1.000         0.4231 0.577   0.577
#> 3 3 1.000           0.960       0.981         0.5791 0.731   0.543
#> 4 4 0.727           0.724       0.830         0.1015 0.930   0.796
#> 5 5 0.738           0.835       0.860         0.0647 0.864   0.565
#> 6 6 0.778           0.790       0.854         0.0426 0.953   0.773
#> 7 7 0.870           0.820       0.879         0.0307 0.992   0.953
#> 8 8 0.836           0.735       0.852         0.0198 0.981   0.887

suggest_best_k() suggests the best \(k\) based on these statistics. The rules are as follows:

suggest_best_k(res)
#> [1] 3
#> attr(,"optional")
#> [1] 2

There is also optional best \(k\) = 2 that is worth to check.

Following is the table of the partitions (You need to click the show/hide code output link to see it). The membership matrix (columns with name p*) is inferred by clue::cl_consensus() function with the SE method. Basically the value in the membership matrix represents the probability to belong to a certain group. The finall subgroup label for an item is determined with the group with highest probability it belongs to.

In get_classes() function, the entropy is calculated from the membership matrix and the silhouette score is calculated from the consensus matrix.

show/hide code output

cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#>                 class entropy silhouette p1 p2
#> TCGA.LN.A4A4.01     2       0          1  0  1
#> TCGA.Q9.A6FU.01     1       0          1  1  0
#> TCGA.S8.A6BW.01     1       0          1  1  0
#> TCGA.V5.A7RC.01     1       0          1  1  0
#> TCGA.LN.A4A3.01     2       0          1  0  1
#> TCGA.LN.A49X.01     1       0          1  1  0
#> TCGA.LN.A7HV.01     2       0          1  0  1
#> TCGA.IG.A3YC.01     1       0          1  1  0
#> TCGA.KH.A6WC.01     1       0          1  1  0
#> TCGA.L7.A56G.01     1       0          1  1  0
#> TCGA.VR.A8EP.01     2       0          1  0  1
#> TCGA.JY.A6FE.01     2       0          1  0  1
#> TCGA.LN.A49N.01     1       0          1  1  0
#> TCGA.VR.AA7B.01     1       0          1  1  0
#> TCGA.IG.A3Y9.01     1       0          1  1  0
#> TCGA.L5.A4OM.01     2       0          1  0  1
#> TCGA.LN.A4A6.01     2       0          1  0  1
#> TCGA.LN.A49R.01     2       0          1  0  1
#> TCGA.LN.A49K.01     1       0          1  1  0
#> TCGA.LN.A49U.01     2       0          1  0  1
#> TCGA.LN.A7HX.01     2       0          1  0  1
#> TCGA.LN.A4A8.01     2       0          1  0  1
#> TCGA.LN.A5U7.01     1       0          1  1  0
#> TCGA.V5.A7RC.06     1       0          1  1  0
#> TCGA.IG.A625.01     1       0          1  1  0
#> TCGA.IG.A4P3.01     1       0          1  1  0
#> TCGA.LN.A49Y.01     2       0          1  0  1
#> TCGA.L5.A43H.01     1       0          1  1  0
#> TCGA.IG.A50L.01     1       0          1  1  0
#> TCGA.LN.A7HY.01     1       0          1  1  0
#> TCGA.LN.A49P.01     1       0          1  1  0
#> TCGA.LN.A4A1.01     2       0          1  0  1
#> TCGA.LN.A49O.01     1       0          1  1  0
#> TCGA.LN.A49W.01     1       0          1  1  0
#> TCGA.IG.A3YA.01     1       0          1  1  0
#> TCGA.LN.A7HZ.01     1       0          1  1  0
#> TCGA.IG.A3QL.01     1       0          1  1  0
#> TCGA.LN.A4A2.01     1       0          1  1  0
#> TCGA.LN.A49S.01     2       0          1  0  1
#> TCGA.LN.A7HW.01     1       0          1  1  0
#> TCGA.IG.A8O2.01     2       0          1  0  1
#> TCGA.L5.A8NQ.01     1       0          1  1  0
#> TCGA.LN.A8I0.01     1       0          1  1  0
#> TCGA.XP.A8T8.01     1       0          1  1  0
#> TCGA.IG.A5B8.01     2       0          1  0  1
#> TCGA.LN.A4MR.01     2       0          1  0  1
#> TCGA.LN.A4MQ.01     1       0          1  1  0
#> TCGA.LN.A4A9.01     2       0          1  0  1
#> TCGA.VR.A8EX.01     1       0          1  1  0
#> TCGA.JY.A6FA.01     2       0          1  0  1
#> TCGA.VR.A8EO.01     2       0          1  0  1
#> TCGA.VR.A8EU.01     1       0          1  1  0
#> TCGA.LN.A8I1.01     1       0          1  1  0
#> TCGA.LN.A5U5.01     1       0          1  1  0
#> TCGA.Z6.A8JD.01     1       0          1  1  0
#> TCGA.XP.A8T6.01     2       0          1  0  1
#> TCGA.VR.A8EZ.01     1       0          1  1  0
#> TCGA.LN.A8HZ.01     1       0          1  1  0
#> TCGA.L5.A88S.01     1       0          1  1  0
#> TCGA.VR.A8EW.01     1       0          1  1  0
#> TCGA.VR.A8ER.01     1       0          1  1  0
#> TCGA.IG.A97H.01     1       0          1  1  0
#> TCGA.VR.AA4G.01     1       0          1  1  0
#> TCGA.JY.A6FD.01     1       0          1  1  0
#> TCGA.IG.A97I.01     1       0          1  1  0
#> TCGA.IG.A5S3.01     1       0          1  1  0
#> TCGA.LN.A5U6.01     1       0          1  1  0
#> TCGA.LN.A9FQ.01     1       0          1  1  0
#> TCGA.L5.A8NK.01     1       0          1  1  0
#> TCGA.LN.A9FO.01     1       0          1  1  0
#> TCGA.LN.A9FR.01     1       0          1  1  0

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette   p1   p2   p3
#> TCGA.LN.A4A4.01     2  0.2537      0.939 0.08 0.92 0.00
#> TCGA.Q9.A6FU.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.S8.A6BW.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.V5.A7RC.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.LN.A4A3.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.LN.A49X.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.LN.A7HV.01     2  0.0000      0.974 0.00 1.00 0.00
#> TCGA.IG.A3YC.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.KH.A6WC.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.L7.A56G.01     3  0.2066      0.935 0.06 0.00 0.94
#> TCGA.VR.A8EP.01     2  0.0000      0.974 0.00 1.00 0.00
#> TCGA.JY.A6FE.01     2  0.0000      0.974 0.00 1.00 0.00
#> TCGA.LN.A49N.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.VR.AA7B.01     1  0.6244      0.225 0.56 0.00 0.44
#> TCGA.IG.A3Y9.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.L5.A4OM.01     2  0.0000      0.974 0.00 1.00 0.00
#> TCGA.LN.A4A6.01     2  0.0000      0.974 0.00 1.00 0.00
#> TCGA.LN.A49R.01     2  0.2537      0.939 0.08 0.92 0.00
#> TCGA.LN.A49K.01     3  0.2959      0.889 0.10 0.00 0.90
#> TCGA.LN.A49U.01     2  0.0000      0.974 0.00 1.00 0.00
#> TCGA.LN.A7HX.01     2  0.0000      0.974 0.00 1.00 0.00
#> TCGA.LN.A4A8.01     2  0.0000      0.974 0.00 1.00 0.00
#> TCGA.LN.A5U7.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.V5.A7RC.06     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.IG.A625.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.IG.A4P3.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.LN.A49Y.01     2  0.0000      0.974 0.00 1.00 0.00
#> TCGA.L5.A43H.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.IG.A50L.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.LN.A7HY.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.LN.A49P.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.LN.A4A1.01     2  0.2537      0.939 0.08 0.92 0.00
#> TCGA.LN.A49O.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.LN.A49W.01     3  0.0892      0.974 0.02 0.00 0.98
#> TCGA.IG.A3YA.01     1  0.1529      0.944 0.96 0.00 0.04
#> TCGA.LN.A7HZ.01     1  0.2959      0.882 0.90 0.00 0.10
#> TCGA.IG.A3QL.01     1  0.1529      0.944 0.96 0.00 0.04
#> TCGA.LN.A4A2.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.LN.A49S.01     2  0.2537      0.939 0.08 0.92 0.00
#> TCGA.LN.A7HW.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.IG.A8O2.01     2  0.0000      0.974 0.00 1.00 0.00
#> TCGA.L5.A8NQ.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.LN.A8I0.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.XP.A8T8.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.IG.A5B8.01     2  0.0000      0.974 0.00 1.00 0.00
#> TCGA.LN.A4MR.01     2  0.0000      0.974 0.00 1.00 0.00
#> TCGA.LN.A4MQ.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.LN.A4A9.01     2  0.0000      0.974 0.00 1.00 0.00
#> TCGA.VR.A8EX.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.JY.A6FA.01     2  0.0000      0.974 0.00 1.00 0.00
#> TCGA.VR.A8EO.01     2  0.2537      0.939 0.08 0.92 0.00
#> TCGA.VR.A8EU.01     1  0.1529      0.944 0.96 0.00 0.04
#> TCGA.LN.A8I1.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.LN.A5U5.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.Z6.A8JD.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.XP.A8T6.01     2  0.2537      0.939 0.08 0.92 0.00
#> TCGA.VR.A8EZ.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.LN.A8HZ.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.L5.A88S.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.VR.A8EW.01     1  0.1529      0.944 0.96 0.00 0.04
#> TCGA.VR.A8ER.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.IG.A97H.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.VR.AA4G.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.JY.A6FD.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.IG.A97I.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.IG.A5S3.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.LN.A5U6.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.LN.A9FQ.01     3  0.0000      0.991 0.00 0.00 1.00
#> TCGA.L5.A8NK.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.LN.A9FO.01     1  0.0000      0.972 1.00 0.00 0.00
#> TCGA.LN.A9FR.01     3  0.0000      0.991 0.00 0.00 1.00

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2   p3   p4
#> TCGA.LN.A4A4.01     4  0.4855      0.845 0.00 0.40 0.00 0.60
#> TCGA.Q9.A6FU.01     1  0.0707      0.801 0.98 0.00 0.00 0.02
#> TCGA.S8.A6BW.01     3  0.0000      0.837 0.00 0.00 1.00 0.00
#> TCGA.V5.A7RC.01     3  0.0000      0.837 0.00 0.00 1.00 0.00
#> TCGA.LN.A4A3.01     4  0.4855      0.187 0.40 0.00 0.00 0.60
#> TCGA.LN.A49X.01     1  0.0000      0.802 1.00 0.00 0.00 0.00
#> TCGA.LN.A7HV.01     2  0.0000      0.899 0.00 1.00 0.00 0.00
#> TCGA.IG.A3YC.01     1  0.0000      0.802 1.00 0.00 0.00 0.00
#> TCGA.KH.A6WC.01     3  0.2921      0.783 0.00 0.00 0.86 0.14
#> TCGA.L7.A56G.01     3  0.7768      0.360 0.24 0.00 0.40 0.36
#> TCGA.VR.A8EP.01     2  0.4790     -0.117 0.00 0.62 0.00 0.38
#> TCGA.JY.A6FE.01     2  0.0000      0.899 0.00 1.00 0.00 0.00
#> TCGA.LN.A49N.01     1  0.0000      0.802 1.00 0.00 0.00 0.00
#> TCGA.VR.AA7B.01     1  0.6714      0.440 0.54 0.00 0.10 0.36
#> TCGA.IG.A3Y9.01     1  0.0000      0.802 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OM.01     2  0.0000      0.899 0.00 1.00 0.00 0.00
#> TCGA.LN.A4A6.01     2  0.0000      0.899 0.00 1.00 0.00 0.00
#> TCGA.LN.A49R.01     4  0.4790      0.822 0.00 0.38 0.00 0.62
#> TCGA.LN.A49K.01     1  0.7699      0.122 0.40 0.00 0.22 0.38
#> TCGA.LN.A49U.01     2  0.0000      0.899 0.00 1.00 0.00 0.00
#> TCGA.LN.A7HX.01     2  0.0000      0.899 0.00 1.00 0.00 0.00
#> TCGA.LN.A4A8.01     2  0.0000      0.899 0.00 1.00 0.00 0.00
#> TCGA.LN.A5U7.01     1  0.1211      0.798 0.96 0.00 0.00 0.04
#> TCGA.V5.A7RC.06     3  0.0000      0.837 0.00 0.00 1.00 0.00
#> TCGA.IG.A625.01     1  0.3975      0.667 0.76 0.00 0.00 0.24
#> TCGA.IG.A4P3.01     3  0.7310      0.510 0.16 0.00 0.48 0.36
#> TCGA.LN.A49Y.01     2  0.0000      0.899 0.00 1.00 0.00 0.00
#> TCGA.L5.A43H.01     3  0.4713      0.677 0.00 0.00 0.64 0.36
#> TCGA.IG.A50L.01     1  0.1211      0.798 0.96 0.00 0.00 0.04
#> TCGA.LN.A7HY.01     3  0.0000      0.837 0.00 0.00 1.00 0.00
#> TCGA.LN.A49P.01     3  0.0000      0.837 0.00 0.00 1.00 0.00
#> TCGA.LN.A4A1.01     4  0.4855      0.845 0.00 0.40 0.00 0.60
#> TCGA.LN.A49O.01     1  0.0000      0.802 1.00 0.00 0.00 0.00
#> TCGA.LN.A49W.01     3  0.7581      0.446 0.20 0.00 0.44 0.36
#> TCGA.IG.A3YA.01     1  0.4713      0.591 0.64 0.00 0.00 0.36
#> TCGA.LN.A7HZ.01     1  0.5428      0.566 0.60 0.00 0.02 0.38
#> TCGA.IG.A3QL.01     1  0.4790      0.588 0.62 0.00 0.00 0.38
#> TCGA.LN.A4A2.01     1  0.1211      0.798 0.96 0.00 0.00 0.04
#> TCGA.LN.A49S.01     4  0.4855      0.845 0.00 0.40 0.00 0.60
#> TCGA.LN.A7HW.01     3  0.0000      0.837 0.00 0.00 1.00 0.00
#> TCGA.IG.A8O2.01     2  0.0000      0.899 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NQ.01     1  0.0000      0.802 1.00 0.00 0.00 0.00
#> TCGA.LN.A8I0.01     1  0.0707      0.801 0.98 0.00 0.00 0.02
#> TCGA.XP.A8T8.01     1  0.1211      0.798 0.96 0.00 0.00 0.04
#> TCGA.IG.A5B8.01     4  0.4855      0.845 0.00 0.40 0.00 0.60
#> TCGA.LN.A4MR.01     2  0.4790     -0.117 0.00 0.62 0.00 0.38
#> TCGA.LN.A4MQ.01     3  0.0000      0.837 0.00 0.00 1.00 0.00
#> TCGA.LN.A4A9.01     2  0.0000      0.899 0.00 1.00 0.00 0.00
#> TCGA.VR.A8EX.01     1  0.3610      0.673 0.80 0.00 0.00 0.20
#> TCGA.JY.A6FA.01     2  0.0000      0.899 0.00 1.00 0.00 0.00
#> TCGA.VR.A8EO.01     4  0.4855      0.845 0.00 0.40 0.00 0.60
#> TCGA.VR.A8EU.01     1  0.4790      0.588 0.62 0.00 0.00 0.38
#> TCGA.LN.A8I1.01     3  0.0000      0.837 0.00 0.00 1.00 0.00
#> TCGA.LN.A5U5.01     3  0.4713      0.677 0.00 0.00 0.64 0.36
#> TCGA.Z6.A8JD.01     1  0.0000      0.802 1.00 0.00 0.00 0.00
#> TCGA.XP.A8T6.01     4  0.4855      0.845 0.00 0.40 0.00 0.60
#> TCGA.VR.A8EZ.01     3  0.4713      0.677 0.00 0.00 0.64 0.36
#> TCGA.LN.A8HZ.01     1  0.3975      0.667 0.76 0.00 0.00 0.24
#> TCGA.L5.A88S.01     1  0.3801      0.654 0.78 0.00 0.00 0.22
#> TCGA.VR.A8EW.01     1  0.4790      0.588 0.62 0.00 0.00 0.38
#> TCGA.VR.A8ER.01     3  0.0000      0.837 0.00 0.00 1.00 0.00
#> TCGA.IG.A97H.01     3  0.0000      0.837 0.00 0.00 1.00 0.00
#> TCGA.VR.AA4G.01     1  0.3801      0.654 0.78 0.00 0.00 0.22
#> TCGA.JY.A6FD.01     1  0.3801      0.654 0.78 0.00 0.00 0.22
#> TCGA.IG.A97I.01     3  0.0000      0.837 0.00 0.00 1.00 0.00
#> TCGA.IG.A5S3.01     3  0.0000      0.837 0.00 0.00 1.00 0.00
#> TCGA.LN.A5U6.01     3  0.0000      0.837 0.00 0.00 1.00 0.00
#> TCGA.LN.A9FQ.01     3  0.0000      0.837 0.00 0.00 1.00 0.00
#> TCGA.L5.A8NK.01     1  0.3610      0.673 0.80 0.00 0.00 0.20
#> TCGA.LN.A9FO.01     1  0.0000      0.802 1.00 0.00 0.00 0.00
#> TCGA.LN.A9FR.01     3  0.7310      0.510 0.16 0.00 0.48 0.36

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1   p2   p3   p4   p5
#> TCGA.LN.A4A4.01     4  0.4373      0.897 0.00 0.16 0.00 0.76 0.08
#> TCGA.Q9.A6FU.01     1  0.4373      0.787 0.76 0.00 0.00 0.08 0.16
#> TCGA.S8.A6BW.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00
#> TCGA.V5.A7RC.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A4A3.01     4  0.2929      0.737 0.18 0.00 0.00 0.82 0.00
#> TCGA.LN.A49X.01     1  0.2020      0.792 0.90 0.00 0.00 0.00 0.10
#> TCGA.LN.A7HV.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A3YC.01     1  0.2020      0.792 0.90 0.00 0.00 0.00 0.10
#> TCGA.KH.A6WC.01     3  0.3895      0.317 0.00 0.00 0.68 0.00 0.32
#> TCGA.L7.A56G.01     5  0.5355      0.735 0.12 0.00 0.22 0.00 0.66
#> TCGA.VR.A8EP.01     4  0.3424      0.865 0.00 0.24 0.00 0.76 0.00
#> TCGA.JY.A6FE.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A49N.01     1  0.0609      0.834 0.98 0.00 0.00 0.00 0.02
#> TCGA.VR.AA7B.01     5  0.6543      0.677 0.24 0.00 0.08 0.08 0.60
#> TCGA.IG.A3Y9.01     1  0.0609      0.834 0.98 0.00 0.00 0.00 0.02
#> TCGA.L5.A4OM.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A4A6.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A49R.01     4  0.4872      0.884 0.00 0.16 0.00 0.72 0.12
#> TCGA.LN.A49K.01     5  0.3946      0.732 0.12 0.00 0.08 0.00 0.80
#> TCGA.LN.A49U.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A7HX.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A4A8.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A5U7.01     1  0.4637      0.779 0.74 0.00 0.00 0.10 0.16
#> TCGA.V5.A7RC.06     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00
#> TCGA.IG.A625.01     1  0.5263      0.739 0.66 0.00 0.00 0.10 0.24
#> TCGA.IG.A4P3.01     5  0.5136      0.707 0.08 0.00 0.26 0.00 0.66
#> TCGA.LN.A49Y.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A43H.01     5  0.4798      0.431 0.00 0.00 0.44 0.02 0.54
#> TCGA.IG.A50L.01     1  0.4637      0.779 0.74 0.00 0.00 0.10 0.16
#> TCGA.LN.A7HY.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A49P.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A4A1.01     4  0.2732      0.909 0.00 0.16 0.00 0.84 0.00
#> TCGA.LN.A49O.01     1  0.3037      0.808 0.86 0.00 0.00 0.10 0.04
#> TCGA.LN.A49W.01     5  0.5355      0.735 0.12 0.00 0.22 0.00 0.66
#> TCGA.IG.A3YA.01     5  0.3983      0.607 0.34 0.00 0.00 0.00 0.66
#> TCGA.LN.A7HZ.01     5  0.3109      0.674 0.20 0.00 0.00 0.00 0.80
#> TCGA.IG.A3QL.01     5  0.3109      0.674 0.20 0.00 0.00 0.00 0.80
#> TCGA.LN.A4A2.01     1  0.4373      0.787 0.76 0.00 0.00 0.08 0.16
#> TCGA.LN.A49S.01     4  0.3291      0.884 0.04 0.12 0.00 0.84 0.00
#> TCGA.LN.A7HW.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00
#> TCGA.IG.A8O2.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NQ.01     1  0.0000      0.836 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A8I0.01     1  0.4373      0.787 0.76 0.00 0.00 0.08 0.16
#> TCGA.XP.A8T8.01     1  0.4637      0.779 0.74 0.00 0.00 0.10 0.16
#> TCGA.IG.A5B8.01     4  0.2732      0.909 0.00 0.16 0.00 0.84 0.00
#> TCGA.LN.A4MR.01     4  0.3424      0.865 0.00 0.24 0.00 0.76 0.00
#> TCGA.LN.A4MQ.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A4A9.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EX.01     1  0.1732      0.822 0.92 0.00 0.00 0.08 0.00
#> TCGA.JY.A6FA.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EO.01     4  0.5083      0.878 0.00 0.16 0.00 0.70 0.14
#> TCGA.VR.A8EU.01     5  0.3274      0.672 0.22 0.00 0.00 0.00 0.78
#> TCGA.LN.A8I1.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A5U5.01     5  0.4798      0.431 0.00 0.00 0.44 0.02 0.54
#> TCGA.Z6.A8JD.01     1  0.2020      0.792 0.90 0.00 0.00 0.00 0.10
#> TCGA.XP.A8T6.01     4  0.2732      0.909 0.00 0.16 0.00 0.84 0.00
#> TCGA.VR.A8EZ.01     5  0.4798      0.431 0.00 0.00 0.44 0.02 0.54
#> TCGA.LN.A8HZ.01     1  0.5263      0.739 0.66 0.00 0.00 0.10 0.24
#> TCGA.L5.A88S.01     1  0.1732      0.822 0.92 0.00 0.00 0.08 0.00
#> TCGA.VR.A8EW.01     5  0.3109      0.674 0.20 0.00 0.00 0.00 0.80
#> TCGA.VR.A8ER.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00
#> TCGA.IG.A97H.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00
#> TCGA.VR.AA4G.01     1  0.1732      0.822 0.92 0.00 0.00 0.08 0.00
#> TCGA.JY.A6FD.01     1  0.1732      0.822 0.92 0.00 0.00 0.08 0.00
#> TCGA.IG.A97I.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00
#> TCGA.IG.A5S3.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A5U6.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A9FQ.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NK.01     1  0.1732      0.822 0.92 0.00 0.00 0.08 0.00
#> TCGA.LN.A9FO.01     1  0.1043      0.833 0.96 0.00 0.00 0.04 0.00
#> TCGA.LN.A9FR.01     5  0.4967      0.686 0.06 0.00 0.28 0.00 0.66

show/hide code output

cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6
#> TCGA.LN.A4A4.01     4  0.4155      0.857 0.02 0.10 0.00 0.80 0.04 0.04
#> TCGA.Q9.A6FU.01     1  0.4348      0.206 0.64 0.00 0.00 0.00 0.04 0.32
#> TCGA.S8.A6BW.01     3  0.1092      0.962 0.00 0.00 0.96 0.00 0.02 0.02
#> TCGA.V5.A7RC.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A4A3.01     4  0.3756      0.519 0.40 0.00 0.00 0.60 0.00 0.00
#> TCGA.LN.A49X.01     1  0.3073      0.726 0.84 0.00 0.00 0.00 0.08 0.08
#> TCGA.LN.A7HV.01     2  0.1092      0.957 0.00 0.96 0.00 0.02 0.00 0.02
#> TCGA.IG.A3YC.01     1  0.3073      0.726 0.84 0.00 0.00 0.00 0.08 0.08
#> TCGA.KH.A6WC.01     5  0.3869      0.159 0.00 0.00 0.50 0.00 0.50 0.00
#> TCGA.L7.A56G.01     5  0.2629      0.831 0.02 0.00 0.08 0.02 0.88 0.00
#> TCGA.VR.A8EP.01     4  0.2048      0.867 0.00 0.12 0.00 0.88 0.00 0.00
#> TCGA.JY.A6FE.01     2  0.2725      0.934 0.00 0.88 0.00 0.02 0.04 0.06
#> TCGA.LN.A49N.01     1  0.3073      0.726 0.84 0.00 0.00 0.00 0.08 0.08
#> TCGA.VR.AA7B.01     5  0.4530      0.782 0.08 0.00 0.02 0.06 0.78 0.06
#> TCGA.IG.A3Y9.01     1  0.3073      0.726 0.84 0.00 0.00 0.00 0.08 0.08
#> TCGA.L5.A4OM.01     2  0.1480      0.949 0.00 0.94 0.00 0.00 0.02 0.04
#> TCGA.LN.A4A6.01     2  0.1092      0.957 0.00 0.96 0.00 0.02 0.00 0.02
#> TCGA.LN.A49R.01     4  0.5197      0.731 0.02 0.04 0.00 0.68 0.04 0.22
#> TCGA.LN.A49K.01     5  0.2725      0.820 0.02 0.00 0.04 0.00 0.88 0.06
#> TCGA.LN.A49U.01     2  0.0000      0.961 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A7HX.01     2  0.0000      0.961 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A8.01     2  0.0000      0.961 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A5U7.01     6  0.3916      0.740 0.30 0.00 0.00 0.00 0.02 0.68
#> TCGA.V5.A7RC.06     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A625.01     6  0.4144      0.638 0.36 0.00 0.00 0.02 0.00 0.62
#> TCGA.IG.A4P3.01     5  0.1814      0.828 0.00 0.00 0.10 0.00 0.90 0.00
#> TCGA.LN.A49Y.01     2  0.0000      0.961 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43H.01     5  0.4042      0.765 0.00 0.00 0.18 0.04 0.76 0.02
#> TCGA.IG.A50L.01     6  0.4534      0.746 0.38 0.00 0.00 0.00 0.04 0.58
#> TCGA.LN.A7HY.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A49P.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A4A1.01     4  0.3321      0.882 0.08 0.10 0.00 0.82 0.00 0.00
#> TCGA.LN.A49O.01     1  0.4282     -0.214 0.56 0.00 0.00 0.02 0.00 0.42
#> TCGA.LN.A49W.01     5  0.2629      0.831 0.02 0.00 0.08 0.02 0.88 0.00
#> TCGA.IG.A3YA.01     5  0.3572      0.761 0.10 0.00 0.00 0.02 0.82 0.06
#> TCGA.LN.A7HZ.01     5  0.2512      0.797 0.06 0.00 0.00 0.00 0.88 0.06
#> TCGA.IG.A3QL.01     5  0.4851      0.695 0.06 0.00 0.00 0.04 0.70 0.20
#> TCGA.LN.A4A2.01     6  0.4246      0.734 0.40 0.00 0.00 0.00 0.02 0.58
#> TCGA.LN.A49S.01     4  0.3321      0.874 0.10 0.08 0.00 0.82 0.00 0.00
#> TCGA.LN.A7HW.01     3  0.1480      0.948 0.00 0.00 0.94 0.04 0.00 0.02
#> TCGA.IG.A8O2.01     2  0.2345      0.942 0.00 0.90 0.00 0.02 0.02 0.06
#> TCGA.L5.A8NQ.01     1  0.1556      0.730 0.92 0.00 0.00 0.00 0.08 0.00
#> TCGA.LN.A8I0.01     1  0.4609     -0.344 0.54 0.00 0.00 0.00 0.04 0.42
#> TCGA.XP.A8T8.01     6  0.4482      0.754 0.36 0.00 0.00 0.00 0.04 0.60
#> TCGA.IG.A5B8.01     4  0.3045      0.879 0.06 0.10 0.00 0.84 0.00 0.00
#> TCGA.LN.A4MR.01     4  0.2981      0.834 0.00 0.16 0.00 0.82 0.00 0.02
#> TCGA.LN.A4MQ.01     3  0.1480      0.948 0.00 0.00 0.94 0.04 0.00 0.02
#> TCGA.LN.A4A9.01     2  0.0000      0.961 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EX.01     1  0.0000      0.728 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A6FA.01     2  0.2725      0.934 0.00 0.88 0.00 0.02 0.04 0.06
#> TCGA.VR.A8EO.01     4  0.3785      0.867 0.02 0.10 0.00 0.82 0.02 0.04
#> TCGA.VR.A8EU.01     5  0.3795      0.759 0.06 0.00 0.00 0.02 0.80 0.12
#> TCGA.LN.A8I1.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A5U5.01     5  0.4195      0.747 0.00 0.00 0.20 0.04 0.74 0.02
#> TCGA.Z6.A8JD.01     1  0.3073      0.726 0.84 0.00 0.00 0.00 0.08 0.08
#> TCGA.XP.A8T6.01     4  0.3321      0.882 0.08 0.10 0.00 0.82 0.00 0.00
#> TCGA.VR.A8EZ.01     5  0.4195      0.747 0.00 0.00 0.20 0.04 0.74 0.02
#> TCGA.LN.A8HZ.01     6  0.4282      0.668 0.42 0.00 0.00 0.02 0.00 0.56
#> TCGA.L5.A88S.01     1  0.0000      0.728 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EW.01     5  0.3997      0.748 0.06 0.00 0.00 0.02 0.78 0.14
#> TCGA.VR.A8ER.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A97H.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.VR.AA4G.01     1  0.0000      0.728 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A6FD.01     1  0.0000      0.728 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A97I.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A5S3.01     3  0.0547      0.972 0.00 0.00 0.98 0.00 0.02 0.00
#> TCGA.LN.A5U6.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A9FQ.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NK.01     1  0.0000      0.728 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FO.01     1  0.1267      0.723 0.94 0.00 0.00 0.00 0.00 0.06
#> TCGA.LN.A9FR.01     5  0.1814      0.828 0.00 0.00 0.10 0.00 0.90 0.00

show/hide code output

cbind(get_classes(res, k = 7), get_membership(res, k = 7))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7
#> TCGA.LN.A4A4.01     4  0.3047      0.766 0.00 0.00 0.00 0.72 0.00 0.28 0.00
#> TCGA.Q9.A6FU.01     1  0.4283     -0.493 0.48 0.00 0.00 0.00 0.00 0.04 0.48
#> TCGA.S8.A6BW.01     3  0.1928      0.915 0.00 0.00 0.90 0.00 0.02 0.08 0.00
#> TCGA.V5.A7RC.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A3.01     4  0.3606      0.574 0.30 0.00 0.00 0.68 0.00 0.02 0.00
#> TCGA.LN.A49X.01     1  0.3061      0.766 0.84 0.00 0.00 0.00 0.08 0.02 0.06
#> TCGA.LN.A7HV.01     2  0.0504      0.978 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.IG.A3YC.01     1  0.3061      0.766 0.84 0.00 0.00 0.00 0.08 0.02 0.06
#> TCGA.KH.A6WC.01     5  0.4426      0.341 0.00 0.00 0.38 0.00 0.56 0.06 0.00
#> TCGA.L7.A56G.01     5  0.0000      0.854 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.VR.A8EP.01     4  0.1886      0.825 0.00 0.00 0.00 0.88 0.00 0.12 0.00
#> TCGA.JY.A6FE.01     2  0.0504      0.981 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.LN.A49N.01     1  0.2509      0.780 0.88 0.00 0.00 0.00 0.04 0.02 0.06
#> TCGA.VR.AA7B.01     5  0.3815      0.682 0.00 0.00 0.00 0.00 0.62 0.36 0.02
#> TCGA.IG.A3Y9.01     1  0.2509      0.780 0.88 0.00 0.00 0.00 0.04 0.02 0.06
#> TCGA.L5.A4OM.01     2  0.0504      0.981 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.LN.A4A6.01     2  0.0504      0.978 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.LN.A49R.01     4  0.4418      0.704 0.00 0.00 0.00 0.62 0.00 0.30 0.08
#> TCGA.LN.A49K.01     5  0.2572      0.842 0.00 0.00 0.00 0.00 0.86 0.08 0.06
#> TCGA.LN.A49U.01     2  0.0504      0.981 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.LN.A7HX.01     2  0.0504      0.981 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.LN.A4A8.01     2  0.0504      0.978 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.LN.A5U7.01     7  0.2259      0.769 0.16 0.00 0.00 0.00 0.00 0.00 0.84
#> TCGA.V5.A7RC.06     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A625.01     7  0.3517      0.787 0.28 0.00 0.00 0.00 0.00 0.02 0.70
#> TCGA.IG.A4P3.01     5  0.0000      0.854 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A49Y.01     2  0.0504      0.981 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.L5.A43H.01     5  0.3863      0.778 0.00 0.00 0.04 0.00 0.74 0.20 0.02
#> TCGA.IG.A50L.01     7  0.3047      0.821 0.28 0.00 0.00 0.00 0.00 0.00 0.72
#> TCGA.LN.A7HY.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49P.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A1.01     4  0.0863      0.847 0.04 0.00 0.00 0.96 0.00 0.00 0.00
#> TCGA.LN.A49O.01     1  0.5083      0.270 0.56 0.00 0.00 0.00 0.00 0.24 0.20
#> TCGA.LN.A49W.01     5  0.0000      0.854 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.IG.A3YA.01     5  0.1006      0.849 0.00 0.00 0.00 0.00 0.96 0.02 0.02
#> TCGA.LN.A7HZ.01     5  0.1166      0.847 0.00 0.00 0.00 0.00 0.94 0.00 0.06
#> TCGA.IG.A3QL.01     5  0.3370      0.783 0.00 0.00 0.00 0.00 0.78 0.06 0.16
#> TCGA.LN.A4A2.01     7  0.3221      0.796 0.32 0.00 0.00 0.00 0.00 0.00 0.68
#> TCGA.LN.A49S.01     4  0.0863      0.847 0.04 0.00 0.00 0.96 0.00 0.00 0.00
#> TCGA.LN.A7HW.01     3  0.2081      0.886 0.00 0.00 0.86 0.00 0.00 0.14 0.00
#> TCGA.IG.A8O2.01     2  0.0504      0.981 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.L5.A8NQ.01     1  0.1363      0.800 0.94 0.00 0.00 0.00 0.04 0.02 0.00
#> TCGA.LN.A8I0.01     7  0.3525      0.599 0.44 0.00 0.00 0.00 0.00 0.00 0.56
#> TCGA.XP.A8T8.01     7  0.2708      0.812 0.22 0.00 0.00 0.00 0.00 0.00 0.78
#> TCGA.IG.A5B8.01     4  0.0863      0.847 0.04 0.00 0.00 0.96 0.00 0.00 0.00
#> TCGA.LN.A4MR.01     4  0.1664      0.822 0.00 0.06 0.00 0.92 0.00 0.02 0.00
#> TCGA.LN.A4MQ.01     3  0.2081      0.886 0.00 0.00 0.86 0.00 0.00 0.14 0.00
#> TCGA.LN.A4A9.01     2  0.0504      0.981 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.VR.A8EX.01     1  0.0504      0.801 0.98 0.00 0.00 0.00 0.00 0.02 0.00
#> TCGA.JY.A6FA.01     2  0.0504      0.981 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.VR.A8EO.01     4  0.4264      0.702 0.00 0.00 0.00 0.62 0.00 0.32 0.06
#> TCGA.VR.A8EU.01     5  0.2769      0.810 0.02 0.00 0.00 0.00 0.86 0.04 0.08
#> TCGA.LN.A8I1.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A5U5.01     5  0.3863      0.778 0.00 0.00 0.04 0.00 0.74 0.20 0.02
#> TCGA.Z6.A8JD.01     1  0.3061      0.766 0.84 0.00 0.00 0.00 0.08 0.02 0.06
#> TCGA.XP.A8T6.01     4  0.0863      0.847 0.04 0.00 0.00 0.96 0.00 0.00 0.00
#> TCGA.VR.A8EZ.01     5  0.3863      0.778 0.00 0.00 0.04 0.00 0.74 0.20 0.02
#> TCGA.LN.A8HZ.01     7  0.3517      0.787 0.28 0.00 0.00 0.00 0.00 0.02 0.70
#> TCGA.L5.A88S.01     1  0.1006      0.794 0.96 0.00 0.00 0.02 0.00 0.02 0.00
#> TCGA.VR.A8EW.01     5  0.2278      0.830 0.00 0.00 0.00 0.00 0.88 0.04 0.08
#> TCGA.VR.A8ER.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A97H.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.AA4G.01     1  0.1006      0.794 0.96 0.00 0.00 0.02 0.00 0.02 0.00
#> TCGA.JY.A6FD.01     1  0.1006      0.794 0.96 0.00 0.00 0.02 0.00 0.02 0.00
#> TCGA.IG.A97I.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A5S3.01     3  0.1363      0.939 0.00 0.00 0.94 0.00 0.02 0.04 0.00
#> TCGA.LN.A5U6.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FQ.01     3  0.0000      0.969 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NK.01     1  0.0504      0.801 0.98 0.00 0.00 0.00 0.00 0.02 0.00
#> TCGA.LN.A9FO.01     1  0.0000      0.803 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FR.01     5  0.0000      0.854 0.00 0.00 0.00 0.00 1.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 8), get_membership(res, k = 8))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7   p8
#> TCGA.LN.A4A4.01     4  0.2534      0.773 0.00 0.00 0.00 0.78 0.00 0.00 0.22 0.00
#> TCGA.Q9.A6FU.01     6  0.4174      0.362 0.40 0.00 0.00 0.00 0.00 0.54 0.06 0.00
#> TCGA.S8.A6BW.01     3  0.3895      0.726 0.00 0.00 0.74 0.00 0.12 0.02 0.00 0.12
#> TCGA.V5.A7RC.01     3  0.0000      0.925 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A3.01     4  0.3272      0.298 0.42 0.00 0.00 0.58 0.00 0.00 0.00 0.00
#> TCGA.LN.A49X.01     1  0.3102      0.824 0.82 0.00 0.00 0.00 0.00 0.08 0.08 0.02
#> TCGA.LN.A7HV.01     2  0.0941      0.934 0.00 0.96 0.00 0.00 0.00 0.00 0.02 0.02
#> TCGA.IG.A3YC.01     1  0.3102      0.824 0.82 0.00 0.00 0.00 0.00 0.08 0.08 0.02
#> TCGA.KH.A6WC.01     5  0.4503      0.424 0.00 0.00 0.18 0.00 0.66 0.02 0.00 0.14
#> TCGA.L7.A56G.01     5  0.3528      0.547 0.00 0.00 0.00 0.00 0.74 0.00 0.08 0.18
#> TCGA.VR.A8EP.01     4  0.2025      0.815 0.00 0.00 0.00 0.88 0.00 0.00 0.10 0.02
#> TCGA.JY.A6FE.01     2  0.2132      0.906 0.00 0.88 0.00 0.00 0.00 0.00 0.08 0.04
#> TCGA.LN.A49N.01     1  0.3102      0.824 0.82 0.00 0.00 0.00 0.00 0.08 0.08 0.02
#> TCGA.VR.AA7B.01     8  0.3808     -0.353 0.00 0.00 0.00 0.00 0.34 0.00 0.04 0.62
#> TCGA.IG.A3Y9.01     1  0.3102      0.824 0.82 0.00 0.00 0.00 0.00 0.08 0.08 0.02
#> TCGA.L5.A4OM.01     2  0.1557      0.926 0.00 0.92 0.00 0.00 0.00 0.00 0.02 0.06
#> TCGA.LN.A4A6.01     2  0.0941      0.934 0.00 0.96 0.00 0.00 0.00 0.00 0.02 0.02
#> TCGA.LN.A49R.01     4  0.3845      0.693 0.00 0.00 0.00 0.66 0.00 0.06 0.28 0.00
#> TCGA.LN.A49K.01     5  0.1557      0.634 0.00 0.00 0.00 0.00 0.92 0.02 0.00 0.06
#> TCGA.LN.A49U.01     2  0.0808      0.945 0.00 0.96 0.00 0.00 0.00 0.00 0.04 0.00
#> TCGA.LN.A7HX.01     2  0.0808      0.945 0.00 0.96 0.00 0.00 0.00 0.00 0.04 0.00
#> TCGA.LN.A4A8.01     2  0.0471      0.945 0.00 0.98 0.00 0.00 0.00 0.00 0.02 0.00
#> TCGA.LN.A5U7.01     6  0.1804      0.803 0.08 0.00 0.00 0.00 0.00 0.90 0.00 0.02
#> TCGA.V5.A7RC.06     3  0.0000      0.925 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A625.01     6  0.2818      0.711 0.12 0.00 0.00 0.00 0.00 0.82 0.06 0.00
#> TCGA.IG.A4P3.01     5  0.1765      0.632 0.00 0.00 0.00 0.00 0.88 0.00 0.00 0.12
#> TCGA.LN.A49Y.01     2  0.0808      0.945 0.00 0.96 0.00 0.00 0.00 0.00 0.04 0.00
#> TCGA.L5.A43H.01     5  0.3992      0.349 0.00 0.00 0.04 0.00 0.52 0.00 0.00 0.44
#> TCGA.IG.A50L.01     6  0.1765      0.811 0.12 0.00 0.00 0.00 0.00 0.88 0.00 0.00
#> TCGA.LN.A7HY.01     3  0.0000      0.925 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49P.01     3  0.0471      0.916 0.00 0.00 0.98 0.00 0.00 0.02 0.00 0.00
#> TCGA.LN.A4A1.01     4  0.0000      0.833 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49O.01     8  0.5973     -0.129 0.28 0.00 0.00 0.00 0.00 0.26 0.06 0.40
#> TCGA.LN.A49W.01     5  0.1563      0.631 0.00 0.00 0.00 0.00 0.90 0.00 0.00 0.10
#> TCGA.IG.A3YA.01     5  0.3131      0.546 0.04 0.00 0.00 0.00 0.84 0.04 0.06 0.02
#> TCGA.LN.A7HZ.01     5  0.1557      0.634 0.00 0.00 0.00 0.00 0.92 0.02 0.00 0.06
#> TCGA.IG.A3QL.01     5  0.5862      0.287 0.04 0.00 0.00 0.00 0.56 0.10 0.22 0.08
#> TCGA.LN.A4A2.01     6  0.2025      0.813 0.10 0.00 0.00 0.00 0.00 0.88 0.00 0.02
#> TCGA.LN.A49S.01     4  0.0000      0.833 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A7HW.01     3  0.3021      0.804 0.00 0.00 0.80 0.00 0.02 0.02 0.00 0.16
#> TCGA.IG.A8O2.01     2  0.1275      0.932 0.00 0.94 0.00 0.00 0.00 0.00 0.02 0.04
#> TCGA.L5.A8NQ.01     1  0.0471      0.857 0.98 0.00 0.00 0.00 0.00 0.00 0.02 0.00
#> TCGA.LN.A8I0.01     6  0.2756      0.694 0.26 0.00 0.00 0.00 0.00 0.74 0.00 0.00
#> TCGA.XP.A8T8.01     6  0.1341      0.806 0.08 0.00 0.00 0.00 0.00 0.92 0.00 0.00
#> TCGA.IG.A5B8.01     4  0.0000      0.833 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4MR.01     4  0.1741      0.811 0.00 0.04 0.00 0.92 0.00 0.00 0.02 0.02
#> TCGA.LN.A4MQ.01     3  0.3021      0.804 0.00 0.00 0.80 0.00 0.02 0.02 0.00 0.16
#> TCGA.LN.A4A9.01     2  0.0808      0.945 0.00 0.96 0.00 0.00 0.00 0.00 0.04 0.00
#> TCGA.VR.A8EX.01     1  0.0471      0.854 0.98 0.00 0.00 0.02 0.00 0.00 0.00 0.00
#> TCGA.JY.A6FA.01     2  0.2407      0.893 0.00 0.86 0.00 0.00 0.00 0.00 0.08 0.06
#> TCGA.VR.A8EO.01     4  0.3862      0.624 0.00 0.00 0.00 0.60 0.00 0.00 0.36 0.04
#> TCGA.VR.A8EU.01     5  0.4571      0.475 0.04 0.00 0.00 0.00 0.72 0.12 0.08 0.04
#> TCGA.LN.A8I1.01     3  0.0000      0.925 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A5U5.01     5  0.3992      0.349 0.00 0.00 0.04 0.00 0.52 0.00 0.00 0.44
#> TCGA.Z6.A8JD.01     1  0.3102      0.824 0.82 0.00 0.00 0.00 0.00 0.08 0.08 0.02
#> TCGA.XP.A8T6.01     4  0.0000      0.833 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EZ.01     5  0.3992      0.349 0.00 0.00 0.04 0.00 0.52 0.00 0.00 0.44
#> TCGA.LN.A8HZ.01     6  0.2569      0.773 0.16 0.00 0.00 0.00 0.00 0.82 0.02 0.00
#> TCGA.L5.A88S.01     1  0.0808      0.847 0.96 0.00 0.00 0.04 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EW.01     5  0.4185      0.515 0.04 0.00 0.00 0.00 0.76 0.08 0.08 0.04
#> TCGA.VR.A8ER.01     3  0.0000      0.925 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A97H.01     3  0.0000      0.925 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.AA4G.01     1  0.0808      0.847 0.96 0.00 0.00 0.04 0.00 0.00 0.00 0.00
#> TCGA.JY.A6FD.01     1  0.1607      0.821 0.92 0.00 0.00 0.04 0.00 0.00 0.00 0.04
#> TCGA.IG.A97I.01     3  0.0000      0.925 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A5S3.01     3  0.4427      0.648 0.00 0.00 0.68 0.00 0.02 0.02 0.06 0.22
#> TCGA.LN.A5U6.01     3  0.0000      0.925 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FQ.01     3  0.0000      0.925 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NK.01     1  0.0808      0.847 0.96 0.00 0.00 0.04 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FO.01     1  0.1275      0.845 0.94 0.00 0.00 0.00 0.00 0.02 0.00 0.04
#> TCGA.LN.A9FR.01     5  0.1765      0.632 0.00 0.00 0.00 0.00 0.88 0.00 0.00 0.12

Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.

consensus_heatmap(res, k = 2)

plot of chunk tab-node-01-consensus-heatmap-1

consensus_heatmap(res, k = 3)

plot of chunk tab-node-01-consensus-heatmap-2

consensus_heatmap(res, k = 4)

plot of chunk tab-node-01-consensus-heatmap-3

consensus_heatmap(res, k = 5)

plot of chunk tab-node-01-consensus-heatmap-4

consensus_heatmap(res, k = 6)

plot of chunk tab-node-01-consensus-heatmap-5

consensus_heatmap(res, k = 7)

plot of chunk tab-node-01-consensus-heatmap-6

consensus_heatmap(res, k = 8)

plot of chunk tab-node-01-consensus-heatmap-7

Heatmaps for the membership of samples in all partitions to see how consistent they are:

membership_heatmap(res, k = 2)

plot of chunk tab-node-01-membership-heatmap-1

membership_heatmap(res, k = 3)

plot of chunk tab-node-01-membership-heatmap-2

membership_heatmap(res, k = 4)

plot of chunk tab-node-01-membership-heatmap-3

membership_heatmap(res, k = 5)

plot of chunk tab-node-01-membership-heatmap-4

membership_heatmap(res, k = 6)

plot of chunk tab-node-01-membership-heatmap-5

membership_heatmap(res, k = 7)

plot of chunk tab-node-01-membership-heatmap-6

membership_heatmap(res, k = 8)

plot of chunk tab-node-01-membership-heatmap-7

As soon as the classes for columns are determined, the signatures that are significantly different between subgroups can be looked for. Following are the heatmaps for signatures.

get_signatures(res, k = 2)

plot of chunk tab-node-01-get-signatures-1

get_signatures(res, k = 3)

plot of chunk tab-node-01-get-signatures-2

get_signatures(res, k = 4)

plot of chunk tab-node-01-get-signatures-3

get_signatures(res, k = 5)

plot of chunk tab-node-01-get-signatures-4

get_signatures(res, k = 6)

plot of chunk tab-node-01-get-signatures-5

get_signatures(res, k = 7)

plot of chunk tab-node-01-get-signatures-6

get_signatures(res, k = 8)

plot of chunk tab-node-01-get-signatures-7

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-01-signature_compare

get_signature() returns a data frame invisibly. To get the list of signatures, the function call should be assigned to a variable explicitly. In following code, if plot argument is set to FALSE, no heatmap is plotted while only the differential analysis is performed.

# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)

An example of the output of tb is:

#>   which_row         fdr    mean_1    mean_2 scaled_mean_1 scaled_mean_2 km
#> 1        38 0.042760348  8.373488  9.131774    -0.5533452     0.5164555  1
#> 2        40 0.018707592  7.106213  8.469186    -0.6173731     0.5762149  1
#> 3        55 0.019134737 10.221463 11.207825    -0.6159697     0.5749050  1
#> 4        59 0.006059896  5.921854  7.869574    -0.6899429     0.6439467  1
#> 5        60 0.018055526  8.928898 10.211722    -0.6204761     0.5791110  1
#> 6        98 0.009384629 15.714769 14.887706     0.6635654    -0.6193277  2
...

The columns in tb are:

  1. which_row: row indices corresponding to the input matrix.
  2. fdr: FDR for the differential test.
  3. mean_x: The mean value in group x.
  4. scaled_mean_x: The mean value in group x after rows are scaled.
  5. km: Row groups if k-means clustering is applied to rows (which is done by automatically selecting number of clusters).

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs:

# code only for demonstration
# e.g. to show the top 500 most significant rows
tb = get_signature(res, k = ..., top_signatures = 500)

If the signatures are defined as these which are uniquely high in current group, diff_method argument can be set to "uniquely_high_in_one_group":

# code only for demonstration
tb = get_signature(res, k = ..., diff_method = "uniquely_high_in_one_group")

UMAP plot which shows how samples are separated.

dimension_reduction(res, k = 2, method = "UMAP")

plot of chunk tab-node-01-dimension-reduction-1

dimension_reduction(res, k = 3, method = "UMAP")

plot of chunk tab-node-01-dimension-reduction-2

dimension_reduction(res, k = 4, method = "UMAP")

plot of chunk tab-node-01-dimension-reduction-3

dimension_reduction(res, k = 5, method = "UMAP")

plot of chunk tab-node-01-dimension-reduction-4

dimension_reduction(res, k = 6, method = "UMAP")

plot of chunk tab-node-01-dimension-reduction-5

dimension_reduction(res, k = 7, method = "UMAP")

plot of chunk tab-node-01-dimension-reduction-6

dimension_reduction(res, k = 8, method = "UMAP")

plot of chunk tab-node-01-dimension-reduction-7

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-01-collect-classes

If matrix rows can be associated to genes, consider to use functional_enrichment(res, ...) to perform function enrichment for the signature genes. See this vignette for more detailed explanations.


Node011

Parent node: Node01. Child nodes: Node0111-leaf , Node0112-leaf , Node0113-leaf , Node0121-leaf , Node0122-leaf , Node0123-leaf , Node0131-leaf , Node0132-leaf , Node0133-leaf , Node0211-leaf , Node0212-leaf , Node0221-leaf , Node0222 , Node0223-leaf , Node0231-leaf , Node0232-leaf , Node0233-leaf .

The object with results only for a single top-value method and a single partitioning method can be extracted as:

res = res_rh["011"]

A summary of res and all the functions that can be applied to it:

res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6, 7, 8.
#>   On a matrix with 30000 rows and 28 columns.
#>   Top rows (1000) are extracted by 'ATC' method.
#>   Subgroups are detected by 'kmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 5.
#> 
#> Following methods can be applied to this 'ConsensusPartition' object:
#>  [1] "cola_report"             "collect_classes"         "collect_plots"          
#>  [4] "collect_stats"           "colnames"                "compare_partitions"     
#>  [7] "compare_signatures"      "consensus_heatmap"       "dimension_reduction"    
#> [10] "functional_enrichment"   "get_anno_col"            "get_anno"               
#> [13] "get_classes"             "get_consensus"           "get_matrix"             
#> [16] "get_membership"          "get_param"               "get_signatures"         
#> [19] "get_stats"               "is_best_k"               "is_stable_k"            
#> [22] "membership_heatmap"      "ncol"                    "nrow"                   
#> [25] "plot_ecdf"               "predict_classes"         "rownames"               
#> [28] "select_partition_number" "show"                    "suggest_best_k"         
#> [31] "test_to_known_factors"   "top_rows_heatmap"

collect_plots() function collects all the plots made from res for all k (number of subgroups) into one single page to provide an easy and fast comparison between different k.

collect_plots(res)

plot of chunk node-011-collect-plots

The plots are:

All the plots in panels can be made by individual functions and they are plotted later in this section.

select_partition_number() produces several plots showing different statistics for choosing “optimized” k. There are following statistics:

The detailed explanations of these statistics can be found in the cola vignette.

Generally speaking, higher 1-PAC score, higher mean silhouette score or higher concordance corresponds to better partition. Rand index and Jaccard index measure how similar the current partition is compared to partition with k-1. If they are too similar, we won't accept k is better than k-1.

select_partition_number(res)

plot of chunk node-011-select-partition-number

The numeric values for all these statistics can be obtained by get_stats().

get_stats(res)
#>   k 1-PAC mean_silhouette concordance area_increased  Rand Jaccard
#> 2 2 1.000           0.984       0.993         0.4577 0.548   0.548
#> 3 3 1.000           0.982       0.986         0.4932 0.767   0.575
#> 4 4 0.883           0.910       0.894         0.0849 0.937   0.798
#> 5 5 0.902           0.924       0.911         0.0592 0.968   0.874
#> 6 6 0.858           0.862       0.896         0.0307 1.000   1.000
#> 7 7 0.862           0.857       0.883         0.0410 0.947   0.759
#> 8 8 0.837           0.747       0.836         0.0209 0.987   0.921

suggest_best_k() suggests the best \(k\) based on these statistics. The rules are as follows:

suggest_best_k(res)
#> [1] 5
#> attr(,"optional")
#> [1] 2 3

There is also optional best \(k\) = 2 3 that is worth to check.

Following is the table of the partitions (You need to click the show/hide code output link to see it). The membership matrix (columns with name p*) is inferred by clue::cl_consensus() function with the SE method. Basically the value in the membership matrix represents the probability to belong to a certain group. The finall subgroup label for an item is determined with the group with highest probability it belongs to.

In get_classes() function, the entropy is calculated from the membership matrix and the silhouette score is calculated from the consensus matrix.

show/hide code output

cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#>                 class entropy silhouette  p1  p2
#> TCGA.Q9.A6FU.01     2   0.722      0.750 0.2 0.8
#> TCGA.LN.A4A3.01     2   0.000      0.989 0.0 1.0
#> TCGA.LN.A49X.01     2   0.000      0.989 0.0 1.0
#> TCGA.IG.A3YC.01     2   0.000      0.989 0.0 1.0
#> TCGA.LN.A49N.01     2   0.000      0.989 0.0 1.0
#> TCGA.VR.AA7B.01     2   0.000      0.989 0.0 1.0
#> TCGA.IG.A3Y9.01     2   0.000      0.989 0.0 1.0
#> TCGA.LN.A5U7.01     1   0.000      1.000 1.0 0.0
#> TCGA.IG.A625.01     1   0.000      1.000 1.0 0.0
#> TCGA.IG.A50L.01     2   0.000      0.989 0.0 1.0
#> TCGA.LN.A49O.01     2   0.000      0.989 0.0 1.0
#> TCGA.IG.A3YA.01     2   0.000      0.989 0.0 1.0
#> TCGA.LN.A7HZ.01     1   0.000      1.000 1.0 0.0
#> TCGA.IG.A3QL.01     1   0.000      1.000 1.0 0.0
#> TCGA.LN.A4A2.01     1   0.000      1.000 1.0 0.0
#> TCGA.L5.A8NQ.01     2   0.000      0.989 0.0 1.0
#> TCGA.LN.A8I0.01     1   0.000      1.000 1.0 0.0
#> TCGA.XP.A8T8.01     1   0.000      1.000 1.0 0.0
#> TCGA.VR.A8EX.01     2   0.000      0.989 0.0 1.0
#> TCGA.VR.A8EU.01     2   0.000      0.989 0.0 1.0
#> TCGA.Z6.A8JD.01     2   0.000      0.989 0.0 1.0
#> TCGA.LN.A8HZ.01     1   0.000      1.000 1.0 0.0
#> TCGA.L5.A88S.01     2   0.000      0.989 0.0 1.0
#> TCGA.VR.A8EW.01     1   0.000      1.000 1.0 0.0
#> TCGA.VR.AA4G.01     2   0.000      0.989 0.0 1.0
#> TCGA.JY.A6FD.01     2   0.000      0.989 0.0 1.0
#> TCGA.L5.A8NK.01     2   0.000      0.989 0.0 1.0
#> TCGA.LN.A9FO.01     2   0.000      0.989 0.0 1.0

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette p1   p2   p3
#> TCGA.Q9.A6FU.01     2   0.000      0.958  0 1.00 0.00
#> TCGA.LN.A4A3.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.LN.A49X.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.IG.A3YC.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.LN.A49N.01     2   0.000      0.958  0 1.00 0.00
#> TCGA.VR.AA7B.01     2   0.000      0.958  0 1.00 0.00
#> TCGA.IG.A3Y9.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.LN.A5U7.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.IG.A625.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.IG.A50L.01     2   0.000      0.958  0 1.00 0.00
#> TCGA.LN.A49O.01     2   0.000      0.958  0 1.00 0.00
#> TCGA.IG.A3YA.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.LN.A7HZ.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.IG.A3QL.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.LN.A4A2.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.L5.A8NQ.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.LN.A8I0.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.XP.A8T8.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.VR.A8EX.01     2   0.254      0.948  0 0.92 0.08
#> TCGA.VR.A8EU.01     2   0.000      0.958  0 1.00 0.00
#> TCGA.Z6.A8JD.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.LN.A8HZ.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.L5.A88S.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.VR.A8EW.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.VR.AA4G.01     2   0.254      0.948  0 0.92 0.08
#> TCGA.JY.A6FD.01     2   0.254      0.948  0 0.92 0.08
#> TCGA.L5.A8NK.01     2   0.254      0.948  0 0.92 0.08
#> TCGA.LN.A9FO.01     2   0.254      0.948  0 0.92 0.08

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2   p3   p4
#> TCGA.Q9.A6FU.01     2  0.3975      0.664 0.00 0.76 0.00 0.24
#> TCGA.LN.A4A3.01     3  0.0707      0.991 0.00 0.02 0.98 0.00
#> TCGA.LN.A49X.01     3  0.0707      0.991 0.00 0.02 0.98 0.00
#> TCGA.IG.A3YC.01     3  0.0707      0.991 0.00 0.02 0.98 0.00
#> TCGA.LN.A49N.01     2  0.4948      0.803 0.00 0.56 0.00 0.44
#> TCGA.VR.AA7B.01     2  0.4134      0.686 0.00 0.74 0.00 0.26
#> TCGA.IG.A3Y9.01     3  0.0000      0.991 0.00 0.00 1.00 0.00
#> TCGA.LN.A5U7.01     1  0.3801      0.873 0.78 0.22 0.00 0.00
#> TCGA.IG.A625.01     1  0.3400      0.883 0.82 0.18 0.00 0.00
#> TCGA.IG.A50L.01     4  0.0000      1.000 0.00 0.00 0.00 1.00
#> TCGA.LN.A49O.01     4  0.0000      1.000 0.00 0.00 0.00 1.00
#> TCGA.IG.A3YA.01     3  0.0707      0.991 0.00 0.02 0.98 0.00
#> TCGA.LN.A7HZ.01     1  0.3801      0.873 0.78 0.22 0.00 0.00
#> TCGA.IG.A3QL.01     1  0.3801      0.873 0.78 0.22 0.00 0.00
#> TCGA.LN.A4A2.01     1  0.0000      0.905 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NQ.01     3  0.0000      0.991 0.00 0.00 1.00 0.00
#> TCGA.LN.A8I0.01     1  0.0707      0.898 0.98 0.02 0.00 0.00
#> TCGA.XP.A8T8.01     1  0.0000      0.905 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EX.01     2  0.6212      0.875 0.00 0.56 0.06 0.38
#> TCGA.VR.A8EU.01     4  0.0000      1.000 0.00 0.00 0.00 1.00
#> TCGA.Z6.A8JD.01     3  0.0000      0.991 0.00 0.00 1.00 0.00
#> TCGA.LN.A8HZ.01     1  0.0000      0.905 1.00 0.00 0.00 0.00
#> TCGA.L5.A88S.01     3  0.0000      0.991 0.00 0.00 1.00 0.00
#> TCGA.VR.A8EW.01     1  0.0707      0.898 0.98 0.02 0.00 0.00
#> TCGA.VR.AA4G.01     2  0.6212      0.875 0.00 0.56 0.06 0.38
#> TCGA.JY.A6FD.01     2  0.6212      0.875 0.00 0.56 0.06 0.38
#> TCGA.L5.A8NK.01     2  0.6212      0.875 0.00 0.56 0.06 0.38
#> TCGA.LN.A9FO.01     2  0.6212      0.875 0.00 0.56 0.06 0.38

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1   p2   p3   p4   p5
#> TCGA.Q9.A6FU.01     5  0.4613      0.928 0.00 0.36 0.00 0.02 0.62
#> TCGA.LN.A4A3.01     3  0.0000      0.981 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A49X.01     3  0.0609      0.975 0.00 0.00 0.98 0.00 0.02
#> TCGA.IG.A3YC.01     3  0.0000      0.981 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A49N.01     2  0.0609      0.947 0.00 0.98 0.00 0.02 0.00
#> TCGA.VR.AA7B.01     5  0.4726      0.924 0.00 0.40 0.00 0.02 0.58
#> TCGA.IG.A3Y9.01     3  0.1216      0.975 0.00 0.00 0.96 0.02 0.02
#> TCGA.LN.A5U7.01     1  0.4252      0.801 0.70 0.00 0.00 0.02 0.28
#> TCGA.IG.A625.01     1  0.3521      0.841 0.82 0.00 0.00 0.04 0.14
#> TCGA.IG.A50L.01     4  0.1410      0.970 0.00 0.06 0.00 0.94 0.00
#> TCGA.LN.A49O.01     4  0.1732      0.985 0.00 0.08 0.00 0.92 0.00
#> TCGA.IG.A3YA.01     3  0.0609      0.975 0.00 0.00 0.98 0.00 0.02
#> TCGA.LN.A7HZ.01     1  0.4252      0.801 0.70 0.00 0.00 0.02 0.28
#> TCGA.IG.A3QL.01     1  0.4252      0.801 0.70 0.00 0.00 0.02 0.28
#> TCGA.LN.A4A2.01     1  0.0609      0.857 0.98 0.00 0.00 0.02 0.00
#> TCGA.L5.A8NQ.01     3  0.0609      0.981 0.00 0.00 0.98 0.02 0.00
#> TCGA.LN.A8I0.01     1  0.1648      0.840 0.94 0.00 0.00 0.02 0.04
#> TCGA.XP.A8T8.01     1  0.0000      0.862 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EX.01     2  0.0000      0.973 0.00 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EU.01     4  0.1732      0.985 0.00 0.08 0.00 0.92 0.00
#> TCGA.Z6.A8JD.01     3  0.0609      0.981 0.00 0.00 0.98 0.02 0.00
#> TCGA.LN.A8HZ.01     1  0.0000      0.862 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88S.01     3  0.1216      0.975 0.00 0.00 0.96 0.02 0.02
#> TCGA.VR.A8EW.01     1  0.1648      0.849 0.94 0.00 0.00 0.02 0.04
#> TCGA.VR.AA4G.01     2  0.0000      0.973 0.00 1.00 0.00 0.00 0.00
#> TCGA.JY.A6FD.01     2  0.0000      0.973 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NK.01     2  0.0000      0.973 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A9FO.01     2  0.1410      0.898 0.00 0.94 0.00 0.00 0.06

show/hide code output

cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6
#> TCGA.Q9.A6FU.01     6  0.0937      0.911 0.00 0.04 0.00 0.00 0.00 0.96
#> TCGA.LN.A4A3.01     3  0.0000      0.958 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A49X.01     3  0.0000      0.958 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A3YC.01     3  0.0547      0.956 0.00 0.02 0.98 0.00 0.00 0.00
#> TCGA.LN.A49N.01     2  0.2094      0.873 0.00 0.90 0.00 0.00 0.08 0.02
#> TCGA.VR.AA7B.01     6  0.2350      0.911 0.00 0.10 0.00 0.00 0.02 0.88
#> TCGA.IG.A3Y9.01     3  0.2581      0.903 0.00 0.02 0.86 0.00 0.12 0.00
#> TCGA.LN.A5U7.01     1  0.1807      0.753 0.92 0.00 0.00 0.00 0.06 0.02
#> TCGA.IG.A625.01     1  0.0547      0.779 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.IG.A50L.01     4  0.4632      0.883 0.00 0.04 0.00 0.52 0.44 0.00
#> TCGA.LN.A49O.01     4  0.3950      0.875 0.00 0.04 0.00 0.72 0.24 0.00
#> TCGA.IG.A3YA.01     3  0.0547      0.956 0.00 0.02 0.98 0.00 0.00 0.00
#> TCGA.LN.A7HZ.01     1  0.1807      0.753 0.92 0.00 0.00 0.00 0.06 0.02
#> TCGA.IG.A3QL.01     1  0.1807      0.753 0.92 0.00 0.00 0.00 0.06 0.02
#> TCGA.LN.A4A2.01     1  0.3309      0.812 0.72 0.00 0.00 0.28 0.00 0.00
#> TCGA.L5.A8NQ.01     3  0.0547      0.958 0.00 0.00 0.98 0.00 0.02 0.00
#> TCGA.LN.A8I0.01     1  0.4462      0.782 0.66 0.00 0.00 0.28 0.00 0.06
#> TCGA.XP.A8T8.01     1  0.3309      0.812 0.72 0.00 0.00 0.28 0.00 0.00
#> TCGA.VR.A8EX.01     2  0.1556      0.873 0.00 0.92 0.00 0.00 0.08 0.00
#> TCGA.VR.A8EU.01     4  0.4482      0.909 0.00 0.04 0.00 0.60 0.36 0.00
#> TCGA.Z6.A8JD.01     3  0.0547      0.958 0.00 0.00 0.98 0.00 0.02 0.00
#> TCGA.LN.A8HZ.01     1  0.3309      0.812 0.72 0.00 0.00 0.28 0.00 0.00
#> TCGA.L5.A88S.01     3  0.2048      0.908 0.00 0.00 0.88 0.00 0.12 0.00
#> TCGA.VR.A8EW.01     1  0.5236      0.776 0.66 0.00 0.00 0.22 0.04 0.08
#> TCGA.VR.AA4G.01     2  0.0547      0.892 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.JY.A6FD.01     2  0.0000      0.893 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NK.01     2  0.0547      0.893 0.00 0.98 0.00 0.00 0.02 0.00
#> TCGA.LN.A9FO.01     2  0.3499      0.630 0.00 0.68 0.00 0.00 0.32 0.00

show/hide code output

cbind(get_classes(res, k = 7), get_membership(res, k = 7))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7
#> TCGA.Q9.A6FU.01     6  0.0504      0.959 0.00 0.02 0.00 0.00 0.00 0.98 0.00
#> TCGA.LN.A4A3.01     3  0.0000      0.893 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49X.01     3  0.0504      0.894 0.02 0.00 0.98 0.00 0.00 0.00 0.00
#> TCGA.IG.A3YC.01     3  0.0863      0.888 0.00 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.LN.A49N.01     2  0.2569      0.821 0.02 0.84 0.00 0.00 0.00 0.00 0.14
#> TCGA.VR.AA7B.01     6  0.1860      0.959 0.04 0.02 0.00 0.00 0.00 0.92 0.02
#> TCGA.IG.A3Y9.01     3  0.3294      0.727 0.00 0.00 0.66 0.00 0.00 0.00 0.34
#> TCGA.LN.A5U7.01     5  0.0504      0.908 0.00 0.00 0.00 0.00 0.98 0.00 0.02
#> TCGA.IG.A625.01     5  0.2259      0.695 0.16 0.00 0.00 0.00 0.84 0.00 0.00
#> TCGA.IG.A50L.01     4  0.2569      0.817 0.02 0.00 0.00 0.84 0.00 0.00 0.14
#> TCGA.LN.A49O.01     4  0.1363      0.880 0.04 0.00 0.00 0.94 0.00 0.00 0.02
#> TCGA.IG.A3YA.01     3  0.0863      0.888 0.00 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.LN.A7HZ.01     5  0.0000      0.904 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.IG.A3QL.01     5  0.0504      0.908 0.00 0.00 0.00 0.00 0.98 0.00 0.02
#> TCGA.LN.A4A2.01     1  0.2832      0.929 0.76 0.00 0.00 0.00 0.24 0.00 0.00
#> TCGA.L5.A8NQ.01     3  0.1505      0.891 0.02 0.00 0.94 0.00 0.00 0.02 0.02
#> TCGA.LN.A8I0.01     1  0.2832      0.929 0.76 0.00 0.00 0.00 0.24 0.00 0.00
#> TCGA.XP.A8T8.01     1  0.2945      0.930 0.74 0.00 0.00 0.00 0.26 0.00 0.00
#> TCGA.VR.A8EX.01     2  0.2569      0.821 0.02 0.84 0.00 0.00 0.00 0.00 0.14
#> TCGA.VR.A8EU.01     4  0.0000      0.891 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.Z6.A8JD.01     3  0.1505      0.891 0.02 0.00 0.94 0.00 0.00 0.02 0.02
#> TCGA.LN.A8HZ.01     1  0.2945      0.930 0.74 0.00 0.00 0.00 0.26 0.00 0.00
#> TCGA.L5.A88S.01     3  0.3139      0.739 0.00 0.00 0.70 0.00 0.00 0.00 0.30
#> TCGA.VR.A8EW.01     1  0.5164      0.748 0.54 0.00 0.00 0.00 0.26 0.00 0.20
#> TCGA.VR.AA4G.01     2  0.0000      0.864 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A6FD.01     2  0.0000      0.864 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NK.01     2  0.0000      0.864 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FO.01     2  0.4630      0.555 0.12 0.62 0.00 0.00 0.00 0.00 0.26

show/hide code output

cbind(get_classes(res, k = 8), get_membership(res, k = 8))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7   p8
#> TCGA.Q9.A6FU.01     6  0.0000      0.824 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A4A3.01     3  0.0000      0.800 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49X.01     3  0.0808      0.799 0.00 0.00 0.96 0.04 0.00 0.00 0.00 0.00
#> TCGA.IG.A3YC.01     3  0.0471      0.798 0.00 0.00 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.LN.A49N.01     2  0.2650      0.690 0.00 0.76 0.00 0.00 0.00 0.00 0.24 0.00
#> TCGA.VR.AA7B.01     6  0.3503      0.823 0.00 0.02 0.00 0.12 0.00 0.78 0.00 0.08
#> TCGA.IG.A3Y9.01     3  0.6271      0.459 0.00 0.00 0.42 0.14 0.20 0.00 0.00 0.24
#> TCGA.LN.A5U7.01     5  0.2534      0.916 0.22 0.00 0.00 0.00 0.78 0.00 0.00 0.00
#> TCGA.IG.A625.01     5  0.4887      0.770 0.32 0.00 0.00 0.04 0.58 0.00 0.02 0.04
#> TCGA.IG.A50L.01     7  0.0471      0.676 0.00 0.02 0.00 0.00 0.00 0.00 0.98 0.00
#> TCGA.LN.A49O.01     7  0.3618      0.757 0.00 0.02 0.00 0.38 0.00 0.00 0.60 0.00
#> TCGA.IG.A3YA.01     3  0.0471      0.798 0.00 0.00 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.LN.A7HZ.01     5  0.3095      0.909 0.24 0.00 0.00 0.00 0.74 0.00 0.00 0.02
#> TCGA.IG.A3QL.01     5  0.2534      0.916 0.22 0.00 0.00 0.00 0.78 0.00 0.00 0.00
#> TCGA.LN.A4A2.01     1  0.0471      0.883 0.98 0.00 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.L5.A8NQ.01     3  0.2407      0.790 0.00 0.00 0.86 0.08 0.00 0.00 0.00 0.06
#> TCGA.LN.A8I0.01     1  0.0941      0.876 0.96 0.00 0.00 0.00 0.00 0.02 0.00 0.02
#> TCGA.XP.A8T8.01     1  0.0000      0.883 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EX.01     2  0.2650      0.690 0.00 0.76 0.00 0.00 0.00 0.00 0.24 0.00
#> TCGA.VR.A8EU.01     7  0.3426      0.793 0.00 0.02 0.00 0.22 0.02 0.00 0.74 0.00
#> TCGA.Z6.A8JD.01     3  0.2407      0.790 0.00 0.00 0.86 0.08 0.00 0.00 0.00 0.06
#> TCGA.LN.A8HZ.01     1  0.0471      0.874 0.98 0.00 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.L5.A88S.01     3  0.6211      0.465 0.00 0.00 0.44 0.14 0.20 0.00 0.00 0.22
#> TCGA.VR.A8EW.01     1  0.3880      0.579 0.64 0.00 0.00 0.32 0.00 0.02 0.00 0.02
#> TCGA.VR.AA4G.01     2  0.0000      0.783 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A6FD.01     2  0.0000      0.783 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NK.01     2  0.0000      0.783 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FO.01     8  0.3237      0.000 0.00 0.40 0.00 0.00 0.00 0.00 0.00 0.60

Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.

consensus_heatmap(res, k = 2)

plot of chunk tab-node-011-consensus-heatmap-1

consensus_heatmap(res, k = 3)

plot of chunk tab-node-011-consensus-heatmap-2

consensus_heatmap(res, k = 4)

plot of chunk tab-node-011-consensus-heatmap-3

consensus_heatmap(res, k = 5)

plot of chunk tab-node-011-consensus-heatmap-4

consensus_heatmap(res, k = 6)

plot of chunk tab-node-011-consensus-heatmap-5

consensus_heatmap(res, k = 7)

plot of chunk tab-node-011-consensus-heatmap-6

consensus_heatmap(res, k = 8)

plot of chunk tab-node-011-consensus-heatmap-7

Heatmaps for the membership of samples in all partitions to see how consistent they are:

membership_heatmap(res, k = 2)

plot of chunk tab-node-011-membership-heatmap-1

membership_heatmap(res, k = 3)

plot of chunk tab-node-011-membership-heatmap-2

membership_heatmap(res, k = 4)

plot of chunk tab-node-011-membership-heatmap-3

membership_heatmap(res, k = 5)

plot of chunk tab-node-011-membership-heatmap-4

membership_heatmap(res, k = 6)

plot of chunk tab-node-011-membership-heatmap-5

membership_heatmap(res, k = 7)

plot of chunk tab-node-011-membership-heatmap-6

membership_heatmap(res, k = 8)

plot of chunk tab-node-011-membership-heatmap-7

As soon as the classes for columns are determined, the signatures that are significantly different between subgroups can be looked for. Following are the heatmaps for signatures.

get_signatures(res, k = 2)

plot of chunk tab-node-011-get-signatures-1

get_signatures(res, k = 3)

plot of chunk tab-node-011-get-signatures-2

get_signatures(res, k = 4)

plot of chunk tab-node-011-get-signatures-3

get_signatures(res, k = 5)

plot of chunk tab-node-011-get-signatures-4

get_signatures(res, k = 6)

plot of chunk tab-node-011-get-signatures-5

get_signatures(res, k = 7)

plot of chunk tab-node-011-get-signatures-6

get_signatures(res, k = 8)

plot of chunk tab-node-011-get-signatures-7

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-011-signature_compare

get_signature() returns a data frame invisibly. To get the list of signatures, the function call should be assigned to a variable explicitly. In following code, if plot argument is set to FALSE, no heatmap is plotted while only the differential analysis is performed.

# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)

An example of the output of tb is:

#>   which_row         fdr    mean_1    mean_2 scaled_mean_1 scaled_mean_2 km
#> 1        38 0.042760348  8.373488  9.131774    -0.5533452     0.5164555  1
#> 2        40 0.018707592  7.106213  8.469186    -0.6173731     0.5762149  1
#> 3        55 0.019134737 10.221463 11.207825    -0.6159697     0.5749050  1
#> 4        59 0.006059896  5.921854  7.869574    -0.6899429     0.6439467  1
#> 5        60 0.018055526  8.928898 10.211722    -0.6204761     0.5791110  1
#> 6        98 0.009384629 15.714769 14.887706     0.6635654    -0.6193277  2
...

The columns in tb are:

  1. which_row: row indices corresponding to the input matrix.
  2. fdr: FDR for the differential test.
  3. mean_x: The mean value in group x.
  4. scaled_mean_x: The mean value in group x after rows are scaled.
  5. km: Row groups if k-means clustering is applied to rows (which is done by automatically selecting number of clusters).

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs:

# code only for demonstration
# e.g. to show the top 500 most significant rows
tb = get_signature(res, k = ..., top_signatures = 500)

If the signatures are defined as these which are uniquely high in current group, diff_method argument can be set to "uniquely_high_in_one_group":

# code only for demonstration
tb = get_signature(res, k = ..., diff_method = "uniquely_high_in_one_group")

UMAP plot which shows how samples are separated.

dimension_reduction(res, k = 2, method = "UMAP")

plot of chunk tab-node-011-dimension-reduction-1

dimension_reduction(res, k = 3, method = "UMAP")

plot of chunk tab-node-011-dimension-reduction-2

dimension_reduction(res, k = 4, method = "UMAP")

plot of chunk tab-node-011-dimension-reduction-3

dimension_reduction(res, k = 5, method = "UMAP")

plot of chunk tab-node-011-dimension-reduction-4

dimension_reduction(res, k = 6, method = "UMAP")

plot of chunk tab-node-011-dimension-reduction-5

dimension_reduction(res, k = 7, method = "UMAP")

plot of chunk tab-node-011-dimension-reduction-6

dimension_reduction(res, k = 8, method = "UMAP")

plot of chunk tab-node-011-dimension-reduction-7

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-011-collect-classes

If matrix rows can be associated to genes, consider to use functional_enrichment(res, ...) to perform function enrichment for the signature genes. See this vignette for more detailed explanations.


Node012

Parent node: Node01. Child nodes: Node0111-leaf , Node0112-leaf , Node0113-leaf , Node0121-leaf , Node0122-leaf , Node0123-leaf , Node0131-leaf , Node0132-leaf , Node0133-leaf , Node0211-leaf , Node0212-leaf , Node0221-leaf , Node0222 , Node0223-leaf , Node0231-leaf , Node0232-leaf , Node0233-leaf .

The object with results only for a single top-value method and a single partitioning method can be extracted as:

res = res_rh["012"]

A summary of res and all the functions that can be applied to it:

res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6, 7, 8.
#>   On a matrix with 30000 rows and 20 columns.
#>   Top rows (1000) are extracted by 'ATC' method.
#>   Subgroups are detected by 'kmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 3.
#> 
#> Following methods can be applied to this 'ConsensusPartition' object:
#>  [1] "cola_report"             "collect_classes"         "collect_plots"          
#>  [4] "collect_stats"           "colnames"                "compare_partitions"     
#>  [7] "compare_signatures"      "consensus_heatmap"       "dimension_reduction"    
#> [10] "functional_enrichment"   "get_anno_col"            "get_anno"               
#> [13] "get_classes"             "get_consensus"           "get_matrix"             
#> [16] "get_membership"          "get_param"               "get_signatures"         
#> [19] "get_stats"               "is_best_k"               "is_stable_k"            
#> [22] "membership_heatmap"      "ncol"                    "nrow"                   
#> [25] "plot_ecdf"               "predict_classes"         "rownames"               
#> [28] "select_partition_number" "show"                    "suggest_best_k"         
#> [31] "test_to_known_factors"   "top_rows_heatmap"

collect_plots() function collects all the plots made from res for all k (number of subgroups) into one single page to provide an easy and fast comparison between different k.

collect_plots(res)

plot of chunk node-012-collect-plots

The plots are:

All the plots in panels can be made by individual functions and they are plotted later in this section.

select_partition_number() produces several plots showing different statistics for choosing “optimized” k. There are following statistics:

The detailed explanations of these statistics can be found in the cola vignette.

Generally speaking, higher 1-PAC score, higher mean silhouette score or higher concordance corresponds to better partition. Rand index and Jaccard index measure how similar the current partition is compared to partition with k-1. If they are too similar, we won't accept k is better than k-1.

select_partition_number(res)

plot of chunk node-012-select-partition-number

The numeric values for all these statistics can be obtained by get_stats().

get_stats(res)
#>   k 1-PAC mean_silhouette concordance area_increased  Rand Jaccard
#> 2 2 1.000           0.998       0.999         0.4788 0.521   0.521
#> 3 3 1.000           0.987       0.990         0.3729 0.758   0.562
#> 4 4 0.742           0.900       0.908         0.1458 0.889   0.677
#> 5 5 0.821           0.610       0.811         0.0577 0.953   0.800
#> 6 6 0.863           0.740       0.830         0.0421 0.942   0.725
#> 7 7 0.826           0.544       0.755         0.0283 0.937   0.657
#> 8 8 0.832           0.675       0.868         0.0258 0.979   0.852

suggest_best_k() suggests the best \(k\) based on these statistics. The rules are as follows:

suggest_best_k(res)
#> [1] 3
#> attr(,"optional")
#> [1] 2

There is also optional best \(k\) = 2 that is worth to check.

Following is the table of the partitions (You need to click the show/hide code output link to see it). The membership matrix (columns with name p*) is inferred by clue::cl_consensus() function with the SE method. Basically the value in the membership matrix represents the probability to belong to a certain group. The finall subgroup label for an item is determined with the group with highest probability it belongs to.

In get_classes() function, the entropy is calculated from the membership matrix and the silhouette score is calculated from the consensus matrix.

show/hide code output

cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#>                 class entropy silhouette   p1   p2
#> TCGA.LN.A4A4.01     2   0.000      0.997 0.00 1.00
#> TCGA.LN.A7HV.01     1   0.000      1.000 1.00 0.00
#> TCGA.VR.A8EP.01     1   0.000      1.000 1.00 0.00
#> TCGA.JY.A6FE.01     1   0.000      1.000 1.00 0.00
#> TCGA.L5.A4OM.01     2   0.000      0.997 0.00 1.00
#> TCGA.LN.A4A6.01     1   0.000      1.000 1.00 0.00
#> TCGA.LN.A49R.01     2   0.000      0.997 0.00 1.00
#> TCGA.LN.A49U.01     1   0.000      1.000 1.00 0.00
#> TCGA.LN.A7HX.01     1   0.000      1.000 1.00 0.00
#> TCGA.LN.A4A8.01     1   0.000      1.000 1.00 0.00
#> TCGA.LN.A49Y.01     1   0.000      1.000 1.00 0.00
#> TCGA.LN.A4A1.01     2   0.141      0.980 0.02 0.98
#> TCGA.LN.A49S.01     1   0.000      1.000 1.00 0.00
#> TCGA.IG.A8O2.01     2   0.000      0.997 0.00 1.00
#> TCGA.IG.A5B8.01     1   0.000      1.000 1.00 0.00
#> TCGA.LN.A4MR.01     1   0.000      1.000 1.00 0.00
#> TCGA.LN.A4A9.01     1   0.000      1.000 1.00 0.00
#> TCGA.JY.A6FA.01     2   0.000      0.997 0.00 1.00
#> TCGA.VR.A8EO.01     2   0.000      0.997 0.00 1.00
#> TCGA.XP.A8T6.01     1   0.000      1.000 1.00 0.00

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette   p1   p2   p3
#> TCGA.LN.A4A4.01     2  0.0000      0.990 0.00 1.00 0.00
#> TCGA.LN.A7HV.01     1  0.0892      0.991 0.98 0.00 0.02
#> TCGA.VR.A8EP.01     1  0.0892      0.991 0.98 0.00 0.02
#> TCGA.JY.A6FE.01     1  0.0892      0.991 0.98 0.00 0.02
#> TCGA.L5.A4OM.01     2  0.0892      0.985 0.00 0.98 0.02
#> TCGA.LN.A4A6.01     1  0.0000      0.987 1.00 0.00 0.00
#> TCGA.LN.A49R.01     2  0.0000      0.990 0.00 1.00 0.00
#> TCGA.LN.A49U.01     3  0.0892      0.969 0.02 0.00 0.98
#> TCGA.LN.A7HX.01     3  0.0000      0.987 0.00 0.00 1.00
#> TCGA.LN.A4A8.01     1  0.0000      0.987 1.00 0.00 0.00
#> TCGA.LN.A49Y.01     1  0.0000      0.987 1.00 0.00 0.00
#> TCGA.LN.A4A1.01     3  0.0000      0.987 0.00 0.00 1.00
#> TCGA.LN.A49S.01     1  0.0892      0.991 0.98 0.00 0.02
#> TCGA.IG.A8O2.01     3  0.0892      0.969 0.00 0.02 0.98
#> TCGA.IG.A5B8.01     1  0.0892      0.991 0.98 0.00 0.02
#> TCGA.LN.A4MR.01     1  0.0000      0.987 1.00 0.00 0.00
#> TCGA.LN.A4A9.01     1  0.0892      0.991 0.98 0.00 0.02
#> TCGA.JY.A6FA.01     2  0.0000      0.990 0.00 1.00 0.00
#> TCGA.VR.A8EO.01     2  0.0892      0.985 0.00 0.98 0.02
#> TCGA.XP.A8T6.01     3  0.0000      0.987 0.00 0.00 1.00

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2   p3   p4
#> TCGA.LN.A4A4.01     2  0.0000      0.911 0.00 1.00 0.00 0.00
#> TCGA.LN.A7HV.01     1  0.2647      0.887 0.88 0.00 0.00 0.12
#> TCGA.VR.A8EP.01     1  0.0707      0.848 0.98 0.00 0.02 0.00
#> TCGA.JY.A6FE.01     1  0.0000      0.867 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OM.01     2  0.4553      0.863 0.00 0.78 0.04 0.18
#> TCGA.LN.A4A6.01     4  0.3610      1.000 0.20 0.00 0.00 0.80
#> TCGA.LN.A49R.01     2  0.0000      0.911 0.00 1.00 0.00 0.00
#> TCGA.LN.A49U.01     3  0.3801      0.748 0.22 0.00 0.78 0.00
#> TCGA.LN.A7HX.01     3  0.0000      0.939 0.00 0.00 1.00 0.00
#> TCGA.LN.A4A8.01     4  0.3610      1.000 0.20 0.00 0.00 0.80
#> TCGA.LN.A49Y.01     4  0.3610      1.000 0.20 0.00 0.00 0.80
#> TCGA.LN.A4A1.01     3  0.0000      0.939 0.00 0.00 1.00 0.00
#> TCGA.LN.A49S.01     1  0.2647      0.887 0.88 0.00 0.00 0.12
#> TCGA.IG.A8O2.01     3  0.0707      0.930 0.00 0.00 0.98 0.02
#> TCGA.IG.A5B8.01     1  0.2647      0.887 0.88 0.00 0.00 0.12
#> TCGA.LN.A4MR.01     1  0.3400      0.813 0.82 0.00 0.00 0.18
#> TCGA.LN.A4A9.01     1  0.0000      0.867 1.00 0.00 0.00 0.00
#> TCGA.JY.A6FA.01     2  0.0000      0.911 0.00 1.00 0.00 0.00
#> TCGA.VR.A8EO.01     2  0.4553      0.863 0.00 0.78 0.04 0.18
#> TCGA.XP.A8T6.01     3  0.0000      0.939 0.00 0.00 1.00 0.00

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1  p2   p3   p4   p5
#> TCGA.LN.A4A4.01     2  0.4307      0.426 0.00 0.5 0.00 0.00 0.50
#> TCGA.LN.A7HV.01     1  0.1410      0.945 0.94 0.0 0.00 0.06 0.00
#> TCGA.VR.A8EP.01     1  0.1410      0.895 0.94 0.0 0.06 0.00 0.00
#> TCGA.JY.A6FE.01     1  0.0609      0.932 0.98 0.0 0.00 0.00 0.02
#> TCGA.L5.A4OM.01     2  0.0000      0.582 0.00 1.0 0.00 0.00 0.00
#> TCGA.LN.A4A6.01     4  0.1043      1.000 0.04 0.0 0.00 0.96 0.00
#> TCGA.LN.A49R.01     5  0.4307     -0.785 0.00 0.5 0.00 0.00 0.50
#> TCGA.LN.A49U.01     3  0.2280      0.436 0.12 0.0 0.88 0.00 0.00
#> TCGA.LN.A7HX.01     3  0.3109      0.619 0.00 0.0 0.80 0.00 0.20
#> TCGA.LN.A4A8.01     4  0.1043      1.000 0.04 0.0 0.00 0.96 0.00
#> TCGA.LN.A49Y.01     4  0.1043      1.000 0.04 0.0 0.00 0.96 0.00
#> TCGA.LN.A4A1.01     3  0.4262      0.598 0.00 0.0 0.56 0.00 0.44
#> TCGA.LN.A49S.01     1  0.1410      0.945 0.94 0.0 0.00 0.06 0.00
#> TCGA.IG.A8O2.01     5  0.5178     -0.795 0.00 0.0 0.48 0.04 0.48
#> TCGA.IG.A5B8.01     1  0.1410      0.945 0.94 0.0 0.00 0.06 0.00
#> TCGA.LN.A4MR.01     1  0.2331      0.923 0.90 0.0 0.00 0.08 0.02
#> TCGA.LN.A4A9.01     1  0.0609      0.924 0.98 0.0 0.02 0.00 0.00
#> TCGA.JY.A6FA.01     2  0.4307      0.426 0.00 0.5 0.00 0.00 0.50
#> TCGA.VR.A8EO.01     2  0.0000      0.582 0.00 1.0 0.00 0.00 0.00
#> TCGA.XP.A8T6.01     3  0.4227      0.607 0.00 0.0 0.58 0.00 0.42

show/hide code output

cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6
#> TCGA.LN.A4A4.01     5  0.3706      1.000 0.00 0.38 0.00 0.00 0.62 0.00
#> TCGA.LN.A7HV.01     1  0.0547      0.913 0.98 0.00 0.00 0.02 0.00 0.00
#> TCGA.VR.A8EP.01     1  0.1480      0.881 0.94 0.00 0.00 0.00 0.02 0.04
#> TCGA.JY.A6FE.01     1  0.3309      0.752 0.72 0.00 0.00 0.00 0.28 0.00
#> TCGA.L5.A4OM.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A6.01     4  0.0000      1.000 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A49R.01     5  0.3706      1.000 0.00 0.38 0.00 0.00 0.62 0.00
#> TCGA.LN.A49U.01     3  0.4420      0.284 0.02 0.00 0.66 0.00 0.02 0.30
#> TCGA.LN.A7HX.01     3  0.0000      0.226 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A4A8.01     4  0.0000      1.000 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A49Y.01     4  0.0000      1.000 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A4A1.01     3  0.3864     -0.769 0.00 0.00 0.52 0.00 0.00 0.48
#> TCGA.LN.A49S.01     1  0.0547      0.913 0.98 0.00 0.00 0.02 0.00 0.00
#> TCGA.IG.A8O2.01     6  0.4552      0.534 0.00 0.00 0.30 0.00 0.06 0.64
#> TCGA.IG.A5B8.01     1  0.0547      0.913 0.98 0.00 0.00 0.02 0.00 0.00
#> TCGA.LN.A4MR.01     1  0.1092      0.909 0.96 0.00 0.00 0.02 0.02 0.00
#> TCGA.LN.A4A9.01     1  0.2631      0.824 0.82 0.00 0.00 0.00 0.18 0.00
#> TCGA.JY.A6FA.01     5  0.3706      1.000 0.00 0.38 0.00 0.00 0.62 0.00
#> TCGA.VR.A8EO.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.XP.A8T6.01     6  0.3864      0.414 0.00 0.00 0.48 0.00 0.00 0.52

show/hide code output

cbind(get_classes(res, k = 7), get_membership(res, k = 7))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7
#> TCGA.LN.A4A4.01     5  0.2906      0.768 0.00 0.00 0.00 0.02 0.80 0.00 0.18
#> TCGA.LN.A7HV.01     1  0.1006      0.773 0.96 0.00 0.00 0.02 0.00 0.00 0.02
#> TCGA.VR.A8EP.01     1  0.1860      0.683 0.92 0.02 0.02 0.00 0.00 0.00 0.04
#> TCGA.JY.A6FE.01     7  0.3496      0.000 0.42 0.00 0.00 0.00 0.00 0.00 0.58
#> TCGA.L5.A4OM.01     2  0.2945      1.000 0.00 0.74 0.00 0.00 0.26 0.00 0.00
#> TCGA.LN.A4A6.01     4  0.0504      1.000 0.02 0.00 0.00 0.98 0.00 0.00 0.00
#> TCGA.LN.A49R.01     5  0.0000      0.890 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A49U.01     3  0.2803      0.293 0.00 0.10 0.84 0.00 0.00 0.00 0.06
#> TCGA.LN.A7HX.01     3  0.2572      0.275 0.00 0.00 0.80 0.00 0.00 0.20 0.00
#> TCGA.LN.A4A8.01     4  0.0504      1.000 0.02 0.00 0.00 0.98 0.00 0.00 0.00
#> TCGA.LN.A49Y.01     4  0.0504      1.000 0.02 0.00 0.00 0.98 0.00 0.00 0.00
#> TCGA.LN.A4A1.01     6  0.6147     -0.288 0.00 0.06 0.38 0.00 0.00 0.40 0.16
#> TCGA.LN.A49S.01     1  0.0504      0.779 0.98 0.00 0.00 0.02 0.00 0.00 0.00
#> TCGA.IG.A8O2.01     6  0.0000      0.153 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.IG.A5B8.01     1  0.0504      0.779 0.98 0.00 0.00 0.02 0.00 0.00 0.00
#> TCGA.LN.A4MR.01     1  0.2509      0.695 0.88 0.06 0.00 0.02 0.00 0.00 0.04
#> TCGA.LN.A4A9.01     1  0.3755     -0.402 0.64 0.02 0.00 0.00 0.00 0.00 0.34
#> TCGA.JY.A6FA.01     5  0.0000      0.890 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.VR.A8EO.01     2  0.2945      1.000 0.00 0.74 0.00 0.00 0.26 0.00 0.00
#> TCGA.XP.A8T6.01     3  0.6698     -0.401 0.02 0.06 0.38 0.00 0.00 0.34 0.20

show/hide code output

cbind(get_classes(res, k = 8), get_membership(res, k = 8))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7   p8
#> TCGA.LN.A4A4.01     5  0.3528     0.7255 0.00 0.00 0.00 0.00 0.74 0.00 0.18 0.08
#> TCGA.LN.A7HV.01     1  0.0000     0.7941 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EP.01     1  0.2132     0.7229 0.88 0.04 0.00 0.00 0.00 0.00 0.00 0.08
#> TCGA.JY.A6FE.01     7  0.2406     0.0000 0.20 0.00 0.00 0.00 0.00 0.00 0.80 0.00
#> TCGA.L5.A4OM.01     2  0.2719     0.9793 0.00 0.80 0.00 0.00 0.18 0.00 0.02 0.00
#> TCGA.LN.A4A6.01     4  0.0000     0.9831 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49R.01     5  0.0471     0.8633 0.00 0.00 0.00 0.00 0.98 0.00 0.00 0.02
#> TCGA.LN.A49U.01     3  0.1091     0.4351 0.00 0.00 0.94 0.00 0.00 0.06 0.00 0.00
#> TCGA.LN.A7HX.01     3  0.3737     0.1916 0.00 0.00 0.50 0.00 0.00 0.48 0.02 0.00
#> TCGA.LN.A4A8.01     4  0.0000     0.9831 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49Y.01     4  0.0808     0.9659 0.00 0.04 0.00 0.96 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A1.01     6  0.0000     0.8917 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A49S.01     1  0.0000     0.7941 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A8O2.01     8  0.3142     0.0000 0.00 0.00 0.00 0.00 0.00 0.36 0.00 0.64
#> TCGA.IG.A5B8.01     1  0.0000     0.7941 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4MR.01     1  0.3913     0.5582 0.74 0.04 0.06 0.00 0.00 0.00 0.00 0.16
#> TCGA.LN.A4A9.01     1  0.4415     0.0869 0.60 0.06 0.00 0.00 0.00 0.00 0.32 0.02
#> TCGA.JY.A6FA.01     5  0.0000     0.8633 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EO.01     2  0.2267     0.9794 0.00 0.82 0.00 0.00 0.18 0.00 0.00 0.00
#> TCGA.XP.A8T6.01     6  0.1275     0.8918 0.00 0.04 0.00 0.00 0.00 0.94 0.00 0.02

Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.

consensus_heatmap(res, k = 2)

plot of chunk tab-node-012-consensus-heatmap-1

consensus_heatmap(res, k = 3)

plot of chunk tab-node-012-consensus-heatmap-2

consensus_heatmap(res, k = 4)

plot of chunk tab-node-012-consensus-heatmap-3

consensus_heatmap(res, k = 5)

plot of chunk tab-node-012-consensus-heatmap-4

consensus_heatmap(res, k = 6)

plot of chunk tab-node-012-consensus-heatmap-5

consensus_heatmap(res, k = 7)

plot of chunk tab-node-012-consensus-heatmap-6

consensus_heatmap(res, k = 8)

plot of chunk tab-node-012-consensus-heatmap-7

Heatmaps for the membership of samples in all partitions to see how consistent they are:

membership_heatmap(res, k = 2)

plot of chunk tab-node-012-membership-heatmap-1

membership_heatmap(res, k = 3)

plot of chunk tab-node-012-membership-heatmap-2

membership_heatmap(res, k = 4)

plot of chunk tab-node-012-membership-heatmap-3

membership_heatmap(res, k = 5)

plot of chunk tab-node-012-membership-heatmap-4

membership_heatmap(res, k = 6)

plot of chunk tab-node-012-membership-heatmap-5

membership_heatmap(res, k = 7)

plot of chunk tab-node-012-membership-heatmap-6

membership_heatmap(res, k = 8)

plot of chunk tab-node-012-membership-heatmap-7

As soon as the classes for columns are determined, the signatures that are significantly different between subgroups can be looked for. Following are the heatmaps for signatures.

get_signatures(res, k = 2)

plot of chunk tab-node-012-get-signatures-1

get_signatures(res, k = 3)

plot of chunk tab-node-012-get-signatures-2

get_signatures(res, k = 4)

plot of chunk tab-node-012-get-signatures-3

get_signatures(res, k = 5)

plot of chunk tab-node-012-get-signatures-4

get_signatures(res, k = 6)

plot of chunk tab-node-012-get-signatures-5

get_signatures(res, k = 7)

plot of chunk tab-node-012-get-signatures-6

get_signatures(res, k = 8)

plot of chunk tab-node-012-get-signatures-7

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-012-signature_compare

get_signature() returns a data frame invisibly. To get the list of signatures, the function call should be assigned to a variable explicitly. In following code, if plot argument is set to FALSE, no heatmap is plotted while only the differential analysis is performed.

# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)

An example of the output of tb is:

#>   which_row         fdr    mean_1    mean_2 scaled_mean_1 scaled_mean_2 km
#> 1        38 0.042760348  8.373488  9.131774    -0.5533452     0.5164555  1
#> 2        40 0.018707592  7.106213  8.469186    -0.6173731     0.5762149  1
#> 3        55 0.019134737 10.221463 11.207825    -0.6159697     0.5749050  1
#> 4        59 0.006059896  5.921854  7.869574    -0.6899429     0.6439467  1
#> 5        60 0.018055526  8.928898 10.211722    -0.6204761     0.5791110  1
#> 6        98 0.009384629 15.714769 14.887706     0.6635654    -0.6193277  2
...

The columns in tb are:

  1. which_row: row indices corresponding to the input matrix.
  2. fdr: FDR for the differential test.
  3. mean_x: The mean value in group x.
  4. scaled_mean_x: The mean value in group x after rows are scaled.
  5. km: Row groups if k-means clustering is applied to rows (which is done by automatically selecting number of clusters).

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs:

# code only for demonstration
# e.g. to show the top 500 most significant rows
tb = get_signature(res, k = ..., top_signatures = 500)

If the signatures are defined as these which are uniquely high in current group, diff_method argument can be set to "uniquely_high_in_one_group":

# code only for demonstration
tb = get_signature(res, k = ..., diff_method = "uniquely_high_in_one_group")

UMAP plot which shows how samples are separated.

dimension_reduction(res, k = 2, method = "UMAP")

plot of chunk tab-node-012-dimension-reduction-1

dimension_reduction(res, k = 3, method = "UMAP")

plot of chunk tab-node-012-dimension-reduction-2

dimension_reduction(res, k = 4, method = "UMAP")

plot of chunk tab-node-012-dimension-reduction-3

dimension_reduction(res, k = 5, method = "UMAP")

plot of chunk tab-node-012-dimension-reduction-4

dimension_reduction(res, k = 6, method = "UMAP")

plot of chunk tab-node-012-dimension-reduction-5

dimension_reduction(res, k = 7, method = "UMAP")

plot of chunk tab-node-012-dimension-reduction-6

dimension_reduction(res, k = 8, method = "UMAP")

plot of chunk tab-node-012-dimension-reduction-7

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-012-collect-classes

If matrix rows can be associated to genes, consider to use functional_enrichment(res, ...) to perform function enrichment for the signature genes. See this vignette for more detailed explanations.


Node013

Parent node: Node01. Child nodes: Node0111-leaf , Node0112-leaf , Node0113-leaf , Node0121-leaf , Node0122-leaf , Node0123-leaf , Node0131-leaf , Node0132-leaf , Node0133-leaf , Node0211-leaf , Node0212-leaf , Node0221-leaf , Node0222 , Node0223-leaf , Node0231-leaf , Node0232-leaf , Node0233-leaf .

The object with results only for a single top-value method and a single partitioning method can be extracted as:

res = res_rh["013"]

A summary of res and all the functions that can be applied to it:

res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6, 7, 8.
#>   On a matrix with 30000 rows and 23 columns.
#>   Top rows (1000) are extracted by 'ATC' method.
#>   Subgroups are detected by 'kmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 3.
#> 
#> Following methods can be applied to this 'ConsensusPartition' object:
#>  [1] "cola_report"             "collect_classes"         "collect_plots"          
#>  [4] "collect_stats"           "colnames"                "compare_partitions"     
#>  [7] "compare_signatures"      "consensus_heatmap"       "dimension_reduction"    
#> [10] "functional_enrichment"   "get_anno_col"            "get_anno"               
#> [13] "get_classes"             "get_consensus"           "get_matrix"             
#> [16] "get_membership"          "get_param"               "get_signatures"         
#> [19] "get_stats"               "is_best_k"               "is_stable_k"            
#> [22] "membership_heatmap"      "ncol"                    "nrow"                   
#> [25] "plot_ecdf"               "predict_classes"         "rownames"               
#> [28] "select_partition_number" "show"                    "suggest_best_k"         
#> [31] "test_to_known_factors"   "top_rows_heatmap"

collect_plots() function collects all the plots made from res for all k (number of subgroups) into one single page to provide an easy and fast comparison between different k.

collect_plots(res)

plot of chunk node-013-collect-plots

The plots are:

All the plots in panels can be made by individual functions and they are plotted later in this section.

select_partition_number() produces several plots showing different statistics for choosing “optimized” k. There are following statistics:

The detailed explanations of these statistics can be found in the cola vignette.

Generally speaking, higher 1-PAC score, higher mean silhouette score or higher concordance corresponds to better partition. Rand index and Jaccard index measure how similar the current partition is compared to partition with k-1. If they are too similar, we won't accept k is better than k-1.

select_partition_number(res)

plot of chunk node-013-select-partition-number

The numeric values for all these statistics can be obtained by get_stats().

get_stats(res)
#>   k 1-PAC mean_silhouette concordance area_increased  Rand Jaccard
#> 2 2 1.000           0.939       0.979         0.5181 0.486   0.486
#> 3 3 1.000           0.953       0.983         0.3372 0.723   0.481
#> 4 4 0.775           0.811       0.890         0.1044 0.877   0.627
#> 5 5 0.844           0.888       0.920         0.0620 0.913   0.645
#> 6 6 0.852           0.829       0.890         0.0281 1.000   1.000
#> 7 7 0.814           0.708       0.846         0.0263 0.988   0.932
#> 8 8 0.843           0.506       0.677         0.0160 0.897   0.480

suggest_best_k() suggests the best \(k\) based on these statistics. The rules are as follows:

suggest_best_k(res)
#> [1] 3
#> attr(,"optional")
#> [1] 2

There is also optional best \(k\) = 2 that is worth to check.

Following is the table of the partitions (You need to click the show/hide code output link to see it). The membership matrix (columns with name p*) is inferred by clue::cl_consensus() function with the SE method. Basically the value in the membership matrix represents the probability to belong to a certain group. The finall subgroup label for an item is determined with the group with highest probability it belongs to.

In get_classes() function, the entropy is calculated from the membership matrix and the silhouette score is calculated from the consensus matrix.

show/hide code output

cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#>                 class entropy silhouette   p1   p2
#> TCGA.S8.A6BW.01     2   0.000     0.9591 0.00 1.00
#> TCGA.V5.A7RC.01     1   0.000     1.0000 1.00 0.00
#> TCGA.KH.A6WC.01     2   0.000     0.9591 0.00 1.00
#> TCGA.L7.A56G.01     2   0.000     0.9591 0.00 1.00
#> TCGA.LN.A49K.01     1   0.000     1.0000 1.00 0.00
#> TCGA.V5.A7RC.06     1   0.000     1.0000 1.00 0.00
#> TCGA.IG.A4P3.01     2   0.000     0.9591 0.00 1.00
#> TCGA.L5.A43H.01     1   0.000     1.0000 1.00 0.00
#> TCGA.LN.A7HY.01     2   0.000     0.9591 0.00 1.00
#> TCGA.LN.A49P.01     2   0.000     0.9591 0.00 1.00
#> TCGA.LN.A49W.01     2   0.000     0.9591 0.00 1.00
#> TCGA.LN.A7HW.01     1   0.000     1.0000 1.00 0.00
#> TCGA.LN.A4MQ.01     1   0.000     1.0000 1.00 0.00
#> TCGA.LN.A8I1.01     2   0.000     0.9591 0.00 1.00
#> TCGA.LN.A5U5.01     2   0.000     0.9591 0.00 1.00
#> TCGA.VR.A8EZ.01     1   0.000     1.0000 1.00 0.00
#> TCGA.VR.A8ER.01     1   0.000     1.0000 1.00 0.00
#> TCGA.IG.A97H.01     1   0.000     1.0000 1.00 0.00
#> TCGA.IG.A97I.01     2   0.000     0.9591 0.00 1.00
#> TCGA.IG.A5S3.01     2   0.000     0.9591 0.00 1.00
#> TCGA.LN.A5U6.01     2   0.999     0.0769 0.48 0.52
#> TCGA.LN.A9FQ.01     1   0.000     1.0000 1.00 0.00
#> TCGA.LN.A9FR.01     2   0.000     0.9591 0.00 1.00

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette p1  p2  p3
#> TCGA.S8.A6BW.01     3   0.000      1.000  0 0.0 1.0
#> TCGA.V5.A7RC.01     1   0.000      1.000  1 0.0 0.0
#> TCGA.KH.A6WC.01     2   0.000      0.931  0 1.0 0.0
#> TCGA.L7.A56G.01     2   0.000      0.931  0 1.0 0.0
#> TCGA.LN.A49K.01     1   0.000      1.000  1 0.0 0.0
#> TCGA.V5.A7RC.06     1   0.000      1.000  1 0.0 0.0
#> TCGA.IG.A4P3.01     2   0.000      0.931  0 1.0 0.0
#> TCGA.L5.A43H.01     3   0.000      1.000  0 0.0 1.0
#> TCGA.LN.A7HY.01     2   0.000      0.931  0 1.0 0.0
#> TCGA.LN.A49P.01     3   0.000      1.000  0 0.0 1.0
#> TCGA.LN.A49W.01     2   0.000      0.931  0 1.0 0.0
#> TCGA.LN.A7HW.01     1   0.000      1.000  1 0.0 0.0
#> TCGA.LN.A4MQ.01     1   0.000      1.000  1 0.0 0.0
#> TCGA.LN.A8I1.01     3   0.000      1.000  0 0.0 1.0
#> TCGA.LN.A5U5.01     3   0.000      1.000  0 0.0 1.0
#> TCGA.VR.A8EZ.01     1   0.000      1.000  1 0.0 0.0
#> TCGA.VR.A8ER.01     1   0.000      1.000  1 0.0 0.0
#> TCGA.IG.A97H.01     3   0.000      1.000  0 0.0 1.0
#> TCGA.IG.A97I.01     3   0.000      1.000  0 0.0 1.0
#> TCGA.IG.A5S3.01     2   0.000      0.931  0 1.0 0.0
#> TCGA.LN.A5U6.01     3   0.000      1.000  0 0.0 1.0
#> TCGA.LN.A9FQ.01     1   0.000      1.000  1 0.0 0.0
#> TCGA.LN.A9FR.01     2   0.613      0.333  0 0.6 0.4

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette  p1   p2   p3   p4
#> TCGA.S8.A6BW.01     4   0.000      0.855 0.0 0.00 0.00 1.00
#> TCGA.V5.A7RC.01     1   0.000      0.917 1.0 0.00 0.00 0.00
#> TCGA.KH.A6WC.01     2   0.340      0.876 0.0 0.82 0.00 0.18
#> TCGA.L7.A56G.01     2   0.000      0.832 0.0 1.00 0.00 0.00
#> TCGA.LN.A49K.01     1   0.441      0.705 0.7 0.00 0.30 0.00
#> TCGA.V5.A7RC.06     1   0.000      0.917 1.0 0.00 0.00 0.00
#> TCGA.IG.A4P3.01     4   0.452      0.367 0.0 0.32 0.00 0.68
#> TCGA.L5.A43H.01     3   0.121      0.698 0.0 0.00 0.96 0.04
#> TCGA.LN.A7HY.01     2   0.340      0.876 0.0 0.82 0.00 0.18
#> TCGA.LN.A49P.01     4   0.000      0.855 0.0 0.00 0.00 1.00
#> TCGA.LN.A49W.01     2   0.340      0.876 0.0 0.82 0.00 0.18
#> TCGA.LN.A7HW.01     1   0.441      0.705 0.7 0.00 0.30 0.00
#> TCGA.LN.A4MQ.01     1   0.000      0.917 1.0 0.00 0.00 0.00
#> TCGA.LN.A8I1.01     3   0.441      0.763 0.0 0.00 0.70 0.30
#> TCGA.LN.A5U5.01     3   0.441      0.763 0.0 0.00 0.70 0.30
#> TCGA.VR.A8EZ.01     1   0.000      0.917 1.0 0.00 0.00 0.00
#> TCGA.VR.A8ER.01     1   0.000      0.917 1.0 0.00 0.00 0.00
#> TCGA.IG.A97H.01     3   0.121      0.698 0.0 0.00 0.96 0.04
#> TCGA.IG.A97I.01     4   0.121      0.840 0.0 0.00 0.04 0.96
#> TCGA.IG.A5S3.01     2   0.000      0.832 0.0 1.00 0.00 0.00
#> TCGA.LN.A5U6.01     3   0.441      0.763 0.0 0.00 0.70 0.30
#> TCGA.LN.A9FQ.01     1   0.000      0.917 1.0 0.00 0.00 0.00
#> TCGA.LN.A9FR.01     4   0.121      0.850 0.0 0.04 0.00 0.96

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1   p2   p3   p4   p5
#> TCGA.S8.A6BW.01     4  0.2516      0.870 0.00 0.00 0.00 0.86 0.14
#> TCGA.V5.A7RC.01     1  0.0609      0.987 0.98 0.00 0.00 0.00 0.02
#> TCGA.KH.A6WC.01     2  0.2516      0.893 0.00 0.86 0.00 0.14 0.00
#> TCGA.L7.A56G.01     2  0.1410      0.843 0.00 0.94 0.00 0.00 0.06
#> TCGA.LN.A49K.01     5  0.3274      0.698 0.22 0.00 0.00 0.00 0.78
#> TCGA.V5.A7RC.06     1  0.0609      0.987 0.98 0.00 0.00 0.00 0.02
#> TCGA.IG.A4P3.01     4  0.1410      0.914 0.00 0.06 0.00 0.94 0.00
#> TCGA.L5.A43H.01     5  0.3274      0.658 0.00 0.00 0.22 0.00 0.78
#> TCGA.LN.A7HY.01     2  0.2516      0.893 0.00 0.86 0.00 0.14 0.00
#> TCGA.LN.A49P.01     4  0.0000      0.954 0.00 0.00 0.00 1.00 0.00
#> TCGA.LN.A49W.01     2  0.2516      0.893 0.00 0.86 0.00 0.14 0.00
#> TCGA.LN.A7HW.01     5  0.4060      0.521 0.36 0.00 0.00 0.00 0.64
#> TCGA.LN.A4MQ.01     1  0.0609      0.987 0.98 0.00 0.00 0.00 0.02
#> TCGA.LN.A8I1.01     3  0.0000      0.990 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A5U5.01     3  0.0000      0.990 0.00 0.00 1.00 0.00 0.00
#> TCGA.VR.A8EZ.01     1  0.0000      0.987 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8ER.01     1  0.0000      0.987 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A97H.01     5  0.3274      0.658 0.00 0.00 0.22 0.00 0.78
#> TCGA.IG.A97I.01     4  0.0000      0.954 0.00 0.00 0.00 1.00 0.00
#> TCGA.IG.A5S3.01     2  0.1410      0.843 0.00 0.94 0.00 0.00 0.06
#> TCGA.LN.A5U6.01     3  0.0609      0.979 0.00 0.00 0.98 0.00 0.02
#> TCGA.LN.A9FQ.01     1  0.0000      0.987 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FR.01     4  0.0000      0.954 0.00 0.00 0.00 1.00 0.00

show/hide code output

cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6
#> TCGA.S8.A6BW.01     4  0.4552      0.626 0.00 0.00 0.00 0.64 0.06 0.30
#> TCGA.V5.A7RC.01     1  0.0000      0.964 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KH.A6WC.01     2  0.4680      0.826 0.00 0.68 0.00 0.12 0.00 0.20
#> TCGA.L7.A56G.01     2  0.0000      0.744 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A49K.01     5  0.1556      0.783 0.08 0.00 0.00 0.00 0.92 0.00
#> TCGA.V5.A7RC.06     1  0.0000      0.964 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A4P3.01     4  0.2793      0.726 0.00 0.00 0.00 0.80 0.00 0.20
#> TCGA.L5.A43H.01     5  0.1267      0.762 0.00 0.00 0.06 0.00 0.94 0.00
#> TCGA.LN.A7HY.01     2  0.4680      0.826 0.00 0.68 0.00 0.12 0.00 0.20
#> TCGA.LN.A49P.01     4  0.0937      0.854 0.00 0.00 0.00 0.96 0.00 0.04
#> TCGA.LN.A49W.01     2  0.4680      0.826 0.00 0.68 0.00 0.12 0.00 0.20
#> TCGA.LN.A7HW.01     5  0.3198      0.667 0.26 0.00 0.00 0.00 0.74 0.00
#> TCGA.LN.A4MQ.01     1  0.0000      0.964 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A8I1.01     3  0.0000      0.888 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LN.A5U5.01     3  0.0000      0.888 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EZ.01     1  0.1267      0.964 0.94 0.00 0.00 0.00 0.00 0.06
#> TCGA.VR.A8ER.01     1  0.1267      0.964 0.94 0.00 0.00 0.00 0.00 0.06
#> TCGA.IG.A97H.01     5  0.4360      0.633 0.00 0.00 0.06 0.00 0.68 0.26
#> TCGA.IG.A97I.01     4  0.0000      0.860 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.IG.A5S3.01     2  0.0000      0.744 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A5U6.01     3  0.3711      0.759 0.00 0.00 0.72 0.00 0.02 0.26
#> TCGA.LN.A9FQ.01     1  0.1267      0.964 0.94 0.00 0.00 0.00 0.00 0.06
#> TCGA.LN.A9FR.01     4  0.0000      0.860 0.00 0.00 0.00 1.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 7), get_membership(res, k = 7))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7
#> TCGA.S8.A6BW.01     4  0.4681      0.504 0.00 0.00 0.00 0.58 0.00 0.32 0.10
#> TCGA.V5.A7RC.01     1  0.3139      0.808 0.70 0.00 0.00 0.00 0.00 0.30 0.00
#> TCGA.KH.A6WC.01     2  0.1671      0.805 0.00 0.90 0.00 0.10 0.00 0.00 0.00
#> TCGA.L7.A56G.01     2  0.3667      0.680 0.00 0.74 0.00 0.00 0.00 0.20 0.06
#> TCGA.LN.A49K.01     5  0.0504      0.760 0.02 0.00 0.00 0.00 0.98 0.00 0.00
#> TCGA.V5.A7RC.06     1  0.3139      0.808 0.70 0.00 0.00 0.00 0.00 0.30 0.00
#> TCGA.IG.A4P3.01     4  0.3307      0.664 0.00 0.24 0.00 0.74 0.02 0.00 0.00
#> TCGA.L5.A43H.01     5  0.1363      0.718 0.00 0.00 0.02 0.00 0.94 0.00 0.04
#> TCGA.LN.A7HY.01     2  0.1671      0.805 0.00 0.90 0.00 0.10 0.00 0.00 0.00
#> TCGA.LN.A49P.01     4  0.1664      0.802 0.00 0.06 0.00 0.92 0.02 0.00 0.00
#> TCGA.LN.A49W.01     2  0.1671      0.805 0.00 0.90 0.00 0.10 0.00 0.00 0.00
#> TCGA.LN.A7HW.01     5  0.3052      0.612 0.02 0.00 0.00 0.00 0.78 0.20 0.00
#> TCGA.LN.A4MQ.01     1  0.3139      0.808 0.70 0.00 0.00 0.00 0.00 0.30 0.00
#> TCGA.LN.A8I1.01     3  0.0000      0.774 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A5U5.01     3  0.0000      0.774 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EZ.01     1  0.0000      0.809 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8ER.01     1  0.0000      0.809 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A97H.01     7  0.3517      0.000 0.00 0.00 0.02 0.00 0.28 0.00 0.70
#> TCGA.IG.A97I.01     4  0.0000      0.810 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A5S3.01     2  0.3519      0.680 0.00 0.74 0.00 0.00 0.00 0.22 0.04
#> TCGA.LN.A5U6.01     3  0.5073      0.436 0.00 0.00 0.54 0.00 0.00 0.16 0.30
#> TCGA.LN.A9FQ.01     1  0.0000      0.809 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FR.01     4  0.0000      0.810 0.00 0.00 0.00 1.00 0.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 8), get_membership(res, k = 8))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7   p8
#> TCGA.S8.A6BW.01     6  0.0471      0.000 0.00 0.00 0.00 0.02 0.00 0.98 0.00 0.00
#> TCGA.V5.A7RC.01     1  0.4333      0.749 0.62 0.26 0.00 0.00 0.00 0.00 0.00 0.12
#> TCGA.KH.A6WC.01     2  0.4004      0.265 0.00 0.50 0.00 0.04 0.00 0.00 0.46 0.00
#> TCGA.L7.A56G.01     7  0.1341      0.931 0.00 0.00 0.00 0.00 0.00 0.00 0.92 0.08
#> TCGA.LN.A49K.01     5  0.6255      0.658 0.00 0.14 0.00 0.32 0.38 0.00 0.00 0.16
#> TCGA.V5.A7RC.06     1  0.4333      0.749 0.62 0.26 0.00 0.00 0.00 0.00 0.00 0.12
#> TCGA.IG.A4P3.01     2  0.5101     -0.462 0.00 0.54 0.00 0.28 0.00 0.16 0.00 0.02
#> TCGA.L5.A43H.01     5  0.6053      0.663 0.00 0.14 0.00 0.32 0.42 0.00 0.00 0.12
#> TCGA.LN.A7HY.01     2  0.3992      0.267 0.00 0.52 0.00 0.04 0.00 0.00 0.44 0.00
#> TCGA.LN.A49P.01     4  0.5560      0.533 0.00 0.36 0.00 0.38 0.00 0.24 0.00 0.02
#> TCGA.LN.A49W.01     2  0.4004      0.265 0.00 0.50 0.00 0.04 0.00 0.00 0.46 0.00
#> TCGA.LN.A7HW.01     2  0.7022     -0.551 0.04 0.36 0.00 0.18 0.20 0.00 0.00 0.22
#> TCGA.LN.A4MQ.01     1  0.4333      0.749 0.62 0.26 0.00 0.00 0.00 0.00 0.00 0.12
#> TCGA.LN.A8I1.01     3  0.0471      0.975 0.00 0.00 0.98 0.00 0.00 0.02 0.00 0.00
#> TCGA.LN.A5U5.01     3  0.0000      0.975 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EZ.01     1  0.0000      0.746 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8ER.01     1  0.0000      0.746 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A97H.01     5  0.0808      0.200 0.00 0.00 0.00 0.00 0.96 0.00 0.00 0.04
#> TCGA.IG.A97I.01     4  0.3880      0.755 0.00 0.08 0.00 0.68 0.00 0.24 0.00 0.00
#> TCGA.IG.A5S3.01     7  0.0000      0.931 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.LN.A5U6.01     8  0.3808      0.000 0.00 0.00 0.34 0.00 0.04 0.00 0.00 0.62
#> TCGA.LN.A9FQ.01     1  0.0000      0.746 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A9FR.01     4  0.3880      0.755 0.00 0.08 0.00 0.68 0.00 0.24 0.00 0.00

Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.

consensus_heatmap(res, k = 2)

plot of chunk tab-node-013-consensus-heatmap-1

consensus_heatmap(res, k = 3)

plot of chunk tab-node-013-consensus-heatmap-2

consensus_heatmap(res, k = 4)

plot of chunk tab-node-013-consensus-heatmap-3

consensus_heatmap(res, k = 5)

plot of chunk tab-node-013-consensus-heatmap-4

consensus_heatmap(res, k = 6)

plot of chunk tab-node-013-consensus-heatmap-5

consensus_heatmap(res, k = 7)

plot of chunk tab-node-013-consensus-heatmap-6

consensus_heatmap(res, k = 8)

plot of chunk tab-node-013-consensus-heatmap-7

Heatmaps for the membership of samples in all partitions to see how consistent they are:

membership_heatmap(res, k = 2)

plot of chunk tab-node-013-membership-heatmap-1

membership_heatmap(res, k = 3)

plot of chunk tab-node-013-membership-heatmap-2

membership_heatmap(res, k = 4)

plot of chunk tab-node-013-membership-heatmap-3

membership_heatmap(res, k = 5)

plot of chunk tab-node-013-membership-heatmap-4

membership_heatmap(res, k = 6)

plot of chunk tab-node-013-membership-heatmap-5

membership_heatmap(res, k = 7)

plot of chunk tab-node-013-membership-heatmap-6

membership_heatmap(res, k = 8)

plot of chunk tab-node-013-membership-heatmap-7

As soon as the classes for columns are determined, the signatures that are significantly different between subgroups can be looked for. Following are the heatmaps for signatures.

get_signatures(res, k = 2)

plot of chunk tab-node-013-get-signatures-1

get_signatures(res, k = 3)

plot of chunk tab-node-013-get-signatures-2

get_signatures(res, k = 4)

plot of chunk tab-node-013-get-signatures-3

get_signatures(res, k = 5)

plot of chunk tab-node-013-get-signatures-4

get_signatures(res, k = 6)

plot of chunk tab-node-013-get-signatures-5

get_signatures(res, k = 7)

plot of chunk tab-node-013-get-signatures-6

get_signatures(res, k = 8)

plot of chunk tab-node-013-get-signatures-7

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-013-signature_compare

get_signature() returns a data frame invisibly. To get the list of signatures, the function call should be assigned to a variable explicitly. In following code, if plot argument is set to FALSE, no heatmap is plotted while only the differential analysis is performed.

# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)

An example of the output of tb is:

#>   which_row         fdr    mean_1    mean_2 scaled_mean_1 scaled_mean_2 km
#> 1        38 0.042760348  8.373488  9.131774    -0.5533452     0.5164555  1
#> 2        40 0.018707592  7.106213  8.469186    -0.6173731     0.5762149  1
#> 3        55 0.019134737 10.221463 11.207825    -0.6159697     0.5749050  1
#> 4        59 0.006059896  5.921854  7.869574    -0.6899429     0.6439467  1
#> 5        60 0.018055526  8.928898 10.211722    -0.6204761     0.5791110  1
#> 6        98 0.009384629 15.714769 14.887706     0.6635654    -0.6193277  2
...

The columns in tb are:

  1. which_row: row indices corresponding to the input matrix.
  2. fdr: FDR for the differential test.
  3. mean_x: The mean value in group x.
  4. scaled_mean_x: The mean value in group x after rows are scaled.
  5. km: Row groups if k-means clustering is applied to rows (which is done by automatically selecting number of clusters).

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs:

# code only for demonstration
# e.g. to show the top 500 most significant rows
tb = get_signature(res, k = ..., top_signatures = 500)

If the signatures are defined as these which are uniquely high in current group, diff_method argument can be set to "uniquely_high_in_one_group":

# code only for demonstration
tb = get_signature(res, k = ..., diff_method = "uniquely_high_in_one_group")

UMAP plot which shows how samples are separated.

dimension_reduction(res, k = 2, method = "UMAP")

plot of chunk tab-node-013-dimension-reduction-1

dimension_reduction(res, k = 3, method = "UMAP")

plot of chunk tab-node-013-dimension-reduction-2

dimension_reduction(res, k = 4, method = "UMAP")

plot of chunk tab-node-013-dimension-reduction-3

dimension_reduction(res, k = 5, method = "UMAP")

plot of chunk tab-node-013-dimension-reduction-4

dimension_reduction(res, k = 6, method = "UMAP")

plot of chunk tab-node-013-dimension-reduction-5

dimension_reduction(res, k = 7, method = "UMAP")

plot of chunk tab-node-013-dimension-reduction-6

dimension_reduction(res, k = 8, method = "UMAP")

plot of chunk tab-node-013-dimension-reduction-7

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-013-collect-classes

If matrix rows can be associated to genes, consider to use functional_enrichment(res, ...) to perform function enrichment for the signature genes. See this vignette for more detailed explanations.


Node02

Parent node: Node0. Child nodes: Node011 , Node012 , Node013 , Node021 , Node022 , Node023 , Node031-leaf , Node032-leaf , Node033-leaf , Node034-leaf , Node035-leaf , Node041-leaf , Node042-leaf , Node043-leaf , Node051-leaf , Node052-leaf , Node053-leaf .

The object with results only for a single top-value method and a single partitioning method can be extracted as:

res = res_rh["02"]

A summary of res and all the functions that can be applied to it:

res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6, 7, 8.
#>   On a matrix with 30000 rows and 75 columns.
#>   Top rows (1000) are extracted by 'ATC' method.
#>   Subgroups are detected by 'skmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 3.
#> 
#> Following methods can be applied to this 'ConsensusPartition' object:
#>  [1] "cola_report"             "collect_classes"         "collect_plots"          
#>  [4] "collect_stats"           "colnames"                "compare_partitions"     
#>  [7] "compare_signatures"      "consensus_heatmap"       "dimension_reduction"    
#> [10] "functional_enrichment"   "get_anno_col"            "get_anno"               
#> [13] "get_classes"             "get_consensus"           "get_matrix"             
#> [16] "get_membership"          "get_param"               "get_signatures"         
#> [19] "get_stats"               "is_best_k"               "is_stable_k"            
#> [22] "membership_heatmap"      "ncol"                    "nrow"                   
#> [25] "plot_ecdf"               "predict_classes"         "rownames"               
#> [28] "select_partition_number" "show"                    "suggest_best_k"         
#> [31] "test_to_known_factors"   "top_rows_heatmap"

collect_plots() function collects all the plots made from res for all k (number of subgroups) into one single page to provide an easy and fast comparison between different k.

collect_plots(res)

plot of chunk node-02-collect-plots

The plots are:

All the plots in panels can be made by individual functions and they are plotted later in this section.

select_partition_number() produces several plots showing different statistics for choosing “optimized” k. There are following statistics:

The detailed explanations of these statistics can be found in the cola vignette.

Generally speaking, higher 1-PAC score, higher mean silhouette score or higher concordance corresponds to better partition. Rand index and Jaccard index measure how similar the current partition is compared to partition with k-1. If they are too similar, we won't accept k is better than k-1.

select_partition_number(res)

plot of chunk node-02-select-partition-number

The numeric values for all these statistics can be obtained by get_stats().

get_stats(res)
#>   k 1-PAC mean_silhouette concordance area_increased  Rand Jaccard
#> 2 2 1.000           0.999       0.999         0.3256 0.676   0.676
#> 3 3 0.957           0.955       0.982         0.6893 0.768   0.657
#> 4 4 0.775           0.857       0.929         0.0989 0.933   0.852
#> 5 5 0.803           0.733       0.849         0.0518 0.981   0.953
#> 6 6 0.739           0.615       0.830         0.0349 0.926   0.823
#> 7 7 0.736           0.602       0.831         0.0289 0.899   0.747
#> 8 8 0.664           0.589       0.807         0.0361 0.945   0.838

suggest_best_k() suggests the best \(k\) based on these statistics. The rules are as follows:

suggest_best_k(res)
#> [1] 3
#> attr(,"optional")
#> [1] 2

There is also optional best \(k\) = 2 that is worth to check.

Following is the table of the partitions (You need to click the show/hide code output link to see it). The membership matrix (columns with name p*) is inferred by clue::cl_consensus() function with the SE method. Basically the value in the membership matrix represents the probability to belong to a certain group. The finall subgroup label for an item is determined with the group with highest probability it belongs to.

In get_classes() function, the entropy is calculated from the membership matrix and the silhouette score is calculated from the consensus matrix.

show/hide code output

cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#>                 class entropy silhouette   p1   p2
#> TCGA.JY.A6FB.01     2   0.000      0.999 0.00 1.00
#> TCGA.Q9.A6FW.01     2   0.000      0.999 0.00 1.00
#> TCGA.S8.A6BV.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A4OI.01     2   0.000      0.999 0.00 1.00
#> TCGA.R6.A6DN.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A4OG.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A43E.01     2   0.000      0.999 0.00 1.00
#> TCGA.X8.AAAR.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A4ON.01     2   0.000      0.999 0.00 1.00
#> TCGA.V5.AASW.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A43I.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A4OF.01     1   0.000      1.000 1.00 0.00
#> TCGA.L5.A4OJ.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A4OH.01     2   0.000      0.999 0.00 1.00
#> TCGA.R6.A6L4.01     1   0.000      1.000 1.00 0.00
#> TCGA.L7.A6VZ.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A4OO.01     1   0.000      1.000 1.00 0.00
#> TCGA.L5.A4OP.01     2   0.242      0.958 0.04 0.96
#> TCGA.L5.A43C.01     1   0.000      1.000 1.00 0.00
#> TCGA.L5.A4OE.01     2   0.000      0.999 0.00 1.00
#> TCGA.R6.A6KZ.01     1   0.000      1.000 1.00 0.00
#> TCGA.L5.A4OR.01     2   0.000      0.999 0.00 1.00
#> TCGA.V5.A7RE.01     2   0.000      0.999 0.00 1.00
#> TCGA.V5.A7RE.11     2   0.000      0.999 0.00 1.00
#> TCGA.V5.A7RB.01     2   0.000      0.999 0.00 1.00
#> TCGA.R6.A6DQ.01     2   0.000      0.999 0.00 1.00
#> TCGA.IG.A4QS.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A88Y.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A88V.01     2   0.000      0.999 0.00 1.00
#> TCGA.M9.A5M8.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A4OW.01     2   0.000      0.999 0.00 1.00
#> TCGA.2H.A9GK.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A8NW.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A8NH.01     2   0.000      0.999 0.00 1.00
#> TCGA.2H.A9GR.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A8NV.01     2   0.000      0.999 0.00 1.00
#> TCGA.R6.A6XG.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A8NN.01     1   0.000      1.000 1.00 0.00
#> TCGA.L5.A8NS.01     2   0.000      0.999 0.00 1.00
#> TCGA.JY.A938.01     2   0.000      0.999 0.00 1.00
#> TCGA.R6.A8WG.01     1   0.000      1.000 1.00 0.00
#> TCGA.R6.A6L6.01     1   0.000      1.000 1.00 0.00
#> TCGA.V5.AASX.11     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A893.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A8NU.01     1   0.000      1.000 1.00 0.00
#> TCGA.R6.A6XQ.01     1   0.000      1.000 1.00 0.00
#> TCGA.L5.A4OT.01     2   0.000      0.999 0.00 1.00
#> TCGA.ZR.A9CJ.01     1   0.000      1.000 1.00 0.00
#> TCGA.R6.A8W8.01     2   0.000      0.999 0.00 1.00
#> TCGA.JY.A93E.01     2   0.000      0.999 0.00 1.00
#> TCGA.2H.A9GI.01     2   0.000      0.999 0.00 1.00
#> TCGA.2H.A9GL.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A8NM.01     2   0.000      0.999 0.00 1.00
#> TCGA.JY.A93D.01     1   0.000      1.000 1.00 0.00
#> TCGA.L5.A4OX.01     2   0.000      0.999 0.00 1.00
#> TCGA.R6.A6Y2.01     1   0.000      1.000 1.00 0.00
#> TCGA.2H.A9GF.01     2   0.000      0.999 0.00 1.00
#> TCGA.2H.A9GO.01     1   0.000      1.000 1.00 0.00
#> TCGA.L5.A8NR.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A4OU.01     2   0.000      0.999 0.00 1.00
#> TCGA.JY.A93C.01     2   0.000      0.999 0.00 1.00
#> TCGA.V5.AASX.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A8NT.01     2   0.000      0.999 0.00 1.00
#> TCGA.R6.A8WC.01     2   0.000      0.999 0.00 1.00
#> TCGA.VR.AA4D.01     2   0.000      0.999 0.00 1.00
#> TCGA.2H.A9GM.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A8NG.01     2   0.000      0.999 0.00 1.00
#> TCGA.IC.A6RE.01     2   0.000      0.999 0.00 1.00
#> TCGA.RE.A7BO.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A8NJ.01     2   0.000      0.999 0.00 1.00
#> TCGA.JY.A939.01     1   0.000      1.000 1.00 0.00
#> TCGA.JY.A6F8.01     2   0.000      0.999 0.00 1.00
#> TCGA.VR.A8EQ.01     2   0.000      0.999 0.00 1.00
#> TCGA.L5.A8NL.01     2   0.000      0.999 0.00 1.00
#> TCGA.2H.A9GH.01     2   0.000      0.999 0.00 1.00

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette   p1   p2   p3
#> TCGA.JY.A6FB.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.Q9.A6FW.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.S8.A6BV.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A4OI.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.R6.A6DN.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A4OG.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A43E.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.X8.AAAR.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A4ON.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.V5.AASW.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A43I.01     3  0.0000      0.899 0.00 0.00 1.00
#> TCGA.L5.A4OF.01     1  0.0000      0.998 1.00 0.00 0.00
#> TCGA.L5.A4OJ.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A4OH.01     3  0.0000      0.899 0.00 0.00 1.00
#> TCGA.R6.A6L4.01     1  0.0892      0.970 0.98 0.02 0.00
#> TCGA.L7.A6VZ.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A4OO.01     1  0.0000      0.998 1.00 0.00 0.00
#> TCGA.L5.A4OP.01     3  0.0000      0.899 0.00 0.00 1.00
#> TCGA.L5.A43C.01     1  0.0000      0.998 1.00 0.00 0.00
#> TCGA.L5.A4OE.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.R6.A6KZ.01     1  0.0000      0.998 1.00 0.00 0.00
#> TCGA.L5.A4OR.01     3  0.0000      0.899 0.00 0.00 1.00
#> TCGA.V5.A7RE.01     3  0.4555      0.757 0.00 0.20 0.80
#> TCGA.V5.A7RE.11     3  0.4555      0.757 0.00 0.20 0.80
#> TCGA.V5.A7RB.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.R6.A6DQ.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.IG.A4QS.01     3  0.0000      0.899 0.00 0.00 1.00
#> TCGA.L5.A88Y.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A88V.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.M9.A5M8.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A4OW.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.2H.A9GK.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A8NW.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A8NH.01     3  0.0000      0.899 0.00 0.00 1.00
#> TCGA.2H.A9GR.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A8NV.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.R6.A6XG.01     3  0.0000      0.899 0.00 0.00 1.00
#> TCGA.L5.A8NN.01     1  0.0000      0.998 1.00 0.00 0.00
#> TCGA.L5.A8NS.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.JY.A938.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.R6.A8WG.01     1  0.0000      0.998 1.00 0.00 0.00
#> TCGA.R6.A6L6.01     1  0.0000      0.998 1.00 0.00 0.00
#> TCGA.V5.AASX.11     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A893.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A8NU.01     1  0.0000      0.998 1.00 0.00 0.00
#> TCGA.R6.A6XQ.01     1  0.0000      0.998 1.00 0.00 0.00
#> TCGA.L5.A4OT.01     2  0.2537      0.899 0.00 0.92 0.08
#> TCGA.ZR.A9CJ.01     1  0.0000      0.998 1.00 0.00 0.00
#> TCGA.R6.A8W8.01     3  0.0000      0.899 0.00 0.00 1.00
#> TCGA.JY.A93E.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.2H.A9GI.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.2H.A9GL.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A8NM.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.JY.A93D.01     1  0.0000      0.998 1.00 0.00 0.00
#> TCGA.L5.A4OX.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.R6.A6Y2.01     1  0.0000      0.998 1.00 0.00 0.00
#> TCGA.2H.A9GF.01     3  0.4555      0.753 0.00 0.20 0.80
#> TCGA.2H.A9GO.01     1  0.0000      0.998 1.00 0.00 0.00
#> TCGA.L5.A8NR.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A4OU.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.JY.A93C.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.V5.AASX.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A8NT.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.R6.A8WC.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.VR.AA4D.01     3  0.5560      0.635 0.00 0.30 0.70
#> TCGA.2H.A9GM.01     3  0.0000      0.899 0.00 0.00 1.00
#> TCGA.L5.A8NG.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.IC.A6RE.01     3  0.0000      0.899 0.00 0.00 1.00
#> TCGA.RE.A7BO.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A8NJ.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.JY.A939.01     1  0.0000      0.998 1.00 0.00 0.00
#> TCGA.JY.A6F8.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.VR.A8EQ.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.L5.A8NL.01     2  0.0000      0.989 0.00 1.00 0.00
#> TCGA.2H.A9GH.01     2  0.5948      0.362 0.00 0.64 0.36

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2   p3   p4
#> TCGA.JY.A6FB.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.Q9.A6FW.01     4  0.2921      0.714 0.00 0.14 0.00 0.86
#> TCGA.S8.A6BV.01     4  0.3037      0.757 0.00 0.10 0.02 0.88
#> TCGA.L5.A4OI.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.R6.A6DN.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OG.01     2  0.4134      0.676 0.00 0.74 0.00 0.26
#> TCGA.L5.A43E.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.X8.AAAR.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A4ON.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.V5.AASW.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A43I.01     3  0.2011      0.744 0.00 0.00 0.92 0.08
#> TCGA.L5.A4OF.01     4  0.3172      0.808 0.16 0.00 0.00 0.84
#> TCGA.L5.A4OJ.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OH.01     3  0.1637      0.749 0.00 0.00 0.94 0.06
#> TCGA.R6.A6L4.01     4  0.2647      0.817 0.12 0.00 0.00 0.88
#> TCGA.L7.A6VZ.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OO.01     1  0.4713      0.328 0.64 0.00 0.00 0.36
#> TCGA.L5.A4OP.01     4  0.2345      0.763 0.00 0.00 0.10 0.90
#> TCGA.L5.A43C.01     4  0.3172      0.809 0.16 0.00 0.00 0.84
#> TCGA.L5.A4OE.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.R6.A6KZ.01     1  0.0000      0.943 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OR.01     3  0.0707      0.757 0.00 0.00 0.98 0.02
#> TCGA.V5.A7RE.01     3  0.5428      0.427 0.00 0.38 0.60 0.02
#> TCGA.V5.A7RE.11     3  0.5428      0.427 0.00 0.38 0.60 0.02
#> TCGA.V5.A7RB.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.R6.A6DQ.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.IG.A4QS.01     3  0.3801      0.631 0.00 0.00 0.78 0.22
#> TCGA.L5.A88Y.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A88V.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.M9.A5M8.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OW.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.2H.A9GK.01     2  0.2921      0.839 0.00 0.86 0.00 0.14
#> TCGA.L5.A8NW.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NH.01     3  0.1637      0.749 0.00 0.00 0.94 0.06
#> TCGA.2H.A9GR.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NV.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.R6.A6XG.01     3  0.1211      0.758 0.00 0.00 0.96 0.04
#> TCGA.L5.A8NN.01     1  0.0000      0.943 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NS.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.JY.A938.01     2  0.3400      0.794 0.00 0.82 0.00 0.18
#> TCGA.R6.A8WG.01     1  0.0000      0.943 1.00 0.00 0.00 0.00
#> TCGA.R6.A6L6.01     1  0.0000      0.943 1.00 0.00 0.00 0.00
#> TCGA.V5.AASX.11     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A893.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NU.01     1  0.0707      0.938 0.98 0.00 0.00 0.02
#> TCGA.R6.A6XQ.01     1  0.0707      0.932 0.98 0.00 0.00 0.02
#> TCGA.L5.A4OT.01     2  0.4841      0.734 0.00 0.78 0.14 0.08
#> TCGA.ZR.A9CJ.01     1  0.0707      0.938 0.98 0.00 0.00 0.02
#> TCGA.R6.A8W8.01     3  0.1211      0.758 0.00 0.00 0.96 0.04
#> TCGA.JY.A93E.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.2H.A9GI.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.2H.A9GL.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NM.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.JY.A93D.01     4  0.4790      0.466 0.38 0.00 0.00 0.62
#> TCGA.L5.A4OX.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.R6.A6Y2.01     4  0.3400      0.793 0.18 0.00 0.00 0.82
#> TCGA.2H.A9GF.01     3  0.7654      0.294 0.00 0.34 0.44 0.22
#> TCGA.2H.A9GO.01     1  0.0000      0.943 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NR.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OU.01     2  0.2647      0.859 0.00 0.88 0.00 0.12
#> TCGA.JY.A93C.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.V5.AASX.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NT.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.R6.A8WC.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.VR.AA4D.01     4  0.2011      0.776 0.00 0.00 0.08 0.92
#> TCGA.2H.A9GM.01     3  0.1637      0.749 0.00 0.00 0.94 0.06
#> TCGA.L5.A8NG.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.IC.A6RE.01     3  0.1637      0.750 0.00 0.00 0.94 0.06
#> TCGA.RE.A7BO.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NJ.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.JY.A939.01     1  0.0707      0.938 0.98 0.00 0.00 0.02
#> TCGA.JY.A6F8.01     2  0.0000      0.963 0.00 1.00 0.00 0.00
#> TCGA.VR.A8EQ.01     2  0.3172      0.817 0.00 0.84 0.00 0.16
#> TCGA.L5.A8NL.01     2  0.2921      0.839 0.00 0.86 0.00 0.14
#> TCGA.2H.A9GH.01     2  0.4079      0.717 0.00 0.80 0.18 0.02

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1   p2   p3   p4   p5
#> TCGA.JY.A6FB.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.Q9.A6FW.01     5  0.1043     0.6830 0.00 0.04 0.00 0.00 0.96
#> TCGA.S8.A6BV.01     5  0.2438     0.6577 0.00 0.06 0.00 0.04 0.90
#> TCGA.L5.A4OI.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.R6.A6DN.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OG.01     5  0.4302    -0.0985 0.00 0.48 0.00 0.00 0.52
#> TCGA.L5.A43E.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.X8.AAAR.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4ON.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.V5.AASW.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A43I.01     3  0.3291     0.5818 0.00 0.00 0.84 0.12 0.04
#> TCGA.L5.A4OF.01     5  0.1648     0.6800 0.04 0.00 0.00 0.02 0.94
#> TCGA.L5.A4OJ.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OH.01     3  0.4302     0.5378 0.00 0.00 0.52 0.48 0.00
#> TCGA.R6.A6L4.01     5  0.0609     0.6849 0.02 0.00 0.00 0.00 0.98
#> TCGA.L7.A6VZ.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OO.01     1  0.4126     0.4785 0.62 0.00 0.00 0.00 0.38
#> TCGA.L5.A4OP.01     5  0.6244     0.2984 0.00 0.00 0.26 0.20 0.54
#> TCGA.L5.A43C.01     5  0.1410     0.6752 0.06 0.00 0.00 0.00 0.94
#> TCGA.L5.A4OE.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.R6.A6KZ.01     1  0.0609     0.8819 0.98 0.00 0.00 0.02 0.00
#> TCGA.L5.A4OR.01     3  0.2929     0.6214 0.00 0.00 0.82 0.18 0.00
#> TCGA.V5.A7RE.01     3  0.5447     0.2337 0.00 0.44 0.50 0.06 0.00
#> TCGA.V5.A7RE.11     3  0.5394     0.3132 0.00 0.40 0.54 0.06 0.00
#> TCGA.V5.A7RB.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.R6.A6DQ.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A4QS.01     3  0.4728     0.4684 0.00 0.00 0.70 0.24 0.06
#> TCGA.L5.A88Y.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A88V.01     2  0.0609     0.9097 0.00 0.98 0.00 0.00 0.02
#> TCGA.M9.A5M8.01     2  0.1410     0.8765 0.00 0.94 0.00 0.00 0.06
#> TCGA.L5.A4OW.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GK.01     2  0.4182     0.3692 0.00 0.60 0.00 0.00 0.40
#> TCGA.L5.A8NW.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NH.01     3  0.4262     0.5505 0.00 0.00 0.56 0.44 0.00
#> TCGA.2H.A9GR.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NV.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.R6.A6XG.01     3  0.1732     0.6083 0.00 0.00 0.92 0.08 0.00
#> TCGA.L5.A8NN.01     1  0.1732     0.8687 0.92 0.00 0.00 0.08 0.00
#> TCGA.L5.A8NS.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.JY.A938.01     2  0.4227     0.3177 0.00 0.58 0.00 0.00 0.42
#> TCGA.R6.A8WG.01     1  0.2012     0.8714 0.92 0.00 0.00 0.06 0.02
#> TCGA.R6.A6L6.01     1  0.1216     0.8847 0.96 0.00 0.00 0.02 0.02
#> TCGA.V5.AASX.11     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A893.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NU.01     1  0.1410     0.8790 0.94 0.00 0.00 0.00 0.06
#> TCGA.R6.A6XQ.01     1  0.5759     0.6703 0.62 0.00 0.00 0.18 0.20
#> TCGA.L5.A4OT.01     2  0.5798     0.4421 0.00 0.62 0.08 0.02 0.28
#> TCGA.ZR.A9CJ.01     1  0.2012     0.8773 0.92 0.00 0.00 0.02 0.06
#> TCGA.R6.A8W8.01     3  0.2516     0.6215 0.00 0.00 0.86 0.14 0.00
#> TCGA.JY.A93E.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GI.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GL.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NM.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.JY.A93D.01     5  0.4262    -0.0873 0.44 0.00 0.00 0.00 0.56
#> TCGA.L5.A4OX.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.R6.A6Y2.01     5  0.2020     0.6447 0.10 0.00 0.00 0.00 0.90
#> TCGA.2H.A9GF.01     3  0.7598     0.2794 0.00 0.26 0.44 0.24 0.06
#> TCGA.2H.A9GO.01     1  0.0609     0.8819 0.98 0.00 0.00 0.02 0.00
#> TCGA.L5.A8NR.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OU.01     2  0.3983     0.4990 0.00 0.66 0.00 0.00 0.34
#> TCGA.JY.A93C.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.V5.AASX.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NT.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.R6.A8WC.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.VR.AA4D.01     5  0.5888     0.3594 0.00 0.00 0.28 0.14 0.58
#> TCGA.2H.A9GM.01     3  0.4302     0.5327 0.00 0.00 0.52 0.48 0.00
#> TCGA.L5.A8NG.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.IC.A6RE.01     3  0.3037     0.6165 0.00 0.00 0.86 0.10 0.04
#> TCGA.RE.A7BO.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NJ.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.JY.A939.01     1  0.1410     0.8790 0.94 0.00 0.00 0.00 0.06
#> TCGA.JY.A6F8.01     2  0.0000     0.9276 0.00 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EQ.01     2  0.4060     0.4608 0.00 0.64 0.00 0.00 0.36
#> TCGA.L5.A8NL.01     2  0.4060     0.4596 0.00 0.64 0.00 0.00 0.36
#> TCGA.2H.A9GH.01     2  0.4644     0.4660 0.00 0.68 0.28 0.04 0.00

show/hide code output

cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6
#> TCGA.JY.A6FB.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.Q9.A6FW.01     5  0.2094     0.4820 0.00 0.08 0.00 0.02 0.90 0.00
#> TCGA.S8.A6BV.01     5  0.4066     0.4067 0.00 0.08 0.00 0.12 0.78 0.02
#> TCGA.L5.A4OI.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6DN.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OG.01     5  0.4609     0.1473 0.00 0.42 0.00 0.00 0.54 0.04
#> TCGA.L5.A43E.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.X8.AAAR.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4ON.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASW.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43I.01     4  0.5095    -0.0869 0.00 0.00 0.42 0.50 0.00 0.08
#> TCGA.L5.A4OF.01     5  0.2474     0.4806 0.08 0.00 0.00 0.00 0.88 0.04
#> TCGA.L5.A4OJ.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OH.01     3  0.3846     0.5938 0.00 0.00 0.80 0.10 0.02 0.08
#> TCGA.R6.A6L4.01     5  0.2403     0.4843 0.04 0.00 0.00 0.04 0.90 0.02
#> TCGA.L7.A6VZ.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OO.01     1  0.4326     0.6469 0.68 0.00 0.00 0.02 0.28 0.02
#> TCGA.L5.A4OP.01     4  0.4552     0.3670 0.00 0.00 0.00 0.64 0.30 0.06
#> TCGA.L5.A43C.01     5  0.1480     0.4965 0.04 0.00 0.02 0.00 0.94 0.00
#> TCGA.L5.A4OE.01     2  0.0937     0.8637 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.R6.A6KZ.01     1  0.1092     0.8426 0.96 0.00 0.00 0.02 0.00 0.02
#> TCGA.L5.A4OR.01     3  0.5007     0.4743 0.00 0.00 0.66 0.24 0.02 0.08
#> TCGA.V5.A7RE.01     2  0.6920    -0.2513 0.00 0.40 0.14 0.36 0.00 0.10
#> TCGA.V5.A7RE.11     2  0.6639    -0.1446 0.00 0.44 0.10 0.36 0.00 0.10
#> TCGA.V5.A7RB.01     2  0.1865     0.8407 0.00 0.92 0.00 0.00 0.04 0.04
#> TCGA.R6.A6DQ.01     2  0.1480     0.8533 0.00 0.94 0.00 0.00 0.02 0.04
#> TCGA.IG.A4QS.01     4  0.3873     0.3059 0.00 0.00 0.16 0.78 0.04 0.02
#> TCGA.L5.A88Y.01     2  0.3103     0.7983 0.00 0.86 0.06 0.00 0.04 0.04
#> TCGA.L5.A88V.01     2  0.0547     0.8670 0.00 0.98 0.00 0.00 0.02 0.00
#> TCGA.M9.A5M8.01     2  0.2094     0.8189 0.00 0.90 0.00 0.00 0.08 0.02
#> TCGA.L5.A4OW.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GK.01     2  0.4632     0.0864 0.00 0.52 0.00 0.00 0.44 0.04
#> TCGA.L5.A8NW.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NH.01     3  0.1267     0.6802 0.00 0.00 0.94 0.06 0.00 0.00
#> TCGA.2H.A9GR.01     2  0.0937     0.8637 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.L5.A8NV.01     2  0.1865     0.8407 0.00 0.92 0.00 0.00 0.04 0.04
#> TCGA.R6.A6XG.01     4  0.6735    -0.0644 0.00 0.04 0.26 0.40 0.00 0.30
#> TCGA.L5.A8NN.01     1  0.2094     0.8193 0.90 0.00 0.02 0.00 0.00 0.08
#> TCGA.L5.A8NS.01     2  0.0547     0.8701 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.JY.A938.01     2  0.4646     0.0112 0.00 0.50 0.00 0.00 0.46 0.04
#> TCGA.R6.A8WG.01     1  0.4265     0.7643 0.76 0.00 0.02 0.00 0.08 0.14
#> TCGA.R6.A6L6.01     1  0.0937     0.8552 0.96 0.00 0.00 0.00 0.04 0.00
#> TCGA.V5.AASX.11     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A893.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NU.01     1  0.0937     0.8552 0.96 0.00 0.00 0.00 0.04 0.00
#> TCGA.R6.A6XQ.01     1  0.5749     0.4528 0.46 0.00 0.00 0.02 0.10 0.42
#> TCGA.L5.A4OT.01     2  0.6875     0.3284 0.00 0.56 0.12 0.08 0.20 0.04
#> TCGA.ZR.A9CJ.01     1  0.2581     0.8306 0.86 0.00 0.00 0.00 0.12 0.02
#> TCGA.R6.A8W8.01     3  0.5954     0.3125 0.00 0.00 0.50 0.34 0.02 0.14
#> TCGA.JY.A93E.01     2  0.0937     0.8637 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.2H.A9GI.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GL.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NM.01     2  0.0937     0.8637 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.JY.A93D.01     5  0.4632    -0.2764 0.44 0.00 0.00 0.00 0.52 0.04
#> TCGA.L5.A4OX.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6Y2.01     5  0.3873     0.4124 0.16 0.00 0.00 0.02 0.78 0.04
#> TCGA.2H.A9GF.01     4  0.7655     0.2404 0.00 0.16 0.08 0.50 0.12 0.14
#> TCGA.2H.A9GO.01     1  0.0547     0.8454 0.98 0.00 0.00 0.02 0.00 0.00
#> TCGA.L5.A8NR.01     2  0.1267     0.8375 0.00 0.94 0.06 0.00 0.00 0.00
#> TCGA.L5.A4OU.01     2  0.4534     0.2785 0.00 0.58 0.00 0.00 0.38 0.04
#> TCGA.JY.A93C.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASX.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NT.01     2  0.0547     0.8701 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.R6.A8WC.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.AA4D.01     4  0.4282     0.2999 0.00 0.00 0.00 0.56 0.42 0.02
#> TCGA.2H.A9GM.01     3  0.0000     0.6661 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NG.01     2  0.1480     0.8533 0.00 0.94 0.00 0.00 0.02 0.04
#> TCGA.IC.A6RE.01     4  0.6184     0.0170 0.00 0.00 0.38 0.46 0.04 0.12
#> TCGA.RE.A7BO.01     2  0.1480     0.8533 0.00 0.94 0.00 0.00 0.02 0.04
#> TCGA.L5.A8NJ.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A939.01     1  0.1267     0.8520 0.94 0.00 0.00 0.00 0.06 0.00
#> TCGA.JY.A6F8.01     2  0.0000     0.8754 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EQ.01     5  0.4646     0.0111 0.00 0.46 0.00 0.00 0.50 0.04
#> TCGA.L5.A8NL.01     2  0.4576     0.2204 0.00 0.56 0.00 0.00 0.40 0.04
#> TCGA.2H.A9GH.01     2  0.5896     0.2146 0.00 0.54 0.10 0.32 0.00 0.04

show/hide code output

cbind(get_classes(res, k = 7), get_membership(res, k = 7))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7
#> TCGA.JY.A6FB.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.Q9.A6FW.01     5  0.2163     0.4019 0.00 0.10 0.00 0.00 0.88 0.00 0.02
#> TCGA.S8.A6BV.01     5  0.3149     0.3311 0.00 0.06 0.00 0.06 0.84 0.00 0.04
#> TCGA.L5.A4OI.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6DN.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OG.01     5  0.4354     0.5061 0.00 0.26 0.02 0.02 0.68 0.02 0.00
#> TCGA.L5.A43E.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X8.AAAR.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4ON.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASW.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43I.01     4  0.3722     0.2308 0.00 0.02 0.18 0.76 0.00 0.00 0.04
#> TCGA.L5.A4OF.01     5  0.2159     0.1715 0.06 0.00 0.00 0.02 0.90 0.02 0.00
#> TCGA.L5.A4OJ.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OH.01     3  0.1718     0.6576 0.00 0.00 0.92 0.00 0.00 0.04 0.04
#> TCGA.R6.A6L4.01     5  0.2769     0.1930 0.02 0.00 0.00 0.00 0.86 0.08 0.04
#> TCGA.L7.A6VZ.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OO.01     1  0.3637     0.6148 0.72 0.00 0.00 0.00 0.24 0.04 0.00
#> TCGA.L5.A4OP.01     7  0.6166     0.0000 0.00 0.00 0.00 0.26 0.28 0.04 0.42
#> TCGA.L5.A43C.01     5  0.0504     0.2567 0.00 0.00 0.02 0.00 0.98 0.00 0.00
#> TCGA.L5.A4OE.01     2  0.1006     0.9006 0.00 0.96 0.00 0.00 0.02 0.02 0.00
#> TCGA.R6.A6KZ.01     1  0.1166     0.7400 0.94 0.00 0.00 0.00 0.00 0.06 0.00
#> TCGA.L5.A4OR.01     3  0.5480     0.2918 0.00 0.02 0.52 0.36 0.02 0.00 0.08
#> TCGA.V5.A7RE.01     4  0.4388     0.3181 0.00 0.30 0.02 0.64 0.00 0.00 0.04
#> TCGA.V5.A7RE.11     4  0.4107     0.3455 0.00 0.24 0.02 0.70 0.00 0.00 0.04
#> TCGA.V5.A7RB.01     2  0.1363     0.8860 0.00 0.94 0.00 0.00 0.04 0.02 0.00
#> TCGA.R6.A6DQ.01     2  0.1664     0.8659 0.00 0.92 0.00 0.00 0.06 0.02 0.00
#> TCGA.IG.A4QS.01     4  0.3530    -0.0260 0.00 0.00 0.02 0.76 0.02 0.00 0.20
#> TCGA.L5.A88Y.01     2  0.3061     0.7776 0.00 0.84 0.08 0.00 0.06 0.02 0.00
#> TCGA.L5.A88V.01     2  0.1006     0.8934 0.00 0.96 0.00 0.02 0.00 0.00 0.02
#> TCGA.M9.A5M8.01     2  0.3661     0.5783 0.00 0.74 0.00 0.00 0.22 0.02 0.02
#> TCGA.L5.A4OW.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GK.01     5  0.4356     0.4879 0.00 0.40 0.00 0.02 0.56 0.02 0.00
#> TCGA.L5.A8NW.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NH.01     3  0.3208     0.7095 0.00 0.00 0.82 0.12 0.02 0.00 0.04
#> TCGA.2H.A9GR.01     2  0.1006     0.9006 0.00 0.96 0.00 0.00 0.02 0.02 0.00
#> TCGA.L5.A8NV.01     2  0.1363     0.8860 0.00 0.94 0.00 0.00 0.04 0.02 0.00
#> TCGA.R6.A6XG.01     4  0.6550     0.0972 0.00 0.02 0.16 0.40 0.00 0.06 0.36
#> TCGA.L5.A8NN.01     1  0.3228     0.6389 0.80 0.00 0.00 0.00 0.02 0.16 0.02
#> TCGA.L5.A8NS.01     2  0.0504     0.9117 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.JY.A938.01     5  0.4720     0.5064 0.00 0.36 0.00 0.02 0.58 0.02 0.02
#> TCGA.R6.A8WG.01     1  0.4145     0.6399 0.74 0.00 0.00 0.00 0.14 0.10 0.02
#> TCGA.R6.A6L6.01     1  0.1166     0.7790 0.94 0.00 0.00 0.00 0.06 0.00 0.00
#> TCGA.V5.AASX.11     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A893.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NU.01     1  0.1433     0.7781 0.92 0.00 0.00 0.00 0.08 0.00 0.00
#> TCGA.R6.A6XQ.01     6  0.2945     0.0000 0.26 0.00 0.00 0.00 0.00 0.74 0.00
#> TCGA.L5.A4OT.01     2  0.6738    -0.2876 0.00 0.44 0.12 0.08 0.32 0.00 0.04
#> TCGA.ZR.A9CJ.01     1  0.2376     0.7660 0.86 0.00 0.00 0.00 0.12 0.02 0.00
#> TCGA.R6.A8W8.01     4  0.6101     0.1012 0.00 0.02 0.20 0.48 0.00 0.02 0.28
#> TCGA.JY.A93E.01     2  0.1006     0.9006 0.00 0.96 0.00 0.00 0.02 0.02 0.00
#> TCGA.2H.A9GI.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GL.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NM.01     2  0.1006     0.9006 0.00 0.96 0.00 0.00 0.02 0.02 0.00
#> TCGA.JY.A93D.01     1  0.3815     0.4576 0.62 0.00 0.00 0.00 0.36 0.02 0.00
#> TCGA.L5.A4OX.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6Y2.01     5  0.4854    -0.1613 0.18 0.00 0.00 0.04 0.70 0.04 0.04
#> TCGA.2H.A9GF.01     4  0.7118     0.0270 0.00 0.20 0.04 0.36 0.08 0.00 0.32
#> TCGA.2H.A9GO.01     1  0.0863     0.7432 0.96 0.00 0.00 0.00 0.00 0.04 0.00
#> TCGA.L5.A8NR.01     2  0.0504     0.9075 0.00 0.98 0.02 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OU.01     2  0.4425    -0.3425 0.00 0.48 0.00 0.02 0.48 0.02 0.00
#> TCGA.JY.A93C.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASX.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NT.01     2  0.0504     0.9117 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.R6.A8WC.01     2  0.0504     0.9044 0.00 0.98 0.00 0.02 0.00 0.00 0.00
#> TCGA.VR.AA4D.01     4  0.5546    -0.4790 0.00 0.00 0.00 0.42 0.32 0.00 0.26
#> TCGA.2H.A9GM.01     3  0.2509     0.7231 0.00 0.00 0.88 0.04 0.02 0.00 0.06
#> TCGA.L5.A8NG.01     2  0.1006     0.9006 0.00 0.96 0.00 0.00 0.02 0.02 0.00
#> TCGA.IC.A6RE.01     4  0.6134     0.1096 0.00 0.02 0.26 0.54 0.10 0.00 0.08
#> TCGA.RE.A7BO.01     2  0.0504     0.9117 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.L5.A8NJ.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A939.01     1  0.1433     0.7781 0.92 0.00 0.00 0.00 0.08 0.00 0.00
#> TCGA.JY.A6F8.01     2  0.0000     0.9188 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EQ.01     5  0.5169     0.5003 0.00 0.32 0.06 0.02 0.58 0.02 0.00
#> TCGA.L5.A8NL.01     5  0.4408     0.3944 0.00 0.44 0.00 0.02 0.52 0.02 0.00
#> TCGA.2H.A9GH.01     2  0.3994    -0.1523 0.00 0.50 0.00 0.48 0.00 0.00 0.02

show/hide code output

cbind(get_classes(res, k = 8), get_membership(res, k = 8))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7   p8
#> TCGA.JY.A6FB.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.Q9.A6FW.01     5  0.1091     0.3932 0.00 0.00 0.00 0.00 0.94 0.00 0.06 0.00
#> TCGA.S8.A6BV.01     5  0.0471     0.4037 0.00 0.00 0.00 0.02 0.98 0.00 0.00 0.00
#> TCGA.L5.A4OI.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6DN.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OG.01     5  0.4650     0.4617 0.00 0.20 0.06 0.00 0.66 0.00 0.00 0.08
#> TCGA.L5.A43E.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X8.AAAR.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4ON.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASW.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43I.01     4  0.5374     0.1600 0.00 0.02 0.10 0.66 0.02 0.00 0.12 0.08
#> TCGA.L5.A4OF.01     5  0.3986     0.2718 0.14 0.00 0.00 0.00 0.74 0.04 0.08 0.00
#> TCGA.L5.A4OJ.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OH.01     3  0.4615     0.5387 0.00 0.00 0.68 0.08 0.00 0.00 0.16 0.08
#> TCGA.R6.A6L4.01     5  0.2399     0.3483 0.04 0.00 0.00 0.00 0.88 0.04 0.04 0.00
#> TCGA.L7.A6VZ.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OO.01     1  0.4355     0.5303 0.72 0.00 0.00 0.00 0.16 0.02 0.06 0.04
#> TCGA.L5.A4OP.01     5  0.7362    -0.3806 0.00 0.00 0.00 0.24 0.30 0.10 0.12 0.24
#> TCGA.L5.A43C.01     5  0.3847     0.3478 0.10 0.00 0.06 0.00 0.78 0.00 0.04 0.02
#> TCGA.L5.A4OE.01     2  0.1607     0.8850 0.00 0.92 0.00 0.00 0.04 0.00 0.00 0.04
#> TCGA.R6.A6KZ.01     1  0.3970     0.5553 0.68 0.00 0.00 0.00 0.00 0.10 0.00 0.22
#> TCGA.L5.A4OR.01     4  0.5080    -0.1986 0.00 0.00 0.40 0.48 0.00 0.00 0.06 0.06
#> TCGA.V5.A7RE.01     4  0.3735     0.1558 0.00 0.22 0.00 0.72 0.00 0.00 0.02 0.04
#> TCGA.V5.A7RE.11     4  0.4057     0.1592 0.00 0.20 0.02 0.72 0.00 0.00 0.02 0.04
#> TCGA.V5.A7RB.01     2  0.2623     0.8185 0.00 0.84 0.00 0.00 0.10 0.00 0.00 0.06
#> TCGA.R6.A6DQ.01     2  0.2994     0.7646 0.00 0.80 0.00 0.00 0.14 0.00 0.00 0.06
#> TCGA.IG.A4QS.01     4  0.3735     0.1065 0.00 0.00 0.00 0.72 0.02 0.04 0.00 0.22
#> TCGA.L5.A88Y.01     2  0.4808     0.5559 0.00 0.66 0.10 0.00 0.16 0.00 0.00 0.08
#> TCGA.L5.A88V.01     2  0.0471     0.9055 0.00 0.98 0.00 0.00 0.02 0.00 0.00 0.00
#> TCGA.M9.A5M8.01     2  0.3746     0.4475 0.00 0.64 0.00 0.00 0.32 0.00 0.00 0.04
#> TCGA.L5.A4OW.01     2  0.0471     0.9107 0.00 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.2H.A9GK.01     5  0.3991     0.4541 0.00 0.32 0.00 0.00 0.62 0.00 0.00 0.06
#> TCGA.L5.A8NW.01     2  0.2532     0.8613 0.00 0.88 0.02 0.04 0.02 0.00 0.00 0.04
#> TCGA.L5.A8NH.01     3  0.4180     0.6017 0.00 0.00 0.70 0.20 0.00 0.00 0.06 0.04
#> TCGA.2H.A9GR.01     2  0.1607     0.8850 0.00 0.92 0.00 0.00 0.04 0.00 0.00 0.04
#> TCGA.L5.A8NV.01     2  0.2623     0.8185 0.00 0.84 0.00 0.00 0.10 0.00 0.00 0.06
#> TCGA.R6.A6XG.01     7  0.5259    -0.0145 0.00 0.02 0.10 0.34 0.00 0.00 0.52 0.02
#> TCGA.L5.A8NN.01     1  0.3073     0.6914 0.80 0.00 0.00 0.00 0.00 0.10 0.00 0.10
#> TCGA.L5.A8NS.01     2  0.0471     0.9107 0.00 0.98 0.00 0.00 0.02 0.00 0.00 0.00
#> TCGA.JY.A938.01     5  0.3922     0.4629 0.00 0.30 0.00 0.00 0.64 0.00 0.00 0.06
#> TCGA.R6.A8WG.01     1  0.4492     0.5956 0.70 0.00 0.00 0.00 0.02 0.06 0.04 0.18
#> TCGA.R6.A6L6.01     1  0.1557     0.7293 0.92 0.00 0.00 0.00 0.00 0.06 0.00 0.02
#> TCGA.V5.AASX.11     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A893.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NU.01     1  0.0000     0.7482 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6XQ.01     6  0.2267     0.0000 0.18 0.00 0.00 0.00 0.00 0.82 0.00 0.00
#> TCGA.L5.A4OT.01     5  0.7615     0.1865 0.00 0.30 0.12 0.10 0.34 0.00 0.06 0.08
#> TCGA.ZR.A9CJ.01     1  0.1741     0.7406 0.92 0.00 0.00 0.00 0.02 0.02 0.00 0.04
#> TCGA.R6.A8W8.01     4  0.6036     0.0504 0.00 0.00 0.26 0.46 0.00 0.00 0.16 0.12
#> TCGA.JY.A93E.01     2  0.1607     0.8850 0.00 0.92 0.00 0.00 0.04 0.00 0.00 0.04
#> TCGA.2H.A9GI.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GL.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NM.01     2  0.1275     0.8941 0.00 0.94 0.00 0.00 0.04 0.00 0.00 0.02
#> TCGA.JY.A93D.01     1  0.3880     0.3739 0.64 0.00 0.00 0.00 0.32 0.02 0.02 0.00
#> TCGA.L5.A4OX.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6Y2.01     5  0.5617     0.0581 0.20 0.00 0.00 0.02 0.60 0.04 0.12 0.02
#> TCGA.2H.A9GF.01     7  0.7721     0.1378 0.00 0.14 0.06 0.28 0.04 0.02 0.36 0.10
#> TCGA.2H.A9GO.01     1  0.2547     0.6903 0.84 0.00 0.00 0.00 0.00 0.04 0.00 0.12
#> TCGA.L5.A8NR.01     2  0.2807     0.7877 0.00 0.84 0.10 0.02 0.00 0.00 0.00 0.04
#> TCGA.L5.A4OU.01     5  0.4174     0.3406 0.00 0.40 0.00 0.00 0.54 0.00 0.00 0.06
#> TCGA.JY.A93C.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASX.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NT.01     2  0.1607     0.8850 0.00 0.92 0.00 0.00 0.04 0.00 0.00 0.04
#> TCGA.R6.A8WC.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.AA4D.01     5  0.6255    -0.1982 0.00 0.00 0.00 0.28 0.48 0.06 0.06 0.12
#> TCGA.2H.A9GM.01     3  0.1804     0.6664 0.00 0.00 0.90 0.08 0.02 0.00 0.00 0.00
#> TCGA.L5.A8NG.01     2  0.1887     0.8714 0.00 0.90 0.00 0.00 0.06 0.00 0.00 0.04
#> TCGA.IC.A6RE.01     4  0.6856     0.1357 0.00 0.02 0.16 0.50 0.08 0.00 0.10 0.14
#> TCGA.RE.A7BO.01     2  0.1887     0.8714 0.00 0.90 0.00 0.00 0.06 0.00 0.00 0.04
#> TCGA.L5.A8NJ.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A939.01     1  0.0000     0.7482 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A6F8.01     2  0.0000     0.9164 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EQ.01     5  0.5064     0.4516 0.00 0.24 0.08 0.00 0.60 0.00 0.00 0.08
#> TCGA.L5.A8NL.01     5  0.3991     0.4541 0.00 0.32 0.00 0.00 0.62 0.00 0.00 0.06
#> TCGA.2H.A9GH.01     2  0.4670    -0.1199 0.00 0.48 0.00 0.44 0.00 0.00 0.04 0.04

Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.

consensus_heatmap(res, k = 2)

plot of chunk tab-node-02-consensus-heatmap-1

consensus_heatmap(res, k = 3)

plot of chunk tab-node-02-consensus-heatmap-2

consensus_heatmap(res, k = 4)

plot of chunk tab-node-02-consensus-heatmap-3

consensus_heatmap(res, k = 5)

plot of chunk tab-node-02-consensus-heatmap-4

consensus_heatmap(res, k = 6)

plot of chunk tab-node-02-consensus-heatmap-5

consensus_heatmap(res, k = 7)

plot of chunk tab-node-02-consensus-heatmap-6

consensus_heatmap(res, k = 8)

plot of chunk tab-node-02-consensus-heatmap-7

Heatmaps for the membership of samples in all partitions to see how consistent they are:

membership_heatmap(res, k = 2)

plot of chunk tab-node-02-membership-heatmap-1

membership_heatmap(res, k = 3)

plot of chunk tab-node-02-membership-heatmap-2

membership_heatmap(res, k = 4)

plot of chunk tab-node-02-membership-heatmap-3

membership_heatmap(res, k = 5)

plot of chunk tab-node-02-membership-heatmap-4

membership_heatmap(res, k = 6)

plot of chunk tab-node-02-membership-heatmap-5

membership_heatmap(res, k = 7)

plot of chunk tab-node-02-membership-heatmap-6

membership_heatmap(res, k = 8)

plot of chunk tab-node-02-membership-heatmap-7

As soon as the classes for columns are determined, the signatures that are significantly different between subgroups can be looked for. Following are the heatmaps for signatures.

get_signatures(res, k = 2)

plot of chunk tab-node-02-get-signatures-1

get_signatures(res, k = 3)

plot of chunk tab-node-02-get-signatures-2

get_signatures(res, k = 4)

plot of chunk tab-node-02-get-signatures-3

get_signatures(res, k = 5)

plot of chunk tab-node-02-get-signatures-4

get_signatures(res, k = 6)

plot of chunk tab-node-02-get-signatures-5

get_signatures(res, k = 7)

plot of chunk tab-node-02-get-signatures-6

get_signatures(res, k = 8)

plot of chunk tab-node-02-get-signatures-7

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-02-signature_compare

get_signature() returns a data frame invisibly. To get the list of signatures, the function call should be assigned to a variable explicitly. In following code, if plot argument is set to FALSE, no heatmap is plotted while only the differential analysis is performed.

# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)

An example of the output of tb is:

#>   which_row         fdr    mean_1    mean_2 scaled_mean_1 scaled_mean_2 km
#> 1        38 0.042760348  8.373488  9.131774    -0.5533452     0.5164555  1
#> 2        40 0.018707592  7.106213  8.469186    -0.6173731     0.5762149  1
#> 3        55 0.019134737 10.221463 11.207825    -0.6159697     0.5749050  1
#> 4        59 0.006059896  5.921854  7.869574    -0.6899429     0.6439467  1
#> 5        60 0.018055526  8.928898 10.211722    -0.6204761     0.5791110  1
#> 6        98 0.009384629 15.714769 14.887706     0.6635654    -0.6193277  2
...

The columns in tb are:

  1. which_row: row indices corresponding to the input matrix.
  2. fdr: FDR for the differential test.
  3. mean_x: The mean value in group x.
  4. scaled_mean_x: The mean value in group x after rows are scaled.
  5. km: Row groups if k-means clustering is applied to rows (which is done by automatically selecting number of clusters).

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs:

# code only for demonstration
# e.g. to show the top 500 most significant rows
tb = get_signature(res, k = ..., top_signatures = 500)

If the signatures are defined as these which are uniquely high in current group, diff_method argument can be set to "uniquely_high_in_one_group":

# code only for demonstration
tb = get_signature(res, k = ..., diff_method = "uniquely_high_in_one_group")

UMAP plot which shows how samples are separated.

dimension_reduction(res, k = 2, method = "UMAP")

plot of chunk tab-node-02-dimension-reduction-1

dimension_reduction(res, k = 3, method = "UMAP")

plot of chunk tab-node-02-dimension-reduction-2

dimension_reduction(res, k = 4, method = "UMAP")

plot of chunk tab-node-02-dimension-reduction-3

dimension_reduction(res, k = 5, method = "UMAP")

plot of chunk tab-node-02-dimension-reduction-4

dimension_reduction(res, k = 6, method = "UMAP")

plot of chunk tab-node-02-dimension-reduction-5

dimension_reduction(res, k = 7, method = "UMAP")

plot of chunk tab-node-02-dimension-reduction-6

dimension_reduction(res, k = 8, method = "UMAP")

plot of chunk tab-node-02-dimension-reduction-7

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-02-collect-classes

If matrix rows can be associated to genes, consider to use functional_enrichment(res, ...) to perform function enrichment for the signature genes. See this vignette for more detailed explanations.


Node021

Parent node: Node02. Child nodes: Node0111-leaf , Node0112-leaf , Node0113-leaf , Node0121-leaf , Node0122-leaf , Node0123-leaf , Node0131-leaf , Node0132-leaf , Node0133-leaf , Node0211-leaf , Node0212-leaf , Node0221-leaf , Node0222 , Node0223-leaf , Node0231-leaf , Node0232-leaf , Node0233-leaf .

The object with results only for a single top-value method and a single partitioning method can be extracted as:

res = res_rh["021"]

A summary of res and all the functions that can be applied to it:

res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6, 7, 8.
#>   On a matrix with 30000 rows and 15 columns.
#>   Top rows (1000) are extracted by 'ATC' method.
#>   Subgroups are detected by 'kmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 2.
#> 
#> Following methods can be applied to this 'ConsensusPartition' object:
#>  [1] "cola_report"             "collect_classes"         "collect_plots"          
#>  [4] "collect_stats"           "colnames"                "compare_partitions"     
#>  [7] "compare_signatures"      "consensus_heatmap"       "dimension_reduction"    
#> [10] "functional_enrichment"   "get_anno_col"            "get_anno"               
#> [13] "get_classes"             "get_consensus"           "get_matrix"             
#> [16] "get_membership"          "get_param"               "get_signatures"         
#> [19] "get_stats"               "is_best_k"               "is_stable_k"            
#> [22] "membership_heatmap"      "ncol"                    "nrow"                   
#> [25] "plot_ecdf"               "predict_classes"         "rownames"               
#> [28] "select_partition_number" "show"                    "suggest_best_k"         
#> [31] "test_to_known_factors"   "top_rows_heatmap"

collect_plots() function collects all the plots made from res for all k (number of subgroups) into one single page to provide an easy and fast comparison between different k.

collect_plots(res)

plot of chunk node-021-collect-plots

The plots are:

All the plots in panels can be made by individual functions and they are plotted later in this section.

select_partition_number() produces several plots showing different statistics for choosing “optimized” k. There are following statistics:

The detailed explanations of these statistics can be found in the cola vignette.

Generally speaking, higher 1-PAC score, higher mean silhouette score or higher concordance corresponds to better partition. Rand index and Jaccard index measure how similar the current partition is compared to partition with k-1. If they are too similar, we won't accept k is better than k-1.

select_partition_number(res)

plot of chunk node-021-select-partition-number

The numeric values for all these statistics can be obtained by get_stats().

get_stats(res)
#>   k 1-PAC mean_silhouette concordance area_increased  Rand Jaccard
#> 2 2 1.000           1.000       1.000         0.5148 0.486   0.486
#> 3 3 0.781           0.856       0.923         0.3290 0.829   0.647
#> 4 4 0.838           0.917       0.887         0.1250 0.914   0.727
#> 5 5 0.762           0.924       0.876         0.0617 0.924   0.667
#> 6 6 0.829           0.847       0.869         0.0518 1.000   1.000
#> 7 7 0.886           0.574       0.796         0.0279 0.971   0.812
#> 8 8 0.876           0.726       0.785         0.0323 0.952   0.643

suggest_best_k() suggests the best \(k\) based on these statistics. The rules are as follows:

suggest_best_k(res)
#> [1] 2

Following is the table of the partitions (You need to click the show/hide code output link to see it). The membership matrix (columns with name p*) is inferred by clue::cl_consensus() function with the SE method. Basically the value in the membership matrix represents the probability to belong to a certain group. The finall subgroup label for an item is determined with the group with highest probability it belongs to.

In get_classes() function, the entropy is calculated from the membership matrix and the silhouette score is calculated from the consensus matrix.

show/hide code output

cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#>                 class entropy silhouette p1 p2
#> TCGA.L5.A4OF.01     1       0          1  1  0
#> TCGA.R6.A6L4.01     2       0          1  0  1
#> TCGA.L5.A4OO.01     2       0          1  0  1
#> TCGA.L5.A43C.01     2       0          1  0  1
#> TCGA.R6.A6KZ.01     1       0          1  1  0
#> TCGA.L5.A8NN.01     1       0          1  1  0
#> TCGA.R6.A8WG.01     1       0          1  1  0
#> TCGA.R6.A6L6.01     2       0          1  0  1
#> TCGA.L5.A8NU.01     2       0          1  0  1
#> TCGA.R6.A6XQ.01     1       0          1  1  0
#> TCGA.ZR.A9CJ.01     2       0          1  0  1
#> TCGA.JY.A93D.01     2       0          1  0  1
#> TCGA.R6.A6Y2.01     2       0          1  0  1
#> TCGA.2H.A9GO.01     1       0          1  1  0
#> TCGA.JY.A939.01     2       0          1  0  1

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette   p1   p2   p3
#> TCGA.L5.A4OF.01     1   0.000      0.779 1.00 0.00 0.00
#> TCGA.R6.A6L4.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.L5.A4OO.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.L5.A43C.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.R6.A6KZ.01     1   0.153      0.741 0.96 0.00 0.04
#> TCGA.L5.A8NN.01     1   0.540      0.806 0.72 0.00 0.28
#> TCGA.R6.A8WG.01     1   0.540      0.806 0.72 0.00 0.28
#> TCGA.R6.A6L6.01     3   0.540      0.551 0.00 0.28 0.72
#> TCGA.L5.A8NU.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.R6.A6XQ.01     1   0.540      0.806 0.72 0.00 0.28
#> TCGA.ZR.A9CJ.01     3   0.540      0.787 0.28 0.00 0.72
#> TCGA.JY.A93D.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.R6.A6Y2.01     3   0.540      0.787 0.28 0.00 0.72
#> TCGA.2H.A9GO.01     1   0.000      0.779 1.00 0.00 0.00
#> TCGA.JY.A939.01     2   0.000      1.000 0.00 1.00 0.00

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2   p3  p4
#> TCGA.L5.A4OF.01     1   0.000      0.965 1.00 0.00 0.00 0.0
#> TCGA.R6.A6L4.01     2   0.551      0.740 0.00 0.66 0.04 0.3
#> TCGA.L5.A4OO.01     2   0.000      0.879 0.00 1.00 0.00 0.0
#> TCGA.L5.A43C.01     2   0.000      0.879 0.00 1.00 0.00 0.0
#> TCGA.R6.A6KZ.01     1   0.121      0.932 0.96 0.00 0.04 0.0
#> TCGA.L5.A8NN.01     4   0.441      1.000 0.30 0.00 0.00 0.7
#> TCGA.R6.A8WG.01     4   0.441      1.000 0.30 0.00 0.00 0.7
#> TCGA.R6.A6L6.01     3   0.121      0.947 0.00 0.04 0.96 0.0
#> TCGA.L5.A8NU.01     2   0.000      0.879 0.00 1.00 0.00 0.0
#> TCGA.R6.A6XQ.01     4   0.441      1.000 0.30 0.00 0.00 0.7
#> TCGA.ZR.A9CJ.01     3   0.121      0.973 0.04 0.00 0.96 0.0
#> TCGA.JY.A93D.01     2   0.000      0.879 0.00 1.00 0.00 0.0
#> TCGA.R6.A6Y2.01     3   0.121      0.973 0.04 0.00 0.96 0.0
#> TCGA.2H.A9GO.01     1   0.000      0.965 1.00 0.00 0.00 0.0
#> TCGA.JY.A939.01     2   0.551      0.740 0.00 0.66 0.04 0.3

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1   p2   p3   p4   p5
#> TCGA.L5.A4OF.01     1  0.0000      0.965 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6L4.01     5  0.0000      0.959 0.00 0.00 0.00 0.00 1.00
#> TCGA.L5.A4OO.01     2  0.5861      0.903 0.00 0.50 0.00 0.10 0.40
#> TCGA.L5.A43C.01     2  0.4182      0.903 0.00 0.60 0.00 0.00 0.40
#> TCGA.R6.A6KZ.01     1  0.1732      0.929 0.92 0.08 0.00 0.00 0.00
#> TCGA.L5.A8NN.01     4  0.5258      0.838 0.14 0.18 0.00 0.68 0.00
#> TCGA.R6.A8WG.01     4  0.2516      0.922 0.14 0.00 0.00 0.86 0.00
#> TCGA.R6.A6L6.01     3  0.0000      0.947 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NU.01     2  0.4182      0.903 0.00 0.60 0.00 0.00 0.40
#> TCGA.R6.A6XQ.01     4  0.2516      0.922 0.14 0.00 0.00 0.86 0.00
#> TCGA.ZR.A9CJ.01     3  0.2280      0.905 0.00 0.12 0.88 0.00 0.00
#> TCGA.JY.A93D.01     2  0.5861      0.903 0.00 0.50 0.00 0.10 0.40
#> TCGA.R6.A6Y2.01     3  0.0609      0.944 0.00 0.02 0.98 0.00 0.00
#> TCGA.2H.A9GO.01     1  0.0000      0.965 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A939.01     5  0.1043      0.959 0.00 0.00 0.00 0.04 0.96

show/hide code output

cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6
#> TCGA.L5.A4OF.01     1  0.1556      0.897 0.92 0.00 0.00 0.00 0.00 0.08
#> TCGA.R6.A6L4.01     5  0.2048      0.940 0.00 0.12 0.00 0.00 0.88 0.00
#> TCGA.L5.A4OO.01     2  0.4172      0.769 0.04 0.68 0.00 0.28 0.00 0.00
#> TCGA.L5.A43C.01     2  0.0000      0.782 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6KZ.01     1  0.5256      0.784 0.68 0.00 0.00 0.18 0.06 0.08
#> TCGA.L5.A8NN.01     6  0.0000      0.728 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.R6.A8WG.01     6  0.3409      0.872 0.00 0.00 0.00 0.30 0.00 0.70
#> TCGA.R6.A6L6.01     3  0.0547      0.915 0.00 0.00 0.98 0.00 0.02 0.00
#> TCGA.L5.A8NU.01     2  0.0000      0.782 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6XQ.01     6  0.3409      0.872 0.00 0.00 0.00 0.30 0.00 0.70
#> TCGA.ZR.A9CJ.01     3  0.3163      0.850 0.00 0.00 0.82 0.14 0.04 0.00
#> TCGA.JY.A93D.01     2  0.3499      0.769 0.00 0.68 0.00 0.32 0.00 0.00
#> TCGA.R6.A6Y2.01     3  0.0547      0.911 0.00 0.00 0.98 0.02 0.00 0.00
#> TCGA.2H.A9GO.01     1  0.1556      0.897 0.92 0.00 0.00 0.00 0.00 0.08
#> TCGA.JY.A939.01     5  0.3854      0.940 0.04 0.12 0.00 0.04 0.80 0.00

show/hide code output

cbind(get_classes(res, k = 7), get_membership(res, k = 7))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7
#> TCGA.L5.A4OF.01     1  0.0863      0.806 0.96 0.00 0.00 0.00 0.00 0.04 0.00
#> TCGA.R6.A6L4.01     5  0.1433      0.811 0.00 0.08 0.00 0.00 0.92 0.00 0.00
#> TCGA.L5.A4OO.01     2  0.1664      0.439 0.02 0.92 0.00 0.00 0.00 0.00 0.06
#> TCGA.L5.A43C.01     4  0.3562      0.000 0.00 0.50 0.00 0.50 0.00 0.00 0.00
#> TCGA.R6.A6KZ.01     1  0.6222      0.611 0.54 0.00 0.00 0.10 0.06 0.04 0.26
#> TCGA.L5.A8NN.01     6  0.3795      0.752 0.00 0.00 0.00 0.22 0.00 0.72 0.06
#> TCGA.R6.A8WG.01     6  0.0504      0.876 0.00 0.00 0.00 0.00 0.00 0.98 0.02
#> TCGA.R6.A6L6.01     3  0.3358      0.807 0.00 0.00 0.64 0.00 0.00 0.00 0.36
#> TCGA.L5.A8NU.01     2  0.4923     -0.877 0.02 0.50 0.00 0.42 0.00 0.00 0.06
#> TCGA.R6.A6XQ.01     6  0.0000      0.876 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.ZR.A9CJ.01     3  0.0000      0.659 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A93D.01     2  0.0000      0.439 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6Y2.01     3  0.4175      0.793 0.00 0.00 0.58 0.04 0.00 0.00 0.38
#> TCGA.2H.A9GO.01     1  0.1860      0.806 0.92 0.00 0.00 0.02 0.02 0.04 0.00
#> TCGA.JY.A939.01     5  0.5001      0.811 0.00 0.08 0.00 0.12 0.68 0.00 0.12

show/hide code output

cbind(get_classes(res, k = 8), get_membership(res, k = 8))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7   p8
#> TCGA.L5.A4OF.01     1  0.0000      0.862 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6L4.01     5  0.0471      0.772 0.00 0.02 0.00 0.00 0.98 0.00 0.00 0.00
#> TCGA.L5.A4OO.01     2  0.0000      0.942 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43C.01     4  0.4971      0.845 0.00 0.22 0.00 0.62 0.00 0.08 0.08 0.00
#> TCGA.R6.A6KZ.01     7  0.3333      0.000 0.50 0.00 0.00 0.00 0.00 0.00 0.50 0.00
#> TCGA.L5.A8NN.01     8  0.3272      0.598 0.00 0.00 0.00 0.00 0.00 0.42 0.00 0.58
#> TCGA.R6.A8WG.01     8  0.0471      0.809 0.00 0.00 0.00 0.02 0.00 0.00 0.00 0.98
#> TCGA.R6.A6L6.01     3  0.3586      0.687 0.00 0.00 0.78 0.06 0.00 0.12 0.04 0.00
#> TCGA.L5.A8NU.01     4  0.2534      0.845 0.00 0.22 0.00 0.78 0.00 0.00 0.00 0.00
#> TCGA.R6.A6XQ.01     8  0.0000      0.809 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.ZR.A9CJ.01     3  0.5981      0.491 0.00 0.00 0.38 0.06 0.00 0.24 0.32 0.00
#> TCGA.JY.A93D.01     2  0.1091      0.942 0.00 0.94 0.00 0.00 0.00 0.00 0.06 0.00
#> TCGA.R6.A6Y2.01     3  0.0000      0.652 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GO.01     1  0.1741      0.862 0.92 0.00 0.00 0.02 0.02 0.04 0.00 0.00
#> TCGA.JY.A939.01     5  0.4492      0.772 0.00 0.02 0.00 0.06 0.70 0.18 0.04 0.00

Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.

consensus_heatmap(res, k = 2)

plot of chunk tab-node-021-consensus-heatmap-1

consensus_heatmap(res, k = 3)

plot of chunk tab-node-021-consensus-heatmap-2

consensus_heatmap(res, k = 4)

plot of chunk tab-node-021-consensus-heatmap-3

consensus_heatmap(res, k = 5)

plot of chunk tab-node-021-consensus-heatmap-4

consensus_heatmap(res, k = 6)

plot of chunk tab-node-021-consensus-heatmap-5

consensus_heatmap(res, k = 7)

plot of chunk tab-node-021-consensus-heatmap-6

consensus_heatmap(res, k = 8)

plot of chunk tab-node-021-consensus-heatmap-7

Heatmaps for the membership of samples in all partitions to see how consistent they are:

membership_heatmap(res, k = 2)

plot of chunk tab-node-021-membership-heatmap-1

membership_heatmap(res, k = 3)

plot of chunk tab-node-021-membership-heatmap-2

membership_heatmap(res, k = 4)

plot of chunk tab-node-021-membership-heatmap-3

membership_heatmap(res, k = 5)

plot of chunk tab-node-021-membership-heatmap-4

membership_heatmap(res, k = 6)

plot of chunk tab-node-021-membership-heatmap-5

membership_heatmap(res, k = 7)

plot of chunk tab-node-021-membership-heatmap-6

membership_heatmap(res, k = 8)

plot of chunk tab-node-021-membership-heatmap-7

As soon as the classes for columns are determined, the signatures that are significantly different between subgroups can be looked for. Following are the heatmaps for signatures.

get_signatures(res, k = 2)

plot of chunk tab-node-021-get-signatures-1

get_signatures(res, k = 3)

plot of chunk tab-node-021-get-signatures-2

get_signatures(res, k = 4)

plot of chunk tab-node-021-get-signatures-3

get_signatures(res, k = 5)

plot of chunk tab-node-021-get-signatures-4

get_signatures(res, k = 6)

plot of chunk tab-node-021-get-signatures-5

get_signatures(res, k = 7)

plot of chunk tab-node-021-get-signatures-6

get_signatures(res, k = 8)

plot of chunk tab-node-021-get-signatures-7

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-021-signature_compare

get_signature() returns a data frame invisibly. To get the list of signatures, the function call should be assigned to a variable explicitly. In following code, if plot argument is set to FALSE, no heatmap is plotted while only the differential analysis is performed.

# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)

An example of the output of tb is:

#>   which_row         fdr    mean_1    mean_2 scaled_mean_1 scaled_mean_2 km
#> 1        38 0.042760348  8.373488  9.131774    -0.5533452     0.5164555  1
#> 2        40 0.018707592  7.106213  8.469186    -0.6173731     0.5762149  1
#> 3        55 0.019134737 10.221463 11.207825    -0.6159697     0.5749050  1
#> 4        59 0.006059896  5.921854  7.869574    -0.6899429     0.6439467  1
#> 5        60 0.018055526  8.928898 10.211722    -0.6204761     0.5791110  1
#> 6        98 0.009384629 15.714769 14.887706     0.6635654    -0.6193277  2
...

The columns in tb are:

  1. which_row: row indices corresponding to the input matrix.
  2. fdr: FDR for the differential test.
  3. mean_x: The mean value in group x.
  4. scaled_mean_x: The mean value in group x after rows are scaled.
  5. km: Row groups if k-means clustering is applied to rows (which is done by automatically selecting number of clusters).

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs:

# code only for demonstration
# e.g. to show the top 500 most significant rows
tb = get_signature(res, k = ..., top_signatures = 500)

If the signatures are defined as these which are uniquely high in current group, diff_method argument can be set to "uniquely_high_in_one_group":

# code only for demonstration
tb = get_signature(res, k = ..., diff_method = "uniquely_high_in_one_group")

UMAP plot which shows how samples are separated.

dimension_reduction(res, k = 2, method = "UMAP")

plot of chunk tab-node-021-dimension-reduction-1

dimension_reduction(res, k = 3, method = "UMAP")

plot of chunk tab-node-021-dimension-reduction-2

dimension_reduction(res, k = 4, method = "UMAP")

plot of chunk tab-node-021-dimension-reduction-3

dimension_reduction(res, k = 5, method = "UMAP")

plot of chunk tab-node-021-dimension-reduction-4

dimension_reduction(res, k = 6, method = "UMAP")

plot of chunk tab-node-021-dimension-reduction-5

dimension_reduction(res, k = 7, method = "UMAP")

plot of chunk tab-node-021-dimension-reduction-6

dimension_reduction(res, k = 8, method = "UMAP")

plot of chunk tab-node-021-dimension-reduction-7

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-021-collect-classes

If matrix rows can be associated to genes, consider to use functional_enrichment(res, ...) to perform function enrichment for the signature genes. See this vignette for more detailed explanations.


Node022

Parent node: Node02. Child nodes: Node0111-leaf , Node0112-leaf , Node0113-leaf , Node0121-leaf , Node0122-leaf , Node0123-leaf , Node0131-leaf , Node0132-leaf , Node0133-leaf , Node0211-leaf , Node0212-leaf , Node0221-leaf , Node0222 , Node0223-leaf , Node0231-leaf , Node0232-leaf , Node0233-leaf .

The object with results only for a single top-value method and a single partitioning method can be extracted as:

res = res_rh["022"]

A summary of res and all the functions that can be applied to it:

res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6, 7, 8.
#>   On a matrix with 30000 rows and 46 columns.
#>   Top rows (1000) are extracted by 'ATC' method.
#>   Subgroups are detected by 'kmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 3.
#> 
#> Following methods can be applied to this 'ConsensusPartition' object:
#>  [1] "cola_report"             "collect_classes"         "collect_plots"          
#>  [4] "collect_stats"           "colnames"                "compare_partitions"     
#>  [7] "compare_signatures"      "consensus_heatmap"       "dimension_reduction"    
#> [10] "functional_enrichment"   "get_anno_col"            "get_anno"               
#> [13] "get_classes"             "get_consensus"           "get_matrix"             
#> [16] "get_membership"          "get_param"               "get_signatures"         
#> [19] "get_stats"               "is_best_k"               "is_stable_k"            
#> [22] "membership_heatmap"      "ncol"                    "nrow"                   
#> [25] "plot_ecdf"               "predict_classes"         "rownames"               
#> [28] "select_partition_number" "show"                    "suggest_best_k"         
#> [31] "test_to_known_factors"   "top_rows_heatmap"

collect_plots() function collects all the plots made from res for all k (number of subgroups) into one single page to provide an easy and fast comparison between different k.

collect_plots(res)

plot of chunk node-022-collect-plots

The plots are:

All the plots in panels can be made by individual functions and they are plotted later in this section.

select_partition_number() produces several plots showing different statistics for choosing “optimized” k. There are following statistics:

The detailed explanations of these statistics can be found in the cola vignette.

Generally speaking, higher 1-PAC score, higher mean silhouette score or higher concordance corresponds to better partition. Rand index and Jaccard index measure how similar the current partition is compared to partition with k-1. If they are too similar, we won't accept k is better than k-1.

select_partition_number(res)

plot of chunk node-022-select-partition-number

The numeric values for all these statistics can be obtained by get_stats().

get_stats(res)
#>   k 1-PAC mean_silhouette concordance area_increased  Rand Jaccard
#> 2 2 1.000           1.000       1.000         0.5077 0.493   0.493
#> 3 3 1.000           0.974       0.990         0.1794 0.662   0.450
#> 4 4 0.684           0.849       0.899         0.2198 0.826   0.584
#> 5 5 0.786           0.758       0.862         0.0726 0.933   0.752
#> 6 6 0.807           0.714       0.843         0.0374 0.970   0.856
#> 7 7 0.764           0.658       0.780         0.0266 0.934   0.675
#> 8 8 0.788           0.539       0.788         0.0217 0.991   0.944

suggest_best_k() suggests the best \(k\) based on these statistics. The rules are as follows:

suggest_best_k(res)
#> [1] 3
#> attr(,"optional")
#> [1] 2

There is also optional best \(k\) = 2 that is worth to check.

Following is the table of the partitions (You need to click the show/hide code output link to see it). The membership matrix (columns with name p*) is inferred by clue::cl_consensus() function with the SE method. Basically the value in the membership matrix represents the probability to belong to a certain group. The finall subgroup label for an item is determined with the group with highest probability it belongs to.

In get_classes() function, the entropy is calculated from the membership matrix and the silhouette score is calculated from the consensus matrix.

show/hide code output

cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#>                 class entropy silhouette p1 p2
#> TCGA.JY.A6FB.01     1       0          1  1  0
#> TCGA.Q9.A6FW.01     2       0          1  0  1
#> TCGA.S8.A6BV.01     2       0          1  0  1
#> TCGA.L5.A4OI.01     1       0          1  1  0
#> TCGA.R6.A6DN.01     2       0          1  0  1
#> TCGA.L5.A4OG.01     2       0          1  0  1
#> TCGA.L5.A43E.01     1       0          1  1  0
#> TCGA.X8.AAAR.01     2       0          1  0  1
#> TCGA.L5.A4ON.01     1       0          1  1  0
#> TCGA.V5.AASW.01     1       0          1  1  0
#> TCGA.L5.A4OJ.01     1       0          1  1  0
#> TCGA.L7.A6VZ.01     1       0          1  1  0
#> TCGA.L5.A4OE.01     1       0          1  1  0
#> TCGA.V5.A7RB.01     2       0          1  0  1
#> TCGA.R6.A6DQ.01     1       0          1  1  0
#> TCGA.L5.A88Y.01     1       0          1  1  0
#> TCGA.L5.A88V.01     2       0          1  0  1
#> TCGA.M9.A5M8.01     2       0          1  0  1
#> TCGA.L5.A4OW.01     2       0          1  0  1
#> TCGA.2H.A9GK.01     2       0          1  0  1
#> TCGA.L5.A8NW.01     1       0          1  1  0
#> TCGA.2H.A9GR.01     2       0          1  0  1
#> TCGA.L5.A8NV.01     2       0          1  0  1
#> TCGA.L5.A8NS.01     2       0          1  0  1
#> TCGA.JY.A938.01     2       0          1  0  1
#> TCGA.V5.AASX.11     1       0          1  1  0
#> TCGA.L5.A893.01     2       0          1  0  1
#> TCGA.L5.A4OT.01     1       0          1  1  0
#> TCGA.JY.A93E.01     2       0          1  0  1
#> TCGA.2H.A9GI.01     2       0          1  0  1
#> TCGA.2H.A9GL.01     1       0          1  1  0
#> TCGA.L5.A8NM.01     2       0          1  0  1
#> TCGA.L5.A4OX.01     1       0          1  1  0
#> TCGA.L5.A8NR.01     2       0          1  0  1
#> TCGA.L5.A4OU.01     2       0          1  0  1
#> TCGA.JY.A93C.01     2       0          1  0  1
#> TCGA.V5.AASX.01     1       0          1  1  0
#> TCGA.L5.A8NT.01     2       0          1  0  1
#> TCGA.R6.A8WC.01     1       0          1  1  0
#> TCGA.L5.A8NG.01     2       0          1  0  1
#> TCGA.RE.A7BO.01     1       0          1  1  0
#> TCGA.L5.A8NJ.01     1       0          1  1  0
#> TCGA.JY.A6F8.01     1       0          1  1  0
#> TCGA.VR.A8EQ.01     2       0          1  0  1
#> TCGA.L5.A8NL.01     2       0          1  0  1
#> TCGA.2H.A9GH.01     1       0          1  1  0

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette   p1   p2   p3
#> TCGA.JY.A6FB.01     1  0.0000      0.960 1.00 0.00 0.00
#> TCGA.Q9.A6FW.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.S8.A6BV.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.L5.A4OI.01     1  0.5948      0.443 0.64 0.36 0.00
#> TCGA.R6.A6DN.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.L5.A4OG.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.L5.A43E.01     1  0.0000      0.960 1.00 0.00 0.00
#> TCGA.X8.AAAR.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.L5.A4ON.01     1  0.0000      0.960 1.00 0.00 0.00
#> TCGA.V5.AASW.01     1  0.0000      0.960 1.00 0.00 0.00
#> TCGA.L5.A4OJ.01     1  0.0000      0.960 1.00 0.00 0.00
#> TCGA.L7.A6VZ.01     1  0.0000      0.960 1.00 0.00 0.00
#> TCGA.L5.A4OE.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.V5.A7RB.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.R6.A6DQ.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.L5.A88Y.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.L5.A88V.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.M9.A5M8.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.L5.A4OW.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.2H.A9GK.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.L5.A8NW.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.2H.A9GR.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.L5.A8NV.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.L5.A8NS.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.JY.A938.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.V5.AASX.11     1  0.0000      0.960 1.00 0.00 0.00
#> TCGA.L5.A893.01     2  0.0892      0.981 0.00 0.98 0.02
#> TCGA.L5.A4OT.01     1  0.0000      0.960 1.00 0.00 0.00
#> TCGA.JY.A93E.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.2H.A9GI.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.2H.A9GL.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.L5.A8NM.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.L5.A4OX.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.L5.A8NR.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.L5.A4OU.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.JY.A93C.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.V5.AASX.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.L5.A8NT.01     2  0.0892      0.981 0.00 0.98 0.02
#> TCGA.R6.A8WC.01     1  0.0000      0.960 1.00 0.00 0.00
#> TCGA.L5.A8NG.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.RE.A7BO.01     1  0.0892      0.939 0.98 0.02 0.00
#> TCGA.L5.A8NJ.01     1  0.0000      0.960 1.00 0.00 0.00
#> TCGA.JY.A6F8.01     1  0.0000      0.960 1.00 0.00 0.00
#> TCGA.VR.A8EQ.01     2  0.0000      0.997 0.00 1.00 0.00
#> TCGA.L5.A8NL.01     2  0.0892      0.981 0.00 0.98 0.02
#> TCGA.2H.A9GH.01     1  0.0000      0.960 1.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2   p3   p4
#> TCGA.JY.A6FB.01     1  0.3172      0.849 0.84 0.00 0.00 0.16
#> TCGA.Q9.A6FW.01     3  0.2706      0.907 0.00 0.08 0.90 0.02
#> TCGA.S8.A6BV.01     3  0.0000      0.980 0.00 0.00 1.00 0.00
#> TCGA.L5.A4OI.01     4  0.4227      0.822 0.12 0.06 0.00 0.82
#> TCGA.R6.A6DN.01     2  0.4406      0.706 0.00 0.70 0.00 0.30
#> TCGA.L5.A4OG.01     2  0.3610      0.726 0.00 0.80 0.00 0.20
#> TCGA.L5.A43E.01     1  0.0000      0.892 1.00 0.00 0.00 0.00
#> TCGA.X8.AAAR.01     3  0.0707      0.976 0.00 0.00 0.98 0.02
#> TCGA.L5.A4ON.01     1  0.0000      0.892 1.00 0.00 0.00 0.00
#> TCGA.V5.AASW.01     1  0.3172      0.849 0.84 0.00 0.00 0.16
#> TCGA.L5.A4OJ.01     1  0.0000      0.892 1.00 0.00 0.00 0.00
#> TCGA.L7.A6VZ.01     1  0.2921      0.858 0.86 0.00 0.00 0.14
#> TCGA.L5.A4OE.01     4  0.3400      0.887 0.00 0.18 0.00 0.82
#> TCGA.V5.A7RB.01     3  0.0000      0.980 0.00 0.00 1.00 0.00
#> TCGA.R6.A6DQ.01     4  0.3400      0.887 0.00 0.18 0.00 0.82
#> TCGA.L5.A88Y.01     4  0.3400      0.887 0.00 0.18 0.00 0.82
#> TCGA.L5.A88V.01     3  0.0707      0.976 0.00 0.00 0.98 0.02
#> TCGA.M9.A5M8.01     2  0.1637      0.836 0.00 0.94 0.00 0.06
#> TCGA.L5.A4OW.01     2  0.3610      0.726 0.00 0.80 0.00 0.20
#> TCGA.2H.A9GK.01     2  0.0707      0.868 0.00 0.98 0.02 0.00
#> TCGA.L5.A8NW.01     4  0.1211      0.818 0.00 0.04 0.00 0.96
#> TCGA.2H.A9GR.01     2  0.0707      0.868 0.00 0.98 0.02 0.00
#> TCGA.L5.A8NV.01     2  0.0707      0.868 0.00 0.98 0.02 0.00
#> TCGA.L5.A8NS.01     2  0.0707      0.868 0.00 0.98 0.02 0.00
#> TCGA.JY.A938.01     3  0.0000      0.980 0.00 0.00 1.00 0.00
#> TCGA.V5.AASX.11     1  0.0000      0.892 1.00 0.00 0.00 0.00
#> TCGA.L5.A893.01     2  0.0707      0.868 0.00 0.98 0.02 0.00
#> TCGA.L5.A4OT.01     1  0.3172      0.849 0.84 0.00 0.00 0.16
#> TCGA.JY.A93E.01     2  0.0707      0.861 0.00 0.98 0.00 0.02
#> TCGA.2H.A9GI.01     2  0.4713      0.646 0.00 0.64 0.00 0.36
#> TCGA.2H.A9GL.01     4  0.1637      0.856 0.00 0.06 0.00 0.94
#> TCGA.L5.A8NM.01     2  0.0707      0.868 0.00 0.98 0.02 0.00
#> TCGA.L5.A4OX.01     4  0.3400      0.887 0.00 0.18 0.00 0.82
#> TCGA.L5.A8NR.01     2  0.4713      0.646 0.00 0.64 0.00 0.36
#> TCGA.L5.A4OU.01     3  0.0000      0.980 0.00 0.00 1.00 0.00
#> TCGA.JY.A93C.01     2  0.4406      0.706 0.00 0.70 0.00 0.30
#> TCGA.V5.AASX.01     4  0.3400      0.887 0.00 0.18 0.00 0.82
#> TCGA.L5.A8NT.01     2  0.3853      0.778 0.00 0.82 0.02 0.16
#> TCGA.R6.A8WC.01     1  0.0000      0.892 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NG.01     2  0.0000      0.864 0.00 1.00 0.00 0.00
#> TCGA.RE.A7BO.01     4  0.4088      0.797 0.14 0.04 0.00 0.82
#> TCGA.L5.A8NJ.01     1  0.4713      0.535 0.64 0.00 0.00 0.36
#> TCGA.JY.A6F8.01     1  0.0000      0.892 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EQ.01     2  0.0707      0.868 0.00 0.98 0.02 0.00
#> TCGA.L5.A8NL.01     2  0.0707      0.868 0.00 0.98 0.02 0.00
#> TCGA.2H.A9GH.01     4  0.1411      0.808 0.02 0.02 0.00 0.96

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1   p2   p3   p4   p5
#> TCGA.JY.A6FB.01     1  0.3390     0.8644 0.84 0.00 0.00 0.10 0.06
#> TCGA.Q9.A6FW.01     3  0.5355     0.6399 0.00 0.22 0.66 0.00 0.12
#> TCGA.S8.A6BV.01     3  0.0000     0.9198 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OI.01     4  0.2249     0.8716 0.02 0.02 0.00 0.92 0.04
#> TCGA.R6.A6DN.01     5  0.4990     0.6732 0.00 0.36 0.00 0.04 0.60
#> TCGA.L5.A4OG.01     2  0.6133    -0.1825 0.00 0.54 0.00 0.16 0.30
#> TCGA.L5.A43E.01     1  0.0000     0.8788 1.00 0.00 0.00 0.00 0.00
#> TCGA.X8.AAAR.01     3  0.1732     0.9008 0.00 0.00 0.92 0.00 0.08
#> TCGA.L5.A4ON.01     1  0.0000     0.8788 1.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASW.01     1  0.5130     0.7925 0.68 0.00 0.00 0.10 0.22
#> TCGA.L5.A4OJ.01     1  0.0000     0.8788 1.00 0.00 0.00 0.00 0.00
#> TCGA.L7.A6VZ.01     1  0.3110     0.8708 0.86 0.00 0.00 0.08 0.06
#> TCGA.L5.A4OE.01     4  0.1410     0.8954 0.00 0.06 0.00 0.94 0.00
#> TCGA.V5.A7RB.01     3  0.0000     0.9198 0.00 0.00 1.00 0.00 0.00
#> TCGA.R6.A6DQ.01     4  0.1410     0.8954 0.00 0.06 0.00 0.94 0.00
#> TCGA.L5.A88Y.01     4  0.1043     0.9009 0.00 0.04 0.00 0.96 0.00
#> TCGA.L5.A88V.01     3  0.2873     0.8790 0.00 0.00 0.86 0.02 0.12
#> TCGA.M9.A5M8.01     2  0.3291     0.6782 0.00 0.84 0.00 0.12 0.04
#> TCGA.L5.A4OW.01     2  0.6200    -0.1566 0.00 0.54 0.00 0.18 0.28
#> TCGA.2H.A9GK.01     2  0.0609     0.8371 0.00 0.98 0.00 0.00 0.02
#> TCGA.L5.A8NW.01     4  0.4227     0.1525 0.00 0.00 0.00 0.58 0.42
#> TCGA.2H.A9GR.01     2  0.0000     0.8469 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NV.01     2  0.0000     0.8469 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NS.01     2  0.0000     0.8469 0.00 1.00 0.00 0.00 0.00
#> TCGA.JY.A938.01     3  0.0000     0.9198 0.00 0.00 1.00 0.00 0.00
#> TCGA.V5.AASX.11     1  0.0000     0.8788 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A893.01     2  0.1043     0.8324 0.00 0.96 0.00 0.00 0.04
#> TCGA.L5.A4OT.01     1  0.3390     0.8644 0.84 0.00 0.00 0.10 0.06
#> TCGA.JY.A93E.01     2  0.0000     0.8469 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GI.01     5  0.5700     0.7238 0.00 0.28 0.00 0.12 0.60
#> TCGA.2H.A9GL.01     4  0.2012     0.8770 0.00 0.02 0.00 0.92 0.06
#> TCGA.L5.A8NM.01     2  0.0000     0.8469 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OX.01     4  0.1043     0.9009 0.00 0.04 0.00 0.96 0.00
#> TCGA.L5.A8NR.01     5  0.5700     0.7238 0.00 0.28 0.00 0.12 0.60
#> TCGA.L5.A4OU.01     3  0.0000     0.9198 0.00 0.00 1.00 0.00 0.00
#> TCGA.JY.A93C.01     5  0.5048     0.6568 0.00 0.38 0.00 0.04 0.58
#> TCGA.V5.AASX.01     4  0.1410     0.8954 0.00 0.06 0.00 0.94 0.00
#> TCGA.L5.A8NT.01     2  0.3109     0.5985 0.00 0.80 0.00 0.00 0.20
#> TCGA.R6.A8WC.01     1  0.4254     0.8108 0.74 0.00 0.00 0.04 0.22
#> TCGA.L5.A8NG.01     2  0.0000     0.8469 0.00 1.00 0.00 0.00 0.00
#> TCGA.RE.A7BO.01     4  0.1216     0.8894 0.02 0.02 0.00 0.96 0.00
#> TCGA.L5.A8NJ.01     1  0.5791     0.7181 0.60 0.00 0.00 0.14 0.26
#> TCGA.JY.A6F8.01     1  0.0000     0.8788 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EQ.01     2  0.0609     0.8367 0.00 0.98 0.00 0.00 0.02
#> TCGA.L5.A8NL.01     2  0.0609     0.8371 0.00 0.98 0.00 0.00 0.02
#> TCGA.2H.A9GH.01     5  0.4613     0.0497 0.02 0.00 0.00 0.36 0.62

show/hide code output

cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6
#> TCGA.JY.A6FB.01     1  0.3688     0.7395 0.80 0.00 0.00 0.02 0.04 0.14
#> TCGA.Q9.A6FW.01     3  0.5428     0.4910 0.00 0.32 0.54 0.00 0.14 0.00
#> TCGA.S8.A6BV.01     3  0.1267     0.8627 0.00 0.00 0.94 0.00 0.06 0.00
#> TCGA.L5.A4OI.01     4  0.2790     0.8004 0.00 0.00 0.00 0.84 0.14 0.02
#> TCGA.R6.A6DN.01     5  0.6294     0.9096 0.00 0.18 0.00 0.04 0.52 0.26
#> TCGA.L5.A4OG.01     2  0.7411    -0.2527 0.00 0.38 0.00 0.24 0.14 0.24
#> TCGA.L5.A43E.01     1  0.0000     0.8615 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X8.AAAR.01     3  0.2048     0.8497 0.00 0.00 0.88 0.00 0.12 0.00
#> TCGA.L5.A4ON.01     1  0.0547     0.8569 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.V5.AASW.01     6  0.3864     0.4319 0.48 0.00 0.00 0.00 0.00 0.52
#> TCGA.L5.A4OJ.01     1  0.0000     0.8615 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L7.A6VZ.01     1  0.3688     0.7395 0.80 0.00 0.00 0.02 0.04 0.14
#> TCGA.L5.A4OE.01     4  0.0000     0.8752 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.V5.A7RB.01     3  0.0000     0.8677 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.R6.A6DQ.01     4  0.1480     0.8606 0.00 0.00 0.00 0.94 0.02 0.04
#> TCGA.L5.A88Y.01     4  0.0937     0.8652 0.00 0.00 0.00 0.96 0.00 0.04
#> TCGA.L5.A88V.01     3  0.4607     0.7658 0.00 0.02 0.72 0.00 0.18 0.08
#> TCGA.M9.A5M8.01     2  0.4703     0.5742 0.00 0.72 0.00 0.18 0.04 0.06
#> TCGA.L5.A4OW.01     2  0.7320    -0.2047 0.00 0.38 0.00 0.28 0.12 0.22
#> TCGA.2H.A9GK.01     2  0.0000     0.8127 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NW.01     4  0.5655     0.0345 0.00 0.00 0.00 0.48 0.16 0.36
#> TCGA.2H.A9GR.01     2  0.0547     0.8191 0.00 0.98 0.00 0.02 0.00 0.00
#> TCGA.L5.A8NV.01     2  0.0547     0.8191 0.00 0.98 0.00 0.02 0.00 0.00
#> TCGA.L5.A8NS.01     2  0.0000     0.8127 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A938.01     3  0.0000     0.8677 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.V5.AASX.11     1  0.0000     0.8615 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A893.01     2  0.0547     0.8081 0.00 0.98 0.00 0.00 0.02 0.00
#> TCGA.L5.A4OT.01     1  0.3688     0.7395 0.80 0.00 0.00 0.02 0.04 0.14
#> TCGA.JY.A93E.01     2  0.0547     0.8191 0.00 0.98 0.00 0.02 0.00 0.00
#> TCGA.2H.A9GI.01     5  0.6356     0.9419 0.00 0.16 0.00 0.04 0.48 0.32
#> TCGA.2H.A9GL.01     4  0.2790     0.8004 0.00 0.00 0.00 0.84 0.14 0.02
#> TCGA.L5.A8NM.01     2  0.0547     0.8191 0.00 0.98 0.00 0.02 0.00 0.00
#> TCGA.L5.A4OX.01     4  0.0000     0.8752 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NR.01     5  0.6356     0.9419 0.00 0.16 0.00 0.04 0.48 0.32
#> TCGA.L5.A4OU.01     3  0.0000     0.8677 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.JY.A93C.01     5  0.6365     0.9375 0.00 0.18 0.00 0.04 0.50 0.28
#> TCGA.V5.AASX.01     4  0.0000     0.8752 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NT.01     2  0.3309     0.4240 0.00 0.72 0.00 0.00 0.28 0.00
#> TCGA.R6.A8WC.01     6  0.3864     0.4319 0.48 0.00 0.00 0.00 0.00 0.52
#> TCGA.L5.A8NG.01     2  0.0547     0.8191 0.00 0.98 0.00 0.02 0.00 0.00
#> TCGA.RE.A7BO.01     4  0.1092     0.8689 0.00 0.00 0.00 0.96 0.02 0.02
#> TCGA.L5.A8NJ.01     6  0.4575     0.5270 0.34 0.00 0.00 0.02 0.02 0.62
#> TCGA.JY.A6F8.01     1  0.0000     0.8615 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EQ.01     2  0.1092     0.8105 0.00 0.96 0.00 0.02 0.02 0.00
#> TCGA.L5.A8NL.01     2  0.0000     0.8127 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GH.01     6  0.2048     0.0763 0.00 0.00 0.00 0.12 0.00 0.88

show/hide code output

cbind(get_classes(res, k = 7), get_membership(res, k = 7))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7
#> TCGA.JY.A6FB.01     1  0.4763     0.5175 0.62 0.00 0.00 0.18 0.00 0.20 0.00
#> TCGA.Q9.A6FW.01     3  0.7367     0.4853 0.00 0.22 0.44 0.10 0.12 0.12 0.00
#> TCGA.S8.A6BV.01     3  0.0504     0.8151 0.00 0.00 0.98 0.00 0.02 0.00 0.00
#> TCGA.L5.A4OI.01     7  0.1166     0.9139 0.00 0.00 0.00 0.06 0.00 0.00 0.94
#> TCGA.R6.A6DN.01     5  0.4569     0.7764 0.00 0.18 0.00 0.08 0.70 0.04 0.00
#> TCGA.L5.A4OG.01     4  0.5291     0.2232 0.00 0.30 0.00 0.50 0.20 0.00 0.00
#> TCGA.L5.A43E.01     1  0.0000     0.7790 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X8.AAAR.01     3  0.3940     0.7593 0.00 0.00 0.78 0.06 0.08 0.08 0.00
#> TCGA.L5.A4ON.01     1  0.0504     0.7741 0.98 0.00 0.00 0.02 0.00 0.00 0.00
#> TCGA.V5.AASW.01     6  0.3047     0.7598 0.28 0.00 0.00 0.00 0.00 0.72 0.00
#> TCGA.L5.A4OJ.01     1  0.0000     0.7790 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L7.A6VZ.01     1  0.4629     0.5358 0.64 0.00 0.00 0.16 0.00 0.20 0.00
#> TCGA.L5.A4OE.01     4  0.4421     0.2835 0.00 0.00 0.00 0.50 0.02 0.02 0.46
#> TCGA.V5.A7RB.01     3  0.0000     0.8168 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6DQ.01     4  0.3606     0.3904 0.00 0.00 0.00 0.68 0.00 0.02 0.30
#> TCGA.L5.A88Y.01     4  0.3755     0.3854 0.00 0.00 0.00 0.64 0.00 0.02 0.34
#> TCGA.L5.A88V.01     3  0.6543     0.6211 0.00 0.02 0.54 0.16 0.06 0.20 0.02
#> TCGA.M9.A5M8.01     4  0.4936     0.0824 0.00 0.44 0.00 0.48 0.06 0.02 0.00
#> TCGA.L5.A4OW.01     4  0.5291     0.2232 0.00 0.30 0.00 0.50 0.20 0.00 0.00
#> TCGA.2H.A9GK.01     2  0.0504     0.8973 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.L5.A8NW.01     4  0.5410     0.2139 0.00 0.00 0.00 0.48 0.38 0.02 0.12
#> TCGA.2H.A9GR.01     2  0.0504     0.9004 0.00 0.98 0.00 0.02 0.00 0.00 0.00
#> TCGA.L5.A8NV.01     2  0.1006     0.8968 0.00 0.96 0.00 0.02 0.02 0.00 0.00
#> TCGA.L5.A8NS.01     2  0.0504     0.8973 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.JY.A938.01     3  0.0000     0.8168 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASX.11     1  0.0000     0.7790 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A893.01     2  0.1860     0.8694 0.00 0.92 0.00 0.04 0.02 0.02 0.00
#> TCGA.L5.A4OT.01     1  0.4763     0.5175 0.62 0.00 0.00 0.18 0.00 0.20 0.00
#> TCGA.JY.A93E.01     2  0.1860     0.8750 0.00 0.92 0.00 0.04 0.02 0.02 0.00
#> TCGA.2H.A9GI.01     5  0.3487     0.8379 0.00 0.10 0.00 0.12 0.78 0.00 0.00
#> TCGA.2H.A9GL.01     7  0.2213     0.9157 0.00 0.00 0.00 0.04 0.04 0.02 0.90
#> TCGA.L5.A8NM.01     2  0.1860     0.8750 0.00 0.92 0.00 0.04 0.02 0.02 0.00
#> TCGA.L5.A4OX.01     4  0.4421     0.2835 0.00 0.00 0.00 0.50 0.02 0.02 0.46
#> TCGA.L5.A8NR.01     5  0.3487     0.8379 0.00 0.10 0.00 0.12 0.78 0.00 0.00
#> TCGA.L5.A4OU.01     3  0.0000     0.8168 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A93C.01     5  0.2422     0.8363 0.00 0.18 0.00 0.00 0.82 0.00 0.00
#> TCGA.V5.AASX.01     4  0.4421     0.2835 0.00 0.00 0.00 0.50 0.02 0.02 0.46
#> TCGA.L5.A8NT.01     2  0.3867     0.1604 0.00 0.60 0.00 0.00 0.38 0.02 0.00
#> TCGA.R6.A8WC.01     6  0.3139     0.7449 0.30 0.00 0.00 0.00 0.00 0.70 0.00
#> TCGA.L5.A8NG.01     2  0.0504     0.9004 0.00 0.98 0.00 0.02 0.00 0.00 0.00
#> TCGA.RE.A7BO.01     4  0.3867     0.3564 0.00 0.00 0.00 0.60 0.00 0.02 0.38
#> TCGA.L5.A8NJ.01     6  0.4377     0.7593 0.24 0.00 0.00 0.06 0.00 0.68 0.02
#> TCGA.JY.A6F8.01     1  0.0000     0.7790 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EQ.01     2  0.1664     0.8730 0.00 0.92 0.00 0.06 0.02 0.00 0.00
#> TCGA.L5.A8NL.01     2  0.0504     0.8973 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.2H.A9GH.01     6  0.4242     0.5212 0.00 0.00 0.00 0.08 0.18 0.72 0.02

show/hide code output

cbind(get_classes(res, k = 8), get_membership(res, k = 8))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7   p8
#> TCGA.JY.A6FB.01     1  0.5037      0.584 0.54 0.00 0.00 0.00 0.00 0.14 0.02 0.30
#> TCGA.Q9.A6FW.01     3  0.6879      0.238 0.00 0.36 0.40 0.02 0.08 0.06 0.02 0.06
#> TCGA.S8.A6BV.01     3  0.0808      0.786 0.00 0.00 0.96 0.00 0.04 0.00 0.00 0.00
#> TCGA.L5.A4OI.01     7  0.3675      0.925 0.00 0.00 0.00 0.04 0.00 0.00 0.66 0.30
#> TCGA.R6.A6DN.01     5  0.5407      0.448 0.00 0.02 0.00 0.12 0.62 0.08 0.00 0.16
#> TCGA.L5.A4OG.01     4  0.2025      0.191 0.00 0.10 0.00 0.88 0.02 0.00 0.00 0.00
#> TCGA.L5.A43E.01     1  0.0000      0.762 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X8.AAAR.01     3  0.2624      0.756 0.00 0.00 0.86 0.00 0.06 0.02 0.00 0.06
#> TCGA.L5.A4ON.01     1  0.2025      0.742 0.88 0.00 0.00 0.00 0.00 0.00 0.02 0.10
#> TCGA.V5.AASW.01     6  0.2114      0.864 0.16 0.00 0.00 0.00 0.00 0.84 0.00 0.00
#> TCGA.L5.A4OJ.01     1  0.0000      0.762 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L7.A6VZ.01     1  0.5037      0.584 0.54 0.00 0.00 0.00 0.00 0.14 0.02 0.30
#> TCGA.L5.A4OE.01     4  0.4803     -0.478 0.00 0.02 0.00 0.46 0.00 0.00 0.08 0.44
#> TCGA.V5.A7RB.01     3  0.0000      0.791 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6DQ.01     4  0.3714     -0.751 0.00 0.02 0.00 0.54 0.00 0.00 0.00 0.44
#> TCGA.L5.A88Y.01     4  0.3729     -0.756 0.00 0.02 0.00 0.52 0.00 0.00 0.00 0.46
#> TCGA.L5.A88V.01     3  0.6619      0.468 0.00 0.04 0.46 0.00 0.02 0.06 0.26 0.16
#> TCGA.M9.A5M8.01     4  0.4028      0.101 0.00 0.28 0.00 0.66 0.00 0.04 0.00 0.02
#> TCGA.L5.A4OW.01     4  0.2025      0.191 0.00 0.10 0.00 0.88 0.02 0.00 0.00 0.00
#> TCGA.2H.A9GK.01     2  0.1408      0.906 0.00 0.94 0.00 0.02 0.02 0.00 0.02 0.00
#> TCGA.L5.A8NW.01     4  0.4399     -0.593 0.00 0.00 0.00 0.50 0.44 0.02 0.00 0.04
#> TCGA.2H.A9GR.01     2  0.0941      0.918 0.00 0.96 0.00 0.02 0.00 0.00 0.00 0.02
#> TCGA.L5.A8NV.01     2  0.0941      0.918 0.00 0.96 0.00 0.02 0.00 0.00 0.00 0.02
#> TCGA.L5.A8NS.01     2  0.1408      0.906 0.00 0.94 0.00 0.02 0.02 0.00 0.02 0.00
#> TCGA.JY.A938.01     3  0.0000      0.791 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASX.11     1  0.0000      0.762 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A893.01     2  0.2204      0.891 0.00 0.90 0.00 0.04 0.02 0.02 0.02 0.00
#> TCGA.L5.A4OT.01     1  0.5037      0.584 0.54 0.00 0.00 0.00 0.00 0.14 0.02 0.30
#> TCGA.JY.A93E.01     2  0.1275      0.910 0.00 0.94 0.00 0.02 0.00 0.00 0.00 0.04
#> TCGA.2H.A9GI.01     5  0.3142      0.786 0.00 0.00 0.00 0.36 0.64 0.00 0.00 0.00
#> TCGA.2H.A9GL.01     7  0.4134      0.924 0.00 0.00 0.00 0.08 0.00 0.00 0.62 0.30
#> TCGA.L5.A8NM.01     2  0.1275      0.910 0.00 0.94 0.00 0.02 0.00 0.00 0.00 0.04
#> TCGA.L5.A4OX.01     4  0.4562     -0.486 0.00 0.00 0.00 0.46 0.00 0.00 0.10 0.44
#> TCGA.L5.A8NR.01     5  0.3142      0.786 0.00 0.00 0.00 0.36 0.64 0.00 0.00 0.00
#> TCGA.L5.A4OU.01     3  0.0000      0.791 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A93C.01     5  0.3198      0.774 0.00 0.02 0.00 0.26 0.72 0.00 0.00 0.00
#> TCGA.V5.AASX.01     4  0.4803     -0.478 0.00 0.02 0.00 0.46 0.00 0.00 0.08 0.44
#> TCGA.L5.A8NT.01     2  0.3941      0.613 0.00 0.68 0.00 0.04 0.26 0.00 0.02 0.00
#> TCGA.R6.A8WC.01     6  0.2114      0.864 0.16 0.00 0.00 0.00 0.00 0.84 0.00 0.00
#> TCGA.L5.A8NG.01     2  0.1275      0.918 0.00 0.94 0.00 0.04 0.00 0.00 0.00 0.02
#> TCGA.RE.A7BO.01     8  0.3729      0.000 0.00 0.00 0.00 0.46 0.00 0.02 0.00 0.52
#> TCGA.L5.A8NJ.01     6  0.4294      0.849 0.10 0.00 0.00 0.06 0.02 0.76 0.04 0.02
#> TCGA.JY.A6F8.01     1  0.0000      0.762 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EQ.01     2  0.1557      0.911 0.00 0.92 0.00 0.06 0.00 0.00 0.00 0.02
#> TCGA.L5.A8NL.01     2  0.0941      0.907 0.00 0.96 0.00 0.00 0.02 0.00 0.02 0.00
#> TCGA.2H.A9GH.01     6  0.2623      0.762 0.00 0.00 0.00 0.10 0.06 0.84 0.00 0.00

Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.

consensus_heatmap(res, k = 2)

plot of chunk tab-node-022-consensus-heatmap-1

consensus_heatmap(res, k = 3)

plot of chunk tab-node-022-consensus-heatmap-2

consensus_heatmap(res, k = 4)

plot of chunk tab-node-022-consensus-heatmap-3

consensus_heatmap(res, k = 5)

plot of chunk tab-node-022-consensus-heatmap-4

consensus_heatmap(res, k = 6)

plot of chunk tab-node-022-consensus-heatmap-5

consensus_heatmap(res, k = 7)

plot of chunk tab-node-022-consensus-heatmap-6

consensus_heatmap(res, k = 8)

plot of chunk tab-node-022-consensus-heatmap-7

Heatmaps for the membership of samples in all partitions to see how consistent they are:

membership_heatmap(res, k = 2)

plot of chunk tab-node-022-membership-heatmap-1

membership_heatmap(res, k = 3)

plot of chunk tab-node-022-membership-heatmap-2

membership_heatmap(res, k = 4)

plot of chunk tab-node-022-membership-heatmap-3

membership_heatmap(res, k = 5)

plot of chunk tab-node-022-membership-heatmap-4

membership_heatmap(res, k = 6)

plot of chunk tab-node-022-membership-heatmap-5

membership_heatmap(res, k = 7)

plot of chunk tab-node-022-membership-heatmap-6

membership_heatmap(res, k = 8)

plot of chunk tab-node-022-membership-heatmap-7

As soon as the classes for columns are determined, the signatures that are significantly different between subgroups can be looked for. Following are the heatmaps for signatures.

get_signatures(res, k = 2)

plot of chunk tab-node-022-get-signatures-1

get_signatures(res, k = 3)

plot of chunk tab-node-022-get-signatures-2

get_signatures(res, k = 4)

plot of chunk tab-node-022-get-signatures-3

get_signatures(res, k = 5)

plot of chunk tab-node-022-get-signatures-4

get_signatures(res, k = 6)

plot of chunk tab-node-022-get-signatures-5

get_signatures(res, k = 7)

plot of chunk tab-node-022-get-signatures-6

get_signatures(res, k = 8)

plot of chunk tab-node-022-get-signatures-7

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-022-signature_compare

get_signature() returns a data frame invisibly. To get the list of signatures, the function call should be assigned to a variable explicitly. In following code, if plot argument is set to FALSE, no heatmap is plotted while only the differential analysis is performed.

# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)

An example of the output of tb is:

#>   which_row         fdr    mean_1    mean_2 scaled_mean_1 scaled_mean_2 km
#> 1        38 0.042760348  8.373488  9.131774    -0.5533452     0.5164555  1
#> 2        40 0.018707592  7.106213  8.469186    -0.6173731     0.5762149  1
#> 3        55 0.019134737 10.221463 11.207825    -0.6159697     0.5749050  1
#> 4        59 0.006059896  5.921854  7.869574    -0.6899429     0.6439467  1
#> 5        60 0.018055526  8.928898 10.211722    -0.6204761     0.5791110  1
#> 6        98 0.009384629 15.714769 14.887706     0.6635654    -0.6193277  2
...

The columns in tb are:

  1. which_row: row indices corresponding to the input matrix.
  2. fdr: FDR for the differential test.
  3. mean_x: The mean value in group x.
  4. scaled_mean_x: The mean value in group x after rows are scaled.
  5. km: Row groups if k-means clustering is applied to rows (which is done by automatically selecting number of clusters).

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs:

# code only for demonstration
# e.g. to show the top 500 most significant rows
tb = get_signature(res, k = ..., top_signatures = 500)

If the signatures are defined as these which are uniquely high in current group, diff_method argument can be set to "uniquely_high_in_one_group":

# code only for demonstration
tb = get_signature(res, k = ..., diff_method = "uniquely_high_in_one_group")

UMAP plot which shows how samples are separated.

dimension_reduction(res, k = 2, method = "UMAP")

plot of chunk tab-node-022-dimension-reduction-1

dimension_reduction(res, k = 3, method = "UMAP")

plot of chunk tab-node-022-dimension-reduction-2

dimension_reduction(res, k = 4, method = "UMAP")

plot of chunk tab-node-022-dimension-reduction-3

dimension_reduction(res, k = 5, method = "UMAP")

plot of chunk tab-node-022-dimension-reduction-4

dimension_reduction(res, k = 6, method = "UMAP")

plot of chunk tab-node-022-dimension-reduction-5

dimension_reduction(res, k = 7, method = "UMAP")

plot of chunk tab-node-022-dimension-reduction-6

dimension_reduction(res, k = 8, method = "UMAP")

plot of chunk tab-node-022-dimension-reduction-7

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-022-collect-classes

If matrix rows can be associated to genes, consider to use functional_enrichment(res, ...) to perform function enrichment for the signature genes. See this vignette for more detailed explanations.


Node0222

Parent node: Node022. Child nodes: Node02221 , Node02222-leaf , Node02223-leaf .

The object with results only for a single top-value method and a single partitioning method can be extracted as:

res = res_rh["0222"]

A summary of res and all the functions that can be applied to it:

res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6, 7, 8.
#>   On a matrix with 30000 rows and 25 columns.
#>   Top rows (1000) are extracted by 'ATC' method.
#>   Subgroups are detected by 'kmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 3.
#> 
#> Following methods can be applied to this 'ConsensusPartition' object:
#>  [1] "cola_report"             "collect_classes"         "collect_plots"          
#>  [4] "collect_stats"           "colnames"                "compare_partitions"     
#>  [7] "compare_signatures"      "consensus_heatmap"       "dimension_reduction"    
#> [10] "functional_enrichment"   "get_anno_col"            "get_anno"               
#> [13] "get_classes"             "get_consensus"           "get_matrix"             
#> [16] "get_membership"          "get_param"               "get_signatures"         
#> [19] "get_stats"               "is_best_k"               "is_stable_k"            
#> [22] "membership_heatmap"      "ncol"                    "nrow"                   
#> [25] "plot_ecdf"               "predict_classes"         "rownames"               
#> [28] "select_partition_number" "show"                    "suggest_best_k"         
#> [31] "test_to_known_factors"   "top_rows_heatmap"

collect_plots() function collects all the plots made from res for all k (number of subgroups) into one single page to provide an easy and fast comparison between different k.

collect_plots(res)

plot of chunk node-0222-collect-plots

The plots are:

All the plots in panels can be made by individual functions and they are plotted later in this section.

select_partition_number() produces several plots showing different statistics for choosing “optimized” k. There are following statistics:

The detailed explanations of these statistics can be found in the cola vignette.

Generally speaking, higher 1-PAC score, higher mean silhouette score or higher concordance corresponds to better partition. Rand index and Jaccard index measure how similar the current partition is compared to partition with k-1. If they are too similar, we won't accept k is better than k-1.

select_partition_number(res)

plot of chunk node-0222-select-partition-number

The numeric values for all these statistics can be obtained by get_stats().

get_stats(res)
#>   k 1-PAC mean_silhouette concordance area_increased  Rand Jaccard
#> 2 2 0.580           0.777       0.871         0.4791 0.500   0.500
#> 3 3 1.000           0.953       0.984         0.3506 0.613   0.373
#> 4 4 0.787           0.518       0.730         0.1348 0.817   0.542
#> 5 5 0.801           0.885       0.889         0.0990 0.827   0.447
#> 6 6 0.881           0.899       0.904         0.0431 0.967   0.818
#> 7 7 0.866           0.841       0.887         0.0236 1.000   1.000
#> 8 8 0.909           0.786       0.862         0.0234 0.990   0.933

suggest_best_k() suggests the best \(k\) based on these statistics. The rules are as follows:

suggest_best_k(res)
#> [1] 3

Following is the table of the partitions (You need to click the show/hide code output link to see it). The membership matrix (columns with name p*) is inferred by clue::cl_consensus() function with the SE method. Basically the value in the membership matrix represents the probability to belong to a certain group. The finall subgroup label for an item is determined with the group with highest probability it belongs to.

In get_classes() function, the entropy is calculated from the membership matrix and the silhouette score is calculated from the consensus matrix.

show/hide code output

cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#>                 class entropy silhouette   p1   p2
#> TCGA.R6.A6DN.01     2   0.995      0.729 0.46 0.54
#> TCGA.L5.A4OG.01     1   0.995      1.000 0.54 0.46
#> TCGA.L5.A4OE.01     2   0.000      0.513 0.00 1.00
#> TCGA.R6.A6DQ.01     1   0.995      1.000 0.54 0.46
#> TCGA.L5.A88Y.01     1   0.995      1.000 0.54 0.46
#> TCGA.M9.A5M8.01     1   0.995      1.000 0.54 0.46
#> TCGA.L5.A4OW.01     1   0.995      1.000 0.54 0.46
#> TCGA.2H.A9GK.01     1   0.995      1.000 0.54 0.46
#> TCGA.L5.A8NW.01     2   0.995      0.729 0.46 0.54
#> TCGA.2H.A9GR.01     2   0.000      0.513 0.00 1.00
#> TCGA.L5.A8NV.01     1   0.995      1.000 0.54 0.46
#> TCGA.L5.A8NS.01     2   0.000      0.513 0.00 1.00
#> TCGA.L5.A893.01     1   0.995      1.000 0.54 0.46
#> TCGA.JY.A93E.01     2   0.000      0.513 0.00 1.00
#> TCGA.2H.A9GI.01     2   0.995      0.729 0.46 0.54
#> TCGA.2H.A9GL.01     2   0.995      0.729 0.46 0.54
#> TCGA.L5.A8NM.01     2   0.000      0.513 0.00 1.00
#> TCGA.L5.A4OX.01     2   0.995      0.729 0.46 0.54
#> TCGA.L5.A8NR.01     2   0.995      0.729 0.46 0.54
#> TCGA.JY.A93C.01     2   0.995      0.729 0.46 0.54
#> TCGA.V5.AASX.01     2   0.000      0.513 0.00 1.00
#> TCGA.L5.A8NT.01     2   0.995      0.729 0.46 0.54
#> TCGA.L5.A8NG.01     2   0.000      0.513 0.00 1.00
#> TCGA.VR.A8EQ.01     1   0.995      1.000 0.54 0.46
#> TCGA.L5.A8NL.01     1   0.995      1.000 0.54 0.46

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette  p1  p2 p3
#> TCGA.R6.A6DN.01     2   0.000      0.927 0.0 1.0  0
#> TCGA.L5.A4OG.01     3   0.000      1.000 0.0 0.0  1
#> TCGA.L5.A4OE.01     1   0.000      1.000 1.0 0.0  0
#> TCGA.R6.A6DQ.01     3   0.000      1.000 0.0 0.0  1
#> TCGA.L5.A88Y.01     1   0.000      1.000 1.0 0.0  0
#> TCGA.M9.A5M8.01     3   0.000      1.000 0.0 0.0  1
#> TCGA.L5.A4OW.01     1   0.000      1.000 1.0 0.0  0
#> TCGA.2H.A9GK.01     3   0.000      1.000 0.0 0.0  1
#> TCGA.L5.A8NW.01     2   0.000      0.927 0.0 1.0  0
#> TCGA.2H.A9GR.01     1   0.000      1.000 1.0 0.0  0
#> TCGA.L5.A8NV.01     1   0.000      1.000 1.0 0.0  0
#> TCGA.L5.A8NS.01     1   0.000      1.000 1.0 0.0  0
#> TCGA.L5.A893.01     1   0.000      1.000 1.0 0.0  0
#> TCGA.JY.A93E.01     1   0.000      1.000 1.0 0.0  0
#> TCGA.2H.A9GI.01     2   0.000      0.927 0.0 1.0  0
#> TCGA.2H.A9GL.01     2   0.000      0.927 0.0 1.0  0
#> TCGA.L5.A8NM.01     1   0.000      1.000 1.0 0.0  0
#> TCGA.L5.A4OX.01     2   0.613      0.333 0.4 0.6  0
#> TCGA.L5.A8NR.01     2   0.000      0.927 0.0 1.0  0
#> TCGA.JY.A93C.01     2   0.000      0.927 0.0 1.0  0
#> TCGA.V5.AASX.01     1   0.000      1.000 1.0 0.0  0
#> TCGA.L5.A8NT.01     2   0.000      0.927 0.0 1.0  0
#> TCGA.L5.A8NG.01     1   0.000      1.000 1.0 0.0  0
#> TCGA.VR.A8EQ.01     3   0.000      1.000 0.0 0.0  1
#> TCGA.L5.A8NL.01     1   0.000      1.000 1.0 0.0  0

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2 p3   p4
#> TCGA.R6.A6DN.01     2   0.000      0.847 0.00 1.00  0 0.00
#> TCGA.L5.A4OG.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.L5.A4OE.01     1   0.000      0.676 1.00 0.00  0 0.00
#> TCGA.R6.A6DQ.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.L5.A88Y.01     4   0.491     -0.460 0.42 0.00  0 0.58
#> TCGA.M9.A5M8.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.L5.A4OW.01     4   0.491     -0.460 0.42 0.00  0 0.58
#> TCGA.2H.A9GK.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.L5.A8NW.01     4   0.495     -0.221 0.00 0.44  0 0.56
#> TCGA.2H.A9GR.01     1   0.000      0.676 1.00 0.00  0 0.00
#> TCGA.L5.A8NV.01     1   0.495      0.567 0.56 0.00  0 0.44
#> TCGA.L5.A8NS.01     1   0.495      0.567 0.56 0.00  0 0.44
#> TCGA.L5.A893.01     1   0.495      0.567 0.56 0.00  0 0.44
#> TCGA.JY.A93E.01     1   0.000      0.676 1.00 0.00  0 0.00
#> TCGA.2H.A9GI.01     4   0.495     -0.221 0.00 0.44  0 0.56
#> TCGA.2H.A9GL.01     2   0.471      0.393 0.00 0.64  0 0.36
#> TCGA.L5.A8NM.01     1   0.000      0.676 1.00 0.00  0 0.00
#> TCGA.L5.A4OX.01     1   0.380      0.394 0.78 0.00  0 0.22
#> TCGA.L5.A8NR.01     2   0.000      0.847 0.00 1.00  0 0.00
#> TCGA.JY.A93C.01     2   0.000      0.847 0.00 1.00  0 0.00
#> TCGA.V5.AASX.01     1   0.000      0.676 1.00 0.00  0 0.00
#> TCGA.L5.A8NT.01     4   0.495     -0.221 0.00 0.44  0 0.56
#> TCGA.L5.A8NG.01     1   0.495      0.567 0.56 0.00  0 0.44
#> TCGA.VR.A8EQ.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.L5.A8NL.01     1   0.495      0.567 0.56 0.00  0 0.44

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1   p2   p3   p4   p5
#> TCGA.R6.A6DN.01     2  0.4263      0.931 0.00 0.76 0.00 0.18 0.06
#> TCGA.L5.A4OG.01     3  0.0000      0.996 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OE.01     1  0.0000      0.982 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6DQ.01     3  0.0000      0.996 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A88Y.01     5  0.5700      0.613 0.00 0.12 0.00 0.28 0.60
#> TCGA.M9.A5M8.01     3  0.0609      0.984 0.00 0.02 0.98 0.00 0.00
#> TCGA.L5.A4OW.01     5  0.5700      0.613 0.00 0.12 0.00 0.28 0.60
#> TCGA.2H.A9GK.01     3  0.0000      0.996 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NW.01     4  0.1732      0.842 0.00 0.08 0.00 0.92 0.00
#> TCGA.2H.A9GR.01     1  0.0000      0.982 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NV.01     5  0.2516      0.844 0.14 0.00 0.00 0.00 0.86
#> TCGA.L5.A8NS.01     5  0.3868      0.845 0.14 0.00 0.00 0.06 0.80
#> TCGA.L5.A893.01     5  0.2280      0.844 0.12 0.00 0.00 0.00 0.88
#> TCGA.JY.A93E.01     1  0.0000      0.982 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GI.01     4  0.1732      0.842 0.00 0.08 0.00 0.92 0.00
#> TCGA.2H.A9GL.01     4  0.4854      0.522 0.00 0.26 0.00 0.68 0.06
#> TCGA.L5.A8NM.01     1  0.1043      0.967 0.96 0.04 0.00 0.00 0.00
#> TCGA.L5.A4OX.01     1  0.1648      0.952 0.94 0.04 0.00 0.00 0.02
#> TCGA.L5.A8NR.01     2  0.2929      0.966 0.00 0.82 0.00 0.18 0.00
#> TCGA.JY.A93C.01     2  0.2929      0.966 0.00 0.82 0.00 0.18 0.00
#> TCGA.V5.AASX.01     1  0.0000      0.982 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NT.01     4  0.0000      0.782 0.00 0.00 0.00 1.00 0.00
#> TCGA.L5.A8NG.01     5  0.3868      0.845 0.14 0.00 0.00 0.06 0.80
#> TCGA.VR.A8EQ.01     3  0.0000      0.996 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NL.01     5  0.2516      0.844 0.14 0.00 0.00 0.00 0.86

show/hide code output

cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6
#> TCGA.R6.A6DN.01     2  0.2260      0.864 0.00 0.86 0.00 0.00 0.00 0.14
#> TCGA.L5.A4OG.01     3  0.2190      0.934 0.00 0.00 0.90 0.06 0.00 0.04
#> TCGA.L5.A4OE.01     1  0.0937      0.950 0.96 0.00 0.00 0.00 0.04 0.00
#> TCGA.R6.A6DQ.01     3  0.0000      0.956 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A88Y.01     6  0.4482      1.000 0.00 0.00 0.00 0.04 0.36 0.60
#> TCGA.M9.A5M8.01     3  0.1092      0.941 0.00 0.00 0.96 0.02 0.00 0.02
#> TCGA.L5.A4OW.01     6  0.4482      1.000 0.00 0.00 0.00 0.04 0.36 0.60
#> TCGA.2H.A9GK.01     3  0.0000      0.956 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NW.01     4  0.1556      0.858 0.00 0.08 0.00 0.92 0.00 0.00
#> TCGA.2H.A9GR.01     1  0.0937      0.950 0.96 0.00 0.00 0.00 0.04 0.00
#> TCGA.L5.A8NV.01     5  0.0000      0.896 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.L5.A8NS.01     5  0.2094      0.862 0.02 0.00 0.00 0.00 0.90 0.08
#> TCGA.L5.A893.01     5  0.0937      0.857 0.00 0.00 0.00 0.00 0.96 0.04
#> TCGA.JY.A93E.01     1  0.0937      0.950 0.96 0.00 0.00 0.00 0.04 0.00
#> TCGA.2H.A9GI.01     4  0.1556      0.858 0.00 0.08 0.00 0.92 0.00 0.00
#> TCGA.2H.A9GL.01     4  0.5144      0.494 0.00 0.34 0.00 0.56 0.00 0.10
#> TCGA.L5.A8NM.01     1  0.1814      0.897 0.90 0.00 0.00 0.00 0.00 0.10
#> TCGA.L5.A4OX.01     1  0.1814      0.897 0.90 0.00 0.00 0.00 0.00 0.10
#> TCGA.L5.A8NR.01     2  0.0000      0.933 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.JY.A93C.01     2  0.0000      0.933 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASX.01     1  0.0937      0.950 0.96 0.00 0.00 0.00 0.04 0.00
#> TCGA.L5.A8NT.01     4  0.1865      0.836 0.00 0.04 0.00 0.92 0.00 0.04
#> TCGA.L5.A8NG.01     5  0.2094      0.862 0.02 0.00 0.00 0.00 0.90 0.08
#> TCGA.VR.A8EQ.01     3  0.1865      0.942 0.00 0.00 0.92 0.04 0.00 0.04
#> TCGA.L5.A8NL.01     5  0.0000      0.896 0.00 0.00 0.00 0.00 1.00 0.00

show/hide code output

cbind(get_classes(res, k = 7), get_membership(res, k = 7))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7
#> TCGA.R6.A6DN.01     7  0.4379      0.823 0.00 0.10 0.00 0.06 0.00 0.10 0.74
#> TCGA.L5.A4OG.01     3  0.3086      0.843 0.00 0.16 0.80 0.00 0.00 0.00 0.04
#> TCGA.L5.A4OE.01     1  0.3927      0.857 0.66 0.30 0.00 0.00 0.04 0.00 0.00
#> TCGA.R6.A6DQ.01     3  0.0000      0.941 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88Y.01     6  0.2376      0.980 0.00 0.00 0.00 0.02 0.12 0.86 0.00
#> TCGA.M9.A5M8.01     3  0.0863      0.933 0.00 0.00 0.96 0.00 0.00 0.04 0.00
#> TCGA.L5.A4OW.01     6  0.2864      0.980 0.00 0.02 0.00 0.02 0.12 0.84 0.00
#> TCGA.2H.A9GK.01     3  0.0000      0.941 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NW.01     4  0.0000      0.863 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GR.01     1  0.3927      0.858 0.66 0.30 0.00 0.00 0.04 0.00 0.00
#> TCGA.L5.A8NV.01     5  0.0000      0.824 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A8NS.01     5  0.3370      0.768 0.00 0.16 0.00 0.00 0.78 0.06 0.00
#> TCGA.L5.A893.01     5  0.3000      0.708 0.00 0.10 0.00 0.00 0.84 0.04 0.02
#> TCGA.JY.A93E.01     1  0.3841      0.860 0.68 0.28 0.00 0.00 0.04 0.00 0.00
#> TCGA.2H.A9GI.01     4  0.0000      0.863 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GL.01     4  0.5055      0.464 0.00 0.26 0.00 0.56 0.00 0.00 0.18
#> TCGA.L5.A8NM.01     1  0.0000      0.729 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OX.01     1  0.0000      0.729 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NR.01     7  0.1166      0.913 0.00 0.00 0.00 0.06 0.00 0.00 0.94
#> TCGA.JY.A93C.01     7  0.1166      0.913 0.00 0.00 0.00 0.06 0.00 0.00 0.94
#> TCGA.V5.AASX.01     1  0.4003      0.848 0.64 0.32 0.00 0.00 0.04 0.00 0.00
#> TCGA.L5.A8NT.01     4  0.0000      0.863 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A8NG.01     5  0.3370      0.768 0.00 0.16 0.00 0.00 0.78 0.06 0.00
#> TCGA.VR.A8EQ.01     3  0.1363      0.930 0.00 0.04 0.94 0.00 0.00 0.00 0.02
#> TCGA.L5.A8NL.01     5  0.0000      0.824 0.00 0.00 0.00 0.00 1.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 8), get_membership(res, k = 8))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7   p8
#> TCGA.R6.A6DN.01     7  0.3523      0.785 0.00 0.00 0.00 0.00 0.10 0.02 0.78 0.10
#> TCGA.L5.A4OG.01     3  0.4134      0.652 0.00 0.00 0.62 0.30 0.08 0.00 0.00 0.00
#> TCGA.L5.A4OE.01     1  0.1607      0.799 0.92 0.00 0.00 0.04 0.04 0.00 0.00 0.00
#> TCGA.R6.A6DQ.01     3  0.0000      0.882 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88Y.01     6  0.2071      0.914 0.00 0.02 0.00 0.04 0.04 0.90 0.00 0.00
#> TCGA.M9.A5M8.01     3  0.1341      0.870 0.00 0.00 0.92 0.00 0.08 0.00 0.00 0.00
#> TCGA.L5.A4OW.01     6  0.0471      0.915 0.00 0.02 0.00 0.00 0.00 0.98 0.00 0.00
#> TCGA.2H.A9GK.01     3  0.0000      0.882 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NW.01     4  0.3318      0.969 0.00 0.00 0.00 0.54 0.00 0.00 0.00 0.46
#> TCGA.2H.A9GR.01     1  0.0000      0.824 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NV.01     2  0.0000      0.786 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NS.01     2  0.5103      0.680 0.02 0.64 0.00 0.04 0.16 0.14 0.00 0.00
#> TCGA.L5.A893.01     2  0.2132      0.723 0.00 0.88 0.00 0.04 0.08 0.00 0.00 0.00
#> TCGA.JY.A93E.01     1  0.0000      0.824 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GI.01     4  0.3318      0.969 0.00 0.00 0.00 0.54 0.00 0.00 0.00 0.46
#> TCGA.2H.A9GL.01     8  0.1765      0.000 0.00 0.00 0.00 0.00 0.00 0.00 0.12 0.88
#> TCGA.L5.A8NM.01     1  0.3193      0.658 0.62 0.00 0.00 0.00 0.38 0.00 0.00 0.00
#> TCGA.L5.A4OX.01     1  0.3193      0.658 0.62 0.00 0.00 0.00 0.38 0.00 0.00 0.00
#> TCGA.L5.A8NR.01     7  0.0000      0.893 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.JY.A93C.01     7  0.0000      0.893 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.V5.AASX.01     1  0.1275      0.809 0.94 0.00 0.00 0.02 0.04 0.00 0.00 0.00
#> TCGA.L5.A8NT.01     4  0.4004      0.937 0.00 0.00 0.00 0.50 0.04 0.00 0.00 0.46
#> TCGA.L5.A8NG.01     2  0.5103      0.680 0.02 0.64 0.00 0.04 0.16 0.14 0.00 0.00
#> TCGA.VR.A8EQ.01     3  0.2165      0.862 0.00 0.00 0.88 0.06 0.06 0.00 0.00 0.00
#> TCGA.L5.A8NL.01     2  0.0000      0.786 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00

Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.

consensus_heatmap(res, k = 2)

plot of chunk tab-node-0222-consensus-heatmap-1

consensus_heatmap(res, k = 3)

plot of chunk tab-node-0222-consensus-heatmap-2

consensus_heatmap(res, k = 4)

plot of chunk tab-node-0222-consensus-heatmap-3

consensus_heatmap(res, k = 5)

plot of chunk tab-node-0222-consensus-heatmap-4

consensus_heatmap(res, k = 6)

plot of chunk tab-node-0222-consensus-heatmap-5

consensus_heatmap(res, k = 7)

plot of chunk tab-node-0222-consensus-heatmap-6

consensus_heatmap(res, k = 8)

plot of chunk tab-node-0222-consensus-heatmap-7

Heatmaps for the membership of samples in all partitions to see how consistent they are:

membership_heatmap(res, k = 2)

plot of chunk tab-node-0222-membership-heatmap-1

membership_heatmap(res, k = 3)

plot of chunk tab-node-0222-membership-heatmap-2

membership_heatmap(res, k = 4)

plot of chunk tab-node-0222-membership-heatmap-3

membership_heatmap(res, k = 5)

plot of chunk tab-node-0222-membership-heatmap-4

membership_heatmap(res, k = 6)

plot of chunk tab-node-0222-membership-heatmap-5

membership_heatmap(res, k = 7)

plot of chunk tab-node-0222-membership-heatmap-6

membership_heatmap(res, k = 8)

plot of chunk tab-node-0222-membership-heatmap-7

As soon as the classes for columns are determined, the signatures that are significantly different between subgroups can be looked for. Following are the heatmaps for signatures.

get_signatures(res, k = 2)

plot of chunk tab-node-0222-get-signatures-1

get_signatures(res, k = 3)

plot of chunk tab-node-0222-get-signatures-2

get_signatures(res, k = 4)

plot of chunk tab-node-0222-get-signatures-3

get_signatures(res, k = 5)

plot of chunk tab-node-0222-get-signatures-4

get_signatures(res, k = 6)

plot of chunk tab-node-0222-get-signatures-5

get_signatures(res, k = 7)

plot of chunk tab-node-0222-get-signatures-6

get_signatures(res, k = 8)

plot of chunk tab-node-0222-get-signatures-7

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-0222-signature_compare

get_signature() returns a data frame invisibly. To get the list of signatures, the function call should be assigned to a variable explicitly. In following code, if plot argument is set to FALSE, no heatmap is plotted while only the differential analysis is performed.

# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)

An example of the output of tb is:

#>   which_row         fdr    mean_1    mean_2 scaled_mean_1 scaled_mean_2 km
#> 1        38 0.042760348  8.373488  9.131774    -0.5533452     0.5164555  1
#> 2        40 0.018707592  7.106213  8.469186    -0.6173731     0.5762149  1
#> 3        55 0.019134737 10.221463 11.207825    -0.6159697     0.5749050  1
#> 4        59 0.006059896  5.921854  7.869574    -0.6899429     0.6439467  1
#> 5        60 0.018055526  8.928898 10.211722    -0.6204761     0.5791110  1
#> 6        98 0.009384629 15.714769 14.887706     0.6635654    -0.6193277  2
...

The columns in tb are:

  1. which_row: row indices corresponding to the input matrix.
  2. fdr: FDR for the differential test.
  3. mean_x: The mean value in group x.
  4. scaled_mean_x: The mean value in group x after rows are scaled.
  5. km: Row groups if k-means clustering is applied to rows (which is done by automatically selecting number of clusters).

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs:

# code only for demonstration
# e.g. to show the top 500 most significant rows
tb = get_signature(res, k = ..., top_signatures = 500)

If the signatures are defined as these which are uniquely high in current group, diff_method argument can be set to "uniquely_high_in_one_group":

# code only for demonstration
tb = get_signature(res, k = ..., diff_method = "uniquely_high_in_one_group")

UMAP plot which shows how samples are separated.

dimension_reduction(res, k = 2, method = "UMAP")

plot of chunk tab-node-0222-dimension-reduction-1

dimension_reduction(res, k = 3, method = "UMAP")

plot of chunk tab-node-0222-dimension-reduction-2

dimension_reduction(res, k = 4, method = "UMAP")

plot of chunk tab-node-0222-dimension-reduction-3

dimension_reduction(res, k = 5, method = "UMAP")

plot of chunk tab-node-0222-dimension-reduction-4

dimension_reduction(res, k = 6, method = "UMAP")

plot of chunk tab-node-0222-dimension-reduction-5

dimension_reduction(res, k = 7, method = "UMAP")

plot of chunk tab-node-0222-dimension-reduction-6

dimension_reduction(res, k = 8, method = "UMAP")

plot of chunk tab-node-0222-dimension-reduction-7

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-0222-collect-classes

If matrix rows can be associated to genes, consider to use functional_enrichment(res, ...) to perform function enrichment for the signature genes. See this vignette for more detailed explanations.


Node02221

Parent node: Node0222. Child nodes: Node022211-leaf , Node022212-leaf .

The object with results only for a single top-value method and a single partitioning method can be extracted as:

res = res_rh["02221"]

A summary of res and all the functions that can be applied to it:

res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6, 7, 8.
#>   On a matrix with 30000 rows and 12 columns.
#>   Top rows (1000) are extracted by 'ATC' method.
#>   Subgroups are detected by 'kmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 5.
#> 
#> Following methods can be applied to this 'ConsensusPartition' object:
#>  [1] "cola_report"             "collect_classes"         "collect_plots"          
#>  [4] "collect_stats"           "colnames"                "compare_partitions"     
#>  [7] "compare_signatures"      "consensus_heatmap"       "dimension_reduction"    
#> [10] "functional_enrichment"   "get_anno_col"            "get_anno"               
#> [13] "get_classes"             "get_consensus"           "get_matrix"             
#> [16] "get_membership"          "get_param"               "get_signatures"         
#> [19] "get_stats"               "is_best_k"               "is_stable_k"            
#> [22] "membership_heatmap"      "ncol"                    "nrow"                   
#> [25] "plot_ecdf"               "predict_classes"         "rownames"               
#> [28] "select_partition_number" "show"                    "suggest_best_k"         
#> [31] "test_to_known_factors"   "top_rows_heatmap"

collect_plots() function collects all the plots made from res for all k (number of subgroups) into one single page to provide an easy and fast comparison between different k.

collect_plots(res)

plot of chunk node-02221-collect-plots

The plots are:

All the plots in panels can be made by individual functions and they are plotted later in this section.

select_partition_number() produces several plots showing different statistics for choosing “optimized” k. There are following statistics:

The detailed explanations of these statistics can be found in the cola vignette.

Generally speaking, higher 1-PAC score, higher mean silhouette score or higher concordance corresponds to better partition. Rand index and Jaccard index measure how similar the current partition is compared to partition with k-1. If they are too similar, we won't accept k is better than k-1.

select_partition_number(res)

plot of chunk node-02221-select-partition-number

The numeric values for all these statistics can be obtained by get_stats().

get_stats(res)
#>   k 1-PAC mean_silhouette concordance area_increased  Rand Jaccard
#> 2 2 1.000           1.000       1.000         0.4854 0.515   0.515
#> 3 3 0.727           0.738       0.847         0.2657 0.955   0.912
#> 4 4 0.818           0.899       0.967         0.2091 0.773   0.516
#> 5 5 0.909           0.799       0.953         0.0832 0.939   0.750
#> 6 6 0.879           0.643       0.882         0.0679 1.000   1.000
#> 7 7 0.864           0.632       0.817         0.0391 0.909   0.500
#> 8 8 0.833           0.558       0.885         0.0360 0.970   0.667

suggest_best_k() suggests the best \(k\) based on these statistics. The rules are as follows:

suggest_best_k(res)
#> [1] 5
#> attr(,"optional")
#> [1] 2

There is also optional best \(k\) = 2 that is worth to check.

Following is the table of the partitions (You need to click the show/hide code output link to see it). The membership matrix (columns with name p*) is inferred by clue::cl_consensus() function with the SE method. Basically the value in the membership matrix represents the probability to belong to a certain group. The finall subgroup label for an item is determined with the group with highest probability it belongs to.

In get_classes() function, the entropy is calculated from the membership matrix and the silhouette score is calculated from the consensus matrix.

show/hide code output

cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#>                 class entropy silhouette p1 p2
#> TCGA.L5.A4OE.01     2       0          1  0  1
#> TCGA.L5.A88Y.01     2       0          1  0  1
#> TCGA.L5.A4OW.01     2       0          1  0  1
#> TCGA.2H.A9GR.01     1       0          1  1  0
#> TCGA.L5.A8NV.01     1       0          1  1  0
#> TCGA.L5.A8NS.01     1       0          1  1  0
#> TCGA.L5.A893.01     2       0          1  0  1
#> TCGA.JY.A93E.01     1       0          1  1  0
#> TCGA.L5.A8NM.01     1       0          1  1  0
#> TCGA.V5.AASX.01     1       0          1  1  0
#> TCGA.L5.A8NG.01     1       0          1  1  0
#> TCGA.L5.A8NL.01     1       0          1  1  0

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette   p1   p2   p3
#> TCGA.L5.A4OE.01     3   0.628      0.000 0.00 0.46 0.54
#> TCGA.L5.A88Y.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.L5.A4OW.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.2H.A9GR.01     1   0.000      0.797 1.00 0.00 0.00
#> TCGA.L5.A8NV.01     1   0.000      0.797 1.00 0.00 0.00
#> TCGA.L5.A8NS.01     1   0.628      0.623 0.54 0.00 0.46
#> TCGA.L5.A893.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.JY.A93E.01     1   0.000      0.797 1.00 0.00 0.00
#> TCGA.L5.A8NM.01     1   0.000      0.797 1.00 0.00 0.00
#> TCGA.V5.AASX.01     1   0.628      0.623 0.54 0.00 0.46
#> TCGA.L5.A8NG.01     1   0.000      0.797 1.00 0.00 0.00
#> TCGA.L5.A8NL.01     1   0.628      0.623 0.54 0.00 0.46

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2 p3   p4
#> TCGA.L5.A4OE.01     3   0.000      0.000 0.00 0.00  1 0.00
#> TCGA.L5.A88Y.01     2   0.000      0.983 0.00 1.00  0 0.00
#> TCGA.L5.A4OW.01     2   0.000      0.983 0.00 1.00  0 0.00
#> TCGA.2H.A9GR.01     1   0.000      0.983 1.00 0.00  0 0.00
#> TCGA.L5.A8NV.01     1   0.000      0.983 1.00 0.00  0 0.00
#> TCGA.L5.A8NS.01     4   0.234      1.000 0.10 0.00  0 0.90
#> TCGA.L5.A893.01     2   0.121      0.965 0.00 0.96  0 0.04
#> TCGA.JY.A93E.01     1   0.000      0.983 1.00 0.00  0 0.00
#> TCGA.L5.A8NM.01     1   0.000      0.983 1.00 0.00  0 0.00
#> TCGA.V5.AASX.01     4   0.234      1.000 0.10 0.00  0 0.90
#> TCGA.L5.A8NG.01     1   0.164      0.928 0.94 0.00  0 0.06
#> TCGA.L5.A8NL.01     4   0.234      1.000 0.10 0.00  0 0.90

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1   p2 p3   p4   p5
#> TCGA.L5.A4OE.01     3   0.000      0.000 0.00 0.00  1 0.00 0.00
#> TCGA.L5.A88Y.01     2   0.000      0.900 0.00 1.00  0 0.00 0.00
#> TCGA.L5.A4OW.01     2   0.000      0.900 0.00 1.00  0 0.00 0.00
#> TCGA.2H.A9GR.01     1   0.000      1.000 1.00 0.00  0 0.00 0.00
#> TCGA.L5.A8NV.01     1   0.000      1.000 1.00 0.00  0 0.00 0.00
#> TCGA.L5.A8NS.01     4   0.141      1.000 0.06 0.00  0 0.94 0.00
#> TCGA.L5.A893.01     2   0.407      0.788 0.00 0.78  0 0.06 0.16
#> TCGA.JY.A93E.01     1   0.000      1.000 1.00 0.00  0 0.00 0.00
#> TCGA.L5.A8NM.01     1   0.000      1.000 1.00 0.00  0 0.00 0.00
#> TCGA.V5.AASX.01     4   0.141      1.000 0.06 0.00  0 0.94 0.00
#> TCGA.L5.A8NG.01     5   0.273      0.000 0.16 0.00  0 0.00 0.84
#> TCGA.L5.A8NL.01     4   0.141      1.000 0.06 0.00  0 0.94 0.00

show/hide code output

cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#>                 class entropy silhouette   p1   p2 p3  p4   p5   p6
#> TCGA.L5.A4OE.01     3  0.0000      0.000 0.00 0.00  1 0.0 0.00 0.00
#> TCGA.L5.A88Y.01     2  0.0000      0.895 0.00 1.00  0 0.0 0.00 0.00
#> TCGA.L5.A4OW.01     2  0.0547      0.895 0.00 0.98  0 0.0 0.02 0.00
#> TCGA.2H.A9GR.01     1  0.3706      0.733 0.62 0.00  0 0.0 0.00 0.38
#> TCGA.L5.A8NV.01     1  0.3706      0.733 0.62 0.00  0 0.0 0.00 0.38
#> TCGA.L5.A8NS.01     4  0.0000      0.811 0.00 0.00  0 1.0 0.00 0.00
#> TCGA.L5.A893.01     2  0.2941      0.794 0.00 0.78  0 0.0 0.00 0.22
#> TCGA.JY.A93E.01     1  0.0000      0.733 1.00 0.00  0 0.0 0.00 0.00
#> TCGA.L5.A8NM.01     1  0.0000      0.733 1.00 0.00  0 0.0 0.00 0.00
#> TCGA.V5.AASX.01     4  0.3756      0.580 0.00 0.00  0 0.6 0.00 0.40
#> TCGA.L5.A8NG.01     5  0.0547      0.000 0.02 0.00  0 0.0 0.98 0.00
#> TCGA.L5.A8NL.01     4  0.0000      0.811 0.00 0.00  0 1.0 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 7), get_membership(res, k = 7))
#>                 class entropy silhouette   p1   p2 p3   p4 p5   p6   p7
#> TCGA.L5.A4OE.01     3   0.000      0.000 0.00 0.00  1 0.00  0 0.00 0.00
#> TCGA.L5.A88Y.01     2   0.540      0.688 0.00 0.44  0 0.20  0 0.36 0.00
#> TCGA.L5.A4OW.01     2   0.549      0.688 0.00 0.44  0 0.32  0 0.24 0.00
#> TCGA.2H.A9GR.01     1   0.000      1.000 1.00 0.00  0 0.00  0 0.00 0.00
#> TCGA.L5.A8NV.01     1   0.000      1.000 1.00 0.00  0 0.00  0 0.00 0.00
#> TCGA.L5.A8NS.01     4   0.449      0.900 0.00 0.00  0 0.60  0 0.08 0.32
#> TCGA.L5.A893.01     2   0.000      0.414 0.00 1.00  0 0.00  0 0.00 0.00
#> TCGA.JY.A93E.01     6   0.352      1.000 0.44 0.00  0 0.00  0 0.56 0.00
#> TCGA.L5.A8NM.01     6   0.352      1.000 0.44 0.00  0 0.00  0 0.56 0.00
#> TCGA.V5.AASX.01     7   0.000      0.000 0.00 0.00  0 0.00  0 0.00 1.00
#> TCGA.L5.A8NG.01     5   0.000      0.000 0.00 0.00  0 0.00  1 0.00 0.00
#> TCGA.L5.A8NL.01     4   0.322      0.900 0.00 0.00  0 0.68  0 0.00 0.32

show/hide code output

cbind(get_classes(res, k = 8), get_membership(res, k = 8))
#>                 class entropy silhouette   p1   p2 p3   p4 p5   p6  p7   p8
#> TCGA.L5.A4OE.01     3  0.0000      0.000 0.00 0.00  1 0.00  0 0.00 0.0 0.00
#> TCGA.L5.A88Y.01     2  0.3263      0.708 0.12 0.78  0 0.00  0 0.00 0.1 0.00
#> TCGA.L5.A4OW.01     2  0.0000      0.708 0.00 1.00  0 0.00  0 0.00 0.0 0.00
#> TCGA.2H.A9GR.01     1  0.2267      0.892 0.82 0.00  0 0.00  0 0.18 0.0 0.00
#> TCGA.L5.A8NV.01     1  0.3909      0.892 0.70 0.00  0 0.00  0 0.18 0.0 0.12
#> TCGA.L5.A8NS.01     4  0.0000      0.763 0.00 0.00  0 1.00  0 0.00 0.0 0.00
#> TCGA.L5.A893.01     8  0.3015      0.000 0.00 0.32  0 0.00  0 0.00 0.0 0.68
#> TCGA.JY.A93E.01     6  0.0000      0.982 0.00 0.00  0 0.00  0 1.00 0.0 0.00
#> TCGA.L5.A8NM.01     6  0.0471      0.982 0.00 0.00  0 0.00  0 0.98 0.0 0.02
#> TCGA.V5.AASX.01     7  0.1563      0.000 0.00 0.00  0 0.10  0 0.00 0.9 0.00
#> TCGA.L5.A8NG.01     5  0.0000      0.000 0.00 0.00  0 0.00  1 0.00 0.0 0.00
#> TCGA.L5.A8NL.01     4  0.3299      0.763 0.06 0.00  0 0.76  0 0.00 0.0 0.18

Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.

consensus_heatmap(res, k = 2)

plot of chunk tab-node-02221-consensus-heatmap-1

consensus_heatmap(res, k = 3)

plot of chunk tab-node-02221-consensus-heatmap-2

consensus_heatmap(res, k = 4)

plot of chunk tab-node-02221-consensus-heatmap-3

consensus_heatmap(res, k = 5)

plot of chunk tab-node-02221-consensus-heatmap-4

consensus_heatmap(res, k = 6)

plot of chunk tab-node-02221-consensus-heatmap-5

consensus_heatmap(res, k = 7)

plot of chunk tab-node-02221-consensus-heatmap-6

consensus_heatmap(res, k = 8)

plot of chunk tab-node-02221-consensus-heatmap-7

Heatmaps for the membership of samples in all partitions to see how consistent they are:

membership_heatmap(res, k = 2)

plot of chunk tab-node-02221-membership-heatmap-1

membership_heatmap(res, k = 3)

plot of chunk tab-node-02221-membership-heatmap-2

membership_heatmap(res, k = 4)

plot of chunk tab-node-02221-membership-heatmap-3

membership_heatmap(res, k = 5)

plot of chunk tab-node-02221-membership-heatmap-4

membership_heatmap(res, k = 6)

plot of chunk tab-node-02221-membership-heatmap-5

membership_heatmap(res, k = 7)

plot of chunk tab-node-02221-membership-heatmap-6

membership_heatmap(res, k = 8)

plot of chunk tab-node-02221-membership-heatmap-7

As soon as the classes for columns are determined, the signatures that are significantly different between subgroups can be looked for. Following are the heatmaps for signatures.

get_signatures(res, k = 2)

plot of chunk tab-node-02221-get-signatures-1

get_signatures(res, k = 3)

plot of chunk tab-node-02221-get-signatures-2

get_signatures(res, k = 4)

plot of chunk tab-node-02221-get-signatures-3

get_signatures(res, k = 5)

plot of chunk tab-node-02221-get-signatures-4

get_signatures(res, k = 6)

plot of chunk tab-node-02221-get-signatures-5

get_signatures(res, k = 7)

plot of chunk tab-node-02221-get-signatures-6

get_signatures(res, k = 8)

plot of chunk tab-node-02221-get-signatures-7

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-02221-signature_compare

get_signature() returns a data frame invisibly. To get the list of signatures, the function call should be assigned to a variable explicitly. In following code, if plot argument is set to FALSE, no heatmap is plotted while only the differential analysis is performed.

# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)

An example of the output of tb is:

#>   which_row         fdr    mean_1    mean_2 scaled_mean_1 scaled_mean_2 km
#> 1        38 0.042760348  8.373488  9.131774    -0.5533452     0.5164555  1
#> 2        40 0.018707592  7.106213  8.469186    -0.6173731     0.5762149  1
#> 3        55 0.019134737 10.221463 11.207825    -0.6159697     0.5749050  1
#> 4        59 0.006059896  5.921854  7.869574    -0.6899429     0.6439467  1
#> 5        60 0.018055526  8.928898 10.211722    -0.6204761     0.5791110  1
#> 6        98 0.009384629 15.714769 14.887706     0.6635654    -0.6193277  2
...

The columns in tb are:

  1. which_row: row indices corresponding to the input matrix.
  2. fdr: FDR for the differential test.
  3. mean_x: The mean value in group x.
  4. scaled_mean_x: The mean value in group x after rows are scaled.
  5. km: Row groups if k-means clustering is applied to rows (which is done by automatically selecting number of clusters).

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs:

# code only for demonstration
# e.g. to show the top 500 most significant rows
tb = get_signature(res, k = ..., top_signatures = 500)

If the signatures are defined as these which are uniquely high in current group, diff_method argument can be set to "uniquely_high_in_one_group":

# code only for demonstration
tb = get_signature(res, k = ..., diff_method = "uniquely_high_in_one_group")

UMAP plot which shows how samples are separated.

dimension_reduction(res, k = 2, method = "UMAP")

plot of chunk tab-node-02221-dimension-reduction-1

dimension_reduction(res, k = 3, method = "UMAP")

plot of chunk tab-node-02221-dimension-reduction-2

dimension_reduction(res, k = 4, method = "UMAP")

plot of chunk tab-node-02221-dimension-reduction-3

dimension_reduction(res, k = 5, method = "UMAP")

plot of chunk tab-node-02221-dimension-reduction-4

dimension_reduction(res, k = 6, method = "UMAP")

plot of chunk tab-node-02221-dimension-reduction-5

dimension_reduction(res, k = 7, method = "UMAP")

plot of chunk tab-node-02221-dimension-reduction-6

dimension_reduction(res, k = 8, method = "UMAP")

plot of chunk tab-node-02221-dimension-reduction-7

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-02221-collect-classes

If matrix rows can be associated to genes, consider to use functional_enrichment(res, ...) to perform function enrichment for the signature genes. See this vignette for more detailed explanations.


Node023

Parent node: Node02. Child nodes: Node0111-leaf , Node0112-leaf , Node0113-leaf , Node0121-leaf , Node0122-leaf , Node0123-leaf , Node0131-leaf , Node0132-leaf , Node0133-leaf , Node0211-leaf , Node0212-leaf , Node0221-leaf , Node0222 , Node0223-leaf , Node0231-leaf , Node0232-leaf , Node0233-leaf .

The object with results only for a single top-value method and a single partitioning method can be extracted as:

res = res_rh["023"]

A summary of res and all the functions that can be applied to it:

res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6, 7, 8.
#>   On a matrix with 30000 rows and 14 columns.
#>   Top rows (1000) are extracted by 'ATC' method.
#>   Subgroups are detected by 'kmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 3.
#> 
#> Following methods can be applied to this 'ConsensusPartition' object:
#>  [1] "cola_report"             "collect_classes"         "collect_plots"          
#>  [4] "collect_stats"           "colnames"                "compare_partitions"     
#>  [7] "compare_signatures"      "consensus_heatmap"       "dimension_reduction"    
#> [10] "functional_enrichment"   "get_anno_col"            "get_anno"               
#> [13] "get_classes"             "get_consensus"           "get_matrix"             
#> [16] "get_membership"          "get_param"               "get_signatures"         
#> [19] "get_stats"               "is_best_k"               "is_stable_k"            
#> [22] "membership_heatmap"      "ncol"                    "nrow"                   
#> [25] "plot_ecdf"               "predict_classes"         "rownames"               
#> [28] "select_partition_number" "show"                    "suggest_best_k"         
#> [31] "test_to_known_factors"   "top_rows_heatmap"

collect_plots() function collects all the plots made from res for all k (number of subgroups) into one single page to provide an easy and fast comparison between different k.

collect_plots(res)

plot of chunk node-023-collect-plots

The plots are:

All the plots in panels can be made by individual functions and they are plotted later in this section.

select_partition_number() produces several plots showing different statistics for choosing “optimized” k. There are following statistics:

The detailed explanations of these statistics can be found in the cola vignette.

Generally speaking, higher 1-PAC score, higher mean silhouette score or higher concordance corresponds to better partition. Rand index and Jaccard index measure how similar the current partition is compared to partition with k-1. If they are too similar, we won't accept k is better than k-1.

select_partition_number(res)

plot of chunk node-023-select-partition-number

The numeric values for all these statistics can be obtained by get_stats().

get_stats(res)
#>   k 1-PAC mean_silhouette concordance area_increased  Rand Jaccard
#> 2 2 0.857           0.917       0.970         0.5343 0.462   0.462
#> 3 3 1.000           1.000       1.000         0.2552 0.868   0.714
#> 4 4 0.945           0.897       0.966         0.0366 0.978   0.933
#> 5 5 0.879           0.815       0.951         0.0759 0.934   0.786
#> 6 6 0.857           0.799       0.901         0.0981 0.912   0.636
#> 7 7 0.813           0.447       0.787         0.0371 0.945   0.667
#> 8 8 0.802           0.436       0.857         0.0472 0.989   0.909

suggest_best_k() suggests the best \(k\) based on these statistics. The rules are as follows:

suggest_best_k(res)
#> [1] 3

Following is the table of the partitions (You need to click the show/hide code output link to see it). The membership matrix (columns with name p*) is inferred by clue::cl_consensus() function with the SE method. Basically the value in the membership matrix represents the probability to belong to a certain group. The finall subgroup label for an item is determined with the group with highest probability it belongs to.

In get_classes() function, the entropy is calculated from the membership matrix and the silhouette score is calculated from the consensus matrix.

show/hide code output

cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#>                 class entropy silhouette   p1   p2
#> TCGA.L5.A43I.01     1   0.000      1.000 1.00 0.00
#> TCGA.L5.A4OH.01     2   0.000      0.927 0.00 1.00
#> TCGA.L5.A4OP.01     2   0.000      0.927 0.00 1.00
#> TCGA.L5.A4OR.01     1   0.000      1.000 1.00 0.00
#> TCGA.V5.A7RE.01     1   0.000      1.000 1.00 0.00
#> TCGA.V5.A7RE.11     1   0.000      1.000 1.00 0.00
#> TCGA.IG.A4QS.01     1   0.000      1.000 1.00 0.00
#> TCGA.L5.A8NH.01     1   0.000      1.000 1.00 0.00
#> TCGA.R6.A6XG.01     2   0.000      0.927 0.00 1.00
#> TCGA.R6.A8W8.01     2   0.981      0.276 0.42 0.58
#> TCGA.2H.A9GF.01     2   0.000      0.927 0.00 1.00
#> TCGA.VR.AA4D.01     2   0.000      0.927 0.00 1.00
#> TCGA.2H.A9GM.01     1   0.000      1.000 1.00 0.00
#> TCGA.IC.A6RE.01     2   0.000      0.927 0.00 1.00

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette p1 p2 p3
#> TCGA.L5.A43I.01     1       0          1  1  0  0
#> TCGA.L5.A4OH.01     3       0          1  0  0  1
#> TCGA.L5.A4OP.01     2       0          1  0  1  0
#> TCGA.L5.A4OR.01     1       0          1  1  0  0
#> TCGA.V5.A7RE.01     1       0          1  1  0  0
#> TCGA.V5.A7RE.11     1       0          1  1  0  0
#> TCGA.IG.A4QS.01     1       0          1  1  0  0
#> TCGA.L5.A8NH.01     1       0          1  1  0  0
#> TCGA.R6.A6XG.01     2       0          1  0  1  0
#> TCGA.R6.A8W8.01     3       0          1  0  0  1
#> TCGA.2H.A9GF.01     2       0          1  0  1  0
#> TCGA.VR.AA4D.01     2       0          1  0  1  0
#> TCGA.2H.A9GM.01     1       0          1  1  0  0
#> TCGA.IC.A6RE.01     3       0          1  0  0  1

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette p1   p2   p3   p4
#> TCGA.L5.A43I.01     1   0.000      1.000  1 0.00 0.00 0.00
#> TCGA.L5.A4OH.01     3   0.000      1.000  0 0.00 1.00 0.00
#> TCGA.L5.A4OP.01     2   0.000      0.926  0 1.00 0.00 0.00
#> TCGA.L5.A4OR.01     1   0.000      1.000  1 0.00 0.00 0.00
#> TCGA.V5.A7RE.01     1   0.000      1.000  1 0.00 0.00 0.00
#> TCGA.V5.A7RE.11     1   0.000      1.000  1 0.00 0.00 0.00
#> TCGA.IG.A4QS.01     1   0.000      1.000  1 0.00 0.00 0.00
#> TCGA.L5.A8NH.01     1   0.000      1.000  1 0.00 0.00 0.00
#> TCGA.R6.A6XG.01     2   0.361      0.798  0 0.80 0.00 0.20
#> TCGA.R6.A8W8.01     4   0.398      0.000  0 0.00 0.24 0.76
#> TCGA.2H.A9GF.01     2   0.121      0.911  0 0.96 0.00 0.04
#> TCGA.VR.AA4D.01     2   0.000      0.926  0 1.00 0.00 0.00
#> TCGA.2H.A9GM.01     1   0.000      1.000  1 0.00 0.00 0.00
#> TCGA.IC.A6RE.01     3   0.000      1.000  0 0.00 1.00 0.00

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1   p2   p3   p4   p5
#> TCGA.L5.A43I.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OH.01     3  0.0000      1.000 0.00 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OP.01     2  0.0000      0.895 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OR.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.V5.A7RE.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.V5.A7RE.11     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A4QS.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NH.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.R6.A6XG.01     2  0.3109      0.786 0.00 0.80 0.00 0.00 0.20
#> TCGA.R6.A8W8.01     4  0.0609      0.000 0.00 0.00 0.02 0.98 0.00
#> TCGA.2H.A9GF.01     2  0.2873      0.832 0.00 0.86 0.00 0.02 0.12
#> TCGA.VR.AA4D.01     2  0.0000      0.895 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GM.01     5  0.3895      0.000 0.32 0.00 0.00 0.00 0.68
#> TCGA.IC.A6RE.01     3  0.0000      1.000 0.00 0.00 1.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6
#> TCGA.L5.A43I.01     1  0.3797      1.000 0.58 0.00 0.00 0.00 0.00 0.42
#> TCGA.L5.A4OH.01     3  0.0000      1.000 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OP.01     2  0.0547      0.854 0.00 0.98 0.00 0.02 0.00 0.00
#> TCGA.L5.A4OR.01     1  0.3797      1.000 0.58 0.00 0.00 0.00 0.00 0.42
#> TCGA.V5.A7RE.01     6  0.0000      1.000 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.V5.A7RE.11     6  0.0000      1.000 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.IG.A4QS.01     1  0.3797      1.000 0.58 0.00 0.00 0.00 0.00 0.42
#> TCGA.L5.A8NH.01     1  0.3797      1.000 0.58 0.00 0.00 0.00 0.00 0.42
#> TCGA.R6.A6XG.01     2  0.3679      0.733 0.20 0.76 0.00 0.00 0.04 0.00
#> TCGA.R6.A8W8.01     4  0.0547      0.000 0.00 0.00 0.02 0.98 0.00 0.00
#> TCGA.2H.A9GF.01     2  0.2941      0.749 0.22 0.78 0.00 0.00 0.00 0.00
#> TCGA.VR.AA4D.01     2  0.0000      0.854 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GM.01     5  0.0937      0.000 0.00 0.00 0.00 0.00 0.96 0.04
#> TCGA.IC.A6RE.01     3  0.0000      1.000 0.00 0.00 1.00 0.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 7), get_membership(res, k = 7))
#>                 class entropy silhouette   p1   p2   p3 p4   p5   p6   p7
#> TCGA.L5.A43I.01     1  0.2259      0.709 0.84 0.00 0.00  0 0.00 0.00 0.16
#> TCGA.L5.A4OH.01     3  0.1363      0.950 0.00 0.00 0.94  0 0.02 0.00 0.04
#> TCGA.L5.A4OP.01     2  0.0863      0.766 0.00 0.96 0.00  0 0.04 0.00 0.00
#> TCGA.L5.A4OR.01     1  0.0000      0.918 1.00 0.00 0.00  0 0.00 0.00 0.00
#> TCGA.V5.A7RE.01     6  0.5589     -0.766 0.32 0.00 0.00  0 0.00 0.40 0.28
#> TCGA.V5.A7RE.11     7  0.4850      0.000 0.32 0.00 0.00  0 0.00 0.12 0.56
#> TCGA.IG.A4QS.01     1  0.0000      0.918 1.00 0.00 0.00  0 0.00 0.00 0.00
#> TCGA.L5.A8NH.01     1  0.0000      0.918 1.00 0.00 0.00  0 0.00 0.00 0.00
#> TCGA.R6.A6XG.01     6  0.3459     -0.418 0.00 0.40 0.00  0 0.00 0.60 0.00
#> TCGA.R6.A8W8.01     4  0.0000      0.000 0.00 0.00 0.00  1 0.00 0.00 0.00
#> TCGA.2H.A9GF.01     2  0.3459      0.544 0.00 0.60 0.00  0 0.00 0.00 0.40
#> TCGA.VR.AA4D.01     2  0.0000      0.766 0.00 1.00 0.00  0 0.00 0.00 0.00
#> TCGA.2H.A9GM.01     5  0.1166      0.000 0.06 0.00 0.00  0 0.94 0.00 0.00
#> TCGA.IC.A6RE.01     3  0.0000      0.950 0.00 0.00 1.00  0 0.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 8), get_membership(res, k = 8))
#>                 class entropy silhouette   p1   p2  p3 p4 p5   p6   p7   p8
#> TCGA.L5.A43I.01     1   0.507      0.287 0.56 0.00 0.0  0  0 0.02 0.24 0.18
#> TCGA.L5.A4OH.01     3   0.000      0.916 0.00 0.00 1.0  0  0 0.00 0.00 0.00
#> TCGA.L5.A4OP.01     2   0.134      0.597 0.00 0.92 0.0  0  0 0.00 0.08 0.00
#> TCGA.L5.A4OR.01     1   0.000      0.836 1.00 0.00 0.0  0  0 0.00 0.00 0.00
#> TCGA.V5.A7RE.01     6   0.448      0.000 0.10 0.00 0.0  0  0 0.54 0.36 0.00
#> TCGA.V5.A7RE.11     7   0.156      0.000 0.10 0.00 0.0  0  0 0.00 0.90 0.00
#> TCGA.IG.A4QS.01     1   0.000      0.836 1.00 0.00 0.0  0  0 0.00 0.00 0.00
#> TCGA.L5.A8NH.01     1   0.000      0.836 1.00 0.00 0.0  0  0 0.00 0.00 0.00
#> TCGA.R6.A6XG.01     8   0.301      0.000 0.00 0.32 0.0  0  0 0.00 0.00 0.68
#> TCGA.R6.A8W8.01     4   0.000      0.000 0.00 0.00 0.0  1  0 0.00 0.00 0.00
#> TCGA.2H.A9GF.01     2   0.454      0.283 0.00 0.50 0.0  0  0 0.40 0.00 0.10
#> TCGA.VR.AA4D.01     2   0.000      0.597 0.00 1.00 0.0  0  0 0.00 0.00 0.00
#> TCGA.2H.A9GM.01     5   0.000      0.000 0.00 0.00 0.0  0  1 0.00 0.00 0.00
#> TCGA.IC.A6RE.01     3   0.207      0.916 0.00 0.00 0.9  0  0 0.04 0.02 0.04

Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.

consensus_heatmap(res, k = 2)

plot of chunk tab-node-023-consensus-heatmap-1

consensus_heatmap(res, k = 3)

plot of chunk tab-node-023-consensus-heatmap-2

consensus_heatmap(res, k = 4)

plot of chunk tab-node-023-consensus-heatmap-3

consensus_heatmap(res, k = 5)

plot of chunk tab-node-023-consensus-heatmap-4

consensus_heatmap(res, k = 6)

plot of chunk tab-node-023-consensus-heatmap-5

consensus_heatmap(res, k = 7)

plot of chunk tab-node-023-consensus-heatmap-6

consensus_heatmap(res, k = 8)

plot of chunk tab-node-023-consensus-heatmap-7

Heatmaps for the membership of samples in all partitions to see how consistent they are:

membership_heatmap(res, k = 2)

plot of chunk tab-node-023-membership-heatmap-1

membership_heatmap(res, k = 3)

plot of chunk tab-node-023-membership-heatmap-2

membership_heatmap(res, k = 4)

plot of chunk tab-node-023-membership-heatmap-3

membership_heatmap(res, k = 5)

plot of chunk tab-node-023-membership-heatmap-4

membership_heatmap(res, k = 6)

plot of chunk tab-node-023-membership-heatmap-5

membership_heatmap(res, k = 7)

plot of chunk tab-node-023-membership-heatmap-6

membership_heatmap(res, k = 8)

plot of chunk tab-node-023-membership-heatmap-7

As soon as the classes for columns are determined, the signatures that are significantly different between subgroups can be looked for. Following are the heatmaps for signatures.

get_signatures(res, k = 2)

plot of chunk tab-node-023-get-signatures-1

get_signatures(res, k = 3)

plot of chunk tab-node-023-get-signatures-2

get_signatures(res, k = 4)

plot of chunk tab-node-023-get-signatures-3

get_signatures(res, k = 5)

plot of chunk tab-node-023-get-signatures-4

get_signatures(res, k = 6)

plot of chunk tab-node-023-get-signatures-5

get_signatures(res, k = 7)

plot of chunk tab-node-023-get-signatures-6

get_signatures(res, k = 8)

plot of chunk tab-node-023-get-signatures-7

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-023-signature_compare

get_signature() returns a data frame invisibly. To get the list of signatures, the function call should be assigned to a variable explicitly. In following code, if plot argument is set to FALSE, no heatmap is plotted while only the differential analysis is performed.

# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)

An example of the output of tb is:

#>   which_row         fdr    mean_1    mean_2 scaled_mean_1 scaled_mean_2 km
#> 1        38 0.042760348  8.373488  9.131774    -0.5533452     0.5164555  1
#> 2        40 0.018707592  7.106213  8.469186    -0.6173731     0.5762149  1
#> 3        55 0.019134737 10.221463 11.207825    -0.6159697     0.5749050  1
#> 4        59 0.006059896  5.921854  7.869574    -0.6899429     0.6439467  1
#> 5        60 0.018055526  8.928898 10.211722    -0.6204761     0.5791110  1
#> 6        98 0.009384629 15.714769 14.887706     0.6635654    -0.6193277  2
...

The columns in tb are:

  1. which_row: row indices corresponding to the input matrix.
  2. fdr: FDR for the differential test.
  3. mean_x: The mean value in group x.
  4. scaled_mean_x: The mean value in group x after rows are scaled.
  5. km: Row groups if k-means clustering is applied to rows (which is done by automatically selecting number of clusters).

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs:

# code only for demonstration
# e.g. to show the top 500 most significant rows
tb = get_signature(res, k = ..., top_signatures = 500)

If the signatures are defined as these which are uniquely high in current group, diff_method argument can be set to "uniquely_high_in_one_group":

# code only for demonstration
tb = get_signature(res, k = ..., diff_method = "uniquely_high_in_one_group")

UMAP plot which shows how samples are separated.

dimension_reduction(res, k = 2, method = "UMAP")

plot of chunk tab-node-023-dimension-reduction-1

dimension_reduction(res, k = 3, method = "UMAP")

plot of chunk tab-node-023-dimension-reduction-2

dimension_reduction(res, k = 4, method = "UMAP")

plot of chunk tab-node-023-dimension-reduction-3

dimension_reduction(res, k = 5, method = "UMAP")

plot of chunk tab-node-023-dimension-reduction-4

dimension_reduction(res, k = 6, method = "UMAP")

plot of chunk tab-node-023-dimension-reduction-5

dimension_reduction(res, k = 7, method = "UMAP")

plot of chunk tab-node-023-dimension-reduction-6

dimension_reduction(res, k = 8, method = "UMAP")

plot of chunk tab-node-023-dimension-reduction-7

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-023-collect-classes

If matrix rows can be associated to genes, consider to use functional_enrichment(res, ...) to perform function enrichment for the signature genes. See this vignette for more detailed explanations.


Node03

Parent node: Node0. Child nodes: Node011 , Node012 , Node013 , Node021 , Node022 , Node023 , Node031-leaf , Node032-leaf , Node033-leaf , Node034-leaf , Node035-leaf , Node041-leaf , Node042-leaf , Node043-leaf , Node051-leaf , Node052-leaf , Node053-leaf .

The object with results only for a single top-value method and a single partitioning method can be extracted as:

res = res_rh["03"]

A summary of res and all the functions that can be applied to it:

res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6, 7, 8.
#>   On a matrix with 30000 rows and 20 columns.
#>   Top rows (1000) are extracted by 'SD' method.
#>   Subgroups are detected by 'skmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 5.
#> 
#> Following methods can be applied to this 'ConsensusPartition' object:
#>  [1] "cola_report"             "collect_classes"         "collect_plots"          
#>  [4] "collect_stats"           "colnames"                "compare_partitions"     
#>  [7] "compare_signatures"      "consensus_heatmap"       "dimension_reduction"    
#> [10] "functional_enrichment"   "get_anno_col"            "get_anno"               
#> [13] "get_classes"             "get_consensus"           "get_matrix"             
#> [16] "get_membership"          "get_param"               "get_signatures"         
#> [19] "get_stats"               "is_best_k"               "is_stable_k"            
#> [22] "membership_heatmap"      "ncol"                    "nrow"                   
#> [25] "plot_ecdf"               "predict_classes"         "rownames"               
#> [28] "select_partition_number" "show"                    "suggest_best_k"         
#> [31] "test_to_known_factors"   "top_rows_heatmap"

collect_plots() function collects all the plots made from res for all k (number of subgroups) into one single page to provide an easy and fast comparison between different k.

collect_plots(res)

plot of chunk node-03-collect-plots

The plots are:

All the plots in panels can be made by individual functions and they are plotted later in this section.

select_partition_number() produces several plots showing different statistics for choosing “optimized” k. There are following statistics:

The detailed explanations of these statistics can be found in the cola vignette.

Generally speaking, higher 1-PAC score, higher mean silhouette score or higher concordance corresponds to better partition. Rand index and Jaccard index measure how similar the current partition is compared to partition with k-1. If they are too similar, we won't accept k is better than k-1.

select_partition_number(res)

plot of chunk node-03-select-partition-number

The numeric values for all these statistics can be obtained by get_stats().

get_stats(res)
#>   k 1-PAC mean_silhouette concordance area_increased  Rand Jaccard
#> 2 2 1.000           1.000       1.000         0.5215 0.479   0.479
#> 3 3 1.000           1.000       1.000         0.2016 0.895   0.780
#> 4 4 1.000           1.000       1.000         0.2349 0.853   0.606
#> 5 5 0.932           0.968       0.971         0.0661 0.947   0.767
#> 6 6 0.926           0.884       0.950         0.0285 0.979   0.879
#> 7 7 0.921           0.835       0.945         0.0229 0.984   0.897
#> 8 8 0.900           0.759       0.928         0.0236 0.979   0.846

suggest_best_k() suggests the best \(k\) based on these statistics. The rules are as follows:

suggest_best_k(res)
#> [1] 5
#> attr(,"optional")
#> [1] 2 3 4

There is also optional best \(k\) = 2 3 4 that is worth to check.

Following is the table of the partitions (You need to click the show/hide code output link to see it). The membership matrix (columns with name p*) is inferred by clue::cl_consensus() function with the SE method. Basically the value in the membership matrix represents the probability to belong to a certain group. The finall subgroup label for an item is determined with the group with highest probability it belongs to.

In get_classes() function, the entropy is calculated from the membership matrix and the silhouette score is calculated from the consensus matrix.

show/hide code output

cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#>                 class entropy silhouette p1 p2
#> TCGA.Z6.AAPN.01     2       0          1  0  1
#> TCGA.L5.A43C.11     1       0          1  1  0
#> TCGA.VR.A8ET.01     2       0          1  0  1
#> TCGA.L5.A4OH.11     1       0          1  1  0
#> TCGA.L5.A4OE.11     1       0          1  1  0
#> TCGA.L5.A88T.01     2       0          1  0  1
#> TCGA.L5.A4ON.11     2       0          1  0  1
#> TCGA.L5.A4OQ.11     2       0          1  0  1
#> TCGA.L5.A4OI.11     1       0          1  1  0
#> TCGA.IG.A4QT.01     2       0          1  0  1
#> TCGA.L5.A4OF.11     1       0          1  1  0
#> TCGA.L5.A4OJ.11     1       0          1  1  0
#> TCGA.L5.A4OM.11     1       0          1  1  0
#> TCGA.L5.A4OP.11     1       0          1  1  0
#> TCGA.IG.A3I8.11     2       0          1  0  1
#> TCGA.L5.A4OG.11     1       0          1  1  0
#> TCGA.IG.A7DP.01     2       0          1  0  1
#> TCGA.LN.A9FP.01     2       0          1  0  1
#> TCGA.IC.A6RE.11     2       0          1  0  1
#> TCGA.L5.A4OS.01     2       0          1  0  1

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette p1 p2 p3
#> TCGA.Z6.AAPN.01     2       0          1  0  1  0
#> TCGA.L5.A43C.11     1       0          1  1  0  0
#> TCGA.VR.A8ET.01     2       0          1  0  1  0
#> TCGA.L5.A4OH.11     1       0          1  1  0  0
#> TCGA.L5.A4OE.11     1       0          1  1  0  0
#> TCGA.L5.A88T.01     2       0          1  0  1  0
#> TCGA.L5.A4ON.11     2       0          1  0  1  0
#> TCGA.L5.A4OQ.11     2       0          1  0  1  0
#> TCGA.L5.A4OI.11     1       0          1  1  0  0
#> TCGA.IG.A4QT.01     2       0          1  0  1  0
#> TCGA.L5.A4OF.11     1       0          1  1  0  0
#> TCGA.L5.A4OJ.11     3       0          1  0  0  1
#> TCGA.L5.A4OM.11     3       0          1  0  0  1
#> TCGA.L5.A4OP.11     3       0          1  0  0  1
#> TCGA.IG.A3I8.11     2       0          1  0  1  0
#> TCGA.L5.A4OG.11     3       0          1  0  0  1
#> TCGA.IG.A7DP.01     2       0          1  0  1  0
#> TCGA.LN.A9FP.01     2       0          1  0  1  0
#> TCGA.IC.A6RE.11     2       0          1  0  1  0
#> TCGA.L5.A4OS.01     2       0          1  0  1  0

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette p1 p2 p3 p4
#> TCGA.Z6.AAPN.01     2       0          1  0  1  0  0
#> TCGA.L5.A43C.11     1       0          1  1  0  0  0
#> TCGA.VR.A8ET.01     2       0          1  0  1  0  0
#> TCGA.L5.A4OH.11     1       0          1  1  0  0  0
#> TCGA.L5.A4OE.11     1       0          1  1  0  0  0
#> TCGA.L5.A88T.01     2       0          1  0  1  0  0
#> TCGA.L5.A4ON.11     2       0          1  0  1  0  0
#> TCGA.L5.A4OQ.11     2       0          1  0  1  0  0
#> TCGA.L5.A4OI.11     1       0          1  1  0  0  0
#> TCGA.IG.A4QT.01     2       0          1  0  1  0  0
#> TCGA.L5.A4OF.11     1       0          1  1  0  0  0
#> TCGA.L5.A4OJ.11     3       0          1  0  0  1  0
#> TCGA.L5.A4OM.11     3       0          1  0  0  1  0
#> TCGA.L5.A4OP.11     3       0          1  0  0  1  0
#> TCGA.IG.A3I8.11     4       0          1  0  0  0  1
#> TCGA.L5.A4OG.11     3       0          1  0  0  1  0
#> TCGA.IG.A7DP.01     4       0          1  0  0  0  1
#> TCGA.LN.A9FP.01     4       0          1  0  0  0  1
#> TCGA.IC.A6RE.11     2       0          1  0  1  0  0
#> TCGA.L5.A4OS.01     4       0          1  0  0  0  1

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette p1   p2   p3   p4   p5
#> TCGA.Z6.AAPN.01     2  0.2516      0.883  0 0.86 0.00 0.00 0.14
#> TCGA.L5.A43C.11     1  0.0000      1.000  1 0.00 0.00 0.00 0.00
#> TCGA.VR.A8ET.01     2  0.2020      0.912  0 0.90 0.00 0.00 0.10
#> TCGA.L5.A4OH.11     1  0.0000      1.000  1 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OE.11     1  0.0000      1.000  1 0.00 0.00 0.00 0.00
#> TCGA.L5.A88T.01     5  0.1410      0.975  0 0.06 0.00 0.00 0.94
#> TCGA.L5.A4ON.11     2  0.0609      0.896  0 0.98 0.00 0.00 0.02
#> TCGA.L5.A4OQ.11     2  0.1043      0.883  0 0.96 0.00 0.00 0.04
#> TCGA.L5.A4OI.11     1  0.0000      1.000  1 0.00 0.00 0.00 0.00
#> TCGA.IG.A4QT.01     2  0.1732      0.917  0 0.92 0.00 0.00 0.08
#> TCGA.L5.A4OF.11     1  0.0000      1.000  1 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OJ.11     3  0.0000      0.995  0 0.00 1.00 0.00 0.00
#> TCGA.L5.A4OM.11     3  0.0609      0.984  0 0.00 0.98 0.00 0.02
#> TCGA.L5.A4OP.11     3  0.0000      0.995  0 0.00 1.00 0.00 0.00
#> TCGA.IG.A3I8.11     4  0.0609      0.989  0 0.00 0.00 0.98 0.02
#> TCGA.L5.A4OG.11     3  0.0000      0.995  0 0.00 1.00 0.00 0.00
#> TCGA.IG.A7DP.01     4  0.0000      0.989  0 0.00 0.00 1.00 0.00
#> TCGA.LN.A9FP.01     4  0.0609      0.989  0 0.00 0.00 0.98 0.02
#> TCGA.IC.A6RE.11     5  0.1732      0.975  0 0.08 0.00 0.00 0.92
#> TCGA.L5.A4OS.01     4  0.0000      0.989  0 0.00 0.00 1.00 0.00

show/hide code output

cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6
#> TCGA.Z6.AAPN.01     2  0.0000      0.904 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43C.11     1  0.0547      0.968 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.VR.A8ET.01     2  0.0000      0.904 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OH.11     1  0.0000      0.974 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OE.11     1  0.2094      0.915 0.90 0.00 0.00 0.00 0.02 0.08
#> TCGA.L5.A88T.01     5  0.0937      0.970 0.00 0.04 0.00 0.00 0.96 0.00
#> TCGA.L5.A4ON.11     2  0.2793      0.642 0.00 0.80 0.00 0.00 0.00 0.20
#> TCGA.L5.A4OQ.11     6  0.3592      0.000 0.00 0.24 0.00 0.00 0.02 0.74
#> TCGA.L5.A4OI.11     1  0.0000      0.974 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IG.A4QT.01     2  0.0000      0.904 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OF.11     1  0.0000      0.974 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OJ.11     3  0.0000      0.977 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A4OM.11     3  0.1556      0.928 0.00 0.00 0.92 0.00 0.00 0.08
#> TCGA.L5.A4OP.11     3  0.0000      0.977 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A3I8.11     4  0.2350      0.928 0.00 0.00 0.00 0.88 0.02 0.10
#> TCGA.L5.A4OG.11     3  0.0000      0.977 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A7DP.01     4  0.0000      0.928 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.LN.A9FP.01     4  0.2350      0.928 0.00 0.00 0.00 0.88 0.02 0.10
#> TCGA.IC.A6RE.11     5  0.1267      0.970 0.00 0.06 0.00 0.00 0.94 0.00
#> TCGA.L5.A4OS.01     4  0.0000      0.928 0.00 0.00 0.00 1.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 7), get_membership(res, k = 7))
#>                 class entropy silhouette   p1   p2   p3  p4 p5   p6   p7
#> TCGA.Z6.AAPN.01     2  0.0000      0.893 0.00 1.00 0.00 0.0  0 0.00 0.00
#> TCGA.L5.A43C.11     1  0.0504      0.944 0.98 0.00 0.00 0.0  0 0.00 0.02
#> TCGA.VR.A8ET.01     2  0.0000      0.893 0.00 1.00 0.00 0.0  0 0.00 0.00
#> TCGA.L5.A4OH.11     1  0.0504      0.944 0.98 0.00 0.00 0.0  0 0.00 0.02
#> TCGA.L5.A4OE.11     1  0.2259      0.830 0.84 0.00 0.00 0.0  0 0.00 0.16
#> TCGA.L5.A88T.01     5  0.0000      1.000 0.00 0.00 0.00 0.0  1 0.00 0.00
#> TCGA.L5.A4ON.11     2  0.3637      0.661 0.00 0.72 0.00 0.0  0 0.24 0.04
#> TCGA.L5.A4OQ.11     6  0.0000      0.000 0.00 0.00 0.00 0.0  0 1.00 0.00
#> TCGA.L5.A4OI.11     1  0.0504      0.944 0.98 0.00 0.00 0.0  0 0.00 0.02
#> TCGA.IG.A4QT.01     2  0.0863      0.886 0.00 0.96 0.00 0.0  0 0.00 0.04
#> TCGA.L5.A4OF.11     1  0.0504      0.944 0.98 0.00 0.00 0.0  0 0.00 0.02
#> TCGA.L5.A4OJ.11     3  0.0000      1.000 0.00 0.00 1.00 0.0  0 0.00 0.00
#> TCGA.L5.A4OM.11     7  0.3294      0.000 0.00 0.00 0.34 0.0  0 0.00 0.66
#> TCGA.L5.A4OP.11     3  0.0000      1.000 0.00 0.00 1.00 0.0  0 0.00 0.00
#> TCGA.IG.A3I8.11     4  0.1671      0.938 0.00 0.00 0.00 0.9  0 0.00 0.10
#> TCGA.L5.A4OG.11     3  0.0000      1.000 0.00 0.00 1.00 0.0  0 0.00 0.00
#> TCGA.IG.A7DP.01     4  0.0000      0.938 0.00 0.00 0.00 1.0  0 0.00 0.00
#> TCGA.LN.A9FP.01     4  0.1671      0.938 0.00 0.00 0.00 0.9  0 0.00 0.10
#> TCGA.IC.A6RE.11     5  0.0000      1.000 0.00 0.00 0.00 0.0  1 0.00 0.00
#> TCGA.L5.A4OS.01     4  0.0000      0.938 0.00 0.00 0.00 1.0  0 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 8), get_membership(res, k = 8))
#>                 class entropy silhouette   p1   p2   p3   p4 p5   p6   p7   p8
#> TCGA.Z6.AAPN.01     2  0.0000      0.931 0.00 1.00 0.00 0.00  0 0.00 0.00 0.00
#> TCGA.L5.A43C.11     1  0.1563      0.804 0.90 0.00 0.00 0.00  0 0.00 0.00 0.10
#> TCGA.VR.A8ET.01     2  0.0000      0.931 0.00 1.00 0.00 0.00  0 0.00 0.00 0.00
#> TCGA.L5.A4OH.11     1  0.1887      0.866 0.90 0.00 0.00 0.00  0 0.00 0.04 0.06
#> TCGA.L5.A4OE.11     8  0.2267      0.000 0.18 0.00 0.00 0.00  0 0.00 0.00 0.82
#> TCGA.L5.A88T.01     5  0.0000      1.000 0.00 0.00 0.00 0.00  1 0.00 0.00 0.00
#> TCGA.L5.A4ON.11     2  0.2267      0.795 0.00 0.82 0.00 0.00  0 0.18 0.00 0.00
#> TCGA.L5.A4OQ.11     6  0.0000      0.000 0.00 0.00 0.00 0.00  0 1.00 0.00 0.00
#> TCGA.L5.A4OI.11     1  0.0941      0.849 0.96 0.00 0.00 0.00  0 0.00 0.02 0.02
#> TCGA.IG.A4QT.01     2  0.0471      0.928 0.00 0.98 0.00 0.00  0 0.02 0.00 0.00
#> TCGA.L5.A4OF.11     1  0.1887      0.866 0.90 0.00 0.00 0.00  0 0.00 0.04 0.06
#> TCGA.L5.A4OJ.11     3  0.0000      0.976 0.00 0.00 1.00 0.00  0 0.00 0.00 0.00
#> TCGA.L5.A4OM.11     7  0.2114      0.000 0.00 0.00 0.16 0.00  0 0.00 0.84 0.00
#> TCGA.L5.A4OP.11     3  0.0000      0.976 0.00 0.00 1.00 0.00  0 0.00 0.00 0.00
#> TCGA.IG.A3I8.11     4  0.3528      0.824 0.00 0.00 0.00 0.74  0 0.00 0.08 0.18
#> TCGA.L5.A4OG.11     3  0.0808      0.950 0.00 0.00 0.96 0.00  0 0.00 0.04 0.00
#> TCGA.IG.A7DP.01     4  0.0000      0.832 0.00 0.00 0.00 1.00  0 0.00 0.00 0.00
#> TCGA.LN.A9FP.01     4  0.3385      0.832 0.00 0.00 0.00 0.76  0 0.00 0.08 0.16
#> TCGA.IC.A6RE.11     5  0.0000      1.000 0.00 0.00 0.00 0.00  1 0.00 0.00 0.00
#> TCGA.L5.A4OS.01     4  0.0471      0.824 0.00 0.00 0.00 0.98  0 0.00 0.02 0.00

Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.

consensus_heatmap(res, k = 2)

plot of chunk tab-node-03-consensus-heatmap-1

consensus_heatmap(res, k = 3)

plot of chunk tab-node-03-consensus-heatmap-2

consensus_heatmap(res, k = 4)

plot of chunk tab-node-03-consensus-heatmap-3

consensus_heatmap(res, k = 5)

plot of chunk tab-node-03-consensus-heatmap-4

consensus_heatmap(res, k = 6)

plot of chunk tab-node-03-consensus-heatmap-5

consensus_heatmap(res, k = 7)

plot of chunk tab-node-03-consensus-heatmap-6

consensus_heatmap(res, k = 8)

plot of chunk tab-node-03-consensus-heatmap-7

Heatmaps for the membership of samples in all partitions to see how consistent they are:

membership_heatmap(res, k = 2)

plot of chunk tab-node-03-membership-heatmap-1

membership_heatmap(res, k = 3)

plot of chunk tab-node-03-membership-heatmap-2

membership_heatmap(res, k = 4)

plot of chunk tab-node-03-membership-heatmap-3

membership_heatmap(res, k = 5)

plot of chunk tab-node-03-membership-heatmap-4

membership_heatmap(res, k = 6)

plot of chunk tab-node-03-membership-heatmap-5

membership_heatmap(res, k = 7)

plot of chunk tab-node-03-membership-heatmap-6

membership_heatmap(res, k = 8)

plot of chunk tab-node-03-membership-heatmap-7

As soon as the classes for columns are determined, the signatures that are significantly different between subgroups can be looked for. Following are the heatmaps for signatures.

get_signatures(res, k = 2)

plot of chunk tab-node-03-get-signatures-1

get_signatures(res, k = 3)

plot of chunk tab-node-03-get-signatures-2

get_signatures(res, k = 4)

plot of chunk tab-node-03-get-signatures-3

get_signatures(res, k = 5)

plot of chunk tab-node-03-get-signatures-4

get_signatures(res, k = 6)

plot of chunk tab-node-03-get-signatures-5

get_signatures(res, k = 7)

plot of chunk tab-node-03-get-signatures-6

get_signatures(res, k = 8)

plot of chunk tab-node-03-get-signatures-7

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-03-signature_compare

get_signature() returns a data frame invisibly. To get the list of signatures, the function call should be assigned to a variable explicitly. In following code, if plot argument is set to FALSE, no heatmap is plotted while only the differential analysis is performed.

# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)

An example of the output of tb is:

#>   which_row         fdr    mean_1    mean_2 scaled_mean_1 scaled_mean_2 km
#> 1        38 0.042760348  8.373488  9.131774    -0.5533452     0.5164555  1
#> 2        40 0.018707592  7.106213  8.469186    -0.6173731     0.5762149  1
#> 3        55 0.019134737 10.221463 11.207825    -0.6159697     0.5749050  1
#> 4        59 0.006059896  5.921854  7.869574    -0.6899429     0.6439467  1
#> 5        60 0.018055526  8.928898 10.211722    -0.6204761     0.5791110  1
#> 6        98 0.009384629 15.714769 14.887706     0.6635654    -0.6193277  2
...

The columns in tb are:

  1. which_row: row indices corresponding to the input matrix.
  2. fdr: FDR for the differential test.
  3. mean_x: The mean value in group x.
  4. scaled_mean_x: The mean value in group x after rows are scaled.
  5. km: Row groups if k-means clustering is applied to rows (which is done by automatically selecting number of clusters).

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs:

# code only for demonstration
# e.g. to show the top 500 most significant rows
tb = get_signature(res, k = ..., top_signatures = 500)

If the signatures are defined as these which are uniquely high in current group, diff_method argument can be set to "uniquely_high_in_one_group":

# code only for demonstration
tb = get_signature(res, k = ..., diff_method = "uniquely_high_in_one_group")

UMAP plot which shows how samples are separated.

dimension_reduction(res, k = 2, method = "UMAP")

plot of chunk tab-node-03-dimension-reduction-1

dimension_reduction(res, k = 3, method = "UMAP")

plot of chunk tab-node-03-dimension-reduction-2

dimension_reduction(res, k = 4, method = "UMAP")

plot of chunk tab-node-03-dimension-reduction-3

dimension_reduction(res, k = 5, method = "UMAP")

plot of chunk tab-node-03-dimension-reduction-4

dimension_reduction(res, k = 6, method = "UMAP")

plot of chunk tab-node-03-dimension-reduction-5

dimension_reduction(res, k = 7, method = "UMAP")

plot of chunk tab-node-03-dimension-reduction-6

dimension_reduction(res, k = 8, method = "UMAP")

plot of chunk tab-node-03-dimension-reduction-7

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-03-collect-classes

If matrix rows can be associated to genes, consider to use functional_enrichment(res, ...) to perform function enrichment for the signature genes. See this vignette for more detailed explanations.


Node04

Parent node: Node0. Child nodes: Node011 , Node012 , Node013 , Node021 , Node022 , Node023 , Node031-leaf , Node032-leaf , Node033-leaf , Node034-leaf , Node035-leaf , Node041-leaf , Node042-leaf , Node043-leaf , Node051-leaf , Node052-leaf , Node053-leaf .

The object with results only for a single top-value method and a single partitioning method can be extracted as:

res = res_rh["04"]

A summary of res and all the functions that can be applied to it:

res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6, 7, 8.
#>   On a matrix with 30000 rows and 14 columns.
#>   Top rows (1000) are extracted by 'ATC' method.
#>   Subgroups are detected by 'kmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 3.
#> 
#> Following methods can be applied to this 'ConsensusPartition' object:
#>  [1] "cola_report"             "collect_classes"         "collect_plots"          
#>  [4] "collect_stats"           "colnames"                "compare_partitions"     
#>  [7] "compare_signatures"      "consensus_heatmap"       "dimension_reduction"    
#> [10] "functional_enrichment"   "get_anno_col"            "get_anno"               
#> [13] "get_classes"             "get_consensus"           "get_matrix"             
#> [16] "get_membership"          "get_param"               "get_signatures"         
#> [19] "get_stats"               "is_best_k"               "is_stable_k"            
#> [22] "membership_heatmap"      "ncol"                    "nrow"                   
#> [25] "plot_ecdf"               "predict_classes"         "rownames"               
#> [28] "select_partition_number" "show"                    "suggest_best_k"         
#> [31] "test_to_known_factors"   "top_rows_heatmap"

collect_plots() function collects all the plots made from res for all k (number of subgroups) into one single page to provide an easy and fast comparison between different k.

collect_plots(res)

plot of chunk node-04-collect-plots

The plots are:

All the plots in panels can be made by individual functions and they are plotted later in this section.

select_partition_number() produces several plots showing different statistics for choosing “optimized” k. There are following statistics:

The detailed explanations of these statistics can be found in the cola vignette.

Generally speaking, higher 1-PAC score, higher mean silhouette score or higher concordance corresponds to better partition. Rand index and Jaccard index measure how similar the current partition is compared to partition with k-1. If they are too similar, we won't accept k is better than k-1.

select_partition_number(res)

plot of chunk node-04-select-partition-number

The numeric values for all these statistics can be obtained by get_stats().

get_stats(res)
#>   k 1-PAC mean_silhouette concordance area_increased  Rand Jaccard
#> 2 2 0.505           0.793       0.857         0.4731 0.505   0.505
#> 3 3 1.000           1.000       1.000         0.4873 0.681   0.431
#> 4 4 0.802           0.427       0.701         0.1029 0.791   0.457
#> 5 5 0.835           0.874       0.863         0.0629 0.758   0.267
#> 6 6 0.824           0.767       0.854         0.0423 0.967   0.786
#> 7 7 0.824           0.738       0.871         0.0363 1.000   1.000
#> 8 8 0.846           0.409       0.767         0.0212 0.956   0.636

suggest_best_k() suggests the best \(k\) based on these statistics. The rules are as follows:

suggest_best_k(res)
#> [1] 3

Following is the table of the partitions (You need to click the show/hide code output link to see it). The membership matrix (columns with name p*) is inferred by clue::cl_consensus() function with the SE method. Basically the value in the membership matrix represents the probability to belong to a certain group. The finall subgroup label for an item is determined with the group with highest probability it belongs to.

In get_classes() function, the entropy is calculated from the membership matrix and the silhouette score is calculated from the consensus matrix.

show/hide code output

cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#>                 class entropy silhouette  p1  p2
#> TCGA.L5.A43M.01     1   0.000      1.000 1.0 0.0
#> TCGA.L5.A4OQ.01     2   0.971      0.667 0.4 0.6
#> TCGA.R6.A8W5.01     2   0.971      0.667 0.4 0.6
#> TCGA.L5.A8NE.01     2   0.971      0.667 0.4 0.6
#> TCGA.JY.A6FH.01     2   0.971      0.667 0.4 0.6
#> TCGA.VR.A8Q7.01     2   0.000      0.692 0.0 1.0
#> TCGA.R6.A6Y0.01     1   0.000      1.000 1.0 0.0
#> TCGA.L5.A891.01     2   0.000      0.692 0.0 1.0
#> TCGA.2H.A9GJ.01     2   0.000      0.692 0.0 1.0
#> TCGA.2H.A9GN.01     1   0.000      1.000 1.0 0.0
#> TCGA.2H.A9GG.01     1   0.000      1.000 1.0 0.0
#> TCGA.2H.A9GQ.01     2   0.000      0.692 0.0 1.0
#> TCGA.L5.A8NF.01     2   0.971      0.667 0.4 0.6
#> TCGA.L5.A8NI.01     1   0.000      1.000 1.0 0.0

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette p1 p2 p3
#> TCGA.L5.A43M.01     1       0          1  1  0  0
#> TCGA.L5.A4OQ.01     2       0          1  0  1  0
#> TCGA.R6.A8W5.01     2       0          1  0  1  0
#> TCGA.L5.A8NE.01     2       0          1  0  1  0
#> TCGA.JY.A6FH.01     2       0          1  0  1  0
#> TCGA.VR.A8Q7.01     3       0          1  0  0  1
#> TCGA.R6.A6Y0.01     2       0          1  0  1  0
#> TCGA.L5.A891.01     3       0          1  0  0  1
#> TCGA.2H.A9GJ.01     3       0          1  0  0  1
#> TCGA.2H.A9GN.01     1       0          1  1  0  0
#> TCGA.2H.A9GG.01     1       0          1  1  0  0
#> TCGA.2H.A9GQ.01     3       0          1  0  0  1
#> TCGA.L5.A8NF.01     2       0          1  0  1  0
#> TCGA.L5.A8NI.01     1       0          1  1  0  0

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2   p3   p4
#> TCGA.L5.A43M.01     1   0.491      0.489 0.58 0.00 0.42 0.00
#> TCGA.L5.A4OQ.01     1   0.778     -0.580 0.42 0.26 0.00 0.32
#> TCGA.R6.A8W5.01     1   0.778     -0.580 0.42 0.26 0.00 0.32
#> TCGA.L5.A8NE.01     2   0.491      0.745 0.42 0.58 0.00 0.00
#> TCGA.JY.A6FH.01     2   0.491      0.745 0.42 0.58 0.00 0.00
#> TCGA.VR.A8Q7.01     4   0.452      0.000 0.00 0.00 0.32 0.68
#> TCGA.R6.A6Y0.01     2   0.452      0.114 0.00 0.68 0.00 0.32
#> TCGA.L5.A891.01     3   0.491      1.000 0.00 0.00 0.58 0.42
#> TCGA.2H.A9GJ.01     3   0.491      1.000 0.00 0.00 0.58 0.42
#> TCGA.2H.A9GN.01     1   0.491      0.489 0.58 0.00 0.42 0.00
#> TCGA.2H.A9GG.01     1   0.491      0.489 0.58 0.00 0.42 0.00
#> TCGA.2H.A9GQ.01     3   0.491      1.000 0.00 0.00 0.58 0.42
#> TCGA.L5.A8NF.01     2   0.491      0.745 0.42 0.58 0.00 0.00
#> TCGA.L5.A8NI.01     1   0.491      0.320 0.58 0.42 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1   p2   p3   p4   p5
#> TCGA.L5.A43M.01     1   0.000      0.974 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OQ.01     5   0.000      0.934 0.00 0.00 0.00 0.00 1.00
#> TCGA.R6.A8W5.01     5   0.000      0.934 0.00 0.00 0.00 0.00 1.00
#> TCGA.L5.A8NE.01     2   0.430      1.000 0.00 0.52 0.00 0.00 0.48
#> TCGA.JY.A6FH.01     5   0.141      0.857 0.00 0.06 0.00 0.00 0.94
#> TCGA.VR.A8Q7.01     3   0.543      0.521 0.00 0.42 0.52 0.06 0.00
#> TCGA.R6.A6Y0.01     4   0.252      0.795 0.00 0.00 0.00 0.86 0.14
#> TCGA.L5.A891.01     3   0.000      0.840 0.00 0.00 1.00 0.00 0.00
#> TCGA.2H.A9GJ.01     3   0.000      0.840 0.00 0.00 1.00 0.00 0.00
#> TCGA.2H.A9GN.01     1   0.000      0.974 1.00 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GG.01     1   0.141      0.947 0.94 0.06 0.00 0.00 0.00
#> TCGA.2H.A9GQ.01     3   0.173      0.823 0.00 0.00 0.92 0.08 0.00
#> TCGA.L5.A8NF.01     2   0.430      1.000 0.00 0.52 0.00 0.00 0.48
#> TCGA.L5.A8NI.01     4   0.252      0.791 0.14 0.00 0.00 0.86 0.00

show/hide code output

cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6
#> TCGA.L5.A43M.01     1  0.0000      0.826 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A4OQ.01     5  0.0000      0.848 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.R6.A8W5.01     5  0.0000      0.848 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.L5.A8NE.01     2  0.3309      0.950 0.00 0.72 0.00 0.00 0.28 0.00
#> TCGA.JY.A6FH.01     5  0.4004      0.643 0.00 0.12 0.00 0.00 0.76 0.12
#> TCGA.VR.A8Q7.01     6  0.3797      0.000 0.00 0.00 0.42 0.00 0.00 0.58
#> TCGA.R6.A6Y0.01     4  0.1556      0.875 0.00 0.00 0.00 0.92 0.08 0.00
#> TCGA.L5.A891.01     3  0.0547      0.848 0.00 0.00 0.98 0.02 0.00 0.00
#> TCGA.2H.A9GJ.01     3  0.0000      0.855 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.2H.A9GN.01     1  0.1267      0.826 0.94 0.06 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GG.01     1  0.4926      0.675 0.64 0.12 0.00 0.00 0.00 0.24
#> TCGA.2H.A9GQ.01     3  0.3045      0.717 0.00 0.10 0.84 0.06 0.00 0.00
#> TCGA.L5.A8NF.01     2  0.4172      0.951 0.00 0.68 0.00 0.00 0.28 0.04
#> TCGA.L5.A8NI.01     4  0.2094      0.876 0.08 0.00 0.00 0.90 0.00 0.02

show/hide code output

cbind(get_classes(res, k = 7), get_membership(res, k = 7))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7
#> TCGA.L5.A43M.01     1  0.0504      0.843 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.L5.A4OQ.01     7  0.2376      0.786 0.00 0.12 0.00 0.00 0.02 0.00 0.86
#> TCGA.R6.A8W5.01     7  0.1886      0.786 0.00 0.12 0.00 0.00 0.00 0.00 0.88
#> TCGA.L5.A8NE.01     2  0.2572      0.879 0.00 0.86 0.00 0.00 0.08 0.06 0.00
#> TCGA.JY.A6FH.01     7  0.5016      0.539 0.00 0.12 0.00 0.00 0.00 0.42 0.46
#> TCGA.VR.A8Q7.01     6  0.5164      0.000 0.00 0.00 0.20 0.00 0.26 0.54 0.00
#> TCGA.R6.A6Y0.01     4  0.0000      0.934 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A891.01     3  0.3417      0.799 0.00 0.00 0.72 0.00 0.26 0.00 0.02
#> TCGA.2H.A9GJ.01     3  0.2945      0.804 0.00 0.00 0.74 0.00 0.26 0.00 0.00
#> TCGA.2H.A9GN.01     1  0.0504      0.843 0.98 0.00 0.00 0.00 0.00 0.02 0.00
#> TCGA.2H.A9GG.01     1  0.3221      0.695 0.68 0.00 0.00 0.00 0.32 0.00 0.00
#> TCGA.2H.A9GQ.01     3  0.0863      0.612 0.00 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.L5.A8NF.01     2  0.0000      0.880 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A8NI.01     4  0.1718      0.934 0.00 0.00 0.00 0.92 0.04 0.00 0.04

show/hide code output

cbind(get_classes(res, k = 8), get_membership(res, k = 8))
#>                 class entropy silhouette   p1   p2   p3  p4   p5   p6   p7   p8
#> TCGA.L5.A43M.01     5  0.3318      0.000 0.46 0.00 0.00 0.0 0.54 0.00 0.00 0.00
#> TCGA.L5.A4OQ.01     7  0.2132      0.853 0.00 0.00 0.00 0.0 0.08 0.04 0.88 0.00
#> TCGA.R6.A8W5.01     7  0.0000      0.853 0.00 0.00 0.00 0.0 0.00 0.00 1.00 0.00
#> TCGA.L5.A8NE.01     2  0.5352      0.687 0.00 0.64 0.00 0.0 0.12 0.04 0.06 0.14
#> TCGA.JY.A6FH.01     8  0.2938      0.000 0.00 0.00 0.00 0.0 0.00 0.00 0.30 0.70
#> TCGA.VR.A8Q7.01     6  0.2852      0.000 0.00 0.00 0.28 0.0 0.00 0.72 0.00 0.00
#> TCGA.R6.A6Y0.01     4  0.2719      0.832 0.00 0.02 0.00 0.8 0.00 0.18 0.00 0.00
#> TCGA.L5.A891.01     3  0.0808      0.693 0.00 0.00 0.96 0.0 0.00 0.00 0.00 0.04
#> TCGA.2H.A9GJ.01     3  0.0808      0.693 0.00 0.04 0.96 0.0 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GN.01     1  0.4803     -0.840 0.46 0.00 0.00 0.0 0.44 0.02 0.00 0.08
#> TCGA.2H.A9GG.01     1  0.0000      0.000 1.00 0.00 0.00 0.0 0.00 0.00 0.00 0.00
#> TCGA.2H.A9GQ.01     3  0.4482      0.417 0.00 0.00 0.60 0.0 0.26 0.00 0.00 0.14
#> TCGA.L5.A8NF.01     2  0.1091      0.704 0.00 0.94 0.00 0.0 0.00 0.00 0.06 0.00
#> TCGA.L5.A8NI.01     4  0.0000      0.832 0.00 0.00 0.00 1.0 0.00 0.00 0.00 0.00

Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.

consensus_heatmap(res, k = 2)

plot of chunk tab-node-04-consensus-heatmap-1

consensus_heatmap(res, k = 3)

plot of chunk tab-node-04-consensus-heatmap-2

consensus_heatmap(res, k = 4)

plot of chunk tab-node-04-consensus-heatmap-3

consensus_heatmap(res, k = 5)

plot of chunk tab-node-04-consensus-heatmap-4

consensus_heatmap(res, k = 6)

plot of chunk tab-node-04-consensus-heatmap-5

consensus_heatmap(res, k = 7)

plot of chunk tab-node-04-consensus-heatmap-6

consensus_heatmap(res, k = 8)

plot of chunk tab-node-04-consensus-heatmap-7

Heatmaps for the membership of samples in all partitions to see how consistent they are:

membership_heatmap(res, k = 2)

plot of chunk tab-node-04-membership-heatmap-1

membership_heatmap(res, k = 3)

plot of chunk tab-node-04-membership-heatmap-2

membership_heatmap(res, k = 4)

plot of chunk tab-node-04-membership-heatmap-3

membership_heatmap(res, k = 5)

plot of chunk tab-node-04-membership-heatmap-4

membership_heatmap(res, k = 6)

plot of chunk tab-node-04-membership-heatmap-5

membership_heatmap(res, k = 7)

plot of chunk tab-node-04-membership-heatmap-6

membership_heatmap(res, k = 8)

plot of chunk tab-node-04-membership-heatmap-7

As soon as the classes for columns are determined, the signatures that are significantly different between subgroups can be looked for. Following are the heatmaps for signatures.

get_signatures(res, k = 2)

plot of chunk tab-node-04-get-signatures-1

get_signatures(res, k = 3)

plot of chunk tab-node-04-get-signatures-2

get_signatures(res, k = 4)

plot of chunk tab-node-04-get-signatures-3

get_signatures(res, k = 5)

plot of chunk tab-node-04-get-signatures-4

get_signatures(res, k = 6)

plot of chunk tab-node-04-get-signatures-5

get_signatures(res, k = 7)

plot of chunk tab-node-04-get-signatures-6

get_signatures(res, k = 8)

plot of chunk tab-node-04-get-signatures-7

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-04-signature_compare

get_signature() returns a data frame invisibly. To get the list of signatures, the function call should be assigned to a variable explicitly. In following code, if plot argument is set to FALSE, no heatmap is plotted while only the differential analysis is performed.

# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)

An example of the output of tb is:

#>   which_row         fdr    mean_1    mean_2 scaled_mean_1 scaled_mean_2 km
#> 1        38 0.042760348  8.373488  9.131774    -0.5533452     0.5164555  1
#> 2        40 0.018707592  7.106213  8.469186    -0.6173731     0.5762149  1
#> 3        55 0.019134737 10.221463 11.207825    -0.6159697     0.5749050  1
#> 4        59 0.006059896  5.921854  7.869574    -0.6899429     0.6439467  1
#> 5        60 0.018055526  8.928898 10.211722    -0.6204761     0.5791110  1
#> 6        98 0.009384629 15.714769 14.887706     0.6635654    -0.6193277  2
...

The columns in tb are:

  1. which_row: row indices corresponding to the input matrix.
  2. fdr: FDR for the differential test.
  3. mean_x: The mean value in group x.
  4. scaled_mean_x: The mean value in group x after rows are scaled.
  5. km: Row groups if k-means clustering is applied to rows (which is done by automatically selecting number of clusters).

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs:

# code only for demonstration
# e.g. to show the top 500 most significant rows
tb = get_signature(res, k = ..., top_signatures = 500)

If the signatures are defined as these which are uniquely high in current group, diff_method argument can be set to "uniquely_high_in_one_group":

# code only for demonstration
tb = get_signature(res, k = ..., diff_method = "uniquely_high_in_one_group")

UMAP plot which shows how samples are separated.

dimension_reduction(res, k = 2, method = "UMAP")

plot of chunk tab-node-04-dimension-reduction-1

dimension_reduction(res, k = 3, method = "UMAP")

plot of chunk tab-node-04-dimension-reduction-2

dimension_reduction(res, k = 4, method = "UMAP")

plot of chunk tab-node-04-dimension-reduction-3

dimension_reduction(res, k = 5, method = "UMAP")

plot of chunk tab-node-04-dimension-reduction-4

dimension_reduction(res, k = 6, method = "UMAP")

plot of chunk tab-node-04-dimension-reduction-5

dimension_reduction(res, k = 7, method = "UMAP")

plot of chunk tab-node-04-dimension-reduction-6

dimension_reduction(res, k = 8, method = "UMAP")

plot of chunk tab-node-04-dimension-reduction-7

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-04-collect-classes

If matrix rows can be associated to genes, consider to use functional_enrichment(res, ...) to perform function enrichment for the signature genes. See this vignette for more detailed explanations.


Node05

Parent node: Node0. Child nodes: Node011 , Node012 , Node013 , Node021 , Node022 , Node023 , Node031-leaf , Node032-leaf , Node033-leaf , Node034-leaf , Node035-leaf , Node041-leaf , Node042-leaf , Node043-leaf , Node051-leaf , Node052-leaf , Node053-leaf .

The object with results only for a single top-value method and a single partitioning method can be extracted as:

res = res_rh["05"]

A summary of res and all the functions that can be applied to it:

res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6, 7, 8.
#>   On a matrix with 30000 rows and 22 columns.
#>   Top rows (1000) are extracted by 'ATC' method.
#>   Subgroups are detected by 'kmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 3.
#> 
#> Following methods can be applied to this 'ConsensusPartition' object:
#>  [1] "cola_report"             "collect_classes"         "collect_plots"          
#>  [4] "collect_stats"           "colnames"                "compare_partitions"     
#>  [7] "compare_signatures"      "consensus_heatmap"       "dimension_reduction"    
#> [10] "functional_enrichment"   "get_anno_col"            "get_anno"               
#> [13] "get_classes"             "get_consensus"           "get_matrix"             
#> [16] "get_membership"          "get_param"               "get_signatures"         
#> [19] "get_stats"               "is_best_k"               "is_stable_k"            
#> [22] "membership_heatmap"      "ncol"                    "nrow"                   
#> [25] "plot_ecdf"               "predict_classes"         "rownames"               
#> [28] "select_partition_number" "show"                    "suggest_best_k"         
#> [31] "test_to_known_factors"   "top_rows_heatmap"

collect_plots() function collects all the plots made from res for all k (number of subgroups) into one single page to provide an easy and fast comparison between different k.

collect_plots(res)

plot of chunk node-05-collect-plots

The plots are:

All the plots in panels can be made by individual functions and they are plotted later in this section.

select_partition_number() produces several plots showing different statistics for choosing “optimized” k. There are following statistics:

The detailed explanations of these statistics can be found in the cola vignette.

Generally speaking, higher 1-PAC score, higher mean silhouette score or higher concordance corresponds to better partition. Rand index and Jaccard index measure how similar the current partition is compared to partition with k-1. If they are too similar, we won't accept k is better than k-1.

select_partition_number(res)

plot of chunk node-05-select-partition-number

The numeric values for all these statistics can be obtained by get_stats().

get_stats(res)
#>   k 1-PAC mean_silhouette concordance area_increased  Rand Jaccard
#> 2 2 1.000           1.000       1.000         0.4854 0.515   0.515
#> 3 3 1.000           0.992       0.995         0.4266 0.792   0.597
#> 4 4 0.789           0.892       0.879         0.0901 0.931   0.775
#> 5 5 0.916           0.871       0.812         0.0548 1.000   1.000
#> 6 6 0.816           0.844       0.880         0.0428 0.948   0.782
#> 7 7 0.824           0.665       0.763         0.0258 0.944   0.711
#> 8 8 0.838           0.602       0.756         0.0189 0.944   0.649

suggest_best_k() suggests the best \(k\) based on these statistics. The rules are as follows:

suggest_best_k(res)
#> [1] 3
#> attr(,"optional")
#> [1] 2

There is also optional best \(k\) = 2 that is worth to check.

Following is the table of the partitions (You need to click the show/hide code output link to see it). The membership matrix (columns with name p*) is inferred by clue::cl_consensus() function with the SE method. Basically the value in the membership matrix represents the probability to belong to a certain group. The finall subgroup label for an item is determined with the group with highest probability it belongs to.

In get_classes() function, the entropy is calculated from the membership matrix and the silhouette score is calculated from the consensus matrix.

show/hide code output

cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#>                 class entropy silhouette p1 p2
#> TCGA.LN.A49L.01     2       0          1  0  1
#> TCGA.LN.A49M.01     1       0          1  1  0
#> TCGA.IG.A3YB.01     2       0          1  0  1
#> TCGA.IG.A51D.01     2       0          1  0  1
#> TCGA.L5.A43J.01     2       0          1  0  1
#> TCGA.IG.A3I8.01     2       0          1  0  1
#> TCGA.LN.A49V.01     2       0          1  0  1
#> TCGA.JY.A6FG.01     1       0          1  1  0
#> TCGA.L5.A88W.01     1       0          1  1  0
#> TCGA.LN.A4A5.01     2       0          1  0  1
#> TCGA.VR.AA7I.01     2       0          1  0  1
#> TCGA.VR.AA7D.01     2       0          1  0  1
#> TCGA.IC.A6RF.01     1       0          1  1  0
#> TCGA.JY.A93F.01     1       0          1  1  0
#> TCGA.L5.A88Z.01     2       0          1  0  1
#> TCGA.IC.A6RF.11     1       0          1  1  0
#> TCGA.Z6.A8JE.01     2       0          1  0  1
#> TCGA.IG.A6QS.01     2       0          1  0  1
#> TCGA.XP.A8T7.01     2       0          1  0  1
#> TCGA.VR.A8EY.01     1       0          1  1  0
#> TCGA.Z6.A9VB.01     2       0          1  0  1
#> TCGA.V5.AASV.01     1       0          1  1  0

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette p1   p2   p3
#> TCGA.LN.A49L.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.LN.A49M.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.IG.A3YB.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.IG.A51D.01     2   0.000      0.983  0 1.00 0.00
#> TCGA.L5.A43J.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.IG.A3I8.01     2   0.153      0.970  0 0.96 0.04
#> TCGA.LN.A49V.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.JY.A6FG.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.L5.A88W.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.LN.A4A5.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.VR.AA7I.01     2   0.153      0.970  0 0.96 0.04
#> TCGA.VR.AA7D.01     2   0.000      0.983  0 1.00 0.00
#> TCGA.IC.A6RF.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.JY.A93F.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.L5.A88Z.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.IC.A6RF.11     1   0.000      1.000  1 0.00 0.00
#> TCGA.Z6.A8JE.01     2   0.000      0.983  0 1.00 0.00
#> TCGA.IG.A6QS.01     2   0.153      0.970  0 0.96 0.04
#> TCGA.XP.A8T7.01     2   0.000      0.983  0 1.00 0.00
#> TCGA.VR.A8EY.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.Z6.A9VB.01     2   0.000      0.983  0 1.00 0.00
#> TCGA.V5.AASV.01     1   0.000      1.000  1 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2   p3   p4
#> TCGA.LN.A49L.01     3   0.000      1.000 0.00 0.00 1.00 0.00
#> TCGA.LN.A49M.01     1   0.498      0.596 0.54 0.00 0.00 0.46
#> TCGA.IG.A3YB.01     3   0.000      1.000 0.00 0.00 1.00 0.00
#> TCGA.IG.A51D.01     2   0.000      0.940 0.00 1.00 0.00 0.00
#> TCGA.L5.A43J.01     3   0.000      1.000 0.00 0.00 1.00 0.00
#> TCGA.IG.A3I8.01     4   0.688      0.919 0.00 0.34 0.12 0.54
#> TCGA.LN.A49V.01     3   0.000      1.000 0.00 0.00 1.00 0.00
#> TCGA.JY.A6FG.01     1   0.000      0.886 1.00 0.00 0.00 0.00
#> TCGA.L5.A88W.01     1   0.000      0.886 1.00 0.00 0.00 0.00
#> TCGA.LN.A4A5.01     3   0.000      1.000 0.00 0.00 1.00 0.00
#> TCGA.VR.AA7I.01     4   0.688      0.919 0.00 0.34 0.12 0.54
#> TCGA.VR.AA7D.01     4   0.498      0.711 0.00 0.46 0.00 0.54
#> TCGA.IC.A6RF.01     1   0.000      0.886 1.00 0.00 0.00 0.00
#> TCGA.JY.A93F.01     1   0.000      0.886 1.00 0.00 0.00 0.00
#> TCGA.L5.A88Z.01     3   0.000      1.000 0.00 0.00 1.00 0.00
#> TCGA.IC.A6RF.11     1   0.000      0.886 1.00 0.00 0.00 0.00
#> TCGA.Z6.A8JE.01     2   0.234      0.828 0.00 0.90 0.00 0.10
#> TCGA.IG.A6QS.01     4   0.688      0.919 0.00 0.34 0.12 0.54
#> TCGA.XP.A8T7.01     2   0.000      0.940 0.00 1.00 0.00 0.00
#> TCGA.VR.A8EY.01     1   0.498      0.596 0.54 0.00 0.00 0.46
#> TCGA.Z6.A9VB.01     2   0.000      0.940 0.00 1.00 0.00 0.00
#> TCGA.V5.AASV.01     1   0.000      0.886 1.00 0.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1   p2   p3   p4   p5
#> TCGA.LN.A49L.01     5   0.228      0.851 0.00 0.00 0.12 0.00 0.88
#> TCGA.LN.A49M.01     1   0.568      0.553 0.50 0.02 0.44 0.04 0.00
#> TCGA.IG.A3YB.01     5   0.228      0.926 0.00 0.00 0.12 0.00 0.88
#> TCGA.IG.A51D.01     2   0.332      0.911 0.00 0.82 0.16 0.02 0.00
#> TCGA.L5.A43J.01     5   0.228      0.926 0.00 0.00 0.12 0.00 0.88
#> TCGA.IG.A3I8.01     4   0.275      0.929 0.00 0.00 0.08 0.88 0.04
#> TCGA.LN.A49V.01     5   0.228      0.926 0.00 0.00 0.12 0.00 0.88
#> TCGA.JY.A6FG.01     1   0.000      0.866 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88W.01     1   0.000      0.866 1.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A5.01     5   0.000      0.918 0.00 0.00 0.00 0.00 1.00
#> TCGA.VR.AA7I.01     4   0.104      0.960 0.00 0.00 0.00 0.96 0.04
#> TCGA.VR.AA7D.01     4   0.104      0.931 0.00 0.04 0.00 0.96 0.00
#> TCGA.IC.A6RF.01     1   0.122      0.860 0.96 0.02 0.02 0.00 0.00
#> TCGA.JY.A93F.01     1   0.000      0.866 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88Z.01     5   0.000      0.918 0.00 0.00 0.00 0.00 1.00
#> TCGA.IC.A6RF.11     1   0.122      0.860 0.96 0.02 0.02 0.00 0.00
#> TCGA.Z6.A8JE.01     2   0.122      0.903 0.00 0.96 0.02 0.02 0.00
#> TCGA.IG.A6QS.01     4   0.104      0.960 0.00 0.00 0.00 0.96 0.04
#> TCGA.XP.A8T7.01     2   0.332      0.911 0.00 0.82 0.16 0.02 0.00
#> TCGA.VR.A8EY.01     1   0.431      0.553 0.50 0.00 0.50 0.00 0.00
#> TCGA.Z6.A9VB.01     2   0.122      0.902 0.00 0.96 0.02 0.02 0.00
#> TCGA.V5.AASV.01     1   0.000      0.866 1.00 0.00 0.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6
#> TCGA.LN.A49L.01     5   0.273      0.816 0.00 0.10 0.00 0.00 0.86 0.04
#> TCGA.LN.A49M.01     6   0.263      0.817 0.18 0.00 0.00 0.00 0.00 0.82
#> TCGA.IG.A3YB.01     5   0.247      0.916 0.00 0.08 0.00 0.00 0.88 0.04
#> TCGA.IG.A51D.01     3   0.000      0.717 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.L5.A43J.01     5   0.247      0.916 0.00 0.08 0.00 0.00 0.88 0.04
#> TCGA.IG.A3I8.01     4   0.279      0.873 0.00 0.08 0.00 0.86 0.00 0.06
#> TCGA.LN.A49V.01     5   0.247      0.916 0.00 0.08 0.00 0.00 0.88 0.04
#> TCGA.JY.A6FG.01     1   0.000      0.882 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88W.01     1   0.000      0.882 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A5.01     5   0.000      0.907 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.VR.AA7I.01     4   0.000      0.960 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.VR.AA7D.01     4   0.000      0.960 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.IC.A6RF.01     1   0.399      0.733 0.76 0.10 0.00 0.00 0.00 0.14
#> TCGA.JY.A93F.01     1   0.000      0.882 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88Z.01     5   0.000      0.907 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.IC.A6RF.11     1   0.399      0.733 0.76 0.10 0.00 0.00 0.00 0.14
#> TCGA.Z6.A8JE.01     3   0.461      0.690 0.00 0.42 0.54 0.00 0.00 0.04
#> TCGA.IG.A6QS.01     4   0.000      0.960 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.XP.A8T7.01     3   0.000      0.717 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.VR.A8EY.01     6   0.529      0.824 0.18 0.22 0.00 0.00 0.00 0.60
#> TCGA.Z6.A9VB.01     3   0.386      0.681 0.00 0.48 0.52 0.00 0.00 0.00
#> TCGA.V5.AASV.01     1   0.000      0.882 1.00 0.00 0.00 0.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 7), get_membership(res, k = 7))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7
#> TCGA.LN.A49L.01     5  0.3000      0.711 0.00 0.00 0.00 0.10 0.84 0.02 0.04
#> TCGA.LN.A49M.01     6  0.4538      0.502 0.10 0.00 0.00 0.00 0.00 0.62 0.28
#> TCGA.IG.A3YB.01     5  0.2832      0.838 0.00 0.00 0.00 0.24 0.76 0.00 0.00
#> TCGA.IG.A51D.01     3  0.0000      0.718 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A43J.01     5  0.2832      0.838 0.00 0.00 0.00 0.24 0.76 0.00 0.00
#> TCGA.IG.A3I8.01     2  0.5423      0.688 0.00 0.66 0.00 0.16 0.04 0.04 0.10
#> TCGA.LN.A49V.01     5  0.2832      0.838 0.00 0.00 0.00 0.24 0.76 0.00 0.00
#> TCGA.JY.A6FG.01     1  0.0000      0.985 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88W.01     1  0.0863      0.953 0.96 0.04 0.00 0.00 0.00 0.00 0.00
#> TCGA.LN.A4A5.01     5  0.0000      0.822 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.VR.AA7I.01     2  0.0863      0.885 0.00 0.96 0.00 0.00 0.04 0.00 0.00
#> TCGA.VR.AA7D.01     2  0.0863      0.859 0.00 0.96 0.04 0.00 0.00 0.00 0.00
#> TCGA.IC.A6RF.01     7  0.3546      0.164 0.46 0.00 0.00 0.00 0.00 0.00 0.54
#> TCGA.JY.A93F.01     1  0.0000      0.985 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88Z.01     5  0.0000      0.822 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.IC.A6RF.11     7  0.3546      0.164 0.46 0.00 0.00 0.00 0.00 0.00 0.54
#> TCGA.Z6.A8JE.01     3  0.6073      0.323 0.00 0.00 0.42 0.34 0.00 0.04 0.20
#> TCGA.IG.A6QS.01     2  0.0863      0.885 0.00 0.96 0.00 0.00 0.04 0.00 0.00
#> TCGA.XP.A8T7.01     3  0.0000      0.718 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.VR.A8EY.01     6  0.4905      0.549 0.10 0.00 0.00 0.16 0.00 0.68 0.06
#> TCGA.Z6.A9VB.01     7  0.5485     -0.607 0.00 0.00 0.38 0.22 0.00 0.00 0.40
#> TCGA.V5.AASV.01     1  0.0000      0.985 1.00 0.00 0.00 0.00 0.00 0.00 0.00

show/hide code output

cbind(get_classes(res, k = 8), get_membership(res, k = 8))
#>                 class entropy silhouette   p1   p2   p3   p4   p5   p6   p7   p8
#> TCGA.LN.A49L.01     8  0.3272      0.000 0.00 0.00 0.00 0.00 0.42 0.00 0.00 0.58
#> TCGA.LN.A49M.01     7  0.6618     -0.469 0.10 0.00 0.22 0.00 0.00 0.10 0.48 0.10
#> TCGA.IG.A3YB.01     5  0.0000      0.745 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A51D.01     3  0.2938      0.977 0.00 0.00 0.70 0.30 0.00 0.00 0.00 0.00
#> TCGA.L5.A43J.01     5  0.0000      0.745 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.IG.A3I8.01     2  0.7244      0.361 0.00 0.46 0.08 0.12 0.00 0.06 0.08 0.20
#> TCGA.LN.A49V.01     5  0.0000      0.745 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.JY.A6FG.01     1  0.0471      0.958 0.98 0.00 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.L5.A88W.01     1  0.1341      0.912 0.92 0.00 0.00 0.00 0.00 0.00 0.00 0.08
#> TCGA.LN.A4A5.01     5  0.2650      0.456 0.00 0.00 0.00 0.00 0.76 0.00 0.00 0.24
#> TCGA.VR.AA7I.01     2  0.0000      0.830 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VR.AA7D.01     2  0.0000      0.830 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IC.A6RF.01     7  0.3272      0.470 0.42 0.00 0.00 0.00 0.00 0.00 0.58 0.00
#> TCGA.JY.A93F.01     1  0.0000      0.962 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.L5.A88Z.01     5  0.2756      0.429 0.00 0.00 0.00 0.00 0.74 0.00 0.00 0.26
#> TCGA.IC.A6RF.11     7  0.3272      0.470 0.42 0.00 0.00 0.00 0.00 0.00 0.58 0.00
#> TCGA.Z6.A8JE.01     4  0.3995      0.519 0.00 0.00 0.02 0.60 0.00 0.36 0.00 0.02
#> TCGA.IG.A6QS.01     2  0.0000      0.830 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.XP.A8T7.01     3  0.3374      0.977 0.00 0.00 0.68 0.30 0.00 0.00 0.02 0.00
#> TCGA.VR.A8EY.01     6  0.4433      0.000 0.10 0.00 0.00 0.00 0.00 0.56 0.34 0.00
#> TCGA.Z6.A9VB.01     4  0.0000      0.533 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.V5.AASV.01     1  0.0000      0.962 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.

consensus_heatmap(res, k = 2)

plot of chunk tab-node-05-consensus-heatmap-1

consensus_heatmap(res, k = 3)

plot of chunk tab-node-05-consensus-heatmap-2

consensus_heatmap(res, k = 4)

plot of chunk tab-node-05-consensus-heatmap-3

consensus_heatmap(res, k = 5)

plot of chunk tab-node-05-consensus-heatmap-4

consensus_heatmap(res, k = 6)

plot of chunk tab-node-05-consensus-heatmap-5

consensus_heatmap(res, k = 7)

plot of chunk tab-node-05-consensus-heatmap-6

consensus_heatmap(res, k = 8)

plot of chunk tab-node-05-consensus-heatmap-7

Heatmaps for the membership of samples in all partitions to see how consistent they are:

membership_heatmap(res, k = 2)

plot of chunk tab-node-05-membership-heatmap-1

membership_heatmap(res, k = 3)

plot of chunk tab-node-05-membership-heatmap-2

membership_heatmap(res, k = 4)

plot of chunk tab-node-05-membership-heatmap-3

membership_heatmap(res, k = 5)

plot of chunk tab-node-05-membership-heatmap-4

membership_heatmap(res, k = 6)

plot of chunk tab-node-05-membership-heatmap-5

membership_heatmap(res, k = 7)

plot of chunk tab-node-05-membership-heatmap-6

membership_heatmap(res, k = 8)

plot of chunk tab-node-05-membership-heatmap-7

As soon as the classes for columns are determined, the signatures that are significantly different between subgroups can be looked for. Following are the heatmaps for signatures.

get_signatures(res, k = 2)

plot of chunk tab-node-05-get-signatures-1

get_signatures(res, k = 3)

plot of chunk tab-node-05-get-signatures-2

get_signatures(res, k = 4)

plot of chunk tab-node-05-get-signatures-3

get_signatures(res, k = 5)

plot of chunk tab-node-05-get-signatures-4

get_signatures(res, k = 6)

plot of chunk tab-node-05-get-signatures-5

get_signatures(res, k = 7)

plot of chunk tab-node-05-get-signatures-6

get_signatures(res, k = 8)

plot of chunk tab-node-05-get-signatures-7

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-05-signature_compare

get_signature() returns a data frame invisibly. To get the list of signatures, the function call should be assigned to a variable explicitly. In following code, if plot argument is set to FALSE, no heatmap is plotted while only the differential analysis is performed.

# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)

An example of the output of tb is:

#>   which_row         fdr    mean_1    mean_2 scaled_mean_1 scaled_mean_2 km
#> 1        38 0.042760348  8.373488  9.131774    -0.5533452     0.5164555  1
#> 2        40 0.018707592  7.106213  8.469186    -0.6173731     0.5762149  1
#> 3        55 0.019134737 10.221463 11.207825    -0.6159697     0.5749050  1
#> 4        59 0.006059896  5.921854  7.869574    -0.6899429     0.6439467  1
#> 5        60 0.018055526  8.928898 10.211722    -0.6204761     0.5791110  1
#> 6        98 0.009384629 15.714769 14.887706     0.6635654    -0.6193277  2
...

The columns in tb are:

  1. which_row: row indices corresponding to the input matrix.
  2. fdr: FDR for the differential test.
  3. mean_x: The mean value in group x.
  4. scaled_mean_x: The mean value in group x after rows are scaled.
  5. km: Row groups if k-means clustering is applied to rows (which is done by automatically selecting number of clusters).

If there are too many signatures, top_signatures = ... can be set to only show the signatures with the highest FDRs:

# code only for demonstration
# e.g. to show the top 500 most significant rows
tb = get_signature(res, k = ..., top_signatures = 500)

If the signatures are defined as these which are uniquely high in current group, diff_method argument can be set to "uniquely_high_in_one_group":

# code only for demonstration
tb = get_signature(res, k = ..., diff_method = "uniquely_high_in_one_group")

UMAP plot which shows how samples are separated.

dimension_reduction(res, k = 2, method = "UMAP")

plot of chunk tab-node-05-dimension-reduction-1

dimension_reduction(res, k = 3, method = "UMAP")

plot of chunk tab-node-05-dimension-reduction-2

dimension_reduction(res, k = 4, method = "UMAP")

plot of chunk tab-node-05-dimension-reduction-3

dimension_reduction(res, k = 5, method = "UMAP")

plot of chunk tab-node-05-dimension-reduction-4

dimension_reduction(res, k = 6, method = "UMAP")

plot of chunk tab-node-05-dimension-reduction-5

dimension_reduction(res, k = 7, method = "UMAP")

plot of chunk tab-node-05-dimension-reduction-6

dimension_reduction(res, k = 8, method = "UMAP")

plot of chunk tab-node-05-dimension-reduction-7

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-05-collect-classes

If matrix rows can be associated to genes, consider to use functional_enrichment(res, ...) to perform function enrichment for the signature genes. See this vignette for more detailed explanations.

Session info

sessionInfo()
#> R version 4.1.0 (2021-05-18)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: CentOS Linux 7 (Core)
#> 
#> Matrix products: default
#> BLAS/LAPACK: /usr/lib64/libopenblas-r0.3.3.so
#> 
#> locale:
#>  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
#>  [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
#>  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
#> [10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
#> 
#> attached base packages:
#> [1] grid      stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> other attached packages:
#> [1] genefilter_1.74.0    ComplexHeatmap_2.8.0 markdown_1.1         knitr_1.33          
#> [5] matrixStats_0.59.0   cola_1.9.4          
#> 
#> loaded via a namespace (and not attached):
#>   [1] bitops_1.0-7           bit64_4.0.5            doParallel_1.0.16      RColorBrewer_1.1-2    
#>   [5] httr_1.4.2             GenomeInfoDb_1.28.1    data.tree_1.0.0        tools_4.1.0           
#>   [9] utf8_1.2.1             R6_2.5.0               irlba_2.3.3            DBI_1.1.1             
#>  [13] BiocGenerics_0.38.0    colorspace_2.0-2       GetoptLong_1.0.5       gridExtra_2.3         
#>  [17] tidyselect_1.1.1       bit_4.0.4              compiler_4.1.0         Biobase_2.52.0        
#>  [21] Cairo_1.5-12.2         xml2_1.3.2             microbenchmark_1.4-7   slam_0.1-48           
#>  [25] scales_1.1.1           askpass_1.1            stringr_1.4.0          digest_0.6.27         
#>  [29] XVector_0.32.0         pkgconfig_2.0.3        umap_0.2.7.0           fastmap_1.1.0         
#>  [33] highr_0.9              rlang_0.4.11           GlobalOptions_0.1.2    rstudioapi_0.13       
#>  [37] RSQLite_2.2.7          impute_1.66.0          generics_0.1.0         shape_1.4.6           
#>  [41] jsonlite_1.7.2         mclust_5.4.7           dplyr_1.0.7            dendextend_1.15.1     
#>  [45] RCurl_1.98-1.3         magrittr_2.0.1         GenomeInfoDbData_1.2.6 Matrix_1.3-4          
#>  [49] fansi_0.5.0            Rcpp_1.0.7             munsell_0.5.0          S4Vectors_0.30.0      
#>  [53] viridis_0.6.1          reticulate_1.20        lifecycle_1.0.0        scatterplot3d_0.3-41  
#>  [57] stringi_1.7.3          zlibbioc_1.38.0        blob_1.2.1             parallel_4.1.0        
#>  [61] crayon_1.4.1           lattice_0.20-44        Biostrings_2.60.1      splines_4.1.0         
#>  [65] annotate_1.70.0        circlize_0.4.13        KEGGREST_1.32.0        polylabelr_0.2.0      
#>  [69] pillar_1.6.1           rjson_0.2.20           codetools_0.2-18       stats4_4.1.0          
#>  [73] XML_3.99-0.6           glue_1.4.2             evaluate_0.14          png_0.1-7             
#>  [77] vctrs_0.3.8            foreach_1.5.1          polyclip_1.10-0        purrr_0.3.4           
#>  [81] gtable_0.3.0           openssl_1.4.4          assertthat_0.2.1       clue_0.3-59           
#>  [85] cachem_1.0.5           ggplot2_3.3.5          xfun_0.24              eulerr_6.1.0          
#>  [89] xtable_1.8-4           skmeans_0.2-13         RSpectra_0.16-0        viridisLite_0.4.0     
#>  [93] survival_3.2-11        tibble_3.1.2           Polychrome_1.3.1       iterators_1.0.13      
#>  [97] AnnotationDbi_1.54.1   memoise_2.0.0          IRanges_2.26.0         cluster_2.1.2         
#> [101] ellipsis_0.3.2         brew_1.0-6