cola Report for Hierarchical Partitioning - 'TCGA_SARC_methylation'

Date: 2021-07-22 17:12:07 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 375742 rows and 269 columns.
#>   Performed in total 82600 partitions.
#>   There are 42 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, 269 cols
#>   |-- 01, 76 cols, 62737 signatures
#>   |   |-- 011, 38 cols, 3527 signatures
#>   |   |   |-- 0111, 26 cols, 1932 signatures
#>   |   |   |   |-- 01111, 8 cols (b)
#>   |   |   |   |-- 01112, 9 cols (b)
#>   |   |   |   |-- 01113, 3 cols (b)
#>   |   |   |   `-- 01114, 6 cols (b)
#>   |   |   `-- 0112, 12 cols, 1464 signatures
#>   |   |       |-- 01121, 7 cols (b)
#>   |   |       |-- 01122, 3 cols (b)
#>   |   |       `-- 01123, 2 cols (b)
#>   |   |-- 012, 7 cols (b)
#>   |   |-- 013, 11 cols (b)
#>   |   |-- 014, 8 cols (b)
#>   |   |-- 015, 5 cols (b)
#>   |   `-- 016, 7 cols (b)
#>   |-- 02, 52 cols, 30490 signatures
#>   |   |-- 021, 19 cols, 1077 signatures
#>   |   |   |-- 0211, 5 cols (b)
#>   |   |   |-- 0212, 8 cols (b)
#>   |   |   `-- 0213, 6 cols (b)
#>   |   |-- 022, 13 cols, 1148 signatures
#>   |   |   |-- 0221, 6 cols (b)
#>   |   |   `-- 0222, 7 cols (b)
#>   |   |-- 023, 12 cols, 11140 signatures
#>   |   |   |-- 0231, 6 cols (b)
#>   |   |   |-- 0232, 4 cols (b)
#>   |   |   `-- 0233, 2 cols (b)
#>   |   `-- 024, 8 cols (b)
#>   |-- 03, 79 cols, 17117 signatures
#>   |   |-- 031, 21 cols, 5421 signatures
#>   |   |   |-- 0311, 8 cols (b)
#>   |   |   |-- 0312, 11 cols (b)
#>   |   |   `-- 0313, 2 cols (b)
#>   |   |-- 032, 23 cols, 13269 signatures
#>   |   |   |-- 0321, 14 cols, 780 signatures (c)
#>   |   |   |-- 0322, 6 cols (b)
#>   |   |   `-- 0323, 3 cols (b)
#>   |   |-- 033, 18 cols, 298 signatures (c)
#>   |   `-- 034, 17 cols, 2547 signatures
#>   |       |-- 0341, 7 cols (b)
#>   |       `-- 0342, 10 cols (b)
#>   `-- 04, 62 cols, 86792 signatures
#>       |-- 041, 8 cols (b)
#>       |-- 042, 40 cols, 21524 signatures
#>       |   |-- 0421, 12 cols, 29 signatures (c)
#>       |   |-- 0422, 12 cols, 2056 signatures
#>       |   |   |-- 04221, 2 cols (b)
#>       |   |   |-- 04222, 4 cols (b)
#>       |   |   |-- 04223, 2 cols (b)
#>       |   |   `-- 04224, 4 cols (b)
#>       |   |-- 0423, 12 cols, 1949 signatures
#>       |   |   |-- 04231, 2 cols (b)
#>       |   |   `-- 04232, 10 cols (b)
#>       |   `-- 0424, 4 cols (b)
#>       |-- 043, 6 cols (b)
#>       |-- 044, 6 cols (b)
#>       `-- 045, 2 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] 375742    269

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"  "01111" "01112" "01113" "01114" "0112"  "01121" "01122" "01123"
#> [13] "012"   "013"   "014"   "015"   "016"   "02"    "021"   "0211"  "0212"  "0213"  "022"   "0221" 
#> [25] "0222"  "023"   "0231"  "0232"  "0233"  "024"   "03"    "031"   "0311"  "0312"  "0313"  "032"  
#> [37] "0321"  "0322"  "0323"  "033"   "034"   "0341"  "0342"  "04"    "041"   "042"   "0421"  "0422" 
#> [49] "04221" "04222" "04223" "04224" "0423"  "04231" "04232" "0424"  "043"   "044"   "045"
all_leaves(res_rh)
#>  [1] "01111" "01112" "01113" "01114" "01121" "01122" "01123" "012"   "013"   "014"   "015"   "016"  
#> [13] "0211"  "0212"  "0213"  "0221"  "0222"  "0231"  "0232"  "0233"  "024"   "0311"  "0312"  "0313" 
#> [25] "0321"  "0322"  "0323"  "033"   "0341"  "0342"  "041"   "0421"  "04221" "04222" "04223" "04224"
#> [37] "04231" "04232" "0424"  "043"   "044"   "045"
node_info(res_rh)
#>       id best_method depth best_k n_columns n_signatures p_signatures is_leaf
#> 1      0  ATC:kmeans     1      4       269        58837     1.57e-01   FALSE
#> 2     01 ATC:skmeans     2      6        76        62737     1.67e-01   FALSE
#> 3    011  ATC:kmeans     3      2        38         3527     9.39e-03   FALSE
#> 4   0111  ATC:kmeans     4      4        26         1932     5.14e-03   FALSE
#> 5  01111 not applied     5     NA         8           NA           NA    TRUE
#> 6  01112 not applied     5     NA         9           NA           NA    TRUE
#> 7  01113 not applied     5     NA         3           NA           NA    TRUE
#> 8  01114 not applied     5     NA         6           NA           NA    TRUE
#> 9   0112  ATC:kmeans     4      3        12         1464     3.90e-03   FALSE
#> 10 01121 not applied     5     NA         7           NA           NA    TRUE
#> 11 01122 not applied     5     NA         3           NA           NA    TRUE
#> 12 01123 not applied     5     NA         2           NA           NA    TRUE
#> 13   012 not applied     3     NA         7           NA           NA    TRUE
#> 14   013 not applied     3     NA        11           NA           NA    TRUE
#> 15   014 not applied     3     NA         8           NA           NA    TRUE
#> 16   015 not applied     3     NA         5           NA           NA    TRUE
#> 17   016 not applied     3     NA         7           NA           NA    TRUE
#> 18    02  ATC:kmeans     2      4        52        30490     8.11e-02   FALSE
#> 19   021 ATC:skmeans     3      3        19         1077     2.87e-03   FALSE
#> 20  0211 not applied     4     NA         5           NA           NA    TRUE
#> 21  0212 not applied     4     NA         8           NA           NA    TRUE
#> 22  0213 not applied     4     NA         6           NA           NA    TRUE
#> 23   022  ATC:kmeans     3      2        13         1148     3.06e-03   FALSE
#> 24  0221 not applied     4     NA         6           NA           NA    TRUE
#> 25  0222 not applied     4     NA         7           NA           NA    TRUE
#> 26   023 ATC:skmeans     3      3        12        11140     2.96e-02   FALSE
#> 27  0231 not applied     4     NA         6           NA           NA    TRUE
#> 28  0232 not applied     4     NA         4           NA           NA    TRUE
#> 29  0233 not applied     4     NA         2           NA           NA    TRUE
#> 30   024 not applied     3     NA         8           NA           NA    TRUE
#> 31    03 ATC:skmeans     2      4        79        17117     4.56e-02   FALSE
#> 32   031 ATC:skmeans     3      3        21         5421     1.44e-02   FALSE
#> 33  0311 not applied     4     NA         8           NA           NA    TRUE
#> 34  0312 not applied     4     NA        11           NA           NA    TRUE
#> 35  0313 not applied     4     NA         2           NA           NA    TRUE
#> 36   032 ATC:skmeans     3      3        23        13269     3.53e-02   FALSE
#> 37  0321 ATC:skmeans     4      2        14          780     2.08e-03    TRUE
#> 38  0322 not applied     4     NA         6           NA           NA    TRUE
#> 39  0323 not applied     4     NA         3           NA           NA    TRUE
#> 40   033  ATC:kmeans     3      2        18          298     7.93e-04    TRUE
#> 41   034  SD:skmeans     3      2        17         2547     6.78e-03   FALSE
#> 42  0341 not applied     4     NA         7           NA           NA    TRUE
#> 43  0342 not applied     4     NA        10           NA           NA    TRUE
#> 44    04 ATC:skmeans     2      5        62        86792     2.31e-01   FALSE
#> 45   041 not applied     3     NA         8           NA           NA    TRUE
#> 46   042 ATC:skmeans     3      4        40        21524     5.73e-02   FALSE
#> 47  0421  ATC:kmeans     4      2        12           29     7.72e-05    TRUE
#> 48  0422 ATC:skmeans     4      4        12         2056     5.47e-03   FALSE
#> 49 04221 not applied     5     NA         2           NA           NA    TRUE
#> 50 04222 not applied     5     NA         4           NA           NA    TRUE
#> 51 04223 not applied     5     NA         2           NA           NA    TRUE
#> 52 04224 not applied     5     NA         4           NA           NA    TRUE
#> 53  0423  ATC:kmeans     4      2        12         1949     5.19e-03   FALSE
#> 54 04231 not applied     5     NA         2           NA           NA    TRUE
#> 55 04232 not applied     5     NA        10           NA           NA    TRUE
#> 56  0424 not applied     4     NA         4           NA           NA    TRUE
#> 57   043 not applied     3     NA         6           NA           NA    TRUE
#> 58   044 not applied     3     NA         6           NA           NA    TRUE
#> 59   045 not applied     3     NA         2           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 ATC:kmeans 3 0.98 0.95 0.98 269 **
Node01 ATC:skmeans 6 1.00 0.97 0.98 76 **
Node011 ATC:kmeans 2 1.00 1.00 1.00 38 **
Node0111 ATC:kmeans 4 1.00 0.96 0.97 26 **
Node01111-leaf not applied ✓ (b) 8
Node01112-leaf not applied ✓ (b) 9
Node01113-leaf not applied ✓ (b) 3
Node01114-leaf not applied ✓ (b) 6
Node0112 ATC:kmeans 4 1.00 0.90 0.99 12 **
Node01121-leaf not applied ✓ (b) 7
Node01122-leaf not applied ✓ (b) 3
Node01123-leaf not applied ✓ (b) 2
Node012-leaf not applied ✓ (b) 7
Node013-leaf not applied ✓ (b) 11
Node014-leaf not applied ✓ (b) 8
Node015-leaf not applied ✓ (b) 5
Node016-leaf not applied ✓ (b) 7
Node02 ATC:kmeans 2 1.00 1.00 1.00 52 **
Node021 ATC:skmeans 2 1.00 1.00 1.00 19 **
Node0211-leaf not applied ✓ (b) 5
Node0212-leaf not applied ✓ (b) 8
Node0213-leaf not applied ✓ (b) 6
Node022 ATC:kmeans 2 1.00 1.00 1.00 13 **
Node0221-leaf not applied ✓ (b) 6
Node0222-leaf not applied ✓ (b) 7
Node023 ATC:skmeans 7 1.00 0.58 1.00 12 **
Node0231-leaf not applied ✓ (b) 6
Node0232-leaf not applied ✓ (b) 4
Node0233-leaf not applied ✓ (b) 2
Node024-leaf not applied ✓ (b) 8
Node03 ATC:skmeans 5 0.94 0.91 0.96 79 *
Node031 ATC:skmeans 3 1.00 1.00 1.00 21 **
Node0311-leaf not applied ✓ (b) 8
Node0312-leaf not applied ✓ (b) 11
Node0313-leaf not applied ✓ (b) 2
Node032 ATC:skmeans 3 1.00 1.00 1.00 23 **
Node0321-leaf ATC:skmeans ✓ (c) 2 1.00 1.00 1.00 14 **
Node0322-leaf not applied ✓ (b) 6
Node0323-leaf not applied ✓ (b) 3
Node033-leaf ATC:kmeans ✓ (c) 2 1.00 1.00 1.00 18 **
Node034 SD:skmeans 2 1.00 1.00 1.00 17 **
Node0341-leaf not applied ✓ (b) 7
Node0342-leaf not applied ✓ (b) 10
Node04 ATC:skmeans 4 1.00 1.00 1.00 62 **
Node041-leaf not applied ✓ (b) 8
Node042 ATC:skmeans 6 0.90 0.71 0.88 40 *
Node0421-leaf ATC:kmeans ✓ (c) 2 1.00 1.00 1.00 12 **
Node0422 ATC:skmeans 4 1.00 0.99 0.98 12 **
Node04221-leaf not applied ✓ (b) 2
Node04222-leaf not applied ✓ (b) 4
Node04223-leaf not applied ✓ (b) 2
Node04224-leaf not applied ✓ (b) 4
Node0423 ATC:kmeans 4 1.00 0.91 0.99 12 **
Node04231-leaf not applied ✓ (b) 2
Node04232-leaf not applied ✓ (b) 10
Node0424-leaf not applied ✓ (b) 4
Node043-leaf not applied ✓ (b) 6
Node044-leaf not applied ✓ (b) 6
Node045-leaf not applied ✓ (b) 2

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 = 1077))

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 62737))
#> Error in max(children_height): invalid 'type' (list) of argument
collect_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 86792))
#> Error in max(children_height): invalid 'type' (list) of argument

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 = 1077))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>          "0321"          "0421"          "0421"          "0321"          "0321"         "04222" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>          "0213"          "0233"          "0211"          "0421"         "04231"          "0221" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>          "0321"           "033"           "016"          "0323"           "041"           "033" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>          "0213"          "0221"         "04222"           "033"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>          "0341"         "01113"           "044"          "0421"           "012"         "04224" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>         "04223"           "033"         "01112"           "012"          "0424"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>          "0211"          "0421"          "0341"         "01112"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>          "0312"         "01114"          "0341"         "01121"          "0322"          "0312" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>          "0233"         "01112"         "04224"           "041"           "014"          "0311" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>          "0342"           "033"          "0231"         "04232"          "0312"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>          "0212"          "0222"         "04224"           "012"          "0323"           "024" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>          "0321"           "016"           "033"           "033"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>          "0322"         "01114"         "04224"         "01112"         "01121"          "0211" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>          "0211"         "01112"          "0321"         "04232"           "015"           "024" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"          "0321"           "033"         "01113"          "0221"         "01121" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>           "024"          "0342"          "0342"           "044"          "0232"         "01112" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>           "024"         "01112"          "0342"          "0342"          "0421"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"          "0342"         "04222"          "0213"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>           "024"         "04232"          "0312"           "043"         "01122"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>         "01112"         "01123"          "0232"         "01112"          "0221"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"          "0341"          "0311"          "0311"          "0342"          "0212" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>         "04232"           "012"           "013"          "0421"           "043"         "01121" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>          "0341"           "033"          "0342"         "01121"           "015"           "033" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>          "0341"          "0213"           "013"         "01123"           "013"          "0312" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>         "01111"         "01111"          "0231"          "0312"           "012"          "0321" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>          "0311"          "0221"           "013"         "01122"           "033"          "0421" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>           "033"         "01114"           "016"           "041"         "04223"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>         "04232"          "0321"          "0212"           "024"           "044"          "0212" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"          "0322"          "0342"           "014"         "01114"          "0311" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"         "04232"         "04221"         "04232"          "0424"          "0311" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"         "01111"          "0222"          "0321"          "0321"          "0323" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>          "0232"          "0321"          "0424"          "0211"          "0321"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>          "0212"         "04232"           "013"          "0322"         "01121"          "0421" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>          "0222"          "0222"          "0232"           "016"           "033"         "04232" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"          "0321"           "041"         "01121"          "0221"          "0322" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"          "0424"           "014"         "01111"         "04231"          "0312" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>          "0213"         "01114"          "0222"          "0231"         "01111"           "033" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>          "0231"           "013"           "033"           "024"         "01111"          "0311" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>          "0231"          "0313"          "0341"           "016"         "04232"          "0421" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>          "0312"           "033"          "0313"           "024"          "0342"          "0212" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>         "04221"          "0322"           "033"          "0212"          "0421"         "04222" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>          "0421"           "033"          "0311"          "0222"          "0222"          "0312" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>         "01111"          "0312"         "01114"         "01122"           "014"          "0212" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"          "0231"         "01111"           "013"           "014"          "0213" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"         "01113"          "0312"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 1148))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>          "0321"          "0421"          "0421"          "0321"          "0321"         "04222" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>           "021"          "0233"           "021"          "0421"         "04231"          "0221" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>          "0321"           "033"           "016"          "0323"           "041"           "033" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>           "021"          "0221"         "04222"           "033"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>          "0341"         "01113"           "044"          "0421"           "012"         "04224" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>         "04223"           "033"         "01112"           "012"          "0424"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>           "021"          "0421"          "0341"         "01112"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>          "0312"         "01114"          "0341"         "01121"          "0322"          "0312" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>          "0233"         "01112"         "04224"           "041"           "014"          "0311" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>          "0342"           "033"          "0231"         "04232"          "0312"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>           "021"          "0222"         "04224"           "012"          "0323"           "024" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>          "0321"           "016"           "033"           "033"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>          "0322"         "01114"         "04224"         "01112"         "01121"           "021" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>           "021"         "01112"          "0321"         "04232"           "015"           "024" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"          "0321"           "033"         "01113"          "0221"         "01121" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>           "024"          "0342"          "0342"           "044"          "0232"         "01112" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>           "024"         "01112"          "0342"          "0342"          "0421"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"          "0342"         "04222"           "021"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>           "024"         "04232"          "0312"           "043"         "01122"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>         "01112"         "01123"          "0232"         "01112"          "0221"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"          "0341"          "0311"          "0311"          "0342"           "021" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>         "04232"           "012"           "013"          "0421"           "043"         "01121" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>          "0341"           "033"          "0342"         "01121"           "015"           "033" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>          "0341"           "021"           "013"         "01123"           "013"          "0312" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>         "01111"         "01111"          "0231"          "0312"           "012"          "0321" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>          "0311"          "0221"           "013"         "01122"           "033"          "0421" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>           "033"         "01114"           "016"           "041"         "04223"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>         "04232"          "0321"           "021"           "024"           "044"           "021" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"          "0322"          "0342"           "014"         "01114"          "0311" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"         "04232"         "04221"         "04232"          "0424"          "0311" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"         "01111"          "0222"          "0321"          "0321"          "0323" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>          "0232"          "0321"          "0424"           "021"          "0321"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>           "021"         "04232"           "013"          "0322"         "01121"          "0421" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>          "0222"          "0222"          "0232"           "016"           "033"         "04232" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"          "0321"           "041"         "01121"          "0221"          "0322" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"          "0424"           "014"         "01111"         "04231"          "0312" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>           "021"         "01114"          "0222"          "0231"         "01111"           "033" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>          "0231"           "013"           "033"           "024"         "01111"          "0311" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>          "0231"          "0313"          "0341"           "016"         "04232"          "0421" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>          "0312"           "033"          "0313"           "024"          "0342"           "021" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>         "04221"          "0322"           "033"           "021"          "0421"         "04222" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>          "0421"           "033"          "0311"          "0222"          "0222"          "0312" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>         "01111"          "0312"         "01114"         "01122"           "014"           "021" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"          "0231"         "01111"           "013"           "014"           "021" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"         "01113"          "0312"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 1464))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>          "0321"          "0421"          "0421"          "0321"          "0321"         "04222" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>           "021"          "0233"           "021"          "0421"         "04231"           "022" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>          "0321"           "033"           "016"          "0323"           "041"           "033" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>           "021"           "022"         "04222"           "033"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>          "0341"         "01113"           "044"          "0421"           "012"         "04224" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>         "04223"           "033"         "01112"           "012"          "0424"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>           "021"          "0421"          "0341"         "01112"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>          "0312"         "01114"          "0341"         "01121"          "0322"          "0312" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>          "0233"         "01112"         "04224"           "041"           "014"          "0311" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>          "0342"           "033"          "0231"         "04232"          "0312"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>           "021"           "022"         "04224"           "012"          "0323"           "024" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>          "0321"           "016"           "033"           "033"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>          "0322"         "01114"         "04224"         "01112"         "01121"           "021" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>           "021"         "01112"          "0321"         "04232"           "015"           "024" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"          "0321"           "033"         "01113"           "022"         "01121" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>           "024"          "0342"          "0342"           "044"          "0232"         "01112" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>           "024"         "01112"          "0342"          "0342"          "0421"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"          "0342"         "04222"           "021"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>           "024"         "04232"          "0312"           "043"         "01122"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>         "01112"         "01123"          "0232"         "01112"           "022"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"          "0341"          "0311"          "0311"          "0342"           "021" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>         "04232"           "012"           "013"          "0421"           "043"         "01121" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>          "0341"           "033"          "0342"         "01121"           "015"           "033" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>          "0341"           "021"           "013"         "01123"           "013"          "0312" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>         "01111"         "01111"          "0231"          "0312"           "012"          "0321" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>          "0311"           "022"           "013"         "01122"           "033"          "0421" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>           "033"         "01114"           "016"           "041"         "04223"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>         "04232"          "0321"           "021"           "024"           "044"           "021" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"          "0322"          "0342"           "014"         "01114"          "0311" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"         "04232"         "04221"         "04232"          "0424"          "0311" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"         "01111"           "022"          "0321"          "0321"          "0323" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>          "0232"          "0321"          "0424"           "021"          "0321"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>           "021"         "04232"           "013"          "0322"         "01121"          "0421" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>           "022"           "022"          "0232"           "016"           "033"         "04232" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"          "0321"           "041"         "01121"           "022"          "0322" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"          "0424"           "014"         "01111"         "04231"          "0312" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>           "021"         "01114"           "022"          "0231"         "01111"           "033" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>          "0231"           "013"           "033"           "024"         "01111"          "0311" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>          "0231"          "0313"          "0341"           "016"         "04232"          "0421" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>          "0312"           "033"          "0313"           "024"          "0342"           "021" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>         "04221"          "0322"           "033"           "021"          "0421"         "04222" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>          "0421"           "033"          "0311"           "022"           "022"          "0312" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>         "01111"          "0312"         "01114"         "01122"           "014"           "021" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"          "0231"         "01111"           "013"           "014"           "021" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"         "01113"          "0312"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 1932))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>          "0321"          "0421"          "0421"          "0321"          "0321"         "04222" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>           "021"          "0233"           "021"          "0421"         "04231"           "022" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>          "0321"           "033"           "016"          "0323"           "041"           "033" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>           "021"           "022"         "04222"           "033"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>          "0341"         "01113"           "044"          "0421"           "012"         "04224" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>         "04223"           "033"         "01112"           "012"          "0424"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>           "021"          "0421"          "0341"         "01112"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>          "0312"         "01114"          "0341"          "0112"          "0322"          "0312" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>          "0233"         "01112"         "04224"           "041"           "014"          "0311" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>          "0342"           "033"          "0231"         "04232"          "0312"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>           "021"           "022"         "04224"           "012"          "0323"           "024" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>          "0321"           "016"           "033"           "033"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>          "0322"         "01114"         "04224"         "01112"          "0112"           "021" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>           "021"         "01112"          "0321"         "04232"           "015"           "024" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"          "0321"           "033"         "01113"           "022"          "0112" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>           "024"          "0342"          "0342"           "044"          "0232"         "01112" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>           "024"         "01112"          "0342"          "0342"          "0421"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"          "0342"         "04222"           "021"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>           "024"         "04232"          "0312"           "043"          "0112"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>         "01112"          "0112"          "0232"         "01112"           "022"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"          "0341"          "0311"          "0311"          "0342"           "021" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>         "04232"           "012"           "013"          "0421"           "043"          "0112" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>          "0341"           "033"          "0342"          "0112"           "015"           "033" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>          "0341"           "021"           "013"          "0112"           "013"          "0312" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>         "01111"         "01111"          "0231"          "0312"           "012"          "0321" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>          "0311"           "022"           "013"          "0112"           "033"          "0421" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>           "033"         "01114"           "016"           "041"         "04223"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>         "04232"          "0321"           "021"           "024"           "044"           "021" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"          "0322"          "0342"           "014"         "01114"          "0311" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"         "04232"         "04221"         "04232"          "0424"          "0311" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"         "01111"           "022"          "0321"          "0321"          "0323" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>          "0232"          "0321"          "0424"           "021"          "0321"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>           "021"         "04232"           "013"          "0322"          "0112"          "0421" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>           "022"           "022"          "0232"           "016"           "033"         "04232" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"          "0321"           "041"          "0112"           "022"          "0322" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"          "0424"           "014"         "01111"         "04231"          "0312" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>           "021"         "01114"           "022"          "0231"         "01111"           "033" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>          "0231"           "013"           "033"           "024"         "01111"          "0311" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>          "0231"          "0313"          "0341"           "016"         "04232"          "0421" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>          "0312"           "033"          "0313"           "024"          "0342"           "021" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>         "04221"          "0322"           "033"           "021"          "0421"         "04222" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>          "0421"           "033"          "0311"           "022"           "022"          "0312" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>         "01111"          "0312"         "01114"          "0112"           "014"           "021" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"          "0231"         "01111"           "013"           "014"           "021" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"         "01113"          "0312"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 1949))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>          "0321"          "0421"          "0421"          "0321"          "0321"         "04222" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>           "021"          "0233"           "021"          "0421"         "04231"           "022" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>          "0321"           "033"           "016"          "0323"           "041"           "033" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>           "021"           "022"         "04222"           "033"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>          "0341"          "0111"           "044"          "0421"           "012"         "04224" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>         "04223"           "033"          "0111"           "012"          "0424"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>           "021"          "0421"          "0341"          "0111"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>          "0312"          "0111"          "0341"          "0112"          "0322"          "0312" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>          "0233"          "0111"         "04224"           "041"           "014"          "0311" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>          "0342"           "033"          "0231"         "04232"          "0312"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>           "021"           "022"         "04224"           "012"          "0323"           "024" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>          "0321"           "016"           "033"           "033"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>          "0322"          "0111"         "04224"          "0111"          "0112"           "021" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>           "021"          "0111"          "0321"         "04232"           "015"           "024" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"          "0321"           "033"          "0111"           "022"          "0112" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>           "024"          "0342"          "0342"           "044"          "0232"          "0111" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>           "024"          "0111"          "0342"          "0342"          "0421"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"          "0342"         "04222"           "021"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>           "024"         "04232"          "0312"           "043"          "0112"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>          "0111"          "0112"          "0232"          "0111"           "022"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"          "0341"          "0311"          "0311"          "0342"           "021" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>         "04232"           "012"           "013"          "0421"           "043"          "0112" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>          "0341"           "033"          "0342"          "0112"           "015"           "033" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>          "0341"           "021"           "013"          "0112"           "013"          "0312" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>          "0111"          "0111"          "0231"          "0312"           "012"          "0321" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>          "0311"           "022"           "013"          "0112"           "033"          "0421" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>           "033"          "0111"           "016"           "041"         "04223"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>         "04232"          "0321"           "021"           "024"           "044"           "021" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"          "0322"          "0342"           "014"          "0111"          "0311" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"         "04232"         "04221"         "04232"          "0424"          "0311" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"          "0111"           "022"          "0321"          "0321"          "0323" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>          "0232"          "0321"          "0424"           "021"          "0321"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>           "021"         "04232"           "013"          "0322"          "0112"          "0421" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>           "022"           "022"          "0232"           "016"           "033"         "04232" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"          "0321"           "041"          "0112"           "022"          "0322" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"          "0424"           "014"          "0111"         "04231"          "0312" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>           "021"          "0111"           "022"          "0231"          "0111"           "033" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>          "0231"           "013"           "033"           "024"          "0111"          "0311" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>          "0231"          "0313"          "0341"           "016"         "04232"          "0421" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>          "0312"           "033"          "0313"           "024"          "0342"           "021" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>         "04221"          "0322"           "033"           "021"          "0421"         "04222" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>          "0421"           "033"          "0311"           "022"           "022"          "0312" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>          "0111"          "0312"          "0111"          "0112"           "014"           "021" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"          "0231"          "0111"           "013"           "014"           "021" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"          "0111"          "0312"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 2056))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>          "0321"          "0421"          "0421"          "0321"          "0321"         "04222" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>           "021"          "0233"           "021"          "0421"          "0423"           "022" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>          "0321"           "033"           "016"          "0323"           "041"           "033" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>           "021"           "022"         "04222"           "033"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>          "0341"          "0111"           "044"          "0421"           "012"         "04224" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>         "04223"           "033"          "0111"           "012"          "0424"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>           "021"          "0421"          "0341"          "0111"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>          "0312"          "0111"          "0341"          "0112"          "0322"          "0312" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>          "0233"          "0111"         "04224"           "041"           "014"          "0311" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>          "0342"           "033"          "0231"          "0423"          "0312"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>           "021"           "022"         "04224"           "012"          "0323"           "024" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>          "0321"           "016"           "033"           "033"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>          "0322"          "0111"         "04224"          "0111"          "0112"           "021" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>           "021"          "0111"          "0321"          "0423"           "015"           "024" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"          "0321"           "033"          "0111"           "022"          "0112" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>           "024"          "0342"          "0342"           "044"          "0232"          "0111" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>           "024"          "0111"          "0342"          "0342"          "0421"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"          "0342"         "04222"           "021"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>           "024"          "0423"          "0312"           "043"          "0112"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>          "0111"          "0112"          "0232"          "0111"           "022"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"          "0341"          "0311"          "0311"          "0342"           "021" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>          "0423"           "012"           "013"          "0421"           "043"          "0112" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>          "0341"           "033"          "0342"          "0112"           "015"           "033" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>          "0341"           "021"           "013"          "0112"           "013"          "0312" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>          "0111"          "0111"          "0231"          "0312"           "012"          "0321" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>          "0311"           "022"           "013"          "0112"           "033"          "0421" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>           "033"          "0111"           "016"           "041"         "04223"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>          "0423"          "0321"           "021"           "024"           "044"           "021" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"          "0322"          "0342"           "014"          "0111"          "0311" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"          "0423"         "04221"          "0423"          "0424"          "0311" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"          "0111"           "022"          "0321"          "0321"          "0323" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>          "0232"          "0321"          "0424"           "021"          "0321"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>           "021"          "0423"           "013"          "0322"          "0112"          "0421" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>           "022"           "022"          "0232"           "016"           "033"          "0423" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"          "0321"           "041"          "0112"           "022"          "0322" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"          "0424"           "014"          "0111"          "0423"          "0312" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>           "021"          "0111"           "022"          "0231"          "0111"           "033" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>          "0231"           "013"           "033"           "024"          "0111"          "0311" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>          "0231"          "0313"          "0341"           "016"          "0423"          "0421" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>          "0312"           "033"          "0313"           "024"          "0342"           "021" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>         "04221"          "0322"           "033"           "021"          "0421"         "04222" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>          "0421"           "033"          "0311"           "022"           "022"          "0312" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>          "0111"          "0312"          "0111"          "0112"           "014"           "021" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"          "0231"          "0111"           "013"           "014"           "021" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"          "0111"          "0312"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 2547))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>          "0321"          "0421"          "0421"          "0321"          "0321"          "0422" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>           "021"          "0233"           "021"          "0421"          "0423"           "022" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>          "0321"           "033"           "016"          "0323"           "041"           "033" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>           "021"           "022"          "0422"           "033"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>          "0341"          "0111"           "044"          "0421"           "012"          "0422" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>          "0422"           "033"          "0111"           "012"          "0424"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>           "021"          "0421"          "0341"          "0111"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>          "0312"          "0111"          "0341"          "0112"          "0322"          "0312" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>          "0233"          "0111"          "0422"           "041"           "014"          "0311" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>          "0342"           "033"          "0231"          "0423"          "0312"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>           "021"           "022"          "0422"           "012"          "0323"           "024" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>          "0321"           "016"           "033"           "033"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>          "0322"          "0111"          "0422"          "0111"          "0112"           "021" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>           "021"          "0111"          "0321"          "0423"           "015"           "024" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"          "0321"           "033"          "0111"           "022"          "0112" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>           "024"          "0342"          "0342"           "044"          "0232"          "0111" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>           "024"          "0111"          "0342"          "0342"          "0421"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"          "0342"          "0422"           "021"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>           "024"          "0423"          "0312"           "043"          "0112"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>          "0111"          "0112"          "0232"          "0111"           "022"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"          "0341"          "0311"          "0311"          "0342"           "021" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>          "0423"           "012"           "013"          "0421"           "043"          "0112" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>          "0341"           "033"          "0342"          "0112"           "015"           "033" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>          "0341"           "021"           "013"          "0112"           "013"          "0312" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>          "0111"          "0111"          "0231"          "0312"           "012"          "0321" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>          "0311"           "022"           "013"          "0112"           "033"          "0421" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>           "033"          "0111"           "016"           "041"          "0422"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>          "0423"          "0321"           "021"           "024"           "044"           "021" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"          "0322"          "0342"           "014"          "0111"          "0311" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"          "0423"          "0422"          "0423"          "0424"          "0311" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"          "0111"           "022"          "0321"          "0321"          "0323" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>          "0232"          "0321"          "0424"           "021"          "0321"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>           "021"          "0423"           "013"          "0322"          "0112"          "0421" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>           "022"           "022"          "0232"           "016"           "033"          "0423" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"          "0321"           "041"          "0112"           "022"          "0322" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"          "0424"           "014"          "0111"          "0423"          "0312" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>           "021"          "0111"           "022"          "0231"          "0111"           "033" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>          "0231"           "013"           "033"           "024"          "0111"          "0311" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>          "0231"          "0313"          "0341"           "016"          "0423"          "0421" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>          "0312"           "033"          "0313"           "024"          "0342"           "021" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>          "0422"          "0322"           "033"           "021"          "0421"          "0422" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>          "0421"           "033"          "0311"           "022"           "022"          "0312" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>          "0111"          "0312"          "0111"          "0112"           "014"           "021" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"          "0231"          "0111"           "013"           "014"           "021" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"          "0111"          "0312"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 3527))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>          "0321"          "0421"          "0421"          "0321"          "0321"          "0422" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>           "021"          "0233"           "021"          "0421"          "0423"           "022" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>          "0321"           "033"           "016"          "0323"           "041"           "033" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>           "021"           "022"          "0422"           "033"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>           "034"          "0111"           "044"          "0421"           "012"          "0422" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>          "0422"           "033"          "0111"           "012"          "0424"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>           "021"          "0421"           "034"          "0111"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>          "0312"          "0111"           "034"          "0112"          "0322"          "0312" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>          "0233"          "0111"          "0422"           "041"           "014"          "0311" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>           "034"           "033"          "0231"          "0423"          "0312"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>           "021"           "022"          "0422"           "012"          "0323"           "024" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>          "0321"           "016"           "033"           "033"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>          "0322"          "0111"          "0422"          "0111"          "0112"           "021" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>           "021"          "0111"          "0321"          "0423"           "015"           "024" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"          "0321"           "033"          "0111"           "022"          "0112" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>           "024"           "034"           "034"           "044"          "0232"          "0111" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>           "024"          "0111"           "034"           "034"          "0421"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"           "034"          "0422"           "021"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>           "024"          "0423"          "0312"           "043"          "0112"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>          "0111"          "0112"          "0232"          "0111"           "022"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"           "034"          "0311"          "0311"           "034"           "021" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>          "0423"           "012"           "013"          "0421"           "043"          "0112" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>           "034"           "033"           "034"          "0112"           "015"           "033" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>           "034"           "021"           "013"          "0112"           "013"          "0312" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>          "0111"          "0111"          "0231"          "0312"           "012"          "0321" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>          "0311"           "022"           "013"          "0112"           "033"          "0421" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>           "033"          "0111"           "016"           "041"          "0422"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>          "0423"          "0321"           "021"           "024"           "044"           "021" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"          "0322"           "034"           "014"          "0111"          "0311" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"          "0423"          "0422"          "0423"          "0424"          "0311" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"          "0111"           "022"          "0321"          "0321"          "0323" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>          "0232"          "0321"          "0424"           "021"          "0321"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>           "021"          "0423"           "013"          "0322"          "0112"          "0421" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>           "022"           "022"          "0232"           "016"           "033"          "0423" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"          "0321"           "041"          "0112"           "022"          "0322" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"          "0424"           "014"          "0111"          "0423"          "0312" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>           "021"          "0111"           "022"          "0231"          "0111"           "033" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>          "0231"           "013"           "033"           "024"          "0111"          "0311" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>          "0231"          "0313"           "034"           "016"          "0423"          "0421" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>          "0312"           "033"          "0313"           "024"           "034"           "021" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>          "0422"          "0322"           "033"           "021"          "0421"          "0422" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>          "0421"           "033"          "0311"           "022"           "022"          "0312" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>          "0111"          "0312"          "0111"          "0112"           "014"           "021" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"          "0231"          "0111"           "013"           "014"           "021" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"          "0111"          "0312"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 5421))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>          "0321"          "0421"          "0421"          "0321"          "0321"          "0422" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>           "021"          "0233"           "021"          "0421"          "0423"           "022" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>          "0321"           "033"           "016"          "0323"           "041"           "033" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>           "021"           "022"          "0422"           "033"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>           "034"           "011"           "044"          "0421"           "012"          "0422" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>          "0422"           "033"           "011"           "012"          "0424"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>           "021"          "0421"           "034"           "011"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>          "0312"           "011"           "034"           "011"          "0322"          "0312" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>          "0233"           "011"          "0422"           "041"           "014"          "0311" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>           "034"           "033"          "0231"          "0423"          "0312"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>           "021"           "022"          "0422"           "012"          "0323"           "024" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>          "0321"           "016"           "033"           "033"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>          "0322"           "011"          "0422"           "011"           "011"           "021" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>           "021"           "011"          "0321"          "0423"           "015"           "024" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"          "0321"           "033"           "011"           "022"           "011" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>           "024"           "034"           "034"           "044"          "0232"           "011" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>           "024"           "011"           "034"           "034"          "0421"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"           "034"          "0422"           "021"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>           "024"          "0423"          "0312"           "043"           "011"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>           "011"           "011"          "0232"           "011"           "022"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"           "034"          "0311"          "0311"           "034"           "021" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>          "0423"           "012"           "013"          "0421"           "043"           "011" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>           "034"           "033"           "034"           "011"           "015"           "033" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>           "034"           "021"           "013"           "011"           "013"          "0312" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>           "011"           "011"          "0231"          "0312"           "012"          "0321" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>          "0311"           "022"           "013"           "011"           "033"          "0421" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>           "033"           "011"           "016"           "041"          "0422"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>          "0423"          "0321"           "021"           "024"           "044"           "021" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"          "0322"           "034"           "014"           "011"          "0311" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"          "0423"          "0422"          "0423"          "0424"          "0311" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"           "011"           "022"          "0321"          "0321"          "0323" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>          "0232"          "0321"          "0424"           "021"          "0321"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>           "021"          "0423"           "013"          "0322"           "011"          "0421" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>           "022"           "022"          "0232"           "016"           "033"          "0423" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"          "0321"           "041"           "011"           "022"          "0322" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"          "0424"           "014"           "011"          "0423"          "0312" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>           "021"           "011"           "022"          "0231"           "011"           "033" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>          "0231"           "013"           "033"           "024"           "011"          "0311" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>          "0231"          "0313"           "034"           "016"          "0423"          "0421" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>          "0312"           "033"          "0313"           "024"           "034"           "021" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>          "0422"          "0322"           "033"           "021"          "0421"          "0422" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>          "0421"           "033"          "0311"           "022"           "022"          "0312" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>           "011"          "0312"           "011"           "011"           "014"           "021" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"          "0231"           "011"           "013"           "014"           "021" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"           "011"          "0312"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 11140))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>          "0321"          "0421"          "0421"          "0321"          "0321"          "0422" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>           "021"          "0233"           "021"          "0421"          "0423"           "022" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>          "0321"           "033"           "016"          "0323"           "041"           "033" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>           "021"           "022"          "0422"           "033"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>           "034"           "011"           "044"          "0421"           "012"          "0422" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>          "0422"           "033"           "011"           "012"          "0424"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>           "021"          "0421"           "034"           "011"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>           "031"           "011"           "034"           "011"          "0322"           "031" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>          "0233"           "011"          "0422"           "041"           "014"           "031" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>           "034"           "033"          "0231"          "0423"           "031"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>           "021"           "022"          "0422"           "012"          "0323"           "024" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>          "0321"           "016"           "033"           "033"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>          "0322"           "011"          "0422"           "011"           "011"           "021" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>           "021"           "011"          "0321"          "0423"           "015"           "024" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"          "0321"           "033"           "011"           "022"           "011" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>           "024"           "034"           "034"           "044"          "0232"           "011" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>           "024"           "011"           "034"           "034"          "0421"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"           "034"          "0422"           "021"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>           "024"          "0423"           "031"           "043"           "011"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>           "011"           "011"          "0232"           "011"           "022"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"           "034"           "031"           "031"           "034"           "021" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>          "0423"           "012"           "013"          "0421"           "043"           "011" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>           "034"           "033"           "034"           "011"           "015"           "033" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>           "034"           "021"           "013"           "011"           "013"           "031" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>           "011"           "011"          "0231"           "031"           "012"          "0321" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>           "031"           "022"           "013"           "011"           "033"          "0421" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>           "033"           "011"           "016"           "041"          "0422"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>          "0423"          "0321"           "021"           "024"           "044"           "021" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"          "0322"           "034"           "014"           "011"           "031" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"          "0423"          "0422"          "0423"          "0424"           "031" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"           "011"           "022"          "0321"          "0321"          "0323" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>          "0232"          "0321"          "0424"           "021"          "0321"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>           "021"          "0423"           "013"          "0322"           "011"          "0421" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>           "022"           "022"          "0232"           "016"           "033"          "0423" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"          "0321"           "041"           "011"           "022"          "0322" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"          "0424"           "014"           "011"          "0423"           "031" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>           "021"           "011"           "022"          "0231"           "011"           "033" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>          "0231"           "013"           "033"           "024"           "011"           "031" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>          "0231"           "031"           "034"           "016"          "0423"          "0421" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>           "031"           "033"           "031"           "024"           "034"           "021" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>          "0422"          "0322"           "033"           "021"          "0421"          "0422" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>          "0421"           "033"           "031"           "022"           "022"           "031" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>           "011"           "031"           "011"           "011"           "014"           "021" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"          "0231"           "011"           "013"           "014"           "021" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"           "011"           "031"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 13269))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>          "0321"          "0421"          "0421"          "0321"          "0321"          "0422" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>           "021"           "023"           "021"          "0421"          "0423"           "022" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>          "0321"           "033"           "016"          "0323"           "041"           "033" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>           "021"           "022"          "0422"           "033"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>           "034"           "011"           "044"          "0421"           "012"          "0422" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>          "0422"           "033"           "011"           "012"          "0424"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>           "021"          "0421"           "034"           "011"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>           "031"           "011"           "034"           "011"          "0322"           "031" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>           "023"           "011"          "0422"           "041"           "014"           "031" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>           "034"           "033"           "023"          "0423"           "031"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>           "021"           "022"          "0422"           "012"          "0323"           "024" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>          "0321"           "016"           "033"           "033"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>          "0322"           "011"          "0422"           "011"           "011"           "021" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>           "021"           "011"          "0321"          "0423"           "015"           "024" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"          "0321"           "033"           "011"           "022"           "011" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>           "024"           "034"           "034"           "044"           "023"           "011" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>           "024"           "011"           "034"           "034"          "0421"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"           "034"          "0422"           "021"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>           "024"          "0423"           "031"           "043"           "011"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>           "011"           "011"           "023"           "011"           "022"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"           "034"           "031"           "031"           "034"           "021" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>          "0423"           "012"           "013"          "0421"           "043"           "011" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>           "034"           "033"           "034"           "011"           "015"           "033" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>           "034"           "021"           "013"           "011"           "013"           "031" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>           "011"           "011"           "023"           "031"           "012"          "0321" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>           "031"           "022"           "013"           "011"           "033"          "0421" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>           "033"           "011"           "016"           "041"          "0422"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>          "0423"          "0321"           "021"           "024"           "044"           "021" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"          "0322"           "034"           "014"           "011"           "031" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"          "0423"          "0422"          "0423"          "0424"           "031" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"           "011"           "022"          "0321"          "0321"          "0323" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>           "023"          "0321"          "0424"           "021"          "0321"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>           "021"          "0423"           "013"          "0322"           "011"          "0421" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>           "022"           "022"           "023"           "016"           "033"          "0423" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"          "0321"           "041"           "011"           "022"          "0322" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"          "0424"           "014"           "011"          "0423"           "031" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>           "021"           "011"           "022"           "023"           "011"           "033" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>           "023"           "013"           "033"           "024"           "011"           "031" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>           "023"           "031"           "034"           "016"          "0423"          "0421" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>           "031"           "033"           "031"           "024"           "034"           "021" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>          "0422"          "0322"           "033"           "021"          "0421"          "0422" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>          "0421"           "033"           "031"           "022"           "022"           "031" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>           "011"           "031"           "011"           "011"           "014"           "021" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"           "023"           "011"           "013"           "014"           "021" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"           "011"           "031"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 17117))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>           "032"          "0421"          "0421"           "032"           "032"          "0422" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>           "021"           "023"           "021"          "0421"          "0423"           "022" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>           "032"           "033"           "016"           "032"           "041"           "033" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>           "021"           "022"          "0422"           "033"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>           "034"           "011"           "044"          "0421"           "012"          "0422" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>          "0422"           "033"           "011"           "012"          "0424"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>           "021"          "0421"           "034"           "011"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>           "031"           "011"           "034"           "011"           "032"           "031" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>           "023"           "011"          "0422"           "041"           "014"           "031" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>           "034"           "033"           "023"          "0423"           "031"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>           "021"           "022"          "0422"           "012"           "032"           "024" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>           "032"           "016"           "033"           "033"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>           "032"           "011"          "0422"           "011"           "011"           "021" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>           "021"           "011"           "032"          "0423"           "015"           "024" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"           "032"           "033"           "011"           "022"           "011" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>           "024"           "034"           "034"           "044"           "023"           "011" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>           "024"           "011"           "034"           "034"          "0421"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"           "034"          "0422"           "021"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>           "024"          "0423"           "031"           "043"           "011"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>           "011"           "011"           "023"           "011"           "022"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"           "034"           "031"           "031"           "034"           "021" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>          "0423"           "012"           "013"          "0421"           "043"           "011" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>           "034"           "033"           "034"           "011"           "015"           "033" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>           "034"           "021"           "013"           "011"           "013"           "031" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>           "011"           "011"           "023"           "031"           "012"           "032" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>           "031"           "022"           "013"           "011"           "033"          "0421" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>           "033"           "011"           "016"           "041"          "0422"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>          "0423"           "032"           "021"           "024"           "044"           "021" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"           "032"           "034"           "014"           "011"           "031" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"          "0423"          "0422"          "0423"          "0424"           "031" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"           "011"           "022"           "032"           "032"           "032" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>           "023"           "032"          "0424"           "021"           "032"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>           "021"          "0423"           "013"           "032"           "011"          "0421" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>           "022"           "022"           "023"           "016"           "033"          "0423" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"           "032"           "041"           "011"           "022"           "032" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"          "0424"           "014"           "011"          "0423"           "031" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>           "021"           "011"           "022"           "023"           "011"           "033" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>           "023"           "013"           "033"           "024"           "011"           "031" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>           "023"           "031"           "034"           "016"          "0423"          "0421" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>           "031"           "033"           "031"           "024"           "034"           "021" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>          "0422"           "032"           "033"           "021"          "0421"          "0422" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>          "0421"           "033"           "031"           "022"           "022"           "031" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>           "011"           "031"           "011"           "011"           "014"           "021" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"           "023"           "011"           "013"           "014"           "021" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"           "011"           "031"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 21524))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>            "03"          "0421"          "0421"            "03"            "03"          "0422" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>           "021"           "023"           "021"          "0421"          "0423"           "022" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>            "03"            "03"           "016"            "03"           "041"            "03" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>           "021"           "022"          "0422"            "03"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>            "03"           "011"           "044"          "0421"           "012"          "0422" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>          "0422"            "03"           "011"           "012"          "0424"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>           "021"          "0421"            "03"           "011"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>            "03"           "011"            "03"           "011"            "03"            "03" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>           "023"           "011"          "0422"           "041"           "014"            "03" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>            "03"            "03"           "023"          "0423"            "03"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>           "021"           "022"          "0422"           "012"            "03"           "024" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>            "03"           "016"            "03"            "03"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>            "03"           "011"          "0422"           "011"           "011"           "021" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>           "021"           "011"            "03"          "0423"           "015"           "024" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"            "03"            "03"           "011"           "022"           "011" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>           "024"            "03"            "03"           "044"           "023"           "011" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>           "024"           "011"            "03"            "03"          "0421"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"            "03"          "0422"           "021"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>           "024"          "0423"            "03"           "043"           "011"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>           "011"           "011"           "023"           "011"           "022"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"            "03"            "03"            "03"            "03"           "021" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>          "0423"           "012"           "013"          "0421"           "043"           "011" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>            "03"            "03"            "03"           "011"           "015"            "03" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>            "03"           "021"           "013"           "011"           "013"            "03" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>           "011"           "011"           "023"            "03"           "012"            "03" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>            "03"           "022"           "013"           "011"            "03"          "0421" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>            "03"           "011"           "016"           "041"          "0422"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>          "0423"            "03"           "021"           "024"           "044"           "021" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"            "03"            "03"           "014"           "011"            "03" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"          "0423"          "0422"          "0423"          "0424"            "03" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"           "011"           "022"            "03"            "03"            "03" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>           "023"            "03"          "0424"           "021"            "03"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>           "021"          "0423"           "013"            "03"           "011"          "0421" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>           "022"           "022"           "023"           "016"            "03"          "0423" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"            "03"           "041"           "011"           "022"            "03" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"          "0424"           "014"           "011"          "0423"            "03" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>           "021"           "011"           "022"           "023"           "011"            "03" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>           "023"           "013"            "03"           "024"           "011"            "03" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>           "023"            "03"            "03"           "016"          "0423"          "0421" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>            "03"            "03"            "03"           "024"            "03"           "021" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>          "0422"            "03"            "03"           "021"          "0421"          "0422" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>          "0421"            "03"            "03"           "022"           "022"            "03" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>           "011"            "03"           "011"           "011"           "014"           "021" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"           "023"           "011"           "013"           "014"           "021" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"           "011"            "03"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 30490))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>            "03"           "042"           "042"            "03"            "03"           "042" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>           "021"           "023"           "021"           "042"           "042"           "022" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>            "03"            "03"           "016"            "03"           "041"            "03" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>           "021"           "022"           "042"            "03"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>            "03"           "011"           "044"           "042"           "012"           "042" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>           "042"            "03"           "011"           "012"           "042"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>           "021"           "042"            "03"           "011"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>            "03"           "011"            "03"           "011"            "03"            "03" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>           "023"           "011"           "042"           "041"           "014"            "03" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>            "03"            "03"           "023"           "042"            "03"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>           "021"           "022"           "042"           "012"            "03"           "024" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>            "03"           "016"            "03"            "03"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>            "03"           "011"           "042"           "011"           "011"           "021" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>           "021"           "011"            "03"           "042"           "015"           "024" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"            "03"            "03"           "011"           "022"           "011" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>           "024"            "03"            "03"           "044"           "023"           "011" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>           "024"           "011"            "03"            "03"           "042"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"            "03"           "042"           "021"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>           "024"           "042"            "03"           "043"           "011"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>           "011"           "011"           "023"           "011"           "022"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"            "03"            "03"            "03"            "03"           "021" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>           "042"           "012"           "013"           "042"           "043"           "011" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>            "03"            "03"            "03"           "011"           "015"            "03" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>            "03"           "021"           "013"           "011"           "013"            "03" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>           "011"           "011"           "023"            "03"           "012"            "03" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>            "03"           "022"           "013"           "011"            "03"           "042" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>            "03"           "011"           "016"           "041"           "042"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>           "042"            "03"           "021"           "024"           "044"           "021" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"            "03"            "03"           "014"           "011"            "03" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"           "042"           "042"           "042"           "042"            "03" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"           "011"           "022"            "03"            "03"            "03" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>           "023"            "03"           "042"           "021"            "03"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>           "021"           "042"           "013"            "03"           "011"           "042" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>           "022"           "022"           "023"           "016"            "03"           "042" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"            "03"           "041"           "011"           "022"            "03" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"           "042"           "014"           "011"           "042"            "03" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>           "021"           "011"           "022"           "023"           "011"            "03" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>           "023"           "013"            "03"           "024"           "011"            "03" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>           "023"            "03"            "03"           "016"           "042"           "042" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>            "03"            "03"            "03"           "024"            "03"           "021" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>           "042"            "03"            "03"           "021"           "042"           "042" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>           "042"            "03"            "03"           "022"           "022"            "03" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>           "011"            "03"           "011"           "011"           "014"           "021" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"           "023"           "011"           "013"           "014"           "021" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"           "011"            "03"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 58837))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>            "03"           "042"           "042"            "03"            "03"           "042" 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>            "02"            "02"            "02"           "042"           "042"            "02" 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>            "03"            "03"           "016"            "03"           "041"            "03" 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>            "02"            "02"           "042"            "03"           "043"           "013" 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>            "03"           "011"           "044"           "042"           "012"           "042" 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>           "042"            "03"           "011"           "012"           "042"           "041" 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>            "02"           "042"            "03"           "011"           "044"           "041" 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>            "03"           "011"            "03"           "011"            "03"            "03" 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>            "02"           "011"           "042"           "041"           "014"            "03" 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>            "03"            "03"            "02"           "042"            "03"           "015" 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>            "02"            "02"           "042"           "012"            "03"            "02" 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>            "03"           "016"            "03"            "03"           "041"           "014" 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>            "03"           "011"           "042"           "011"           "011"            "02" 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>            "02"           "011"            "03"           "042"           "015"            "02" 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>           "045"            "03"            "03"           "011"            "02"           "011" 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>            "02"            "03"            "03"           "044"            "02"           "011" 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>            "02"           "011"            "03"            "03"           "042"           "016" 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>           "013"            "03"           "042"            "02"           "016"           "012" 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>            "02"           "042"            "03"           "043"           "011"           "014" 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>           "011"           "011"            "02"           "011"            "02"           "045" 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>           "013"            "03"            "03"            "03"            "03"            "02" 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>           "042"           "012"           "013"           "042"           "043"           "011" 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>            "03"            "03"            "03"           "011"           "015"            "03" 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>            "03"            "02"           "013"           "011"           "013"            "03" 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>           "011"           "011"            "02"            "03"           "012"            "03" 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>            "03"            "02"           "013"           "011"            "03"           "042" 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>            "03"           "011"           "016"           "041"           "042"           "015" 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>           "042"            "03"            "02"            "02"           "044"            "02" 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>           "013"            "03"            "03"           "014"           "011"            "03" 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>           "043"           "042"           "042"           "042"           "042"            "03" 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>           "015"           "011"            "02"            "03"            "03"            "03" 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>            "02"            "03"           "042"            "02"            "03"           "041" 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>            "02"           "042"           "013"            "03"           "011"           "042" 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>            "02"            "02"            "02"           "016"            "03"           "042" 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>           "044"            "03"           "041"           "011"            "02"            "03" 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>           "043"           "042"           "014"           "011"           "042"            "03" 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>            "02"           "011"            "02"            "02"           "011"            "03" 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>            "02"           "013"            "03"            "02"           "011"            "03" 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>            "02"            "03"            "03"           "016"           "042"           "042" 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>            "03"            "03"            "03"            "02"            "03"            "02" 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>           "042"            "03"            "03"            "02"           "042"           "042" 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>           "042"            "03"            "03"            "02"            "02"            "03" 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>           "011"            "03"           "011"           "011"           "014"            "02" 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>           "043"            "02"           "011"           "013"           "014"            "02" 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>           "044"           "011"            "03"           "012"           "014"

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 62737))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>              NA              NA              NA              NA              NA

show/hide code output

get_classes(res_rh, merge_node = merge_node_param(min_n_signatures = 86792))
#> TCGA.QQ.A8VD.01 TCGA.DX.A1KX.01 TCGA.DX.AB37.01 TCGA.DX.A1KW.01 TCGA.HB.A3YV.01 TCGA.WK.A8Y0.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB2O.01 TCGA.DX.AB3C.01 TCGA.X6.A8C3.01 TCGA.X6.A8C6.01 TCGA.DX.AB36.01 TCGA.IE.A4EJ.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.IF.A3RQ.01 TCGA.QC.AA9N.01 TCGA.HB.A43Z.01 TCGA.FX.A48G.01 TCGA.FX.A8OO.01 TCGA.3B.A9HS.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB2W.01 TCGA.DX.A7EU.01 TCGA.DX.A8BJ.01 TCGA.DX.A3U5.01 TCGA.DX.AB30.01 TCGA.IE.A4EK.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A7ES.01 TCGA.K1.A3PN.01 TCGA.MO.A47R.01 TCGA.DX.A1L2.01 TCGA.K1.A42X.02 TCGA.QQ.A5VB.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.3B.A9HX.01 TCGA.DX.A6Z2.01 TCGA.3B.A9HZ.01 TCGA.K1.A42X.01 TCGA.DX.A1L0.01 TCGA.DX.A7EO.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A6Z0.01 TCGA.MB.A8JK.01 TCGA.DX.A8BG.01 TCGA.DX.A7EL.01 TCGA.DX.AB2H.01 TCGA.DX.A7ER.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.VT.A80J.01 TCGA.3B.A9HY.01 TCGA.DX.A8BO.01 TCGA.3B.A9I0.01 TCGA.FX.A3RE.01 TCGA.3B.A9HT.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB3B.01 TCGA.K1.A42W.01 TCGA.VT.A80J.02 TCGA.Z4.AAPF.01 TCGA.3B.A9I1.01 TCGA.DX.A3M2.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB2L.01 TCGA.DX.A1L1.01 TCGA.FX.A3TO.01 TCGA.VT.AB3D.01 TCGA.DX.AB2S.01 TCGA.MO.A47P.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.X6.A8C2.01 TCGA.DX.AATS.01 TCGA.DX.AB2E.01 TCGA.K1.A42X.11 TCGA.DX.A7EN.01 TCGA.Z4.AAPG.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB35.01 TCGA.DX.A1KY.01 TCGA.DX.A1KZ.01 TCGA.DX.A1L3.01 TCGA.X6.A8C7.01 TCGA.IE.A4EH.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.MB.A8JL.01 TCGA.IF.A4AK.01 TCGA.KF.A41W.01 TCGA.IE.A4EI.01 TCGA.3B.A9HU.01 TCGA.DX.AB2Q.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A8BL.01 TCGA.IF.A4AJ.01 TCGA.DX.AB2V.01 TCGA.DX.A7ET.01 TCGA.KF.A41W.11 TCGA.VT.A80G.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.3B.A9HV.01 TCGA.DX.AB2G.01 TCGA.DX.A8BR.01 TCGA.K1.A3PN.02 TCGA.DX.A3M1.01 TCGA.X6.A8C5.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A6YX.01 TCGA.RN.AAAQ.01 TCGA.IF.A4AJ.11 TCGA.DX.AB3A.01 TCGA.DX.A8BM.01 TCGA.IE.A3OV.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.X6.A8C4.01 TCGA.DX.A7EM.01 TCGA.DX.AB32.01 TCGA.3B.A9I3.01 TCGA.K1.A6RU.01 TCGA.IW.A3M6.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A48J.01 TCGA.3B.A9HO.01 TCGA.N1.A6IA.01 TCGA.X6.A7W8.01 TCGA.DX.AB2J.01 TCGA.IW.A3M4.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB2X.01 TCGA.HB.A2OT.01 TCGA.UE.A6QT.01 TCGA.SG.A6Z7.01 TCGA.X6.A7WD.01 TCGA.X6.A7WB.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.3B.A9HP.01 TCGA.3B.A9HR.01 TCGA.LI.A67I.01 TCGA.X6.A7WA.01 TCGA.DX.A6YR.01 TCGA.HB.A3L4.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.FX.A3NJ.01 TCGA.DX.A3LS.01 TCGA.DX.A2J1.01 TCGA.DX.A2J4.01 TCGA.DX.A6BE.01 TCGA.K1.A6RV.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB2Z.01 TCGA.IS.A3K8.01 TCGA.DX.A48O.01 TCGA.DX.AB2T.01 TCGA.JV.A75J.01 TCGA.DX.A3UD.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.QQ.A5VA.01 TCGA.DX.A3LY.01 TCGA.DX.A3LU.01 TCGA.3B.A9HQ.01 TCGA.FX.A48G.11 TCGA.X9.A973.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.MJ.A68J.01 TCGA.DX.A3LT.01 TCGA.DX.A48P.01 TCGA.DX.A48R.01 TCGA.DX.A6B7.01 TCGA.3B.A9HJ.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A6BA.01 TCGA.MJ.A68H.01 TCGA.DX.A6YV.01 TCGA.DX.A6BK.01 TCGA.FX.A76Y.01 TCGA.DX.A48N.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.K1.A3PO.01 TCGA.IE.A6BZ.01 TCGA.DX.A6BB.01 TCGA.X9.A971.01 TCGA.IS.A3K7.01 TCGA.3B.A9HI.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.PC.A5DN.01 TCGA.QQ.A5VD.01 TCGA.DX.A2IZ.01 TCGA.MJ.A850.01 TCGA.IS.A3KA.01 TCGA.DX.A3UB.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.UE.A6QU.01 TCGA.DX.AB2F.01 TCGA.DX.A48K.01 TCGA.X6.A7WC.01 TCGA.DX.A3LW.01 TCGA.SI.AA8B.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A48V.01 TCGA.SI.AA8C.01 TCGA.QQ.A5V2.01 TCGA.IS.A3K6.01 TCGA.DX.A3UC.01 TCGA.RN.A68Q.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.IW.A3M5.01 TCGA.DX.A1KU.01 TCGA.DX.A3U9.01 TCGA.SG.A849.01 TCGA.DX.A6BF.01 TCGA.DX.A6BG.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A6B9.01 TCGA.DX.A3UF.01 TCGA.DX.A6B8.01 TCGA.FX.A3NK.01 TCGA.DX.A6BH.01 TCGA.DX.A48L.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A6YS.01 TCGA.DX.A6YT.01 TCGA.DX.A2J0.01 TCGA.DX.A6YZ.01 TCGA.3B.A9HL.01 TCGA.DX.A7EQ.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.AB2P.01 TCGA.QC.A6FX.01 TCGA.DX.A48U.01 TCGA.FX.A2QS.01 TCGA.DX.A3UE.01 TCGA.QQ.A5V9.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A3UA.01 TCGA.QQ.A5VC.01 TCGA.DX.A23R.01 TCGA.QQ.A8VB.01 TCGA.DX.A23Z.01 TCGA.DX.A8BH.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.HS.A5N8.01 TCGA.DX.A240.01 TCGA.WK.A8XT.01 TCGA.MB.A5YA.01 TCGA.DX.A8BK.01 TCGA.DX.A7EI.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.SI.A71Q.01 TCGA.DX.A8BX.01 TCGA.WP.A9GB.01 TCGA.PC.A5DO.01 TCGA.DX.A23U.01 TCGA.K1.A6RT.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A7EF.01 TCGA.HS.A5N7.01 TCGA.HS.A5N9.01 TCGA.SG.A6Z4.01 TCGA.WK.A8XZ.01 TCGA.WK.A8XO.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A8BU.01 TCGA.PC.A5DL.01 TCGA.DX.A8BT.01 TCGA.MB.A5Y8.01 TCGA.WK.A8XY.01 TCGA.DX.A23T.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.KD.A5QS.01 TCGA.QQ.A8VG.01 TCGA.DX.A23V.01 TCGA.PT.A8TR.01 TCGA.SI.A71O.06 TCGA.DX.A8BV.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A8BQ.01 TCGA.Z4.A8JB.01 TCGA.SI.A71P.01 TCGA.3R.A8YX.01 TCGA.DX.A8BP.01 TCGA.SI.A71O.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.KD.A5QU.01 TCGA.WK.A8XQ.01 TCGA.QQ.A8VF.01 TCGA.DX.A8BS.01 TCGA.DX.A6YU.01 TCGA.JV.A5VF.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.DX.A8BN.01 TCGA.DX.A23Y.01 TCGA.DX.A1L4.01 TCGA.PC.A5DM.01 TCGA.DX.A6YQ.01 TCGA.MB.A5Y9.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.HB.A5W3.01 TCGA.DX.A3U8.01 TCGA.WK.A8XS.01 TCGA.DX.A3U7.01 TCGA.KD.A5QT.01 TCGA.QC.A7B5.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.QQ.A8VH.01 TCGA.LI.A9QH.01 TCGA.WK.A8XX.01 TCGA.PC.A5DK.01 TCGA.JV.A5VE.01 TCGA.DX.A8BZ.01 
#>              NA              NA              NA              NA              NA              NA 
#> TCGA.Z4.A9VC.01 TCGA.PC.A5DP.01 TCGA.DX.A3U6.01 TCGA.X2.A95T.01 TCGA.HS.A5NA.01 
#>              NA              NA              NA              NA              NA

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 = 1077),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 1077),
    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 = 1148),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 1148),
    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 = 1464),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 1464),
    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 = 1932),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 1932),
    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 = 1949),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 1949),
    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 = 2056),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 2056),
    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 = 2547),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 2547),
    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 = 3527),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 3527),
    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 = 5421),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 5421),
    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 = 11140),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 11140),
    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 = 13269),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 13269),
    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 = 17117),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 17117),
    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 = 21524),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 21524),
    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 = 30490),
    method = "UMAP", top_value_method = "SD", top_n = 40000, scale_rows = FALSE)
dimension_reduction(res_rh, merge_node = merge_node_param(min_n_signatures = 30490),
    method = "UMAP", top_value_method = "ATC", top_n = 40000, scale_rows = TRUE)

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

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

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

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

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

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

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

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 = 1077))

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 62737))
#> Error in names(x) <- value: 'names' attribute [1] must be the same length as the vector [0]
get_signatures(res_rh, merge_node = merge_node_param(min_n_signatures = 86792))
#> Error in names(x) <- value: 'names' attribute [1] must be the same length as the vector [0]

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 .

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 269 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-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.996         0.5004 0.500   0.500
#> 3 3 0.984           0.954       0.982         0.3212 0.679   0.446
#> 4 4 0.900           0.956       0.967         0.1216 0.849   0.595
#> 5 5 0.813           0.716       0.865         0.0506 0.995   0.979
#> 6 6 0.782           0.640       0.811         0.0278 0.932   0.748
#> 7 7 0.799           0.756       0.862         0.0252 0.928   0.696
#> 8 8 0.837           0.721       0.836         0.0286 0.946   0.718

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.QQ.A8VD.01     1   0.469    0.88601 0.90 0.10
#> TCGA.DX.A1KX.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.AB37.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A1KW.01     1   1.000   -0.00542 0.50 0.50
#> TCGA.HB.A3YV.01     1   0.000    0.99561 1.00 0.00
#> TCGA.WK.A8Y0.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.AB2O.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.AB3C.01     2   0.000    0.99630 0.00 1.00
#> TCGA.X6.A8C3.01     2   0.000    0.99630 0.00 1.00
#> TCGA.X6.A8C6.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.AB36.01     2   0.000    0.99630 0.00 1.00
#> TCGA.IE.A4EJ.01     2   0.000    0.99630 0.00 1.00
#> TCGA.IF.A3RQ.01     1   0.000    0.99561 1.00 0.00
#> TCGA.QC.AA9N.01     1   0.000    0.99561 1.00 0.00
#> TCGA.HB.A43Z.01     1   0.000    0.99561 1.00 0.00
#> TCGA.FX.A48G.01     1   0.000    0.99561 1.00 0.00
#> TCGA.FX.A8OO.01     2   0.000    0.99630 0.00 1.00
#> TCGA.3B.A9HS.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.AB2W.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A7EU.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A8BJ.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A3U5.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.AB30.01     2   0.000    0.99630 0.00 1.00
#> TCGA.IE.A4EK.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A7ES.01     1   0.000    0.99561 1.00 0.00
#> TCGA.K1.A3PN.01     1   0.000    0.99561 1.00 0.00
#> TCGA.MO.A47R.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A1L2.01     2   0.000    0.99630 0.00 1.00
#> TCGA.K1.A42X.02     1   0.000    0.99561 1.00 0.00
#> TCGA.QQ.A5VB.01     2   0.000    0.99630 0.00 1.00
#> TCGA.3B.A9HX.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A6Z2.01     1   0.000    0.99561 1.00 0.00
#> TCGA.3B.A9HZ.01     1   0.000    0.99561 1.00 0.00
#> TCGA.K1.A42X.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A1L0.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A7EO.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A6Z0.01     2   0.000    0.99630 0.00 1.00
#> TCGA.MB.A8JK.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A8BG.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A7EL.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.AB2H.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A7ER.01     2   0.000    0.99630 0.00 1.00
#> TCGA.VT.A80J.01     1   0.000    0.99561 1.00 0.00
#> TCGA.3B.A9HY.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A8BO.01     1   0.000    0.99561 1.00 0.00
#> TCGA.3B.A9I0.01     1   0.000    0.99561 1.00 0.00
#> TCGA.FX.A3RE.01     1   0.000    0.99561 1.00 0.00
#> TCGA.3B.A9HT.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.AB3B.01     2   0.000    0.99630 0.00 1.00
#> TCGA.K1.A42W.01     1   0.000    0.99561 1.00 0.00
#> TCGA.VT.A80J.02     2   0.000    0.99630 0.00 1.00
#> TCGA.Z4.AAPF.01     2   0.000    0.99630 0.00 1.00
#> TCGA.3B.A9I1.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A3M2.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.AB2L.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A1L1.01     1   0.000    0.99561 1.00 0.00
#> TCGA.FX.A3TO.01     2   0.000    0.99630 0.00 1.00
#> TCGA.VT.AB3D.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.AB2S.01     1   0.000    0.99561 1.00 0.00
#> TCGA.MO.A47P.01     1   0.000    0.99561 1.00 0.00
#> TCGA.X6.A8C2.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.AATS.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.AB2E.01     2   0.000    0.99630 0.00 1.00
#> TCGA.K1.A42X.11     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A7EN.01     1   0.000    0.99561 1.00 0.00
#> TCGA.Z4.AAPG.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.AB35.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A1KY.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A1KZ.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A1L3.01     2   0.000    0.99630 0.00 1.00
#> TCGA.X6.A8C7.01     2   0.000    0.99630 0.00 1.00
#> TCGA.IE.A4EH.01     1   0.000    0.99561 1.00 0.00
#> TCGA.MB.A8JL.01     1   0.000    0.99561 1.00 0.00
#> TCGA.IF.A4AK.01     1   0.000    0.99561 1.00 0.00
#> TCGA.KF.A41W.01     2   0.000    0.99630 0.00 1.00
#> TCGA.IE.A4EI.01     1   0.000    0.99561 1.00 0.00
#> TCGA.3B.A9HU.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.AB2Q.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A8BL.01     2   0.000    0.99630 0.00 1.00
#> TCGA.IF.A4AJ.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.AB2V.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A7ET.01     2   0.000    0.99630 0.00 1.00
#> TCGA.KF.A41W.11     1   0.000    0.99561 1.00 0.00
#> TCGA.VT.A80G.01     2   0.000    0.99630 0.00 1.00
#> TCGA.3B.A9HV.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.AB2G.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A8BR.01     1   0.141    0.97566 0.98 0.02
#> TCGA.K1.A3PN.02     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A3M1.01     2   0.000    0.99630 0.00 1.00
#> TCGA.X6.A8C5.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A6YX.01     2   0.000    0.99630 0.00 1.00
#> TCGA.RN.AAAQ.01     1   0.000    0.99561 1.00 0.00
#> TCGA.IF.A4AJ.11     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.AB3A.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A8BM.01     2   0.000    0.99630 0.00 1.00
#> TCGA.IE.A3OV.01     1   0.000    0.99561 1.00 0.00
#> TCGA.X6.A8C4.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A7EM.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.AB32.01     2   0.000    0.99630 0.00 1.00
#> TCGA.3B.A9I3.01     1   0.000    0.99561 1.00 0.00
#> TCGA.K1.A6RU.01     2   0.000    0.99630 0.00 1.00
#> TCGA.IW.A3M6.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A48J.01     1   0.000    0.99561 1.00 0.00
#> TCGA.3B.A9HO.01     1   0.000    0.99561 1.00 0.00
#> TCGA.N1.A6IA.01     2   0.000    0.99630 0.00 1.00
#> TCGA.X6.A7W8.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.AB2J.01     1   0.000    0.99561 1.00 0.00
#> TCGA.IW.A3M4.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.AB2X.01     2   0.000    0.99630 0.00 1.00
#> TCGA.HB.A2OT.01     2   0.000    0.99630 0.00 1.00
#> TCGA.UE.A6QT.01     1   0.000    0.99561 1.00 0.00
#> TCGA.SG.A6Z7.01     2   0.000    0.99630 0.00 1.00
#> TCGA.X6.A7WD.01     1   0.000    0.99561 1.00 0.00
#> TCGA.X6.A7WB.01     1   0.000    0.99561 1.00 0.00
#> TCGA.3B.A9HP.01     1   0.000    0.99561 1.00 0.00
#> TCGA.3B.A9HR.01     1   0.000    0.99561 1.00 0.00
#> TCGA.LI.A67I.01     2   0.000    0.99630 0.00 1.00
#> TCGA.X6.A7WA.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A6YR.01     2   0.000    0.99630 0.00 1.00
#> TCGA.HB.A3L4.01     2   0.000    0.99630 0.00 1.00
#> TCGA.FX.A3NJ.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A3LS.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A2J1.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A2J4.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A6BE.01     1   0.000    0.99561 1.00 0.00
#> TCGA.K1.A6RV.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.AB2Z.01     2   0.000    0.99630 0.00 1.00
#> TCGA.IS.A3K8.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A48O.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.AB2T.01     2   0.000    0.99630 0.00 1.00
#> TCGA.JV.A75J.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A3UD.01     1   0.000    0.99561 1.00 0.00
#> TCGA.QQ.A5VA.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A3LY.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A3LU.01     1   0.000    0.99561 1.00 0.00
#> TCGA.3B.A9HQ.01     1   0.000    0.99561 1.00 0.00
#> TCGA.FX.A48G.11     1   0.000    0.99561 1.00 0.00
#> TCGA.X9.A973.01     1   0.000    0.99561 1.00 0.00
#> TCGA.MJ.A68J.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A3LT.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A48P.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A48R.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A6B7.01     1   0.000    0.99561 1.00 0.00
#> TCGA.3B.A9HJ.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A6BA.01     1   0.000    0.99561 1.00 0.00
#> TCGA.MJ.A68H.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A6YV.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A6BK.01     1   0.000    0.99561 1.00 0.00
#> TCGA.FX.A76Y.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A48N.01     1   0.000    0.99561 1.00 0.00
#> TCGA.K1.A3PO.01     1   0.000    0.99561 1.00 0.00
#> TCGA.IE.A6BZ.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A6BB.01     1   0.000    0.99561 1.00 0.00
#> TCGA.X9.A971.01     1   0.000    0.99561 1.00 0.00
#> TCGA.IS.A3K7.01     2   0.000    0.99630 0.00 1.00
#> TCGA.3B.A9HI.01     2   0.000    0.99630 0.00 1.00
#> TCGA.PC.A5DN.01     1   0.000    0.99561 1.00 0.00
#> TCGA.QQ.A5VD.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A2IZ.01     1   0.000    0.99561 1.00 0.00
#> TCGA.MJ.A850.01     2   0.000    0.99630 0.00 1.00
#> TCGA.IS.A3KA.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A3UB.01     1   0.000    0.99561 1.00 0.00
#> TCGA.UE.A6QU.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.AB2F.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A48K.01     2   0.000    0.99630 0.00 1.00
#> TCGA.X6.A7WC.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A3LW.01     2   0.000    0.99630 0.00 1.00
#> TCGA.SI.AA8B.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A48V.01     1   0.000    0.99561 1.00 0.00
#> TCGA.SI.AA8C.01     1   0.000    0.99561 1.00 0.00
#> TCGA.QQ.A5V2.01     2   0.000    0.99630 0.00 1.00
#> TCGA.IS.A3K6.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A3UC.01     1   0.000    0.99561 1.00 0.00
#> TCGA.RN.A68Q.01     1   0.000    0.99561 1.00 0.00
#> TCGA.IW.A3M5.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A1KU.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A3U9.01     2   0.000    0.99630 0.00 1.00
#> TCGA.SG.A849.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A6BF.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A6BG.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A6B9.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A3UF.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A6B8.01     2   0.000    0.99630 0.00 1.00
#> TCGA.FX.A3NK.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A6BH.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A48L.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A6YS.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A6YT.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A2J0.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A6YZ.01     2   0.000    0.99630 0.00 1.00
#> TCGA.3B.A9HL.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A7EQ.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.AB2P.01     2   0.000    0.99630 0.00 1.00
#> TCGA.QC.A6FX.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A48U.01     1   0.000    0.99561 1.00 0.00
#> TCGA.FX.A2QS.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A3UE.01     1   0.000    0.99561 1.00 0.00
#> TCGA.QQ.A5V9.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A3UA.01     2   0.000    0.99630 0.00 1.00
#> TCGA.QQ.A5VC.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A23R.01     2   0.000    0.99630 0.00 1.00
#> TCGA.QQ.A8VB.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A23Z.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A8BH.01     2   0.000    0.99630 0.00 1.00
#> TCGA.HS.A5N8.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A240.01     1   0.000    0.99561 1.00 0.00
#> TCGA.WK.A8XT.01     2   0.000    0.99630 0.00 1.00
#> TCGA.MB.A5YA.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A8BK.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A7EI.01     1   0.000    0.99561 1.00 0.00
#> TCGA.SI.A71Q.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A8BX.01     2   0.000    0.99630 0.00 1.00
#> TCGA.WP.A9GB.01     1   0.000    0.99561 1.00 0.00
#> TCGA.PC.A5DO.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A23U.01     2   0.000    0.99630 0.00 1.00
#> TCGA.K1.A6RT.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A7EF.01     2   0.000    0.99630 0.00 1.00
#> TCGA.HS.A5N7.01     1   0.000    0.99561 1.00 0.00
#> TCGA.HS.A5N9.01     2   0.000    0.99630 0.00 1.00
#> TCGA.SG.A6Z4.01     2   0.000    0.99630 0.00 1.00
#> TCGA.WK.A8XZ.01     1   0.000    0.99561 1.00 0.00
#> TCGA.WK.A8XO.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A8BU.01     2   0.000    0.99630 0.00 1.00
#> TCGA.PC.A5DL.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A8BT.01     1   0.000    0.99561 1.00 0.00
#> TCGA.MB.A5Y8.01     2   0.000    0.99630 0.00 1.00
#> TCGA.WK.A8XY.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A23T.01     1   0.000    0.99561 1.00 0.00
#> TCGA.KD.A5QS.01     2   0.000    0.99630 0.00 1.00
#> TCGA.QQ.A8VG.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A23V.01     1   0.000    0.99561 1.00 0.00
#> TCGA.PT.A8TR.01     1   0.000    0.99561 1.00 0.00
#> TCGA.SI.A71O.06     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A8BV.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A8BQ.01     1   0.000    0.99561 1.00 0.00
#> TCGA.Z4.A8JB.01     2   0.000    0.99630 0.00 1.00
#> TCGA.SI.A71P.01     1   0.000    0.99561 1.00 0.00
#> TCGA.3R.A8YX.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A8BP.01     1   0.000    0.99561 1.00 0.00
#> TCGA.SI.A71O.01     2   0.000    0.99630 0.00 1.00
#> TCGA.KD.A5QU.01     2   0.943    0.43491 0.36 0.64
#> TCGA.WK.A8XQ.01     1   0.000    0.99561 1.00 0.00
#> TCGA.QQ.A8VF.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A8BS.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A6YU.01     2   0.000    0.99630 0.00 1.00
#> TCGA.JV.A5VF.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A8BN.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A23Y.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A1L4.01     1   0.000    0.99561 1.00 0.00
#> TCGA.PC.A5DM.01     2   0.000    0.99630 0.00 1.00
#> TCGA.DX.A6YQ.01     2   0.000    0.99630 0.00 1.00
#> TCGA.MB.A5Y9.01     1   0.000    0.99561 1.00 0.00
#> TCGA.HB.A5W3.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A3U8.01     2   0.469    0.88662 0.10 0.90
#> TCGA.WK.A8XS.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A3U7.01     1   0.000    0.99561 1.00 0.00
#> TCGA.KD.A5QT.01     1   0.000    0.99561 1.00 0.00
#> TCGA.QC.A7B5.01     2   0.000    0.99630 0.00 1.00
#> TCGA.QQ.A8VH.01     2   0.000    0.99630 0.00 1.00
#> TCGA.LI.A9QH.01     2   0.000    0.99630 0.00 1.00
#> TCGA.WK.A8XX.01     1   0.000    0.99561 1.00 0.00
#> TCGA.PC.A5DK.01     1   0.000    0.99561 1.00 0.00
#> TCGA.JV.A5VE.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A8BZ.01     2   0.000    0.99630 0.00 1.00
#> TCGA.Z4.A9VC.01     2   0.000    0.99630 0.00 1.00
#> TCGA.PC.A5DP.01     1   0.000    0.99561 1.00 0.00
#> TCGA.DX.A3U6.01     1   0.000    0.99561 1.00 0.00
#> TCGA.X2.A95T.01     1   0.000    0.99561 1.00 0.00
#> TCGA.HS.A5NA.01     1   0.000    0.99561 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.QQ.A8VD.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A1KX.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.AB37.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A1KW.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.HB.A3YV.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.WK.A8Y0.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.AB2O.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.AB3C.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.X6.A8C3.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.X6.A8C6.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.AB36.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.IE.A4EJ.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.IF.A3RQ.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.QC.AA9N.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.HB.A43Z.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.FX.A48G.01     3  0.2066     0.9160 0.06 0.00 0.94
#> TCGA.FX.A8OO.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.3B.A9HS.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.AB2W.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A7EU.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A8BJ.01     2  0.5397     0.6424 0.00 0.72 0.28
#> TCGA.DX.A3U5.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.AB30.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.IE.A4EK.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A7ES.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.K1.A3PN.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.MO.A47R.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A1L2.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.K1.A42X.02     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.QQ.A5VB.01     2  0.5397     0.6424 0.00 0.72 0.28
#> TCGA.3B.A9HX.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A6Z2.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.3B.A9HZ.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.K1.A42X.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A1L0.01     2  0.4796     0.7379 0.00 0.78 0.22
#> TCGA.DX.A7EO.01     2  0.0892     0.9512 0.00 0.98 0.02
#> TCGA.DX.A6Z0.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.MB.A8JK.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A8BG.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A7EL.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.AB2H.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A7ER.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.VT.A80J.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.3B.A9HY.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A8BO.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.3B.A9I0.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.FX.A3RE.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.3B.A9HT.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.AB3B.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.K1.A42W.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.VT.A80J.02     2  0.0892     0.9512 0.00 0.98 0.02
#> TCGA.Z4.AAPF.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.3B.A9I1.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A3M2.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.AB2L.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A1L1.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.FX.A3TO.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.VT.AB3D.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.AB2S.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.MO.A47P.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.X6.A8C2.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.AATS.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.AB2E.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.K1.A42X.11     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A7EN.01     3  0.4291     0.7746 0.18 0.00 0.82
#> TCGA.Z4.AAPG.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.AB35.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A1KY.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A1KZ.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A1L3.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.X6.A8C7.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.IE.A4EH.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.MB.A8JL.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.IF.A4AK.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.KF.A41W.01     3  0.6280     0.0880 0.00 0.46 0.54
#> TCGA.IE.A4EI.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.3B.A9HU.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.AB2Q.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A8BL.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.IF.A4AJ.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.AB2V.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A7ET.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.KF.A41W.11     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.VT.A80G.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.3B.A9HV.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.AB2G.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A8BR.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.K1.A3PN.02     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A3M1.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.X6.A8C5.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A6YX.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.RN.AAAQ.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.IF.A4AJ.11     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.AB3A.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A8BM.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.IE.A3OV.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.X6.A8C4.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A7EM.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.AB32.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.3B.A9I3.01     3  0.5397     0.6058 0.28 0.00 0.72
#> TCGA.K1.A6RU.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.IW.A3M6.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A48J.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.3B.A9HO.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.N1.A6IA.01     2  0.5016     0.7081 0.00 0.76 0.24
#> TCGA.X6.A7W8.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.AB2J.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.IW.A3M4.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.AB2X.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.HB.A2OT.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.UE.A6QT.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.SG.A6Z7.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.X6.A7WD.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.X6.A7WB.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.3B.A9HP.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.3B.A9HR.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.LI.A67I.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.X6.A7WA.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A6YR.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.HB.A3L4.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.FX.A3NJ.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A3LS.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A2J1.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A2J4.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A6BE.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.K1.A6RV.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.AB2Z.01     2  0.3686     0.8386 0.00 0.86 0.14
#> TCGA.IS.A3K8.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A48O.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.AB2T.01     2  0.4796     0.7377 0.00 0.78 0.22
#> TCGA.JV.A75J.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A3UD.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.QQ.A5VA.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A3LY.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A3LU.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.3B.A9HQ.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.FX.A48G.11     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.X9.A973.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.MJ.A68J.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A3LT.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A48P.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A48R.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A6B7.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.3B.A9HJ.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A6BA.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.MJ.A68H.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A6YV.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A6BK.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.FX.A76Y.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A48N.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.K1.A3PO.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.IE.A6BZ.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A6BB.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.X9.A971.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.IS.A3K7.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.3B.A9HI.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.PC.A5DN.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.QQ.A5VD.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A2IZ.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.MJ.A850.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.IS.A3KA.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A3UB.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.UE.A6QU.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.AB2F.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A48K.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.X6.A7WC.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A3LW.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.SI.AA8B.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A48V.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.SI.AA8C.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.QQ.A5V2.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.IS.A3K6.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A3UC.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.RN.A68Q.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.IW.A3M5.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A1KU.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A3U9.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.SG.A849.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A6BF.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A6BG.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A6B9.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A3UF.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A6B8.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.FX.A3NK.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A6BH.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A48L.01     3  0.3686     0.8254 0.14 0.00 0.86
#> TCGA.DX.A6YS.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A6YT.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A2J0.01     2  0.6126     0.3770 0.00 0.60 0.40
#> TCGA.DX.A6YZ.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.3B.A9HL.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A7EQ.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.AB2P.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.QC.A6FX.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A48U.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.FX.A2QS.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A3UE.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.QQ.A5V9.01     2  0.5397     0.6425 0.00 0.72 0.28
#> TCGA.DX.A3UA.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.QQ.A5VC.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A23R.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.QQ.A8VB.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A23Z.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A8BH.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.HS.A5N8.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A240.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.WK.A8XT.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.MB.A5YA.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A8BK.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A7EI.01     3  0.6126     0.3375 0.40 0.00 0.60
#> TCGA.SI.A71Q.01     2  0.4002     0.8157 0.00 0.84 0.16
#> TCGA.DX.A8BX.01     3  0.6309    -0.0701 0.00 0.50 0.50
#> TCGA.WP.A9GB.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.PC.A5DO.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A23U.01     2  0.4291     0.7913 0.00 0.82 0.18
#> TCGA.K1.A6RT.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A7EF.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.HS.A5N7.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.HS.A5N9.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.SG.A6Z4.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.WK.A8XZ.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.WK.A8XO.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A8BU.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.PC.A5DL.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A8BT.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.MB.A5Y8.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.WK.A8XY.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A23T.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.KD.A5QS.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.QQ.A8VG.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A23V.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.PT.A8TR.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.SI.A71O.06     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A8BV.01     3  0.6244     0.1616 0.00 0.44 0.56
#> TCGA.DX.A8BQ.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.Z4.A8JB.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.SI.A71P.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.3R.A8YX.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A8BP.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.SI.A71O.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.KD.A5QU.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.WK.A8XQ.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.QQ.A8VF.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A8BS.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A6YU.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.JV.A5VF.01     2  0.1529     0.9346 0.00 0.96 0.04
#> TCGA.DX.A8BN.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A23Y.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.DX.A1L4.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.PC.A5DM.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.DX.A6YQ.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.MB.A5Y9.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.HB.A5W3.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A3U8.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.WK.A8XS.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A3U7.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.KD.A5QT.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.QC.A7B5.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.QQ.A8VH.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.LI.A9QH.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.WK.A8XX.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.PC.A5DK.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.JV.A5VE.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A8BZ.01     2  0.0000     0.9667 0.00 1.00 0.00
#> TCGA.Z4.A9VC.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.PC.A5DP.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.DX.A3U6.01     3  0.0000     0.9759 0.00 0.00 1.00
#> TCGA.X2.A95T.01     1  0.0000     1.0000 1.00 0.00 0.00
#> TCGA.HS.A5NA.01     1  0.0000     1.0000 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.QQ.A8VD.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A1KX.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.DX.AB37.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.DX.A1KW.01     3  0.0707      0.949 0.00 0.00 0.98 0.02
#> TCGA.HB.A3YV.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.WK.A8Y0.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.DX.AB2O.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.AB3C.01     2  0.1211      0.955 0.00 0.96 0.00 0.04
#> TCGA.X6.A8C3.01     2  0.1211      0.953 0.00 0.96 0.00 0.04
#> TCGA.X6.A8C6.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.DX.AB36.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.IE.A4EJ.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.IF.A3RQ.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.QC.AA9N.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.HB.A43Z.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.FX.A48G.01     3  0.1211      0.936 0.00 0.00 0.96 0.04
#> TCGA.FX.A8OO.01     4  0.1637      0.931 0.00 0.06 0.00 0.94
#> TCGA.3B.A9HS.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.AB2W.01     2  0.0707      0.974 0.00 0.98 0.00 0.02
#> TCGA.DX.A7EU.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.A8BJ.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.DX.A3U5.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.AB30.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.IE.A4EK.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A7ES.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.K1.A3PN.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.MO.A47R.01     4  0.2011      0.933 0.00 0.08 0.00 0.92
#> TCGA.DX.A1L2.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.K1.A42X.02     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.QQ.A5VB.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.3B.A9HX.01     4  0.1211      0.923 0.00 0.00 0.04 0.96
#> TCGA.DX.A6Z2.01     3  0.5986      0.474 0.32 0.00 0.62 0.06
#> TCGA.3B.A9HZ.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.K1.A42X.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A1L0.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.DX.A7EO.01     4  0.1637      0.931 0.00 0.06 0.00 0.94
#> TCGA.DX.A6Z0.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.MB.A8JK.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.DX.A8BG.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A7EL.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2H.01     4  0.1637      0.928 0.00 0.00 0.06 0.94
#> TCGA.DX.A7ER.01     4  0.1637      0.928 0.00 0.00 0.06 0.94
#> TCGA.VT.A80J.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.3B.A9HY.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BO.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.3B.A9I0.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.FX.A3RE.01     3  0.1211      0.936 0.00 0.00 0.96 0.04
#> TCGA.3B.A9HT.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.AB3B.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.K1.A42W.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.VT.A80J.02     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.Z4.AAPF.01     4  0.1637      0.928 0.00 0.00 0.06 0.94
#> TCGA.3B.A9I1.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A3M2.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.AB2L.01     3  0.3975      0.669 0.00 0.00 0.76 0.24
#> TCGA.DX.A1L1.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.FX.A3TO.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.VT.AB3D.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.DX.AB2S.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.MO.A47P.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.X6.A8C2.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.AATS.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.AB2E.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.K1.A42X.11     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A7EN.01     3  0.6299      0.454 0.32 0.00 0.60 0.08
#> TCGA.Z4.AAPG.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.AB35.01     3  0.4277      0.593 0.00 0.00 0.72 0.28
#> TCGA.DX.A1KY.01     1  0.0707      0.978 0.98 0.00 0.02 0.00
#> TCGA.DX.A1KZ.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A1L3.01     3  0.1211      0.933 0.00 0.00 0.96 0.04
#> TCGA.X6.A8C7.01     4  0.1637      0.928 0.00 0.00 0.06 0.94
#> TCGA.IE.A4EH.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.MB.A8JL.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.IF.A4AK.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.KF.A41W.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.IE.A4EI.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.3B.A9HU.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2Q.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.A8BL.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.IF.A4AJ.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2V.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A7ET.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.KF.A41W.11     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.VT.A80G.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.3B.A9HV.01     4  0.1211      0.923 0.00 0.00 0.04 0.96
#> TCGA.DX.AB2G.01     3  0.1211      0.933 0.00 0.00 0.96 0.04
#> TCGA.DX.A8BR.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.K1.A3PN.02     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A3M1.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.X6.A8C5.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A6YX.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.RN.AAAQ.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.IF.A4AJ.11     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.AB3A.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.DX.A8BM.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.IE.A3OV.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.X6.A8C4.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.A7EM.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.AB32.01     3  0.4406      0.551 0.00 0.00 0.70 0.30
#> TCGA.3B.A9I3.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.K1.A6RU.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.IW.A3M6.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A48J.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.3B.A9HO.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.N1.A6IA.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.X6.A7W8.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.AB2J.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.IW.A3M4.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2X.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.HB.A2OT.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.UE.A6QT.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.SG.A6Z7.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.X6.A7WD.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.X6.A7WB.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.3B.A9HP.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.3B.A9HR.01     1  0.0707      0.982 0.98 0.00 0.00 0.02
#> TCGA.LI.A67I.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.X6.A7WA.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A6YR.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.HB.A3L4.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.FX.A3NJ.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A3LS.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A2J1.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A2J4.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A6BE.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.K1.A6RV.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.AB2Z.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.IS.A3K8.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A48O.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2T.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.JV.A75J.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.DX.A3UD.01     1  0.1637      0.950 0.94 0.00 0.00 0.06
#> TCGA.QQ.A5VA.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A3LY.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A3LU.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.3B.A9HQ.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.FX.A48G.11     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.X9.A973.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.MJ.A68J.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A3LT.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.A48P.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A48R.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A6B7.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.3B.A9HJ.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A6BA.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.MJ.A68H.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A6YV.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.A6BK.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.FX.A76Y.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A48N.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.K1.A3PO.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.IE.A6BZ.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.A6BB.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.X9.A971.01     1  0.1637      0.950 0.94 0.00 0.00 0.06
#> TCGA.IS.A3K7.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.3B.A9HI.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.PC.A5DN.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.QQ.A5VD.01     1  0.1211      0.957 0.96 0.00 0.04 0.00
#> TCGA.DX.A2IZ.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.MJ.A850.01     4  0.1637      0.928 0.00 0.00 0.06 0.94
#> TCGA.IS.A3KA.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.DX.A3UB.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.UE.A6QU.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.DX.AB2F.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A48K.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.X6.A7WC.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.A3LW.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.SI.AA8B.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.A48V.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.SI.AA8C.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.QQ.A5V2.01     3  0.1211      0.933 0.00 0.00 0.96 0.04
#> TCGA.IS.A3K6.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A3UC.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.RN.A68Q.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.IW.A3M5.01     4  0.2647      0.917 0.00 0.12 0.00 0.88
#> TCGA.DX.A1KU.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.DX.A3U9.01     4  0.1211      0.923 0.00 0.00 0.04 0.96
#> TCGA.SG.A849.01     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.DX.A6BF.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.DX.A6BG.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A6B9.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A3UF.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A6B8.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.FX.A3NK.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A6BH.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A48L.01     3  0.2830      0.890 0.04 0.00 0.90 0.06
#> TCGA.DX.A6YS.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.A6YT.01     3  0.1211      0.933 0.00 0.00 0.96 0.04
#> TCGA.DX.A2J0.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.DX.A6YZ.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.3B.A9HL.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A7EQ.01     4  0.2345      0.904 0.00 0.00 0.10 0.90
#> TCGA.DX.AB2P.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.QC.A6FX.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.DX.A48U.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.FX.A2QS.01     3  0.2921      0.841 0.00 0.00 0.86 0.14
#> TCGA.DX.A3UE.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.QQ.A5V9.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.DX.A3UA.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.QQ.A5VC.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.A23R.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.QQ.A8VB.01     1  0.0707      0.978 0.98 0.00 0.02 0.00
#> TCGA.DX.A23Z.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A8BH.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.HS.A5N8.01     4  0.1411      0.929 0.00 0.02 0.02 0.96
#> TCGA.DX.A240.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.WK.A8XT.01     4  0.1637      0.928 0.00 0.00 0.06 0.94
#> TCGA.MB.A5YA.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BK.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.A7EI.01     3  0.1211      0.928 0.04 0.00 0.96 0.00
#> TCGA.SI.A71Q.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.DX.A8BX.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.WP.A9GB.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.PC.A5DO.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A23U.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.K1.A6RT.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A7EF.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.HS.A5N7.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.HS.A5N9.01     2  0.0707      0.974 0.00 0.98 0.00 0.02
#> TCGA.SG.A6Z4.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.WK.A8XZ.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.WK.A8XO.01     3  0.4522      0.541 0.32 0.00 0.68 0.00
#> TCGA.DX.A8BU.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.PC.A5DL.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BT.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.MB.A5Y8.01     2  0.0707      0.974 0.00 0.98 0.00 0.02
#> TCGA.WK.A8XY.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A23T.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.KD.A5QS.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.QQ.A8VG.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A23V.01     3  0.2011      0.887 0.08 0.00 0.92 0.00
#> TCGA.PT.A8TR.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.SI.A71O.06     4  0.2345      0.921 0.00 0.00 0.10 0.90
#> TCGA.DX.A8BV.01     4  0.2706      0.936 0.00 0.08 0.02 0.90
#> TCGA.DX.A8BQ.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.Z4.A8JB.01     3  0.1211      0.933 0.00 0.00 0.96 0.04
#> TCGA.SI.A71P.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.3R.A8YX.01     2  0.3975      0.655 0.00 0.76 0.00 0.24
#> TCGA.DX.A8BP.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.SI.A71O.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.KD.A5QU.01     4  0.1211      0.923 0.00 0.00 0.04 0.96
#> TCGA.WK.A8XQ.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.QQ.A8VF.01     3  0.2345      0.872 0.00 0.00 0.90 0.10
#> TCGA.DX.A8BS.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.A6YU.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.JV.A5VF.01     4  0.2345      0.934 0.00 0.10 0.00 0.90
#> TCGA.DX.A8BN.01     4  0.2647      0.917 0.00 0.12 0.00 0.88
#> TCGA.DX.A23Y.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.DX.A1L4.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.PC.A5DM.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.DX.A6YQ.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.MB.A5Y9.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.HB.A5W3.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A3U8.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.WK.A8XS.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A3U7.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.KD.A5QT.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.QC.A7B5.01     2  0.0707      0.974 0.00 0.98 0.00 0.02
#> TCGA.QQ.A8VH.01     4  0.1637      0.931 0.00 0.06 0.00 0.94
#> TCGA.LI.A9QH.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.WK.A8XX.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.PC.A5DK.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.JV.A5VE.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BZ.01     2  0.0000      0.992 0.00 1.00 0.00 0.00
#> TCGA.Z4.A9VC.01     4  0.1637      0.928 0.00 0.00 0.06 0.94
#> TCGA.PC.A5DP.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.DX.A3U6.01     3  0.0000      0.964 0.00 0.00 1.00 0.00
#> TCGA.X2.A95T.01     1  0.0000      0.997 1.00 0.00 0.00 0.00
#> TCGA.HS.A5NA.01     1  0.0000      0.997 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.QQ.A8VD.01     3  0.4433     0.5682 0.00 0.00 0.74 0.06 0.20
#> TCGA.DX.A1KX.01     4  0.4132     0.6870 0.00 0.00 0.02 0.72 0.26
#> TCGA.DX.AB37.01     4  0.2616     0.7789 0.00 0.00 0.02 0.88 0.10
#> TCGA.DX.A1KW.01     3  0.5210     0.4724 0.00 0.00 0.68 0.12 0.20
#> TCGA.HB.A3YV.01     3  0.0609     0.7308 0.00 0.00 0.98 0.00 0.02
#> TCGA.WK.A8Y0.01     4  0.2331     0.7807 0.00 0.02 0.00 0.90 0.08
#> TCGA.DX.AB2O.01     2  0.1410     0.8746 0.00 0.94 0.00 0.00 0.06
#> TCGA.DX.AB3C.01     2  0.5341     0.6043 0.00 0.62 0.00 0.08 0.30
#> TCGA.X6.A8C3.01     2  0.5447     0.3010 0.00 0.50 0.00 0.44 0.06
#> TCGA.X6.A8C6.01     4  0.2012     0.7810 0.00 0.02 0.00 0.92 0.06
#> TCGA.DX.AB36.01     4  0.3690     0.7353 0.00 0.00 0.02 0.78 0.20
#> TCGA.IE.A4EJ.01     2  0.5068     0.6171 0.00 0.64 0.00 0.30 0.06
#> TCGA.IF.A3RQ.01     3  0.0000     0.7299 0.00 0.00 1.00 0.00 0.00
#> TCGA.QC.AA9N.01     3  0.1410     0.6925 0.00 0.00 0.94 0.00 0.06
#> TCGA.HB.A43Z.01     1  0.2732     0.8147 0.84 0.00 0.00 0.00 0.16
#> TCGA.FX.A48G.01     3  0.3561     0.2242 0.00 0.00 0.74 0.00 0.26
#> TCGA.FX.A8OO.01     4  0.3983     0.6492 0.00 0.00 0.00 0.66 0.34
#> TCGA.3B.A9HS.01     3  0.2280     0.7044 0.00 0.00 0.88 0.00 0.12
#> TCGA.DX.AB2W.01     2  0.5156     0.5849 0.00 0.62 0.00 0.32 0.06
#> TCGA.DX.A7EU.01     2  0.4263     0.7516 0.00 0.76 0.00 0.18 0.06
#> TCGA.DX.A8BJ.01     4  0.3106     0.7565 0.00 0.02 0.00 0.84 0.14
#> TCGA.DX.A3U5.01     3  0.0609     0.7308 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.AB30.01     4  0.3999     0.7203 0.00 0.00 0.02 0.74 0.24
#> TCGA.IE.A4EK.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7ES.01     3  0.1043     0.7118 0.00 0.00 0.96 0.00 0.04
#> TCGA.K1.A3PN.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.MO.A47R.01     4  0.2516     0.7516 0.00 0.00 0.00 0.86 0.14
#> TCGA.DX.A1L2.01     4  0.2012     0.7810 0.00 0.02 0.00 0.92 0.06
#> TCGA.K1.A42X.02     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A5VB.01     4  0.2331     0.7807 0.00 0.02 0.00 0.90 0.08
#> TCGA.3B.A9HX.01     4  0.2020     0.7702 0.00 0.00 0.00 0.90 0.10
#> TCGA.DX.A6Z2.01     3  0.5232    -0.3606 0.06 0.00 0.60 0.00 0.34
#> TCGA.3B.A9HZ.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A42X.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A1L0.01     4  0.0609     0.7932 0.00 0.02 0.00 0.98 0.00
#> TCGA.DX.A7EO.01     4  0.3983     0.6492 0.00 0.00 0.00 0.66 0.34
#> TCGA.DX.A6Z0.01     2  0.1410     0.8746 0.00 0.94 0.00 0.00 0.06
#> TCGA.MB.A8JK.01     4  0.5341     0.5470 0.00 0.00 0.08 0.62 0.30
#> TCGA.DX.A8BG.01     3  0.4433     0.5683 0.00 0.00 0.74 0.06 0.20
#> TCGA.DX.A7EL.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2H.01     4  0.2929     0.7549 0.00 0.00 0.00 0.82 0.18
#> TCGA.DX.A7ER.01     4  0.3983     0.6492 0.00 0.00 0.00 0.66 0.34
#> TCGA.VT.A80J.01     3  0.2020     0.7142 0.00 0.00 0.90 0.00 0.10
#> TCGA.3B.A9HY.01     1  0.1410     0.8798 0.94 0.00 0.00 0.00 0.06
#> TCGA.DX.A8BO.01     3  0.2732     0.6790 0.00 0.00 0.84 0.00 0.16
#> TCGA.3B.A9I0.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A3RE.01     3  0.2929     0.5790 0.00 0.00 0.82 0.00 0.18
#> TCGA.3B.A9HT.01     3  0.2020     0.7142 0.00 0.00 0.90 0.00 0.10
#> TCGA.DX.AB3B.01     2  0.4982     0.6996 0.00 0.70 0.00 0.20 0.10
#> TCGA.K1.A42W.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.VT.A80J.02     4  0.2012     0.7810 0.00 0.02 0.00 0.92 0.06
#> TCGA.Z4.AAPF.01     4  0.3983     0.6492 0.00 0.00 0.00 0.66 0.34
#> TCGA.3B.A9I1.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3M2.01     3  0.2020     0.7142 0.00 0.00 0.90 0.00 0.10
#> TCGA.DX.AB2L.01     3  0.6665    -0.0194 0.00 0.00 0.44 0.26 0.30
#> TCGA.DX.A1L1.01     3  0.2732     0.6790 0.00 0.00 0.84 0.00 0.16
#> TCGA.FX.A3TO.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.VT.AB3D.01     4  0.4096     0.6370 0.00 0.00 0.04 0.76 0.20
#> TCGA.DX.AB2S.01     3  0.0609     0.7250 0.00 0.00 0.98 0.00 0.02
#> TCGA.MO.A47P.01     1  0.4254     0.7049 0.74 0.00 0.04 0.00 0.22
#> TCGA.X6.A8C2.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.AATS.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2E.01     4  0.1216     0.7875 0.00 0.00 0.02 0.96 0.02
#> TCGA.K1.A42X.11     1  0.3109     0.7801 0.80 0.00 0.00 0.00 0.20
#> TCGA.DX.A7EN.01     5  0.7391     0.0000 0.10 0.00 0.36 0.10 0.44
#> TCGA.Z4.AAPG.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.AB35.01     3  0.6723    -0.0584 0.00 0.00 0.42 0.28 0.30
#> TCGA.DX.A1KY.01     1  0.6369     0.0984 0.52 0.00 0.24 0.00 0.24
#> TCGA.DX.A1KZ.01     3  0.0000     0.7299 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A1L3.01     3  0.5759     0.3538 0.00 0.00 0.62 0.18 0.20
#> TCGA.X6.A8C7.01     4  0.3983     0.6492 0.00 0.00 0.00 0.66 0.34
#> TCGA.IE.A4EH.01     1  0.3274     0.7598 0.78 0.00 0.00 0.00 0.22
#> TCGA.MB.A8JL.01     3  0.1732     0.6691 0.00 0.00 0.92 0.00 0.08
#> TCGA.IF.A4AK.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.KF.A41W.01     4  0.0609     0.7932 0.00 0.02 0.00 0.98 0.00
#> TCGA.IE.A4EI.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HU.01     1  0.1410     0.8798 0.94 0.00 0.00 0.00 0.06
#> TCGA.DX.AB2Q.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BL.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.IF.A4AJ.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2V.01     3  0.2280     0.7044 0.00 0.00 0.88 0.00 0.12
#> TCGA.DX.A7ET.01     4  0.2012     0.7810 0.00 0.02 0.00 0.92 0.06
#> TCGA.KF.A41W.11     1  0.3109     0.7801 0.80 0.00 0.00 0.00 0.20
#> TCGA.VT.A80G.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.3B.A9HV.01     4  0.3684     0.7295 0.00 0.00 0.00 0.72 0.28
#> TCGA.DX.AB2G.01     3  0.6033     0.2677 0.00 0.00 0.58 0.22 0.20
#> TCGA.DX.A8BR.01     3  0.2929     0.6619 0.00 0.00 0.82 0.00 0.18
#> TCGA.K1.A3PN.02     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3M1.01     2  0.1410     0.8746 0.00 0.94 0.00 0.00 0.06
#> TCGA.X6.A8C5.01     1  0.1410     0.8798 0.94 0.00 0.00 0.00 0.06
#> TCGA.DX.A6YX.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.RN.AAAQ.01     3  0.3109     0.6425 0.00 0.00 0.80 0.00 0.20
#> TCGA.IF.A4AJ.11     3  0.1410     0.6925 0.00 0.00 0.94 0.00 0.06
#> TCGA.DX.AB3A.01     4  0.4854     0.6454 0.00 0.00 0.06 0.68 0.26
#> TCGA.DX.A8BM.01     2  0.1410     0.8746 0.00 0.94 0.00 0.00 0.06
#> TCGA.IE.A3OV.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C4.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A7EM.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB32.01     3  0.6665    -0.0242 0.00 0.00 0.44 0.26 0.30
#> TCGA.3B.A9I3.01     3  0.3424     0.2851 0.00 0.00 0.76 0.00 0.24
#> TCGA.K1.A6RU.01     4  0.5579     0.5074 0.00 0.00 0.10 0.60 0.30
#> TCGA.IW.A3M6.01     1  0.5263     0.5584 0.66 0.00 0.10 0.00 0.24
#> TCGA.DX.A48J.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HO.01     3  0.1410     0.6925 0.00 0.00 0.94 0.00 0.06
#> TCGA.N1.A6IA.01     4  0.1648     0.7907 0.00 0.02 0.00 0.94 0.04
#> TCGA.X6.A7W8.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2J.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.IW.A3M4.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2X.01     2  0.4728     0.6977 0.00 0.70 0.00 0.24 0.06
#> TCGA.HB.A2OT.01     4  0.2012     0.7810 0.00 0.02 0.00 0.92 0.06
#> TCGA.UE.A6QT.01     3  0.1043     0.7118 0.00 0.00 0.96 0.00 0.04
#> TCGA.SG.A6Z7.01     4  0.3999     0.7203 0.00 0.00 0.02 0.74 0.24
#> TCGA.X6.A7WD.01     1  0.2929     0.8034 0.82 0.00 0.00 0.00 0.18
#> TCGA.X6.A7WB.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HP.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HR.01     1  0.3796     0.6657 0.70 0.00 0.00 0.00 0.30
#> TCGA.LI.A67I.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.X6.A7WA.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YR.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.HB.A3L4.01     4  0.5579     0.5074 0.00 0.00 0.10 0.60 0.30
#> TCGA.FX.A3NJ.01     1  0.3109     0.7801 0.80 0.00 0.00 0.00 0.20
#> TCGA.DX.A3LS.01     3  0.1410     0.6925 0.00 0.00 0.94 0.00 0.06
#> TCGA.DX.A2J1.01     3  0.0609     0.7250 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.A2J4.01     3  0.1043     0.7118 0.00 0.00 0.96 0.00 0.04
#> TCGA.DX.A6BE.01     3  0.1043     0.7118 0.00 0.00 0.96 0.00 0.04
#> TCGA.K1.A6RV.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2Z.01     4  0.2012     0.7810 0.00 0.02 0.00 0.92 0.06
#> TCGA.IS.A3K8.01     1  0.2732     0.8147 0.84 0.00 0.00 0.00 0.16
#> TCGA.DX.A48O.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2T.01     4  0.2331     0.7896 0.00 0.02 0.00 0.90 0.08
#> TCGA.JV.A75J.01     4  0.4252     0.6874 0.00 0.00 0.02 0.70 0.28
#> TCGA.DX.A3UD.01     1  0.4126     0.5316 0.62 0.00 0.00 0.00 0.38
#> TCGA.QQ.A5VA.01     3  0.0609     0.7250 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.A3LY.01     3  0.0609     0.7308 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.A3LU.01     3  0.0609     0.7250 0.00 0.00 0.98 0.00 0.02
#> TCGA.3B.A9HQ.01     1  0.1410     0.8798 0.94 0.00 0.00 0.00 0.06
#> TCGA.FX.A48G.11     1  0.3274     0.7593 0.78 0.00 0.00 0.00 0.22
#> TCGA.X9.A973.01     3  0.2929     0.6619 0.00 0.00 0.82 0.00 0.18
#> TCGA.MJ.A68J.01     3  0.0609     0.7250 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.A3LT.01     2  0.4263     0.7512 0.00 0.76 0.00 0.18 0.06
#> TCGA.DX.A48P.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A48R.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6B7.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HJ.01     3  0.0609     0.7250 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.A6BA.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.MJ.A68H.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YV.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A6BK.01     3  0.2020     0.7142 0.00 0.00 0.90 0.00 0.10
#> TCGA.FX.A76Y.01     1  0.3109     0.7801 0.80 0.00 0.00 0.00 0.20
#> TCGA.DX.A48N.01     3  0.0000     0.7299 0.00 0.00 1.00 0.00 0.00
#> TCGA.K1.A3PO.01     3  0.1410     0.6925 0.00 0.00 0.94 0.00 0.06
#> TCGA.IE.A6BZ.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A6BB.01     1  0.2732     0.8147 0.84 0.00 0.00 0.00 0.16
#> TCGA.X9.A971.01     1  0.3895     0.6361 0.68 0.00 0.00 0.00 0.32
#> TCGA.IS.A3K7.01     3  0.5210     0.4657 0.00 0.00 0.68 0.12 0.20
#> TCGA.3B.A9HI.01     4  0.2012     0.7810 0.00 0.02 0.00 0.92 0.06
#> TCGA.PC.A5DN.01     3  0.0609     0.7308 0.00 0.00 0.98 0.00 0.02
#> TCGA.QQ.A5VD.01     1  0.6697    -0.4299 0.38 0.00 0.38 0.00 0.24
#> TCGA.DX.A2IZ.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.MJ.A850.01     4  0.3983     0.6492 0.00 0.00 0.00 0.66 0.34
#> TCGA.IS.A3KA.01     4  0.2873     0.7535 0.00 0.02 0.00 0.86 0.12
#> TCGA.DX.A3UB.01     1  0.3109     0.7801 0.80 0.00 0.00 0.00 0.20
#> TCGA.UE.A6QU.01     4  0.4433     0.6127 0.00 0.00 0.06 0.74 0.20
#> TCGA.DX.AB2F.01     3  0.2516     0.6927 0.00 0.00 0.86 0.00 0.14
#> TCGA.DX.A48K.01     2  0.1410     0.8746 0.00 0.94 0.00 0.00 0.06
#> TCGA.X6.A7WC.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A3LW.01     4  0.3690     0.7377 0.00 0.00 0.02 0.78 0.20
#> TCGA.SI.AA8B.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A48V.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.SI.AA8C.01     3  0.3690     0.6203 0.00 0.00 0.78 0.02 0.20
#> TCGA.QQ.A5V2.01     3  0.6146     0.2164 0.00 0.00 0.56 0.24 0.20
#> TCGA.IS.A3K6.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3UC.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.RN.A68Q.01     3  0.1410     0.6925 0.00 0.00 0.94 0.00 0.06
#> TCGA.IW.A3M5.01     4  0.5555     0.6556 0.00 0.14 0.00 0.64 0.22
#> TCGA.DX.A1KU.01     4  0.5341     0.5470 0.00 0.00 0.08 0.62 0.30
#> TCGA.DX.A3U9.01     4  0.2516     0.7505 0.00 0.00 0.00 0.86 0.14
#> TCGA.SG.A849.01     4  0.1216     0.7875 0.00 0.00 0.02 0.96 0.02
#> TCGA.DX.A6BF.01     4  0.2012     0.7810 0.00 0.02 0.00 0.92 0.06
#> TCGA.DX.A6BG.01     3  0.2732     0.6790 0.00 0.00 0.84 0.00 0.16
#> TCGA.DX.A6B9.01     1  0.3109     0.7801 0.80 0.00 0.00 0.00 0.20
#> TCGA.DX.A3UF.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6B8.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.FX.A3NK.01     3  0.0609     0.7250 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.A6BH.01     3  0.0609     0.7308 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.A48L.01     3  0.4262    -0.3930 0.00 0.00 0.56 0.00 0.44
#> TCGA.DX.A6YS.01     2  0.1043     0.8800 0.00 0.96 0.00 0.00 0.04
#> TCGA.DX.A6YT.01     3  0.5210     0.4733 0.00 0.00 0.68 0.12 0.20
#> TCGA.DX.A2J0.01     4  0.0609     0.7932 0.00 0.02 0.00 0.98 0.00
#> TCGA.DX.A6YZ.01     2  0.4728     0.6977 0.00 0.70 0.00 0.24 0.06
#> TCGA.3B.A9HL.01     3  0.0000     0.7299 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A7EQ.01     4  0.4818     0.5172 0.00 0.00 0.02 0.52 0.46
#> TCGA.DX.AB2P.01     2  0.1410     0.8746 0.00 0.94 0.00 0.00 0.06
#> TCGA.QC.A6FX.01     4  0.2012     0.7810 0.00 0.02 0.00 0.92 0.06
#> TCGA.DX.A48U.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A2QS.01     3  0.6665    -0.0742 0.00 0.00 0.44 0.26 0.30
#> TCGA.DX.A3UE.01     1  0.2732     0.8147 0.84 0.00 0.00 0.00 0.16
#> TCGA.QQ.A5V9.01     4  0.1216     0.7911 0.00 0.02 0.00 0.96 0.02
#> TCGA.DX.A3UA.01     2  0.1410     0.8746 0.00 0.94 0.00 0.00 0.06
#> TCGA.QQ.A5VC.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A23R.01     2  0.1410     0.8746 0.00 0.94 0.00 0.00 0.06
#> TCGA.QQ.A8VB.01     1  0.6671    -0.3135 0.42 0.00 0.34 0.00 0.24
#> TCGA.DX.A23Z.01     3  0.1043     0.7118 0.00 0.00 0.96 0.00 0.04
#> TCGA.DX.A8BH.01     4  0.2012     0.7810 0.00 0.02 0.00 0.92 0.06
#> TCGA.HS.A5N8.01     4  0.2732     0.7631 0.00 0.00 0.00 0.84 0.16
#> TCGA.DX.A240.01     3  0.0609     0.7308 0.00 0.00 0.98 0.00 0.02
#> TCGA.WK.A8XT.01     4  0.3983     0.6492 0.00 0.00 0.00 0.66 0.34
#> TCGA.MB.A5YA.01     1  0.0609     0.8978 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.A8BK.01     2  0.5068     0.6171 0.00 0.64 0.00 0.30 0.06
#> TCGA.DX.A7EI.01     3  0.3424     0.2851 0.00 0.00 0.76 0.00 0.24
#> TCGA.SI.A71Q.01     4  0.3319     0.7706 0.00 0.02 0.00 0.82 0.16
#> TCGA.DX.A8BX.01     4  0.0609     0.7932 0.00 0.02 0.00 0.98 0.00
#> TCGA.WP.A9GB.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DO.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23U.01     4  0.2616     0.7846 0.00 0.02 0.00 0.88 0.10
#> TCGA.K1.A6RT.01     3  0.2020     0.7142 0.00 0.00 0.90 0.00 0.10
#> TCGA.DX.A7EF.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.HS.A5N7.01     1  0.1410     0.8798 0.94 0.00 0.00 0.00 0.06
#> TCGA.HS.A5N9.01     2  0.5156     0.5849 0.00 0.62 0.00 0.32 0.06
#> TCGA.SG.A6Z4.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.WK.A8XZ.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XO.01     3  0.4728     0.0111 0.06 0.00 0.70 0.00 0.24
#> TCGA.DX.A8BU.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.PC.A5DL.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BT.01     3  0.0609     0.7250 0.00 0.00 0.98 0.00 0.02
#> TCGA.MB.A5Y8.01     2  0.5232     0.5475 0.00 0.60 0.00 0.34 0.06
#> TCGA.WK.A8XY.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23T.01     3  0.0609     0.7250 0.00 0.00 0.98 0.00 0.02
#> TCGA.KD.A5QS.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.QQ.A8VG.01     3  0.0609     0.7250 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.A23V.01     3  0.3274     0.3426 0.00 0.00 0.78 0.00 0.22
#> TCGA.PT.A8TR.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.SI.A71O.06     4  0.0609     0.7903 0.00 0.00 0.02 0.98 0.00
#> TCGA.DX.A8BV.01     4  0.3106     0.7766 0.00 0.02 0.00 0.84 0.14
#> TCGA.DX.A8BQ.01     3  0.2020     0.7142 0.00 0.00 0.90 0.00 0.10
#> TCGA.Z4.A8JB.01     3  0.5597     0.3958 0.00 0.00 0.64 0.16 0.20
#> TCGA.SI.A71P.01     3  0.0609     0.7250 0.00 0.00 0.98 0.00 0.02
#> TCGA.3R.A8YX.01     4  0.5425    -0.0428 0.00 0.42 0.00 0.52 0.06
#> TCGA.DX.A8BP.01     3  0.2732     0.6790 0.00 0.00 0.84 0.00 0.16
#> TCGA.SI.A71O.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.KD.A5QU.01     4  0.3274     0.6762 0.00 0.00 0.00 0.78 0.22
#> TCGA.WK.A8XQ.01     3  0.5068     0.4032 0.00 0.00 0.64 0.06 0.30
#> TCGA.QQ.A8VF.01     3  0.6398     0.0794 0.00 0.00 0.50 0.30 0.20
#> TCGA.DX.A8BS.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A6YU.01     4  0.2012     0.7810 0.00 0.02 0.00 0.92 0.06
#> TCGA.JV.A5VF.01     4  0.2331     0.7807 0.00 0.02 0.00 0.90 0.08
#> TCGA.DX.A8BN.01     4  0.2797     0.7558 0.00 0.06 0.00 0.88 0.06
#> TCGA.DX.A23Y.01     3  0.0609     0.7308 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.A1L4.01     3  0.0609     0.7250 0.00 0.00 0.98 0.00 0.02
#> TCGA.PC.A5DM.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A6YQ.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.MB.A5Y9.01     3  0.2020     0.7142 0.00 0.00 0.90 0.00 0.10
#> TCGA.HB.A5W3.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U8.01     3  0.3109     0.6425 0.00 0.00 0.80 0.00 0.20
#> TCGA.WK.A8XS.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U7.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QT.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.QC.A7B5.01     2  0.5156     0.5849 0.00 0.62 0.00 0.32 0.06
#> TCGA.QQ.A8VH.01     4  0.4126     0.6378 0.00 0.00 0.00 0.62 0.38
#> TCGA.LI.A9QH.01     2  0.0000     0.8895 0.00 1.00 0.00 0.00 0.00
#> TCGA.WK.A8XX.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DK.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.JV.A5VE.01     1  0.3109     0.7801 0.80 0.00 0.00 0.00 0.20
#> TCGA.DX.A8BZ.01     2  0.1410     0.8746 0.00 0.94 0.00 0.00 0.06
#> TCGA.Z4.A9VC.01     4  0.3983     0.6492 0.00 0.00 0.00 0.66 0.34
#> TCGA.PC.A5DP.01     1  0.0000     0.9060 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U6.01     3  0.0609     0.7250 0.00 0.00 0.98 0.00 0.02
#> TCGA.X2.A95T.01     1  0.1732     0.8691 0.92 0.00 0.00 0.00 0.08
#> TCGA.HS.A5NA.01     1  0.0000     0.9060 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.QQ.A8VD.01     3  0.6215    0.46355 0.00 0.00 0.48 0.02 0.30 0.20
#> TCGA.DX.A1KX.01     4  0.5354    0.12254 0.00 0.00 0.00 0.58 0.26 0.16
#> TCGA.DX.AB37.01     4  0.4328    0.32052 0.00 0.00 0.00 0.72 0.18 0.10
#> TCGA.DX.A1KW.01     3  0.6525    0.43690 0.00 0.00 0.46 0.04 0.30 0.20
#> TCGA.HB.A3YV.01     3  0.2094    0.73808 0.00 0.00 0.90 0.00 0.02 0.08
#> TCGA.WK.A8Y0.01     4  0.2094    0.59272 0.00 0.00 0.00 0.90 0.08 0.02
#> TCGA.DX.AB2O.01     2  0.2048    0.86044 0.00 0.88 0.00 0.12 0.00 0.00
#> TCGA.DX.AB3C.01     6  0.4873   -0.11323 0.00 0.42 0.00 0.06 0.00 0.52
#> TCGA.X6.A8C3.01     4  0.3198    0.45560 0.00 0.26 0.00 0.74 0.00 0.00
#> TCGA.X6.A8C6.01     4  0.0000    0.60407 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.AB36.01     4  0.5202    0.12344 0.00 0.00 0.00 0.60 0.26 0.14
#> TCGA.IE.A4EJ.01     4  0.3706    0.33359 0.00 0.38 0.00 0.62 0.00 0.00
#> TCGA.IF.A3RQ.01     3  0.2094    0.73808 0.00 0.00 0.90 0.00 0.02 0.08
#> TCGA.QC.AA9N.01     3  0.1556    0.68990 0.00 0.00 0.92 0.00 0.00 0.08
#> TCGA.HB.A43Z.01     1  0.3045    0.79922 0.84 0.00 0.00 0.00 0.10 0.06
#> TCGA.FX.A48G.01     3  0.4723    0.41881 0.00 0.00 0.68 0.00 0.18 0.14
#> TCGA.FX.A8OO.01     6  0.3706    0.58265 0.00 0.00 0.00 0.38 0.00 0.62
#> TCGA.3B.A9HS.01     3  0.4536    0.66282 0.00 0.00 0.70 0.00 0.12 0.18
#> TCGA.DX.AB2W.01     4  0.3578    0.39928 0.00 0.34 0.00 0.66 0.00 0.00
#> TCGA.DX.A7EU.01     4  0.3828    0.17468 0.00 0.44 0.00 0.56 0.00 0.00
#> TCGA.DX.A8BJ.01     4  0.3829    0.47509 0.00 0.00 0.00 0.76 0.18 0.06
#> TCGA.DX.A3U5.01     3  0.2094    0.73808 0.00 0.00 0.90 0.00 0.02 0.08
#> TCGA.DX.AB30.01     4  0.6039   -0.13060 0.00 0.00 0.00 0.42 0.30 0.28
#> TCGA.IE.A4EK.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7ES.01     3  0.0937    0.70884 0.00 0.00 0.96 0.00 0.00 0.04
#> TCGA.K1.A3PN.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MO.A47R.01     4  0.2260    0.55510 0.00 0.00 0.00 0.86 0.14 0.00
#> TCGA.DX.A1L2.01     4  0.0000    0.60407 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.K1.A42X.02     1  0.0547    0.90471 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.QQ.A5VB.01     4  0.2350    0.58995 0.00 0.00 0.00 0.88 0.10 0.02
#> TCGA.3B.A9HX.01     4  0.3409    0.45399 0.00 0.00 0.00 0.70 0.30 0.00
#> TCGA.DX.A6Z2.01     5  0.5750    0.22231 0.04 0.00 0.34 0.00 0.54 0.08
#> TCGA.3B.A9HZ.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A42X.01     1  0.0547    0.90471 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.DX.A1L0.01     4  0.1267    0.59284 0.00 0.00 0.00 0.94 0.06 0.00
#> TCGA.DX.A7EO.01     6  0.3706    0.58265 0.00 0.00 0.00 0.38 0.00 0.62
#> TCGA.DX.A6Z0.01     2  0.1814    0.88327 0.00 0.90 0.00 0.10 0.00 0.00
#> TCGA.MB.A8JK.01     4  0.7523   -0.28309 0.00 0.00 0.14 0.30 0.26 0.30
#> TCGA.DX.A8BG.01     3  0.6002    0.51432 0.00 0.00 0.54 0.02 0.24 0.20
#> TCGA.DX.A7EL.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2H.01     4  0.5586   -0.36597 0.00 0.00 0.00 0.44 0.14 0.42
#> TCGA.DX.A7ER.01     6  0.3706    0.58265 0.00 0.00 0.00 0.38 0.00 0.62
#> TCGA.VT.A80J.01     3  0.1814    0.73576 0.00 0.00 0.90 0.00 0.00 0.10
#> TCGA.3B.A9HY.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BO.01     3  0.4475    0.65483 0.00 0.00 0.70 0.00 0.10 0.20
#> TCGA.3B.A9I0.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A3RE.01     3  0.5432    0.40420 0.00 0.00 0.48 0.00 0.40 0.12
#> TCGA.3B.A9HT.01     3  0.2048    0.73238 0.00 0.00 0.88 0.00 0.00 0.12
#> TCGA.DX.AB3B.01     2  0.5447   -0.00294 0.00 0.46 0.00 0.42 0.00 0.12
#> TCGA.K1.A42W.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VT.A80J.02     4  0.0547    0.60327 0.00 0.00 0.00 0.98 0.02 0.00
#> TCGA.Z4.AAPF.01     6  0.3706    0.58265 0.00 0.00 0.00 0.38 0.00 0.62
#> TCGA.3B.A9I1.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3M2.01     3  0.2048    0.73238 0.00 0.00 0.88 0.00 0.00 0.12
#> TCGA.DX.AB2L.01     3  0.7311    0.21053 0.00 0.00 0.34 0.10 0.28 0.28
#> TCGA.DX.A1L1.01     3  0.4475    0.65483 0.00 0.00 0.70 0.00 0.10 0.20
#> TCGA.FX.A3TO.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.VT.AB3D.01     4  0.6423    0.01009 0.00 0.00 0.04 0.48 0.30 0.18
#> TCGA.DX.AB2S.01     3  0.0000    0.72682 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.MO.A47P.01     1  0.5157    0.62969 0.70 0.00 0.06 0.00 0.10 0.14
#> TCGA.X6.A8C2.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AATS.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2E.01     4  0.1807    0.59706 0.00 0.00 0.00 0.92 0.06 0.02
#> TCGA.K1.A42X.11     1  0.3985    0.71871 0.76 0.00 0.00 0.00 0.10 0.14
#> TCGA.DX.A7EN.01     5  0.1092    0.34132 0.02 0.00 0.02 0.00 0.96 0.00
#> TCGA.Z4.AAPG.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB35.01     3  0.7325    0.15995 0.00 0.00 0.32 0.10 0.28 0.30
#> TCGA.DX.A1KY.01     1  0.6939    0.08457 0.46 0.00 0.28 0.00 0.12 0.14
#> TCGA.DX.A1KZ.01     3  0.1267    0.73628 0.00 0.00 0.94 0.00 0.00 0.06
#> TCGA.DX.A1L3.01     3  0.7005    0.34744 0.00 0.00 0.40 0.08 0.32 0.20
#> TCGA.X6.A8C7.01     6  0.3706    0.58265 0.00 0.00 0.00 0.38 0.00 0.62
#> TCGA.IE.A4EH.01     1  0.3544    0.76216 0.80 0.00 0.00 0.00 0.12 0.08
#> TCGA.MB.A8JL.01     3  0.1865    0.71785 0.00 0.00 0.92 0.00 0.04 0.04
#> TCGA.IF.A4AK.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KF.A41W.01     4  0.0937    0.60001 0.00 0.00 0.00 0.96 0.04 0.00
#> TCGA.IE.A4EI.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HU.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2Q.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BL.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IF.A4AJ.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2V.01     3  0.4680    0.64948 0.00 0.00 0.68 0.00 0.12 0.20
#> TCGA.DX.A7ET.01     4  0.0000    0.60407 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.KF.A41W.11     1  0.3985    0.71871 0.76 0.00 0.00 0.00 0.10 0.14
#> TCGA.VT.A80G.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HV.01     5  0.4380   -0.05493 0.00 0.00 0.00 0.22 0.70 0.08
#> TCGA.DX.AB2G.01     3  0.6974    0.37735 0.00 0.00 0.42 0.08 0.30 0.20
#> TCGA.DX.A8BR.01     3  0.5520    0.54953 0.00 0.00 0.56 0.00 0.24 0.20
#> TCGA.K1.A3PN.02     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3M1.01     2  0.0937    0.94271 0.00 0.96 0.00 0.04 0.00 0.00
#> TCGA.X6.A8C5.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YX.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.RN.AAAQ.01     3  0.5419    0.57118 0.00 0.00 0.58 0.00 0.22 0.20
#> TCGA.IF.A4AJ.11     3  0.2048    0.65543 0.00 0.00 0.88 0.00 0.00 0.12
#> TCGA.DX.AB3A.01     6  0.7021    0.21727 0.00 0.00 0.06 0.30 0.30 0.34
#> TCGA.DX.A8BM.01     2  0.0937    0.94271 0.00 0.96 0.00 0.04 0.00 0.00
#> TCGA.IE.A3OV.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C4.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7EM.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB32.01     3  0.7282    0.21667 0.00 0.00 0.36 0.10 0.26 0.28
#> TCGA.3B.A9I3.01     3  0.4200    0.50863 0.00 0.00 0.74 0.00 0.12 0.14
#> TCGA.K1.A6RU.01     6  0.7689    0.12930 0.00 0.00 0.22 0.22 0.26 0.30
#> TCGA.IW.A3M6.01     1  0.5615    0.56117 0.66 0.00 0.08 0.00 0.12 0.14
#> TCGA.DX.A48J.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HO.01     3  0.1556    0.68990 0.00 0.00 0.92 0.00 0.00 0.08
#> TCGA.N1.A6IA.01     4  0.1556    0.59873 0.00 0.00 0.00 0.92 0.08 0.00
#> TCGA.X6.A7W8.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2J.01     1  0.0547    0.90726 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.IW.A3M4.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2X.01     4  0.3756    0.28663 0.00 0.40 0.00 0.60 0.00 0.00
#> TCGA.HB.A2OT.01     4  0.0000    0.60407 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.UE.A6QT.01     3  0.0937    0.70884 0.00 0.00 0.96 0.00 0.00 0.04
#> TCGA.SG.A6Z7.01     4  0.5987   -0.10290 0.00 0.00 0.00 0.44 0.30 0.26
#> TCGA.X6.A7WD.01     1  0.2631    0.77610 0.82 0.00 0.00 0.00 0.18 0.00
#> TCGA.X6.A7WB.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HP.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HR.01     5  0.4902   -0.05007 0.46 0.00 0.00 0.00 0.48 0.06
#> TCGA.LI.A67I.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A7WA.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YR.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.HB.A3L4.01     6  0.7499    0.16524 0.00 0.00 0.14 0.24 0.30 0.32
#> TCGA.FX.A3NJ.01     1  0.3985    0.71871 0.76 0.00 0.00 0.00 0.10 0.14
#> TCGA.DX.A3LS.01     3  0.1556    0.68990 0.00 0.00 0.92 0.00 0.00 0.08
#> TCGA.DX.A2J1.01     3  0.0000    0.72682 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A2J4.01     3  0.0937    0.70884 0.00 0.00 0.96 0.00 0.00 0.04
#> TCGA.DX.A6BE.01     3  0.0937    0.70884 0.00 0.00 0.96 0.00 0.00 0.04
#> TCGA.K1.A6RV.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2Z.01     4  0.0547    0.60327 0.00 0.00 0.00 0.98 0.02 0.00
#> TCGA.IS.A3K8.01     1  0.3985    0.71871 0.76 0.00 0.00 0.00 0.10 0.14
#> TCGA.DX.A48O.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2T.01     4  0.2190    0.55249 0.00 0.00 0.00 0.90 0.06 0.04
#> TCGA.JV.A75J.01     4  0.6039   -0.16039 0.00 0.00 0.00 0.42 0.28 0.30
#> TCGA.DX.A3UD.01     5  0.4144    0.26105 0.36 0.00 0.00 0.00 0.62 0.02
#> TCGA.QQ.A5VA.01     3  0.0000    0.72682 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A3LY.01     3  0.2094    0.73808 0.00 0.00 0.90 0.00 0.02 0.08
#> TCGA.DX.A3LU.01     3  0.0000    0.72682 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.3B.A9HQ.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A48G.11     1  0.4502    0.69183 0.74 0.00 0.02 0.00 0.10 0.14
#> TCGA.X9.A973.01     3  0.5304    0.58799 0.00 0.00 0.60 0.00 0.20 0.20
#> TCGA.MJ.A68J.01     3  0.0547    0.73125 0.00 0.00 0.98 0.00 0.00 0.02
#> TCGA.DX.A3LT.01     4  0.3851    0.11265 0.00 0.46 0.00 0.54 0.00 0.00
#> TCGA.DX.A48P.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A48R.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6B7.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HJ.01     3  0.0000    0.72682 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A6BA.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MJ.A68H.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YV.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BK.01     3  0.2260    0.72796 0.00 0.00 0.86 0.00 0.00 0.14
#> TCGA.FX.A76Y.01     1  0.3985    0.71871 0.76 0.00 0.00 0.00 0.10 0.14
#> TCGA.DX.A48N.01     3  0.2094    0.73808 0.00 0.00 0.90 0.00 0.02 0.08
#> TCGA.K1.A3PO.01     3  0.1556    0.68990 0.00 0.00 0.92 0.00 0.00 0.08
#> TCGA.IE.A6BZ.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BB.01     1  0.2350    0.83171 0.88 0.00 0.00 0.00 0.10 0.02
#> TCGA.X9.A971.01     5  0.5071    0.12758 0.40 0.00 0.00 0.00 0.52 0.08
#> TCGA.IS.A3K7.01     3  0.7005    0.34744 0.00 0.00 0.40 0.08 0.32 0.20
#> TCGA.3B.A9HI.01     4  0.0000    0.60407 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.PC.A5DN.01     3  0.2581    0.73242 0.00 0.00 0.86 0.00 0.02 0.12
#> TCGA.QQ.A5VD.01     3  0.6802   -0.03674 0.24 0.00 0.50 0.00 0.12 0.14
#> TCGA.DX.A2IZ.01     1  0.0547    0.90726 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.MJ.A850.01     6  0.3706    0.58265 0.00 0.00 0.00 0.38 0.00 0.62
#> TCGA.IS.A3KA.01     4  0.2048    0.58199 0.00 0.00 0.00 0.88 0.12 0.00
#> TCGA.DX.A3UB.01     1  0.3985    0.71871 0.76 0.00 0.00 0.00 0.10 0.14
#> TCGA.UE.A6QU.01     4  0.7496   -0.17542 0.00 0.00 0.16 0.34 0.30 0.20
#> TCGA.DX.AB2F.01     3  0.4536    0.66282 0.00 0.00 0.70 0.00 0.12 0.18
#> TCGA.DX.A48K.01     2  0.0937    0.94271 0.00 0.96 0.00 0.04 0.00 0.00
#> TCGA.X6.A7WC.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3LW.01     4  0.5608   -0.00648 0.00 0.00 0.00 0.54 0.26 0.20
#> TCGA.SI.AA8B.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A48V.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.SI.AA8C.01     3  0.5747    0.48701 0.00 0.00 0.50 0.00 0.30 0.20
#> TCGA.QQ.A5V2.01     3  0.7005    0.34744 0.00 0.00 0.40 0.08 0.32 0.20
#> TCGA.IS.A3K6.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3UC.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.RN.A68Q.01     3  0.1814    0.67365 0.00 0.00 0.90 0.00 0.00 0.10
#> TCGA.IW.A3M5.01     4  0.3829    0.36804 0.00 0.06 0.00 0.76 0.00 0.18
#> TCGA.DX.A1KU.01     6  0.7687    0.13217 0.00 0.00 0.20 0.24 0.28 0.28
#> TCGA.DX.A3U9.01     5  0.3864   -0.24583 0.00 0.00 0.00 0.48 0.52 0.00
#> TCGA.SG.A849.01     4  0.1807    0.59706 0.00 0.00 0.00 0.92 0.06 0.02
#> TCGA.DX.A6BF.01     4  0.0000    0.60407 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A6BG.01     3  0.4244    0.66779 0.00 0.00 0.72 0.00 0.08 0.20
#> TCGA.DX.A6B9.01     1  0.3985    0.71871 0.76 0.00 0.00 0.00 0.10 0.14
#> TCGA.DX.A3UF.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6B8.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A3NK.01     3  0.1480    0.72628 0.00 0.00 0.94 0.00 0.02 0.04
#> TCGA.DX.A6BH.01     3  0.2581    0.73242 0.00 0.00 0.86 0.00 0.02 0.12
#> TCGA.DX.A48L.01     5  0.2793    0.33896 0.00 0.00 0.20 0.00 0.80 0.00
#> TCGA.DX.A6YS.01     2  0.0937    0.94271 0.00 0.96 0.00 0.04 0.00 0.00
#> TCGA.DX.A6YT.01     3  0.6721    0.43263 0.00 0.00 0.46 0.06 0.28 0.20
#> TCGA.DX.A2J0.01     4  0.1556    0.58047 0.00 0.00 0.00 0.92 0.08 0.00
#> TCGA.DX.A6YZ.01     4  0.3756    0.28663 0.00 0.40 0.00 0.60 0.00 0.00
#> TCGA.3B.A9HL.01     3  0.2094    0.73808 0.00 0.00 0.90 0.00 0.02 0.08
#> TCGA.DX.A7EQ.01     6  0.3460    0.47983 0.00 0.00 0.00 0.22 0.02 0.76
#> TCGA.DX.AB2P.01     2  0.0937    0.94271 0.00 0.96 0.00 0.04 0.00 0.00
#> TCGA.QC.A6FX.01     4  0.0000    0.60407 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A48U.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A2QS.01     5  0.6618   -0.01607 0.00 0.00 0.20 0.08 0.52 0.20
#> TCGA.DX.A3UE.01     1  0.2350    0.83171 0.88 0.00 0.00 0.00 0.10 0.02
#> TCGA.QQ.A5V9.01     4  0.0937    0.60001 0.00 0.00 0.00 0.96 0.04 0.00
#> TCGA.DX.A3UA.01     2  0.0937    0.94271 0.00 0.96 0.00 0.04 0.00 0.00
#> TCGA.QQ.A5VC.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23R.01     2  0.0937    0.94271 0.00 0.96 0.00 0.04 0.00 0.00
#> TCGA.QQ.A8VB.01     1  0.7049   -0.06526 0.40 0.00 0.34 0.00 0.12 0.14
#> TCGA.DX.A23Z.01     3  0.1267    0.70330 0.00 0.00 0.94 0.00 0.00 0.06
#> TCGA.DX.A8BH.01     4  0.0000    0.60407 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.HS.A5N8.01     4  0.4758   -0.09940 0.00 0.00 0.00 0.58 0.06 0.36
#> TCGA.DX.A240.01     3  0.2350    0.73628 0.00 0.00 0.88 0.00 0.02 0.10
#> TCGA.WK.A8XT.01     6  0.3706    0.58265 0.00 0.00 0.00 0.38 0.00 0.62
#> TCGA.MB.A5YA.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BK.01     4  0.3706    0.33359 0.00 0.38 0.00 0.62 0.00 0.00
#> TCGA.DX.A7EI.01     3  0.4200    0.50863 0.00 0.00 0.74 0.00 0.12 0.14
#> TCGA.SI.A71Q.01     4  0.5292    0.15106 0.00 0.00 0.00 0.60 0.18 0.22
#> TCGA.DX.A8BX.01     4  0.0937    0.60001 0.00 0.00 0.00 0.96 0.04 0.00
#> TCGA.WP.A9GB.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DO.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23U.01     4  0.3045    0.48108 0.00 0.00 0.00 0.84 0.06 0.10
#> TCGA.K1.A6RT.01     3  0.1556    0.73739 0.00 0.00 0.92 0.00 0.00 0.08
#> TCGA.DX.A7EF.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5N7.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5N9.01     4  0.4700    0.36411 0.00 0.34 0.00 0.60 0.06 0.00
#> TCGA.SG.A6Z4.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XZ.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XO.01     3  0.6203    0.21038 0.14 0.00 0.60 0.00 0.12 0.14
#> TCGA.DX.A8BU.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DL.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BT.01     3  0.0000    0.72682 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.MB.A5Y8.01     4  0.4502    0.39666 0.00 0.32 0.00 0.64 0.02 0.02
#> TCGA.WK.A8XY.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23T.01     3  0.0000    0.72682 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.KD.A5QS.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A8VG.01     3  0.0000    0.72682 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A23V.01     3  0.3475    0.56711 0.00 0.00 0.80 0.00 0.06 0.14
#> TCGA.PT.A8TR.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.SI.A71O.06     4  0.0937    0.60001 0.00 0.00 0.00 0.96 0.04 0.00
#> TCGA.DX.A8BV.01     4  0.4863    0.23448 0.00 0.00 0.00 0.66 0.20 0.14
#> TCGA.DX.A8BQ.01     3  0.2790    0.72134 0.00 0.00 0.84 0.00 0.02 0.14
#> TCGA.Z4.A8JB.01     3  0.6771    0.40850 0.00 0.00 0.44 0.06 0.30 0.20
#> TCGA.SI.A71P.01     3  0.0000    0.72682 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.3R.A8YX.01     4  0.2793    0.49792 0.00 0.20 0.00 0.80 0.00 0.00
#> TCGA.DX.A8BP.01     3  0.3982    0.67936 0.00 0.00 0.74 0.00 0.06 0.20
#> TCGA.SI.A71O.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QU.01     5  0.2454    0.22342 0.00 0.00 0.00 0.16 0.84 0.00
#> TCGA.WK.A8XQ.01     3  0.5987    0.41290 0.00 0.00 0.44 0.00 0.26 0.30
#> TCGA.QQ.A8VF.01     3  0.7304    0.26942 0.00 0.00 0.36 0.12 0.32 0.20
#> TCGA.DX.A8BS.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YU.01     4  0.0000    0.60407 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.JV.A5VF.01     4  0.2094    0.59554 0.00 0.00 0.00 0.90 0.08 0.02
#> TCGA.DX.A8BN.01     4  0.0937    0.58477 0.00 0.04 0.00 0.96 0.00 0.00
#> TCGA.DX.A23Y.01     3  0.2350    0.73599 0.00 0.00 0.88 0.00 0.02 0.10
#> TCGA.DX.A1L4.01     3  0.0000    0.72682 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.PC.A5DM.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YQ.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.MB.A5Y9.01     3  0.1556    0.73739 0.00 0.00 0.92 0.00 0.00 0.08
#> TCGA.HB.A5W3.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U8.01     3  0.5027    0.60959 0.00 0.00 0.64 0.00 0.16 0.20
#> TCGA.WK.A8XS.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U7.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QT.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QC.A7B5.01     4  0.3647    0.37554 0.00 0.36 0.00 0.64 0.00 0.00
#> TCGA.QQ.A8VH.01     6  0.3706    0.58265 0.00 0.00 0.00 0.38 0.00 0.62
#> TCGA.LI.A9QH.01     2  0.0000    0.96437 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XX.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DK.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JV.A5VE.01     1  0.3985    0.71871 0.76 0.00 0.00 0.00 0.10 0.14
#> TCGA.DX.A8BZ.01     2  0.2793    0.74808 0.00 0.80 0.00 0.20 0.00 0.00
#> TCGA.Z4.A9VC.01     6  0.3706    0.58265 0.00 0.00 0.00 0.38 0.00 0.62
#> TCGA.PC.A5DP.01     1  0.0000    0.91913 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U6.01     3  0.0000    0.72682 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.X2.A95T.01     1  0.2094    0.85133 0.90 0.00 0.00 0.00 0.02 0.08
#> TCGA.HS.A5NA.01     1  0.0000    0.91913 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.QQ.A8VD.01     7  0.2572     0.6922 0.00 0.00 0.20 0.00 0.00 0.00 0.80
#> TCGA.DX.A1KX.01     7  0.3294     0.5154 0.00 0.00 0.00 0.34 0.00 0.00 0.66
#> TCGA.DX.AB37.01     7  0.4487     0.1944 0.00 0.00 0.00 0.42 0.06 0.00 0.52
#> TCGA.DX.A1KW.01     7  0.3228     0.7133 0.00 0.00 0.16 0.02 0.00 0.02 0.80
#> TCGA.HB.A3YV.01     3  0.2722     0.8196 0.00 0.00 0.84 0.00 0.00 0.04 0.12
#> TCGA.WK.A8Y0.01     4  0.1166     0.8038 0.00 0.00 0.00 0.94 0.06 0.00 0.00
#> TCGA.DX.AB2O.01     2  0.3517     0.6385 0.00 0.70 0.00 0.28 0.02 0.00 0.00
#> TCGA.DX.AB3C.01     6  0.3744     0.7129 0.00 0.12 0.00 0.08 0.02 0.78 0.00
#> TCGA.X6.A8C3.01     4  0.0863     0.7954 0.00 0.04 0.00 0.96 0.00 0.00 0.00
#> TCGA.X6.A8C6.01     4  0.0000     0.8113 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.AB36.01     7  0.3685     0.5160 0.00 0.00 0.00 0.32 0.02 0.00 0.66
#> TCGA.IE.A4EJ.01     4  0.1433     0.7727 0.00 0.08 0.00 0.92 0.00 0.00 0.00
#> TCGA.IF.A3RQ.01     3  0.2278     0.8307 0.00 0.00 0.88 0.00 0.00 0.04 0.08
#> TCGA.QC.AA9N.01     3  0.0000     0.8221 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.HB.A43Z.01     1  0.3722     0.7539 0.76 0.00 0.00 0.00 0.18 0.02 0.04
#> TCGA.FX.A48G.01     3  0.4703     0.3547 0.00 0.00 0.62 0.00 0.30 0.04 0.04
#> TCGA.FX.A8OO.01     6  0.2722     0.9031 0.00 0.00 0.00 0.12 0.00 0.84 0.04
#> TCGA.3B.A9HS.01     3  0.3637     0.7106 0.00 0.00 0.72 0.00 0.00 0.04 0.24
#> TCGA.DX.AB2W.01     4  0.1166     0.7867 0.00 0.06 0.00 0.94 0.00 0.00 0.00
#> TCGA.DX.A7EU.01     4  0.3052     0.6316 0.00 0.20 0.00 0.78 0.02 0.00 0.00
#> TCGA.DX.A8BJ.01     4  0.4505    -0.0462 0.00 0.00 0.00 0.50 0.06 0.00 0.44
#> TCGA.DX.A3U5.01     3  0.2722     0.8196 0.00 0.00 0.84 0.00 0.00 0.04 0.12
#> TCGA.DX.AB30.01     7  0.4001     0.5744 0.00 0.00 0.00 0.18 0.02 0.06 0.74
#> TCGA.IE.A4EK.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7ES.01     3  0.0000     0.8221 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A3PN.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MO.A47R.01     4  0.4840     0.6338 0.00 0.00 0.00 0.68 0.18 0.06 0.08
#> TCGA.DX.A1L2.01     4  0.0000     0.8113 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.K1.A42X.02     1  0.1006     0.9023 0.96 0.00 0.00 0.00 0.02 0.02 0.00
#> TCGA.QQ.A5VB.01     4  0.1928     0.7919 0.00 0.00 0.00 0.90 0.08 0.00 0.02
#> TCGA.3B.A9HX.01     4  0.5286     0.5313 0.00 0.00 0.00 0.62 0.22 0.06 0.10
#> TCGA.DX.A6Z2.01     5  0.2708     0.4834 0.00 0.00 0.22 0.00 0.78 0.00 0.00
#> TCGA.3B.A9HZ.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A42X.01     1  0.1006     0.9023 0.96 0.00 0.00 0.00 0.02 0.02 0.00
#> TCGA.DX.A1L0.01     4  0.3011     0.7388 0.00 0.00 0.00 0.82 0.06 0.00 0.12
#> TCGA.DX.A7EO.01     6  0.2722     0.9031 0.00 0.00 0.00 0.12 0.00 0.84 0.04
#> TCGA.DX.A6Z0.01     2  0.3815     0.4720 0.00 0.62 0.00 0.36 0.02 0.00 0.00
#> TCGA.MB.A8JK.01     7  0.2722     0.7120 0.00 0.00 0.04 0.12 0.00 0.00 0.84
#> TCGA.DX.A8BG.01     7  0.2832     0.6540 0.00 0.00 0.24 0.00 0.00 0.00 0.76
#> TCGA.DX.A7EL.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2H.01     7  0.6089    -0.1996 0.00 0.00 0.00 0.20 0.04 0.36 0.40
#> TCGA.DX.A7ER.01     6  0.2722     0.9031 0.00 0.00 0.00 0.12 0.00 0.84 0.04
#> TCGA.VT.A80J.01     3  0.2422     0.7908 0.00 0.00 0.82 0.00 0.00 0.00 0.18
#> TCGA.3B.A9HY.01     1  0.1006     0.9049 0.96 0.00 0.00 0.00 0.02 0.02 0.00
#> TCGA.DX.A8BO.01     3  0.3139     0.6476 0.00 0.00 0.70 0.00 0.00 0.00 0.30
#> TCGA.3B.A9I0.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A3RE.01     3  0.6089     0.0969 0.00 0.00 0.40 0.00 0.36 0.04 0.20
#> TCGA.3B.A9HT.01     3  0.2422     0.7908 0.00 0.00 0.82 0.00 0.00 0.00 0.18
#> TCGA.DX.AB3B.01     4  0.4992     0.3701 0.00 0.28 0.00 0.60 0.02 0.10 0.00
#> TCGA.K1.A42W.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VT.A80J.02     4  0.1671     0.7909 0.00 0.00 0.00 0.90 0.10 0.00 0.00
#> TCGA.Z4.AAPF.01     6  0.2722     0.9031 0.00 0.00 0.00 0.12 0.00 0.84 0.04
#> TCGA.3B.A9I1.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3M2.01     3  0.2422     0.7908 0.00 0.00 0.82 0.00 0.00 0.00 0.18
#> TCGA.DX.AB2L.01     7  0.2722     0.7287 0.00 0.00 0.12 0.04 0.00 0.00 0.84
#> TCGA.DX.A1L1.01     3  0.3517     0.6638 0.00 0.00 0.70 0.00 0.00 0.02 0.28
#> TCGA.FX.A3TO.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VT.AB3D.01     7  0.3388     0.6579 0.00 0.00 0.00 0.20 0.04 0.00 0.76
#> TCGA.DX.AB2S.01     3  0.1166     0.8390 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.MO.A47P.01     1  0.5243     0.6254 0.66 0.00 0.10 0.00 0.18 0.02 0.04
#> TCGA.X6.A8C2.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AATS.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2E.01     4  0.2512     0.7734 0.00 0.00 0.00 0.86 0.10 0.00 0.04
#> TCGA.K1.A42X.11     1  0.4527     0.7133 0.72 0.00 0.04 0.00 0.18 0.02 0.04
#> TCGA.DX.A7EN.01     5  0.2769     0.5816 0.00 0.00 0.02 0.00 0.86 0.04 0.08
#> TCGA.Z4.AAPG.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB35.01     7  0.3000     0.7241 0.00 0.00 0.10 0.04 0.00 0.02 0.84
#> TCGA.DX.A1KY.01     3  0.6587    -0.2404 0.32 0.00 0.38 0.00 0.24 0.02 0.04
#> TCGA.DX.A1KZ.01     3  0.1886     0.8244 0.00 0.00 0.88 0.00 0.00 0.00 0.12
#> TCGA.DX.A1L3.01     7  0.3086     0.7244 0.00 0.00 0.16 0.04 0.00 0.00 0.80
#> TCGA.X6.A8C7.01     6  0.2722     0.9031 0.00 0.00 0.00 0.12 0.00 0.84 0.04
#> TCGA.IE.A4EH.01     1  0.4211     0.6560 0.68 0.00 0.00 0.00 0.26 0.02 0.04
#> TCGA.MB.A8JL.01     3  0.2857     0.8070 0.00 0.00 0.86 0.00 0.06 0.04 0.04
#> TCGA.IF.A4AK.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KF.A41W.01     4  0.2512     0.7734 0.00 0.00 0.00 0.86 0.10 0.00 0.04
#> TCGA.IE.A4EI.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HU.01     1  0.1006     0.9049 0.96 0.00 0.00 0.00 0.02 0.02 0.00
#> TCGA.DX.AB2Q.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BL.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IF.A4AJ.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2V.01     3  0.3745     0.6816 0.00 0.00 0.70 0.00 0.00 0.04 0.26
#> TCGA.DX.A7ET.01     4  0.0000     0.8113 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.KF.A41W.11     1  0.4527     0.7133 0.72 0.00 0.04 0.00 0.18 0.02 0.04
#> TCGA.VT.A80G.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HV.01     5  0.5876     0.2880 0.00 0.00 0.00 0.08 0.50 0.10 0.32
#> TCGA.DX.AB2G.01     7  0.3086     0.7244 0.00 0.00 0.16 0.04 0.00 0.00 0.80
#> TCGA.DX.A8BR.01     7  0.3139     0.5449 0.00 0.00 0.30 0.00 0.00 0.00 0.70
#> TCGA.K1.A3PN.02     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3M1.01     2  0.2745     0.8072 0.00 0.82 0.00 0.16 0.02 0.00 0.00
#> TCGA.X6.A8C5.01     1  0.1006     0.9049 0.96 0.00 0.00 0.00 0.02 0.02 0.00
#> TCGA.DX.A6YX.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.RN.AAAQ.01     7  0.3968     0.1377 0.00 0.00 0.44 0.00 0.02 0.00 0.54
#> TCGA.IF.A4AJ.11     3  0.0504     0.8078 0.00 0.00 0.98 0.00 0.02 0.00 0.00
#> TCGA.DX.AB3A.01     7  0.3848     0.6394 0.00 0.00 0.00 0.16 0.02 0.06 0.76
#> TCGA.DX.A8BM.01     2  0.2569     0.8294 0.00 0.84 0.00 0.14 0.02 0.00 0.00
#> TCGA.IE.A3OV.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C4.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7EM.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB32.01     7  0.2722     0.7287 0.00 0.00 0.12 0.04 0.00 0.00 0.84
#> TCGA.3B.A9I3.01     3  0.2912     0.6344 0.00 0.00 0.82 0.00 0.14 0.00 0.04
#> TCGA.K1.A6RU.01     7  0.2722     0.7287 0.00 0.00 0.12 0.04 0.00 0.00 0.84
#> TCGA.IW.A3M6.01     1  0.5907     0.4205 0.56 0.00 0.14 0.00 0.24 0.02 0.04
#> TCGA.DX.A48J.01     1  0.1006     0.9049 0.96 0.00 0.00 0.00 0.02 0.02 0.00
#> TCGA.3B.A9HO.01     3  0.0000     0.8221 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.N1.A6IA.01     4  0.2512     0.7734 0.00 0.00 0.00 0.86 0.10 0.00 0.04
#> TCGA.X6.A7W8.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2J.01     1  0.1860     0.8831 0.92 0.00 0.00 0.00 0.02 0.02 0.04
#> TCGA.IW.A3M4.01     1  0.0504     0.9110 0.98 0.00 0.00 0.00 0.02 0.00 0.00
#> TCGA.DX.AB2X.01     4  0.2081     0.7190 0.00 0.14 0.00 0.86 0.00 0.00 0.00
#> TCGA.HB.A2OT.01     4  0.0000     0.8113 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.UE.A6QT.01     3  0.0000     0.8221 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.SG.A6Z7.01     7  0.4242     0.5469 0.00 0.00 0.00 0.18 0.02 0.08 0.72
#> TCGA.X6.A7WD.01     1  0.3606     0.5966 0.68 0.00 0.00 0.00 0.30 0.02 0.00
#> TCGA.X6.A7WB.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HP.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HR.01     5  0.2832     0.5062 0.24 0.00 0.00 0.00 0.76 0.00 0.00
#> TCGA.LI.A67I.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A7WA.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YR.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HB.A3L4.01     7  0.3346     0.6739 0.00 0.00 0.04 0.06 0.02 0.04 0.84
#> TCGA.FX.A3NJ.01     1  0.4527     0.7133 0.72 0.00 0.04 0.00 0.18 0.02 0.04
#> TCGA.DX.A3LS.01     3  0.0000     0.8221 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A2J1.01     3  0.1166     0.8390 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.DX.A2J4.01     3  0.0000     0.8221 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BE.01     3  0.0000     0.8221 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A6RV.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2Z.01     4  0.0504     0.8107 0.00 0.00 0.00 0.98 0.02 0.00 0.00
#> TCGA.IS.A3K8.01     1  0.4527     0.7133 0.72 0.00 0.04 0.00 0.18 0.02 0.04
#> TCGA.DX.A48O.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2T.01     4  0.3221     0.4353 0.00 0.00 0.00 0.68 0.00 0.00 0.32
#> TCGA.JV.A75J.01     7  0.4092     0.5692 0.00 0.00 0.00 0.16 0.02 0.08 0.74
#> TCGA.DX.A3UD.01     5  0.3538     0.5861 0.14 0.00 0.02 0.00 0.80 0.02 0.02
#> TCGA.QQ.A5VA.01     3  0.1166     0.8390 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.DX.A3LY.01     3  0.2722     0.8196 0.00 0.00 0.84 0.00 0.00 0.04 0.12
#> TCGA.DX.A3LU.01     3  0.1166     0.8390 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.3B.A9HQ.01     1  0.1006     0.9049 0.96 0.00 0.00 0.00 0.02 0.02 0.00
#> TCGA.FX.A48G.11     1  0.5036     0.6576 0.68 0.00 0.08 0.00 0.18 0.02 0.04
#> TCGA.X9.A973.01     7  0.3459     0.3002 0.00 0.00 0.40 0.00 0.00 0.00 0.60
#> TCGA.MJ.A68J.01     3  0.1166     0.8390 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.DX.A3LT.01     4  0.3052     0.6316 0.00 0.20 0.00 0.78 0.02 0.00 0.00
#> TCGA.DX.A48P.01     1  0.0504     0.9119 0.98 0.00 0.00 0.00 0.00 0.02 0.00
#> TCGA.DX.A48R.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6B7.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HJ.01     3  0.1166     0.8390 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.DX.A6BA.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MJ.A68H.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YV.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BK.01     3  0.2422     0.7908 0.00 0.00 0.82 0.00 0.00 0.00 0.18
#> TCGA.FX.A76Y.01     1  0.4527     0.7133 0.72 0.00 0.04 0.00 0.18 0.02 0.04
#> TCGA.DX.A48N.01     3  0.2512     0.8245 0.00 0.00 0.86 0.00 0.00 0.04 0.10
#> TCGA.K1.A3PO.01     3  0.0000     0.8221 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IE.A6BZ.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BB.01     1  0.2569     0.8206 0.84 0.00 0.00 0.00 0.14 0.02 0.00
#> TCGA.X9.A971.01     5  0.3052     0.5408 0.20 0.00 0.02 0.00 0.78 0.00 0.00
#> TCGA.IS.A3K7.01     7  0.3902     0.7170 0.00 0.00 0.16 0.04 0.04 0.00 0.76
#> TCGA.3B.A9HI.01     4  0.0000     0.8113 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.PC.A5DN.01     3  0.2278     0.8307 0.00 0.00 0.88 0.00 0.00 0.04 0.08
#> TCGA.QQ.A5VD.01     3  0.3863     0.5153 0.02 0.00 0.74 0.00 0.20 0.00 0.04
#> TCGA.DX.A2IZ.01     1  0.1860     0.8831 0.92 0.00 0.00 0.00 0.02 0.02 0.04
#> TCGA.MJ.A850.01     6  0.2722     0.9031 0.00 0.00 0.00 0.12 0.00 0.84 0.04
#> TCGA.IS.A3KA.01     4  0.3343     0.7590 0.00 0.00 0.00 0.82 0.10 0.04 0.04
#> TCGA.DX.A3UB.01     1  0.4527     0.7133 0.72 0.00 0.04 0.00 0.18 0.02 0.04
#> TCGA.UE.A6QU.01     7  0.3734     0.6952 0.00 0.00 0.04 0.14 0.04 0.00 0.78
#> TCGA.DX.AB2F.01     3  0.3637     0.7106 0.00 0.00 0.72 0.00 0.00 0.04 0.24
#> TCGA.DX.A48K.01     2  0.2081     0.8419 0.00 0.86 0.00 0.14 0.00 0.00 0.00
#> TCGA.X6.A7WC.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3LW.01     7  0.4211     0.5448 0.00 0.00 0.00 0.26 0.02 0.04 0.68
#> TCGA.SI.AA8B.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A48V.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.SI.AA8C.01     7  0.2745     0.6967 0.00 0.00 0.16 0.00 0.00 0.02 0.82
#> TCGA.QQ.A5V2.01     7  0.3902     0.7170 0.00 0.00 0.16 0.04 0.04 0.00 0.76
#> TCGA.IS.A3K6.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3UC.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.RN.A68Q.01     3  0.0000     0.8221 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IW.A3M5.01     4  0.3052     0.6024 0.00 0.00 0.00 0.78 0.02 0.20 0.00
#> TCGA.DX.A1KU.01     7  0.2803     0.7204 0.00 0.00 0.06 0.10 0.00 0.00 0.84
#> TCGA.DX.A3U9.01     5  0.5830     0.2284 0.00 0.00 0.00 0.32 0.50 0.06 0.12
#> TCGA.SG.A849.01     4  0.2572     0.7692 0.00 0.00 0.00 0.86 0.08 0.00 0.06
#> TCGA.DX.A6BF.01     4  0.0504     0.8107 0.00 0.00 0.00 0.98 0.02 0.00 0.00
#> TCGA.DX.A6BG.01     3  0.3047     0.6814 0.00 0.00 0.72 0.00 0.00 0.00 0.28
#> TCGA.DX.A6B9.01     1  0.4527     0.7133 0.72 0.00 0.04 0.00 0.18 0.02 0.04
#> TCGA.DX.A3UF.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6B8.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A3NK.01     3  0.1363     0.8296 0.00 0.00 0.94 0.00 0.00 0.04 0.02
#> TCGA.DX.A6BH.01     3  0.2722     0.8196 0.00 0.00 0.84 0.00 0.00 0.04 0.12
#> TCGA.DX.A48L.01     5  0.3343     0.5795 0.00 0.00 0.10 0.00 0.82 0.04 0.04
#> TCGA.DX.A6YS.01     2  0.2081     0.8419 0.00 0.86 0.00 0.14 0.00 0.00 0.00
#> TCGA.DX.A6YT.01     7  0.3086     0.7244 0.00 0.00 0.16 0.04 0.00 0.00 0.80
#> TCGA.DX.A2J0.01     4  0.3058     0.7437 0.00 0.00 0.00 0.82 0.08 0.00 0.10
#> TCGA.DX.A6YZ.01     4  0.2081     0.7200 0.00 0.14 0.00 0.86 0.00 0.00 0.00
#> TCGA.3B.A9HL.01     3  0.2512     0.8280 0.00 0.00 0.86 0.00 0.00 0.04 0.10
#> TCGA.DX.A7EQ.01     6  0.2163     0.7374 0.00 0.00 0.00 0.02 0.00 0.88 0.10
#> TCGA.DX.AB2P.01     2  0.2081     0.8419 0.00 0.86 0.00 0.14 0.00 0.00 0.00
#> TCGA.QC.A6FX.01     4  0.0000     0.8113 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A48U.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A2QS.01     7  0.4357     0.6624 0.00 0.00 0.04 0.10 0.08 0.02 0.76
#> TCGA.DX.A3UE.01     1  0.2745     0.8025 0.82 0.00 0.00 0.00 0.16 0.02 0.00
#> TCGA.QQ.A5V9.01     4  0.2016     0.7850 0.00 0.00 0.00 0.90 0.04 0.00 0.06
#> TCGA.DX.A3UA.01     2  0.2569     0.8294 0.00 0.84 0.00 0.14 0.02 0.00 0.00
#> TCGA.QQ.A5VC.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23R.01     2  0.2569     0.8294 0.00 0.84 0.00 0.14 0.02 0.00 0.00
#> TCGA.QQ.A8VB.01     3  0.6528    -0.1845 0.28 0.00 0.42 0.00 0.24 0.02 0.04
#> TCGA.DX.A23Z.01     3  0.0504     0.8215 0.00 0.00 0.98 0.00 0.00 0.02 0.00
#> TCGA.DX.A8BH.01     4  0.0000     0.8113 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.HS.A5N8.01     6  0.6264     0.2142 0.00 0.00 0.00 0.38 0.10 0.40 0.12
#> TCGA.DX.A240.01     3  0.2512     0.8245 0.00 0.00 0.86 0.00 0.00 0.04 0.10
#> TCGA.WK.A8XT.01     6  0.2722     0.9031 0.00 0.00 0.00 0.12 0.00 0.84 0.04
#> TCGA.MB.A5YA.01     1  0.1006     0.9049 0.96 0.00 0.00 0.00 0.02 0.02 0.00
#> TCGA.DX.A8BK.01     4  0.1433     0.7727 0.00 0.08 0.00 0.92 0.00 0.00 0.00
#> TCGA.DX.A7EI.01     3  0.3863     0.5423 0.00 0.00 0.74 0.00 0.20 0.02 0.04
#> TCGA.SI.A71Q.01     7  0.4938     0.3669 0.00 0.00 0.00 0.32 0.02 0.08 0.58
#> TCGA.DX.A8BX.01     4  0.2829     0.7590 0.00 0.00 0.00 0.84 0.08 0.00 0.08
#> TCGA.WP.A9GB.01     1  0.1006     0.9056 0.96 0.00 0.00 0.00 0.02 0.02 0.00
#> TCGA.PC.A5DO.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23U.01     4  0.3867     0.2775 0.00 0.00 0.00 0.60 0.02 0.00 0.38
#> TCGA.K1.A6RT.01     3  0.2259     0.8043 0.00 0.00 0.84 0.00 0.00 0.00 0.16
#> TCGA.DX.A7EF.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5N7.01     1  0.1006     0.9049 0.96 0.00 0.00 0.00 0.02 0.02 0.00
#> TCGA.HS.A5N9.01     4  0.4446     0.6757 0.00 0.10 0.00 0.76 0.06 0.04 0.04
#> TCGA.SG.A6Z4.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XZ.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XO.01     3  0.3086     0.6063 0.00 0.00 0.80 0.00 0.16 0.00 0.04
#> TCGA.DX.A8BU.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DL.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BT.01     3  0.1166     0.8390 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.MB.A5Y8.01     4  0.1433     0.7751 0.00 0.08 0.00 0.92 0.00 0.00 0.00
#> TCGA.WK.A8XY.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23T.01     3  0.1166     0.8390 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.KD.A5QS.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A8VG.01     3  0.1166     0.8390 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.DX.A23V.01     3  0.2512     0.6840 0.00 0.00 0.86 0.00 0.10 0.00 0.04
#> TCGA.PT.A8TR.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.SI.A71O.06     4  0.2572     0.7692 0.00 0.00 0.00 0.86 0.08 0.00 0.06
#> TCGA.DX.A8BV.01     7  0.3755     0.4887 0.00 0.00 0.00 0.34 0.02 0.00 0.64
#> TCGA.DX.A8BQ.01     3  0.2832     0.7256 0.00 0.00 0.76 0.00 0.00 0.00 0.24
#> TCGA.Z4.A8JB.01     7  0.3086     0.7244 0.00 0.00 0.16 0.04 0.00 0.00 0.80
#> TCGA.SI.A71P.01     3  0.1166     0.8390 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.3R.A8YX.01     4  0.0504     0.8046 0.00 0.02 0.00 0.98 0.00 0.00 0.00
#> TCGA.DX.A8BP.01     3  0.3139     0.6476 0.00 0.00 0.70 0.00 0.00 0.00 0.30
#> TCGA.SI.A71O.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QU.01     5  0.4311     0.5428 0.00 0.00 0.02 0.04 0.76 0.06 0.12
#> TCGA.WK.A8XQ.01     7  0.2745     0.6913 0.00 0.00 0.16 0.00 0.00 0.02 0.82
#> TCGA.QQ.A8VF.01     7  0.3734     0.6952 0.00 0.00 0.04 0.14 0.04 0.00 0.78
#> TCGA.DX.A8BS.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YU.01     4  0.0000     0.8113 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.JV.A5VF.01     4  0.2512     0.7734 0.00 0.00 0.00 0.86 0.10 0.00 0.04
#> TCGA.DX.A8BN.01     4  0.0000     0.8113 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A23Y.01     3  0.2722     0.8196 0.00 0.00 0.84 0.00 0.00 0.04 0.12
#> TCGA.DX.A1L4.01     3  0.1166     0.8390 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.PC.A5DM.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YQ.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MB.A5Y9.01     3  0.2259     0.8043 0.00 0.00 0.84 0.00 0.00 0.00 0.16
#> TCGA.HB.A5W3.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U8.01     7  0.3546     0.0897 0.00 0.00 0.46 0.00 0.00 0.00 0.54
#> TCGA.WK.A8XS.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U7.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QT.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QC.A7B5.01     4  0.1166     0.7867 0.00 0.06 0.00 0.94 0.00 0.00 0.00
#> TCGA.QQ.A8VH.01     6  0.3208     0.8897 0.00 0.00 0.00 0.12 0.02 0.82 0.04
#> TCGA.LI.A9QH.01     2  0.0000     0.9425 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XX.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DK.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.JV.A5VE.01     1  0.4527     0.7133 0.72 0.00 0.04 0.00 0.18 0.02 0.04
#> TCGA.DX.A8BZ.01     4  0.3558    -0.0262 0.00 0.48 0.00 0.52 0.00 0.00 0.00
#> TCGA.Z4.A9VC.01     6  0.2722     0.9031 0.00 0.00 0.00 0.12 0.00 0.84 0.04
#> TCGA.PC.A5DP.01     1  0.0000     0.9182 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U6.01     3  0.1166     0.8390 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.X2.A95T.01     1  0.3208     0.8113 0.82 0.00 0.00 0.00 0.12 0.02 0.04
#> TCGA.HS.A5NA.01     1  0.0000     0.9182 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.QQ.A8VD.01     7  0.1091    0.72906 0.06 0.00 0.00 0.00 0.00 0.00 0.94 0.00
#> TCGA.DX.A1KX.01     7  0.2680    0.71962 0.12 0.00 0.00 0.02 0.02 0.00 0.84 0.00
#> TCGA.DX.AB37.01     7  0.5261    0.43316 0.22 0.00 0.00 0.24 0.02 0.00 0.52 0.00
#> TCGA.DX.A1KW.01     7  0.1887    0.68231 0.06 0.00 0.00 0.00 0.00 0.04 0.90 0.00
#> TCGA.HB.A3YV.01     3  0.4680    0.73206 0.06 0.00 0.72 0.00 0.00 0.06 0.10 0.06
#> TCGA.WK.A8Y0.01     4  0.2947    0.77660 0.06 0.00 0.00 0.84 0.06 0.00 0.04 0.00
#> TCGA.DX.AB2O.01     4  0.3272    0.12236 0.00 0.42 0.00 0.58 0.00 0.00 0.00 0.00
#> TCGA.DX.AB3C.01     6  0.1341    0.89295 0.00 0.00 0.00 0.08 0.00 0.92 0.00 0.00
#> TCGA.X6.A8C3.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C6.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB36.01     7  0.3337    0.69419 0.16 0.00 0.00 0.04 0.02 0.00 0.78 0.00
#> TCGA.IE.A4EJ.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IF.A3RQ.01     3  0.4680    0.73206 0.06 0.00 0.72 0.00 0.00 0.06 0.10 0.06
#> TCGA.QC.AA9N.01     3  0.2025    0.77232 0.00 0.00 0.88 0.00 0.00 0.02 0.00 0.10
#> TCGA.HB.A43Z.01     8  0.1947    0.42302 0.14 0.00 0.00 0.00 0.00 0.00 0.00 0.86
#> TCGA.FX.A48G.01     8  0.5255   -0.01318 0.06 0.00 0.32 0.00 0.02 0.02 0.02 0.56
#> TCGA.FX.A8OO.01     6  0.1091    0.90965 0.00 0.00 0.00 0.06 0.00 0.94 0.00 0.00
#> TCGA.3B.A9HS.01     3  0.5750    0.61902 0.06 0.00 0.54 0.00 0.00 0.06 0.28 0.06
#> TCGA.DX.AB2W.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7EU.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BJ.01     7  0.5385    0.46304 0.16 0.00 0.00 0.22 0.06 0.00 0.56 0.00
#> TCGA.DX.A3U5.01     3  0.4250    0.75039 0.06 0.00 0.76 0.00 0.00 0.06 0.06 0.06
#> TCGA.DX.AB30.01     7  0.4314    0.63892 0.24 0.00 0.00 0.02 0.08 0.00 0.66 0.00
#> TCGA.IE.A4EK.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A7ES.01     3  0.0808    0.79051 0.00 0.00 0.96 0.00 0.00 0.00 0.00 0.04
#> TCGA.K1.A3PN.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.MO.A47R.01     4  0.3909    0.68747 0.18 0.00 0.00 0.70 0.12 0.00 0.00 0.00
#> TCGA.DX.A1L2.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A42X.02     1  0.3333    0.83239 0.50 0.00 0.00 0.00 0.00 0.00 0.00 0.50
#> TCGA.QQ.A5VB.01     4  0.4443    0.67254 0.14 0.00 0.00 0.70 0.06 0.00 0.10 0.00
#> TCGA.3B.A9HX.01     5  0.5594   -0.14196 0.10 0.00 0.00 0.40 0.42 0.00 0.08 0.00
#> TCGA.DX.A6Z2.01     5  0.3431    0.55609 0.00 0.00 0.06 0.00 0.74 0.00 0.00 0.20
#> TCGA.3B.A9HZ.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.K1.A42X.01     1  0.3333    0.83239 0.50 0.00 0.00 0.00 0.00 0.00 0.00 0.50
#> TCGA.DX.A1L0.01     4  0.4211    0.66135 0.22 0.00 0.00 0.68 0.02 0.00 0.08 0.00
#> TCGA.DX.A7EO.01     6  0.1091    0.90965 0.00 0.00 0.00 0.06 0.00 0.94 0.00 0.00
#> TCGA.DX.A6Z0.01     4  0.3142    0.32343 0.00 0.36 0.00 0.64 0.00 0.00 0.00 0.00
#> TCGA.MB.A8JK.01     7  0.2132    0.73257 0.08 0.00 0.04 0.00 0.00 0.00 0.88 0.00
#> TCGA.DX.A8BG.01     7  0.3291    0.45117 0.02 0.00 0.28 0.00 0.00 0.00 0.70 0.00
#> TCGA.DX.A7EL.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.AB2H.01     7  0.6598    0.17735 0.26 0.00 0.00 0.06 0.04 0.28 0.36 0.00
#> TCGA.DX.A7ER.01     6  0.1091    0.90965 0.00 0.00 0.00 0.06 0.00 0.94 0.00 0.00
#> TCGA.VT.A80J.01     3  0.2719    0.72217 0.02 0.00 0.80 0.00 0.00 0.00 0.18 0.00
#> TCGA.3B.A9HY.01     1  0.3318    0.91737 0.54 0.00 0.00 0.00 0.00 0.00 0.00 0.46
#> TCGA.DX.A8BO.01     3  0.3291    0.64517 0.02 0.00 0.70 0.00 0.00 0.00 0.28 0.00
#> TCGA.3B.A9I0.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.FX.A3RE.01     5  0.7224   -0.00415 0.06 0.00 0.32 0.00 0.38 0.06 0.10 0.08
#> TCGA.3B.A9HT.01     3  0.2719    0.72217 0.02 0.00 0.80 0.00 0.00 0.00 0.18 0.00
#> TCGA.DX.AB3B.01     4  0.3503    0.63881 0.02 0.08 0.00 0.78 0.00 0.12 0.00 0.00
#> TCGA.K1.A42W.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.VT.A80J.02     4  0.2350    0.78982 0.10 0.00 0.00 0.86 0.04 0.00 0.00 0.00
#> TCGA.Z4.AAPF.01     6  0.1091    0.90965 0.00 0.00 0.00 0.06 0.00 0.94 0.00 0.00
#> TCGA.3B.A9I1.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A3M2.01     3  0.2719    0.72217 0.02 0.00 0.80 0.00 0.00 0.00 0.18 0.00
#> TCGA.DX.AB2L.01     7  0.2132    0.73257 0.08 0.00 0.04 0.00 0.00 0.00 0.88 0.00
#> TCGA.DX.A1L1.01     3  0.4570    0.61139 0.06 0.00 0.62 0.00 0.00 0.04 0.28 0.00
#> TCGA.FX.A3TO.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VT.AB3D.01     7  0.2132    0.71995 0.08 0.00 0.04 0.00 0.00 0.00 0.88 0.00
#> TCGA.DX.AB2S.01     3  0.0471    0.79675 0.02 0.00 0.98 0.00 0.00 0.00 0.00 0.00
#> TCGA.MO.A47P.01     8  0.2407    0.54621 0.08 0.00 0.06 0.00 0.00 0.00 0.00 0.86
#> TCGA.X6.A8C2.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AATS.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2E.01     4  0.4672    0.63989 0.16 0.00 0.00 0.66 0.04 0.00 0.14 0.00
#> TCGA.K1.A42X.11     8  0.1341    0.54185 0.08 0.00 0.00 0.00 0.00 0.00 0.00 0.92
#> TCGA.DX.A7EN.01     5  0.1275    0.60071 0.00 0.00 0.00 0.00 0.94 0.00 0.02 0.04
#> TCGA.Z4.AAPG.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB35.01     7  0.1887    0.71696 0.06 0.00 0.00 0.00 0.00 0.04 0.90 0.00
#> TCGA.DX.A1KY.01     8  0.4375    0.14350 0.04 0.00 0.26 0.00 0.02 0.02 0.00 0.66
#> TCGA.DX.A1KZ.01     3  0.0471    0.80041 0.02 0.00 0.98 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A1L3.01     7  0.1275    0.72311 0.02 0.00 0.04 0.00 0.00 0.00 0.94 0.00
#> TCGA.X6.A8C7.01     6  0.1091    0.90965 0.00 0.00 0.00 0.06 0.00 0.94 0.00 0.00
#> TCGA.IE.A4EH.01     8  0.1563    0.49618 0.10 0.00 0.00 0.00 0.00 0.00 0.00 0.90
#> TCGA.MB.A8JL.01     3  0.5144    0.71550 0.06 0.00 0.70 0.00 0.02 0.06 0.08 0.08
#> TCGA.IF.A4AK.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.KF.A41W.01     4  0.4053    0.69896 0.18 0.00 0.00 0.72 0.04 0.00 0.06 0.00
#> TCGA.IE.A4EI.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.3B.A9HU.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.AB2Q.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BL.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IF.A4AJ.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.AB2V.01     3  0.5808    0.59480 0.06 0.00 0.52 0.00 0.00 0.06 0.30 0.06
#> TCGA.DX.A7ET.01     4  0.0471    0.82473 0.00 0.00 0.00 0.98 0.02 0.00 0.00 0.00
#> TCGA.KF.A41W.11     8  0.1341    0.54185 0.08 0.00 0.00 0.00 0.00 0.00 0.00 0.92
#> TCGA.VT.A80G.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HV.01     5  0.4244    0.33764 0.12 0.00 0.00 0.00 0.64 0.00 0.24 0.00
#> TCGA.DX.AB2G.01     7  0.0808    0.71206 0.00 0.00 0.00 0.00 0.00 0.04 0.96 0.00
#> TCGA.DX.A8BR.01     7  0.4106    0.34018 0.02 0.00 0.30 0.00 0.00 0.04 0.64 0.00
#> TCGA.K1.A3PN.02     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A3M1.01     2  0.2756    0.70335 0.00 0.74 0.00 0.26 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C5.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A6YX.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.RN.AAAQ.01     7  0.4224   -0.12650 0.06 0.00 0.46 0.00 0.00 0.00 0.48 0.00
#> TCGA.IF.A4AJ.11     3  0.1091    0.78174 0.00 0.00 0.94 0.00 0.00 0.00 0.00 0.06
#> TCGA.DX.AB3A.01     7  0.3404    0.65088 0.24 0.00 0.00 0.00 0.00 0.04 0.72 0.00
#> TCGA.DX.A8BM.01     2  0.2756    0.70335 0.00 0.74 0.00 0.26 0.00 0.00 0.00 0.00
#> TCGA.IE.A3OV.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.X6.A8C4.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7EM.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.AB32.01     7  0.2132    0.72590 0.08 0.00 0.04 0.00 0.00 0.00 0.88 0.00
#> TCGA.3B.A9I3.01     3  0.3729    0.27045 0.00 0.00 0.52 0.00 0.00 0.02 0.00 0.46
#> TCGA.K1.A6RU.01     7  0.1804    0.73593 0.08 0.00 0.02 0.00 0.00 0.00 0.90 0.00
#> TCGA.IW.A3M6.01     8  0.2569    0.35177 0.00 0.00 0.16 0.00 0.02 0.00 0.00 0.82
#> TCGA.DX.A48J.01     1  0.3318    0.91208 0.54 0.00 0.00 0.00 0.00 0.00 0.00 0.46
#> TCGA.3B.A9HO.01     3  0.2025    0.77232 0.00 0.00 0.88 0.00 0.00 0.02 0.00 0.10
#> TCGA.N1.A6IA.01     4  0.4514    0.65499 0.16 0.00 0.00 0.68 0.04 0.00 0.12 0.00
#> TCGA.X6.A7W8.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2J.01     8  0.3015   -0.28672 0.32 0.00 0.00 0.00 0.00 0.00 0.00 0.68
#> TCGA.IW.A3M4.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.AB2X.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.HB.A2OT.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.UE.A6QT.01     3  0.0471    0.79675 0.02 0.00 0.98 0.00 0.00 0.00 0.00 0.00
#> TCGA.SG.A6Z7.01     7  0.4314    0.63892 0.24 0.00 0.00 0.02 0.08 0.00 0.66 0.00
#> TCGA.X6.A7WD.01     1  0.4990    0.49094 0.44 0.00 0.00 0.00 0.18 0.00 0.00 0.38
#> TCGA.X6.A7WB.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.3B.A9HP.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.3B.A9HR.01     5  0.3514    0.41297 0.02 0.00 0.00 0.00 0.64 0.00 0.00 0.34
#> TCGA.LI.A67I.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A7WA.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A6YR.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HB.A3L4.01     7  0.1947    0.72476 0.14 0.00 0.00 0.00 0.00 0.00 0.86 0.00
#> TCGA.FX.A3NJ.01     8  0.1563    0.50984 0.10 0.00 0.00 0.00 0.00 0.00 0.00 0.90
#> TCGA.DX.A3LS.01     3  0.2025    0.77232 0.00 0.00 0.88 0.00 0.00 0.02 0.00 0.10
#> TCGA.DX.A2J1.01     3  0.0471    0.79675 0.02 0.00 0.98 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A2J4.01     3  0.0808    0.79051 0.00 0.00 0.96 0.00 0.00 0.00 0.00 0.04
#> TCGA.DX.A6BE.01     3  0.0808    0.79051 0.00 0.00 0.96 0.00 0.00 0.00 0.00 0.04
#> TCGA.K1.A6RV.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2Z.01     4  0.1804    0.80589 0.08 0.00 0.00 0.90 0.02 0.00 0.00 0.00
#> TCGA.IS.A3K8.01     8  0.1341    0.54185 0.08 0.00 0.00 0.00 0.00 0.00 0.00 0.92
#> TCGA.DX.A48O.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.AB2T.01     7  0.5163    0.24567 0.14 0.00 0.00 0.36 0.02 0.00 0.48 0.00
#> TCGA.JV.A75J.01     7  0.3551    0.67852 0.22 0.00 0.00 0.00 0.06 0.00 0.72 0.00
#> TCGA.DX.A3UD.01     5  0.2224    0.59412 0.02 0.00 0.00 0.00 0.86 0.00 0.00 0.12
#> TCGA.QQ.A5VA.01     3  0.0471    0.79675 0.02 0.00 0.98 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3LY.01     3  0.4680    0.73206 0.06 0.00 0.72 0.00 0.00 0.06 0.10 0.06
#> TCGA.DX.A3LU.01     3  0.0000    0.79765 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HQ.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.FX.A48G.11     8  0.1804    0.54541 0.08 0.00 0.02 0.00 0.00 0.00 0.00 0.90
#> TCGA.X9.A973.01     7  0.4399   -0.14701 0.02 0.00 0.44 0.00 0.00 0.04 0.50 0.00
#> TCGA.MJ.A68J.01     3  0.0000    0.79765 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3LT.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A48P.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A48R.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A6B7.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.3B.A9HJ.01     3  0.0471    0.79675 0.02 0.00 0.98 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BA.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.MJ.A68H.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A6YV.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BK.01     3  0.2719    0.72217 0.02 0.00 0.80 0.00 0.00 0.00 0.18 0.00
#> TCGA.FX.A76Y.01     8  0.1341    0.54185 0.08 0.00 0.00 0.00 0.00 0.00 0.00 0.92
#> TCGA.DX.A48N.01     3  0.4680    0.73206 0.06 0.00 0.72 0.00 0.00 0.06 0.10 0.06
#> TCGA.K1.A3PO.01     3  0.0808    0.79051 0.00 0.00 0.96 0.00 0.00 0.00 0.00 0.04
#> TCGA.IE.A6BZ.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BB.01     8  0.3333   -0.83550 0.50 0.00 0.00 0.00 0.00 0.00 0.00 0.50
#> TCGA.X9.A971.01     5  0.2756    0.55952 0.00 0.00 0.00 0.00 0.74 0.00 0.00 0.26
#> TCGA.IS.A3K7.01     7  0.0808    0.72445 0.04 0.00 0.00 0.00 0.00 0.00 0.96 0.00
#> TCGA.3B.A9HI.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DN.01     3  0.4680    0.73206 0.06 0.00 0.72 0.00 0.00 0.06 0.10 0.06
#> TCGA.QQ.A5VD.01     8  0.3272   -0.05424 0.00 0.00 0.42 0.00 0.00 0.00 0.00 0.58
#> TCGA.DX.A2IZ.01     8  0.3083   -0.36330 0.34 0.00 0.00 0.00 0.00 0.00 0.00 0.66
#> TCGA.MJ.A850.01     6  0.1091    0.90965 0.00 0.00 0.00 0.06 0.00 0.94 0.00 0.00
#> TCGA.IS.A3KA.01     4  0.2407    0.78999 0.08 0.00 0.00 0.86 0.06 0.00 0.00 0.00
#> TCGA.DX.A3UB.01     8  0.1341    0.54185 0.08 0.00 0.00 0.00 0.00 0.00 0.00 0.92
#> TCGA.UE.A6QU.01     7  0.2265    0.72567 0.08 0.00 0.02 0.00 0.02 0.00 0.88 0.00
#> TCGA.DX.AB2F.01     3  0.5681    0.63600 0.06 0.00 0.56 0.00 0.00 0.06 0.26 0.06
#> TCGA.DX.A48K.01     2  0.2756    0.70335 0.00 0.74 0.00 0.26 0.00 0.00 0.00 0.00
#> TCGA.X6.A7WC.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3LW.01     7  0.3941    0.64103 0.26 0.00 0.00 0.04 0.02 0.00 0.68 0.00
#> TCGA.SI.AA8B.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A48V.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.SI.AA8C.01     7  0.3580    0.67334 0.10 0.00 0.00 0.00 0.04 0.04 0.80 0.02
#> TCGA.QQ.A5V2.01     7  0.2350    0.71865 0.10 0.00 0.04 0.00 0.00 0.00 0.86 0.00
#> TCGA.IS.A3K6.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A3UC.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.RN.A68Q.01     3  0.0808    0.79051 0.00 0.00 0.96 0.00 0.00 0.00 0.00 0.04
#> TCGA.IW.A3M5.01     4  0.3657    0.57017 0.08 0.00 0.00 0.72 0.00 0.20 0.00 0.00
#> TCGA.DX.A1KU.01     7  0.2132    0.72590 0.08 0.00 0.04 0.00 0.00 0.00 0.88 0.00
#> TCGA.DX.A3U9.01     5  0.5166    0.40662 0.10 0.00 0.00 0.16 0.62 0.00 0.12 0.00
#> TCGA.SG.A849.01     4  0.4367    0.66879 0.12 0.00 0.00 0.70 0.04 0.00 0.14 0.00
#> TCGA.DX.A6BF.01     4  0.2025    0.79965 0.10 0.00 0.00 0.88 0.02 0.00 0.00 0.00
#> TCGA.DX.A6BG.01     3  0.3095    0.66573 0.02 0.00 0.74 0.00 0.00 0.00 0.24 0.00
#> TCGA.DX.A6B9.01     8  0.1341    0.54185 0.08 0.00 0.00 0.00 0.00 0.00 0.00 0.92
#> TCGA.DX.A3UF.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A6B8.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A3NK.01     3  0.4479    0.73598 0.06 0.00 0.74 0.00 0.00 0.06 0.06 0.08
#> TCGA.DX.A6BH.01     3  0.4680    0.73206 0.06 0.00 0.72 0.00 0.00 0.06 0.10 0.06
#> TCGA.DX.A48L.01     5  0.1887    0.60106 0.00 0.00 0.00 0.00 0.90 0.00 0.04 0.06
#> TCGA.DX.A6YS.01     2  0.2650    0.72432 0.00 0.76 0.00 0.24 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YT.01     7  0.0808    0.71206 0.00 0.00 0.00 0.00 0.00 0.04 0.96 0.00
#> TCGA.DX.A2J0.01     4  0.4211    0.66135 0.22 0.00 0.00 0.68 0.02 0.00 0.08 0.00
#> TCGA.DX.A6YZ.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HL.01     3  0.4680    0.73206 0.06 0.00 0.72 0.00 0.00 0.06 0.10 0.06
#> TCGA.DX.A7EQ.01     6  0.0471    0.81841 0.00 0.00 0.00 0.00 0.00 0.98 0.02 0.00
#> TCGA.DX.AB2P.01     2  0.2756    0.70335 0.00 0.74 0.00 0.26 0.00 0.00 0.00 0.00
#> TCGA.QC.A6FX.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A48U.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.FX.A2QS.01     7  0.3913    0.63323 0.16 0.00 0.00 0.00 0.06 0.04 0.74 0.00
#> TCGA.DX.A3UE.01     8  0.3318   -0.75740 0.46 0.00 0.00 0.00 0.00 0.00 0.00 0.54
#> TCGA.QQ.A5V9.01     4  0.3601    0.71965 0.16 0.00 0.00 0.76 0.02 0.00 0.06 0.00
#> TCGA.DX.A3UA.01     2  0.2756    0.70335 0.00 0.74 0.00 0.26 0.00 0.00 0.00 0.00
#> TCGA.QQ.A5VC.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23R.01     2  0.3095    0.70893 0.02 0.74 0.00 0.24 0.00 0.00 0.00 0.00
#> TCGA.QQ.A8VB.01     8  0.4280    0.17141 0.04 0.00 0.24 0.00 0.02 0.02 0.00 0.68
#> TCGA.DX.A23Z.01     3  0.3128    0.75792 0.04 0.00 0.82 0.00 0.00 0.04 0.00 0.10
#> TCGA.DX.A8BH.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5N8.01     6  0.6355    0.19425 0.26 0.00 0.00 0.28 0.02 0.38 0.06 0.00
#> TCGA.DX.A240.01     3  0.4680    0.73206 0.06 0.00 0.72 0.00 0.00 0.06 0.10 0.06
#> TCGA.WK.A8XT.01     6  0.1091    0.90965 0.00 0.00 0.00 0.06 0.00 0.94 0.00 0.00
#> TCGA.MB.A5YA.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A8BK.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7EI.01     8  0.4702   -0.02193 0.04 0.00 0.36 0.00 0.02 0.02 0.00 0.56
#> TCGA.SI.A71Q.01     7  0.4856    0.60818 0.24 0.00 0.00 0.06 0.08 0.00 0.62 0.00
#> TCGA.DX.A8BX.01     4  0.4211    0.66135 0.22 0.00 0.00 0.68 0.02 0.00 0.08 0.00
#> TCGA.WP.A9GB.01     1  0.3299    0.95236 0.56 0.00 0.00 0.00 0.00 0.00 0.00 0.44
#> TCGA.PC.A5DO.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A23U.01     7  0.4821    0.50288 0.14 0.00 0.00 0.24 0.02 0.00 0.60 0.00
#> TCGA.K1.A6RT.01     3  0.2569    0.72690 0.02 0.00 0.82 0.00 0.00 0.00 0.16 0.00
#> TCGA.DX.A7EF.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5N7.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.HS.A5N9.01     4  0.0808    0.81839 0.00 0.00 0.00 0.96 0.04 0.00 0.00 0.00
#> TCGA.SG.A6Z4.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XZ.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.WK.A8XO.01     8  0.3714   -0.11891 0.00 0.00 0.44 0.00 0.00 0.02 0.00 0.54
#> TCGA.DX.A8BU.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DL.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A8BT.01     3  0.2348    0.78474 0.00 0.00 0.88 0.00 0.00 0.04 0.02 0.06
#> TCGA.MB.A5Y8.01     4  0.0471    0.82035 0.02 0.00 0.00 0.98 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XY.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A23T.01     3  0.0471    0.79675 0.02 0.00 0.98 0.00 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QS.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A8VG.01     3  0.0471    0.79675 0.02 0.00 0.98 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23V.01     3  0.3658    0.37984 0.00 0.00 0.58 0.00 0.00 0.02 0.00 0.40
#> TCGA.PT.A8TR.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.SI.A71O.06     4  0.4367    0.67536 0.14 0.00 0.00 0.70 0.04 0.00 0.12 0.00
#> TCGA.DX.A8BV.01     7  0.3879    0.65385 0.14 0.00 0.00 0.10 0.02 0.00 0.74 0.00
#> TCGA.DX.A8BQ.01     3  0.2719    0.72217 0.02 0.00 0.80 0.00 0.00 0.00 0.18 0.00
#> TCGA.Z4.A8JB.01     7  0.1091    0.72906 0.06 0.00 0.00 0.00 0.00 0.00 0.94 0.00
#> TCGA.SI.A71P.01     3  0.0471    0.79675 0.02 0.00 0.98 0.00 0.00 0.00 0.00 0.00
#> TCGA.3R.A8YX.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BP.01     3  0.2981    0.68738 0.02 0.00 0.76 0.00 0.00 0.00 0.22 0.00
#> TCGA.SI.A71O.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QU.01     5  0.0808    0.58607 0.00 0.00 0.00 0.00 0.96 0.00 0.04 0.00
#> TCGA.WK.A8XQ.01     7  0.4294    0.64698 0.10 0.00 0.06 0.00 0.02 0.04 0.76 0.02
#> TCGA.QQ.A8VF.01     7  0.0808    0.72445 0.04 0.00 0.00 0.00 0.00 0.00 0.96 0.00
#> TCGA.DX.A8BS.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YU.01     4  0.2265    0.79731 0.08 0.00 0.00 0.88 0.02 0.00 0.02 0.00
#> TCGA.JV.A5VF.01     4  0.4764    0.63461 0.16 0.00 0.00 0.66 0.06 0.00 0.12 0.00
#> TCGA.DX.A8BN.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23Y.01     3  0.4860    0.72792 0.06 0.00 0.70 0.00 0.00 0.06 0.12 0.06
#> TCGA.DX.A1L4.01     3  0.0471    0.79675 0.02 0.00 0.98 0.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DM.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YQ.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MB.A5Y9.01     3  0.2569    0.72690 0.02 0.00 0.82 0.00 0.00 0.00 0.16 0.00
#> TCGA.HB.A5W3.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A3U8.01     3  0.3618    0.40833 0.02 0.00 0.60 0.00 0.00 0.00 0.38 0.00
#> TCGA.WK.A8XS.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A3U7.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.KD.A5QT.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.QC.A7B5.01     4  0.0000    0.82767 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A8VH.01     6  0.2862    0.82337 0.10 0.00 0.00 0.08 0.00 0.82 0.00 0.00
#> TCGA.LI.A9QH.01     2  0.0000    0.93507 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XX.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.PC.A5DK.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.JV.A5VE.01     8  0.1341    0.54185 0.08 0.00 0.00 0.00 0.00 0.00 0.00 0.92
#> TCGA.DX.A8BZ.01     4  0.2650    0.55984 0.00 0.24 0.00 0.76 0.00 0.00 0.00 0.00
#> TCGA.Z4.A9VC.01     6  0.1557    0.89601 0.02 0.00 0.00 0.06 0.00 0.92 0.00 0.00
#> TCGA.PC.A5DP.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42
#> TCGA.DX.A3U6.01     3  0.0471    0.79675 0.02 0.00 0.98 0.00 0.00 0.00 0.00 0.00
#> TCGA.X2.A95T.01     8  0.1765    0.46929 0.12 0.00 0.00 0.00 0.00 0.00 0.00 0.88
#> TCGA.HS.A5NA.01     1  0.3272    0.98261 0.58 0.00 0.00 0.00 0.00 0.00 0.00 0.42

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-leaf , Node013-leaf , Node014-leaf , Node015-leaf , Node016-leaf , Node021 , Node022 , Node023 , Node024-leaf , Node031 , Node032 , Node033-leaf , Node034 , Node041-leaf , Node042 , Node043-leaf , Node044-leaf , Node045-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 76 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 6.
#> 
#> 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           0.979       0.990         0.4084 0.583   0.583
#> 3 3 1.000           0.984       0.993         0.4168 0.710   0.553
#> 4 4 0.969           0.971       0.980         0.1189 0.909   0.791
#> 5 5 0.968           0.898       0.929         0.0408 0.981   0.946
#> 6 6 1.000           0.974       0.980         0.0559 0.945   0.839
#> 7 7 0.855           0.914       0.937         0.0357 1.000   1.000
#> 8 8 0.838           0.835       0.906         0.0160 0.998   0.992

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

suggest_best_k(res)
#> [1] 6
#> 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.HB.A43Z.01     2   0.827      0.681 0.26 0.74
#> TCGA.IE.A4EK.01     1   0.000      1.000 1.00 0.00
#> TCGA.K1.A3PN.01     1   0.000      1.000 1.00 0.00
#> TCGA.K1.A42X.02     2   0.000      0.964 0.00 1.00
#> TCGA.3B.A9HZ.01     1   0.000      1.000 1.00 0.00
#> TCGA.K1.A42X.01     2   0.000      0.964 0.00 1.00
#> TCGA.DX.A7EL.01     1   0.000      1.000 1.00 0.00
#> TCGA.3B.A9HY.01     1   0.000      1.000 1.00 0.00
#> TCGA.3B.A9I0.01     1   0.000      1.000 1.00 0.00
#> TCGA.K1.A42W.01     1   0.000      1.000 1.00 0.00
#> TCGA.3B.A9I1.01     2   0.000      0.964 0.00 1.00
#> TCGA.MO.A47P.01     1   0.000      1.000 1.00 0.00
#> TCGA.K1.A42X.11     2   0.000      0.964 0.00 1.00
#> TCGA.DX.A1KY.01     1   0.000      1.000 1.00 0.00
#> TCGA.IE.A4EH.01     2   0.000      0.964 0.00 1.00
#> TCGA.IF.A4AK.01     1   0.000      1.000 1.00 0.00
#> TCGA.IE.A4EI.01     1   0.000      1.000 1.00 0.00
#> TCGA.3B.A9HU.01     1   0.000      1.000 1.00 0.00
#> TCGA.IF.A4AJ.01     1   0.000      1.000 1.00 0.00
#> TCGA.KF.A41W.11     2   0.000      0.964 0.00 1.00
#> TCGA.K1.A3PN.02     1   0.000      1.000 1.00 0.00
#> TCGA.X6.A8C5.01     1   0.000      1.000 1.00 0.00
#> TCGA.IE.A3OV.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A7EM.01     1   0.000      1.000 1.00 0.00
#> TCGA.IW.A3M6.01     2   0.000      0.964 0.00 1.00
#> TCGA.DX.A48J.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.AB2J.01     2   0.000      0.964 0.00 1.00
#> TCGA.IW.A3M4.01     2   0.000      0.964 0.00 1.00
#> TCGA.X6.A7WD.01     1   0.000      1.000 1.00 0.00
#> TCGA.X6.A7WB.01     2   0.827      0.681 0.26 0.74
#> TCGA.3B.A9HP.01     1   0.000      1.000 1.00 0.00
#> TCGA.3B.A9HR.01     1   0.000      1.000 1.00 0.00
#> TCGA.X6.A7WA.01     1   0.000      1.000 1.00 0.00
#> TCGA.FX.A3NJ.01     1   0.000      1.000 1.00 0.00
#> TCGA.IS.A3K8.01     2   0.000      0.964 0.00 1.00
#> TCGA.DX.A48O.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A3UD.01     1   0.000      1.000 1.00 0.00
#> TCGA.3B.A9HQ.01     1   0.000      1.000 1.00 0.00
#> TCGA.FX.A48G.11     2   0.000      0.964 0.00 1.00
#> TCGA.DX.A48P.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A48R.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A6B7.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A6BA.01     1   0.000      1.000 1.00 0.00
#> TCGA.MJ.A68H.01     1   0.000      1.000 1.00 0.00
#> TCGA.FX.A76Y.01     2   0.000      0.964 0.00 1.00
#> TCGA.DX.A6BB.01     1   0.000      1.000 1.00 0.00
#> TCGA.X9.A971.01     1   0.000      1.000 1.00 0.00
#> TCGA.QQ.A5VD.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A2IZ.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A3UB.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A48V.01     1   0.000      1.000 1.00 0.00
#> TCGA.IS.A3K6.01     2   0.000      0.964 0.00 1.00
#> TCGA.DX.A3UC.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A6B9.01     2   0.141      0.950 0.02 0.98
#> TCGA.DX.A3UF.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A48U.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A3UE.01     1   0.000      1.000 1.00 0.00
#> TCGA.QQ.A8VB.01     1   0.000      1.000 1.00 0.00
#> TCGA.MB.A5YA.01     1   0.000      1.000 1.00 0.00
#> TCGA.WP.A9GB.01     2   0.000      0.964 0.00 1.00
#> TCGA.PC.A5DO.01     1   0.000      1.000 1.00 0.00
#> TCGA.HS.A5N7.01     1   0.000      1.000 1.00 0.00
#> TCGA.WK.A8XZ.01     1   0.000      1.000 1.00 0.00
#> TCGA.PC.A5DL.01     1   0.000      1.000 1.00 0.00
#> TCGA.WK.A8XY.01     1   0.000      1.000 1.00 0.00
#> TCGA.PT.A8TR.01     2   0.722      0.767 0.20 0.80
#> TCGA.HB.A5W3.01     1   0.000      1.000 1.00 0.00
#> TCGA.WK.A8XS.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A3U7.01     1   0.000      1.000 1.00 0.00
#> TCGA.KD.A5QT.01     2   0.000      0.964 0.00 1.00
#> TCGA.WK.A8XX.01     1   0.000      1.000 1.00 0.00
#> TCGA.PC.A5DK.01     1   0.000      1.000 1.00 0.00
#> TCGA.JV.A5VE.01     2   0.000      0.964 0.00 1.00
#> TCGA.PC.A5DP.01     1   0.000      1.000 1.00 0.00
#> TCGA.X2.A95T.01     2   0.000      0.964 0.00 1.00
#> TCGA.HS.A5NA.01     2   0.000      0.964 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.HB.A43Z.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.IE.A4EK.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.K1.A3PN.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.K1.A42X.02     2  0.0000      0.998 0.00 1.00 0.00
#> TCGA.3B.A9HZ.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.K1.A42X.01     2  0.0000      0.998 0.00 1.00 0.00
#> TCGA.DX.A7EL.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.3B.A9HY.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.3B.A9I0.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.K1.A42W.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.3B.A9I1.01     2  0.0000      0.998 0.00 1.00 0.00
#> TCGA.MO.A47P.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.K1.A42X.11     2  0.0000      0.998 0.00 1.00 0.00
#> TCGA.DX.A1KY.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.IE.A4EH.01     2  0.0000      0.998 0.00 1.00 0.00
#> TCGA.IF.A4AK.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.IE.A4EI.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.3B.A9HU.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.IF.A4AJ.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.KF.A41W.11     2  0.0000      0.998 0.00 1.00 0.00
#> TCGA.K1.A3PN.02     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.X6.A8C5.01     1  0.3686      0.833 0.86 0.00 0.14
#> TCGA.IE.A3OV.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.DX.A7EM.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.IW.A3M6.01     1  0.5835      0.484 0.66 0.34 0.00
#> TCGA.DX.A48J.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.DX.AB2J.01     2  0.0892      0.972 0.02 0.98 0.00
#> TCGA.IW.A3M4.01     2  0.0000      0.998 0.00 1.00 0.00
#> TCGA.X6.A7WD.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.X6.A7WB.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.3B.A9HP.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.3B.A9HR.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.X6.A7WA.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.FX.A3NJ.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.IS.A3K8.01     2  0.0000      0.998 0.00 1.00 0.00
#> TCGA.DX.A48O.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.DX.A3UD.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.3B.A9HQ.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.FX.A48G.11     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.DX.A48P.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.DX.A48R.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.DX.A6B7.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.DX.A6BA.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.MJ.A68H.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.FX.A76Y.01     2  0.0000      0.998 0.00 1.00 0.00
#> TCGA.DX.A6BB.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.X9.A971.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.QQ.A5VD.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.DX.A2IZ.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.DX.A3UB.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.DX.A48V.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.IS.A3K6.01     2  0.0000      0.998 0.00 1.00 0.00
#> TCGA.DX.A3UC.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.DX.A6B9.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.DX.A3UF.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.DX.A48U.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.DX.A3UE.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.QQ.A8VB.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.MB.A5YA.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.WP.A9GB.01     2  0.0000      0.998 0.00 1.00 0.00
#> TCGA.PC.A5DO.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.HS.A5N7.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.WK.A8XZ.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.PC.A5DL.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.WK.A8XY.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.PT.A8TR.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.HB.A5W3.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.WK.A8XS.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.DX.A3U7.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.KD.A5QT.01     2  0.0000      0.998 0.00 1.00 0.00
#> TCGA.WK.A8XX.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.PC.A5DK.01     3  0.0000      1.000 0.00 0.00 1.00
#> TCGA.JV.A5VE.01     2  0.0000      0.998 0.00 1.00 0.00
#> TCGA.PC.A5DP.01     1  0.0000      0.989 1.00 0.00 0.00
#> TCGA.X2.A95T.01     2  0.0000      0.998 0.00 1.00 0.00
#> TCGA.HS.A5NA.01     2  0.0000      0.998 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.HB.A43Z.01     4   0.000      0.892 0.00 0.00  0 1.00
#> TCGA.IE.A4EK.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.K1.A3PN.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.K1.A42X.02     2   0.000      1.000 0.00 1.00  0 0.00
#> TCGA.3B.A9HZ.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.K1.A42X.01     2   0.000      1.000 0.00 1.00  0 0.00
#> TCGA.DX.A7EL.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.3B.A9HY.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.3B.A9I0.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.K1.A42W.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.3B.A9I1.01     4   0.292      0.914 0.00 0.14  0 0.86
#> TCGA.MO.A47P.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.K1.A42X.11     2   0.000      1.000 0.00 1.00  0 0.00
#> TCGA.DX.A1KY.01     1   0.292      0.854 0.86 0.00  0 0.14
#> TCGA.IE.A4EH.01     4   0.361      0.854 0.00 0.20  0 0.80
#> TCGA.IF.A4AK.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.IE.A4EI.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.3B.A9HU.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.IF.A4AJ.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.KF.A41W.11     2   0.000      1.000 0.00 1.00  0 0.00
#> TCGA.K1.A3PN.02     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.X6.A8C5.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.IE.A3OV.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.DX.A7EM.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.IW.A3M6.01     4   0.000      0.892 0.00 0.00  0 1.00
#> TCGA.DX.A48J.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.DX.AB2J.01     4   0.000      0.892 0.00 0.00  0 1.00
#> TCGA.IW.A3M4.01     2   0.000      1.000 0.00 1.00  0 0.00
#> TCGA.X6.A7WD.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.X6.A7WB.01     4   0.000      0.892 0.00 0.00  0 1.00
#> TCGA.3B.A9HP.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.3B.A9HR.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.X6.A7WA.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.FX.A3NJ.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.IS.A3K8.01     2   0.000      1.000 0.00 1.00  0 0.00
#> TCGA.DX.A48O.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.DX.A3UD.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.3B.A9HQ.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.FX.A48G.11     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.DX.A48P.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.DX.A48R.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.DX.A6B7.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.DX.A6BA.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.MJ.A68H.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.FX.A76Y.01     2   0.000      1.000 0.00 1.00  0 0.00
#> TCGA.DX.A6BB.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.X9.A971.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.QQ.A5VD.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.DX.A2IZ.01     1   0.292      0.854 0.86 0.00  0 0.14
#> TCGA.DX.A3UB.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.DX.A48V.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.IS.A3K6.01     4   0.292      0.914 0.00 0.14  0 0.86
#> TCGA.DX.A3UC.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.DX.A6B9.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.DX.A3UF.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.DX.A48U.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.DX.A3UE.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.QQ.A8VB.01     1   0.380      0.751 0.78 0.00  0 0.22
#> TCGA.MB.A5YA.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.WP.A9GB.01     4   0.292      0.914 0.00 0.14  0 0.86
#> TCGA.PC.A5DO.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.HS.A5N7.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.WK.A8XZ.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.PC.A5DL.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.WK.A8XY.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.PT.A8TR.01     4   0.000      0.892 0.00 0.00  0 1.00
#> TCGA.HB.A5W3.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.WK.A8XS.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.DX.A3U7.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.KD.A5QT.01     4   0.292      0.914 0.00 0.14  0 0.86
#> TCGA.WK.A8XX.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.PC.A5DK.01     3   0.000      1.000 0.00 0.00  1 0.00
#> TCGA.JV.A5VE.01     4   0.292      0.914 0.00 0.14  0 0.86
#> TCGA.PC.A5DP.01     1   0.000      0.988 1.00 0.00  0 0.00
#> TCGA.X2.A95T.01     2   0.000      1.000 0.00 1.00  0 0.00
#> TCGA.HS.A5NA.01     4   0.292      0.914 0.00 0.14  0 0.86

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1   p2   p3   p4   p5
#> TCGA.HB.A43Z.01     4   0.413      0.671 0.00 0.00 0.38 0.62 0.00
#> TCGA.IE.A4EK.01     3   0.413      1.000 0.00 0.00 0.62 0.00 0.38
#> TCGA.K1.A3PN.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A42X.02     2   0.000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.3B.A9HZ.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A42X.01     2   0.000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A7EL.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HY.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9I0.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A42W.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9I1.01     4   0.141      0.826 0.00 0.06 0.00 0.94 0.00
#> TCGA.MO.A47P.01     5   0.000      0.816 0.00 0.00 0.00 0.00 1.00
#> TCGA.K1.A42X.11     2   0.000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A1KY.01     1   0.535      0.381 0.56 0.00 0.38 0.06 0.00
#> TCGA.IE.A4EH.01     4   0.173      0.812 0.00 0.08 0.00 0.92 0.00
#> TCGA.IF.A4AK.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.IE.A4EI.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HU.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.IF.A4AJ.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.KF.A41W.11     5   0.413      0.154 0.00 0.38 0.00 0.00 0.62
#> TCGA.K1.A3PN.02     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C5.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.IE.A3OV.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7EM.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.IW.A3M6.01     4   0.413      0.671 0.00 0.00 0.38 0.62 0.00
#> TCGA.DX.A48J.01     3   0.413      1.000 0.00 0.00 0.62 0.00 0.38
#> TCGA.DX.AB2J.01     4   0.413      0.671 0.00 0.00 0.38 0.62 0.00
#> TCGA.IW.A3M4.01     2   0.000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.X6.A7WD.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A7WB.01     4   0.141      0.793 0.00 0.00 0.06 0.94 0.00
#> TCGA.3B.A9HP.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HR.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A7WA.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A3NJ.01     3   0.413      1.000 0.00 0.00 0.62 0.00 0.38
#> TCGA.IS.A3K8.01     2   0.000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A48O.01     3   0.413      1.000 0.00 0.00 0.62 0.00 0.38
#> TCGA.DX.A3UD.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HQ.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A48G.11     5   0.000      0.816 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.A48P.01     3   0.413      1.000 0.00 0.00 0.62 0.00 0.38
#> TCGA.DX.A48R.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6B7.01     3   0.413      1.000 0.00 0.00 0.62 0.00 0.38
#> TCGA.DX.A6BA.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.MJ.A68H.01     1   0.173      0.890 0.92 0.00 0.08 0.00 0.00
#> TCGA.FX.A76Y.01     2   0.000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A6BB.01     3   0.413      1.000 0.00 0.00 0.62 0.00 0.38
#> TCGA.X9.A971.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A5VD.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A2IZ.01     1   0.535      0.381 0.56 0.00 0.38 0.06 0.00
#> TCGA.DX.A3UB.01     5   0.000      0.816 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.A48V.01     3   0.413      1.000 0.00 0.00 0.62 0.00 0.38
#> TCGA.IS.A3K6.01     4   0.141      0.826 0.00 0.06 0.00 0.94 0.00
#> TCGA.DX.A3UC.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6B9.01     5   0.000      0.816 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.A3UF.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A48U.01     3   0.413      1.000 0.00 0.00 0.62 0.00 0.38
#> TCGA.DX.A3UE.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A8VB.01     1   0.583      0.285 0.52 0.00 0.38 0.10 0.00
#> TCGA.MB.A5YA.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.WP.A9GB.01     4   0.141      0.826 0.00 0.06 0.00 0.94 0.00
#> TCGA.PC.A5DO.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5N7.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XZ.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DL.01     3   0.413      1.000 0.00 0.00 0.62 0.00 0.38
#> TCGA.WK.A8XY.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.PT.A8TR.01     4   0.413      0.671 0.00 0.00 0.38 0.62 0.00
#> TCGA.HB.A5W3.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XS.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U7.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QT.01     4   0.141      0.826 0.00 0.06 0.00 0.94 0.00
#> TCGA.WK.A8XX.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DK.01     3   0.413      1.000 0.00 0.00 0.62 0.00 0.38
#> TCGA.JV.A5VE.01     4   0.141      0.826 0.00 0.06 0.00 0.94 0.00
#> TCGA.PC.A5DP.01     1   0.000      0.964 1.00 0.00 0.00 0.00 0.00
#> TCGA.X2.A95T.01     2   0.000      1.000 0.00 1.00 0.00 0.00 0.00
#> TCGA.HS.A5NA.01     4   0.141      0.826 0.00 0.06 0.00 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.HB.A43Z.01     6  0.1267      0.942 0.00  0  0 0.06  0 0.94
#> TCGA.IE.A4EK.01     3  0.0000      1.000 0.00  0  1 0.00  0 0.00
#> TCGA.K1.A3PN.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.K1.A42X.02     2  0.0000      1.000 0.00  1  0 0.00  0 0.00
#> TCGA.3B.A9HZ.01     1  0.1267      0.962 0.94  0  0 0.00  0 0.06
#> TCGA.K1.A42X.01     2  0.0000      1.000 0.00  1  0 0.00  0 0.00
#> TCGA.DX.A7EL.01     1  0.1267      0.962 0.94  0  0 0.00  0 0.06
#> TCGA.3B.A9HY.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.3B.A9I0.01     1  0.1267      0.962 0.94  0  0 0.00  0 0.06
#> TCGA.K1.A42W.01     1  0.0937      0.968 0.96  0  0 0.00  0 0.04
#> TCGA.3B.A9I1.01     4  0.0000      0.972 0.00  0  0 1.00  0 0.00
#> TCGA.MO.A47P.01     5  0.0000      1.000 0.00  0  0 0.00  1 0.00
#> TCGA.K1.A42X.11     2  0.0000      1.000 0.00  1  0 0.00  0 0.00
#> TCGA.DX.A1KY.01     6  0.1267      0.926 0.06  0  0 0.00  0 0.94
#> TCGA.IE.A4EH.01     4  0.0000      0.972 0.00  0  0 1.00  0 0.00
#> TCGA.IF.A4AK.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.IE.A4EI.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.3B.A9HU.01     1  0.1267      0.962 0.94  0  0 0.00  0 0.06
#> TCGA.IF.A4AJ.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.KF.A41W.11     5  0.0000      1.000 0.00  0  0 0.00  1 0.00
#> TCGA.K1.A3PN.02     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.X6.A8C5.01     1  0.1267      0.962 0.94  0  0 0.00  0 0.06
#> TCGA.IE.A3OV.01     1  0.1267      0.962 0.94  0  0 0.00  0 0.06
#> TCGA.DX.A7EM.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.IW.A3M6.01     6  0.1556      0.929 0.00  0  0 0.08  0 0.92
#> TCGA.DX.A48J.01     3  0.0000      1.000 0.00  0  1 0.00  0 0.00
#> TCGA.DX.AB2J.01     6  0.1267      0.942 0.00  0  0 0.06  0 0.94
#> TCGA.IW.A3M4.01     2  0.0000      1.000 0.00  1  0 0.00  0 0.00
#> TCGA.X6.A7WD.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.X6.A7WB.01     4  0.2631      0.766 0.00  0  0 0.82  0 0.18
#> TCGA.3B.A9HP.01     1  0.1267      0.962 0.94  0  0 0.00  0 0.06
#> TCGA.3B.A9HR.01     1  0.1267      0.962 0.94  0  0 0.00  0 0.06
#> TCGA.X6.A7WA.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.FX.A3NJ.01     3  0.0000      1.000 0.00  0  1 0.00  0 0.00
#> TCGA.IS.A3K8.01     2  0.0000      1.000 0.00  1  0 0.00  0 0.00
#> TCGA.DX.A48O.01     3  0.0000      1.000 0.00  0  1 0.00  0 0.00
#> TCGA.DX.A3UD.01     1  0.1267      0.962 0.94  0  0 0.00  0 0.06
#> TCGA.3B.A9HQ.01     1  0.1267      0.962 0.94  0  0 0.00  0 0.06
#> TCGA.FX.A48G.11     5  0.0000      1.000 0.00  0  0 0.00  1 0.00
#> TCGA.DX.A48P.01     3  0.0000      1.000 0.00  0  1 0.00  0 0.00
#> TCGA.DX.A48R.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.DX.A6B7.01     3  0.0000      1.000 0.00  0  1 0.00  0 0.00
#> TCGA.DX.A6BA.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.MJ.A68H.01     1  0.0547      0.964 0.98  0  0 0.00  0 0.02
#> TCGA.FX.A76Y.01     2  0.0000      1.000 0.00  1  0 0.00  0 0.00
#> TCGA.DX.A6BB.01     3  0.0000      1.000 0.00  0  1 0.00  0 0.00
#> TCGA.X9.A971.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.QQ.A5VD.01     1  0.0547      0.973 0.98  0  0 0.00  0 0.02
#> TCGA.DX.A2IZ.01     6  0.1267      0.926 0.06  0  0 0.00  0 0.94
#> TCGA.DX.A3UB.01     5  0.0000      1.000 0.00  0  0 0.00  1 0.00
#> TCGA.DX.A48V.01     3  0.0000      1.000 0.00  0  1 0.00  0 0.00
#> TCGA.IS.A3K6.01     4  0.0000      0.972 0.00  0  0 1.00  0 0.00
#> TCGA.DX.A3UC.01     1  0.0547      0.973 0.98  0  0 0.00  0 0.02
#> TCGA.DX.A6B9.01     5  0.0000      1.000 0.00  0  0 0.00  1 0.00
#> TCGA.DX.A3UF.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.DX.A48U.01     3  0.0000      1.000 0.00  0  1 0.00  0 0.00
#> TCGA.DX.A3UE.01     1  0.1267      0.962 0.94  0  0 0.00  0 0.06
#> TCGA.QQ.A8VB.01     6  0.1267      0.926 0.06  0  0 0.00  0 0.94
#> TCGA.MB.A5YA.01     1  0.1267      0.962 0.94  0  0 0.00  0 0.06
#> TCGA.WP.A9GB.01     4  0.0000      0.972 0.00  0  0 1.00  0 0.00
#> TCGA.PC.A5DO.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.HS.A5N7.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.WK.A8XZ.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.PC.A5DL.01     3  0.0000      1.000 0.00  0  1 0.00  0 0.00
#> TCGA.WK.A8XY.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.PT.A8TR.01     6  0.1267      0.942 0.00  0  0 0.06  0 0.94
#> TCGA.HB.A5W3.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.WK.A8XS.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.DX.A3U7.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.KD.A5QT.01     4  0.0000      0.972 0.00  0  0 1.00  0 0.00
#> TCGA.WK.A8XX.01     1  0.1267      0.962 0.94  0  0 0.00  0 0.06
#> TCGA.PC.A5DK.01     3  0.0000      1.000 0.00  0  1 0.00  0 0.00
#> TCGA.JV.A5VE.01     4  0.0000      0.972 0.00  0  0 1.00  0 0.00
#> TCGA.PC.A5DP.01     1  0.0000      0.977 1.00  0  0 0.00  0 0.00
#> TCGA.X2.A95T.01     2  0.0000      1.000 0.00  1  0 0.00  0 0.00
#> TCGA.HS.A5NA.01     4  0.0000      0.972 0.00  0  0 1.00  0 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.HB.A43Z.01     6  0.0000      0.979 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.IE.A4EK.01     3  0.0863      0.966 0.00 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.K1.A3PN.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A42X.02     2  0.1886      0.934 0.00 0.88 0.00 0.00 0.00 0.00 0.12
#> TCGA.3B.A9HZ.01     1  0.2422      0.861 0.82 0.00 0.00 0.00 0.00 0.00 0.18
#> TCGA.K1.A42X.01     2  0.1886      0.934 0.00 0.88 0.00 0.00 0.00 0.00 0.12
#> TCGA.DX.A7EL.01     1  0.1886      0.890 0.88 0.00 0.00 0.00 0.00 0.00 0.12
#> TCGA.3B.A9HY.01     1  0.1671      0.898 0.90 0.00 0.00 0.00 0.00 0.00 0.10
#> TCGA.3B.A9I0.01     1  0.1886      0.890 0.88 0.00 0.00 0.00 0.00 0.00 0.12
#> TCGA.K1.A42W.01     1  0.1886      0.890 0.88 0.00 0.00 0.00 0.00 0.00 0.12
#> TCGA.3B.A9I1.01     4  0.1166      0.902 0.00 0.00 0.00 0.94 0.00 0.00 0.06
#> TCGA.MO.A47P.01     5  0.0000      0.972 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.K1.A42X.11     2  0.0000      0.951 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A1KY.01     6  0.0000      0.979 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.IE.A4EH.01     4  0.3685      0.737 0.00 0.02 0.00 0.66 0.00 0.00 0.32
#> TCGA.IF.A4AK.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IE.A4EI.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HU.01     1  0.2945      0.805 0.74 0.00 0.00 0.00 0.00 0.00 0.26
#> TCGA.IF.A4AJ.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KF.A41W.11     5  0.1166      0.939 0.00 0.06 0.00 0.00 0.94 0.00 0.00
#> TCGA.K1.A3PN.02     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C5.01     1  0.2945      0.805 0.74 0.00 0.00 0.00 0.00 0.00 0.26
#> TCGA.IE.A3OV.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7EM.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IW.A3M6.01     6  0.0863      0.948 0.00 0.00 0.00 0.04 0.00 0.96 0.00
#> TCGA.DX.A48J.01     3  0.0863      0.967 0.00 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.DX.AB2J.01     6  0.1671      0.912 0.00 0.00 0.00 0.00 0.00 0.90 0.10
#> TCGA.IW.A3M4.01     2  0.1886      0.934 0.00 0.88 0.00 0.00 0.00 0.00 0.12
#> TCGA.X6.A7WD.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A7WB.01     4  0.3186      0.700 0.00 0.00 0.00 0.76 0.00 0.22 0.02
#> TCGA.3B.A9HP.01     1  0.2945      0.805 0.74 0.00 0.00 0.00 0.00 0.00 0.26
#> TCGA.3B.A9HR.01     1  0.2945      0.805 0.74 0.00 0.00 0.00 0.00 0.00 0.26
#> TCGA.X6.A7WA.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A3NJ.01     3  0.0863      0.967 0.00 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.IS.A3K8.01     2  0.0000      0.951 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A48O.01     3  0.1166      0.958 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.DX.A3UD.01     1  0.2572      0.848 0.80 0.00 0.00 0.00 0.00 0.00 0.20
#> TCGA.3B.A9HQ.01     1  0.2832      0.821 0.76 0.00 0.00 0.00 0.00 0.00 0.24
#> TCGA.FX.A48G.11     5  0.0000      0.972 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A48P.01     3  0.0504      0.969 0.00 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.A48R.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6B7.01     3  0.0504      0.971 0.00 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.A6BA.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MJ.A68H.01     1  0.2708      0.693 0.78 0.00 0.00 0.00 0.00 0.22 0.00
#> TCGA.FX.A76Y.01     2  0.0000      0.951 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BB.01     3  0.0863      0.966 0.00 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.X9.A971.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A5VD.01     1  0.2422      0.862 0.82 0.00 0.00 0.00 0.00 0.00 0.18
#> TCGA.DX.A2IZ.01     6  0.0000      0.979 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.A3UB.01     5  0.0000      0.972 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A48V.01     3  0.0863      0.966 0.00 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.IS.A3K6.01     4  0.0000      0.903 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A3UC.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6B9.01     5  0.1433      0.940 0.00 0.00 0.00 0.00 0.92 0.00 0.08
#> TCGA.DX.A3UF.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A48U.01     3  0.0863      0.966 0.00 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.DX.A3UE.01     1  0.2259      0.872 0.84 0.00 0.00 0.00 0.00 0.00 0.16
#> TCGA.QQ.A8VB.01     6  0.0000      0.979 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.MB.A5YA.01     1  0.2945      0.805 0.74 0.00 0.00 0.00 0.00 0.00 0.26
#> TCGA.WP.A9GB.01     4  0.1671      0.893 0.00 0.00 0.00 0.90 0.00 0.00 0.10
#> TCGA.PC.A5DO.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5N7.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XZ.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DL.01     3  0.0504      0.971 0.00 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.WK.A8XY.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.PT.A8TR.01     6  0.0000      0.979 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.HB.A5W3.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XS.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U7.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QT.01     4  0.1433      0.898 0.00 0.00 0.00 0.92 0.00 0.00 0.08
#> TCGA.WK.A8XX.01     1  0.0863      0.915 0.96 0.00 0.00 0.00 0.00 0.00 0.04
#> TCGA.PC.A5DK.01     3  0.0504      0.971 0.00 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.JV.A5VE.01     4  0.0504      0.899 0.00 0.00 0.00 0.98 0.00 0.00 0.02
#> TCGA.PC.A5DP.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X2.A95T.01     2  0.0000      0.951 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5NA.01     4  0.0000      0.903 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.HB.A43Z.01     6  0.0471      0.901 0.00 0.00 0.00 0.00 0.02 0.98 0.00 0.00
#> TCGA.IE.A4EK.01     3  0.0808      0.937 0.00 0.00 0.96 0.00 0.04 0.00 0.00 0.00
#> TCGA.K1.A3PN.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A42X.02     2  0.2725      0.877 0.00 0.82 0.00 0.00 0.14 0.00 0.00 0.04
#> TCGA.3B.A9HZ.01     1  0.2406      0.816 0.80 0.00 0.00 0.00 0.20 0.00 0.00 0.00
#> TCGA.K1.A42X.01     2  0.2725      0.877 0.00 0.82 0.00 0.00 0.14 0.00 0.00 0.04
#> TCGA.DX.A7EL.01     1  0.1563      0.869 0.90 0.00 0.00 0.00 0.10 0.00 0.00 0.00
#> TCGA.3B.A9HY.01     1  0.1091      0.884 0.94 0.00 0.00 0.00 0.06 0.00 0.00 0.00
#> TCGA.3B.A9I0.01     1  0.1947      0.848 0.86 0.00 0.00 0.00 0.14 0.00 0.00 0.00
#> TCGA.K1.A42W.01     1  0.1091      0.884 0.94 0.00 0.00 0.00 0.06 0.00 0.00 0.00
#> TCGA.3B.A9I1.01     4  0.1091      0.740 0.00 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.MO.A47P.01     7  0.0471      0.920 0.00 0.00 0.00 0.00 0.02 0.00 0.98 0.00
#> TCGA.K1.A42X.11     2  0.0471      0.915 0.00 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.DX.A1KY.01     6  0.0471      0.901 0.00 0.00 0.00 0.00 0.02 0.98 0.00 0.00
#> TCGA.IE.A4EH.01     8  0.3299      0.000 0.00 0.00 0.00 0.44 0.00 0.00 0.00 0.56
#> TCGA.IF.A4AK.01     1  0.0471      0.892 0.98 0.00 0.00 0.00 0.02 0.00 0.00 0.00
#> TCGA.IE.A4EI.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HU.01     1  0.3142      0.679 0.64 0.00 0.00 0.00 0.36 0.00 0.00 0.00
#> TCGA.IF.A4AJ.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KF.A41W.11     7  0.1275      0.894 0.00 0.04 0.00 0.00 0.00 0.00 0.94 0.02
#> TCGA.K1.A3PN.02     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C5.01     1  0.3907      0.598 0.58 0.00 0.04 0.00 0.38 0.00 0.00 0.00
#> TCGA.IE.A3OV.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7EM.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IW.A3M6.01     6  0.3337      0.731 0.00 0.00 0.00 0.16 0.04 0.78 0.00 0.02
#> TCGA.DX.A48J.01     3  0.1557      0.934 0.00 0.00 0.92 0.00 0.02 0.00 0.00 0.06
#> TCGA.DX.AB2J.01     6  0.3970      0.686 0.00 0.00 0.00 0.00 0.22 0.68 0.00 0.10
#> TCGA.IW.A3M4.01     2  0.2623      0.882 0.00 0.84 0.00 0.00 0.10 0.00 0.00 0.06
#> TCGA.X6.A7WD.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A7WB.01     4  0.4028      0.160 0.00 0.00 0.00 0.66 0.02 0.28 0.00 0.04
#> TCGA.3B.A9HP.01     1  0.3083      0.701 0.66 0.00 0.00 0.00 0.34 0.00 0.00 0.00
#> TCGA.3B.A9HR.01     1  0.3142      0.679 0.64 0.00 0.00 0.00 0.36 0.00 0.00 0.00
#> TCGA.X6.A7WA.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A3NJ.01     3  0.1887      0.925 0.00 0.00 0.90 0.00 0.04 0.00 0.00 0.06
#> TCGA.IS.A3K8.01     2  0.0471      0.915 0.00 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.DX.A48O.01     3  0.1765      0.882 0.00 0.00 0.88 0.00 0.12 0.00 0.00 0.00
#> TCGA.DX.A3UD.01     1  0.2938      0.739 0.70 0.00 0.00 0.00 0.30 0.00 0.00 0.00
#> TCGA.3B.A9HQ.01     1  0.2938      0.739 0.70 0.00 0.00 0.00 0.30 0.00 0.00 0.00
#> TCGA.FX.A48G.11     7  0.0000      0.921 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.A48P.01     3  0.0000      0.943 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A48R.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6B7.01     3  0.1275      0.940 0.00 0.00 0.94 0.00 0.02 0.00 0.00 0.04
#> TCGA.DX.A6BA.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MJ.A68H.01     1  0.3404      0.599 0.72 0.00 0.00 0.00 0.04 0.24 0.00 0.00
#> TCGA.FX.A76Y.01     2  0.0471      0.915 0.00 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.DX.A6BB.01     3  0.0808      0.937 0.00 0.00 0.96 0.00 0.04 0.00 0.00 0.00
#> TCGA.X9.A971.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A5VD.01     1  0.2534      0.805 0.78 0.00 0.00 0.00 0.22 0.00 0.00 0.00
#> TCGA.DX.A2IZ.01     6  0.0471      0.900 0.00 0.00 0.00 0.00 0.02 0.98 0.00 0.00
#> TCGA.DX.A3UB.01     7  0.0941      0.917 0.00 0.00 0.00 0.00 0.02 0.00 0.96 0.02
#> TCGA.DX.A48V.01     3  0.0471      0.940 0.00 0.00 0.98 0.00 0.02 0.00 0.00 0.00
#> TCGA.IS.A3K6.01     4  0.0471      0.751 0.00 0.00 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.A3UC.01     1  0.0471      0.897 0.98 0.00 0.00 0.00 0.02 0.00 0.00 0.00
#> TCGA.DX.A6B9.01     7  0.3434      0.792 0.00 0.00 0.00 0.00 0.10 0.00 0.76 0.14
#> TCGA.DX.A3UF.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A48U.01     3  0.0808      0.937 0.00 0.00 0.96 0.00 0.04 0.00 0.00 0.00
#> TCGA.DX.A3UE.01     1  0.2534      0.802 0.78 0.00 0.00 0.00 0.22 0.00 0.00 0.00
#> TCGA.QQ.A8VB.01     6  0.0000      0.903 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.MB.A5YA.01     1  0.3083      0.700 0.66 0.00 0.00 0.00 0.34 0.00 0.00 0.00
#> TCGA.WP.A9GB.01     4  0.2569      0.595 0.00 0.00 0.00 0.82 0.02 0.00 0.00 0.16
#> TCGA.PC.A5DO.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5N7.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XZ.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DL.01     3  0.1557      0.934 0.00 0.00 0.92 0.00 0.02 0.00 0.00 0.06
#> TCGA.WK.A8XY.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.PT.A8TR.01     6  0.0471      0.901 0.00 0.00 0.00 0.00 0.02 0.98 0.00 0.00
#> TCGA.HB.A5W3.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XS.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U7.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QT.01     4  0.1091      0.740 0.00 0.00 0.00 0.94 0.00 0.00 0.00 0.06
#> TCGA.WK.A8XX.01     1  0.1091      0.885 0.94 0.00 0.00 0.00 0.06 0.00 0.00 0.00
#> TCGA.PC.A5DK.01     3  0.1275      0.938 0.00 0.00 0.94 0.00 0.02 0.00 0.00 0.04
#> TCGA.JV.A5VE.01     4  0.0000      0.759 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DP.01     1  0.0000      0.902 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X2.A95T.01     2  0.0000      0.916 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5NA.01     4  0.0808      0.748 0.00 0.00 0.00 0.96 0.00 0.00 0.00 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-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 , Node0112 , Node0211-leaf , Node0212-leaf , Node0213-leaf , Node0221-leaf , Node0222-leaf , Node0231-leaf , Node0232-leaf , Node0233-leaf , Node0311-leaf , Node0312-leaf , Node0313-leaf , Node0321-leaf , Node0322-leaf , Node0323-leaf , Node0341-leaf , Node0342-leaf , Node0421-leaf , Node0422 , Node0423 , Node0424-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 38 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-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           1.000       1.000         0.4444 0.556   0.556
#> 3 3 0.521           0.529       0.736         0.4210 0.863   0.762
#> 4 4 0.562           0.544       0.739         0.1547 0.737   0.462
#> 5 5 0.608           0.509       0.743         0.0519 0.848   0.516
#> 6 6 0.737           0.659       0.779         0.0592 0.885   0.540
#> 7 7 0.797           0.692       0.826         0.0396 0.962   0.786
#> 8 8 0.835           0.723       0.807         0.0272 0.916   0.524

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.K1.A3PN.01     1       0          1  1  0
#> TCGA.3B.A9HZ.01     1       0          1  1  0
#> TCGA.DX.A7EL.01     1       0          1  1  0
#> TCGA.3B.A9HY.01     1       0          1  1  0
#> TCGA.3B.A9I0.01     2       0          1  0  1
#> TCGA.K1.A42W.01     1       0          1  1  0
#> TCGA.IF.A4AK.01     1       0          1  1  0
#> TCGA.IE.A4EI.01     1       0          1  1  0
#> TCGA.3B.A9HU.01     2       0          1  0  1
#> TCGA.IF.A4AJ.01     1       0          1  1  0
#> TCGA.K1.A3PN.02     1       0          1  1  0
#> TCGA.X6.A8C5.01     2       0          1  0  1
#> TCGA.IE.A3OV.01     1       0          1  1  0
#> TCGA.DX.A7EM.01     1       0          1  1  0
#> TCGA.X6.A7WD.01     2       0          1  0  1
#> TCGA.3B.A9HP.01     1       0          1  1  0
#> TCGA.3B.A9HR.01     2       0          1  0  1
#> TCGA.X6.A7WA.01     1       0          1  1  0
#> TCGA.DX.A3UD.01     2       0          1  0  1
#> TCGA.3B.A9HQ.01     2       0          1  0  1
#> TCGA.DX.A48R.01     2       0          1  0  1
#> TCGA.DX.A6BA.01     1       0          1  1  0
#> TCGA.MJ.A68H.01     1       0          1  1  0
#> TCGA.X9.A971.01     2       0          1  0  1
#> TCGA.QQ.A5VD.01     1       0          1  1  0
#> TCGA.DX.A3UC.01     1       0          1  1  0
#> TCGA.DX.A3UF.01     1       0          1  1  0
#> TCGA.DX.A3UE.01     2       0          1  0  1
#> TCGA.MB.A5YA.01     2       0          1  0  1
#> TCGA.PC.A5DO.01     1       0          1  1  0
#> TCGA.HS.A5N7.01     1       0          1  1  0
#> TCGA.WK.A8XZ.01     1       0          1  1  0
#> TCGA.WK.A8XY.01     1       0          1  1  0
#> TCGA.HB.A5W3.01     1       0          1  1  0
#> TCGA.WK.A8XS.01     1       0          1  1  0
#> TCGA.DX.A3U7.01     2       0          1  0  1
#> TCGA.WK.A8XX.01     1       0          1  1  0
#> TCGA.PC.A5DP.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.K1.A3PN.01     1  0.1529      0.695 0.96 0.04 0.00
#> TCGA.3B.A9HZ.01     1  0.6302     -0.131 0.52 0.00 0.48
#> TCGA.DX.A7EL.01     1  0.5016      0.731 0.76 0.24 0.00
#> TCGA.3B.A9HY.01     3  0.6126      0.312 0.40 0.00 0.60
#> TCGA.3B.A9I0.01     2  0.6126      0.955 0.00 0.60 0.40
#> TCGA.K1.A42W.01     1  0.5016      0.731 0.76 0.24 0.00
#> TCGA.IF.A4AK.01     1  0.6045      0.707 0.62 0.38 0.00
#> TCGA.IE.A4EI.01     1  0.4796      0.731 0.78 0.22 0.00
#> TCGA.3B.A9HU.01     3  0.0000      0.487 0.00 0.00 1.00
#> TCGA.IF.A4AJ.01     1  0.0000      0.687 1.00 0.00 0.00
#> TCGA.K1.A3PN.02     1  0.1529      0.695 0.96 0.04 0.00
#> TCGA.X6.A8C5.01     3  0.0000      0.487 0.00 0.00 1.00
#> TCGA.IE.A3OV.01     1  0.6302     -0.131 0.52 0.00 0.48
#> TCGA.DX.A7EM.01     1  0.0000      0.687 1.00 0.00 0.00
#> TCGA.X6.A7WD.01     3  0.6309     -0.809 0.00 0.50 0.50
#> TCGA.3B.A9HP.01     1  0.5016      0.731 0.76 0.24 0.00
#> TCGA.3B.A9HR.01     2  0.6126      0.955 0.00 0.60 0.40
#> TCGA.X6.A7WA.01     1  0.0000      0.687 1.00 0.00 0.00
#> TCGA.DX.A3UD.01     2  0.6126      0.955 0.00 0.60 0.40
#> TCGA.3B.A9HQ.01     3  0.0000      0.487 0.00 0.00 1.00
#> TCGA.DX.A48R.01     3  0.0892      0.482 0.00 0.02 0.98
#> TCGA.DX.A6BA.01     1  0.6045      0.707 0.62 0.38 0.00
#> TCGA.MJ.A68H.01     1  0.6045      0.707 0.62 0.38 0.00
#> TCGA.X9.A971.01     2  0.6309      0.738 0.00 0.50 0.50
#> TCGA.QQ.A5VD.01     1  0.6302     -0.131 0.52 0.00 0.48
#> TCGA.DX.A3UC.01     1  0.6045      0.707 0.62 0.38 0.00
#> TCGA.DX.A3UF.01     1  0.6045      0.707 0.62 0.38 0.00
#> TCGA.DX.A3UE.01     2  0.6126      0.955 0.00 0.60 0.40
#> TCGA.MB.A5YA.01     2  0.6126      0.955 0.00 0.60 0.40
#> TCGA.PC.A5DO.01     1  0.6045      0.707 0.62 0.38 0.00
#> TCGA.HS.A5N7.01     1  0.0000      0.687 1.00 0.00 0.00
#> TCGA.WK.A8XZ.01     1  0.0000      0.687 1.00 0.00 0.00
#> TCGA.WK.A8XY.01     1  0.6045      0.707 0.62 0.38 0.00
#> TCGA.HB.A5W3.01     1  0.5835      0.717 0.66 0.34 0.00
#> TCGA.WK.A8XS.01     1  0.3686      0.721 0.86 0.14 0.00
#> TCGA.DX.A3U7.01     3  0.6309     -0.809 0.00 0.50 0.50
#> TCGA.WK.A8XX.01     1  0.6302     -0.131 0.52 0.00 0.48
#> TCGA.PC.A5DP.01     3  0.6849      0.345 0.38 0.02 0.60

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2   p3   p4
#> TCGA.K1.A3PN.01     1   0.750      0.442 0.50 0.00 0.24 0.26
#> TCGA.3B.A9HZ.01     1   0.413      0.267 0.74 0.00 0.26 0.00
#> TCGA.DX.A7EL.01     4   0.495      0.273 0.44 0.00 0.00 0.56
#> TCGA.3B.A9HY.01     1   0.491     -0.130 0.58 0.00 0.42 0.00
#> TCGA.3B.A9I0.01     2   0.000      0.851 0.00 1.00 0.00 0.00
#> TCGA.K1.A42W.01     4   0.500      0.192 0.50 0.00 0.00 0.50
#> TCGA.IF.A4AK.01     4   0.000      0.777 0.00 0.00 0.00 1.00
#> TCGA.IE.A4EI.01     1   0.499     -0.231 0.52 0.00 0.00 0.48
#> TCGA.3B.A9HU.01     3   0.681      0.729 0.12 0.32 0.56 0.00
#> TCGA.IF.A4AJ.01     1   0.666      0.531 0.62 0.00 0.16 0.22
#> TCGA.K1.A3PN.02     1   0.750      0.442 0.50 0.00 0.24 0.26
#> TCGA.X6.A8C5.01     3   0.681      0.729 0.12 0.32 0.56 0.00
#> TCGA.IE.A3OV.01     1   0.292      0.384 0.86 0.00 0.14 0.00
#> TCGA.DX.A7EM.01     1   0.666      0.531 0.62 0.00 0.16 0.22
#> TCGA.X6.A7WD.01     2   0.428      0.722 0.00 0.72 0.28 0.00
#> TCGA.3B.A9HP.01     4   0.500      0.192 0.50 0.00 0.00 0.50
#> TCGA.3B.A9HR.01     2   0.000      0.851 0.00 1.00 0.00 0.00
#> TCGA.X6.A7WA.01     1   0.361      0.512 0.84 0.00 0.02 0.14
#> TCGA.DX.A3UD.01     2   0.000      0.851 0.00 1.00 0.00 0.00
#> TCGA.3B.A9HQ.01     3   0.681      0.729 0.12 0.32 0.56 0.00
#> TCGA.DX.A48R.01     3   0.380      0.569 0.00 0.22 0.78 0.00
#> TCGA.DX.A6BA.01     4   0.000      0.777 0.00 0.00 0.00 1.00
#> TCGA.MJ.A68H.01     4   0.000      0.777 0.00 0.00 0.00 1.00
#> TCGA.X9.A971.01     2   0.428      0.722 0.00 0.72 0.28 0.00
#> TCGA.QQ.A5VD.01     1   0.413      0.267 0.74 0.00 0.26 0.00
#> TCGA.DX.A3UC.01     4   0.000      0.777 0.00 0.00 0.00 1.00
#> TCGA.DX.A3UF.01     4   0.000      0.777 0.00 0.00 0.00 1.00
#> TCGA.DX.A3UE.01     2   0.000      0.851 0.00 1.00 0.00 0.00
#> TCGA.MB.A5YA.01     2   0.000      0.851 0.00 1.00 0.00 0.00
#> TCGA.PC.A5DO.01     4   0.000      0.777 0.00 0.00 0.00 1.00
#> TCGA.HS.A5N7.01     1   0.632      0.546 0.66 0.00 0.16 0.18
#> TCGA.WK.A8XZ.01     1   0.680      0.516 0.60 0.00 0.16 0.24
#> TCGA.WK.A8XY.01     4   0.000      0.777 0.00 0.00 0.00 1.00
#> TCGA.HB.A5W3.01     4   0.398      0.576 0.24 0.00 0.00 0.76
#> TCGA.WK.A8XS.01     1   0.731      0.361 0.48 0.00 0.16 0.36
#> TCGA.DX.A3U7.01     2   0.428      0.722 0.00 0.72 0.28 0.00
#> TCGA.WK.A8XX.01     1   0.413      0.267 0.74 0.00 0.26 0.00
#> TCGA.PC.A5DP.01     3   0.452      0.124 0.32 0.00 0.68 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.K1.A3PN.01     5  0.4890     0.5096 0.14 0.00 0.00 0.14 0.72
#> TCGA.3B.A9HZ.01     1  0.0000     0.4692 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7EL.01     4  0.6064    -0.2350 0.42 0.00 0.00 0.46 0.12
#> TCGA.3B.A9HY.01     1  0.1043     0.4320 0.96 0.00 0.04 0.00 0.00
#> TCGA.3B.A9I0.01     2  0.0000     0.9913 0.00 1.00 0.00 0.00 0.00
#> TCGA.K1.A42W.01     1  0.5979     0.2863 0.52 0.00 0.00 0.36 0.12
#> TCGA.IF.A4AK.01     4  0.0000     0.8596 0.00 0.00 0.00 1.00 0.00
#> TCGA.IE.A4EI.01     1  0.6047     0.2292 0.48 0.00 0.00 0.40 0.12
#> TCGA.3B.A9HU.01     3  0.4644     0.5125 0.28 0.04 0.68 0.00 0.00
#> TCGA.IF.A4AJ.01     1  0.6459    -0.0648 0.42 0.00 0.00 0.18 0.40
#> TCGA.K1.A3PN.02     5  0.4890     0.5096 0.14 0.00 0.00 0.14 0.72
#> TCGA.X6.A8C5.01     3  0.5130     0.5459 0.22 0.10 0.68 0.00 0.00
#> TCGA.IE.A3OV.01     1  0.1043     0.4652 0.96 0.00 0.00 0.00 0.04
#> TCGA.DX.A7EM.01     1  0.6459    -0.0648 0.42 0.00 0.00 0.18 0.40
#> TCGA.X6.A7WD.01     3  0.5904     0.5636 0.00 0.20 0.60 0.00 0.20
#> TCGA.3B.A9HP.01     1  0.5979     0.2863 0.52 0.00 0.00 0.36 0.12
#> TCGA.3B.A9HR.01     2  0.0609     0.9870 0.00 0.98 0.00 0.00 0.02
#> TCGA.X6.A7WA.01     1  0.4588     0.3639 0.72 0.00 0.00 0.06 0.22
#> TCGA.DX.A3UD.01     2  0.0609     0.9870 0.00 0.98 0.00 0.00 0.02
#> TCGA.3B.A9HQ.01     3  0.5130     0.5459 0.22 0.10 0.68 0.00 0.00
#> TCGA.DX.A48R.01     3  0.3561     0.5874 0.00 0.00 0.74 0.00 0.26
#> TCGA.DX.A6BA.01     4  0.0000     0.8596 0.00 0.00 0.00 1.00 0.00
#> TCGA.MJ.A68H.01     4  0.0000     0.8596 0.00 0.00 0.00 1.00 0.00
#> TCGA.X9.A971.01     3  0.5904     0.5636 0.00 0.20 0.60 0.00 0.20
#> TCGA.QQ.A5VD.01     1  0.0000     0.4692 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3UC.01     4  0.0000     0.8596 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.A3UF.01     4  0.0000     0.8596 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.A3UE.01     2  0.0000     0.9913 0.00 1.00 0.00 0.00 0.00
#> TCGA.MB.A5YA.01     2  0.0000     0.9913 0.00 1.00 0.00 0.00 0.00
#> TCGA.PC.A5DO.01     4  0.0000     0.8596 0.00 0.00 0.00 1.00 0.00
#> TCGA.HS.A5N7.01     1  0.6350    -0.1123 0.42 0.00 0.00 0.16 0.42
#> TCGA.WK.A8XZ.01     1  0.6459    -0.0648 0.42 0.00 0.00 0.18 0.40
#> TCGA.WK.A8XY.01     4  0.0000     0.8596 0.00 0.00 0.00 1.00 0.00
#> TCGA.HB.A5W3.01     4  0.4437     0.5298 0.14 0.00 0.00 0.76 0.10
#> TCGA.WK.A8XS.01     5  0.6619     0.1058 0.22 0.00 0.00 0.36 0.42
#> TCGA.DX.A3U7.01     3  0.5904     0.5636 0.00 0.20 0.60 0.00 0.20
#> TCGA.WK.A8XX.01     1  0.0000     0.4692 1.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DP.01     5  0.6665    -0.0905 0.26 0.00 0.30 0.00 0.44

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.K1.A3PN.01     5   0.440      0.392 0.04 0.18 0.04 0.00 0.74 0.00
#> TCGA.3B.A9HZ.01     1   0.341      0.474 0.70 0.00 0.00 0.00 0.00 0.30
#> TCGA.DX.A7EL.01     1   0.602      0.344 0.56 0.04 0.00 0.26 0.14 0.00
#> TCGA.3B.A9HY.01     1   0.392      0.445 0.68 0.00 0.00 0.00 0.02 0.30
#> TCGA.3B.A9I0.01     2   0.308      1.000 0.00 0.76 0.24 0.00 0.00 0.00
#> TCGA.K1.A42W.01     1   0.643      0.401 0.56 0.06 0.02 0.26 0.10 0.00
#> TCGA.IF.A4AK.01     4   0.000      0.929 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.IE.A4EI.01     1   0.676      0.332 0.54 0.06 0.02 0.20 0.18 0.00
#> TCGA.3B.A9HU.01     6   0.000      1.000 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.IF.A4AJ.01     5   0.428      0.573 0.42 0.00 0.00 0.02 0.56 0.00
#> TCGA.K1.A3PN.02     5   0.440      0.392 0.04 0.18 0.04 0.00 0.74 0.00
#> TCGA.X6.A8C5.01     6   0.000      1.000 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.IE.A3OV.01     1   0.433      0.463 0.72 0.00 0.00 0.00 0.10 0.18
#> TCGA.DX.A7EM.01     5   0.428      0.573 0.42 0.00 0.00 0.02 0.56 0.00
#> TCGA.X6.A7WD.01     3   0.127      0.841 0.00 0.00 0.94 0.00 0.00 0.06
#> TCGA.3B.A9HP.01     1   0.643      0.401 0.56 0.06 0.02 0.26 0.10 0.00
#> TCGA.3B.A9HR.01     2   0.308      1.000 0.00 0.76 0.24 0.00 0.00 0.00
#> TCGA.X6.A7WA.01     1   0.420     -0.262 0.60 0.00 0.00 0.02 0.38 0.00
#> TCGA.DX.A3UD.01     2   0.308      1.000 0.00 0.76 0.24 0.00 0.00 0.00
#> TCGA.3B.A9HQ.01     6   0.000      1.000 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.A48R.01     3   0.590      0.392 0.10 0.00 0.54 0.00 0.04 0.32
#> TCGA.DX.A6BA.01     4   0.000      0.929 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.MJ.A68H.01     4   0.000      0.929 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.X9.A971.01     3   0.127      0.841 0.00 0.00 0.94 0.00 0.00 0.06
#> TCGA.QQ.A5VD.01     1   0.341      0.474 0.70 0.00 0.00 0.00 0.00 0.30
#> TCGA.DX.A3UC.01     4   0.000      0.929 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A3UF.01     4   0.000      0.929 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A3UE.01     2   0.308      1.000 0.00 0.76 0.24 0.00 0.00 0.00
#> TCGA.MB.A5YA.01     2   0.308      1.000 0.00 0.76 0.24 0.00 0.00 0.00
#> TCGA.PC.A5DO.01     4   0.000      0.929 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.HS.A5N7.01     5   0.425      0.586 0.40 0.00 0.00 0.02 0.58 0.00
#> TCGA.WK.A8XZ.01     5   0.458      0.566 0.40 0.00 0.00 0.04 0.56 0.00
#> TCGA.WK.A8XY.01     4   0.000      0.929 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.HB.A5W3.01     4   0.647      0.268 0.20 0.06 0.02 0.58 0.14 0.00
#> TCGA.WK.A8XS.01     5   0.494      0.565 0.34 0.00 0.00 0.08 0.58 0.00
#> TCGA.DX.A3U7.01     3   0.127      0.841 0.00 0.00 0.94 0.00 0.00 0.06
#> TCGA.WK.A8XX.01     1   0.341      0.474 0.70 0.00 0.00 0.00 0.00 0.30
#> TCGA.PC.A5DP.01     5   0.755      0.167 0.24 0.04 0.16 0.00 0.46 0.10

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.K1.A3PN.01     7  0.3221      1.000 0.00 0.00 0.00 0.00 0.32 0.00 0.68
#> TCGA.3B.A9HZ.01     1  0.4577      0.350 0.58 0.00 0.00 0.00 0.04 0.36 0.02
#> TCGA.DX.A7EL.01     1  0.5332      0.216 0.44 0.00 0.00 0.18 0.38 0.00 0.00
#> TCGA.3B.A9HY.01     1  0.5223      0.268 0.52 0.00 0.00 0.00 0.02 0.36 0.10
#> TCGA.3B.A9I0.01     2  0.0000      0.971 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A42W.01     1  0.5324      0.394 0.58 0.00 0.02 0.18 0.22 0.00 0.00
#> TCGA.IF.A4AK.01     4  0.0000      0.878 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.IE.A4EI.01     1  0.5438      0.296 0.52 0.00 0.02 0.14 0.32 0.00 0.00
#> TCGA.3B.A9HU.01     6  0.0000      1.000 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.IF.A4AJ.01     5  0.0000      0.768 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.K1.A3PN.02     7  0.3221      1.000 0.00 0.00 0.00 0.00 0.32 0.00 0.68
#> TCGA.X6.A8C5.01     6  0.0000      1.000 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.IE.A3OV.01     1  0.5776      0.360 0.56 0.00 0.00 0.00 0.18 0.20 0.06
#> TCGA.DX.A7EM.01     5  0.0000      0.768 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.X6.A7WD.01     3  0.1006      0.900 0.00 0.02 0.96 0.00 0.00 0.02 0.00
#> TCGA.3B.A9HP.01     1  0.5324      0.394 0.58 0.00 0.02 0.18 0.22 0.00 0.00
#> TCGA.3B.A9HR.01     2  0.1166      0.961 0.00 0.94 0.00 0.00 0.00 0.00 0.06
#> TCGA.X6.A7WA.01     5  0.2945      0.460 0.26 0.00 0.00 0.00 0.74 0.00 0.00
#> TCGA.DX.A3UD.01     2  0.1166      0.961 0.00 0.94 0.00 0.00 0.00 0.00 0.06
#> TCGA.3B.A9HQ.01     6  0.0000      1.000 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.A48R.01     3  0.4671      0.670 0.16 0.00 0.68 0.00 0.00 0.02 0.14
#> TCGA.DX.A6BA.01     4  0.0504      0.888 0.00 0.00 0.00 0.98 0.02 0.00 0.00
#> TCGA.MJ.A68H.01     4  0.0504      0.888 0.00 0.00 0.00 0.98 0.02 0.00 0.00
#> TCGA.X9.A971.01     3  0.1006      0.900 0.00 0.02 0.96 0.00 0.00 0.02 0.00
#> TCGA.QQ.A5VD.01     1  0.5516      0.296 0.50 0.00 0.00 0.00 0.04 0.36 0.10
#> TCGA.DX.A3UC.01     4  0.0000      0.878 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A3UF.01     4  0.0504      0.888 0.00 0.00 0.00 0.98 0.02 0.00 0.00
#> TCGA.DX.A3UE.01     2  0.0504      0.964 0.00 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.MB.A5YA.01     2  0.0000      0.971 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DO.01     4  0.0504      0.888 0.00 0.00 0.00 0.98 0.02 0.00 0.00
#> TCGA.HS.A5N7.01     5  0.0000      0.768 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.WK.A8XZ.01     5  0.0000      0.768 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.WK.A8XY.01     4  0.0504      0.888 0.00 0.00 0.00 0.98 0.02 0.00 0.00
#> TCGA.HB.A5W3.01     4  0.5942     -0.168 0.36 0.00 0.02 0.38 0.24 0.00 0.00
#> TCGA.WK.A8XS.01     5  0.0504      0.739 0.00 0.00 0.00 0.02 0.98 0.00 0.00
#> TCGA.DX.A3U7.01     3  0.1006      0.900 0.00 0.02 0.96 0.00 0.00 0.02 0.00
#> TCGA.WK.A8XX.01     1  0.4577      0.350 0.58 0.00 0.00 0.00 0.04 0.36 0.02
#> TCGA.PC.A5DP.01     5  0.6752     -0.133 0.26 0.00 0.20 0.00 0.40 0.00 0.14

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.K1.A3PN.01     7  0.0000     1.0000 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.3B.A9HZ.01     1  0.1765     0.8894 0.88 0.00 0.00 0.00 0.00 0.00 0.00 0.12
#> TCGA.DX.A7EL.01     8  0.3131     0.5268 0.06 0.00 0.00 0.02 0.04 0.04 0.00 0.84
#> TCGA.3B.A9HY.01     1  0.1341     0.8491 0.92 0.00 0.00 0.00 0.08 0.00 0.00 0.00
#> TCGA.3B.A9I0.01     2  0.0000     0.9800 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A42W.01     8  0.2856     0.5420 0.20 0.00 0.00 0.02 0.00 0.00 0.00 0.78
#> TCGA.IF.A4AK.01     4  0.0000     0.9870 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IE.A4EI.01     8  0.2859     0.5896 0.14 0.00 0.00 0.02 0.00 0.00 0.02 0.82
#> TCGA.3B.A9HU.01     6  0.2404     1.0000 0.14 0.00 0.02 0.00 0.00 0.84 0.00 0.00
#> TCGA.IF.A4AJ.01     5  0.6658     0.4957 0.02 0.00 0.00 0.00 0.32 0.10 0.26 0.30
#> TCGA.K1.A3PN.02     7  0.0000     1.0000 0.00 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.X6.A8C5.01     6  0.2404     1.0000 0.14 0.00 0.02 0.00 0.00 0.84 0.00 0.00
#> TCGA.IE.A3OV.01     1  0.2132     0.8781 0.88 0.00 0.00 0.00 0.04 0.00 0.00 0.08
#> TCGA.DX.A7EM.01     5  0.6658     0.4957 0.02 0.00 0.00 0.00 0.32 0.10 0.26 0.30
#> TCGA.X6.A7WD.01     3  0.0000     0.9777 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HP.01     8  0.2534     0.5226 0.22 0.00 0.00 0.00 0.00 0.00 0.00 0.78
#> TCGA.3B.A9HR.01     2  0.0471     0.9782 0.00 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.X6.A7WA.01     8  0.7431    -0.1779 0.22 0.00 0.00 0.00 0.26 0.10 0.14 0.28
#> TCGA.DX.A3UD.01     2  0.0471     0.9782 0.00 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.3B.A9HQ.01     6  0.2404     1.0000 0.14 0.00 0.02 0.00 0.00 0.84 0.00 0.00
#> TCGA.DX.A48R.01     5  0.3971    -0.4877 0.00 0.00 0.42 0.00 0.54 0.04 0.00 0.00
#> TCGA.DX.A6BA.01     4  0.0000     0.9870 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.MJ.A68H.01     4  0.0000     0.9870 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.X9.A971.01     3  0.0000     0.9777 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A5VD.01     1  0.1607     0.8862 0.92 0.00 0.00 0.00 0.04 0.00 0.00 0.04
#> TCGA.DX.A3UC.01     4  0.1557     0.9184 0.00 0.00 0.00 0.92 0.02 0.00 0.00 0.06
#> TCGA.DX.A3UF.01     4  0.0000     0.9870 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3UE.01     2  0.0808     0.9679 0.00 0.96 0.00 0.00 0.04 0.00 0.00 0.00
#> TCGA.MB.A5YA.01     2  0.0471     0.9766 0.00 0.98 0.00 0.00 0.02 0.00 0.00 0.00
#> TCGA.PC.A5DO.01     4  0.0000     0.9870 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5N7.01     5  0.6658     0.4957 0.02 0.00 0.00 0.00 0.32 0.10 0.26 0.30
#> TCGA.WK.A8XZ.01     5  0.6298     0.4712 0.00 0.00 0.00 0.00 0.32 0.10 0.26 0.32
#> TCGA.WK.A8XY.01     4  0.0000     0.9870 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.HB.A5W3.01     8  0.2114     0.5229 0.00 0.00 0.00 0.16 0.00 0.00 0.00 0.84
#> TCGA.WK.A8XS.01     8  0.6237    -0.5479 0.00 0.00 0.00 0.00 0.28 0.10 0.24 0.38
#> TCGA.DX.A3U7.01     3  0.1275     0.9548 0.04 0.00 0.94 0.00 0.00 0.02 0.00 0.00
#> TCGA.WK.A8XX.01     1  0.1765     0.8894 0.88 0.00 0.00 0.00 0.00 0.00 0.00 0.12
#> TCGA.PC.A5DP.01     5  0.3185    -0.0069 0.04 0.00 0.06 0.00 0.82 0.00 0.08 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-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.


Node0111

Parent node: Node011. Child nodes: Node01111-leaf , Node01112-leaf , Node01113-leaf , Node01114-leaf , Node01121-leaf , Node01122-leaf , Node01123-leaf , Node04221-leaf , Node04222-leaf , Node04223-leaf , Node04224-leaf , Node04231-leaf , Node04232-leaf .

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

res = res_rh["0111"]

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 26 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 4.
#> 
#> 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-0111-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-0111-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.403           0.746       0.870         0.4659 0.508   0.508
#> 3 3 0.583           0.769       0.876         0.3051 0.591   0.379
#> 4 4 1.000           0.963       0.974         0.2245 0.803   0.536
#> 5 5 0.860           0.917       0.901         0.0506 0.972   0.890
#> 6 6 0.822           0.690       0.781         0.0415 0.929   0.697
#> 7 7 0.826           0.719       0.847         0.0324 0.914   0.588
#> 8 8 0.851           0.751       0.832         0.0346 0.963   0.769

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

suggest_best_k(res)
#> [1] 4

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.K1.A3PN.01     2   0.795      0.735 0.24 0.76
#> TCGA.3B.A9HZ.01     1   0.855      0.660 0.72 0.28
#> TCGA.DX.A7EL.01     1   0.000      0.805 1.00 0.00
#> TCGA.3B.A9HY.01     2   0.242      0.849 0.04 0.96
#> TCGA.K1.A42W.01     1   0.943      0.577 0.64 0.36
#> TCGA.IF.A4AK.01     2   0.402      0.828 0.08 0.92
#> TCGA.IE.A4EI.01     1   0.925      0.601 0.66 0.34
#> TCGA.IF.A4AJ.01     1   0.855      0.660 0.72 0.28
#> TCGA.K1.A3PN.02     2   0.795      0.735 0.24 0.76
#> TCGA.IE.A3OV.01     2   0.722      0.760 0.20 0.80
#> TCGA.DX.A7EM.01     1   0.981      0.362 0.58 0.42
#> TCGA.3B.A9HP.01     1   0.943      0.577 0.64 0.36
#> TCGA.X6.A7WA.01     1   0.827      0.671 0.74 0.26
#> TCGA.DX.A6BA.01     1   0.000      0.805 1.00 0.00
#> TCGA.MJ.A68H.01     1   0.000      0.805 1.00 0.00
#> TCGA.QQ.A5VD.01     2   0.242      0.849 0.04 0.96
#> TCGA.DX.A3UC.01     2   0.000      0.845 0.00 1.00
#> TCGA.DX.A3UF.01     1   0.000      0.805 1.00 0.00
#> TCGA.PC.A5DO.01     1   0.000      0.805 1.00 0.00
#> TCGA.HS.A5N7.01     2   0.000      0.845 0.00 1.00
#> TCGA.WK.A8XZ.01     1   0.000      0.805 1.00 0.00
#> TCGA.WK.A8XY.01     1   0.000      0.805 1.00 0.00
#> TCGA.HB.A5W3.01     1   0.000      0.805 1.00 0.00
#> TCGA.WK.A8XS.01     2   0.000      0.845 0.00 1.00
#> TCGA.WK.A8XX.01     1   0.000      0.805 1.00 0.00
#> TCGA.PC.A5DP.01     2   0.795      0.735 0.24 0.76

show/hide code output

cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#>                 class entropy silhouette   p1   p2   p3
#> TCGA.K1.A3PN.01     3   0.254     1.0000 0.00 0.08 0.92
#> TCGA.3B.A9HZ.01     2   0.480     0.7547 0.22 0.78 0.00
#> TCGA.DX.A7EL.01     1   0.628    -0.0966 0.54 0.46 0.00
#> TCGA.3B.A9HY.01     2   0.254     0.7407 0.00 0.92 0.08
#> TCGA.K1.A42W.01     2   0.480     0.7547 0.22 0.78 0.00
#> TCGA.IF.A4AK.01     2   0.254     0.7407 0.00 0.92 0.08
#> TCGA.IE.A4EI.01     2   0.480     0.7547 0.22 0.78 0.00
#> TCGA.IF.A4AJ.01     2   0.480     0.7547 0.22 0.78 0.00
#> TCGA.K1.A3PN.02     3   0.254     1.0000 0.00 0.08 0.92
#> TCGA.IE.A3OV.01     2   0.207     0.7411 0.00 0.94 0.06
#> TCGA.DX.A7EM.01     2   0.480     0.7547 0.22 0.78 0.00
#> TCGA.3B.A9HP.01     2   0.254     0.7700 0.08 0.92 0.00
#> TCGA.X6.A7WA.01     2   0.540     0.6772 0.28 0.72 0.00
#> TCGA.DX.A6BA.01     1   0.000     0.9240 1.00 0.00 0.00
#> TCGA.MJ.A68H.01     1   0.000     0.9240 1.00 0.00 0.00
#> TCGA.QQ.A5VD.01     2   0.254     0.7407 0.00 0.92 0.08
#> TCGA.DX.A3UC.01     2   0.604     0.3856 0.00 0.62 0.38
#> TCGA.DX.A3UF.01     1   0.000     0.9240 1.00 0.00 0.00
#> TCGA.PC.A5DO.01     1   0.000     0.9240 1.00 0.00 0.00
#> TCGA.HS.A5N7.01     2   0.604     0.3856 0.00 0.62 0.38
#> TCGA.WK.A8XZ.01     1   0.000     0.9240 1.00 0.00 0.00
#> TCGA.WK.A8XY.01     1   0.000     0.9240 1.00 0.00 0.00
#> TCGA.HB.A5W3.01     1   0.000     0.9240 1.00 0.00 0.00
#> TCGA.WK.A8XS.01     2   0.207     0.7449 0.00 0.94 0.06
#> TCGA.WK.A8XX.01     1   0.000     0.9240 1.00 0.00 0.00
#> TCGA.PC.A5DP.01     3   0.254     1.0000 0.00 0.08 0.92

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2   p3   p4
#> TCGA.K1.A3PN.01     3  0.0000      1.000 0.00 0.00 1.00 0.00
#> TCGA.3B.A9HZ.01     2  0.0707      0.994 0.02 0.98 0.00 0.00
#> TCGA.DX.A7EL.01     2  0.0707      0.994 0.02 0.98 0.00 0.00
#> TCGA.3B.A9HY.01     4  0.0000      0.891 0.00 0.00 0.00 1.00
#> TCGA.K1.A42W.01     2  0.0707      0.994 0.02 0.98 0.00 0.00
#> TCGA.IF.A4AK.01     4  0.0000      0.891 0.00 0.00 0.00 1.00
#> TCGA.IE.A4EI.01     2  0.0707      0.994 0.02 0.98 0.00 0.00
#> TCGA.IF.A4AJ.01     2  0.0707      0.994 0.02 0.98 0.00 0.00
#> TCGA.K1.A3PN.02     3  0.0000      1.000 0.00 0.00 1.00 0.00
#> TCGA.IE.A3OV.01     2  0.0000      0.977 0.00 1.00 0.00 0.00
#> TCGA.DX.A7EM.01     2  0.0000      0.977 0.00 1.00 0.00 0.00
#> TCGA.3B.A9HP.01     2  0.0707      0.994 0.02 0.98 0.00 0.00
#> TCGA.X6.A7WA.01     2  0.0707      0.994 0.02 0.98 0.00 0.00
#> TCGA.DX.A6BA.01     1  0.0000      1.000 1.00 0.00 0.00 0.00
#> TCGA.MJ.A68H.01     1  0.0000      1.000 1.00 0.00 0.00 0.00
#> TCGA.QQ.A5VD.01     4  0.0000      0.891 0.00 0.00 0.00 1.00
#> TCGA.DX.A3UC.01     4  0.4949      0.794 0.00 0.06 0.18 0.76
#> TCGA.DX.A3UF.01     1  0.0000      1.000 1.00 0.00 0.00 0.00
#> TCGA.PC.A5DO.01     1  0.0000      1.000 1.00 0.00 0.00 0.00
#> TCGA.HS.A5N7.01     4  0.4949      0.794 0.00 0.06 0.18 0.76
#> TCGA.WK.A8XZ.01     1  0.0000      1.000 1.00 0.00 0.00 0.00
#> TCGA.WK.A8XY.01     1  0.0000      1.000 1.00 0.00 0.00 0.00
#> TCGA.HB.A5W3.01     1  0.0000      1.000 1.00 0.00 0.00 0.00
#> TCGA.WK.A8XS.01     4  0.1637      0.877 0.00 0.06 0.00 0.94
#> TCGA.WK.A8XX.01     1  0.0000      1.000 1.00 0.00 0.00 0.00
#> TCGA.PC.A5DP.01     3  0.0000      1.000 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.K1.A3PN.01     3  0.0000      0.909 0.00 0.00 1.00 0.00 0.00
#> TCGA.3B.A9HZ.01     2  0.0000      0.907 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A7EL.01     2  0.0609      0.901 0.02 0.98 0.00 0.00 0.00
#> TCGA.3B.A9HY.01     4  0.4182      1.000 0.00 0.00 0.00 0.60 0.40
#> TCGA.K1.A42W.01     2  0.2929      0.850 0.00 0.82 0.00 0.18 0.00
#> TCGA.IF.A4AK.01     4  0.4182      1.000 0.00 0.00 0.00 0.60 0.40
#> TCGA.IE.A4EI.01     2  0.2929      0.850 0.00 0.82 0.00 0.18 0.00
#> TCGA.IF.A4AJ.01     2  0.1410      0.897 0.00 0.94 0.00 0.06 0.00
#> TCGA.K1.A3PN.02     3  0.0000      0.909 0.00 0.00 1.00 0.00 0.00
#> TCGA.IE.A3OV.01     2  0.1410      0.897 0.00 0.94 0.00 0.06 0.00
#> TCGA.DX.A7EM.01     2  0.1410      0.897 0.00 0.94 0.00 0.06 0.00
#> TCGA.3B.A9HP.01     2  0.2929      0.850 0.00 0.82 0.00 0.18 0.00
#> TCGA.X6.A7WA.01     2  0.0000      0.907 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A6BA.01     1  0.0000      0.948 1.00 0.00 0.00 0.00 0.00
#> TCGA.MJ.A68H.01     1  0.1410      0.920 0.94 0.00 0.00 0.06 0.00
#> TCGA.QQ.A5VD.01     4  0.4182      1.000 0.00 0.00 0.00 0.60 0.40
#> TCGA.DX.A3UC.01     5  0.2012      0.943 0.00 0.02 0.06 0.00 0.92
#> TCGA.DX.A3UF.01     1  0.2331      0.929 0.90 0.00 0.00 0.08 0.02
#> TCGA.PC.A5DO.01     1  0.2331      0.929 0.90 0.00 0.00 0.08 0.02
#> TCGA.HS.A5N7.01     5  0.2012      0.943 0.00 0.02 0.06 0.00 0.92
#> TCGA.WK.A8XZ.01     1  0.0609      0.947 0.98 0.00 0.00 0.02 0.00
#> TCGA.WK.A8XY.01     1  0.2616      0.926 0.88 0.00 0.00 0.10 0.02
#> TCGA.HB.A5W3.01     1  0.0000      0.948 1.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XS.01     5  0.0609      0.878 0.00 0.02 0.00 0.00 0.98
#> TCGA.WK.A8XX.01     1  0.0609      0.947 0.98 0.00 0.00 0.02 0.00
#> TCGA.PC.A5DP.01     3  0.3390      0.814 0.00 0.10 0.84 0.06 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.K1.A3PN.01     3  0.3797      1.000 0.00 0.00 0.58 0.00 0.00 0.42
#> TCGA.3B.A9HZ.01     2  0.3706      0.186 0.00 0.62 0.00 0.00 0.00 0.38
#> TCGA.DX.A7EL.01     2  0.3706      0.186 0.00 0.62 0.00 0.00 0.00 0.38
#> TCGA.3B.A9HY.01     4  0.2454      1.000 0.00 0.00 0.00 0.84 0.16 0.00
#> TCGA.K1.A42W.01     2  0.0000      0.562 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IF.A4AK.01     4  0.2454      1.000 0.00 0.00 0.00 0.84 0.16 0.00
#> TCGA.IE.A4EI.01     2  0.0547      0.547 0.00 0.98 0.02 0.00 0.00 0.00
#> TCGA.IF.A4AJ.01     6  0.3828      0.463 0.00 0.44 0.00 0.00 0.00 0.56
#> TCGA.K1.A3PN.02     3  0.3797      1.000 0.00 0.00 0.58 0.00 0.00 0.42
#> TCGA.IE.A3OV.01     6  0.3828      0.463 0.00 0.44 0.00 0.00 0.00 0.56
#> TCGA.DX.A7EM.01     6  0.3828      0.463 0.00 0.44 0.00 0.00 0.00 0.56
#> TCGA.3B.A9HP.01     2  0.0000      0.562 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A7WA.01     2  0.3756      0.101 0.00 0.60 0.00 0.00 0.00 0.40
#> TCGA.DX.A6BA.01     1  0.0000      0.872 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MJ.A68H.01     1  0.4810      0.579 0.66 0.00 0.22 0.12 0.00 0.00
#> TCGA.QQ.A5VD.01     4  0.2454      1.000 0.00 0.00 0.00 0.84 0.16 0.00
#> TCGA.DX.A3UC.01     5  0.0000      1.000 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.A3UF.01     1  0.3156      0.833 0.80 0.00 0.18 0.02 0.00 0.00
#> TCGA.PC.A5DO.01     1  0.3156      0.833 0.80 0.00 0.18 0.02 0.00 0.00
#> TCGA.HS.A5N7.01     5  0.0000      1.000 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.WK.A8XZ.01     1  0.0000      0.872 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XY.01     1  0.3156      0.833 0.80 0.00 0.18 0.02 0.00 0.00
#> TCGA.HB.A5W3.01     1  0.0000      0.872 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XS.01     5  0.0000      1.000 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.WK.A8XX.01     1  0.0000      0.872 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DP.01     6  0.1480     -0.157 0.00 0.00 0.04 0.02 0.00 0.94

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.K1.A3PN.01     3  0.0000     1.0000 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HZ.01     6  0.2945     0.5159 0.00 0.26 0.00 0.00 0.00 0.74 0.00
#> TCGA.DX.A7EL.01     6  0.4675     0.4113 0.00 0.26 0.00 0.02 0.04 0.66 0.02
#> TCGA.3B.A9HY.01     4  0.0504     0.9857 0.00 0.00 0.00 0.98 0.02 0.00 0.00
#> TCGA.K1.A42W.01     2  0.2832     0.9542 0.00 0.76 0.00 0.00 0.00 0.24 0.00
#> TCGA.IF.A4AK.01     4  0.0504     0.9717 0.00 0.02 0.00 0.98 0.00 0.00 0.00
#> TCGA.IE.A4EI.01     2  0.3052     0.9111 0.00 0.78 0.00 0.00 0.00 0.20 0.02
#> TCGA.IF.A4AJ.01     6  0.0000     0.6788 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.K1.A3PN.02     3  0.0000     1.0000 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IE.A3OV.01     6  0.0504     0.6711 0.00 0.00 0.00 0.00 0.00 0.98 0.02
#> TCGA.DX.A7EM.01     6  0.0000     0.6788 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.3B.A9HP.01     2  0.2832     0.9542 0.00 0.76 0.00 0.00 0.00 0.24 0.00
#> TCGA.X6.A7WA.01     6  0.2832     0.5431 0.00 0.24 0.00 0.00 0.00 0.76 0.00
#> TCGA.DX.A6BA.01     1  0.4831     0.6963 0.72 0.08 0.00 0.02 0.06 0.00 0.12
#> TCGA.MJ.A68H.01     7  0.3221     0.0000 0.32 0.00 0.00 0.00 0.00 0.00 0.68
#> TCGA.QQ.A5VD.01     4  0.0504     0.9857 0.00 0.00 0.00 0.98 0.02 0.00 0.00
#> TCGA.DX.A3UC.01     5  0.1433     0.9189 0.00 0.00 0.00 0.08 0.92 0.00 0.00
#> TCGA.DX.A3UF.01     1  0.0000     0.6316 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DO.01     1  0.0000     0.6316 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5N7.01     5  0.1433     0.9189 0.00 0.00 0.00 0.08 0.92 0.00 0.00
#> TCGA.WK.A8XZ.01     1  0.5303     0.6934 0.66 0.08 0.00 0.02 0.06 0.00 0.18
#> TCGA.WK.A8XY.01     1  0.1166     0.6206 0.94 0.00 0.00 0.00 0.00 0.00 0.06
#> TCGA.HB.A5W3.01     1  0.4831     0.6963 0.72 0.08 0.00 0.02 0.06 0.00 0.12
#> TCGA.WK.A8XS.01     5  0.4620     0.8318 0.00 0.10 0.00 0.08 0.72 0.00 0.10
#> TCGA.WK.A8XX.01     1  0.5303     0.6934 0.66 0.08 0.00 0.02 0.06 0.00 0.18
#> TCGA.PC.A5DP.01     6  0.5760     0.0934 0.00 0.02 0.28 0.00 0.02 0.54 0.14

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.K1.A3PN.01     3  0.0000      1.000 0.00 0.00 1.0 0.00 0.0 0.00 0.00 0.00
#> TCGA.3B.A9HZ.01     6  0.3237      0.349 0.00 0.40 0.0 0.00 0.0 0.60 0.00 0.00
#> TCGA.DX.A7EL.01     6  0.5509      0.103 0.22 0.36 0.0 0.00 0.0 0.40 0.02 0.00
#> TCGA.3B.A9HY.01     4  0.0000      0.983 0.00 0.00 0.0 1.00 0.0 0.00 0.00 0.00
#> TCGA.K1.A42W.01     2  0.1091      0.925 0.00 0.94 0.0 0.00 0.0 0.06 0.00 0.00
#> TCGA.IF.A4AK.01     4  0.0808      0.967 0.00 0.00 0.0 0.96 0.0 0.00 0.00 0.04
#> TCGA.IE.A4EI.01     2  0.3444      0.847 0.00 0.78 0.0 0.00 0.0 0.06 0.02 0.14
#> TCGA.IF.A4AJ.01     6  0.0808      0.653 0.00 0.00 0.0 0.00 0.0 0.96 0.04 0.00
#> TCGA.K1.A3PN.02     3  0.0000      1.000 0.00 0.00 1.0 0.00 0.0 0.00 0.00 0.00
#> TCGA.IE.A3OV.01     6  0.0808      0.653 0.00 0.00 0.0 0.00 0.0 0.96 0.04 0.00
#> TCGA.DX.A7EM.01     6  0.0000      0.653 0.00 0.00 0.0 0.00 0.0 1.00 0.00 0.00
#> TCGA.3B.A9HP.01     2  0.1091      0.925 0.00 0.94 0.0 0.00 0.0 0.06 0.00 0.00
#> TCGA.X6.A7WA.01     6  0.3504      0.513 0.04 0.26 0.0 0.00 0.0 0.70 0.00 0.00
#> TCGA.DX.A6BA.01     1  0.1804      0.647 0.90 0.00 0.0 0.00 0.0 0.00 0.02 0.08
#> TCGA.MJ.A68H.01     7  0.3015      0.000 0.32 0.00 0.0 0.00 0.0 0.00 0.68 0.00
#> TCGA.QQ.A5VD.01     4  0.0000      0.983 0.00 0.00 0.0 1.00 0.0 0.00 0.00 0.00
#> TCGA.DX.A3UC.01     5  0.0000      0.958 0.00 0.00 0.0 0.00 1.0 0.00 0.00 0.00
#> TCGA.DX.A3UF.01     8  0.3329      0.978 0.48 0.00 0.0 0.00 0.0 0.00 0.00 0.52
#> TCGA.PC.A5DO.01     8  0.3329      0.978 0.48 0.00 0.0 0.00 0.0 0.00 0.00 0.52
#> TCGA.HS.A5N7.01     5  0.0000      0.958 0.00 0.00 0.0 0.00 1.0 0.00 0.00 0.00
#> TCGA.WK.A8XZ.01     1  0.2674      0.780 0.86 0.06 0.0 0.00 0.0 0.00 0.04 0.04
#> TCGA.WK.A8XY.01     8  0.3318      0.955 0.46 0.00 0.0 0.00 0.0 0.00 0.00 0.54
#> TCGA.HB.A5W3.01     1  0.0808      0.761 0.96 0.00 0.0 0.00 0.0 0.00 0.04 0.00
#> TCGA.WK.A8XS.01     5  0.1887      0.914 0.00 0.00 0.0 0.00 0.9 0.00 0.06 0.04
#> TCGA.WK.A8XX.01     1  0.2348      0.792 0.88 0.06 0.0 0.00 0.0 0.00 0.04 0.02
#> TCGA.PC.A5DP.01     6  0.5831      0.257 0.00 0.00 0.1 0.00 0.0 0.50 0.16 0.24

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-0111-consensus-heatmap-1

consensus_heatmap(res, k = 3)

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

consensus_heatmap(res, k = 4)

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

consensus_heatmap(res, k = 5)

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

consensus_heatmap(res, k = 6)

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

consensus_heatmap(res, k = 7)

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

consensus_heatmap(res, k = 8)

plot of chunk tab-node-0111-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-0111-membership-heatmap-1

membership_heatmap(res, k = 3)

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

membership_heatmap(res, k = 4)

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

membership_heatmap(res, k = 5)

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

membership_heatmap(res, k = 6)

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

membership_heatmap(res, k = 7)

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

membership_heatmap(res, k = 8)

plot of chunk tab-node-0111-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-0111-get-signatures-1

get_signatures(res, k = 3)

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

get_signatures(res, k = 4)

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

get_signatures(res, k = 5)

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

get_signatures(res, k = 6)

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

get_signatures(res, k = 7)

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

get_signatures(res, k = 8)

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

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-0111-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-0111-dimension-reduction-1

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

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

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

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

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

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

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

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

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

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

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

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

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-0111-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.


Node0112

Parent node: Node011. Child nodes: Node01111-leaf , Node01112-leaf , Node01113-leaf , Node01114-leaf , Node01121-leaf , Node01122-leaf , Node01123-leaf , Node04221-leaf , Node04222-leaf , Node04223-leaf , Node04224-leaf , Node04231-leaf , Node04232-leaf .

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

res = res_rh["0112"]

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 4.
#> 
#> 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-0112-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-0112-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.997       0.998         0.4862 0.515   0.515
#> 3 3 1.000           0.971       0.987         0.2858 0.833   0.686
#> 4 4 1.000           0.899       0.990         0.1357 0.879   0.692
#> 5 5 0.955           0.729       0.977         0.0276 0.985   0.947
#> 6 6 0.894           0.635       0.960         0.0884 0.924   0.722
#> 7 7 0.894           0.479       0.913         0.0724 0.939   0.692
#> 8 8 0.848           0.382       0.913         0.0565 0.970   0.778

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

suggest_best_k(res)
#> [1] 4
#> 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.3B.A9I0.01     1   0.000      0.997 1.00 0.00
#> TCGA.3B.A9HU.01     1   0.000      0.997 1.00 0.00
#> TCGA.X6.A8C5.01     1   0.000      0.997 1.00 0.00
#> TCGA.X6.A7WD.01     2   0.000      1.000 0.00 1.00
#> TCGA.3B.A9HR.01     1   0.141      0.980 0.98 0.02
#> TCGA.DX.A3UD.01     1   0.000      0.997 1.00 0.00
#> TCGA.3B.A9HQ.01     1   0.000      0.997 1.00 0.00
#> TCGA.DX.A48R.01     2   0.000      1.000 0.00 1.00
#> TCGA.X9.A971.01     2   0.000      1.000 0.00 1.00
#> TCGA.DX.A3UE.01     1   0.000      0.997 1.00 0.00
#> TCGA.MB.A5YA.01     1   0.000      0.997 1.00 0.00
#> TCGA.DX.A3U7.01     2   0.000      1.000 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.3B.A9I0.01     1   0.000      0.987 1.00 0.00 0.00
#> TCGA.3B.A9HU.01     1   0.000      0.987 1.00 0.00 0.00
#> TCGA.X6.A8C5.01     1   0.000      0.987 1.00 0.00 0.00
#> TCGA.X6.A7WD.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.3B.A9HR.01     3   0.000      0.910 0.00 0.00 1.00
#> TCGA.DX.A3UD.01     1   0.000      0.987 1.00 0.00 0.00
#> TCGA.3B.A9HQ.01     1   0.000      0.987 1.00 0.00 0.00
#> TCGA.DX.A48R.01     3   0.254      0.905 0.00 0.08 0.92
#> TCGA.X9.A971.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.A3UE.01     1   0.254      0.919 0.92 0.00 0.08
#> TCGA.MB.A5YA.01     1   0.000      0.987 1.00 0.00 0.00
#> TCGA.DX.A3U7.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.3B.A9I0.01     1   0.000      1.000 1.00 0.00 0.00 0.00
#> TCGA.3B.A9HU.01     1   0.000      1.000 1.00 0.00 0.00 0.00
#> TCGA.X6.A8C5.01     1   0.000      1.000 1.00 0.00 0.00 0.00
#> TCGA.X6.A7WD.01     2   0.000      0.983 0.00 1.00 0.00 0.00
#> TCGA.3B.A9HR.01     3   0.121      0.928 0.00 0.00 0.96 0.04
#> TCGA.DX.A3UD.01     1   0.000      1.000 1.00 0.00 0.00 0.00
#> TCGA.3B.A9HQ.01     1   0.000      1.000 1.00 0.00 0.00 0.00
#> TCGA.DX.A48R.01     4   0.000      0.000 0.00 0.00 0.00 1.00
#> TCGA.X9.A971.01     2   0.000      0.983 0.00 1.00 0.00 0.00
#> TCGA.DX.A3UE.01     3   0.121      0.929 0.04 0.00 0.96 0.00
#> TCGA.MB.A5YA.01     1   0.000      1.000 1.00 0.00 0.00 0.00
#> TCGA.DX.A3U7.01     2   0.121      0.965 0.00 0.96 0.04 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.3B.A9I0.01     1   0.000      1.000  1 0.00 0.00  0 0.00
#> TCGA.3B.A9HU.01     1   0.000      1.000  1 0.00 0.00  0 0.00
#> TCGA.X6.A8C5.01     1   0.000      1.000  1 0.00 0.00  0 0.00
#> TCGA.X6.A7WD.01     2   0.000      0.937  0 1.00 0.00  0 0.00
#> TCGA.3B.A9HR.01     3   0.000      0.000  0 0.00 1.00  0 0.00
#> TCGA.DX.A3UD.01     1   0.000      1.000  1 0.00 0.00  0 0.00
#> TCGA.3B.A9HQ.01     1   0.000      1.000  1 0.00 0.00  0 0.00
#> TCGA.DX.A48R.01     4   0.000      0.000  0 0.00 0.00  1 0.00
#> TCGA.X9.A971.01     2   0.000      0.937  0 1.00 0.00  0 0.00
#> TCGA.DX.A3UE.01     5   0.252      0.000  0 0.00 0.14  0 0.86
#> TCGA.MB.A5YA.01     1   0.000      1.000  1 0.00 0.00  0 0.00
#> TCGA.DX.A3U7.01     2   0.252      0.870  0 0.86 0.00  0 0.14

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.3B.A9I0.01     1  0.0000      1.000 1.0 0.00 0.00  0 0.00 0.0
#> TCGA.3B.A9HU.01     1  0.0000      1.000 1.0 0.00 0.00  0 0.00 0.0
#> TCGA.X6.A8C5.01     1  0.0000      1.000 1.0 0.00 0.00  0 0.00 0.0
#> TCGA.X6.A7WD.01     2  0.0000      0.899 0.0 1.00 0.00  0 0.00 0.0
#> TCGA.3B.A9HR.01     3  0.0000      0.000 0.0 0.00 1.00  0 0.00 0.0
#> TCGA.DX.A3UD.01     6  0.2793      0.000 0.2 0.00 0.00  0 0.00 0.8
#> TCGA.3B.A9HQ.01     1  0.0000      1.000 1.0 0.00 0.00  0 0.00 0.0
#> TCGA.DX.A48R.01     4  0.0000      0.000 0.0 0.00 0.00  1 0.00 0.0
#> TCGA.X9.A971.01     2  0.0937      0.899 0.0 0.96 0.00  0 0.04 0.0
#> TCGA.DX.A3UE.01     5  0.0937      0.000 0.0 0.00 0.04  0 0.96 0.0
#> TCGA.MB.A5YA.01     1  0.0000      1.000 1.0 0.00 0.00  0 0.00 0.0
#> TCGA.DX.A3U7.01     2  0.2793      0.821 0.0 0.80 0.00  0 0.00 0.2

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.3B.A9I0.01     7  0.3525      0.000 0.44 0.00  0  0  0 0.00 0.56
#> TCGA.3B.A9HU.01     1  0.0000      0.925 1.00 0.00  0  0  0 0.00 0.00
#> TCGA.X6.A8C5.01     1  0.0000      0.925 1.00 0.00  0  0  0 0.00 0.00
#> TCGA.X6.A7WD.01     2  0.0000      0.799 0.00 1.00  0  0  0 0.00 0.00
#> TCGA.3B.A9HR.01     3  0.0000      0.000 0.00 0.00  1  0  0 0.00 0.00
#> TCGA.DX.A3UD.01     6  0.0863      0.000 0.04 0.00  0  0  0 0.96 0.00
#> TCGA.3B.A9HQ.01     1  0.0863      0.889 0.96 0.00  0  0  0 0.00 0.04
#> TCGA.DX.A48R.01     4  0.0000      0.000 0.00 0.00  0  1  0 0.00 0.00
#> TCGA.X9.A971.01     2  0.0863      0.799 0.00 0.96  0  0  0 0.04 0.00
#> TCGA.DX.A3UE.01     5  0.0000      0.000 0.00 0.00  0  0  1 0.00 0.00
#> TCGA.MB.A5YA.01     1  0.1433      0.822 0.92 0.00  0  0  0 0.00 0.08
#> TCGA.DX.A3U7.01     2  0.3459      0.593 0.00 0.60  0  0  0 0.00 0.40

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.3B.A9I0.01     7   0.195      0.000 0.14 0.00  0  0  0  0 0.86 0.00
#> TCGA.3B.A9HU.01     1   0.000      0.790 1.00 0.00  0  0  0  0 0.00 0.00
#> TCGA.X6.A8C5.01     1   0.000      0.790 1.00 0.00  0  0  0  0 0.00 0.00
#> TCGA.X6.A7WD.01     2   0.000      0.926 0.00 1.00  0  0  0  0 0.00 0.00
#> TCGA.3B.A9HR.01     3   0.000      0.000 0.00 0.00  1  0  0  0 0.00 0.00
#> TCGA.DX.A3UD.01     6   0.000      0.000 0.00 0.00  0  0  0  1 0.00 0.00
#> TCGA.3B.A9HQ.01     1   0.420      0.450 0.60 0.00  0  0  0  0 0.08 0.32
#> TCGA.DX.A48R.01     4   0.000      0.000 0.00 0.00  0  1  0  0 0.00 0.00
#> TCGA.X9.A971.01     2   0.109      0.926 0.00 0.94  0  0  0  0 0.06 0.00
#> TCGA.DX.A3UE.01     5   0.000      0.000 0.00 0.00  0  0  1  0 0.00 0.00
#> TCGA.MB.A5YA.01     1   0.176      0.698 0.88 0.00  0  0  0  0 0.12 0.00
#> TCGA.DX.A3U7.01     8   0.301      0.000 0.00 0.32  0  0  0  0 0.00 0.68

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-0112-consensus-heatmap-1

consensus_heatmap(res, k = 3)

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

consensus_heatmap(res, k = 4)

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

consensus_heatmap(res, k = 5)

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

consensus_heatmap(res, k = 6)

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

consensus_heatmap(res, k = 7)

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

consensus_heatmap(res, k = 8)

plot of chunk tab-node-0112-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-0112-membership-heatmap-1

membership_heatmap(res, k = 3)

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

membership_heatmap(res, k = 4)

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

membership_heatmap(res, k = 5)

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

membership_heatmap(res, k = 6)

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

membership_heatmap(res, k = 7)

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

membership_heatmap(res, k = 8)

plot of chunk tab-node-0112-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-0112-get-signatures-1

get_signatures(res, k = 3)

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

get_signatures(res, k = 4)

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

get_signatures(res, k = 5)

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

get_signatures(res, k = 6)

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

get_signatures(res, k = 7)

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

get_signatures(res, k = 8)

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

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-0112-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-0112-dimension-reduction-1

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

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

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

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

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

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

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

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

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

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

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

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

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-0112-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-leaf , Node013-leaf , Node014-leaf , Node015-leaf , Node016-leaf , Node021 , Node022 , Node023 , Node024-leaf , Node031 , Node032 , Node033-leaf , Node034 , Node041-leaf , Node042 , Node043-leaf , Node044-leaf , Node045-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 52 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-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.998       0.999         0.5094 0.491   0.491
#> 3 3 0.643           0.818       0.871         0.2659 0.825   0.657
#> 4 4 0.898           0.963       0.960         0.1397 0.852   0.612
#> 5 5 0.815           0.760       0.881         0.0644 0.991   0.965
#> 6 6 0.822           0.781       0.839         0.0437 0.916   0.664
#> 7 7 0.815           0.644       0.818         0.0305 0.967   0.815
#> 8 8 0.796           0.729       0.819         0.0206 0.960   0.760

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.DX.AB2O.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.AB3C.01     2   0.000      0.997 0.00 1.00
#> TCGA.X6.A8C3.01     1   0.000      1.000 1.00 0.00
#> TCGA.IE.A4EJ.01     2   0.000      0.997 0.00 1.00
#> TCGA.DX.AB2W.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A7EU.01     2   0.000      0.997 0.00 1.00
#> TCGA.DX.A6Z0.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.AB3B.01     2   0.000      0.997 0.00 1.00
#> TCGA.FX.A3TO.01     2   0.000      0.997 0.00 1.00
#> TCGA.X6.A8C2.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.AATS.01     2   0.000      0.997 0.00 1.00
#> TCGA.Z4.AAPG.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.AB2Q.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A8BL.01     1   0.000      1.000 1.00 0.00
#> TCGA.VT.A80G.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A3M1.01     2   0.000      0.997 0.00 1.00
#> TCGA.DX.A6YX.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A8BM.01     2   0.000      0.997 0.00 1.00
#> TCGA.X6.A8C4.01     1   0.000      1.000 1.00 0.00
#> TCGA.X6.A7W8.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.AB2X.01     1   0.000      1.000 1.00 0.00
#> TCGA.LI.A67I.01     2   0.000      0.997 0.00 1.00
#> TCGA.DX.A6YR.01     2   0.000      0.997 0.00 1.00
#> TCGA.K1.A6RV.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A3LT.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A6YV.01     2   0.000      0.997 0.00 1.00
#> TCGA.IE.A6BZ.01     2   0.000      0.997 0.00 1.00
#> TCGA.DX.A48K.01     1   0.000      1.000 1.00 0.00
#> TCGA.X6.A7WC.01     1   0.000      1.000 1.00 0.00
#> TCGA.SI.AA8B.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A6B8.01     2   0.000      0.997 0.00 1.00
#> TCGA.DX.A6YS.01     2   0.000      0.997 0.00 1.00
#> TCGA.DX.A6YZ.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.AB2P.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A3UA.01     2   0.000      0.997 0.00 1.00
#> TCGA.QQ.A5VC.01     2   0.000      0.997 0.00 1.00
#> TCGA.DX.A23R.01     2   0.000      0.997 0.00 1.00
#> TCGA.DX.A8BK.01     2   0.000      0.997 0.00 1.00
#> TCGA.DX.A7EF.01     1   0.000      1.000 1.00 0.00
#> TCGA.HS.A5N9.01     2   0.327      0.936 0.06 0.94
#> TCGA.SG.A6Z4.01     2   0.000      0.997 0.00 1.00
#> TCGA.DX.A8BU.01     2   0.000      0.997 0.00 1.00
#> TCGA.MB.A5Y8.01     1   0.000      1.000 1.00 0.00
#> TCGA.KD.A5QS.01     2   0.000      0.997 0.00 1.00
#> TCGA.3R.A8YX.01     1   0.000      1.000 1.00 0.00
#> TCGA.SI.A71O.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A8BS.01     1   0.000      1.000 1.00 0.00
#> TCGA.PC.A5DM.01     2   0.000      0.997 0.00 1.00
#> TCGA.DX.A6YQ.01     2   0.000      0.997 0.00 1.00
#> TCGA.QC.A7B5.01     1   0.000      1.000 1.00 0.00
#> TCGA.LI.A9QH.01     2   0.000      0.997 0.00 1.00
#> TCGA.DX.A8BZ.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.DX.AB2O.01     1  0.5706      0.825 0.68 0.32 0.00
#> TCGA.DX.AB3C.01     3  0.0000      0.998 0.00 0.00 1.00
#> TCGA.X6.A8C3.01     1  0.2066      0.822 0.94 0.06 0.00
#> TCGA.IE.A4EJ.01     2  0.3340      0.786 0.00 0.88 0.12
#> TCGA.DX.AB2W.01     1  0.5706      0.825 0.68 0.32 0.00
#> TCGA.DX.A7EU.01     2  0.5706      0.655 0.00 0.68 0.32
#> TCGA.DX.A6Z0.01     1  0.5706      0.825 0.68 0.32 0.00
#> TCGA.DX.AB3B.01     3  0.0000      0.998 0.00 0.00 1.00
#> TCGA.FX.A3TO.01     3  0.0000      0.998 0.00 0.00 1.00
#> TCGA.X6.A8C2.01     1  0.5706      0.825 0.68 0.32 0.00
#> TCGA.DX.AATS.01     2  0.5397      0.706 0.00 0.72 0.28
#> TCGA.Z4.AAPG.01     1  0.0000      0.806 1.00 0.00 0.00
#> TCGA.DX.AB2Q.01     1  0.5706      0.825 0.68 0.32 0.00
#> TCGA.DX.A8BL.01     2  0.0000      0.748 0.00 1.00 0.00
#> TCGA.VT.A80G.01     1  0.0000      0.806 1.00 0.00 0.00
#> TCGA.DX.A3M1.01     2  0.5706      0.655 0.00 0.68 0.32
#> TCGA.DX.A6YX.01     1  0.0000      0.806 1.00 0.00 0.00
#> TCGA.DX.A8BM.01     3  0.0000      0.998 0.00 0.00 1.00
#> TCGA.X6.A8C4.01     1  0.0000      0.806 1.00 0.00 0.00
#> TCGA.X6.A7W8.01     1  0.4002      0.835 0.84 0.16 0.00
#> TCGA.DX.AB2X.01     1  0.0000      0.806 1.00 0.00 0.00
#> TCGA.LI.A67I.01     3  0.0000      0.998 0.00 0.00 1.00
#> TCGA.DX.A6YR.01     2  0.5397      0.706 0.00 0.72 0.28
#> TCGA.K1.A6RV.01     2  0.5948     -0.176 0.36 0.64 0.00
#> TCGA.DX.A3LT.01     1  0.5706      0.825 0.68 0.32 0.00
#> TCGA.DX.A6YV.01     3  0.0000      0.998 0.00 0.00 1.00
#> TCGA.IE.A6BZ.01     2  0.5706      0.655 0.00 0.68 0.32
#> TCGA.DX.A48K.01     1  0.2959      0.829 0.90 0.10 0.00
#> TCGA.X6.A7WC.01     1  0.0000      0.806 1.00 0.00 0.00
#> TCGA.SI.AA8B.01     1  0.4002      0.835 0.84 0.16 0.00
#> TCGA.DX.A6B8.01     2  0.1529      0.772 0.00 0.96 0.04
#> TCGA.DX.A6YS.01     3  0.0000      0.998 0.00 0.00 1.00
#> TCGA.DX.A6YZ.01     1  0.5706      0.825 0.68 0.32 0.00
#> TCGA.DX.AB2P.01     1  0.5706      0.825 0.68 0.32 0.00
#> TCGA.DX.A3UA.01     2  0.0000      0.748 0.00 1.00 0.00
#> TCGA.QQ.A5VC.01     2  0.5397      0.706 0.00 0.72 0.28
#> TCGA.DX.A23R.01     3  0.0000      0.998 0.00 0.00 1.00
#> TCGA.DX.A8BK.01     2  0.2959      0.787 0.00 0.90 0.10
#> TCGA.DX.A7EF.01     1  0.5706      0.825 0.68 0.32 0.00
#> TCGA.HS.A5N9.01     2  0.0000      0.748 0.00 1.00 0.00
#> TCGA.SG.A6Z4.01     3  0.0000      0.998 0.00 0.00 1.00
#> TCGA.DX.A8BU.01     3  0.0000      0.998 0.00 0.00 1.00
#> TCGA.MB.A5Y8.01     1  0.0000      0.806 1.00 0.00 0.00
#> TCGA.KD.A5QS.01     3  0.0892      0.975 0.00 0.02 0.98
#> TCGA.3R.A8YX.01     1  0.0000      0.806 1.00 0.00 0.00
#> TCGA.SI.A71O.01     1  0.5706      0.825 0.68 0.32 0.00
#> TCGA.DX.A8BS.01     1  0.5706      0.825 0.68 0.32 0.00
#> TCGA.PC.A5DM.01     2  0.2537      0.784 0.00 0.92 0.08
#> TCGA.DX.A6YQ.01     2  0.3340      0.786 0.00 0.88 0.12
#> TCGA.QC.A7B5.01     1  0.2537      0.826 0.92 0.08 0.00
#> TCGA.LI.A9QH.01     3  0.0000      0.998 0.00 0.00 1.00
#> TCGA.DX.A8BZ.01     1  0.5706      0.825 0.68 0.32 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.DX.AB2O.01     1  0.0000      0.968 1.00 0.00 0.00 0.00
#> TCGA.DX.AB3C.01     3  0.0000      0.983 0.00 0.00 1.00 0.00
#> TCGA.X6.A8C3.01     1  0.0707      0.961 0.98 0.02 0.00 0.00
#> TCGA.IE.A4EJ.01     2  0.0707      0.977 0.00 0.98 0.02 0.00
#> TCGA.DX.AB2W.01     1  0.0707      0.959 0.98 0.00 0.00 0.02
#> TCGA.DX.A7EU.01     2  0.0707      0.977 0.00 0.98 0.02 0.00
#> TCGA.DX.A6Z0.01     1  0.0000      0.968 1.00 0.00 0.00 0.00
#> TCGA.DX.AB3B.01     3  0.0000      0.983 0.00 0.00 1.00 0.00
#> TCGA.FX.A3TO.01     3  0.0000      0.983 0.00 0.00 1.00 0.00
#> TCGA.X6.A8C2.01     1  0.0000      0.968 1.00 0.00 0.00 0.00
#> TCGA.DX.AATS.01     2  0.2335      0.958 0.00 0.92 0.02 0.06
#> TCGA.Z4.AAPG.01     4  0.2345      0.993 0.10 0.00 0.00 0.90
#> TCGA.DX.AB2Q.01     1  0.0000      0.968 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BL.01     1  0.4134      0.661 0.74 0.26 0.00 0.00
#> TCGA.VT.A80G.01     4  0.3037      0.988 0.10 0.02 0.00 0.88
#> TCGA.DX.A3M1.01     2  0.0707      0.977 0.00 0.98 0.02 0.00
#> TCGA.DX.A6YX.01     4  0.2345      0.993 0.10 0.00 0.00 0.90
#> TCGA.DX.A8BM.01     3  0.0000      0.983 0.00 0.00 1.00 0.00
#> TCGA.X6.A8C4.01     4  0.2345      0.993 0.10 0.00 0.00 0.90
#> TCGA.X6.A7W8.01     1  0.0707      0.961 0.98 0.02 0.00 0.00
#> TCGA.DX.AB2X.01     4  0.2345      0.993 0.10 0.00 0.00 0.90
#> TCGA.LI.A67I.01     3  0.0000      0.983 0.00 0.00 1.00 0.00
#> TCGA.DX.A6YR.01     2  0.0707      0.977 0.00 0.98 0.02 0.00
#> TCGA.K1.A6RV.01     1  0.2335      0.902 0.92 0.02 0.00 0.06
#> TCGA.DX.A3LT.01     1  0.0000      0.968 1.00 0.00 0.00 0.00
#> TCGA.DX.A6YV.01     3  0.0000      0.983 0.00 0.00 1.00 0.00
#> TCGA.IE.A6BZ.01     2  0.0707      0.977 0.00 0.98 0.02 0.00
#> TCGA.DX.A48K.01     1  0.0707      0.961 0.98 0.02 0.00 0.00
#> TCGA.X6.A7WC.01     4  0.3037      0.988 0.10 0.02 0.00 0.88
#> TCGA.SI.AA8B.01     1  0.0707      0.961 0.98 0.02 0.00 0.00
#> TCGA.DX.A6B8.01     2  0.2706      0.948 0.00 0.90 0.02 0.08
#> TCGA.DX.A6YS.01     3  0.0000      0.983 0.00 0.00 1.00 0.00
#> TCGA.DX.A6YZ.01     1  0.0000      0.968 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2P.01     1  0.0707      0.959 0.98 0.00 0.00 0.02
#> TCGA.DX.A3UA.01     2  0.0707      0.963 0.02 0.98 0.00 0.00
#> TCGA.QQ.A5VC.01     2  0.1411      0.972 0.00 0.96 0.02 0.02
#> TCGA.DX.A23R.01     3  0.0000      0.983 0.00 0.00 1.00 0.00
#> TCGA.DX.A8BK.01     2  0.0707      0.977 0.00 0.98 0.02 0.00
#> TCGA.DX.A7EF.01     1  0.0000      0.968 1.00 0.00 0.00 0.00
#> TCGA.HS.A5N9.01     2  0.2706      0.937 0.02 0.90 0.00 0.08
#> TCGA.SG.A6Z4.01     3  0.1211      0.949 0.00 0.04 0.96 0.00
#> TCGA.DX.A8BU.01     3  0.0000      0.983 0.00 0.00 1.00 0.00
#> TCGA.MB.A5Y8.01     4  0.3037      0.988 0.10 0.02 0.00 0.88
#> TCGA.KD.A5QS.01     3  0.3335      0.847 0.00 0.12 0.86 0.02
#> TCGA.3R.A8YX.01     4  0.2345      0.993 0.10 0.00 0.00 0.90
#> TCGA.SI.A71O.01     1  0.0000      0.968 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BS.01     1  0.0707      0.959 0.98 0.00 0.00 0.02
#> TCGA.PC.A5DM.01     2  0.2335      0.957 0.00 0.92 0.02 0.06
#> TCGA.DX.A6YQ.01     2  0.0707      0.977 0.00 0.98 0.02 0.00
#> TCGA.QC.A7B5.01     1  0.0707      0.961 0.98 0.02 0.00 0.00
#> TCGA.LI.A9QH.01     3  0.0000      0.983 0.00 0.00 1.00 0.00
#> TCGA.DX.A8BZ.01     1  0.0000      0.968 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.DX.AB2O.01     1  0.0000      0.844 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB3C.01     3  0.0609      0.914 0.00 0.00 0.98 0.00 0.02
#> TCGA.X6.A8C3.01     1  0.0000      0.844 1.00 0.00 0.00 0.00 0.00
#> TCGA.IE.A4EJ.01     2  0.1410      0.756 0.00 0.94 0.00 0.00 0.06
#> TCGA.DX.AB2W.01     1  0.2280      0.829 0.88 0.00 0.00 0.00 0.12
#> TCGA.DX.A7EU.01     2  0.1732      0.749 0.00 0.92 0.00 0.00 0.08
#> TCGA.DX.A6Z0.01     1  0.0000      0.844 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB3B.01     3  0.0609      0.914 0.00 0.00 0.98 0.00 0.02
#> TCGA.FX.A3TO.01     3  0.1216      0.912 0.00 0.00 0.96 0.02 0.02
#> TCGA.X6.A8C2.01     1  0.4126      0.706 0.62 0.00 0.00 0.00 0.38
#> TCGA.DX.AATS.01     2  0.3796      0.164 0.00 0.70 0.00 0.00 0.30
#> TCGA.Z4.AAPG.01     4  0.0609      0.945 0.02 0.00 0.00 0.98 0.00
#> TCGA.DX.AB2Q.01     1  0.0000      0.844 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BL.01     1  0.2616      0.749 0.88 0.10 0.00 0.00 0.02
#> TCGA.VT.A80G.01     4  0.2873      0.907 0.02 0.00 0.00 0.86 0.12
#> TCGA.DX.A3M1.01     2  0.0609      0.772 0.00 0.98 0.00 0.00 0.02
#> TCGA.DX.A6YX.01     4  0.0609      0.945 0.02 0.00 0.00 0.98 0.00
#> TCGA.DX.A8BM.01     3  0.0000      0.921 0.00 0.00 1.00 0.00 0.00
#> TCGA.X6.A8C4.01     4  0.0609      0.945 0.02 0.00 0.00 0.98 0.00
#> TCGA.X6.A7W8.01     1  0.1732      0.836 0.92 0.00 0.00 0.00 0.08
#> TCGA.DX.AB2X.01     4  0.0609      0.945 0.02 0.00 0.00 0.98 0.00
#> TCGA.LI.A67I.01     3  0.1216      0.912 0.00 0.00 0.96 0.02 0.02
#> TCGA.DX.A6YR.01     2  0.0609      0.772 0.00 0.98 0.00 0.00 0.02
#> TCGA.K1.A6RV.01     1  0.4182      0.650 0.60 0.00 0.00 0.00 0.40
#> TCGA.DX.A3LT.01     1  0.0000      0.844 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YV.01     3  0.0000      0.921 0.00 0.00 1.00 0.00 0.00
#> TCGA.IE.A6BZ.01     2  0.0000      0.771 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A48K.01     1  0.3690      0.787 0.78 0.00 0.00 0.02 0.20
#> TCGA.X6.A7WC.01     4  0.2873      0.907 0.02 0.00 0.00 0.86 0.12
#> TCGA.SI.AA8B.01     1  0.4182      0.690 0.60 0.00 0.00 0.00 0.40
#> TCGA.DX.A6B8.01     5  0.4182      0.000 0.00 0.40 0.00 0.00 0.60
#> TCGA.DX.A6YS.01     3  0.0000      0.921 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A6YZ.01     1  0.0000      0.844 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2P.01     1  0.4287      0.633 0.54 0.00 0.00 0.00 0.46
#> TCGA.DX.A3UA.01     2  0.2280      0.740 0.00 0.88 0.00 0.00 0.12
#> TCGA.QQ.A5VC.01     2  0.1732      0.699 0.00 0.92 0.00 0.00 0.08
#> TCGA.DX.A23R.01     3  0.0000      0.921 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A8BK.01     2  0.1732      0.749 0.00 0.92 0.00 0.00 0.08
#> TCGA.DX.A7EF.01     1  0.0000      0.844 1.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5N9.01     2  0.4227     -0.151 0.00 0.58 0.00 0.00 0.42
#> TCGA.SG.A6Z4.01     3  0.3390      0.825 0.00 0.06 0.86 0.02 0.06
#> TCGA.DX.A8BU.01     3  0.1216      0.912 0.00 0.00 0.96 0.02 0.02
#> TCGA.MB.A5Y8.01     4  0.2873      0.907 0.02 0.00 0.00 0.86 0.12
#> TCGA.KD.A5QS.01     3  0.7144     -0.141 0.00 0.32 0.42 0.02 0.24
#> TCGA.3R.A8YX.01     4  0.0609      0.945 0.02 0.00 0.00 0.98 0.00
#> TCGA.SI.A71O.01     1  0.3561      0.767 0.74 0.00 0.00 0.00 0.26
#> TCGA.DX.A8BS.01     1  0.3983      0.712 0.66 0.00 0.00 0.00 0.34
#> TCGA.PC.A5DM.01     2  0.3274      0.514 0.00 0.78 0.00 0.00 0.22
#> TCGA.DX.A6YQ.01     2  0.0609      0.772 0.00 0.98 0.00 0.00 0.02
#> TCGA.QC.A7B5.01     1  0.4096      0.777 0.76 0.00 0.00 0.04 0.20
#> TCGA.LI.A9QH.01     3  0.0000      0.921 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A8BZ.01     1  0.0000      0.844 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.DX.AB2O.01     6  0.3706     0.9638 0.38 0.00 0.00 0.00 0.00 0.62
#> TCGA.DX.AB3C.01     3  0.0937     0.9130 0.00 0.00 0.96 0.00 0.00 0.04
#> TCGA.X6.A8C3.01     6  0.3756     0.9378 0.40 0.00 0.00 0.00 0.00 0.60
#> TCGA.IE.A4EJ.01     2  0.0547     0.8762 0.00 0.98 0.00 0.00 0.02 0.00
#> TCGA.DX.AB2W.01     1  0.5798     0.4859 0.48 0.00 0.00 0.00 0.32 0.20
#> TCGA.DX.A7EU.01     2  0.0547     0.8762 0.00 0.98 0.00 0.00 0.02 0.00
#> TCGA.DX.A6Z0.01     6  0.3647     0.9809 0.36 0.00 0.00 0.00 0.00 0.64
#> TCGA.DX.AB3B.01     3  0.0937     0.9130 0.00 0.00 0.96 0.00 0.00 0.04
#> TCGA.FX.A3TO.01     3  0.1807     0.9093 0.00 0.00 0.92 0.00 0.02 0.06
#> TCGA.X6.A8C2.01     1  0.0547     0.6632 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.DX.AATS.01     2  0.4993     0.0958 0.00 0.56 0.00 0.00 0.36 0.08
#> TCGA.Z4.AAPG.01     4  0.0000     0.9442 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.AB2Q.01     6  0.3647     0.9809 0.36 0.00 0.00 0.00 0.00 0.64
#> TCGA.DX.A8BL.01     6  0.3647     0.9809 0.36 0.00 0.00 0.00 0.00 0.64
#> TCGA.VT.A80G.01     4  0.2048     0.9050 0.12 0.00 0.00 0.88 0.00 0.00
#> TCGA.DX.A3M1.01     2  0.1480     0.8367 0.00 0.94 0.00 0.00 0.04 0.02
#> TCGA.DX.A6YX.01     4  0.0000     0.9442 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A8BM.01     3  0.0000     0.9160 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.X6.A8C4.01     4  0.0000     0.9442 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.X6.A7W8.01     1  0.3076     0.2857 0.76 0.00 0.00 0.00 0.00 0.24
#> TCGA.DX.AB2X.01     4  0.0000     0.9442 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.LI.A67I.01     3  0.1092     0.9098 0.00 0.00 0.96 0.00 0.02 0.02
#> TCGA.DX.A6YR.01     2  0.0000     0.8765 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A6RV.01     1  0.4609     0.4631 0.54 0.00 0.00 0.00 0.42 0.04
#> TCGA.DX.A3LT.01     6  0.3706     0.9638 0.38 0.00 0.00 0.00 0.00 0.62
#> TCGA.DX.A6YV.01     3  0.0000     0.9160 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.IE.A6BZ.01     2  0.0000     0.8765 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A48K.01     1  0.2048     0.5580 0.88 0.00 0.00 0.00 0.00 0.12
#> TCGA.X6.A7WC.01     4  0.2048     0.9050 0.12 0.00 0.00 0.88 0.00 0.00
#> TCGA.SI.AA8B.01     1  0.0547     0.6632 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.DX.A6B8.01     5  0.4608     0.5172 0.10 0.22 0.00 0.00 0.68 0.00
#> TCGA.DX.A6YS.01     3  0.0000     0.9160 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A6YZ.01     6  0.3647     0.9809 0.36 0.00 0.00 0.00 0.00 0.64
#> TCGA.DX.AB2P.01     1  0.2793     0.6433 0.80 0.00 0.00 0.00 0.20 0.00
#> TCGA.DX.A3UA.01     2  0.1092     0.8719 0.00 0.96 0.00 0.00 0.02 0.02
#> TCGA.QQ.A5VC.01     2  0.3567     0.6637 0.00 0.80 0.00 0.00 0.10 0.10
#> TCGA.DX.A23R.01     3  0.0000     0.9160 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BK.01     2  0.0547     0.8762 0.00 0.98 0.00 0.00 0.02 0.00
#> TCGA.DX.A7EF.01     6  0.3647     0.9809 0.36 0.00 0.00 0.00 0.00 0.64
#> TCGA.HS.A5N9.01     5  0.5938     0.2238 0.00 0.26 0.00 0.00 0.46 0.28
#> TCGA.SG.A6Z4.01     3  0.3111     0.8117 0.00 0.02 0.84 0.00 0.12 0.02
#> TCGA.DX.A8BU.01     3  0.1807     0.9093 0.00 0.00 0.92 0.00 0.02 0.06
#> TCGA.MB.A5Y8.01     4  0.2048     0.9050 0.12 0.00 0.00 0.88 0.00 0.00
#> TCGA.KD.A5QS.01     3  0.6934     0.1917 0.00 0.16 0.48 0.00 0.24 0.12
#> TCGA.3R.A8YX.01     4  0.0000     0.9442 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.SI.A71O.01     1  0.2350     0.6095 0.88 0.00 0.00 0.00 0.02 0.10
#> TCGA.DX.A8BS.01     1  0.4534     0.5364 0.58 0.00 0.00 0.00 0.38 0.04
#> TCGA.PC.A5DM.01     5  0.3797     0.3755 0.00 0.42 0.00 0.00 0.58 0.00
#> TCGA.DX.A6YQ.01     2  0.0000     0.8765 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.QC.A7B5.01     1  0.2048     0.5580 0.88 0.00 0.00 0.00 0.00 0.12
#> TCGA.LI.A9QH.01     3  0.1267     0.9131 0.00 0.00 0.94 0.00 0.00 0.06
#> TCGA.DX.A8BZ.01     6  0.3647     0.9809 0.36 0.00 0.00 0.00 0.00 0.64

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.DX.AB2O.01     6  0.1505      0.859 0.02 0.00 0.00 0.00 0.02 0.94 0.02
#> TCGA.DX.AB3C.01     3  0.1928      0.851 0.02 0.00 0.90 0.00 0.00 0.00 0.08
#> TCGA.X6.A8C3.01     6  0.1664      0.847 0.02 0.00 0.00 0.00 0.00 0.92 0.06
#> TCGA.IE.A4EJ.01     2  0.3061      0.760 0.06 0.84 0.00 0.00 0.08 0.00 0.02
#> TCGA.DX.AB2W.01     5  0.5453      0.164 0.22 0.00 0.00 0.00 0.44 0.34 0.00
#> TCGA.DX.A7EU.01     2  0.3061      0.760 0.06 0.84 0.00 0.00 0.08 0.00 0.02
#> TCGA.DX.A6Z0.01     6  0.0504      0.869 0.00 0.00 0.00 0.00 0.00 0.98 0.02
#> TCGA.DX.AB3B.01     3  0.1928      0.851 0.02 0.00 0.90 0.00 0.00 0.00 0.08
#> TCGA.FX.A3TO.01     3  0.1363      0.862 0.02 0.00 0.94 0.00 0.00 0.00 0.04
#> TCGA.X6.A8C2.01     1  0.4211      0.677 0.68 0.00 0.00 0.00 0.04 0.26 0.02
#> TCGA.DX.AATS.01     2  0.6874     -0.308 0.14 0.32 0.00 0.00 0.32 0.00 0.22
#> TCGA.Z4.AAPG.01     4  0.0000      0.877 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2Q.01     6  0.0504      0.866 0.00 0.00 0.00 0.00 0.00 0.98 0.02
#> TCGA.DX.A8BL.01     6  0.2016      0.754 0.04 0.06 0.00 0.00 0.00 0.90 0.00
#> TCGA.VT.A80G.01     4  0.3388      0.787 0.20 0.00 0.00 0.76 0.00 0.00 0.04
#> TCGA.DX.A3M1.01     2  0.1006      0.753 0.02 0.96 0.00 0.00 0.02 0.00 0.00
#> TCGA.DX.A6YX.01     4  0.0000      0.877 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BM.01     3  0.1006      0.867 0.02 0.00 0.96 0.00 0.02 0.00 0.00
#> TCGA.X6.A8C4.01     4  0.0000      0.877 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.X6.A7W8.01     6  0.4514     -0.462 0.46 0.00 0.00 0.00 0.00 0.48 0.06
#> TCGA.DX.AB2X.01     4  0.0000      0.877 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.LI.A67I.01     3  0.0504      0.862 0.00 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.A6YR.01     2  0.0000      0.770 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A6RV.01     5  0.4461      0.418 0.40 0.00 0.00 0.00 0.54 0.06 0.00
#> TCGA.DX.A3LT.01     6  0.1006      0.865 0.02 0.00 0.00 0.00 0.00 0.96 0.02
#> TCGA.DX.A6YV.01     3  0.1006      0.867 0.02 0.00 0.96 0.00 0.02 0.00 0.00
#> TCGA.IE.A6BZ.01     2  0.0000      0.770 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A48K.01     1  0.4622      0.582 0.56 0.00 0.00 0.02 0.00 0.38 0.04
#> TCGA.X6.A7WC.01     4  0.3388      0.787 0.20 0.00 0.00 0.76 0.00 0.00 0.04
#> TCGA.SI.AA8B.01     1  0.3637      0.663 0.72 0.00 0.00 0.00 0.04 0.24 0.00
#> TCGA.DX.A6B8.01     5  0.2278      0.354 0.08 0.04 0.00 0.00 0.88 0.00 0.00
#> TCGA.DX.A6YS.01     3  0.1006      0.867 0.02 0.00 0.96 0.00 0.02 0.00 0.00
#> TCGA.DX.A6YZ.01     6  0.0000      0.866 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.AB2P.01     1  0.4070     -0.144 0.62 0.00 0.00 0.00 0.34 0.04 0.00
#> TCGA.DX.A3UA.01     2  0.3744      0.733 0.08 0.78 0.00 0.00 0.12 0.00 0.02
#> TCGA.QQ.A5VC.01     2  0.5091      0.387 0.12 0.66 0.00 0.00 0.16 0.00 0.06
#> TCGA.DX.A23R.01     3  0.1006      0.867 0.02 0.00 0.96 0.00 0.02 0.00 0.00
#> TCGA.DX.A8BK.01     2  0.3061      0.760 0.06 0.84 0.00 0.00 0.08 0.00 0.02
#> TCGA.DX.A7EF.01     6  0.0504      0.863 0.00 0.00 0.00 0.00 0.00 0.98 0.02
#> TCGA.HS.A5N9.01     7  0.3284      0.000 0.00 0.10 0.00 0.00 0.10 0.00 0.80
#> TCGA.SG.A6Z4.01     3  0.3772      0.691 0.02 0.06 0.80 0.00 0.10 0.00 0.02
#> TCGA.DX.A8BU.01     3  0.1363      0.862 0.02 0.00 0.94 0.00 0.00 0.00 0.04
#> TCGA.MB.A5Y8.01     4  0.3388      0.787 0.20 0.00 0.00 0.76 0.00 0.00 0.04
#> TCGA.KD.A5QS.01     3  0.8075     -0.443 0.14 0.14 0.28 0.00 0.20 0.00 0.24
#> TCGA.3R.A8YX.01     4  0.0000      0.877 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.SI.A71O.01     1  0.4577      0.614 0.58 0.00 0.00 0.00 0.04 0.36 0.02
#> TCGA.DX.A8BS.01     5  0.4487      0.392 0.42 0.00 0.00 0.00 0.52 0.06 0.00
#> TCGA.PC.A5DM.01     5  0.2906      0.214 0.02 0.18 0.00 0.00 0.80 0.00 0.00
#> TCGA.DX.A6YQ.01     2  0.0000      0.770 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QC.A7B5.01     1  0.4622      0.582 0.56 0.00 0.00 0.02 0.00 0.38 0.04
#> TCGA.LI.A9QH.01     3  0.1006      0.866 0.02 0.00 0.96 0.00 0.00 0.00 0.02
#> TCGA.DX.A8BZ.01     6  0.0504      0.868 0.02 0.00 0.00 0.00 0.00 0.98 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.DX.AB2O.01     6  0.1557      0.901 0.02 0.00 0.00 0.00 0.00 0.92 0.06 0.00
#> TCGA.DX.AB3C.01     3  0.2547      0.877 0.00 0.00 0.84 0.00 0.00 0.00 0.12 0.04
#> TCGA.X6.A8C3.01     6  0.0941      0.914 0.02 0.00 0.00 0.00 0.00 0.96 0.02 0.00
#> TCGA.IE.A4EJ.01     2  0.0000      0.808 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2W.01     5  0.4134      0.203 0.08 0.00 0.00 0.00 0.62 0.30 0.00 0.00
#> TCGA.DX.A7EU.01     2  0.0000      0.808 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6Z0.01     6  0.1557      0.901 0.02 0.00 0.00 0.00 0.00 0.92 0.06 0.00
#> TCGA.DX.AB3B.01     3  0.2547      0.877 0.00 0.00 0.84 0.00 0.00 0.00 0.12 0.04
#> TCGA.FX.A3TO.01     3  0.1765      0.897 0.00 0.00 0.88 0.00 0.00 0.00 0.12 0.00
#> TCGA.X6.A8C2.01     1  0.5448      0.635 0.44 0.00 0.00 0.00 0.38 0.14 0.00 0.04
#> TCGA.DX.AATS.01     8  0.3303      0.609 0.02 0.20 0.00 0.00 0.02 0.00 0.00 0.76
#> TCGA.Z4.AAPG.01     4  0.0000      0.875 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2Q.01     6  0.1741      0.909 0.04 0.00 0.00 0.00 0.00 0.92 0.02 0.02
#> TCGA.DX.A8BL.01     6  0.2348      0.870 0.04 0.06 0.00 0.00 0.00 0.88 0.00 0.02
#> TCGA.VT.A80G.01     4  0.2650      0.787 0.24 0.00 0.00 0.76 0.00 0.00 0.00 0.00
#> TCGA.DX.A3M1.01     2  0.3856      0.768 0.00 0.70 0.00 0.00 0.00 0.00 0.20 0.10
#> TCGA.DX.A6YX.01     4  0.0000      0.875 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BM.01     3  0.0000      0.904 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C4.01     4  0.0000      0.875 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A7W8.01     1  0.5035      0.646 0.50 0.00 0.00 0.00 0.12 0.36 0.02 0.00
#> TCGA.DX.AB2X.01     4  0.0471      0.870 0.00 0.00 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.LI.A67I.01     3  0.0000      0.904 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YR.01     2  0.3170      0.804 0.00 0.76 0.00 0.00 0.00 0.00 0.20 0.04
#> TCGA.K1.A6RV.01     5  0.0808      0.522 0.04 0.00 0.00 0.00 0.96 0.00 0.00 0.00
#> TCGA.DX.A3LT.01     6  0.1557      0.901 0.02 0.00 0.00 0.00 0.00 0.92 0.06 0.00
#> TCGA.DX.A6YV.01     3  0.0000      0.904 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IE.A6BZ.01     2  0.3337      0.789 0.04 0.78 0.00 0.00 0.00 0.00 0.16 0.02
#> TCGA.DX.A48K.01     1  0.4622      0.704 0.56 0.00 0.00 0.00 0.14 0.30 0.00 0.00
#> TCGA.X6.A7WC.01     4  0.2650      0.787 0.24 0.00 0.00 0.76 0.00 0.00 0.00 0.00
#> TCGA.SI.AA8B.01     1  0.5448      0.635 0.44 0.00 0.00 0.00 0.38 0.14 0.00 0.04
#> TCGA.DX.A6B8.01     5  0.4224      0.379 0.02 0.14 0.00 0.00 0.70 0.00 0.00 0.14
#> TCGA.DX.A6YS.01     3  0.0000      0.904 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YZ.01     6  0.0941      0.916 0.02 0.00 0.00 0.00 0.00 0.96 0.00 0.02
#> TCGA.DX.AB2P.01     5  0.3907     -0.265 0.38 0.00 0.00 0.00 0.58 0.00 0.00 0.04
#> TCGA.DX.A3UA.01     2  0.3128      0.735 0.04 0.82 0.00 0.00 0.00 0.00 0.04 0.10
#> TCGA.QQ.A5VC.01     8  0.3660      0.562 0.00 0.24 0.00 0.00 0.00 0.00 0.06 0.70
#> TCGA.DX.A23R.01     3  0.0000      0.904 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BK.01     2  0.0000      0.808 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7EF.01     6  0.1887      0.896 0.06 0.00 0.00 0.00 0.00 0.90 0.00 0.04
#> TCGA.HS.A5N9.01     7  0.4821      0.000 0.24 0.02 0.00 0.00 0.00 0.00 0.60 0.14
#> TCGA.SG.A6Z4.01     3  0.3426      0.592 0.02 0.00 0.74 0.00 0.02 0.00 0.00 0.22
#> TCGA.DX.A8BU.01     3  0.1765      0.897 0.00 0.00 0.88 0.00 0.00 0.00 0.12 0.00
#> TCGA.MB.A5Y8.01     4  0.2650      0.787 0.24 0.00 0.00 0.76 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QS.01     8  0.3036      0.471 0.00 0.04 0.18 0.00 0.00 0.00 0.00 0.78
#> TCGA.3R.A8YX.01     4  0.0000      0.875 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.SI.A71O.01     1  0.5897      0.586 0.38 0.00 0.00 0.00 0.36 0.20 0.00 0.06
#> TCGA.DX.A8BS.01     5  0.1091      0.509 0.06 0.00 0.00 0.00 0.94 0.00 0.00 0.00
#> TCGA.PC.A5DM.01     5  0.4672      0.283 0.02 0.28 0.00 0.00 0.60 0.00 0.00 0.10
#> TCGA.DX.A6YQ.01     2  0.3170      0.804 0.00 0.76 0.00 0.00 0.00 0.00 0.20 0.04
#> TCGA.QC.A7B5.01     1  0.4622      0.704 0.56 0.00 0.00 0.00 0.14 0.30 0.00 0.00
#> TCGA.LI.A9QH.01     3  0.1765      0.897 0.00 0.00 0.88 0.00 0.00 0.00 0.12 0.00
#> TCGA.DX.A8BZ.01     6  0.0471      0.918 0.02 0.00 0.00 0.00 0.00 0.98 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-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 , Node0112 , Node0211-leaf , Node0212-leaf , Node0213-leaf , Node0221-leaf , Node0222-leaf , Node0231-leaf , Node0232-leaf , Node0233-leaf , Node0311-leaf , Node0312-leaf , Node0313-leaf , Node0321-leaf , Node0322-leaf , Node0323-leaf , Node0341-leaf , Node0342-leaf , Node0421-leaf , Node0422 , Node0423 , Node0424-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 19 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 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.5268 0.474   0.474
#> 3 3 0.825           0.957       0.958         0.2944 0.743   0.506
#> 4 4 0.842           0.929       0.954         0.0994 0.953   0.849
#> 5 5 0.795           0.859       0.879         0.0754 0.912   0.667
#> 6 6 0.760           0.742       0.876         0.0388 0.982   0.900
#> 7 7 0.819           0.666       0.857         0.0283 0.988   0.926
#> 8 8 0.871           0.628       0.871         0.0210 0.977   0.840

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.DX.AB2O.01     2       0          1  0  1
#> TCGA.X6.A8C3.01     1       0          1  1  0
#> TCGA.DX.AB2W.01     1       0          1  1  0
#> TCGA.DX.A6Z0.01     1       0          1  1  0
#> TCGA.X6.A8C2.01     2       0          1  0  1
#> TCGA.DX.AB2Q.01     1       0          1  1  0
#> TCGA.DX.A8BL.01     1       0          1  1  0
#> TCGA.X6.A7W8.01     1       0          1  1  0
#> TCGA.K1.A6RV.01     2       0          1  0  1
#> TCGA.DX.A3LT.01     2       0          1  0  1
#> TCGA.DX.A48K.01     2       0          1  0  1
#> TCGA.SI.AA8B.01     2       0          1  0  1
#> TCGA.DX.A6YZ.01     1       0          1  1  0
#> TCGA.DX.AB2P.01     2       0          1  0  1
#> TCGA.DX.A7EF.01     1       0          1  1  0
#> TCGA.SI.A71O.01     2       0          1  0  1
#> TCGA.DX.A8BS.01     2       0          1  0  1
#> TCGA.QC.A7B5.01     2       0          1  0  1
#> TCGA.DX.A8BZ.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.DX.AB2O.01     3   0.153      0.853 0.00 0.04 0.96
#> TCGA.X6.A8C3.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.AB2W.01     3   0.369      0.916 0.14 0.00 0.86
#> TCGA.DX.A6Z0.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.X6.A8C2.01     2   0.000      0.978 0.00 1.00 0.00
#> TCGA.DX.AB2Q.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A8BL.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.X6.A7W8.01     3   0.369      0.916 0.14 0.00 0.86
#> TCGA.K1.A6RV.01     2   0.000      0.978 0.00 1.00 0.00
#> TCGA.DX.A3LT.01     3   0.153      0.853 0.00 0.04 0.96
#> TCGA.DX.A48K.01     2   0.153      0.977 0.00 0.96 0.04
#> TCGA.SI.AA8B.01     2   0.000      0.978 0.00 1.00 0.00
#> TCGA.DX.A6YZ.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.AB2P.01     2   0.000      0.978 0.00 1.00 0.00
#> TCGA.DX.A7EF.01     3   0.334      0.915 0.12 0.00 0.88
#> TCGA.SI.A71O.01     2   0.207      0.965 0.00 0.94 0.06
#> TCGA.DX.A8BS.01     2   0.153      0.977 0.00 0.96 0.04
#> TCGA.QC.A7B5.01     2   0.153      0.977 0.00 0.96 0.04
#> TCGA.DX.A8BZ.01     3   0.369      0.916 0.14 0.00 0.86

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette p1   p2   p3   p4
#> TCGA.DX.AB2O.01     4  0.0000      1.000  0 0.00 0.00 1.00
#> TCGA.X6.A8C3.01     1  0.0000      1.000  1 0.00 0.00 0.00
#> TCGA.DX.AB2W.01     3  0.0707      0.980  0 0.00 0.98 0.02
#> TCGA.DX.A6Z0.01     1  0.0000      1.000  1 0.00 0.00 0.00
#> TCGA.X6.A8C2.01     2  0.0000      0.874  0 1.00 0.00 0.00
#> TCGA.DX.AB2Q.01     1  0.0000      1.000  1 0.00 0.00 0.00
#> TCGA.DX.A8BL.01     1  0.0000      1.000  1 0.00 0.00 0.00
#> TCGA.X6.A7W8.01     3  0.0000      0.981  0 0.00 1.00 0.00
#> TCGA.K1.A6RV.01     2  0.0000      0.874  0 1.00 0.00 0.00
#> TCGA.DX.A3LT.01     4  0.0000      1.000  0 0.00 0.00 1.00
#> TCGA.DX.A48K.01     2  0.3172      0.856  0 0.84 0.00 0.16
#> TCGA.SI.AA8B.01     2  0.0000      0.874  0 1.00 0.00 0.00
#> TCGA.DX.A6YZ.01     1  0.0000      1.000  1 0.00 0.00 0.00
#> TCGA.DX.AB2P.01     2  0.0000      0.874  0 1.00 0.00 0.00
#> TCGA.DX.A7EF.01     3  0.0000      0.981  0 0.00 1.00 0.00
#> TCGA.SI.A71O.01     2  0.4522      0.680  0 0.68 0.00 0.32
#> TCGA.DX.A8BS.01     2  0.3400      0.844  0 0.82 0.00 0.18
#> TCGA.QC.A7B5.01     2  0.3172      0.856  0 0.84 0.00 0.16
#> TCGA.DX.A8BZ.01     3  0.1211      0.968  0 0.00 0.96 0.04

show/hide code output

cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#>                 class entropy silhouette   p1   p2   p3   p4   p5
#> TCGA.DX.AB2O.01     4  0.1732      0.861 0.00 0.08 0.00 0.92 0.00
#> TCGA.X6.A8C3.01     1  0.0000      0.975 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2W.01     3  0.1216      0.822 0.02 0.00 0.96 0.02 0.00
#> TCGA.DX.A6Z0.01     1  0.1410      0.950 0.94 0.00 0.06 0.00 0.00
#> TCGA.X6.A8C2.01     5  0.3561      1.000 0.00 0.26 0.00 0.00 0.74
#> TCGA.DX.AB2Q.01     1  0.0000      0.975 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BL.01     1  0.1043      0.963 0.96 0.00 0.04 0.00 0.00
#> TCGA.X6.A7W8.01     3  0.3731      0.808 0.00 0.00 0.80 0.04 0.16
#> TCGA.K1.A6RV.01     2  0.3684      0.374 0.00 0.72 0.00 0.00 0.28
#> TCGA.DX.A3LT.01     4  0.3109      0.851 0.00 0.20 0.00 0.80 0.00
#> TCGA.DX.A48K.01     2  0.1648      0.828 0.00 0.94 0.00 0.02 0.04
#> TCGA.SI.AA8B.01     5  0.3561      1.000 0.00 0.26 0.00 0.00 0.74
#> TCGA.DX.A6YZ.01     1  0.0000      0.975 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2P.01     5  0.3561      1.000 0.00 0.26 0.00 0.00 0.74
#> TCGA.DX.A7EF.01     3  0.5013      0.749 0.00 0.00 0.68 0.08 0.24
#> TCGA.SI.A71O.01     2  0.2280      0.727 0.00 0.88 0.00 0.12 0.00
#> TCGA.DX.A8BS.01     2  0.0609      0.823 0.00 0.98 0.00 0.02 0.00
#> TCGA.QC.A7B5.01     2  0.1043      0.823 0.00 0.96 0.00 0.00 0.04
#> TCGA.DX.A8BZ.01     3  0.1648      0.814 0.02 0.00 0.94 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.DX.AB2O.01     4  0.0000      0.567 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.X6.A8C3.01     1  0.0000      0.898 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2W.01     3  0.1814      0.694 0.00 0.00 0.90 0.00 0.00 0.10
#> TCGA.DX.A6Z0.01     1  0.4179      0.793 0.76 0.00 0.16 0.00 0.02 0.06
#> TCGA.X6.A8C2.01     5  0.1267      1.000 0.00 0.06 0.00 0.00 0.94 0.00
#> TCGA.DX.AB2Q.01     1  0.0000      0.898 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BL.01     1  0.3572      0.841 0.82 0.00 0.10 0.00 0.02 0.06
#> TCGA.X6.A7W8.01     3  0.4172      0.485 0.00 0.00 0.68 0.00 0.04 0.28
#> TCGA.K1.A6RV.01     2  0.4247      0.605 0.00 0.70 0.00 0.00 0.24 0.06
#> TCGA.DX.A3LT.01     4  0.4172      0.563 0.00 0.28 0.00 0.68 0.00 0.04
#> TCGA.DX.A48K.01     2  0.1814      0.831 0.00 0.90 0.00 0.00 0.10 0.00
#> TCGA.SI.AA8B.01     5  0.1267      1.000 0.00 0.06 0.00 0.00 0.94 0.00
#> TCGA.DX.A6YZ.01     1  0.0000      0.898 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2P.01     5  0.1267      1.000 0.00 0.06 0.00 0.00 0.94 0.00
#> TCGA.DX.A7EF.01     6  0.3309      0.000 0.00 0.00 0.28 0.00 0.00 0.72
#> TCGA.SI.A71O.01     2  0.3324      0.687 0.00 0.84 0.00 0.06 0.02 0.08
#> TCGA.DX.A8BS.01     2  0.1556      0.832 0.00 0.92 0.00 0.00 0.08 0.00
#> TCGA.QC.A7B5.01     2  0.1807      0.826 0.00 0.92 0.00 0.00 0.06 0.02
#> TCGA.DX.A8BZ.01     3  0.0547      0.687 0.00 0.00 0.98 0.00 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.DX.AB2O.01     4  0.0000      0.412 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.X6.A8C3.01     1  0.0000      0.775 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2W.01     3  0.1928      0.850 0.00 0.00 0.90 0.00 0.00 0.02 0.08
#> TCGA.DX.A6Z0.01     1  0.5938      0.500 0.52 0.00 0.26 0.02 0.02 0.00 0.18
#> TCGA.X6.A8C2.01     5  0.0504      1.000 0.00 0.02 0.00 0.00 0.98 0.00 0.00
#> TCGA.DX.AB2Q.01     1  0.0000      0.775 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BL.01     1  0.5086      0.610 0.62 0.00 0.20 0.00 0.02 0.00 0.16
#> TCGA.X6.A7W8.01     7  0.5341      0.000 0.00 0.00 0.24 0.00 0.00 0.26 0.50
#> TCGA.K1.A6RV.01     2  0.4538      0.487 0.00 0.62 0.00 0.00 0.10 0.00 0.28
#> TCGA.DX.A3LT.01     4  0.5385      0.421 0.00 0.32 0.08 0.56 0.00 0.02 0.02
#> TCGA.DX.A48K.01     2  0.0504      0.821 0.00 0.98 0.00 0.00 0.02 0.00 0.00
#> TCGA.SI.AA8B.01     5  0.0504      1.000 0.00 0.02 0.00 0.00 0.98 0.00 0.00
#> TCGA.DX.A6YZ.01     1  0.0000      0.775 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2P.01     5  0.0504      1.000 0.00 0.02 0.00 0.00 0.98 0.00 0.00
#> TCGA.DX.A7EF.01     6  0.1433      0.000 0.00 0.00 0.08 0.00 0.00 0.92 0.00
#> TCGA.SI.A71O.01     2  0.3346      0.720 0.00 0.84 0.00 0.02 0.04 0.04 0.06
#> TCGA.DX.A8BS.01     2  0.0504      0.819 0.00 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.QC.A7B5.01     2  0.0504      0.821 0.00 0.98 0.00 0.00 0.02 0.00 0.00
#> TCGA.DX.A8BZ.01     3  0.0000      0.859 0.00 0.00 1.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.DX.AB2O.01     4  0.0000      0.300 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C3.01     1  0.0941      0.804 0.96 0.00 0.00 0.00 0.00 0.02 0.00 0.02
#> TCGA.DX.AB2W.01     3  0.0000      0.958 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6Z0.01     1  0.5745      0.631 0.60 0.00 0.06 0.00 0.00 0.14 0.14 0.06
#> TCGA.X6.A8C2.01     5  0.0000      1.000 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2Q.01     1  0.0941      0.804 0.96 0.00 0.00 0.00 0.00 0.02 0.00 0.02
#> TCGA.DX.A8BL.01     1  0.4643      0.710 0.70 0.00 0.04 0.00 0.00 0.12 0.12 0.02
#> TCGA.X6.A7W8.01     7  0.2114      0.000 0.00 0.00 0.16 0.00 0.00 0.00 0.84 0.00
#> TCGA.K1.A6RV.01     8  0.3291      0.000 0.00 0.28 0.00 0.00 0.02 0.00 0.00 0.70
#> TCGA.DX.A3LT.01     4  0.4657      0.134 0.00 0.42 0.04 0.50 0.00 0.00 0.00 0.04
#> TCGA.DX.A48K.01     2  0.1275      0.783 0.00 0.94 0.00 0.00 0.04 0.00 0.00 0.02
#> TCGA.SI.AA8B.01     5  0.0000      1.000 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A6YZ.01     1  0.0000      0.806 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2P.01     5  0.0000      1.000 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A7EF.01     6  0.2725      0.000 0.00 0.00 0.04 0.00 0.00 0.82 0.14 0.00
#> TCGA.SI.A71O.01     2  0.4492      0.501 0.00 0.70 0.00 0.06 0.00 0.02 0.04 0.18
#> TCGA.DX.A8BS.01     2  0.1408      0.781 0.00 0.94 0.00 0.00 0.02 0.00 0.02 0.02
#> TCGA.QC.A7B5.01     2  0.1557      0.766 0.00 0.92 0.00 0.00 0.02 0.00 0.00 0.06
#> TCGA.DX.A8BZ.01     3  0.0941      0.958 0.00 0.00 0.96 0.00 0.00 0.02 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-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 , Node0112 , Node0211-leaf , Node0212-leaf , Node0213-leaf , Node0221-leaf , Node0222-leaf , Node0231-leaf , Node0232-leaf , Node0233-leaf , Node0311-leaf , Node0312-leaf , Node0313-leaf , Node0321-leaf , Node0322-leaf , Node0323-leaf , Node0341-leaf , Node0342-leaf , Node0421-leaf , Node0422 , Node0423 , Node0424-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 13 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-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.5389 0.462   0.462
#> 3 3 0.705           0.786       0.795         0.2214 1.000   1.000
#> 4 4 0.744           0.928       0.886         0.1598 0.744   0.444
#> 5 5 0.782           0.815       0.858         0.0715 0.962   0.812
#> 6 6 0.859           0.732       0.857         0.0557 1.000   1.000
#> 7 7 0.846           0.449       0.752         0.0300 0.923   0.571
#> 8 8 0.846           0.414       0.792         0.0273 0.923   0.455

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.IE.A4EJ.01     1       0          1  1  0
#> TCGA.DX.A7EU.01     1       0          1  1  0
#> TCGA.DX.AATS.01     2       0          1  0  1
#> TCGA.DX.A3M1.01     1       0          1  1  0
#> TCGA.DX.A6YR.01     1       0          1  1  0
#> TCGA.IE.A6BZ.01     1       0          1  1  0
#> TCGA.DX.A6B8.01     2       0          1  0  1
#> TCGA.DX.A3UA.01     2       0          1  0  1
#> TCGA.QQ.A5VC.01     2       0          1  0  1
#> TCGA.DX.A8BK.01     1       0          1  1  0
#> TCGA.HS.A5N9.01     2       0          1  0  1
#> TCGA.PC.A5DM.01     2       0          1  0  1
#> TCGA.DX.A6YQ.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.IE.A4EJ.01     1   0.000      0.889 1.00 0.00 0.00
#> TCGA.DX.A7EU.01     1   0.000      0.889 1.00 0.00 0.00
#> TCGA.DX.AATS.01     2   0.000      0.774 0.00 1.00 0.00
#> TCGA.DX.A3M1.01     1   0.583      0.763 0.66 0.00 0.34
#> TCGA.DX.A6YR.01     1   0.000      0.889 1.00 0.00 0.00
#> TCGA.IE.A6BZ.01     1   0.000      0.889 1.00 0.00 0.00
#> TCGA.DX.A6B8.01     2   0.000      0.774 0.00 1.00 0.00
#> TCGA.DX.A3UA.01     2   0.624      0.723 0.00 0.56 0.44
#> TCGA.QQ.A5VC.01     2   0.000      0.774 0.00 1.00 0.00
#> TCGA.DX.A8BK.01     1   0.583      0.763 0.66 0.00 0.34
#> TCGA.HS.A5N9.01     2   0.480      0.647 0.00 0.78 0.22
#> TCGA.PC.A5DM.01     2   0.624      0.723 0.00 0.56 0.44
#> TCGA.DX.A6YQ.01     2   0.624      0.723 0.00 0.56 0.44

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2   p3   p4
#> TCGA.IE.A4EJ.01     1  0.2011      0.931 0.92 0.08 0.00 0.00
#> TCGA.DX.A7EU.01     1  0.2011      0.931 0.92 0.08 0.00 0.00
#> TCGA.DX.AATS.01     2  0.2345      0.900 0.00 0.90 0.00 0.10
#> TCGA.DX.A3M1.01     3  0.4624      1.000 0.34 0.00 0.66 0.00
#> TCGA.DX.A6YR.01     1  0.0000      0.931 1.00 0.00 0.00 0.00
#> TCGA.IE.A6BZ.01     1  0.0000      0.931 1.00 0.00 0.00 0.00
#> TCGA.DX.A6B8.01     2  0.2345      0.900 0.00 0.90 0.00 0.10
#> TCGA.DX.A3UA.01     4  0.0000      0.992 0.00 0.00 0.00 1.00
#> TCGA.QQ.A5VC.01     2  0.2345      0.900 0.00 0.90 0.00 0.10
#> TCGA.DX.A8BK.01     3  0.4624      1.000 0.34 0.00 0.66 0.00
#> TCGA.HS.A5N9.01     2  0.6299      0.671 0.00 0.60 0.32 0.08
#> TCGA.PC.A5DM.01     4  0.0707      0.984 0.00 0.00 0.02 0.98
#> TCGA.DX.A6YQ.01     4  0.0000      0.992 0.00 0.00 0.00 1.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.IE.A4EJ.01     1   0.639      0.755 0.48 0.00 0.18 0.00 0.34
#> TCGA.DX.A7EU.01     1   0.627      0.755 0.52 0.00 0.18 0.00 0.30
#> TCGA.DX.AATS.01     2   0.141      1.000 0.00 0.94 0.00 0.06 0.00
#> TCGA.DX.A3M1.01     3   0.000      0.968 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A6YR.01     1   0.392      0.755 0.78 0.00 0.18 0.00 0.04
#> TCGA.IE.A6BZ.01     1   0.293      0.755 0.82 0.00 0.18 0.00 0.00
#> TCGA.DX.A6B8.01     2   0.141      1.000 0.00 0.94 0.00 0.06 0.00
#> TCGA.DX.A3UA.01     4   0.252      0.853 0.14 0.00 0.00 0.86 0.00
#> TCGA.QQ.A5VC.01     2   0.141      1.000 0.00 0.94 0.00 0.06 0.00
#> TCGA.DX.A8BK.01     3   0.104      0.968 0.00 0.00 0.96 0.00 0.04
#> TCGA.HS.A5N9.01     5   0.423      0.000 0.00 0.42 0.00 0.00 0.58
#> TCGA.PC.A5DM.01     4   0.208      0.882 0.04 0.00 0.00 0.92 0.04
#> TCGA.DX.A6YQ.01     4   0.000      0.903 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.IE.A4EJ.01     6  0.0937      0.698 0.04 0.00 0.00 0.00 0.00 0.96
#> TCGA.DX.A7EU.01     6  0.0547      0.693 0.00 0.00 0.00 0.00 0.02 0.98
#> TCGA.DX.AATS.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3M1.01     3  0.0547      0.793 0.00 0.00 0.98 0.00 0.00 0.02
#> TCGA.DX.A6YR.01     6  0.3828      0.698 0.44 0.00 0.00 0.00 0.00 0.56
#> TCGA.IE.A6BZ.01     6  0.3797      0.693 0.42 0.00 0.00 0.00 0.00 0.58
#> TCGA.DX.A6B8.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3UA.01     4  0.0000      0.641 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.QQ.A5VC.01     2  0.0000      1.000 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BK.01     3  0.4444      0.793 0.08 0.00 0.74 0.00 0.16 0.02
#> TCGA.HS.A5N9.01     5  0.2631      0.000 0.00 0.18 0.00 0.00 0.82 0.00
#> TCGA.PC.A5DM.01     4  0.3851      0.734 0.46 0.00 0.00 0.54 0.00 0.00
#> TCGA.DX.A6YQ.01     4  0.3916      0.776 0.30 0.00 0.02 0.68 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.IE.A4EJ.01     7  0.5936     -0.624 0.00 0.16 0.00 0.00 0.04 0.40 0.40
#> TCGA.DX.A7EU.01     6  0.3525      0.279 0.00 0.00 0.00 0.00 0.00 0.56 0.44
#> TCGA.DX.AATS.01     1  0.1928      0.905 0.90 0.08 0.02 0.00 0.00 0.00 0.00
#> TCGA.DX.A3M1.01     3  0.3815      0.672 0.00 0.36 0.62 0.00 0.00 0.02 0.00
#> TCGA.DX.A6YR.01     6  0.3770      0.478 0.00 0.18 0.00 0.00 0.00 0.74 0.08
#> TCGA.IE.A6BZ.01     6  0.0000      0.541 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.A6B8.01     1  0.0000      0.954 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3UA.01     7  0.5338     -0.471 0.00 0.20 0.00 0.32 0.00 0.00 0.48
#> TCGA.QQ.A5VC.01     1  0.0000      0.954 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BK.01     3  0.0504      0.672 0.00 0.00 0.98 0.00 0.00 0.02 0.00
#> TCGA.HS.A5N9.01     5  0.0863      0.000 0.04 0.00 0.00 0.00 0.96 0.00 0.00
#> TCGA.PC.A5DM.01     4  0.0000      0.741 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A6YQ.01     4  0.2945      0.734 0.00 0.26 0.00 0.74 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.IE.A4EJ.01     7  0.2267      0.482 0.00 0.18 0.00 0.00 0.00 0.00 0.82 0.00
#> TCGA.DX.A7EU.01     7  0.5512      0.517 0.00 0.28 0.00 0.00 0.02 0.26 0.44 0.00
#> TCGA.DX.AATS.01     1  0.1765      0.888 0.88 0.00 0.00 0.00 0.00 0.00 0.12 0.00
#> TCGA.DX.A3M1.01     3  0.0000      0.000 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YR.01     2  0.3843      0.570 0.00 0.70 0.00 0.00 0.04 0.02 0.24 0.00
#> TCGA.IE.A6BZ.01     2  0.0000      0.596 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6B8.01     1  0.0471      0.938 0.98 0.00 0.00 0.00 0.00 0.02 0.00 0.00
#> TCGA.DX.A3UA.01     8  0.5246     -0.250 0.00 0.00 0.00 0.28 0.00 0.34 0.00 0.38
#> TCGA.QQ.A5VC.01     1  0.0000      0.938 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BK.01     8  0.3193     -0.417 0.00 0.00 0.38 0.00 0.00 0.00 0.00 0.62
#> TCGA.HS.A5N9.01     5  0.1091      0.000 0.06 0.00 0.00 0.00 0.94 0.00 0.00 0.00
#> TCGA.PC.A5DM.01     4  0.4100      0.565 0.00 0.00 0.00 0.58 0.00 0.36 0.06 0.00
#> TCGA.DX.A6YQ.01     4  0.0000      0.554 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-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.


Node023

Parent node: Node02. Child nodes: Node0111 , Node0112 , Node0211-leaf , Node0212-leaf , Node0213-leaf , Node0221-leaf , Node0222-leaf , Node0231-leaf , Node0232-leaf , Node0233-leaf , Node0311-leaf , Node0312-leaf , Node0313-leaf , Node0321-leaf , Node0322-leaf , Node0323-leaf , Node0341-leaf , Node0342-leaf , Node0421-leaf , Node0422 , Node0423 , Node0424-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 12 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 7.
#> 
#> 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 1.000           0.979       0.980         0.5128 0.470   0.470
#> 3 3 1.000           1.000       1.000         0.3007 0.773   0.559
#> 4 4 1.000           0.906       0.990         0.0681 0.955   0.864
#> 5 5 1.000           0.830       0.998         0.0425 0.970   0.895
#> 6 6 1.000           0.657       0.990         0.0252 0.985   0.941
#> 7 7 1.000           0.583       1.000         0.0947 0.924   0.688
#> 8 8 0.894           0.458       0.957         0.0973 0.909   0.455

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

suggest_best_k(res)
#> [1] 7
#> 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.DX.AB3C.01     2   0.000      0.938 0.00 1.00
#> TCGA.DX.AB3B.01     2   0.000      0.938 0.00 1.00
#> TCGA.FX.A3TO.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A8BM.01     2   0.402      0.957 0.08 0.92
#> TCGA.LI.A67I.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A6YV.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A6YS.01     2   0.402      0.957 0.08 0.92
#> TCGA.DX.A23R.01     2   0.402      0.957 0.08 0.92
#> TCGA.SG.A6Z4.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A8BU.01     1   0.000      1.000 1.00 0.00
#> TCGA.KD.A5QS.01     1   0.000      1.000 1.00 0.00
#> TCGA.LI.A9QH.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.DX.AB3C.01     3       0          1  0  0  1
#> TCGA.DX.AB3B.01     3       0          1  0  0  1
#> TCGA.FX.A3TO.01     1       0          1  1  0  0
#> TCGA.DX.A8BM.01     2       0          1  0  1  0
#> TCGA.LI.A67I.01     2       0          1  0  1  0
#> TCGA.DX.A6YV.01     1       0          1  1  0  0
#> TCGA.DX.A6YS.01     2       0          1  0  1  0
#> TCGA.DX.A23R.01     2       0          1  0  1  0
#> TCGA.SG.A6Z4.01     1       0          1  1  0  0
#> TCGA.DX.A8BU.01     1       0          1  1  0  0
#> TCGA.KD.A5QS.01     1       0          1  1  0  0
#> TCGA.LI.A9QH.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.DX.AB3C.01     3   0.000      1.000  0 0.00  1 0.00
#> TCGA.DX.AB3B.01     3   0.000      1.000  0 0.00  1 0.00
#> TCGA.FX.A3TO.01     1   0.000      1.000  1 0.00  0 0.00
#> TCGA.DX.A8BM.01     2   0.000      0.968  0 1.00  0 0.00
#> TCGA.LI.A67I.01     4   0.164      0.000  0 0.06  0 0.94
#> TCGA.DX.A6YV.01     1   0.000      1.000  1 0.00  0 0.00
#> TCGA.DX.A6YS.01     2   0.000      0.968  0 1.00  0 0.00
#> TCGA.DX.A23R.01     2   0.164      0.936  0 0.94  0 0.06
#> TCGA.SG.A6Z4.01     1   0.000      1.000  1 0.00  0 0.00
#> TCGA.DX.A8BU.01     1   0.000      1.000  1 0.00  0 0.00
#> TCGA.KD.A5QS.01     1   0.000      1.000  1 0.00  0 0.00
#> TCGA.LI.A9QH.01     1   0.000      1.000  1 0.00  0 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.DX.AB3C.01     3  0.0000       1.00  0 0.00  1  0 0.00
#> TCGA.DX.AB3B.01     3  0.0000       1.00  0 0.00  1  0 0.00
#> TCGA.FX.A3TO.01     1  0.0000       1.00  1 0.00  0  0 0.00
#> TCGA.DX.A8BM.01     2  0.0609       0.98  0 0.98  0  0 0.02
#> TCGA.LI.A67I.01     4  0.0000       0.00  0 0.00  0  1 0.00
#> TCGA.DX.A6YV.01     1  0.0000       1.00  1 0.00  0  0 0.00
#> TCGA.DX.A6YS.01     2  0.0000       0.98  0 1.00  0  0 0.00
#> TCGA.DX.A23R.01     5  0.0000       0.00  0 0.00  0  0 1.00
#> TCGA.SG.A6Z4.01     1  0.0000       1.00  1 0.00  0  0 0.00
#> TCGA.DX.A8BU.01     1  0.0000       1.00  1 0.00  0  0 0.00
#> TCGA.KD.A5QS.01     1  0.0000       1.00  1 0.00  0  0 0.00
#> TCGA.LI.A9QH.01     1  0.0000       1.00  1 0.00  0  0 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.DX.AB3C.01     3   0.000      1.000 0.00 0.00  1  0  0 0.00
#> TCGA.DX.AB3B.01     3   0.000      1.000 0.00 0.00  1  0  0 0.00
#> TCGA.FX.A3TO.01     1   0.000      0.989 1.00 0.00  0  0  0 0.00
#> TCGA.DX.A8BM.01     2   0.127      0.000 0.00 0.94  0  0  0 0.06
#> TCGA.LI.A67I.01     4   0.000      0.000 0.00 0.00  0  1  0 0.00
#> TCGA.DX.A6YV.01     1   0.000      0.989 1.00 0.00  0  0  0 0.00
#> TCGA.DX.A6YS.01     6   0.000      0.000 0.00 0.00  0  0  0 1.00
#> TCGA.DX.A23R.01     5   0.000      0.000 0.00 0.00  0  0  1 0.00
#> TCGA.SG.A6Z4.01     1   0.000      0.989 1.00 0.00  0  0  0 0.00
#> TCGA.DX.A8BU.01     1   0.127      0.942 0.94 0.06  0  0  0 0.00
#> TCGA.KD.A5QS.01     1   0.000      0.989 1.00 0.00  0  0  0 0.00
#> TCGA.LI.A9QH.01     1   0.000      0.989 1.00 0.00  0  0  0 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.DX.AB3C.01     3       0          1  0  0  1  0  0  0  0
#> TCGA.DX.AB3B.01     3       0          1  0  0  1  0  0  0  0
#> TCGA.FX.A3TO.01     1       0          1  1  0  0  0  0  0  0
#> TCGA.DX.A8BM.01     2       0          0  0  1  0  0  0  0  0
#> TCGA.LI.A67I.01     4       0          0  0  0  0  1  0  0  0
#> TCGA.DX.A6YV.01     1       0          1  1  0  0  0  0  0  0
#> TCGA.DX.A6YS.01     6       0          0  0  0  0  0  0  1  0
#> TCGA.DX.A23R.01     5       0          0  0  0  0  0  1  0  0
#> TCGA.SG.A6Z4.01     1       0          1  1  0  0  0  0  0  0
#> TCGA.DX.A8BU.01     7       0          0  0  0  0  0  0  0  1
#> TCGA.KD.A5QS.01     1       0          1  1  0  0  0  0  0  0
#> TCGA.LI.A9QH.01     1       0          1  1  0  0  0  0  0  0

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.DX.AB3C.01     3   0.000      1.000 0.00  0  1  0  0  0  0 0.00
#> TCGA.DX.AB3B.01     3   0.000      1.000 0.00  0  1  0  0  0  0 0.00
#> TCGA.FX.A3TO.01     1   0.176      0.838 0.88  0  0  0  0  0  0 0.12
#> TCGA.DX.A8BM.01     2   0.000      0.000 0.00  1  0  0  0  0  0 0.00
#> TCGA.LI.A67I.01     4   0.000      0.000 0.00  0  0  1  0  0  0 0.00
#> TCGA.DX.A6YV.01     1   0.000      0.924 1.00  0  0  0  0  0  0 0.00
#> TCGA.DX.A6YS.01     6   0.000      0.000 0.00  0  0  0  0  1  0 0.00
#> TCGA.DX.A23R.01     5   0.000      0.000 0.00  0  0  0  1  0  0 0.00
#> TCGA.SG.A6Z4.01     8   0.324      0.348 0.40  0  0  0  0  0  0 0.60
#> TCGA.DX.A8BU.01     7   0.000      0.000 0.00  0  0  0  0  0  1 0.00
#> TCGA.KD.A5QS.01     8   0.000      0.458 0.00  0  0  0  0  0  0 1.00
#> TCGA.LI.A9QH.01     1   0.000      0.924 1.00  0  0  0  0  0  0 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-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-leaf , Node013-leaf , Node014-leaf , Node015-leaf , Node016-leaf , Node021 , Node022 , Node023 , Node024-leaf , Node031 , Node032 , Node033-leaf , Node034 , Node041-leaf , Node042 , Node043-leaf , Node044-leaf , Node045-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 79 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 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           0.994       0.997         0.5059 0.494   0.494
#> 3 3 1.000           0.988       0.995         0.3343 0.713   0.481
#> 4 4 1.000           0.986       0.992         0.1203 0.849   0.580
#> 5 5 0.937           0.912       0.958         0.0438 0.935   0.748
#> 6 6 0.861           0.710       0.831         0.0317 0.973   0.875
#> 7 7 0.800           0.686       0.846         0.0206 0.943   0.734
#> 8 8 0.800           0.671       0.812         0.0166 0.987   0.930

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.QQ.A8VD.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A1KW.01     2    0.00      1.000 0.00 1.00
#> TCGA.HB.A3YV.01     2    0.00      1.000 0.00 1.00
#> TCGA.IF.A3RQ.01     2    0.00      1.000 0.00 1.00
#> TCGA.QC.AA9N.01     2    0.00      1.000 0.00 1.00
#> TCGA.FX.A48G.01     2    0.00      1.000 0.00 1.00
#> TCGA.3B.A9HS.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A3U5.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A7ES.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A6Z2.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A8BG.01     1    0.00      0.994 1.00 0.00
#> TCGA.VT.A80J.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A8BO.01     1    0.00      0.994 1.00 0.00
#> TCGA.FX.A3RE.01     2    0.00      1.000 0.00 1.00
#> TCGA.3B.A9HT.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A3M2.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.AB2L.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A1L1.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.AB2S.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A7EN.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.AB35.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A1KZ.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A1L3.01     2    0.00      1.000 0.00 1.00
#> TCGA.MB.A8JL.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.AB2V.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.AB2G.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A8BR.01     2    0.00      1.000 0.00 1.00
#> TCGA.RN.AAAQ.01     1    0.00      0.994 1.00 0.00
#> TCGA.IF.A4AJ.11     1    0.00      0.994 1.00 0.00
#> TCGA.DX.AB32.01     1    0.00      0.994 1.00 0.00
#> TCGA.3B.A9I3.01     1    0.00      0.994 1.00 0.00
#> TCGA.3B.A9HO.01     1    0.00      0.994 1.00 0.00
#> TCGA.UE.A6QT.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A3LS.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A2J1.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A2J4.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A6BE.01     1    0.00      0.994 1.00 0.00
#> TCGA.QQ.A5VA.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A3LY.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A3LU.01     1    0.00      0.994 1.00 0.00
#> TCGA.X9.A973.01     2    0.00      1.000 0.00 1.00
#> TCGA.MJ.A68J.01     1    0.76      0.718 0.78 0.22
#> TCGA.3B.A9HJ.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A6BK.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A48N.01     2    0.00      1.000 0.00 1.00
#> TCGA.K1.A3PO.01     1    0.00      0.994 1.00 0.00
#> TCGA.IS.A3K7.01     2    0.00      1.000 0.00 1.00
#> TCGA.PC.A5DN.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.AB2F.01     2    0.00      1.000 0.00 1.00
#> TCGA.SI.AA8C.01     2    0.00      1.000 0.00 1.00
#> TCGA.QQ.A5V2.01     1    0.00      0.994 1.00 0.00
#> TCGA.RN.A68Q.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A6BG.01     1    0.00      0.994 1.00 0.00
#> TCGA.FX.A3NK.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A6BH.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A48L.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A6YT.01     2    0.00      1.000 0.00 1.00
#> TCGA.3B.A9HL.01     2    0.00      1.000 0.00 1.00
#> TCGA.FX.A2QS.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A23Z.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A240.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A7EI.01     2    0.00      1.000 0.00 1.00
#> TCGA.K1.A6RT.01     1    0.00      0.994 1.00 0.00
#> TCGA.WK.A8XO.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A8BT.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A23T.01     1    0.00      0.994 1.00 0.00
#> TCGA.QQ.A8VG.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A23V.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A8BQ.01     1    0.00      0.994 1.00 0.00
#> TCGA.Z4.A8JB.01     2    0.00      1.000 0.00 1.00
#> TCGA.SI.A71P.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A8BP.01     1    0.00      0.994 1.00 0.00
#> TCGA.WK.A8XQ.01     2    0.00      1.000 0.00 1.00
#> TCGA.QQ.A8VF.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A23Y.01     2    0.00      1.000 0.00 1.00
#> TCGA.DX.A1L4.01     1    0.00      0.994 1.00 0.00
#> TCGA.MB.A5Y9.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A3U8.01     1    0.00      0.994 1.00 0.00
#> TCGA.DX.A3U6.01     1    0.00      0.994 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.QQ.A8VD.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.A1KW.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.HB.A3YV.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.IF.A3RQ.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.QC.AA9N.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.FX.A48G.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.3B.A9HS.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.A3U5.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.DX.A7ES.01     3   0.207      0.925 0.06 0.00 0.94
#> TCGA.DX.A6Z2.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.DX.A8BG.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.VT.A80J.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A8BO.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.FX.A3RE.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.3B.A9HT.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A3M2.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.AB2L.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.DX.A1L1.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.DX.AB2S.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A7EN.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.AB35.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.A1KZ.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.DX.A1L3.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.MB.A8JL.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.AB2V.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.AB2G.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.A8BR.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.RN.AAAQ.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.IF.A4AJ.11     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.DX.AB32.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.3B.A9I3.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.3B.A9HO.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.UE.A6QT.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A3LS.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.DX.A2J1.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A2J4.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A6BE.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.QQ.A5VA.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A3LY.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.A3LU.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.X9.A973.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.MJ.A68J.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.3B.A9HJ.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A6BK.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A48N.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.K1.A3PO.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.IS.A3K7.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.PC.A5DN.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.AB2F.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.SI.AA8C.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.QQ.A5V2.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.RN.A68Q.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A6BG.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.FX.A3NK.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.A6BH.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.A48L.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.A6YT.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.3B.A9HL.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.FX.A2QS.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.A23Z.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.DX.A240.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.A7EI.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.K1.A6RT.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.WK.A8XO.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.DX.A8BT.01     3   0.583      0.485 0.00 0.34 0.66
#> TCGA.DX.A23T.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.QQ.A8VG.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A23V.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.DX.A8BQ.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.Z4.A8JB.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.SI.A71P.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A8BP.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.WK.A8XQ.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.QQ.A8VF.01     2   0.000      1.000 0.00 1.00 0.00
#> TCGA.DX.A23Y.01     3   0.000      0.984 0.00 0.00 1.00
#> TCGA.DX.A1L4.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.MB.A5Y9.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A3U8.01     1   0.000      1.000 1.00 0.00 0.00
#> TCGA.DX.A3U6.01     1   0.000      1.000 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.QQ.A8VD.01     2  0.1211      0.957 0.00 0.96 0.04 0.00
#> TCGA.DX.A1KW.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.HB.A3YV.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.IF.A3RQ.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.QC.AA9N.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.FX.A48G.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.3B.A9HS.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.DX.A3U5.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.DX.A7ES.01     4  0.0000      0.986 0.00 0.00 0.00 1.00
#> TCGA.DX.A6Z2.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.DX.A8BG.01     4  0.0000      0.986 0.00 0.00 0.00 1.00
#> TCGA.VT.A80J.01     1  0.2011      0.930 0.92 0.00 0.00 0.08
#> TCGA.DX.A8BO.01     4  0.0000      0.986 0.00 0.00 0.00 1.00
#> TCGA.FX.A3RE.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.3B.A9HT.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.DX.A3M2.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2L.01     4  0.2011      0.917 0.00 0.00 0.08 0.92
#> TCGA.DX.A1L1.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.DX.AB2S.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.DX.A7EN.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.DX.AB35.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.DX.A1KZ.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.DX.A1L3.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.MB.A8JL.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.DX.AB2V.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.DX.AB2G.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.DX.A8BR.01     3  0.0707      0.979 0.00 0.00 0.98 0.02
#> TCGA.RN.AAAQ.01     4  0.0000      0.986 0.00 0.00 0.00 1.00
#> TCGA.IF.A4AJ.11     4  0.0000      0.986 0.00 0.00 0.00 1.00
#> TCGA.DX.AB32.01     4  0.0000      0.986 0.00 0.00 0.00 1.00
#> TCGA.3B.A9I3.01     4  0.1211      0.954 0.00 0.00 0.04 0.96
#> TCGA.3B.A9HO.01     4  0.0000      0.986 0.00 0.00 0.00 1.00
#> TCGA.UE.A6QT.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.DX.A3LS.01     4  0.0000      0.986 0.00 0.00 0.00 1.00
#> TCGA.DX.A2J1.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.DX.A2J4.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.DX.A6BE.01     4  0.0000      0.986 0.00 0.00 0.00 1.00
#> TCGA.QQ.A5VA.01     4  0.0000      0.986 0.00 0.00 0.00 1.00
#> TCGA.DX.A3LY.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.DX.A3LU.01     4  0.0000      0.986 0.00 0.00 0.00 1.00
#> TCGA.X9.A973.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.MJ.A68J.01     4  0.2345      0.897 0.00 0.00 0.10 0.90
#> TCGA.3B.A9HJ.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.DX.A6BK.01     1  0.1211      0.964 0.96 0.00 0.00 0.04
#> TCGA.DX.A48N.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.K1.A3PO.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.IS.A3K7.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.PC.A5DN.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.DX.AB2F.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.SI.AA8C.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.QQ.A5V2.01     4  0.0000      0.986 0.00 0.00 0.00 1.00
#> TCGA.RN.A68Q.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.DX.A6BG.01     1  0.1211      0.957 0.96 0.00 0.00 0.04
#> TCGA.FX.A3NK.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.DX.A6BH.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.DX.A48L.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.DX.A6YT.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.3B.A9HL.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.FX.A2QS.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.DX.A23Z.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.DX.A240.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.DX.A7EI.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.K1.A6RT.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.WK.A8XO.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.DX.A8BT.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.DX.A23T.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.QQ.A8VG.01     1  0.1211      0.964 0.96 0.00 0.00 0.04
#> TCGA.DX.A23V.01     4  0.0000      0.986 0.00 0.00 0.00 1.00
#> TCGA.DX.A8BQ.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.Z4.A8JB.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.SI.A71P.01     1  0.1211      0.964 0.96 0.00 0.00 0.04
#> TCGA.DX.A8BP.01     4  0.0000      0.986 0.00 0.00 0.00 1.00
#> TCGA.WK.A8XQ.01     2  0.0000      0.998 0.00 1.00 0.00 0.00
#> TCGA.QQ.A8VF.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.DX.A23Y.01     3  0.0000      0.999 0.00 0.00 1.00 0.00
#> TCGA.DX.A1L4.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.MB.A5Y9.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.DX.A3U8.01     1  0.2011      0.930 0.92 0.00 0.00 0.08
#> TCGA.DX.A3U6.01     1  0.0000      0.984 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.QQ.A8VD.01     5  0.2020      0.814 0.00 0.10 0.00 0.00 0.90
#> TCGA.DX.A1KW.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00
#> TCGA.HB.A3YV.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00
#> TCGA.IF.A3RQ.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00
#> TCGA.QC.AA9N.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00
#> TCGA.FX.A48G.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00
#> TCGA.3B.A9HS.01     3  0.0609      0.978 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.A3U5.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A7ES.01     4  0.0000      0.910 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.A6Z2.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A8BG.01     4  0.0000      0.910 0.00 0.00 0.00 1.00 0.00
#> TCGA.VT.A80J.01     4  0.3796      0.531 0.30 0.00 0.00 0.70 0.00
#> TCGA.DX.A8BO.01     4  0.1410      0.894 0.00 0.00 0.00 0.94 0.06
#> TCGA.FX.A3RE.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00
#> TCGA.3B.A9HT.01     1  0.0000      0.943 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3M2.01     1  0.0000      0.943 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2L.01     5  0.0609      0.837 0.00 0.00 0.02 0.00 0.98
#> TCGA.DX.A1L1.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.AB2S.01     1  0.0000      0.943 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7EN.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.AB35.01     2  0.0609      0.986 0.00 0.98 0.00 0.00 0.02
#> TCGA.DX.A1KZ.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A1L3.01     3  0.1043      0.950 0.00 0.00 0.96 0.00 0.04
#> TCGA.MB.A8JL.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2V.01     2  0.0609      0.986 0.00 0.98 0.00 0.00 0.02
#> TCGA.DX.AB2G.01     2  0.0609      0.986 0.00 0.98 0.00 0.00 0.02
#> TCGA.DX.A8BR.01     5  0.4287      0.148 0.00 0.00 0.46 0.00 0.54
#> TCGA.RN.AAAQ.01     4  0.0000      0.910 0.00 0.00 0.00 1.00 0.00
#> TCGA.IF.A4AJ.11     4  0.2020      0.871 0.00 0.00 0.00 0.90 0.10
#> TCGA.DX.AB32.01     4  0.0000      0.910 0.00 0.00 0.00 1.00 0.00
#> TCGA.3B.A9I3.01     4  0.3037      0.837 0.00 0.00 0.04 0.86 0.10
#> TCGA.3B.A9HO.01     4  0.0000      0.910 0.00 0.00 0.00 1.00 0.00
#> TCGA.UE.A6QT.01     1  0.0000      0.943 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3LS.01     4  0.2012      0.886 0.00 0.00 0.02 0.92 0.06
#> TCGA.DX.A2J1.01     1  0.0000      0.943 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A2J4.01     1  0.0000      0.943 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BE.01     4  0.0000      0.910 0.00 0.00 0.00 1.00 0.00
#> TCGA.QQ.A5VA.01     4  0.0000      0.910 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.A3LY.01     3  0.0609      0.978 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.A3LU.01     4  0.1410      0.894 0.00 0.00 0.00 0.94 0.06
#> TCGA.X9.A973.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00
#> TCGA.MJ.A68J.01     5  0.0609      0.837 0.00 0.00 0.02 0.00 0.98
#> TCGA.3B.A9HJ.01     1  0.0000      0.943 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BK.01     1  0.3561      0.690 0.74 0.00 0.00 0.26 0.00
#> TCGA.DX.A48N.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00
#> TCGA.K1.A3PO.01     1  0.0609      0.929 0.98 0.00 0.00 0.02 0.00
#> TCGA.IS.A3K7.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00
#> TCGA.PC.A5DN.01     3  0.0609      0.978 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.AB2F.01     2  0.0609      0.986 0.00 0.98 0.00 0.00 0.02
#> TCGA.SI.AA8C.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00
#> TCGA.QQ.A5V2.01     4  0.1043      0.892 0.00 0.00 0.04 0.96 0.00
#> TCGA.RN.A68Q.01     1  0.0000      0.943 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BG.01     1  0.1732      0.882 0.92 0.00 0.00 0.08 0.00
#> TCGA.FX.A3NK.01     2  0.0609      0.986 0.00 0.98 0.00 0.00 0.02
#> TCGA.DX.A6BH.01     2  0.0609      0.986 0.00 0.98 0.00 0.00 0.02
#> TCGA.DX.A48L.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A6YT.01     2  0.0609      0.986 0.00 0.98 0.00 0.00 0.02
#> TCGA.3B.A9HL.01     2  0.0609      0.986 0.00 0.98 0.00 0.00 0.02
#> TCGA.FX.A2QS.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A23Z.01     5  0.1732      0.834 0.00 0.00 0.08 0.00 0.92
#> TCGA.DX.A240.01     5  0.2732      0.765 0.00 0.16 0.00 0.00 0.84
#> TCGA.DX.A7EI.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00
#> TCGA.K1.A6RT.01     1  0.0000      0.943 1.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XO.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A8BT.01     3  0.0609      0.978 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.A23T.01     1  0.0000      0.943 1.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A8VG.01     1  0.3561      0.690 0.74 0.00 0.00 0.26 0.00
#> TCGA.DX.A23V.01     4  0.2331      0.873 0.00 0.00 0.02 0.90 0.08
#> TCGA.DX.A8BQ.01     1  0.0000      0.943 1.00 0.00 0.00 0.00 0.00
#> TCGA.Z4.A8JB.01     5  0.1410      0.836 0.00 0.00 0.06 0.00 0.94
#> TCGA.SI.A71P.01     1  0.3561      0.690 0.74 0.00 0.00 0.26 0.00
#> TCGA.DX.A8BP.01     4  0.0000      0.910 0.00 0.00 0.00 1.00 0.00
#> TCGA.WK.A8XQ.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00
#> TCGA.QQ.A8VF.01     3  0.0609      0.978 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.A23Y.01     3  0.0000      0.986 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A1L4.01     1  0.0000      0.943 1.00 0.00 0.00 0.00 0.00
#> TCGA.MB.A5Y9.01     1  0.0000      0.943 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U8.01     4  0.3983      0.440 0.34 0.00 0.00 0.66 0.00
#> TCGA.DX.A3U6.01     1  0.0000      0.943 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.QQ.A8VD.01     6  0.3198     0.7952 0.00 0.00 0.00 0.00 0.26 0.74
#> TCGA.DX.A1KW.01     2  0.0000     0.8464 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.HB.A3YV.01     2  0.0000     0.8464 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IF.A3RQ.01     2  0.1480     0.8294 0.00 0.94 0.02 0.00 0.00 0.04
#> TCGA.QC.AA9N.01     3  0.0000     0.9671 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.FX.A48G.01     2  0.3864     0.2167 0.00 0.52 0.00 0.00 0.00 0.48
#> TCGA.3B.A9HS.01     3  0.0937     0.9529 0.00 0.00 0.96 0.00 0.00 0.04
#> TCGA.DX.A3U5.01     3  0.0000     0.9671 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A7ES.01     4  0.0937     0.6964 0.00 0.00 0.00 0.96 0.04 0.00
#> TCGA.DX.A6Z2.01     3  0.0000     0.9671 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BG.01     4  0.0000     0.7043 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.VT.A80J.01     4  0.4247     0.4850 0.24 0.00 0.00 0.70 0.00 0.06
#> TCGA.DX.A8BO.01     4  0.3499     0.3899 0.00 0.00 0.00 0.68 0.32 0.00
#> TCGA.FX.A3RE.01     2  0.0000     0.8464 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HT.01     1  0.0000     0.9217 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3M2.01     1  0.0000     0.9217 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2L.01     5  0.1267     0.2687 0.00 0.00 0.00 0.00 0.94 0.06
#> TCGA.DX.A1L1.01     3  0.0000     0.9671 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2S.01     1  0.0000     0.9217 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7EN.01     2  0.0000     0.8464 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB35.01     2  0.3864     0.4176 0.00 0.52 0.00 0.00 0.00 0.48
#> TCGA.DX.A1KZ.01     3  0.0000     0.9671 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A1L3.01     3  0.2048     0.8565 0.00 0.00 0.88 0.00 0.12 0.00
#> TCGA.MB.A8JL.01     2  0.0000     0.8464 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2V.01     2  0.3592     0.7657 0.00 0.74 0.02 0.00 0.00 0.24
#> TCGA.DX.AB2G.01     2  0.3592     0.7657 0.00 0.74 0.02 0.00 0.00 0.24
#> TCGA.DX.A8BR.01     5  0.3309     0.2474 0.00 0.00 0.28 0.00 0.72 0.00
#> TCGA.RN.AAAQ.01     4  0.1807     0.6926 0.00 0.00 0.00 0.92 0.02 0.06
#> TCGA.IF.A4AJ.11     5  0.3851    -0.0021 0.00 0.00 0.00 0.46 0.54 0.00
#> TCGA.DX.AB32.01     4  0.0547     0.7015 0.00 0.00 0.00 0.98 0.02 0.00
#> TCGA.3B.A9I3.01     5  0.4337    -0.0498 0.00 0.00 0.02 0.48 0.50 0.00
#> TCGA.3B.A9HO.01     4  0.0937     0.6964 0.00 0.00 0.00 0.96 0.04 0.00
#> TCGA.UE.A6QT.01     1  0.1267     0.8716 0.94 0.00 0.00 0.06 0.00 0.00
#> TCGA.DX.A3LS.01     4  0.3578     0.3546 0.00 0.00 0.00 0.66 0.34 0.00
#> TCGA.DX.A2J1.01     1  0.0000     0.9217 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A2J4.01     1  0.0000     0.9217 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BE.01     4  0.0000     0.7043 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.QQ.A5VA.01     4  0.1267     0.6907 0.00 0.00 0.00 0.94 0.00 0.06
#> TCGA.DX.A3LY.01     3  0.0937     0.9529 0.00 0.00 0.96 0.00 0.00 0.04
#> TCGA.DX.A3LU.01     4  0.3647     0.3130 0.00 0.00 0.00 0.64 0.36 0.00
#> TCGA.X9.A973.01     3  0.0000     0.9671 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.MJ.A68J.01     5  0.1267     0.2687 0.00 0.00 0.00 0.00 0.94 0.06
#> TCGA.3B.A9HJ.01     1  0.0000     0.9217 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BK.01     4  0.4892     0.0150 0.44 0.00 0.00 0.50 0.00 0.06
#> TCGA.DX.A48N.01     2  0.0000     0.8464 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A3PO.01     1  0.0000     0.9217 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IS.A3K7.01     3  0.0000     0.9671 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.PC.A5DN.01     3  0.0937     0.9529 0.00 0.00 0.96 0.00 0.00 0.04
#> TCGA.DX.AB2F.01     2  0.3592     0.7657 0.00 0.74 0.02 0.00 0.00 0.24
#> TCGA.SI.AA8C.01     2  0.0000     0.8464 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A5V2.01     4  0.3697     0.6267 0.00 0.00 0.08 0.82 0.06 0.04
#> TCGA.RN.A68Q.01     1  0.0000     0.9217 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BG.01     1  0.1480     0.8701 0.94 0.00 0.00 0.04 0.02 0.00
#> TCGA.FX.A3NK.01     2  0.3592     0.7657 0.00 0.74 0.02 0.00 0.00 0.24
#> TCGA.DX.A6BH.01     2  0.3592     0.7657 0.00 0.74 0.02 0.00 0.00 0.24
#> TCGA.DX.A48L.01     2  0.0000     0.8464 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YT.01     2  0.3409     0.7221 0.00 0.70 0.00 0.00 0.00 0.30
#> TCGA.3B.A9HL.01     2  0.3592     0.7657 0.00 0.74 0.02 0.00 0.00 0.24
#> TCGA.FX.A2QS.01     2  0.0000     0.8464 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23Z.01     5  0.5371    -0.4667 0.00 0.00 0.12 0.00 0.52 0.36
#> TCGA.DX.A240.01     6  0.2350     0.7339 0.00 0.02 0.00 0.00 0.10 0.88
#> TCGA.DX.A7EI.01     2  0.0000     0.8464 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A6RT.01     1  0.0000     0.9217 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XO.01     3  0.0937     0.9368 0.00 0.00 0.96 0.00 0.04 0.00
#> TCGA.DX.A8BT.01     3  0.1556     0.9176 0.00 0.00 0.92 0.00 0.00 0.08
#> TCGA.DX.A23T.01     1  0.0000     0.9217 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A8VG.01     1  0.4892     0.0910 0.50 0.00 0.00 0.44 0.00 0.06
#> TCGA.DX.A23V.01     4  0.3647     0.3130 0.00 0.00 0.00 0.64 0.36 0.00
#> TCGA.DX.A8BQ.01     1  0.0000     0.9217 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.Z4.A8JB.01     6  0.3756     0.6779 0.00 0.00 0.00 0.00 0.40 0.60
#> TCGA.SI.A71P.01     1  0.4902     0.0203 0.48 0.00 0.00 0.46 0.00 0.06
#> TCGA.DX.A8BP.01     4  0.1267     0.6907 0.00 0.00 0.00 0.94 0.00 0.06
#> TCGA.WK.A8XQ.01     2  0.0547     0.8353 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.QQ.A8VF.01     3  0.0937     0.9529 0.00 0.00 0.96 0.00 0.00 0.04
#> TCGA.DX.A23Y.01     3  0.0000     0.9671 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A1L4.01     1  0.0000     0.9217 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MB.A5Y9.01     1  0.0000     0.9217 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U8.01     4  0.4552     0.4222 0.30 0.00 0.00 0.64 0.00 0.06
#> TCGA.DX.A3U6.01     1  0.0000     0.9217 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.QQ.A8VD.01     6  0.0863      0.344 0.00 0.00 0.00 0.00 0.04 0.96 0.00
#> TCGA.DX.A1KW.01     2  0.0000      0.784 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HB.A3YV.01     2  0.0000      0.784 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IF.A3RQ.01     2  0.3055      0.708 0.00 0.82 0.02 0.00 0.00 0.02 0.14
#> TCGA.QC.AA9N.01     3  0.0863      0.930 0.00 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.FX.A48G.01     7  0.5338      0.000 0.00 0.20 0.00 0.00 0.00 0.32 0.48
#> TCGA.3B.A9HS.01     3  0.1671      0.906 0.00 0.00 0.90 0.00 0.00 0.00 0.10
#> TCGA.DX.A3U5.01     3  0.0000      0.938 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7ES.01     4  0.2945      0.472 0.00 0.00 0.00 0.74 0.26 0.00 0.00
#> TCGA.DX.A6Z2.01     3  0.0000      0.938 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BG.01     4  0.1433      0.649 0.00 0.00 0.00 0.92 0.08 0.00 0.00
#> TCGA.VT.A80J.01     4  0.3086      0.611 0.16 0.00 0.00 0.80 0.00 0.00 0.04
#> TCGA.DX.A8BO.01     5  0.3459      0.482 0.00 0.00 0.00 0.40 0.60 0.00 0.00
#> TCGA.FX.A3RE.01     2  0.0000      0.784 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HT.01     1  0.1363      0.910 0.94 0.00 0.00 0.02 0.00 0.00 0.04
#> TCGA.DX.A3M2.01     1  0.0000      0.940 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2L.01     5  0.3911      0.229 0.00 0.00 0.00 0.00 0.70 0.06 0.24
#> TCGA.DX.A1L1.01     3  0.0504      0.924 0.00 0.00 0.98 0.00 0.02 0.00 0.00
#> TCGA.DX.AB2S.01     1  0.0000      0.940 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7EN.01     2  0.0000      0.784 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB35.01     6  0.4505     -0.271 0.00 0.44 0.00 0.00 0.00 0.50 0.06
#> TCGA.DX.A1KZ.01     3  0.0000      0.938 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A1L3.01     3  0.2421      0.838 0.00 0.00 0.88 0.00 0.02 0.02 0.08
#> TCGA.MB.A8JL.01     2  0.0000      0.784 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2V.01     2  0.5086      0.602 0.00 0.62 0.02 0.00 0.00 0.20 0.16
#> TCGA.DX.AB2G.01     2  0.4963      0.619 0.00 0.64 0.02 0.00 0.00 0.18 0.16
#> TCGA.DX.A8BR.01     5  0.6082      0.186 0.00 0.00 0.20 0.02 0.54 0.04 0.20
#> TCGA.RN.AAAQ.01     4  0.1671      0.620 0.00 0.00 0.00 0.90 0.10 0.00 0.00
#> TCGA.IF.A4AJ.11     5  0.3052      0.583 0.00 0.00 0.00 0.20 0.78 0.00 0.02
#> TCGA.DX.AB32.01     4  0.1671      0.641 0.00 0.00 0.00 0.90 0.10 0.00 0.00
#> TCGA.3B.A9I3.01     5  0.4107      0.581 0.00 0.00 0.04 0.24 0.70 0.00 0.02
#> TCGA.3B.A9HO.01     4  0.2832      0.498 0.00 0.00 0.00 0.76 0.24 0.00 0.00
#> TCGA.UE.A6QT.01     1  0.3086      0.772 0.80 0.00 0.00 0.16 0.00 0.00 0.04
#> TCGA.DX.A3LS.01     5  0.4214      0.439 0.00 0.00 0.04 0.40 0.56 0.00 0.00
#> TCGA.DX.A2J1.01     1  0.0504      0.937 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.DX.A2J4.01     1  0.0504      0.937 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.DX.A6BE.01     4  0.1671      0.642 0.00 0.00 0.00 0.90 0.10 0.00 0.00
#> TCGA.QQ.A5VA.01     4  0.0504      0.654 0.00 0.00 0.00 0.98 0.02 0.00 0.00
#> TCGA.DX.A3LY.01     3  0.1671      0.906 0.00 0.00 0.90 0.00 0.00 0.00 0.10
#> TCGA.DX.A3LU.01     5  0.3496      0.440 0.00 0.00 0.00 0.42 0.58 0.00 0.00
#> TCGA.X9.A973.01     3  0.0000      0.938 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.MJ.A68J.01     5  0.3795      0.244 0.00 0.00 0.00 0.00 0.72 0.06 0.22
#> TCGA.3B.A9HJ.01     1  0.0000      0.940 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BK.01     4  0.3745      0.544 0.26 0.00 0.00 0.70 0.00 0.00 0.04
#> TCGA.DX.A48N.01     2  0.0000      0.784 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A3PO.01     1  0.2421      0.887 0.88 0.00 0.00 0.02 0.02 0.00 0.08
#> TCGA.IS.A3K7.01     3  0.0000      0.938 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DN.01     3  0.1671      0.906 0.00 0.00 0.90 0.00 0.00 0.00 0.10
#> TCGA.DX.AB2F.01     2  0.5086      0.602 0.00 0.62 0.02 0.00 0.00 0.20 0.16
#> TCGA.SI.AA8C.01     2  0.0000      0.784 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A5V2.01     4  0.4742      0.246 0.00 0.00 0.16 0.62 0.22 0.00 0.00
#> TCGA.RN.A68Q.01     1  0.1166      0.917 0.94 0.00 0.00 0.00 0.00 0.00 0.06
#> TCGA.DX.A6BG.01     1  0.3404      0.823 0.82 0.00 0.00 0.04 0.06 0.00 0.08
#> TCGA.FX.A3NK.01     2  0.4825      0.632 0.00 0.66 0.02 0.00 0.00 0.16 0.16
#> TCGA.DX.A6BH.01     2  0.5293      0.546 0.00 0.58 0.02 0.00 0.00 0.24 0.16
#> TCGA.DX.A48L.01     2  0.0000      0.784 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YT.01     2  0.4487      0.502 0.00 0.60 0.00 0.00 0.00 0.32 0.08
#> TCGA.3B.A9HL.01     2  0.5086      0.602 0.00 0.62 0.02 0.00 0.00 0.20 0.16
#> TCGA.FX.A2QS.01     2  0.0000      0.784 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23Z.01     6  0.5990      0.255 0.00 0.00 0.12 0.00 0.16 0.56 0.16
#> TCGA.DX.A240.01     6  0.0863      0.279 0.00 0.00 0.00 0.00 0.00 0.96 0.04
#> TCGA.DX.A7EI.01     2  0.0000      0.784 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A6RT.01     1  0.0000      0.940 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8XO.01     3  0.0863      0.912 0.00 0.00 0.96 0.00 0.04 0.00 0.00
#> TCGA.DX.A8BT.01     3  0.2163      0.891 0.00 0.00 0.88 0.00 0.00 0.02 0.10
#> TCGA.DX.A23T.01     1  0.0504      0.937 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.QQ.A8VG.01     4  0.3841      0.519 0.28 0.00 0.00 0.68 0.00 0.00 0.04
#> TCGA.DX.A23V.01     5  0.3358      0.523 0.00 0.00 0.00 0.36 0.64 0.00 0.00
#> TCGA.DX.A8BQ.01     1  0.2512      0.842 0.86 0.00 0.00 0.10 0.00 0.00 0.04
#> TCGA.Z4.A8JB.01     6  0.3867      0.343 0.00 0.00 0.00 0.00 0.12 0.74 0.14
#> TCGA.SI.A71P.01     4  0.3745      0.544 0.26 0.00 0.00 0.70 0.00 0.00 0.04
#> TCGA.DX.A8BP.01     4  0.2081      0.598 0.00 0.00 0.00 0.86 0.14 0.00 0.00
#> TCGA.WK.A8XQ.01     2  0.0504      0.765 0.00 0.98 0.00 0.00 0.00 0.00 0.02
#> TCGA.QQ.A8VF.01     3  0.1671      0.906 0.00 0.00 0.90 0.00 0.00 0.00 0.10
#> TCGA.DX.A23Y.01     3  0.0000      0.938 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A1L4.01     1  0.0504      0.937 0.98 0.00 0.00 0.00 0.00 0.00 0.02
#> TCGA.MB.A5Y9.01     1  0.0863      0.922 0.96 0.00 0.00 0.00 0.00 0.00 0.04
#> TCGA.DX.A3U8.01     4  0.3086      0.611 0.16 0.00 0.00 0.80 0.00 0.00 0.04
#> TCGA.DX.A3U6.01     1  0.0000      0.940 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.QQ.A8VD.01     6  0.3619      0.715 0.14 0.00 0.00 0.00 0.00 0.74 0.12 0.00
#> TCGA.DX.A1KW.01     2  0.0000      0.750 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HB.A3YV.01     2  0.0000      0.750 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IF.A3RQ.01     2  0.3095      0.678 0.24 0.74 0.02 0.00 0.00 0.00 0.00 0.00
#> TCGA.QC.AA9N.01     3  0.0808      0.852 0.04 0.00 0.96 0.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A48G.01     7  0.6835     -0.143 0.28 0.14 0.00 0.00 0.02 0.26 0.30 0.00
#> TCGA.3B.A9HS.01     3  0.2534      0.775 0.22 0.00 0.78 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U5.01     3  0.0808      0.844 0.00 0.00 0.96 0.00 0.04 0.00 0.00 0.00
#> TCGA.DX.A7ES.01     4  0.3329      0.147 0.00 0.00 0.00 0.52 0.48 0.00 0.00 0.00
#> TCGA.DX.A6Z2.01     3  0.1275      0.840 0.00 0.00 0.94 0.00 0.04 0.00 0.02 0.00
#> TCGA.DX.A8BG.01     4  0.1563      0.718 0.00 0.00 0.00 0.90 0.10 0.00 0.00 0.00
#> TCGA.VT.A80J.01     4  0.0471      0.724 0.00 0.00 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.A8BO.01     5  0.3404      0.637 0.00 0.00 0.00 0.24 0.72 0.00 0.04 0.00
#> TCGA.FX.A3RE.01     2  0.0000      0.750 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HT.01     8  0.1341      0.850 0.00 0.00 0.00 0.08 0.00 0.00 0.00 0.92
#> TCGA.DX.A3M2.01     8  0.0000      0.887 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.AB2L.01     7  0.3142      0.439 0.00 0.00 0.00 0.00 0.36 0.00 0.64 0.00
#> TCGA.DX.A1L1.01     3  0.1557      0.821 0.00 0.00 0.92 0.00 0.06 0.00 0.02 0.00
#> TCGA.DX.AB2S.01     8  0.0000      0.887 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.A7EN.01     2  0.0000      0.750 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB35.01     2  0.5230      0.240 0.28 0.40 0.00 0.00 0.00 0.32 0.00 0.00
#> TCGA.DX.A1KZ.01     3  0.0000      0.856 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A1L3.01     3  0.3073      0.718 0.00 0.00 0.80 0.00 0.10 0.00 0.10 0.00
#> TCGA.MB.A8JL.01     2  0.0000      0.750 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2V.01     2  0.3992      0.603 0.44 0.52 0.04 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2G.01     2  0.4199      0.600 0.42 0.52 0.06 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BR.01     5  0.5123     -0.211 0.00 0.00 0.22 0.00 0.42 0.00 0.36 0.00
#> TCGA.RN.AAAQ.01     4  0.3337      0.630 0.04 0.00 0.00 0.78 0.16 0.02 0.00 0.00
#> TCGA.IF.A4AJ.11     5  0.3397      0.543 0.04 0.00 0.00 0.10 0.80 0.00 0.06 0.00
#> TCGA.DX.AB32.01     4  0.2267      0.676 0.00 0.00 0.00 0.82 0.18 0.00 0.00 0.00
#> TCGA.3B.A9I3.01     5  0.3585      0.460 0.04 0.00 0.06 0.02 0.82 0.02 0.04 0.00
#> TCGA.3B.A9HO.01     4  0.3658      0.326 0.02 0.00 0.00 0.58 0.40 0.00 0.00 0.00
#> TCGA.UE.A6QT.01     8  0.2852      0.650 0.00 0.00 0.00 0.28 0.00 0.00 0.00 0.72
#> TCGA.DX.A3LS.01     5  0.3601      0.651 0.00 0.00 0.06 0.16 0.76 0.00 0.02 0.00
#> TCGA.DX.A2J1.01     8  0.0000      0.887 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.A2J4.01     8  0.1563      0.842 0.10 0.00 0.00 0.00 0.00 0.00 0.00 0.90
#> TCGA.DX.A6BE.01     4  0.2267      0.667 0.00 0.00 0.00 0.82 0.18 0.00 0.00 0.00
#> TCGA.QQ.A5VA.01     4  0.0808      0.725 0.00 0.00 0.00 0.96 0.04 0.00 0.00 0.00
#> TCGA.DX.A3LY.01     3  0.2534      0.775 0.22 0.00 0.78 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3LU.01     5  0.2650      0.620 0.00 0.00 0.00 0.24 0.76 0.00 0.00 0.00
#> TCGA.X9.A973.01     3  0.0000      0.856 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MJ.A68J.01     7  0.3142      0.439 0.00 0.00 0.00 0.00 0.36 0.00 0.64 0.00
#> TCGA.3B.A9HJ.01     8  0.0000      0.887 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.A6BK.01     4  0.1563      0.680 0.00 0.00 0.00 0.90 0.00 0.00 0.00 0.10
#> TCGA.DX.A48N.01     2  0.0000      0.750 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A3PO.01     8  0.5265      0.634 0.20 0.00 0.00 0.08 0.04 0.02 0.02 0.64
#> TCGA.IS.A3K7.01     3  0.0471      0.856 0.02 0.00 0.98 0.00 0.00 0.00 0.00 0.00
#> TCGA.PC.A5DN.01     3  0.2406      0.787 0.20 0.00 0.80 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2F.01     2  0.4399      0.586 0.44 0.50 0.04 0.00 0.00 0.02 0.00 0.00
#> TCGA.SI.AA8C.01     2  0.0000      0.750 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A5V2.01     4  0.6175     -0.196 0.04 0.00 0.24 0.36 0.34 0.00 0.02 0.00
#> TCGA.RN.A68Q.01     8  0.3021      0.775 0.16 0.00 0.00 0.00 0.00 0.02 0.02 0.80
#> TCGA.DX.A6BG.01     8  0.6169      0.488 0.22 0.00 0.00 0.10 0.10 0.02 0.02 0.54
#> TCGA.FX.A3NK.01     2  0.3714      0.615 0.44 0.54 0.02 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BH.01     2  0.4399      0.586 0.44 0.50 0.04 0.00 0.00 0.02 0.00 0.00
#> TCGA.DX.A48L.01     2  0.0000      0.750 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YT.01     2  0.3971      0.599 0.42 0.54 0.00 0.00 0.00 0.04 0.00 0.00
#> TCGA.3B.A9HL.01     2  0.3992      0.603 0.44 0.52 0.04 0.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A2QS.01     2  0.0000      0.750 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23Z.01     6  0.4953      0.502 0.00 0.00 0.12 0.00 0.02 0.54 0.32 0.00
#> TCGA.DX.A240.01     6  0.1947      0.647 0.14 0.00 0.00 0.00 0.00 0.86 0.00 0.00
#> TCGA.DX.A7EI.01     2  0.0000      0.750 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A6RT.01     8  0.0000      0.887 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.WK.A8XO.01     3  0.2224      0.774 0.00 0.00 0.86 0.00 0.12 0.00 0.02 0.00
#> TCGA.DX.A8BT.01     3  0.2534      0.775 0.22 0.00 0.78 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23T.01     8  0.0000      0.887 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.QQ.A8VG.01     4  0.1765      0.658 0.00 0.00 0.00 0.88 0.00 0.00 0.00 0.12
#> TCGA.DX.A23V.01     5  0.2114      0.671 0.00 0.00 0.00 0.16 0.84 0.00 0.00 0.00
#> TCGA.DX.A8BQ.01     8  0.2267      0.763 0.00 0.00 0.00 0.18 0.00 0.00 0.00 0.82
#> TCGA.Z4.A8JB.01     6  0.3095      0.692 0.02 0.00 0.00 0.00 0.00 0.74 0.24 0.00
#> TCGA.SI.A71P.01     4  0.1341      0.697 0.00 0.00 0.00 0.92 0.00 0.00 0.00 0.08
#> TCGA.DX.A8BP.01     4  0.2547      0.682 0.04 0.00 0.00 0.84 0.12 0.00 0.00 0.00
#> TCGA.WK.A8XQ.01     2  0.1091      0.724 0.06 0.94 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A8VF.01     3  0.2534      0.775 0.22 0.00 0.78 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23Y.01     3  0.0000      0.856 0.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A1L4.01     8  0.0000      0.887 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.MB.A5Y9.01     8  0.0471      0.881 0.00 0.00 0.00 0.02 0.00 0.00 0.00 0.98
#> TCGA.DX.A3U8.01     4  0.0808      0.719 0.00 0.00 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.DX.A3U6.01     8  0.0000      0.887 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.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.


Node031

Parent node: Node03. Child nodes: Node0111 , Node0112 , Node0211-leaf , Node0212-leaf , Node0213-leaf , Node0221-leaf , Node0222-leaf , Node0231-leaf , Node0232-leaf , Node0233-leaf , Node0311-leaf , Node0312-leaf , Node0313-leaf , Node0321-leaf , Node0322-leaf , Node0323-leaf , Node0341-leaf , Node0342-leaf , Node0421-leaf , Node0422 , Node0423 , Node0424-leaf .

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

res = res_rh["031"]

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 21 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-031-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-031-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 1.000           1.000       1.000         0.1663 0.905   0.806
#> 4 4 0.829           0.908       0.911         0.1422 0.914   0.786
#> 5 5 0.805           0.911       0.936         0.1019 0.929   0.773
#> 6 6 0.771           0.793       0.916         0.0280 0.995   0.980
#> 7 7 0.790           0.677       0.868         0.0479 0.981   0.920
#> 8 8 0.826           0.651       0.871         0.0473 0.905   0.565

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.VT.A80J.01     2       0          1  0  1
#> TCGA.3B.A9HT.01     2       0          1  0  1
#> TCGA.DX.A3M2.01     1       0          1  1  0
#> TCGA.DX.AB2S.01     2       0          1  0  1
#> TCGA.UE.A6QT.01     2       0          1  0  1
#> TCGA.DX.A2J1.01     1       0          1  1  0
#> TCGA.DX.A2J4.01     1       0          1  1  0
#> TCGA.3B.A9HJ.01     2       0          1  0  1
#> TCGA.DX.A6BK.01     2       0          1  0  1
#> TCGA.K1.A3PO.01     1       0          1  1  0
#> TCGA.RN.A68Q.01     1       0          1  1  0
#> TCGA.DX.A6BG.01     1       0          1  1  0
#> TCGA.K1.A6RT.01     2       0          1  0  1
#> TCGA.DX.A23T.01     1       0          1  1  0
#> TCGA.QQ.A8VG.01     1       0          1  1  0
#> TCGA.DX.A8BQ.01     2       0          1  0  1
#> TCGA.SI.A71P.01     2       0          1  0  1
#> TCGA.DX.A1L4.01     1       0          1  1  0
#> TCGA.MB.A5Y9.01     2       0          1  0  1
#> TCGA.DX.A3U8.01     2       0          1  0  1
#> TCGA.DX.A3U6.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.VT.A80J.01     2       0          1  0  1  0
#> TCGA.3B.A9HT.01     2       0          1  0  1  0
#> TCGA.DX.A3M2.01     1       0          1  1  0  0
#> TCGA.DX.AB2S.01     2       0          1  0  1  0
#> TCGA.UE.A6QT.01     2       0          1  0  1  0
#> TCGA.DX.A2J1.01     1       0          1  1  0  0
#> TCGA.DX.A2J4.01     1       0          1  1  0  0
#> TCGA.3B.A9HJ.01     2       0          1  0  1  0
#> TCGA.DX.A6BK.01     2       0          1  0  1  0
#> TCGA.K1.A3PO.01     1       0          1  1  0  0
#> TCGA.RN.A68Q.01     1       0          1  1  0  0
#> TCGA.DX.A6BG.01     1       0          1  1  0  0
#> TCGA.K1.A6RT.01     2       0          1  0  1  0
#> TCGA.DX.A23T.01     1       0          1  1  0  0
#> TCGA.QQ.A8VG.01     3       0          1  0  0  1
#> TCGA.DX.A8BQ.01     2       0          1  0  1  0
#> TCGA.SI.A71P.01     3       0          1  0  0  1
#> TCGA.DX.A1L4.01     1       0          1  1  0  0
#> TCGA.MB.A5Y9.01     2       0          1  0  1  0
#> TCGA.DX.A3U8.01     2       0          1  0  1  0
#> TCGA.DX.A3U6.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.VT.A80J.01     2  0.0707      0.974 0.00 0.98 0.00 0.02
#> TCGA.3B.A9HT.01     4  0.4406      1.000 0.00 0.30 0.00 0.70
#> TCGA.DX.A3M2.01     1  0.4713      0.729 0.64 0.00 0.36 0.00
#> TCGA.DX.AB2S.01     2  0.0000      0.993 0.00 1.00 0.00 0.00
#> TCGA.UE.A6QT.01     2  0.0000      0.993 0.00 1.00 0.00 0.00
#> TCGA.DX.A2J1.01     1  0.0000      0.842 1.00 0.00 0.00 0.00
#> TCGA.DX.A2J4.01     1  0.0000      0.842 1.00 0.00 0.00 0.00
#> TCGA.3B.A9HJ.01     2  0.0000      0.993 0.00 1.00 0.00 0.00
#> TCGA.DX.A6BK.01     2  0.0000      0.993 0.00 1.00 0.00 0.00
#> TCGA.K1.A3PO.01     1  0.1211      0.837 0.96 0.00 0.04 0.00
#> TCGA.RN.A68Q.01     1  0.0000      0.842 1.00 0.00 0.00 0.00
#> TCGA.DX.A6BG.01     1  0.4713      0.729 0.64 0.00 0.36 0.00
#> TCGA.K1.A6RT.01     2  0.0000      0.993 0.00 1.00 0.00 0.00
#> TCGA.DX.A23T.01     1  0.4713      0.729 0.64 0.00 0.36 0.00
#> TCGA.QQ.A8VG.01     3  0.4406      0.894 0.00 0.00 0.70 0.30
#> TCGA.DX.A8BQ.01     2  0.0707      0.974 0.00 0.98 0.00 0.02
#> TCGA.SI.A71P.01     3  0.4855      0.888 0.00 0.00 0.60 0.40
#> TCGA.DX.A1L4.01     1  0.0000      0.842 1.00 0.00 0.00 0.00
#> TCGA.MB.A5Y9.01     2  0.0000      0.993 0.00 1.00 0.00 0.00
#> TCGA.DX.A3U8.01     4  0.4406      1.000 0.00 0.30 0.00 0.70
#> TCGA.DX.A3U6.01     2  0.0000      0.993 0.00 1.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.VT.A80J.01     2  0.2732      0.857 0.00 0.84 0.00 0.16 0.00
#> TCGA.3B.A9HT.01     4  0.1410      0.885 0.00 0.06 0.00 0.94 0.00
#> TCGA.DX.A3M2.01     5  0.2280      1.000 0.12 0.00 0.00 0.00 0.88
#> TCGA.DX.AB2S.01     2  0.0000      0.947 0.00 1.00 0.00 0.00 0.00
#> TCGA.UE.A6QT.01     2  0.0000      0.947 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A2J1.01     1  0.0609      0.938 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.A2J4.01     1  0.0000      0.944 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HJ.01     2  0.0000      0.947 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A6BK.01     2  0.1732      0.920 0.00 0.92 0.00 0.08 0.00
#> TCGA.K1.A3PO.01     1  0.2516      0.819 0.86 0.00 0.00 0.00 0.14
#> TCGA.RN.A68Q.01     1  0.1216      0.923 0.96 0.00 0.02 0.00 0.02
#> TCGA.DX.A6BG.01     5  0.2280      1.000 0.12 0.00 0.00 0.00 0.88
#> TCGA.K1.A6RT.01     2  0.0000      0.947 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A23T.01     5  0.2280      1.000 0.12 0.00 0.00 0.00 0.88
#> TCGA.QQ.A8VG.01     3  0.2516      0.750 0.00 0.00 0.86 0.00 0.14
#> TCGA.DX.A8BQ.01     2  0.2516      0.877 0.00 0.86 0.00 0.14 0.00
#> TCGA.SI.A71P.01     3  0.2732      0.722 0.00 0.00 0.84 0.16 0.00
#> TCGA.DX.A1L4.01     1  0.0000      0.944 1.00 0.00 0.00 0.00 0.00
#> TCGA.MB.A5Y9.01     2  0.1043      0.937 0.00 0.96 0.00 0.04 0.00
#> TCGA.DX.A3U8.01     4  0.0000      0.883 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.A3U6.01     2  0.0000      0.947 0.00 1.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.VT.A80J.01     2  0.4105      0.757 0.00 0.72 0.00 0.24 0.02 0.02
#> TCGA.3B.A9HT.01     4  0.1807      0.880 0.00 0.06 0.00 0.92 0.00 0.02
#> TCGA.DX.A3M2.01     5  0.0547      1.000 0.02 0.00 0.00 0.00 0.98 0.00
#> TCGA.DX.AB2S.01     2  0.0937      0.844 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.UE.A6QT.01     2  0.2345      0.869 0.00 0.90 0.00 0.06 0.02 0.02
#> TCGA.DX.A2J1.01     1  0.0937      0.922 0.96 0.00 0.00 0.00 0.04 0.00
#> TCGA.DX.A2J4.01     1  0.0937      0.922 0.96 0.00 0.00 0.00 0.04 0.00
#> TCGA.3B.A9HJ.01     2  0.1267      0.869 0.00 0.94 0.00 0.06 0.00 0.00
#> TCGA.DX.A6BK.01     2  0.3318      0.840 0.00 0.82 0.00 0.14 0.02 0.02
#> TCGA.K1.A3PO.01     1  0.2793      0.783 0.80 0.00 0.00 0.00 0.20 0.00
#> TCGA.RN.A68Q.01     1  0.1556      0.846 0.92 0.00 0.00 0.00 0.00 0.08
#> TCGA.DX.A6BG.01     5  0.0547      1.000 0.02 0.00 0.00 0.00 0.98 0.00
#> TCGA.K1.A6RT.01     2  0.0937      0.844 0.00 0.96 0.00 0.00 0.00 0.04
#> TCGA.DX.A23T.01     5  0.0547      1.000 0.02 0.00 0.00 0.00 0.98 0.00
#> TCGA.QQ.A8VG.01     3  0.0000      0.000 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BQ.01     2  0.4105      0.757 0.00 0.72 0.00 0.24 0.02 0.02
#> TCGA.SI.A71P.01     6  0.2454      0.000 0.00 0.00 0.16 0.00 0.00 0.84
#> TCGA.DX.A1L4.01     1  0.0937      0.922 0.96 0.00 0.00 0.00 0.04 0.00
#> TCGA.MB.A5Y9.01     2  0.1814      0.868 0.00 0.90 0.00 0.10 0.00 0.00
#> TCGA.DX.A3U8.01     4  0.0000      0.878 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A3U6.01     2  0.0937      0.844 0.00 0.96 0.00 0.00 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.VT.A80J.01     2  0.4429      0.636 0.00 0.66 0.00 0.12 0.00 0.00 0.22
#> TCGA.3B.A9HT.01     4  0.2163      0.815 0.00 0.10 0.00 0.88 0.00 0.00 0.02
#> TCGA.DX.A3M2.01     5  0.0504      0.926 0.00 0.00 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.AB2S.01     2  0.2745      0.715 0.00 0.82 0.02 0.00 0.00 0.00 0.16
#> TCGA.UE.A6QT.01     2  0.2906      0.716 0.00 0.80 0.00 0.02 0.00 0.00 0.18
#> TCGA.DX.A2J1.01     1  0.0000      0.930 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A2J4.01     1  0.0000      0.930 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HJ.01     2  0.2163      0.729 0.00 0.88 0.02 0.00 0.00 0.00 0.10
#> TCGA.DX.A6BK.01     2  0.3667      0.694 0.00 0.74 0.00 0.06 0.00 0.00 0.20
#> TCGA.K1.A3PO.01     1  0.2016      0.789 0.90 0.00 0.00 0.00 0.06 0.00 0.04
#> TCGA.RN.A68Q.01     7  0.3546      0.000 0.46 0.00 0.00 0.00 0.00 0.00 0.54
#> TCGA.DX.A6BG.01     5  0.2159      0.879 0.06 0.00 0.02 0.00 0.90 0.00 0.02
#> TCGA.K1.A6RT.01     2  0.2745      0.715 0.00 0.82 0.02 0.00 0.00 0.00 0.16
#> TCGA.DX.A23T.01     5  0.0504      0.926 0.00 0.00 0.00 0.00 0.98 0.00 0.02
#> TCGA.QQ.A8VG.01     3  0.0863      0.000 0.00 0.00 0.96 0.00 0.00 0.04 0.00
#> TCGA.DX.A8BQ.01     2  0.4429      0.636 0.00 0.66 0.00 0.12 0.00 0.00 0.22
#> TCGA.SI.A71P.01     6  0.0000      0.000 0.00 0.00 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.A1L4.01     1  0.0000      0.930 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MB.A5Y9.01     2  0.1928      0.723 0.00 0.90 0.00 0.08 0.00 0.00 0.02
#> TCGA.DX.A3U8.01     4  0.0504      0.810 0.00 0.00 0.00 0.98 0.00 0.00 0.02
#> TCGA.DX.A3U6.01     2  0.2745      0.715 0.00 0.82 0.02 0.00 0.00 0.00 0.16

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.VT.A80J.01     2  0.1275     0.7516 0.00 0.94 0.00 0.02 0.00 0.00 0.00 0.04
#> TCGA.3B.A9HT.01     4  0.4074     0.5994 0.00 0.26 0.00 0.68 0.00 0.02 0.02 0.02
#> TCGA.DX.A3M2.01     5  0.0000     0.8863 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2S.01     8  0.2267     0.9463 0.00 0.18 0.00 0.00 0.00 0.00 0.00 0.82
#> TCGA.UE.A6QT.01     2  0.2534     0.6321 0.00 0.78 0.00 0.00 0.00 0.00 0.00 0.22
#> TCGA.DX.A2J1.01     1  0.0000     0.9016 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A2J4.01     1  0.0000     0.9016 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HJ.01     8  0.2756     0.8686 0.00 0.26 0.00 0.00 0.00 0.00 0.00 0.74
#> TCGA.DX.A6BK.01     2  0.1341     0.7555 0.00 0.92 0.00 0.00 0.00 0.00 0.00 0.08
#> TCGA.K1.A3PO.01     1  0.3303     0.6813 0.76 0.00 0.00 0.00 0.20 0.00 0.02 0.02
#> TCGA.RN.A68Q.01     7  0.1341     0.0000 0.08 0.00 0.00 0.00 0.00 0.00 0.92 0.00
#> TCGA.DX.A6BG.01     5  0.2020     0.8547 0.02 0.00 0.00 0.00 0.90 0.00 0.02 0.06
#> TCGA.K1.A6RT.01     8  0.2406     0.9431 0.00 0.20 0.00 0.00 0.00 0.00 0.00 0.80
#> TCGA.DX.A23T.01     5  0.2484     0.8337 0.00 0.00 0.02 0.00 0.86 0.00 0.02 0.10
#> TCGA.QQ.A8VG.01     3  0.0471     0.0000 0.00 0.00 0.98 0.00 0.00 0.02 0.00 0.00
#> TCGA.DX.A8BQ.01     2  0.0000     0.7377 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.SI.A71P.01     6  0.0000     0.0000 0.00 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A1L4.01     1  0.0000     0.9016 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MB.A5Y9.01     2  0.3299    -0.0503 0.00 0.56 0.00 0.00 0.00 0.00 0.00 0.44
#> TCGA.DX.A3U8.01     4  0.0000     0.5856 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U6.01     8  0.2267     0.9463 0.00 0.18 0.00 0.00 0.00 0.00 0.00 0.82

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-031-consensus-heatmap-1

consensus_heatmap(res, k = 3)

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

consensus_heatmap(res, k = 4)

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

consensus_heatmap(res, k = 5)

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

consensus_heatmap(res, k = 6)

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

consensus_heatmap(res, k = 7)

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

consensus_heatmap(res, k = 8)

plot of chunk tab-node-031-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-031-membership-heatmap-1

membership_heatmap(res, k = 3)

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

membership_heatmap(res, k = 4)

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

membership_heatmap(res, k = 5)

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

membership_heatmap(res, k = 6)

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

membership_heatmap(res, k = 7)

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

membership_heatmap(res, k = 8)

plot of chunk tab-node-031-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-031-get-signatures-1

get_signatures(res, k = 3)

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

get_signatures(res, k = 4)

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

get_signatures(res, k = 5)

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

get_signatures(res, k = 6)

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

get_signatures(res, k = 7)

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

get_signatures(res, k = 8)

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

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-031-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-031-dimension-reduction-1

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

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

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

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

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

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

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

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

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

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

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

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

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-031-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.


Node032

Parent node: Node03. Child nodes: Node0111 , Node0112 , Node0211-leaf , Node0212-leaf , Node0213-leaf , Node0221-leaf , Node0222-leaf , Node0231-leaf , Node0232-leaf , Node0233-leaf , Node0311-leaf , Node0312-leaf , Node0313-leaf , Node0321-leaf , Node0322-leaf , Node0323-leaf , Node0341-leaf , Node0342-leaf , Node0421-leaf , Node0422 , Node0423 , Node0424-leaf .

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

res = res_rh["032"]

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 '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-032-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-032-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.4985 0.502   0.502
#> 3 3 1.000           1.000       1.000         0.1426 0.929   0.858
#> 4 4 0.797           0.871       0.927         0.2603 0.842   0.633
#> 5 5 0.723           0.724       0.578         0.0230 0.814   0.472
#> 6 6 0.700           0.707       0.818         0.0544 0.980   0.919
#> 7 7 0.805           0.825       0.937         0.0503 0.901   0.609
#> 8 8 0.826           0.721       0.925         0.0193 0.996   0.978

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.QQ.A8VD.01     1       0          1  1  0
#> TCGA.DX.A1KW.01     1       0          1  1  0
#> TCGA.HB.A3YV.01     1       0          1  1  0
#> TCGA.IF.A3RQ.01     1       0          1  1  0
#> TCGA.FX.A48G.01     2       0          1  0  1
#> TCGA.FX.A3RE.01     2       0          1  0  1
#> TCGA.DX.A7EN.01     2       0          1  0  1
#> TCGA.DX.AB35.01     1       0          1  1  0
#> TCGA.MB.A8JL.01     2       0          1  0  1
#> TCGA.DX.AB2V.01     1       0          1  1  0
#> TCGA.DX.AB2G.01     1       0          1  1  0
#> TCGA.DX.A48N.01     1       0          1  1  0
#> TCGA.DX.AB2F.01     1       0          1  1  0
#> TCGA.SI.AA8C.01     2       0          1  0  1
#> TCGA.FX.A3NK.01     1       0          1  1  0
#> TCGA.DX.A6BH.01     1       0          1  1  0
#> TCGA.DX.A48L.01     2       0          1  0  1
#> TCGA.DX.A6YT.01     1       0          1  1  0
#> TCGA.3B.A9HL.01     1       0          1  1  0
#> TCGA.FX.A2QS.01     2       0          1  0  1
#> TCGA.DX.A240.01     1       0          1  1  0
#> TCGA.DX.A7EI.01     2       0          1  0  1
#> TCGA.WK.A8XQ.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.QQ.A8VD.01     1       0          1  1  0  0
#> TCGA.DX.A1KW.01     1       0          1  1  0  0
#> TCGA.HB.A3YV.01     1       0          1  1  0  0
#> TCGA.IF.A3RQ.01     1       0          1  1  0  0
#> TCGA.FX.A48G.01     3       0          1  0  0  1
#> TCGA.FX.A3RE.01     2       0          1  0  1  0
#> TCGA.DX.A7EN.01     3       0          1  0  0  1
#> TCGA.DX.AB35.01     1       0          1  1  0  0
#> TCGA.MB.A8JL.01     2       0          1  0  1  0
#> TCGA.DX.AB2V.01     1       0          1  1  0  0
#> TCGA.DX.AB2G.01     1       0          1  1  0  0
#> TCGA.DX.A48N.01     1       0          1  1  0  0
#> TCGA.DX.AB2F.01     1       0          1  1  0  0
#> TCGA.SI.AA8C.01     2       0          1  0  1  0
#> TCGA.FX.A3NK.01     1       0          1  1  0  0
#> TCGA.DX.A6BH.01     1       0          1  1  0  0
#> TCGA.DX.A48L.01     3       0          1  0  0  1
#> TCGA.DX.A6YT.01     1       0          1  1  0  0
#> TCGA.3B.A9HL.01     1       0          1  1  0  0
#> TCGA.FX.A2QS.01     2       0          1  0  1  0
#> TCGA.DX.A240.01     1       0          1  1  0  0
#> TCGA.DX.A7EI.01     2       0          1  0  1  0
#> TCGA.WK.A8XQ.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.QQ.A8VD.01     4  0.0707      0.820 0.02  0 0.00 0.98
#> TCGA.DX.A1KW.01     1  0.0000      0.815 1.00  0 0.00 0.00
#> TCGA.HB.A3YV.01     1  0.0000      0.815 1.00  0 0.00 0.00
#> TCGA.IF.A3RQ.01     1  0.0000      0.815 1.00  0 0.00 0.00
#> TCGA.FX.A48G.01     3  0.0707      0.987 0.00  0 0.98 0.02
#> TCGA.FX.A3RE.01     2  0.0000      1.000 0.00  1 0.00 0.00
#> TCGA.DX.A7EN.01     3  0.0000      0.993 0.00  0 1.00 0.00
#> TCGA.DX.AB35.01     4  0.4277      0.602 0.28  0 0.00 0.72
#> TCGA.MB.A8JL.01     2  0.0000      1.000 0.00  1 0.00 0.00
#> TCGA.DX.AB2V.01     1  0.0000      0.815 1.00  0 0.00 0.00
#> TCGA.DX.AB2G.01     1  0.3975      0.785 0.76  0 0.00 0.24
#> TCGA.DX.A48N.01     1  0.0000      0.815 1.00  0 0.00 0.00
#> TCGA.DX.AB2F.01     1  0.3975      0.785 0.76  0 0.00 0.24
#> TCGA.SI.AA8C.01     2  0.0000      1.000 0.00  1 0.00 0.00
#> TCGA.FX.A3NK.01     1  0.3975      0.785 0.76  0 0.00 0.24
#> TCGA.DX.A6BH.01     1  0.3975      0.785 0.76  0 0.00 0.24
#> TCGA.DX.A48L.01     3  0.0000      0.993 0.00  0 1.00 0.00
#> TCGA.DX.A6YT.01     4  0.2921      0.807 0.14  0 0.00 0.86
#> TCGA.3B.A9HL.01     1  0.3975      0.785 0.76  0 0.00 0.24
#> TCGA.FX.A2QS.01     2  0.0000      1.000 0.00  1 0.00 0.00
#> TCGA.DX.A240.01     4  0.0707      0.820 0.02  0 0.00 0.98
#> TCGA.DX.A7EI.01     2  0.0000      1.000 0.00  1 0.00 0.00
#> TCGA.WK.A8XQ.01     2  0.0000      1.000 0.00  1 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.QQ.A8VD.01     4   0.418      0.263 0.00 0.00 0.40 0.60 0.00
#> TCGA.DX.A1KW.01     1   0.380      0.965 0.70 0.00 0.00 0.30 0.00
#> TCGA.HB.A3YV.01     1   0.380      0.965 0.70 0.00 0.00 0.30 0.00
#> TCGA.IF.A3RQ.01     1   0.380      0.965 0.70 0.00 0.00 0.30 0.00
#> TCGA.FX.A48G.01     5   0.000      0.000 0.00 0.00 0.00 0.00 1.00
#> TCGA.FX.A3RE.01     2   0.000      0.974 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A7EN.01     3   0.637      1.000 0.24 0.00 0.52 0.00 0.24
#> TCGA.DX.AB35.01     4   0.000      0.555 0.00 0.00 0.00 1.00 0.00
#> TCGA.MB.A8JL.01     2   0.000      0.974 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.AB2V.01     1   0.413      0.846 0.62 0.00 0.00 0.38 0.00
#> TCGA.DX.AB2G.01     4   0.327      0.533 0.22 0.00 0.00 0.78 0.00
#> TCGA.DX.A48N.01     1   0.380      0.965 0.70 0.00 0.00 0.30 0.00
#> TCGA.DX.AB2F.01     4   0.342      0.500 0.24 0.00 0.00 0.76 0.00
#> TCGA.SI.AA8C.01     2   0.000      0.974 0.00 1.00 0.00 0.00 0.00
#> TCGA.FX.A3NK.01     4   0.327      0.533 0.22 0.00 0.00 0.78 0.00
#> TCGA.DX.A6BH.01     4   0.327      0.533 0.22 0.00 0.00 0.78 0.00
#> TCGA.DX.A48L.01     3   0.637      1.000 0.24 0.00 0.52 0.00 0.24
#> TCGA.DX.A6YT.01     4   0.173      0.538 0.00 0.00 0.08 0.92 0.00
#> TCGA.3B.A9HL.01     4   0.342      0.500 0.24 0.00 0.00 0.76 0.00
#> TCGA.FX.A2QS.01     2   0.000      0.974 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A240.01     4   0.418      0.263 0.00 0.00 0.40 0.60 0.00
#> TCGA.DX.A7EI.01     2   0.000      0.974 0.00 1.00 0.00 0.00 0.00
#> TCGA.WK.A8XQ.01     2   0.311      0.858 0.06 0.86 0.08 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.QQ.A8VD.01     4  0.3756      0.164 0.00 0.00 0.00 0.60 0.00 0.40
#> TCGA.DX.A1KW.01     1  0.0000      0.916 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HB.A3YV.01     1  0.0000      0.916 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IF.A3RQ.01     1  0.0000      0.916 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A48G.01     5  0.1556      0.000 0.00 0.00 0.08 0.00 0.92 0.00
#> TCGA.FX.A3RE.01     2  0.0000      0.985 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7EN.01     3  0.0547      0.982 0.00 0.00 0.98 0.00 0.00 0.02
#> TCGA.DX.AB35.01     4  0.2454      0.686 0.16 0.00 0.00 0.84 0.00 0.00
#> TCGA.MB.A8JL.01     2  0.0000      0.985 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2V.01     1  0.3076      0.559 0.76 0.00 0.00 0.24 0.00 0.00
#> TCGA.DX.AB2G.01     4  0.3309      0.706 0.28 0.00 0.00 0.72 0.00 0.00
#> TCGA.DX.A48N.01     1  0.0000      0.916 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2F.01     4  0.3409      0.688 0.30 0.00 0.00 0.70 0.00 0.00
#> TCGA.SI.AA8C.01     2  0.0547      0.977 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.FX.A3NK.01     4  0.3309      0.706 0.28 0.00 0.00 0.72 0.00 0.00
#> TCGA.DX.A6BH.01     4  0.3309      0.706 0.28 0.00 0.00 0.72 0.00 0.00
#> TCGA.DX.A48L.01     3  0.0000      0.982 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A6YT.01     4  0.2350      0.651 0.10 0.00 0.00 0.88 0.00 0.02
#> TCGA.3B.A9HL.01     4  0.3409      0.688 0.30 0.00 0.00 0.70 0.00 0.00
#> TCGA.FX.A2QS.01     2  0.0000      0.985 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A240.01     4  0.3756      0.164 0.00 0.00 0.00 0.60 0.00 0.40
#> TCGA.DX.A7EI.01     2  0.0547      0.977 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.WK.A8XQ.01     6  0.4938      0.000 0.00 0.34 0.00 0.00 0.08 0.58

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.QQ.A8VD.01     7  0.0504      0.963 0.00 0.00 0.00 0.02  0 0.00 0.98
#> TCGA.DX.A1KW.01     1  0.0863      1.000 0.96 0.00 0.00 0.04  0 0.00 0.00
#> TCGA.HB.A3YV.01     1  0.0863      1.000 0.96 0.00 0.00 0.04  0 0.00 0.00
#> TCGA.IF.A3RQ.01     1  0.0863      1.000 0.96 0.00 0.00 0.04  0 0.00 0.00
#> TCGA.FX.A48G.01     5  0.0000      0.000 0.00 0.00 0.00 0.00  1 0.00 0.00
#> TCGA.FX.A3RE.01     2  0.0000      0.959 0.00 1.00 0.00 0.00  0 0.00 0.00
#> TCGA.DX.A7EN.01     3  0.1363      0.950 0.04 0.00 0.94 0.00  0 0.02 0.00
#> TCGA.DX.AB35.01     4  0.0000      0.833 0.00 0.00 0.00 1.00  0 0.00 0.00
#> TCGA.MB.A8JL.01     2  0.0000      0.959 0.00 1.00 0.00 0.00  0 0.00 0.00
#> TCGA.DX.AB2V.01     4  0.3546      0.262 0.46 0.00 0.00 0.54  0 0.00 0.00
#> TCGA.DX.AB2G.01     4  0.1671      0.899 0.10 0.00 0.00 0.90  0 0.00 0.00
#> TCGA.DX.A48N.01     1  0.0863      1.000 0.96 0.00 0.00 0.04  0 0.00 0.00
#> TCGA.DX.AB2F.01     4  0.1671      0.899 0.10 0.00 0.00 0.90  0 0.00 0.00
#> TCGA.SI.AA8C.01     2  0.1664      0.937 0.00 0.92 0.00 0.00  0 0.06 0.02
#> TCGA.FX.A3NK.01     4  0.1671      0.899 0.10 0.00 0.00 0.90  0 0.00 0.00
#> TCGA.DX.A6BH.01     4  0.1671      0.899 0.10 0.00 0.00 0.90  0 0.00 0.00
#> TCGA.DX.A48L.01     3  0.0000      0.950 0.00 0.00 1.00 0.00  0 0.00 0.00
#> TCGA.DX.A6YT.01     4  0.0504      0.814 0.00 0.00 0.00 0.98  0 0.00 0.02
#> TCGA.3B.A9HL.01     4  0.1671      0.899 0.10 0.00 0.00 0.90  0 0.00 0.00
#> TCGA.FX.A2QS.01     2  0.0000      0.959 0.00 1.00 0.00 0.00  0 0.00 0.00
#> TCGA.DX.A240.01     7  0.0863      0.963 0.00 0.00 0.00 0.04  0 0.00 0.96
#> TCGA.DX.A7EI.01     2  0.1664      0.937 0.00 0.92 0.00 0.00  0 0.06 0.02
#> TCGA.WK.A8XQ.01     6  0.0504      0.000 0.00 0.02 0.00 0.00  0 0.98 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.QQ.A8VD.01     7  0.0000      0.930 0.00 0.00 0.00 0.00  0 0.00 1.00 0.00
#> TCGA.DX.A1KW.01     1  0.0000      1.000 1.00 0.00 0.00 0.00  0 0.00 0.00 0.00
#> TCGA.HB.A3YV.01     1  0.0000      1.000 1.00 0.00 0.00 0.00  0 0.00 0.00 0.00
#> TCGA.IF.A3RQ.01     1  0.0000      1.000 1.00 0.00 0.00 0.00  0 0.00 0.00 0.00
#> TCGA.FX.A48G.01     5  0.0000      0.000 0.00 0.00 0.00 0.00  1 0.00 0.00 0.00
#> TCGA.FX.A3RE.01     2  0.0000      0.933 0.00 1.00 0.00 0.00  0 0.00 0.00 0.00
#> TCGA.DX.A7EN.01     3  0.1765      0.000 0.00 0.00 0.88 0.00  0 0.00 0.00 0.12
#> TCGA.DX.AB35.01     4  0.1341      0.775 0.00 0.00 0.00 0.92  0 0.00 0.00 0.08
#> TCGA.MB.A8JL.01     2  0.0000      0.933 0.00 1.00 0.00 0.00  0 0.00 0.00 0.00
#> TCGA.DX.AB2V.01     4  0.3318      0.317 0.46 0.00 0.00 0.54  0 0.00 0.00 0.00
#> TCGA.DX.AB2G.01     4  0.1091      0.851 0.06 0.00 0.00 0.94  0 0.00 0.00 0.00
#> TCGA.DX.A48N.01     1  0.0000      1.000 1.00 0.00 0.00 0.00  0 0.00 0.00 0.00
#> TCGA.DX.AB2F.01     4  0.1765      0.860 0.12 0.00 0.00 0.88  0 0.00 0.00 0.00
#> TCGA.SI.AA8C.01     2  0.2224      0.896 0.00 0.86 0.12 0.00  0 0.02 0.00 0.00
#> TCGA.FX.A3NK.01     4  0.1563      0.864 0.10 0.00 0.00 0.90  0 0.00 0.00 0.00
#> TCGA.DX.A6BH.01     4  0.1563      0.864 0.10 0.00 0.00 0.90  0 0.00 0.00 0.00
#> TCGA.DX.A48L.01     8  0.1765      0.000 0.00 0.00 0.12 0.00  0 0.00 0.00 0.88
#> TCGA.DX.A6YT.01     4  0.1765      0.746 0.00 0.00 0.00 0.88  0 0.00 0.00 0.12
#> TCGA.3B.A9HL.01     4  0.1765      0.860 0.12 0.00 0.00 0.88  0 0.00 0.00 0.00
#> TCGA.FX.A2QS.01     2  0.0000      0.933 0.00 1.00 0.00 0.00  0 0.00 0.00 0.00
#> TCGA.DX.A240.01     7  0.0808      0.930 0.00 0.00 0.00 0.04  0 0.00 0.96 0.00
#> TCGA.DX.A7EI.01     2  0.2224      0.896 0.00 0.86 0.12 0.00  0 0.02 0.00 0.00
#> TCGA.WK.A8XQ.01     6  0.0000      0.000 0.00 0.00 0.00 0.00  0 1.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-032-consensus-heatmap-1

consensus_heatmap(res, k = 3)

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

consensus_heatmap(res, k = 4)

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

consensus_heatmap(res, k = 5)

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

consensus_heatmap(res, k = 6)

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

consensus_heatmap(res, k = 7)

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

consensus_heatmap(res, k = 8)

plot of chunk tab-node-032-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-032-membership-heatmap-1

membership_heatmap(res, k = 3)

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

membership_heatmap(res, k = 4)

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

membership_heatmap(res, k = 5)

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

membership_heatmap(res, k = 6)

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

membership_heatmap(res, k = 7)

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

membership_heatmap(res, k = 8)

plot of chunk tab-node-032-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-032-get-signatures-1

get_signatures(res, k = 3)

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

get_signatures(res, k = 4)

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

get_signatures(res, k = 5)

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

get_signatures(res, k = 6)

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

get_signatures(res, k = 7)

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

get_signatures(res, k = 8)

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

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-032-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-032-dimension-reduction-1

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

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

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

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

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

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

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

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

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

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

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

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

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-032-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.


Node034

Parent node: Node03. Child nodes: Node0111 , Node0112 , Node0211-leaf , Node0212-leaf , Node0213-leaf , Node0221-leaf , Node0222-leaf , Node0231-leaf , Node0232-leaf , Node0233-leaf , Node0311-leaf , Node0312-leaf , Node0313-leaf , Node0321-leaf , Node0322-leaf , Node0323-leaf , Node0341-leaf , Node0342-leaf , Node0421-leaf , Node0422 , Node0423 , Node0424-leaf .

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

res = res_rh["034"]

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 17 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 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-034-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-034-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.5155 0.485   0.485
#> 3 3 0.794           0.877       0.938         0.3190 0.846   0.682
#> 4 4 0.713           0.763       0.891         0.0734 0.956   0.867
#> 5 5 0.669           0.593       0.831         0.0732 0.963   0.872
#> 6 6 0.647           0.495       0.771         0.0502 1.000   1.000
#> 7 7 0.706           0.301       0.718         0.0416 0.875   0.514
#> 8 8 0.743           0.469       0.748         0.0376 0.919   0.500

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.DX.A7ES.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A8BG.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A8BO.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.AB2L.01     2   0.141      0.980 0.02 0.98
#> TCGA.RN.AAAQ.01     2   0.000      0.998 0.00 1.00
#> TCGA.IF.A4AJ.11     2   0.000      0.998 0.00 1.00
#> TCGA.DX.AB32.01     2   0.000      0.998 0.00 1.00
#> TCGA.3B.A9I3.01     2   0.000      0.998 0.00 1.00
#> TCGA.3B.A9HO.01     2   0.000      0.998 0.00 1.00
#> TCGA.DX.A3LS.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A6BE.01     2   0.000      0.998 0.00 1.00
#> TCGA.QQ.A5VA.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A3LU.01     2   0.000      0.998 0.00 1.00
#> TCGA.MJ.A68J.01     1   0.000      1.000 1.00 0.00
#> TCGA.QQ.A5V2.01     2   0.000      0.998 0.00 1.00
#> TCGA.DX.A23V.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A8BP.01     2   0.000      0.998 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.DX.A7ES.01     1   0.000      0.948 1.0 0.00 0.00
#> TCGA.DX.A8BG.01     1   0.000      0.948 1.0 0.00 0.00
#> TCGA.DX.A8BO.01     1   0.000      0.948 1.0 0.00 0.00
#> TCGA.DX.AB2L.01     2   0.153      0.862 0.0 0.96 0.04
#> TCGA.RN.AAAQ.01     3   0.153      1.000 0.0 0.04 0.96
#> TCGA.IF.A4AJ.11     2   0.207      0.884 0.0 0.94 0.06
#> TCGA.DX.AB32.01     2   0.000      0.887 0.0 1.00 0.00
#> TCGA.3B.A9I3.01     2   0.613      0.376 0.0 0.60 0.40
#> TCGA.3B.A9HO.01     2   0.296      0.861 0.0 0.90 0.10
#> TCGA.DX.A3LS.01     1   0.000      0.948 1.0 0.00 0.00
#> TCGA.DX.A6BE.01     2   0.153      0.889 0.0 0.96 0.04
#> TCGA.QQ.A5VA.01     1   0.623      0.578 0.7 0.02 0.28
#> TCGA.DX.A3LU.01     2   0.000      0.887 0.0 1.00 0.00
#> TCGA.MJ.A68J.01     1   0.000      0.948 1.0 0.00 0.00
#> TCGA.QQ.A5V2.01     3   0.153      1.000 0.0 0.04 0.96
#> TCGA.DX.A23V.01     1   0.000      0.948 1.0 0.00 0.00
#> TCGA.DX.A8BP.01     3   0.153      1.000 0.0 0.04 0.96

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette   p1   p2   p3   p4
#> TCGA.DX.A7ES.01     1  0.0000      0.901 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BG.01     1  0.1411      0.898 0.96 0.00 0.02 0.02
#> TCGA.DX.A8BO.01     1  0.2706      0.879 0.90 0.00 0.02 0.08
#> TCGA.DX.AB2L.01     4  0.4134      0.000 0.00 0.26 0.00 0.74
#> TCGA.RN.AAAQ.01     3  0.1913      0.961 0.00 0.04 0.94 0.02
#> TCGA.IF.A4AJ.11     2  0.3606      0.728 0.00 0.84 0.02 0.14
#> TCGA.DX.AB32.01     2  0.2706      0.729 0.00 0.90 0.02 0.08
#> TCGA.3B.A9I3.01     2  0.7095      0.381 0.00 0.56 0.26 0.18
#> TCGA.3B.A9HO.01     2  0.2011      0.772 0.00 0.92 0.08 0.00
#> TCGA.DX.A3LS.01     1  0.0707      0.895 0.98 0.00 0.00 0.02
#> TCGA.DX.A6BE.01     2  0.1411      0.781 0.00 0.96 0.02 0.02
#> TCGA.QQ.A5VA.01     1  0.4936      0.576 0.70 0.00 0.28 0.02
#> TCGA.DX.A3LU.01     2  0.0707      0.775 0.00 0.98 0.00 0.02
#> TCGA.MJ.A68J.01     1  0.3037      0.869 0.88 0.00 0.02 0.10
#> TCGA.QQ.A5V2.01     3  0.1637      0.962 0.00 0.06 0.94 0.00
#> TCGA.DX.A23V.01     1  0.0000      0.901 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BP.01     3  0.1637      0.965 0.00 0.06 0.94 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.DX.A7ES.01     1  0.0609      0.823 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.A8BG.01     1  0.1732      0.818 0.92 0.00 0.00 0.00 0.08
#> TCGA.DX.A8BO.01     1  0.3513      0.766 0.80 0.00 0.00 0.02 0.18
#> TCGA.DX.AB2L.01     4  0.0609      0.000 0.00 0.02 0.00 0.98 0.00
#> TCGA.RN.AAAQ.01     3  0.2873      0.806 0.00 0.02 0.86 0.00 0.12
#> TCGA.IF.A4AJ.11     2  0.5800      0.166 0.00 0.64 0.06 0.04 0.26
#> TCGA.DX.AB32.01     2  0.4398      0.483 0.00 0.72 0.00 0.04 0.24
#> TCGA.3B.A9I3.01     5  0.7251      0.000 0.00 0.28 0.32 0.02 0.38
#> TCGA.3B.A9HO.01     2  0.3513      0.500 0.00 0.80 0.18 0.00 0.02
#> TCGA.DX.A3LS.01     1  0.2012      0.792 0.92 0.00 0.02 0.00 0.06
#> TCGA.DX.A6BE.01     2  0.1043      0.644 0.00 0.96 0.04 0.00 0.00
#> TCGA.QQ.A5VA.01     1  0.5727      0.324 0.56 0.00 0.34 0.00 0.10
#> TCGA.DX.A3LU.01     2  0.2012      0.635 0.00 0.92 0.00 0.02 0.06
#> TCGA.MJ.A68J.01     1  0.3852      0.753 0.76 0.00 0.00 0.02 0.22
#> TCGA.QQ.A5V2.01     3  0.1216      0.870 0.00 0.00 0.96 0.02 0.02
#> TCGA.DX.A23V.01     1  0.0609      0.823 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.A8BP.01     3  0.0609      0.873 0.00 0.00 0.98 0.00 0.02

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.DX.A7ES.01     6  0.0547     0.7372 0.02 0.00 0.00 0.00 0.00 0.98
#> TCGA.DX.A8BG.01     6  0.3198     0.7219 0.26 0.00 0.00 0.00 0.00 0.74
#> TCGA.DX.A8BO.01     6  0.3578     0.6615 0.34 0.00 0.00 0.00 0.00 0.66
#> TCGA.DX.AB2L.01     4  0.0547     0.0000 0.00 0.02 0.00 0.98 0.00 0.00
#> TCGA.RN.AAAQ.01     3  0.4403     0.6320 0.04 0.04 0.74 0.00 0.18 0.00
#> TCGA.IF.A4AJ.11     2  0.5945     0.0911 0.02 0.56 0.06 0.04 0.32 0.00
#> TCGA.DX.AB32.01     2  0.6578     0.2772 0.26 0.46 0.00 0.04 0.24 0.00
#> TCGA.3B.A9I3.01     5  0.4475     0.0000 0.00 0.20 0.10 0.00 0.70 0.00
#> TCGA.3B.A9HO.01     2  0.3795     0.4551 0.02 0.80 0.12 0.00 0.06 0.00
#> TCGA.DX.A3LS.01     6  0.2941     0.6924 0.22 0.00 0.00 0.00 0.00 0.78
#> TCGA.DX.A6BE.01     2  0.0000     0.5434 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A5VA.01     6  0.6417     0.2273 0.24 0.00 0.32 0.00 0.02 0.42
#> TCGA.DX.A3LU.01     2  0.3660     0.4588 0.06 0.78 0.00 0.00 0.16 0.00
#> TCGA.MJ.A68J.01     6  0.3916     0.6361 0.30 0.00 0.00 0.00 0.02 0.68
#> TCGA.QQ.A5V2.01     3  0.1635     0.7746 0.02 0.02 0.94 0.00 0.02 0.00
#> TCGA.DX.A23V.01     6  0.1092     0.7310 0.02 0.00 0.00 0.00 0.02 0.96
#> TCGA.DX.A8BP.01     3  0.2190     0.7701 0.00 0.06 0.90 0.00 0.04 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.DX.A7ES.01     6  0.0504      0.551 0.00 0.00 0.00 0.00 0.02 0.98 0.00
#> TCGA.DX.A8BG.01     6  0.4524     -0.127 0.34 0.00 0.00 0.00 0.02 0.60 0.04
#> TCGA.DX.A8BO.01     1  0.3459      0.375 0.60 0.00 0.00 0.00 0.00 0.40 0.00
#> TCGA.DX.AB2L.01     4  0.0000      0.000 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.RN.AAAQ.01     3  0.0000      0.129 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IF.A4AJ.11     5  0.4212      0.587 0.02 0.34 0.00 0.00 0.62 0.00 0.02
#> TCGA.DX.AB32.01     2  0.7127      0.208 0.16 0.36 0.00 0.04 0.10 0.00 0.34
#> TCGA.3B.A9I3.01     5  0.2722      0.650 0.00 0.12 0.04 0.00 0.84 0.00 0.00
#> TCGA.3B.A9HO.01     2  0.3315      0.518 0.02 0.82 0.08 0.00 0.00 0.00 0.08
#> TCGA.DX.A3LS.01     6  0.1718      0.552 0.04 0.00 0.00 0.00 0.00 0.92 0.04
#> TCGA.DX.A6BE.01     2  0.1928      0.532 0.00 0.90 0.00 0.00 0.08 0.00 0.02
#> TCGA.QQ.A5VA.01     6  0.5451      0.252 0.02 0.00 0.16 0.00 0.00 0.54 0.28
#> TCGA.DX.A3LU.01     2  0.2016      0.577 0.04 0.90 0.00 0.00 0.00 0.00 0.06
#> TCGA.MJ.A68J.01     1  0.4524      0.467 0.60 0.00 0.00 0.00 0.02 0.34 0.04
#> TCGA.QQ.A5V2.01     7  0.3985      0.000 0.00 0.00 0.46 0.00 0.02 0.00 0.52
#> TCGA.DX.A23V.01     6  0.1664      0.501 0.06 0.00 0.00 0.00 0.02 0.92 0.00
#> TCGA.DX.A8BP.01     3  0.3867     -0.655 0.00 0.00 0.60 0.00 0.02 0.00 0.38

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.DX.A7ES.01     6  0.1947      0.527 0.14 0.00 0.00 0.00 0.00 0.86 0.00 0.00
#> TCGA.DX.A8BG.01     1  0.3941      0.329 0.68 0.00 0.04 0.00 0.00 0.26 0.00 0.02
#> TCGA.DX.A8BO.01     1  0.1804      0.478 0.90 0.00 0.02 0.00 0.00 0.08 0.00 0.00
#> TCGA.DX.AB2L.01     4  0.0000      0.000 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.RN.AAAQ.01     3  0.3714      0.000 0.00 0.00 0.54 0.00 0.02 0.00 0.44 0.00
#> TCGA.IF.A4AJ.11     5  0.4162      0.593 0.00 0.28 0.02 0.00 0.66 0.00 0.02 0.02
#> TCGA.DX.AB32.01     8  0.2265      0.000 0.00 0.08 0.00 0.02 0.00 0.00 0.02 0.88
#> TCGA.3B.A9I3.01     5  0.2020      0.633 0.00 0.06 0.02 0.00 0.90 0.00 0.02 0.00
#> TCGA.3B.A9HO.01     2  0.3785      0.697 0.00 0.76 0.02 0.00 0.02 0.00 0.16 0.04
#> TCGA.DX.A3LS.01     6  0.3264      0.515 0.04 0.00 0.06 0.00 0.02 0.84 0.02 0.02
#> TCGA.DX.A6BE.01     2  0.0941      0.811 0.00 0.96 0.00 0.00 0.02 0.00 0.02 0.00
#> TCGA.QQ.A5VA.01     6  0.6337      0.139 0.04 0.02 0.10 0.00 0.02 0.46 0.34 0.02
#> TCGA.DX.A3LU.01     2  0.1741      0.788 0.00 0.92 0.00 0.02 0.02 0.00 0.00 0.04
#> TCGA.MJ.A68J.01     1  0.6962      0.221 0.40 0.02 0.20 0.00 0.04 0.26 0.00 0.08
#> TCGA.QQ.A5V2.01     7  0.1091      0.871 0.00 0.00 0.06 0.00 0.00 0.00 0.94 0.00
#> TCGA.DX.A23V.01     6  0.2114      0.503 0.16 0.00 0.00 0.00 0.00 0.84 0.00 0.00
#> TCGA.DX.A8BP.01     7  0.0471      0.866 0.00 0.00 0.00 0.00 0.02 0.00 0.98 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-034-consensus-heatmap-1

consensus_heatmap(res, k = 3)

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

consensus_heatmap(res, k = 4)

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

consensus_heatmap(res, k = 5)

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

consensus_heatmap(res, k = 6)

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

consensus_heatmap(res, k = 7)

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

consensus_heatmap(res, k = 8)

plot of chunk tab-node-034-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-034-membership-heatmap-1

membership_heatmap(res, k = 3)

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

membership_heatmap(res, k = 4)

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

membership_heatmap(res, k = 5)

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

membership_heatmap(res, k = 6)

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

membership_heatmap(res, k = 7)

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

membership_heatmap(res, k = 8)

plot of chunk tab-node-034-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-034-get-signatures-1

get_signatures(res, k = 3)

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

get_signatures(res, k = 4)

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

get_signatures(res, k = 5)

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

get_signatures(res, k = 6)

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

get_signatures(res, k = 7)

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

get_signatures(res, k = 8)

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

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-034-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-034-dimension-reduction-1

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

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

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

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

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

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

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

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

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

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

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

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

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-034-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-leaf , Node013-leaf , Node014-leaf , Node015-leaf , Node016-leaf , Node021 , Node022 , Node023 , Node024-leaf , Node031 , Node032 , Node033-leaf , Node034 , Node041-leaf , Node042 , Node043-leaf , Node044-leaf , Node045-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 62 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 4.
#> 
#> 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 1.000           0.999       0.999        0.33825 0.663   0.663
#> 3 3 1.000           0.989       0.996        0.45267 0.805   0.714
#> 4 4 1.000           0.999       1.000        0.12023 0.932   0.868
#> 5 5 0.994           0.981       0.986        0.01144 0.994   0.986
#> 6 6 0.955           0.933       0.956        0.02877 0.991   0.980
#> 7 7 0.859           0.850       0.924        0.04404 0.998   0.995
#> 8 8 0.884           0.838       0.913       -0.00729 0.998   0.995

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

suggest_best_k(res)
#> [1] 4
#> 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.DX.A1KX.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.AB37.01     2   0.000      0.999 0.00 1.00
#> TCGA.WK.A8Y0.01     2   0.000      0.999 0.00 1.00
#> TCGA.X6.A8C6.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.AB36.01     2   0.000      0.999 0.00 1.00
#> TCGA.FX.A8OO.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A8BJ.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.AB30.01     1   0.000      1.000 1.00 0.00
#> TCGA.MO.A47R.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A1L2.01     2   0.000      0.999 0.00 1.00
#> TCGA.QQ.A5VB.01     2   0.000      0.999 0.00 1.00
#> TCGA.3B.A9HX.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A1L0.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A7EO.01     1   0.000      1.000 1.00 0.00
#> TCGA.MB.A8JK.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.AB2H.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A7ER.01     1   0.000      1.000 1.00 0.00
#> TCGA.VT.A80J.02     2   0.000      0.999 0.00 1.00
#> TCGA.Z4.AAPF.01     1   0.000      1.000 1.00 0.00
#> TCGA.VT.AB3D.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.AB2E.01     2   0.000      0.999 0.00 1.00
#> TCGA.X6.A8C7.01     1   0.000      1.000 1.00 0.00
#> TCGA.KF.A41W.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A7ET.01     2   0.000      0.999 0.00 1.00
#> TCGA.3B.A9HV.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.AB3A.01     2   0.000      0.999 0.00 1.00
#> TCGA.K1.A6RU.01     2   0.000      0.999 0.00 1.00
#> TCGA.N1.A6IA.01     2   0.000      0.999 0.00 1.00
#> TCGA.HB.A2OT.01     2   0.000      0.999 0.00 1.00
#> TCGA.SG.A6Z7.01     1   0.000      1.000 1.00 0.00
#> TCGA.HB.A3L4.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.AB2Z.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.AB2T.01     2   0.000      0.999 0.00 1.00
#> TCGA.JV.A75J.01     2   0.242      0.958 0.04 0.96
#> TCGA.3B.A9HI.01     2   0.000      0.999 0.00 1.00
#> TCGA.MJ.A850.01     1   0.000      1.000 1.00 0.00
#> TCGA.IS.A3KA.01     2   0.000      0.999 0.00 1.00
#> TCGA.UE.A6QU.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A3LW.01     2   0.000      0.999 0.00 1.00
#> TCGA.IW.A3M5.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A1KU.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A3U9.01     2   0.000      0.999 0.00 1.00
#> TCGA.SG.A849.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A6BF.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A2J0.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A7EQ.01     1   0.000      1.000 1.00 0.00
#> TCGA.QC.A6FX.01     2   0.000      0.999 0.00 1.00
#> TCGA.QQ.A5V9.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A8BH.01     2   0.000      0.999 0.00 1.00
#> TCGA.HS.A5N8.01     2   0.000      0.999 0.00 1.00
#> TCGA.WK.A8XT.01     1   0.000      1.000 1.00 0.00
#> TCGA.SI.A71Q.01     1   0.000      1.000 1.00 0.00
#> TCGA.DX.A8BX.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A23U.01     2   0.000      0.999 0.00 1.00
#> TCGA.SI.A71O.06     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A8BV.01     2   0.000      0.999 0.00 1.00
#> TCGA.KD.A5QU.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A6YU.01     2   0.000      0.999 0.00 1.00
#> TCGA.JV.A5VF.01     2   0.000      0.999 0.00 1.00
#> TCGA.DX.A8BN.01     2   0.000      0.999 0.00 1.00
#> TCGA.QQ.A8VH.01     1   0.000      1.000 1.00 0.00
#> TCGA.Z4.A9VC.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.DX.A1KX.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.AB37.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.WK.A8Y0.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.X6.A8C6.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.AB36.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.FX.A8OO.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.DX.A8BJ.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.AB30.01     3   0.000      0.964  0 0.00 1.00
#> TCGA.MO.A47R.01     3   0.334      0.817  0 0.12 0.88
#> TCGA.DX.A1L2.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.QQ.A5VB.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.3B.A9HX.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.A1L0.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.A7EO.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.MB.A8JK.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.AB2H.01     3   0.000      0.964  0 0.00 1.00
#> TCGA.DX.A7ER.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.VT.A80J.02     2   0.000      1.000  0 1.00 0.00
#> TCGA.Z4.AAPF.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.VT.AB3D.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.AB2E.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.X6.A8C7.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.KF.A41W.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.A7ET.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.3B.A9HV.01     3   0.153      0.939  0 0.04 0.96
#> TCGA.DX.AB3A.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.K1.A6RU.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.N1.A6IA.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.HB.A2OT.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.SG.A6Z7.01     3   0.000      0.964  0 0.00 1.00
#> TCGA.HB.A3L4.01     3   0.153      0.939  0 0.04 0.96
#> TCGA.DX.AB2Z.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.AB2T.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.JV.A75J.01     3   0.000      0.964  0 0.00 1.00
#> TCGA.3B.A9HI.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.MJ.A850.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.IS.A3KA.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.UE.A6QU.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.A3LW.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.IW.A3M5.01     3   0.000      0.964  0 0.00 1.00
#> TCGA.DX.A1KU.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.A3U9.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.SG.A849.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.A6BF.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.A2J0.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.A7EQ.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.QC.A6FX.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.QQ.A5V9.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.A8BH.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.HS.A5N8.01     3   0.000      0.964  0 0.00 1.00
#> TCGA.WK.A8XT.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.SI.A71Q.01     3   0.000      0.964  0 0.00 1.00
#> TCGA.DX.A8BX.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.A23U.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.SI.A71O.06     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.A8BV.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.KD.A5QU.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.A6YU.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.JV.A5VF.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.DX.A8BN.01     2   0.000      1.000  0 1.00 0.00
#> TCGA.QQ.A8VH.01     3   0.000      0.964  0 0.00 1.00
#> TCGA.Z4.A9VC.01     3   0.153      0.939  0 0.04 0.96

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette p1 p2   p3   p4
#> TCGA.DX.A1KX.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.AB37.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.WK.A8Y0.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.X6.A8C6.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.AB36.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.FX.A8OO.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.DX.A8BJ.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.AB30.01     3  0.0000      1.000  0  0 1.00 0.00
#> TCGA.MO.A47R.01     4  0.0000      0.997  0  0 0.00 1.00
#> TCGA.DX.A1L2.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.QQ.A5VB.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.3B.A9HX.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A1L0.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A7EO.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.MB.A8JK.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.AB2H.01     4  0.0707      0.980  0  0 0.02 0.98
#> TCGA.DX.A7ER.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.VT.A80J.02     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.Z4.AAPF.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.VT.AB3D.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.AB2E.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.X6.A8C7.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.KF.A41W.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A7ET.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.3B.A9HV.01     4  0.0000      0.997  0  0 0.00 1.00
#> TCGA.DX.AB3A.01     4  0.0000      0.997  0  0 0.00 1.00
#> TCGA.K1.A6RU.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.N1.A6IA.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.HB.A2OT.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.SG.A6Z7.01     3  0.0000      1.000  0  0 1.00 0.00
#> TCGA.HB.A3L4.01     4  0.0000      0.997  0  0 0.00 1.00
#> TCGA.DX.AB2Z.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.AB2T.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.JV.A75J.01     3  0.0000      1.000  0  0 1.00 0.00
#> TCGA.3B.A9HI.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.MJ.A850.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.IS.A3KA.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.UE.A6QU.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A3LW.01     4  0.0000      0.997  0  0 0.00 1.00
#> TCGA.IW.A3M5.01     3  0.0000      1.000  0  0 1.00 0.00
#> TCGA.DX.A1KU.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A3U9.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.SG.A849.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A6BF.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A2J0.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A7EQ.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.QC.A6FX.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.QQ.A5V9.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A8BH.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.HS.A5N8.01     4  0.0000      0.997  0  0 0.00 1.00
#> TCGA.WK.A8XT.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.SI.A71Q.01     3  0.0000      1.000  0  0 1.00 0.00
#> TCGA.DX.A8BX.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A23U.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.SI.A71O.06     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A8BV.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.KD.A5QU.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A6YU.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.JV.A5VF.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A8BN.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.QQ.A8VH.01     3  0.0000      1.000  0  0 1.00 0.00
#> TCGA.Z4.A9VC.01     4  0.0000      0.997  0  0 0.00 1.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.DX.A1KX.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.AB37.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.WK.A8Y0.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.X6.A8C6.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.AB36.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.FX.A8OO.01     1  0.0000      1.000  1  0 0.00 0.00 0.00
#> TCGA.DX.A8BJ.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.AB30.01     3  0.0000      0.914  0  0 1.00 0.00 0.00
#> TCGA.MO.A47R.01     4  0.0609      0.944  0  0 0.00 0.98 0.02
#> TCGA.DX.A1L2.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.QQ.A5VB.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.3B.A9HX.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.A1L0.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.A7EO.01     1  0.0000      1.000  1  0 0.00 0.00 0.00
#> TCGA.MB.A8JK.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.AB2H.01     4  0.1043      0.941  0  0 0.00 0.96 0.04
#> TCGA.DX.A7ER.01     1  0.0000      1.000  1  0 0.00 0.00 0.00
#> TCGA.VT.A80J.02     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.Z4.AAPF.01     1  0.0000      1.000  1  0 0.00 0.00 0.00
#> TCGA.VT.AB3D.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.AB2E.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.X6.A8C7.01     1  0.0000      1.000  1  0 0.00 0.00 0.00
#> TCGA.KF.A41W.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.A7ET.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.3B.A9HV.01     5  0.2280      0.977  0  0 0.00 0.12 0.88
#> TCGA.DX.AB3A.01     4  0.0000      0.953  0  0 0.00 1.00 0.00
#> TCGA.K1.A6RU.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.N1.A6IA.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.HB.A2OT.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.SG.A6Z7.01     3  0.0000      0.914  0  0 1.00 0.00 0.00
#> TCGA.HB.A3L4.01     5  0.2020      0.977  0  0 0.00 0.10 0.90
#> TCGA.DX.AB2Z.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.AB2T.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.JV.A75J.01     3  0.2020      0.905  0  0 0.90 0.00 0.10
#> TCGA.3B.A9HI.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.MJ.A850.01     1  0.0000      1.000  1  0 0.00 0.00 0.00
#> TCGA.IS.A3KA.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.UE.A6QU.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.A3LW.01     4  0.0000      0.953  0  0 0.00 1.00 0.00
#> TCGA.IW.A3M5.01     3  0.2020      0.905  0  0 0.90 0.00 0.10
#> TCGA.DX.A1KU.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.A3U9.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.SG.A849.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.A6BF.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.A2J0.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.A7EQ.01     1  0.0000      1.000  1  0 0.00 0.00 0.00
#> TCGA.QC.A6FX.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.QQ.A5V9.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.A8BH.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.HS.A5N8.01     4  0.3037      0.820  0  0 0.04 0.86 0.10
#> TCGA.WK.A8XT.01     1  0.0000      1.000  1  0 0.00 0.00 0.00
#> TCGA.SI.A71Q.01     3  0.0000      0.914  0  0 1.00 0.00 0.00
#> TCGA.DX.A8BX.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.A23U.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.SI.A71O.06     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.A8BV.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.KD.A5QU.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.A6YU.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.JV.A5VF.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.DX.A8BN.01     2  0.0000      1.000  0  1 0.00 0.00 0.00
#> TCGA.QQ.A8VH.01     3  0.4437      0.772  0  0 0.76 0.14 0.10
#> TCGA.Z4.A9VC.01     4  0.0000      0.953  0  0 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.DX.A1KX.01     2  0.0547      0.977  0 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.AB37.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8Y0.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C6.01     2  0.0547      0.977  0 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.AB36.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.FX.A8OO.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BJ.01     2  0.0937      0.960  0 0.96 0.00 0.00 0.00 0.04
#> TCGA.DX.AB30.01     3  0.0000      1.000  0 0.00 1.00 0.00 0.00 0.00
#> TCGA.MO.A47R.01     4  0.0937      0.857  0 0.00 0.00 0.96 0.00 0.04
#> TCGA.DX.A1L2.01     2  0.0547      0.977  0 0.98 0.00 0.00 0.00 0.02
#> TCGA.QQ.A5VB.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HX.01     2  0.1556      0.929  0 0.92 0.00 0.00 0.00 0.08
#> TCGA.DX.A1L0.01     2  0.0547      0.977  0 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.A7EO.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00
#> TCGA.MB.A8JK.01     2  0.0547      0.977  0 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.AB2H.01     4  0.3460      0.741  0 0.00 0.00 0.76 0.02 0.22
#> TCGA.DX.A7ER.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00
#> TCGA.VT.A80J.02     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.Z4.AAPF.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00
#> TCGA.VT.AB3D.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2E.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C7.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00
#> TCGA.KF.A41W.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7ET.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HV.01     5  0.1267      0.905  0 0.00 0.00 0.06 0.94 0.00
#> TCGA.DX.AB3A.01     4  0.0000      0.858  0 0.00 0.00 1.00 0.00 0.00
#> TCGA.K1.A6RU.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.N1.A6IA.01     2  0.0937      0.960  0 0.96 0.00 0.00 0.00 0.04
#> TCGA.HB.A2OT.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.SG.A6Z7.01     3  0.0000      1.000  0 0.00 1.00 0.00 0.00 0.00
#> TCGA.HB.A3L4.01     5  0.1267      0.906  0 0.00 0.00 0.00 0.94 0.06
#> TCGA.DX.AB2Z.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2T.01     2  0.0547      0.977  0 0.98 0.00 0.00 0.00 0.02
#> TCGA.JV.A75J.01     6  0.3797      0.542  0 0.00 0.42 0.00 0.00 0.58
#> TCGA.3B.A9HI.01     2  0.0547      0.977  0 0.98 0.00 0.00 0.00 0.02
#> TCGA.MJ.A850.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00
#> TCGA.IS.A3KA.01     2  0.1556      0.929  0 0.92 0.00 0.00 0.00 0.08
#> TCGA.UE.A6QU.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3LW.01     4  0.0000      0.858  0 0.00 0.00 1.00 0.00 0.00
#> TCGA.IW.A3M5.01     6  0.3647      0.632  0 0.00 0.36 0.00 0.00 0.64
#> TCGA.DX.A1KU.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U9.01     2  0.1814      0.921  0 0.90 0.00 0.00 0.00 0.10
#> TCGA.SG.A849.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BF.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A2J0.01     2  0.0547      0.977  0 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.A7EQ.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00
#> TCGA.QC.A6FX.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A5V9.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BH.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5N8.01     6  0.3309      0.277  0 0.00 0.00 0.28 0.00 0.72
#> TCGA.WK.A8XT.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00
#> TCGA.SI.A71Q.01     3  0.0000      1.000  0 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BX.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23U.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.SI.A71O.06     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BV.01     2  0.0547      0.977  0 0.98 0.00 0.00 0.00 0.02
#> TCGA.KD.A5QU.01     2  0.1814      0.921  0 0.90 0.00 0.00 0.00 0.10
#> TCGA.DX.A6YU.01     2  0.0000      0.983  0 1.00 0.00 0.00 0.00 0.00
#> TCGA.JV.A5VF.01     2  0.1267      0.945  0 0.94 0.00 0.00 0.00 0.06
#> TCGA.DX.A8BN.01     2  0.0547      0.977  0 0.98 0.00 0.00 0.00 0.02
#> TCGA.QQ.A8VH.01     6  0.3592      0.668  0 0.00 0.24 0.02 0.00 0.74
#> TCGA.Z4.A9VC.01     4  0.3950      0.675  0 0.00 0.00 0.72 0.04 0.24

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.DX.A1KX.01     2  0.1363     0.9376  0 0.94 0.00 0.02 0.00 0.00 0.04
#> TCGA.DX.AB37.01     2  0.0504     0.9480  0 0.98 0.00 0.02 0.00 0.00 0.00
#> TCGA.WK.A8Y0.01     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C6.01     2  0.1006     0.9429  0 0.96 0.00 0.02 0.00 0.00 0.02
#> TCGA.DX.AB36.01     2  0.0504     0.9480  0 0.98 0.00 0.02 0.00 0.00 0.00
#> TCGA.FX.A8OO.01     1  0.0000     1.0000  1 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BJ.01     2  0.1433     0.9057  0 0.92 0.00 0.00 0.00 0.00 0.08
#> TCGA.DX.AB30.01     3  0.0000     1.0000  0 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.MO.A47R.01     4  0.3909     0.0365  0 0.00 0.00 0.58 0.00 0.02 0.40
#> TCGA.DX.A1L2.01     2  0.1006     0.9429  0 0.96 0.00 0.02 0.00 0.00 0.02
#> TCGA.QQ.A5VB.01     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HX.01     2  0.3186     0.7420  0 0.76 0.00 0.00 0.02 0.00 0.22
#> TCGA.DX.A1L0.01     2  0.1006     0.9443  0 0.96 0.00 0.02 0.00 0.00 0.02
#> TCGA.DX.A7EO.01     1  0.0000     1.0000  1 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MB.A8JK.01     2  0.1363     0.9376  0 0.94 0.00 0.02 0.00 0.00 0.04
#> TCGA.DX.AB2H.01     7  0.6073     0.0000  0 0.00 0.00 0.34 0.04 0.20 0.42
#> TCGA.DX.A7ER.01     1  0.0000     1.0000  1 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VT.A80J.02     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.Z4.AAPF.01     1  0.0000     1.0000  1 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VT.AB3D.01     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2E.01     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C7.01     1  0.0000     1.0000  1 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KF.A41W.01     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7ET.01     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HV.01     5  0.2016     0.8898  0 0.00 0.00 0.04 0.90 0.00 0.06
#> TCGA.DX.AB3A.01     4  0.0000     0.6621  0 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.K1.A6RU.01     2  0.0504     0.9480  0 0.98 0.00 0.02 0.00 0.00 0.00
#> TCGA.N1.A6IA.01     2  0.1886     0.8732  0 0.88 0.00 0.00 0.00 0.00 0.12
#> TCGA.HB.A2OT.01     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.SG.A6Z7.01     3  0.0000     1.0000  0 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.HB.A3L4.01     5  0.0000     0.8952  0 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.AB2Z.01     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB2T.01     2  0.1363     0.9376  0 0.94 0.00 0.02 0.00 0.00 0.04
#> TCGA.JV.A75J.01     6  0.5252     0.2455  0 0.00 0.42 0.00 0.00 0.42 0.16
#> TCGA.3B.A9HI.01     2  0.1006     0.9429  0 0.96 0.00 0.02 0.00 0.00 0.02
#> TCGA.MJ.A850.01     1  0.0000     1.0000  1 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IS.A3KA.01     2  0.2708     0.7733  0 0.78 0.00 0.00 0.00 0.00 0.22
#> TCGA.UE.A6QU.01     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3LW.01     4  0.0000     0.6621  0 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.IW.A3M5.01     6  0.3459     0.4145  0 0.00 0.40 0.00 0.00 0.60 0.00
#> TCGA.DX.A1KU.01     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A3U9.01     2  0.3417     0.6985  0 0.72 0.00 0.00 0.02 0.00 0.26
#> TCGA.SG.A849.01     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6BF.01     2  0.0504     0.9480  0 0.98 0.00 0.02 0.00 0.00 0.00
#> TCGA.DX.A2J0.01     2  0.1006     0.9443  0 0.96 0.00 0.02 0.00 0.00 0.02
#> TCGA.DX.A7EQ.01     1  0.0000     1.0000  1 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QC.A6FX.01     2  0.0504     0.9480  0 0.98 0.00 0.02 0.00 0.00 0.00
#> TCGA.QQ.A5V9.01     2  0.1006     0.9429  0 0.96 0.00 0.02 0.00 0.00 0.02
#> TCGA.DX.A8BH.01     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HS.A5N8.01     6  0.3770     0.2216  0 0.00 0.00 0.08 0.00 0.74 0.18
#> TCGA.WK.A8XT.01     1  0.0000     1.0000  1 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.SI.A71Q.01     3  0.0000     1.0000  0 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BX.01     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A23U.01     2  0.1006     0.9429  0 0.96 0.00 0.02 0.00 0.00 0.02
#> TCGA.SI.A71O.06     2  0.0000     0.9493  0 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BV.01     2  0.1006     0.9429  0 0.96 0.00 0.02 0.00 0.00 0.02
#> TCGA.KD.A5QU.01     2  0.3417     0.6985  0 0.72 0.00 0.00 0.02 0.00 0.26
#> TCGA.DX.A6YU.01     2  0.0504     0.9480  0 0.98 0.00 0.02 0.00 0.00 0.00
#> TCGA.JV.A5VF.01     2  0.2708     0.7749  0 0.78 0.00 0.00 0.00 0.00 0.22
#> TCGA.DX.A8BN.01     2  0.1006     0.9429  0 0.96 0.00 0.02 0.00 0.00 0.02
#> TCGA.QQ.A8VH.01     6  0.2016     0.4712  0 0.00 0.06 0.00 0.00 0.90 0.04
#> TCGA.Z4.A9VC.01     4  0.3617     0.5132  0 0.00 0.00 0.76 0.00 0.08 0.16

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.DX.A1KX.01     8  0.1091      0.950  0 0.00 0.00 0.00 0.00 0.00 0.06 0.94
#> TCGA.DX.AB37.01     8  0.0808      0.953  0 0.00 0.00 0.00 0.00 0.00 0.04 0.96
#> TCGA.WK.A8Y0.01     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.X6.A8C6.01     8  0.1091      0.950  0 0.00 0.00 0.00 0.00 0.00 0.06 0.94
#> TCGA.DX.AB36.01     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.FX.A8OO.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BJ.01     8  0.0808      0.938  0 0.04 0.00 0.00 0.00 0.00 0.00 0.96
#> TCGA.DX.AB30.01     3  0.0000      1.000  0 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MO.A47R.01     4  0.4904      0.313  0 0.14 0.00 0.58 0.00 0.02 0.26 0.00
#> TCGA.DX.A1L2.01     8  0.1091      0.950  0 0.00 0.00 0.00 0.00 0.00 0.06 0.94
#> TCGA.QQ.A5VB.01     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.3B.A9HX.01     8  0.2888      0.783  0 0.16 0.00 0.00 0.04 0.00 0.00 0.80
#> TCGA.DX.A1L0.01     8  0.1091      0.950  0 0.00 0.00 0.00 0.00 0.00 0.06 0.94
#> TCGA.DX.A7EO.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.MB.A8JK.01     8  0.1091      0.950  0 0.00 0.00 0.00 0.00 0.00 0.06 0.94
#> TCGA.DX.AB2H.01     7  0.5994     -0.326  0 0.18 0.00 0.26 0.00 0.10 0.46 0.00
#> TCGA.DX.A7ER.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VT.A80J.02     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.Z4.AAPF.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VT.AB3D.01     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.AB2E.01     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.X6.A8C7.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KF.A41W.01     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.A7ET.01     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.3B.A9HV.01     5  0.1557      0.723  0 0.00 0.00 0.06 0.92 0.00 0.02 0.00
#> TCGA.DX.AB3A.01     4  0.0000      0.656  0 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A6RU.01     8  0.1091      0.950  0 0.00 0.00 0.00 0.00 0.00 0.06 0.94
#> TCGA.N1.A6IA.01     8  0.0808      0.938  0 0.04 0.00 0.00 0.00 0.00 0.00 0.96
#> TCGA.HB.A2OT.01     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.SG.A6Z7.01     3  0.0000      1.000  0 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.HB.A3L4.01     5  0.2650      0.729  0 0.24 0.00 0.00 0.76 0.00 0.00 0.00
#> TCGA.DX.AB2Z.01     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.AB2T.01     8  0.1091      0.950  0 0.00 0.00 0.00 0.00 0.00 0.06 0.94
#> TCGA.JV.A75J.01     7  0.5030     -0.377  0 0.00 0.20 0.00 0.00 0.34 0.46 0.00
#> TCGA.3B.A9HI.01     8  0.1091      0.950  0 0.00 0.00 0.00 0.00 0.00 0.06 0.94
#> TCGA.MJ.A850.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IS.A3KA.01     8  0.2224      0.870  0 0.12 0.00 0.00 0.00 0.00 0.02 0.86
#> TCGA.UE.A6QU.01     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.A3LW.01     4  0.0000      0.656  0 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.IW.A3M5.01     6  0.4672      0.101  0 0.02 0.24 0.00 0.00 0.62 0.12 0.00
#> TCGA.DX.A1KU.01     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.A3U9.01     8  0.3651      0.773  0 0.16 0.00 0.00 0.04 0.00 0.04 0.76
#> TCGA.SG.A849.01     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.A6BF.01     8  0.0471      0.955  0 0.00 0.00 0.00 0.00 0.00 0.02 0.98
#> TCGA.DX.A2J0.01     8  0.0808      0.953  0 0.00 0.00 0.00 0.00 0.00 0.04 0.96
#> TCGA.DX.A7EQ.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QC.A6FX.01     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.QQ.A5V9.01     8  0.1091      0.950  0 0.00 0.00 0.00 0.00 0.00 0.06 0.94
#> TCGA.DX.A8BH.01     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.HS.A5N8.01     6  0.4324      0.270  0 0.08 0.00 0.10 0.00 0.72 0.10 0.00
#> TCGA.WK.A8XT.01     1  0.0000      1.000  1 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.SI.A71Q.01     3  0.0000      1.000  0 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BX.01     8  0.0808      0.953  0 0.00 0.00 0.00 0.00 0.00 0.04 0.96
#> TCGA.DX.A23U.01     8  0.0808      0.953  0 0.00 0.00 0.00 0.00 0.00 0.04 0.96
#> TCGA.SI.A71O.06     8  0.0000      0.957  0 0.00 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.A8BV.01     8  0.1091      0.950  0 0.00 0.00 0.00 0.00 0.00 0.06 0.94
#> TCGA.KD.A5QU.01     8  0.3651      0.773  0 0.16 0.00 0.00 0.04 0.00 0.04 0.76
#> TCGA.DX.A6YU.01     8  0.0471      0.956  0 0.00 0.00 0.00 0.00 0.00 0.02 0.98
#> TCGA.JV.A5VF.01     8  0.1557      0.923  0 0.06 0.00 0.00 0.00 0.00 0.02 0.92
#> TCGA.DX.A8BN.01     8  0.1091      0.950  0 0.00 0.00 0.00 0.00 0.00 0.06 0.94
#> TCGA.QQ.A8VH.01     6  0.3504      0.335  0 0.26 0.00 0.00 0.00 0.70 0.04 0.00
#> TCGA.Z4.A9VC.01     4  0.5649      0.368  0 0.12 0.00 0.54 0.00 0.22 0.12 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.


Node042

Parent node: Node04. Child nodes: Node0111 , Node0112 , Node0211-leaf , Node0212-leaf , Node0213-leaf , Node0221-leaf , Node0222-leaf , Node0231-leaf , Node0232-leaf , Node0233-leaf , Node0311-leaf , Node0312-leaf , Node0313-leaf , Node0321-leaf , Node0322-leaf , Node0323-leaf , Node0341-leaf , Node0342-leaf , Node0421-leaf , Node0422 , Node0423 , Node0424-leaf .

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

res = res_rh["042"]

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 40 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 6.
#> 
#> 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-042-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-042-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.5082 0.492   0.492
#> 3 3 1.000           1.000       1.000         0.3327 0.779   0.574
#> 4 4 1.000           0.999       1.000         0.0910 0.938   0.810
#> 5 5 0.980           0.946       0.981         0.0256 0.986   0.946
#> 6 6 0.900           0.712       0.880         0.0384 0.959   0.834
#> 7 7 0.805           0.777       0.870         0.0269 0.964   0.838
#> 8 8 0.787           0.732       0.853         0.0272 1.000   1.000

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

suggest_best_k(res)
#> [1] 6
#> 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.DX.A1KX.01     1       0          1  1  0
#> TCGA.DX.AB37.01     1       0          1  1  0
#> TCGA.WK.A8Y0.01     2       0          1  0  1
#> TCGA.X6.A8C6.01     1       0          1  1  0
#> TCGA.DX.AB36.01     2       0          1  0  1
#> TCGA.DX.A8BJ.01     2       0          1  0  1
#> TCGA.DX.A1L2.01     1       0          1  1  0
#> TCGA.QQ.A5VB.01     2       0          1  0  1
#> TCGA.3B.A9HX.01     2       0          1  0  1
#> TCGA.DX.A1L0.01     1       0          1  1  0
#> TCGA.MB.A8JK.01     1       0          1  1  0
#> TCGA.VT.A80J.02     2       0          1  0  1
#> TCGA.VT.AB3D.01     1       0          1  1  0
#> TCGA.DX.AB2E.01     2       0          1  0  1
#> TCGA.KF.A41W.01     2       0          1  0  1
#> TCGA.DX.A7ET.01     2       0          1  0  1
#> TCGA.K1.A6RU.01     1       0          1  1  0
#> TCGA.N1.A6IA.01     2       0          1  0  1
#> TCGA.HB.A2OT.01     2       0          1  0  1
#> TCGA.DX.AB2Z.01     2       0          1  0  1
#> TCGA.DX.AB2T.01     1       0          1  1  0
#> TCGA.3B.A9HI.01     1       0          1  1  0
#> TCGA.IS.A3KA.01     2       0          1  0  1
#> TCGA.UE.A6QU.01     2       0          1  0  1
#> TCGA.DX.A1KU.01     2       0          1  0  1
#> TCGA.DX.A3U9.01     2       0          1  0  1
#> TCGA.SG.A849.01     2       0          1  0  1
#> TCGA.DX.A6BF.01     1       0          1  1  0
#> TCGA.DX.A2J0.01     1       0          1  1  0
#> TCGA.QC.A6FX.01     1       0          1  1  0
#> TCGA.QQ.A5V9.01     1       0          1  1  0
#> TCGA.DX.A8BH.01     2       0          1  0  1
#> TCGA.DX.A8BX.01     1       0          1  1  0
#> TCGA.DX.A23U.01     2       0          1  0  1
#> TCGA.SI.A71O.06     2       0          1  0  1
#> TCGA.DX.A8BV.01     1       0          1  1  0
#> TCGA.KD.A5QU.01     2       0          1  0  1
#> TCGA.DX.A6YU.01     1       0          1  1  0
#> TCGA.JV.A5VF.01     2       0          1  0  1
#> TCGA.DX.A8BN.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.DX.A1KX.01     1       0          1  1  0  0
#> TCGA.DX.AB37.01     1       0          1  1  0  0
#> TCGA.WK.A8Y0.01     2       0          1  0  1  0
#> TCGA.X6.A8C6.01     1       0          1  1  0  0
#> TCGA.DX.AB36.01     3       0          1  0  0  1
#> TCGA.DX.A8BJ.01     2       0          1  0  1  0
#> TCGA.DX.A1L2.01     1       0          1  1  0  0
#> TCGA.QQ.A5VB.01     2       0          1  0  1  0
#> TCGA.3B.A9HX.01     2       0          1  0  1  0
#> TCGA.DX.A1L0.01     1       0          1  1  0  0
#> TCGA.MB.A8JK.01     1       0          1  1  0  0
#> TCGA.VT.A80J.02     2       0          1  0  1  0
#> TCGA.VT.AB3D.01     3       0          1  0  0  1
#> TCGA.DX.AB2E.01     2       0          1  0  1  0
#> TCGA.KF.A41W.01     2       0          1  0  1  0
#> TCGA.DX.A7ET.01     3       0          1  0  0  1
#> TCGA.K1.A6RU.01     1       0          1  1  0  0
#> TCGA.N1.A6IA.01     2       0          1  0  1  0
#> TCGA.HB.A2OT.01     3       0          1  0  0  1
#> TCGA.DX.AB2Z.01     3       0          1  0  0  1
#> TCGA.DX.AB2T.01     1       0          1  1  0  0
#> TCGA.3B.A9HI.01     1       0          1  1  0  0
#> TCGA.IS.A3KA.01     2       0          1  0  1  0
#> TCGA.UE.A6QU.01     3       0          1  0  0  1
#> TCGA.DX.A1KU.01     3       0          1  0  0  1
#> TCGA.DX.A3U9.01     2       0          1  0  1  0
#> TCGA.SG.A849.01     3       0          1  0  0  1
#> TCGA.DX.A6BF.01     1       0          1  1  0  0
#> TCGA.DX.A2J0.01     1       0          1  1  0  0
#> TCGA.QC.A6FX.01     3       0          1  0  0  1
#> TCGA.QQ.A5V9.01     1       0          1  1  0  0
#> TCGA.DX.A8BH.01     3       0          1  0  0  1
#> TCGA.DX.A8BX.01     1       0          1  1  0  0
#> TCGA.DX.A23U.01     3       0          1  0  0  1
#> TCGA.SI.A71O.06     3       0          1  0  0  1
#> TCGA.DX.A8BV.01     1       0          1  1  0  0
#> TCGA.KD.A5QU.01     2       0          1  0  1  0
#> TCGA.DX.A6YU.01     1       0          1  1  0  0
#> TCGA.JV.A5VF.01     2       0          1  0  1  0
#> TCGA.DX.A8BN.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.DX.A1KX.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.DX.AB37.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.WK.A8Y0.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.X6.A8C6.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.DX.AB36.01     3  0.0000      0.998  0  0 1.00 0.00
#> TCGA.DX.A8BJ.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A1L2.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.QQ.A5VB.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.3B.A9HX.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A1L0.01     4  0.0000      1.000  0  0 0.00 1.00
#> TCGA.MB.A8JK.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.VT.A80J.02     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.VT.AB3D.01     3  0.0000      0.998  0  0 1.00 0.00
#> TCGA.DX.AB2E.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.KF.A41W.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A7ET.01     3  0.0000      0.998  0  0 1.00 0.00
#> TCGA.K1.A6RU.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.N1.A6IA.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.HB.A2OT.01     3  0.0000      0.998  0  0 1.00 0.00
#> TCGA.DX.AB2Z.01     3  0.0000      0.998  0  0 1.00 0.00
#> TCGA.DX.AB2T.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.3B.A9HI.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.IS.A3KA.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.UE.A6QU.01     3  0.0707      0.980  0  0 0.98 0.02
#> TCGA.DX.A1KU.01     3  0.0000      0.998  0  0 1.00 0.00
#> TCGA.DX.A3U9.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.SG.A849.01     3  0.0000      0.998  0  0 1.00 0.00
#> TCGA.DX.A6BF.01     4  0.0000      1.000  0  0 0.00 1.00
#> TCGA.DX.A2J0.01     4  0.0000      1.000  0  0 0.00 1.00
#> TCGA.QC.A6FX.01     3  0.0000      0.998  0  0 1.00 0.00
#> TCGA.QQ.A5V9.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.DX.A8BH.01     3  0.0000      0.998  0  0 1.00 0.00
#> TCGA.DX.A8BX.01     4  0.0000      1.000  0  0 0.00 1.00
#> TCGA.DX.A23U.01     3  0.0000      0.998  0  0 1.00 0.00
#> TCGA.SI.A71O.06     3  0.0000      0.998  0  0 1.00 0.00
#> TCGA.DX.A8BV.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.KD.A5QU.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A6YU.01     1  0.0000      1.000  1  0 0.00 0.00
#> TCGA.JV.A5VF.01     2  0.0000      1.000  0  1 0.00 0.00
#> TCGA.DX.A8BN.01     1  0.0000      1.000  1  0 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.DX.A1KX.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB37.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8Y0.01     2  0.0000      0.986 0.00 1.00 0.00 0.00 0.00
#> TCGA.X6.A8C6.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB36.01     3  0.1410      0.923 0.00 0.00 0.94 0.00 0.06
#> TCGA.DX.A8BJ.01     2  0.0000      0.986 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A1L2.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A5VB.01     2  0.0000      0.986 0.00 1.00 0.00 0.00 0.00
#> TCGA.3B.A9HX.01     2  0.1043      0.966 0.00 0.96 0.00 0.00 0.04
#> TCGA.DX.A1L0.01     4  0.0000      1.000 0.00 0.00 0.00 1.00 0.00
#> TCGA.MB.A8JK.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.VT.A80J.02     2  0.0000      0.986 0.00 1.00 0.00 0.00 0.00
#> TCGA.VT.AB3D.01     3  0.0000      0.949 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.AB2E.01     2  0.0000      0.986 0.00 1.00 0.00 0.00 0.00
#> TCGA.KF.A41W.01     2  0.0000      0.986 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A7ET.01     3  0.0000      0.949 0.00 0.00 1.00 0.00 0.00
#> TCGA.K1.A6RU.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.N1.A6IA.01     2  0.0609      0.983 0.00 0.98 0.00 0.00 0.02
#> TCGA.HB.A2OT.01     3  0.0000      0.949 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.AB2Z.01     3  0.1216      0.934 0.00 0.02 0.96 0.00 0.02
#> TCGA.DX.AB2T.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HI.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.IS.A3KA.01     2  0.0609      0.983 0.00 0.98 0.00 0.00 0.02
#> TCGA.UE.A6QU.01     3  0.3697      0.818 0.00 0.00 0.82 0.08 0.10
#> TCGA.DX.A1KU.01     3  0.0000      0.949 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A3U9.01     5  0.2020      0.000 0.00 0.10 0.00 0.00 0.90
#> TCGA.SG.A849.01     3  0.0000      0.949 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A6BF.01     4  0.0000      1.000 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.A2J0.01     4  0.0000      1.000 0.00 0.00 0.00 1.00 0.00
#> TCGA.QC.A6FX.01     3  0.4008      0.809 0.02 0.00 0.82 0.08 0.08
#> TCGA.QQ.A5V9.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BH.01     3  0.0000      0.949 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A8BX.01     4  0.0000      1.000 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.A23U.01     3  0.1410      0.923 0.00 0.00 0.94 0.00 0.06
#> TCGA.SI.A71O.06     3  0.1216      0.934 0.00 0.02 0.96 0.00 0.02
#> TCGA.DX.A8BV.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QU.01     2  0.0609      0.983 0.00 0.98 0.00 0.00 0.02
#> TCGA.DX.A6YU.01     1  0.0000      1.000 1.00 0.00 0.00 0.00 0.00
#> TCGA.JV.A5VF.01     2  0.0609      0.983 0.00 0.98 0.00 0.00 0.02
#> TCGA.DX.A8BN.01     1  0.0000      1.000 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.DX.A1KX.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB37.01     1  0.2981      0.869 0.82 0.00 0.00 0.00 0.02 0.16
#> TCGA.WK.A8Y0.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C6.01     1  0.2981      0.869 0.82 0.00 0.00 0.00 0.02 0.16
#> TCGA.DX.AB36.01     3  0.0000      0.209 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.DX.A8BJ.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A1L2.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A5VB.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HX.01     2  0.1556      0.905 0.00 0.92 0.00 0.00 0.00 0.08
#> TCGA.DX.A1L0.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.MB.A8JK.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VT.A80J.02     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.VT.AB3D.01     3  0.3869      0.421 0.00 0.00 0.50 0.00 0.00 0.50
#> TCGA.DX.AB2E.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.KF.A41W.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7ET.01     3  0.3828      0.554 0.00 0.00 0.56 0.00 0.00 0.44
#> TCGA.K1.A6RU.01     1  0.2350      0.895 0.88 0.00 0.00 0.00 0.02 0.10
#> TCGA.N1.A6IA.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.HB.A2OT.01     3  0.3797      0.550 0.00 0.00 0.58 0.00 0.00 0.42
#> TCGA.DX.AB2Z.01     6  0.4337     -0.439 0.00 0.02 0.48 0.00 0.00 0.50
#> TCGA.DX.AB2T.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HI.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IS.A3KA.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.UE.A6QU.01     6  0.2882      0.195 0.00 0.00 0.10 0.02 0.02 0.86
#> TCGA.DX.A1KU.01     3  0.3828      0.517 0.00 0.00 0.56 0.00 0.00 0.44
#> TCGA.DX.A3U9.01     5  0.0547      0.000 0.00 0.02 0.00 0.00 0.98 0.00
#> TCGA.SG.A849.01     3  0.3828      0.554 0.00 0.00 0.56 0.00 0.00 0.44
#> TCGA.DX.A6BF.01     4  0.0547      0.963 0.00 0.00 0.00 0.98 0.00 0.02
#> TCGA.DX.A2J0.01     4  0.0000      0.965 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.QC.A6FX.01     6  0.4195      0.102 0.00 0.00 0.20 0.02 0.04 0.74
#> TCGA.QQ.A5V9.01     1  0.2981      0.869 0.82 0.00 0.00 0.00 0.02 0.16
#> TCGA.DX.A8BH.01     3  0.3828      0.554 0.00 0.00 0.56 0.00 0.00 0.44
#> TCGA.DX.A8BX.01     4  0.1267      0.929 0.00 0.00 0.00 0.94 0.00 0.06
#> TCGA.DX.A23U.01     3  0.0000      0.209 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.SI.A71O.06     6  0.4337     -0.439 0.00 0.02 0.48 0.00 0.00 0.50
#> TCGA.DX.A8BV.01     1  0.0000      0.925 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QU.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A6YU.01     1  0.2790      0.880 0.84 0.00 0.00 0.00 0.02 0.14
#> TCGA.JV.A5VF.01     2  0.0000      0.991 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BN.01     1  0.0000      0.925 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.DX.A1KX.01     1  0.0000      0.885 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB37.01     1  0.3867      0.818 0.74 0.00 0.00 0.00 0.00 0.14 0.12
#> TCGA.WK.A8Y0.01     2  0.0000      0.926 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.X6.A8C6.01     1  0.3449      0.836 0.78 0.00 0.00 0.00 0.00 0.14 0.08
#> TCGA.DX.AB36.01     7  0.3496      0.963 0.00 0.00 0.42 0.00 0.00 0.00 0.58
#> TCGA.DX.A8BJ.01     2  0.0504      0.921 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.DX.A1L2.01     1  0.0000      0.885 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.QQ.A5VB.01     2  0.0504      0.921 0.00 0.98 0.00 0.00 0.00 0.02 0.00
#> TCGA.3B.A9HX.01     2  0.3149      0.827 0.00 0.84 0.00 0.00 0.04 0.06 0.06
#> TCGA.DX.A1L0.01     4  0.0000      0.927 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.MB.A8JK.01     1  0.0504      0.883 0.98 0.00 0.00 0.00 0.00 0.02 0.00
#> TCGA.VT.A80J.02     2  0.0000      0.926 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.VT.AB3D.01     3  0.0863      0.749 0.00 0.00 0.96 0.00 0.00 0.04 0.00
#> TCGA.DX.AB2E.01     2  0.0000      0.926 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KF.A41W.01     2  0.0000      0.926 0.00 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A7ET.01     3  0.0000      0.770 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.K1.A6RU.01     1  0.3487      0.837 0.78 0.00 0.00 0.00 0.00 0.12 0.10
#> TCGA.N1.A6IA.01     2  0.2512      0.857 0.00 0.86 0.00 0.00 0.00 0.04 0.10
#> TCGA.HB.A2OT.01     3  0.0504      0.753 0.00 0.00 0.98 0.00 0.00 0.00 0.02
#> TCGA.DX.AB2Z.01     3  0.5091      0.473 0.00 0.12 0.64 0.00 0.00 0.20 0.04
#> TCGA.DX.AB2T.01     1  0.0000      0.885 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.3B.A9HI.01     1  0.0000      0.885 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.IS.A3KA.01     2  0.1363      0.904 0.00 0.94 0.00 0.00 0.04 0.00 0.02
#> TCGA.UE.A6QU.01     6  0.3994     -0.119 0.00 0.00 0.48 0.02 0.00 0.50 0.00
#> TCGA.DX.A1KU.01     3  0.1928      0.746 0.00 0.00 0.90 0.00 0.00 0.08 0.02
#> TCGA.DX.A3U9.01     5  0.0000      0.000 0.00 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.SG.A849.01     3  0.1671      0.740 0.00 0.00 0.90 0.00 0.00 0.10 0.00
#> TCGA.DX.A6BF.01     4  0.0504      0.925 0.00 0.00 0.00 0.98 0.00 0.02 0.00
#> TCGA.DX.A2J0.01     4  0.0000      0.927 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.QC.A6FX.01     6  0.4177      0.072 0.00 0.00 0.12 0.00 0.00 0.70 0.18
#> TCGA.QQ.A5V9.01     1  0.3867      0.818 0.74 0.00 0.00 0.00 0.00 0.14 0.12
#> TCGA.DX.A8BH.01     3  0.0000      0.770 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BX.01     4  0.2569      0.810 0.00 0.00 0.00 0.84 0.00 0.14 0.02
#> TCGA.DX.A23U.01     7  0.3459      0.963 0.00 0.00 0.40 0.00 0.00 0.00 0.60
#> TCGA.SI.A71O.06     3  0.5091      0.473 0.00 0.12 0.64 0.00 0.00 0.20 0.04
#> TCGA.DX.A8BV.01     1  0.0000      0.885 1.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QU.01     2  0.3548      0.830 0.00 0.80 0.00 0.00 0.04 0.04 0.12
#> TCGA.DX.A6YU.01     1  0.3867      0.818 0.74 0.00 0.00 0.00 0.00 0.14 0.12
#> TCGA.JV.A5VF.01     2  0.2512      0.857 0.00 0.86 0.00 0.00 0.00 0.04 0.10
#> TCGA.DX.A8BN.01     1  0.0000      0.885 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.DX.A1KX.01     1  0.3299      0.795 0.56 0.00 0.00 0.00 0.00 0.00 0.44 0.00
#> TCGA.DX.AB37.01     1  0.0000      0.658 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.WK.A8Y0.01     2  0.1741      0.858 0.00 0.92 0.00 0.00 0.00 0.04 0.02 0.02
#> TCGA.X6.A8C6.01     1  0.0000      0.658 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.AB36.01     8  0.1765      0.825 0.00 0.00 0.12 0.00 0.00 0.00 0.00 0.88
#> TCGA.DX.A8BJ.01     2  0.2265      0.849 0.00 0.88 0.00 0.00 0.00 0.02 0.08 0.02
#> TCGA.DX.A1L2.01     1  0.3299      0.795 0.56 0.00 0.00 0.00 0.00 0.00 0.44 0.00
#> TCGA.QQ.A5VB.01     2  0.2591      0.842 0.00 0.86 0.00 0.00 0.00 0.04 0.08 0.02
#> TCGA.3B.A9HX.01     2  0.3830      0.738 0.00 0.74 0.00 0.00 0.00 0.08 0.16 0.02
#> TCGA.DX.A1L0.01     4  0.0471      0.912 0.00 0.00 0.00 0.98 0.00 0.02 0.00 0.00
#> TCGA.MB.A8JK.01     1  0.3237      0.789 0.60 0.00 0.00 0.00 0.00 0.00 0.40 0.00
#> TCGA.VT.A80J.02     2  0.1091      0.866 0.00 0.94 0.00 0.00 0.00 0.00 0.06 0.00
#> TCGA.VT.AB3D.01     3  0.2020      0.767 0.02 0.00 0.90 0.00 0.00 0.02 0.00 0.06
#> TCGA.DX.AB2E.01     2  0.0808      0.868 0.00 0.96 0.00 0.00 0.00 0.00 0.04 0.00
#> TCGA.KF.A41W.01     2  0.0808      0.867 0.00 0.96 0.00 0.00 0.00 0.00 0.04 0.00
#> TCGA.DX.A7ET.01     3  0.1341      0.780 0.00 0.00 0.92 0.00 0.00 0.00 0.00 0.08
#> TCGA.K1.A6RU.01     1  0.1947      0.714 0.86 0.00 0.00 0.00 0.00 0.00 0.14 0.00
#> TCGA.N1.A6IA.01     2  0.1804      0.835 0.00 0.90 0.00 0.00 0.00 0.02 0.08 0.00
#> TCGA.HB.A2OT.01     3  0.1563      0.761 0.00 0.00 0.90 0.00 0.00 0.00 0.00 0.10
#> TCGA.DX.AB2Z.01     3  0.5273      0.531 0.00 0.10 0.66 0.00 0.00 0.06 0.12 0.06
#> TCGA.DX.AB2T.01     1  0.3299      0.795 0.56 0.00 0.00 0.00 0.00 0.00 0.44 0.00
#> TCGA.3B.A9HI.01     1  0.3299      0.795 0.56 0.00 0.00 0.00 0.00 0.00 0.44 0.00
#> TCGA.IS.A3KA.01     2  0.2071      0.843 0.00 0.90 0.00 0.00 0.00 0.04 0.04 0.02
#> TCGA.UE.A6QU.01     6  0.5211      0.335 0.02 0.00 0.36 0.00 0.00 0.52 0.06 0.04
#> TCGA.DX.A1KU.01     3  0.2807      0.733 0.00 0.00 0.84 0.00 0.00 0.02 0.04 0.10
#> TCGA.DX.A3U9.01     5  0.0000      0.000 0.00 0.00 0.00 0.00 1.00 0.00 0.00 0.00
#> TCGA.SG.A849.01     3  0.0941      0.773 0.00 0.00 0.96 0.00 0.00 0.02 0.02 0.00
#> TCGA.DX.A6BF.01     4  0.0471      0.914 0.00 0.00 0.00 0.98 0.00 0.00 0.02 0.00
#> TCGA.DX.A2J0.01     4  0.0000      0.915 0.00 0.00 0.00 1.00 0.00 0.00 0.00 0.00
#> TCGA.QC.A6FX.01     6  0.2132      0.271 0.08 0.00 0.04 0.00 0.00 0.88 0.00 0.00
#> TCGA.QQ.A5V9.01     1  0.0000      0.658 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BH.01     3  0.1275      0.780 0.00 0.00 0.94 0.00 0.00 0.02 0.00 0.04
#> TCGA.DX.A8BX.01     4  0.3270      0.774 0.12 0.00 0.00 0.80 0.00 0.00 0.06 0.02
#> TCGA.DX.A23U.01     8  0.2534      0.829 0.00 0.00 0.22 0.00 0.00 0.00 0.00 0.78
#> TCGA.SI.A71O.06     3  0.5273      0.531 0.00 0.10 0.66 0.00 0.00 0.06 0.12 0.06
#> TCGA.DX.A8BV.01     1  0.3299      0.795 0.56 0.00 0.00 0.00 0.00 0.00 0.44 0.00
#> TCGA.KD.A5QU.01     2  0.4534      0.564 0.00 0.62 0.00 0.00 0.02 0.04 0.30 0.02
#> TCGA.DX.A6YU.01     1  0.0471      0.639 0.98 0.00 0.00 0.00 0.00 0.00 0.02 0.00
#> TCGA.JV.A5VF.01     2  0.1804      0.835 0.00 0.90 0.00 0.00 0.00 0.02 0.08 0.00
#> TCGA.DX.A8BN.01     1  0.3299      0.795 0.56 0.00 0.00 0.00 0.00 0.00 0.44 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-042-consensus-heatmap-1

consensus_heatmap(res, k = 3)

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

consensus_heatmap(res, k = 4)

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

consensus_heatmap(res, k = 5)

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

consensus_heatmap(res, k = 6)

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

consensus_heatmap(res, k = 7)

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

consensus_heatmap(res, k = 8)

plot of chunk tab-node-042-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-042-membership-heatmap-1

membership_heatmap(res, k = 3)

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

membership_heatmap(res, k = 4)

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

membership_heatmap(res, k = 5)

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

membership_heatmap(res, k = 6)

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

membership_heatmap(res, k = 7)

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

membership_heatmap(res, k = 8)

plot of chunk tab-node-042-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-042-get-signatures-1

get_signatures(res, k = 3)

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

get_signatures(res, k = 4)

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

get_signatures(res, k = 5)

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

get_signatures(res, k = 6)

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

get_signatures(res, k = 7)

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

get_signatures(res, k = 8)

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

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-042-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-042-dimension-reduction-1

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

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

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

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

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

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

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

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

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

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

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

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

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-042-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.


Node0422

Parent node: Node042. Child nodes: Node01111-leaf , Node01112-leaf , Node01113-leaf , Node01114-leaf , Node01121-leaf , Node01122-leaf , Node01123-leaf , Node04221-leaf , Node04222-leaf , Node04223-leaf , Node04224-leaf , Node04231-leaf , Node04232-leaf .

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

res = res_rh["0422"]

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 'skmeans' method.
#>   Performed in total 350 partitions by row resampling.
#>   Best k for subgroups seems to be 4.
#> 
#> 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-0422-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-0422-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.3037 0.697   0.697
#> 3 3 0.682           0.940       0.957         0.8670 0.758   0.652
#> 4 4 1.000           0.990       0.985         0.3767 0.758   0.467
#> 5 5 0.970           0.841       0.907         0.0327 1.000   1.000
#> 6 6 0.742           0.544       0.898         0.0215 0.970   0.857
#> 7 7 0.818           0.287       0.872         0.0570 0.955   0.750
#> 8 8 0.879           0.521       0.958         0.0556 0.879   0.273

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

suggest_best_k(res)
#> [1] 4
#> 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.WK.A8Y0.01     2       0          1  0  1
#> TCGA.DX.A8BJ.01     2       0          1  0  1
#> TCGA.QQ.A5VB.01     2       0          1  0  1
#> TCGA.3B.A9HX.01     2       0          1  0  1
#> TCGA.VT.A80J.02     2       0          1  0  1
#> TCGA.DX.AB2E.01     2       0          1  0  1
#> TCGA.KF.A41W.01     2       0          1  0  1
#> TCGA.N1.A6IA.01     2       0          1  0  1
#> TCGA.IS.A3KA.01     2       0          1  0  1
#> TCGA.DX.A3U9.01     1       0          1  1  0
#> TCGA.KD.A5QU.01     1       0          1  1  0
#> TCGA.JV.A5VF.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.WK.A8Y0.01     2   0.334      0.885  0 0.88 0.12
#> TCGA.DX.A8BJ.01     2   0.000      0.918  0 1.00 0.00
#> TCGA.QQ.A5VB.01     2   0.153      0.926  0 0.96 0.04
#> TCGA.3B.A9HX.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.VT.A80J.02     2   0.153      0.926  0 0.96 0.04
#> TCGA.DX.AB2E.01     2   0.153      0.926  0 0.96 0.04
#> TCGA.KF.A41W.01     2   0.153      0.926  0 0.96 0.04
#> TCGA.N1.A6IA.01     2   0.334      0.885  0 0.88 0.12
#> TCGA.IS.A3KA.01     3   0.000      1.000  0 0.00 1.00
#> TCGA.DX.A3U9.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.KD.A5QU.01     1   0.000      1.000  1 0.00 0.00
#> TCGA.JV.A5VF.01     2   0.334      0.885  0 0.88 0.12

show/hide code output

cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#>                 class entropy silhouette p1   p2   p3   p4
#> TCGA.WK.A8Y0.01     2  0.1211      0.971  0 0.96 0.00 0.04
#> TCGA.DX.A8BJ.01     2  0.0707      0.984  0 0.98 0.00 0.02
#> TCGA.QQ.A5VB.01     4  0.0707      1.000  0 0.02 0.00 0.98
#> TCGA.3B.A9HX.01     3  0.0000      0.986  0 0.00 1.00 0.00
#> TCGA.VT.A80J.02     4  0.0707      1.000  0 0.02 0.00 0.98
#> TCGA.DX.AB2E.01     4  0.0707      1.000  0 0.02 0.00 0.98
#> TCGA.KF.A41W.01     4  0.0707      1.000  0 0.02 0.00 0.98
#> TCGA.N1.A6IA.01     2  0.0707      0.984  0 0.98 0.00 0.02
#> TCGA.IS.A3KA.01     3  0.0707      0.986  0 0.00 0.98 0.02
#> TCGA.DX.A3U9.01     1  0.0000      1.000  1 0.00 0.00 0.00
#> TCGA.KD.A5QU.01     1  0.0000      1.000  1 0.00 0.00 0.00
#> TCGA.JV.A5VF.01     2  0.0000      0.971  0 1.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.WK.A8Y0.01     2   0.173      0.943 0.00 0.92 0.00 0.00 0.08
#> TCGA.DX.A8BJ.01     2   0.104      0.959 0.00 0.96 0.00 0.00 0.04
#> TCGA.QQ.A5VB.01     4   0.104      0.971 0.00 0.00 0.00 0.96 0.04
#> TCGA.3B.A9HX.01     3   0.430      0.578 0.00 0.00 0.52 0.00 0.48
#> TCGA.VT.A80J.02     4   0.000      0.971 0.00 0.00 0.00 1.00 0.00
#> TCGA.DX.AB2E.01     4   0.000      0.971 0.00 0.00 0.00 1.00 0.00
#> TCGA.KF.A41W.01     4   0.104      0.971 0.00 0.00 0.00 0.96 0.04
#> TCGA.N1.A6IA.01     2   0.000      0.963 0.00 1.00 0.00 0.00 0.00
#> TCGA.IS.A3KA.01     3   0.000      0.578 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.A3U9.01     1   0.426      0.613 0.56 0.00 0.00 0.00 0.44
#> TCGA.KD.A5QU.01     1   0.000      0.613 1.00 0.00 0.00 0.00 0.00
#> TCGA.JV.A5VF.01     2   0.000      0.963 0.00 1.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.WK.A8Y0.01     2  0.2190      0.795 0.00 0.90 0.04 0.00 0.06 0.00
#> TCGA.DX.A8BJ.01     2  0.0547      0.828 0.00 0.98 0.00 0.02 0.00 0.00
#> TCGA.QQ.A5VB.01     4  0.3076      0.807 0.00 0.24 0.00 0.76 0.00 0.00
#> TCGA.3B.A9HX.01     3  0.2048      0.000 0.00 0.00 0.88 0.00 0.00 0.12
#> TCGA.VT.A80J.02     4  0.0000      0.804 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.DX.AB2E.01     4  0.0000      0.804 0.00 0.00 0.00 1.00 0.00 0.00
#> TCGA.KF.A41W.01     4  0.3076      0.807 0.00 0.24 0.00 0.76 0.00 0.00
#> TCGA.N1.A6IA.01     2  0.3073      0.845 0.00 0.84 0.08 0.00 0.08 0.00
#> TCGA.IS.A3KA.01     6  0.0000      0.000 0.00 0.00 0.00 0.00 0.00 1.00
#> TCGA.DX.A3U9.01     1  0.0000      0.000 1.00 0.00 0.00 0.00 0.00 0.00
#> TCGA.KD.A5QU.01     5  0.2454      0.000 0.16 0.00 0.00 0.00 0.84 0.00
#> TCGA.JV.A5VF.01     2  0.3321      0.834 0.00 0.82 0.08 0.00 0.10 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.WK.A8Y0.01     7  0.1928     0.0000 0.00 0.08  0 0.00 0.02  0 0.90
#> TCGA.DX.A8BJ.01     2  0.3994    -0.0278 0.00 0.50  0 0.02 0.00  0 0.48
#> TCGA.QQ.A5VB.01     4  0.3525     0.4902 0.00 0.00  0 0.56 0.00  0 0.44
#> TCGA.3B.A9HX.01     3  0.0000     0.0000 0.00 0.00  1 0.00 0.00  0 0.00
#> TCGA.VT.A80J.02     4  0.0000     0.6140 0.00 0.00  0 1.00 0.00  0 0.00
#> TCGA.DX.AB2E.01     4  0.0000     0.6140 0.00 0.00  0 1.00 0.00  0 0.00
#> TCGA.KF.A41W.01     4  0.3968     0.4705 0.00 0.02  0 0.54 0.00  0 0.44
#> TCGA.N1.A6IA.01     2  0.0863     0.6461 0.00 0.96  0 0.00 0.00  0 0.04
#> TCGA.IS.A3KA.01     6  0.0000     0.0000 0.00 0.00  0 0.00 0.00  1 0.00
#> TCGA.DX.A3U9.01     1  0.0000     0.0000 1.00 0.00  0 0.00 0.00  0 0.00
#> TCGA.KD.A5QU.01     5  0.0504     0.0000 0.02 0.00  0 0.00 0.98  0 0.00
#> TCGA.JV.A5VF.01     2  0.0000     0.6344 0.00 1.00  0 0.00 0.00  0 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.WK.A8Y0.01     7  0.0471      0.000  0 0.00  0 0.02  0  0 0.98 0.00
#> TCGA.DX.A8BJ.01     4  0.0000      0.808  0 0.00  0 1.00  0  0 0.00 0.00
#> TCGA.QQ.A5VB.01     4  0.2114      0.892  0 0.00  0 0.84  0  0 0.00 0.16
#> TCGA.3B.A9HX.01     3  0.0000      0.000  0 0.00  1 0.00  0  0 0.00 0.00
#> TCGA.VT.A80J.02     8  0.0000      1.000  0 0.00  0 0.00  0  0 0.00 1.00
#> TCGA.DX.AB2E.01     8  0.0000      1.000  0 0.00  0 0.00  0  0 0.00 1.00
#> TCGA.KF.A41W.01     4  0.1947      0.900  0 0.00  0 0.86  0  0 0.00 0.14
#> TCGA.N1.A6IA.01     2  0.2404      0.827  0 0.84  0 0.14  0  0 0.02 0.00
#> TCGA.IS.A3KA.01     6  0.0000      0.000  0 0.00  0 0.00  0  1 0.00 0.00
#> TCGA.DX.A3U9.01     1  0.0000      0.000  1 0.00  0 0.00  0  0 0.00 0.00
#> TCGA.KD.A5QU.01     5  0.0000      0.000  0 0.00  0 0.00  1  0 0.00 0.00
#> TCGA.JV.A5VF.01     2  0.0471      0.827  0 0.98  0 0.02  0  0 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-0422-consensus-heatmap-1

consensus_heatmap(res, k = 3)

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

consensus_heatmap(res, k = 4)

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

consensus_heatmap(res, k = 5)

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

consensus_heatmap(res, k = 6)

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

consensus_heatmap(res, k = 7)

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

consensus_heatmap(res, k = 8)

plot of chunk tab-node-0422-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-0422-membership-heatmap-1

membership_heatmap(res, k = 3)

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

membership_heatmap(res, k = 4)

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

membership_heatmap(res, k = 5)

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

membership_heatmap(res, k = 6)

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

membership_heatmap(res, k = 7)

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

membership_heatmap(res, k = 8)

plot of chunk tab-node-0422-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-0422-get-signatures-1

get_signatures(res, k = 3)

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

get_signatures(res, k = 4)

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

get_signatures(res, k = 5)

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

get_signatures(res, k = 6)

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

get_signatures(res, k = 7)

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

get_signatures(res, k = 8)

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

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-0422-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-0422-dimension-reduction-1

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

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

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

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

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

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

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

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

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

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

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

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

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-0422-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.


Node0423

Parent node: Node042. Child nodes: Node01111-leaf , Node01112-leaf , Node01113-leaf , Node01114-leaf , Node01121-leaf , Node01122-leaf , Node01123-leaf , Node04221-leaf , Node04222-leaf , Node04223-leaf , Node04224-leaf , Node04231-leaf , Node04232-leaf .

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

res = res_rh["0423"]

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 4.
#> 
#> 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-0423-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-0423-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.3037 0.697   0.697
#> 3 3 0.939           0.976       0.972         1.1399 0.636   0.478
#> 4 4 1.000           0.909       0.995         0.1409 0.833   0.560
#> 5 5 0.818           0.690       0.852         0.0836 1.000   1.000
#> 6 6 0.818           0.792       0.858         0.0721 0.848   0.412
#> 7 7 0.924           0.683       0.918         0.0464 0.985   0.857
#> 8 8 0.924           0.575       0.892         0.0252 1.000   1.000

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

suggest_best_k(res)
#> [1] 4
#> 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.DX.AB36.01     1       0          1  1  0
#> TCGA.VT.AB3D.01     2       0          1  0  1
#> TCGA.DX.A7ET.01     2       0          1  0  1
#> TCGA.HB.A2OT.01     2       0          1  0  1
#> TCGA.DX.AB2Z.01     2       0          1  0  1
#> TCGA.UE.A6QU.01     2       0          1  0  1
#> TCGA.DX.A1KU.01     2       0          1  0  1
#> TCGA.SG.A849.01     2       0          1  0  1
#> TCGA.QC.A6FX.01     2       0          1  0  1
#> TCGA.DX.A8BH.01     2       0          1  0  1
#> TCGA.DX.A23U.01     1       0          1  1  0
#> TCGA.SI.A71O.06     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.DX.AB36.01     1   0.153      0.977 0.96 0.00 0.04
#> TCGA.VT.AB3D.01     2   0.000      0.982 0.00 1.00 0.00
#> TCGA.DX.A7ET.01     3   0.207      0.991 0.00 0.06 0.94
#> TCGA.HB.A2OT.01     3   0.207      0.991 0.00 0.06 0.94
#> TCGA.DX.AB2Z.01     2   0.000      0.982 0.00 1.00 0.00
#> TCGA.UE.A6QU.01     2   0.000      0.982 0.00 1.00 0.00
#> TCGA.DX.A1KU.01     3   0.207      0.991 0.00 0.06 0.94
#> TCGA.SG.A849.01     2   0.000      0.982 0.00 1.00 0.00
#> TCGA.QC.A6FX.01     3   0.153      0.974 0.00 0.04 0.96
#> TCGA.DX.A8BH.01     2   0.000      0.982 0.00 1.00 0.00
#> TCGA.DX.A23U.01     1   0.000      0.977 1.00 0.00 0.00
#> TCGA.SI.A71O.06     2   0.254      0.906 0.00 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.DX.AB36.01     1  0.0707      0.984 0.98 0.00 0.00 0.02
#> TCGA.VT.AB3D.01     2  0.0000      1.000 0.00 1.00 0.00 0.00
#> TCGA.DX.A7ET.01     3  0.0000      0.990 0.00 0.00 1.00 0.00
#> TCGA.HB.A2OT.01     3  0.0000      0.990 0.00 0.00 1.00 0.00
#> TCGA.DX.AB2Z.01     2  0.0000      1.000 0.00 1.00 0.00 0.00
#> TCGA.UE.A6QU.01     2  0.0000      1.000 0.00 1.00 0.00 0.00
#> TCGA.DX.A1KU.01     3  0.0000      0.990 0.00 0.00 1.00 0.00
#> TCGA.SG.A849.01     2  0.0000      1.000 0.00 1.00 0.00 0.00
#> TCGA.QC.A6FX.01     4  0.0707      0.000 0.00 0.00 0.02 0.98
#> TCGA.DX.A8BH.01     2  0.0000      1.000 0.00 1.00 0.00 0.00
#> TCGA.DX.A23U.01     1  0.0000      0.984 1.00 0.00 0.00 0.00
#> TCGA.SI.A71O.06     3  0.0707      0.971 0.00 0.02 0.98 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.DX.AB36.01     1   0.311      0.826 0.8 0.00 0.00  0 0.20
#> TCGA.VT.AB3D.01     2   0.000      0.798 0.0 1.00 0.00  0 0.00
#> TCGA.DX.A7ET.01     3   0.000      0.733 0.0 0.00 1.00  0 0.00
#> TCGA.HB.A2OT.01     3   0.398      0.710 0.0 0.00 0.66  0 0.34
#> TCGA.DX.AB2Z.01     2   0.389      0.717 0.0 0.68 0.00  0 0.32
#> TCGA.UE.A6QU.01     2   0.389      0.717 0.0 0.68 0.00  0 0.32
#> TCGA.DX.A1KU.01     3   0.430      0.632 0.0 0.00 0.52  0 0.48
#> TCGA.SG.A849.01     2   0.141      0.795 0.0 0.94 0.06  0 0.00
#> TCGA.QC.A6FX.01     4   0.000      0.000 0.0 0.00 0.00  1 0.00
#> TCGA.DX.A8BH.01     2   0.141      0.795 0.0 0.94 0.06  0 0.00
#> TCGA.DX.A23U.01     1   0.000      0.826 1.0 0.00 0.00  0 0.00
#> TCGA.SI.A71O.06     3   0.000      0.733 0.0 0.00 1.00  0 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.DX.AB36.01     1  0.5027      0.672 0.64 0.20 0.00  0 0.16 0.00
#> TCGA.VT.AB3D.01     2  0.3499      0.895 0.00 0.68 0.00  0 0.00 0.32
#> TCGA.DX.A7ET.01     3  0.0000      1.000 0.00 0.00 1.00  0 0.00 0.00
#> TCGA.HB.A2OT.01     5  0.3499      0.680 0.00 0.00 0.32  0 0.68 0.00
#> TCGA.DX.AB2Z.01     6  0.0000      0.982 0.00 0.00 0.00  0 0.00 1.00
#> TCGA.UE.A6QU.01     6  0.0547      0.982 0.00 0.00 0.00  0 0.02 0.98
#> TCGA.DX.A1KU.01     5  0.4536      0.718 0.00 0.12 0.18  0 0.70 0.00
#> TCGA.SG.A849.01     2  0.4360      0.950 0.00 0.68 0.06  0 0.00 0.26
#> TCGA.QC.A6FX.01     4  0.0000      0.000 0.00 0.00 0.00  1 0.00 0.00
#> TCGA.DX.A8BH.01     2  0.4360      0.950 0.00 0.68 0.06  0 0.00 0.26
#> TCGA.DX.A23U.01     1  0.0000      0.672 1.00 0.00 0.00  0 0.00 0.00
#> TCGA.SI.A71O.06     3  0.0000      1.000 0.00 0.00 1.00  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.DX.AB36.01     1  0.0000      0.807 1.00 0.00 0.00  0 0.00 0.00 0.00
#> TCGA.VT.AB3D.01     2  0.0000      1.000 0.00 1.00 0.00  0 0.00 0.00 0.00
#> TCGA.DX.A7ET.01     3  0.0504      0.980 0.00 0.00 0.98  0 0.00 0.02 0.00
#> TCGA.HB.A2OT.01     5  0.4763      0.000 0.00 0.00 0.18  0 0.62 0.00 0.20
#> TCGA.DX.AB2Z.01     6  0.3795      0.808 0.00 0.06 0.00  0 0.22 0.72 0.00
#> TCGA.UE.A6QU.01     6  0.1166      0.808 0.00 0.06 0.00  0 0.00 0.94 0.00
#> TCGA.DX.A1KU.01     7  0.0504      0.000 0.00 0.00 0.02  0 0.00 0.00 0.98
#> TCGA.SG.A849.01     2  0.0000      1.000 0.00 1.00 0.00  0 0.00 0.00 0.00
#> TCGA.QC.A6FX.01     4  0.0000      0.000 0.00 0.00 0.00  1 0.00 0.00 0.00
#> TCGA.DX.A8BH.01     2  0.0000      1.000 0.00 1.00 0.00  0 0.00 0.00 0.00
#> TCGA.DX.A23U.01     1  0.3566      0.807 0.78 0.00 0.00  0 0.16 0.04 0.02
#> TCGA.SI.A71O.06     3  0.0000      0.980 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.DX.AB36.01     1  0.4995      0.549 0.52 0.36 0.00  0 0.04 0.00 0.08 0.00
#> TCGA.VT.AB3D.01     8  0.0000      0.947 0.00 0.00 0.00  0 0.00 0.00 0.00 1.00
#> TCGA.DX.A7ET.01     3  0.2569      0.838 0.00 0.16 0.82  0 0.00 0.02 0.00 0.00
#> TCGA.HB.A2OT.01     5  0.0808      0.000 0.00 0.00 0.04  0 0.96 0.00 0.00 0.00
#> TCGA.DX.AB2Z.01     6  0.3570      0.672 0.00 0.36 0.00  0 0.00 0.62 0.00 0.02
#> TCGA.UE.A6QU.01     6  0.0471      0.672 0.00 0.00 0.00  0 0.00 0.98 0.00 0.02
#> TCGA.DX.A1KU.01     7  0.1341      0.000 0.00 0.00 0.00  0 0.08 0.00 0.92 0.00
#> TCGA.SG.A849.01     8  0.0000      0.947 0.00 0.00 0.00  0 0.00 0.00 0.00 1.00
#> TCGA.QC.A6FX.01     4  0.0000      0.000 0.00 0.00 0.00  1 0.00 0.00 0.00 0.00
#> TCGA.DX.A8BH.01     8  0.1765      0.890 0.00 0.12 0.00  0 0.00 0.00 0.00 0.88
#> TCGA.DX.A23U.01     1  0.0000      0.549 1.00 0.00 0.00  0 0.00 0.00 0.00 0.00
#> TCGA.SI.A71O.06     3  0.0000      0.838 0.00 0.00 1.00  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-0423-consensus-heatmap-1

consensus_heatmap(res, k = 3)

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

consensus_heatmap(res, k = 4)

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

consensus_heatmap(res, k = 5)

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

consensus_heatmap(res, k = 6)

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

consensus_heatmap(res, k = 7)

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

consensus_heatmap(res, k = 8)

plot of chunk tab-node-0423-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-0423-membership-heatmap-1

membership_heatmap(res, k = 3)

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

membership_heatmap(res, k = 4)

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

membership_heatmap(res, k = 5)

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

membership_heatmap(res, k = 6)

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

membership_heatmap(res, k = 7)

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

membership_heatmap(res, k = 8)

plot of chunk tab-node-0423-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-0423-get-signatures-1

get_signatures(res, k = 3)

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

get_signatures(res, k = 4)

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

get_signatures(res, k = 5)

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

get_signatures(res, k = 6)

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

get_signatures(res, k = 7)

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

get_signatures(res, k = 8)

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

Compare the overlap of signatures from different k:

compare_signatures(res)

plot of chunk node-0423-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-0423-dimension-reduction-1

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

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

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

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

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

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

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

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

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

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

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

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

Following heatmap shows how subgroups are split when increasing k:

collect_classes(res)

plot of chunk node-0423-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