Date: 2019-12-25 22:54:41 CET, cola version: 1.3.2
Document is loading...
All available functions which can be applied to this res_list
object:
res_list
#> A 'ConsensusPartitionList' object with 24 methods.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows are extracted by 'SD, CV, MAD, ATC' methods.
#> Subgroups are detected by 'hclust, kmeans, skmeans, pam, mclust, NMF' method.
#> Number of partitions are tried for k = 2, 3, 4, 5, 6.
#> Performed in total 30000 partitions by row resampling.
#>
#> Following methods can be applied to this 'ConsensusPartitionList' object:
#> [1] "cola_report" "collect_classes" "collect_plots" "collect_stats"
#> [5] "colnames" "functional_enrichment" "get_anno_col" "get_anno"
#> [9] "get_classes" "get_matrix" "get_membership" "get_stats"
#> [13] "is_best_k" "is_stable_k" "ncol" "nrow"
#> [17] "rownames" "show" "suggest_best_k" "test_to_known_factors"
#> [21] "top_rows_heatmap" "top_rows_overlap"
#>
#> You can get result for a single method by, e.g. object["SD", "hclust"] or object["SD:hclust"]
#> or a subset of methods by object[c("SD", "CV")], c("hclust", "kmeans")]
The call of run_all_consensus_partition_methods()
was:
#> run_all_consensus_partition_methods(data = mat, mc.cores = 4)
Dimension of the input matrix:
mat = get_matrix(res_list)
dim(mat)
#> [1] 17567 90
The density distribution for each sample is visualized as in 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 = 4)
Folowing table shows the best k
(number of partitions) for each combination
of top-value methods and partition methods. Clicking on the method name in
the table goes to the section for a single combination of methods.
The cola vignette explains the definition of the metrics used for determining the best number of partitions.
suggest_best_k(res_list)
The best k | 1-PAC | Mean silhouette | Concordance | Optional k | ||
---|---|---|---|---|---|---|
CV:hclust | 2 | 1.000 | 0.950 | 0.981 | ** | |
MAD:skmeans | 2 | 1.000 | 0.975 | 0.989 | ** | |
ATC:kmeans | 2 | 1.000 | 0.984 | 0.993 | ** | |
MAD:NMF | 2 | 0.999 | 0.970 | 0.986 | ** | |
ATC:skmeans | 3 | 0.987 | 0.944 | 0.972 | ** | 2 |
ATC:pam | 3 | 0.983 | 0.950 | 0.980 | ** | |
MAD:kmeans | 2 | 0.954 | 0.937 | 0.976 | ** | |
ATC:mclust | 2 | 0.931 | 0.927 | 0.968 | * | |
CV:mclust | 5 | 0.912 | 0.860 | 0.945 | * | 2 |
SD:skmeans | 2 | 0.910 | 0.952 | 0.979 | * | |
SD:NMF | 2 | 0.908 | 0.958 | 0.980 | * | |
CV:pam | 6 | 0.907 | 0.887 | 0.955 | * | |
MAD:mclust | 5 | 0.898 | 0.895 | 0.952 | ||
SD:mclust | 5 | 0.881 | 0.882 | 0.949 | ||
SD:kmeans | 2 | 0.848 | 0.932 | 0.968 | ||
ATC:hclust | 2 | 0.802 | 0.894 | 0.948 | ||
CV:NMF | 3 | 0.796 | 0.860 | 0.940 | ||
CV:skmeans | 2 | 0.748 | 0.894 | 0.940 | ||
ATC:NMF | 2 | 0.725 | 0.879 | 0.948 | ||
CV:kmeans | 3 | 0.679 | 0.779 | 0.890 | ||
MAD:pam | 2 | 0.669 | 0.914 | 0.952 | ||
SD:pam | 2 | 0.613 | 0.850 | 0.924 | ||
SD:hclust | 2 | 0.548 | 0.813 | 0.896 | ||
MAD:hclust | 2 | 0.528 | 0.826 | 0.911 |
**: 1-PAC > 0.95, *: 1-PAC > 0.9
Cumulative distribution function curves of consensus matrix for all methods.
collect_plots(res_list, fun = plot_ecdf)
Consensus heatmaps for all methods. (What is a consensus heatmap?)
collect_plots(res_list, k = 2, fun = consensus_heatmap, mc.cores = 4)
collect_plots(res_list, k = 3, fun = consensus_heatmap, mc.cores = 4)
collect_plots(res_list, k = 4, fun = consensus_heatmap, mc.cores = 4)
collect_plots(res_list, k = 5, fun = consensus_heatmap, mc.cores = 4)
collect_plots(res_list, k = 6, fun = consensus_heatmap, mc.cores = 4)
Membership heatmaps for all methods. (What is a membership heatmap?)
collect_plots(res_list, k = 2, fun = membership_heatmap, mc.cores = 4)
collect_plots(res_list, k = 3, fun = membership_heatmap, mc.cores = 4)
collect_plots(res_list, k = 4, fun = membership_heatmap, mc.cores = 4)
collect_plots(res_list, k = 5, fun = membership_heatmap, mc.cores = 4)
collect_plots(res_list, k = 6, fun = membership_heatmap, mc.cores = 4)
Signature heatmaps for all methods. (What is a signature heatmap?)
Note in following heatmaps, rows are scaled.
collect_plots(res_list, k = 2, fun = get_signatures, mc.cores = 4)
collect_plots(res_list, k = 3, fun = get_signatures, mc.cores = 4)
collect_plots(res_list, k = 4, fun = get_signatures, mc.cores = 4)
collect_plots(res_list, k = 5, fun = get_signatures, mc.cores = 4)
collect_plots(res_list, k = 6, fun = get_signatures, mc.cores = 4)
The statistics used for measuring the stability of consensus partitioning. (How are they defined?)
get_stats(res_list, k = 2)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> SD:NMF 2 0.908 0.958 0.980 0.502 0.497 0.497
#> CV:NMF 2 0.555 0.840 0.917 0.464 0.507 0.507
#> MAD:NMF 2 0.999 0.970 0.986 0.503 0.497 0.497
#> ATC:NMF 2 0.725 0.879 0.948 0.458 0.537 0.537
#> SD:skmeans 2 0.910 0.952 0.979 0.505 0.495 0.495
#> CV:skmeans 2 0.748 0.894 0.940 0.498 0.497 0.497
#> MAD:skmeans 2 1.000 0.975 0.989 0.505 0.495 0.495
#> ATC:skmeans 2 1.000 0.995 0.998 0.500 0.501 0.501
#> SD:mclust 2 0.644 0.885 0.941 0.371 0.650 0.650
#> CV:mclust 2 0.928 0.945 0.975 0.343 0.663 0.663
#> MAD:mclust 2 0.428 0.736 0.875 0.426 0.615 0.615
#> ATC:mclust 2 0.931 0.927 0.968 0.444 0.575 0.575
#> SD:kmeans 2 0.848 0.932 0.968 0.500 0.495 0.495
#> CV:kmeans 2 0.492 0.734 0.869 0.407 0.530 0.530
#> MAD:kmeans 2 0.954 0.937 0.976 0.501 0.501 0.501
#> ATC:kmeans 2 1.000 0.984 0.993 0.492 0.510 0.510
#> SD:pam 2 0.613 0.850 0.924 0.474 0.525 0.525
#> CV:pam 2 0.426 0.656 0.793 0.358 0.585 0.585
#> MAD:pam 2 0.669 0.914 0.952 0.475 0.525 0.525
#> ATC:pam 2 0.743 0.906 0.954 0.484 0.501 0.501
#> SD:hclust 2 0.548 0.813 0.896 0.480 0.501 0.501
#> CV:hclust 2 1.000 0.950 0.981 0.243 0.766 0.766
#> MAD:hclust 2 0.528 0.826 0.911 0.478 0.501 0.501
#> ATC:hclust 2 0.802 0.894 0.948 0.486 0.501 0.501
get_stats(res_list, k = 3)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> SD:NMF 3 0.819 0.848 0.939 0.299 0.784 0.593
#> CV:NMF 3 0.796 0.860 0.940 0.376 0.810 0.647
#> MAD:NMF 3 0.680 0.786 0.885 0.298 0.794 0.612
#> ATC:NMF 3 0.523 0.565 0.761 0.418 0.748 0.554
#> SD:skmeans 3 0.850 0.838 0.929 0.286 0.810 0.633
#> CV:skmeans 3 0.761 0.824 0.923 0.312 0.782 0.590
#> MAD:skmeans 3 0.878 0.861 0.941 0.286 0.818 0.647
#> ATC:skmeans 3 0.987 0.944 0.972 0.217 0.853 0.713
#> SD:mclust 3 0.337 0.828 0.839 0.474 0.750 0.628
#> CV:mclust 3 0.410 0.809 0.838 0.565 0.719 0.610
#> MAD:mclust 3 0.479 0.369 0.677 0.332 0.654 0.503
#> ATC:mclust 3 0.792 0.827 0.912 0.379 0.672 0.484
#> SD:kmeans 3 0.720 0.854 0.906 0.286 0.822 0.654
#> CV:kmeans 3 0.679 0.779 0.890 0.466 0.799 0.648
#> MAD:kmeans 3 0.701 0.769 0.879 0.285 0.821 0.657
#> ATC:kmeans 3 0.727 0.810 0.884 0.337 0.723 0.506
#> SD:pam 3 0.738 0.812 0.913 0.336 0.756 0.566
#> CV:pam 3 0.714 0.809 0.922 0.583 0.820 0.704
#> MAD:pam 3 0.719 0.854 0.930 0.368 0.724 0.520
#> ATC:pam 3 0.983 0.950 0.980 0.306 0.665 0.445
#> SD:hclust 3 0.443 0.646 0.774 0.211 0.905 0.812
#> CV:hclust 3 0.497 0.848 0.893 1.142 0.752 0.677
#> MAD:hclust 3 0.471 0.634 0.808 0.243 0.915 0.831
#> ATC:hclust 3 0.636 0.793 0.872 0.223 0.916 0.833
get_stats(res_list, k = 4)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> SD:NMF 4 0.758 0.816 0.907 0.1258 0.793 0.495
#> CV:NMF 4 0.816 0.860 0.927 0.1688 0.794 0.507
#> MAD:NMF 4 0.715 0.755 0.875 0.1260 0.830 0.575
#> ATC:NMF 4 0.654 0.730 0.861 0.1366 0.803 0.505
#> SD:skmeans 4 0.752 0.827 0.894 0.1295 0.890 0.698
#> CV:skmeans 4 0.811 0.819 0.908 0.1358 0.865 0.638
#> MAD:skmeans 4 0.754 0.832 0.894 0.1251 0.852 0.618
#> ATC:skmeans 4 0.854 0.861 0.935 0.1319 0.885 0.709
#> SD:mclust 4 0.439 0.724 0.763 0.2108 0.827 0.627
#> CV:mclust 4 0.713 0.831 0.858 0.3041 0.766 0.533
#> MAD:mclust 4 0.512 0.604 0.740 0.1638 0.754 0.504
#> ATC:mclust 4 0.724 0.775 0.869 0.0872 0.904 0.770
#> SD:kmeans 4 0.597 0.564 0.793 0.1363 0.878 0.672
#> CV:kmeans 4 0.582 0.521 0.743 0.1959 0.824 0.607
#> MAD:kmeans 4 0.615 0.537 0.768 0.1346 0.888 0.702
#> ATC:kmeans 4 0.822 0.887 0.921 0.1318 0.820 0.530
#> SD:pam 4 0.622 0.536 0.733 0.1698 0.805 0.522
#> CV:pam 4 0.656 0.748 0.851 0.2523 0.791 0.561
#> MAD:pam 4 0.644 0.511 0.761 0.1493 0.773 0.460
#> ATC:pam 4 0.820 0.829 0.922 0.1860 0.839 0.592
#> SD:hclust 4 0.482 0.589 0.794 0.1257 0.900 0.764
#> CV:hclust 4 0.438 0.563 0.716 0.3112 0.803 0.625
#> MAD:hclust 4 0.458 0.542 0.801 0.0849 0.913 0.797
#> ATC:hclust 4 0.631 0.669 0.797 0.1042 0.981 0.954
get_stats(res_list, k = 5)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> SD:NMF 5 0.743 0.734 0.876 0.0667 0.883 0.611
#> CV:NMF 5 0.799 0.785 0.909 0.0492 0.893 0.629
#> MAD:NMF 5 0.705 0.693 0.847 0.0631 0.884 0.620
#> ATC:NMF 5 0.627 0.600 0.787 0.0658 0.870 0.558
#> SD:skmeans 5 0.794 0.734 0.874 0.0773 0.905 0.664
#> CV:skmeans 5 0.828 0.768 0.891 0.0772 0.878 0.580
#> MAD:skmeans 5 0.778 0.729 0.867 0.0783 0.932 0.755
#> ATC:skmeans 5 0.799 0.757 0.879 0.0486 0.947 0.833
#> SD:mclust 5 0.881 0.882 0.949 0.1887 0.799 0.445
#> CV:mclust 5 0.912 0.860 0.945 0.1405 0.887 0.614
#> MAD:mclust 5 0.898 0.895 0.952 0.1880 0.823 0.502
#> ATC:mclust 5 0.779 0.710 0.737 0.0770 0.880 0.680
#> SD:kmeans 5 0.627 0.641 0.794 0.0774 0.851 0.517
#> CV:kmeans 5 0.639 0.699 0.795 0.0810 0.836 0.513
#> MAD:kmeans 5 0.660 0.615 0.772 0.0780 0.849 0.516
#> ATC:kmeans 5 0.781 0.767 0.851 0.0565 0.951 0.807
#> SD:pam 5 0.753 0.708 0.849 0.0792 0.865 0.543
#> CV:pam 5 0.867 0.888 0.940 0.1086 0.883 0.620
#> MAD:pam 5 0.841 0.851 0.925 0.0765 0.857 0.525
#> ATC:pam 5 0.792 0.674 0.867 0.0699 0.903 0.645
#> SD:hclust 5 0.484 0.449 0.733 0.1071 0.926 0.784
#> CV:hclust 5 0.508 0.672 0.744 0.0877 0.777 0.418
#> MAD:hclust 5 0.546 0.441 0.729 0.1323 0.913 0.761
#> ATC:hclust 5 0.681 0.637 0.833 0.1324 0.788 0.505
get_stats(res_list, k = 6)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> SD:NMF 6 0.711 0.652 0.818 0.0521 0.881 0.531
#> CV:NMF 6 0.721 0.636 0.811 0.0580 0.873 0.504
#> MAD:NMF 6 0.719 0.654 0.819 0.0517 0.883 0.541
#> ATC:NMF 6 0.682 0.604 0.787 0.0482 0.849 0.421
#> SD:skmeans 6 0.788 0.699 0.850 0.0439 0.935 0.706
#> CV:skmeans 6 0.858 0.788 0.893 0.0414 0.935 0.693
#> MAD:skmeans 6 0.791 0.728 0.861 0.0453 0.932 0.705
#> ATC:skmeans 6 0.836 0.744 0.882 0.0407 0.950 0.828
#> SD:mclust 6 0.834 0.769 0.888 0.0310 0.969 0.854
#> CV:mclust 6 0.869 0.767 0.878 0.0381 0.948 0.749
#> MAD:mclust 6 0.839 0.798 0.889 0.0429 0.954 0.795
#> ATC:mclust 6 0.690 0.755 0.824 0.0835 0.908 0.663
#> SD:kmeans 6 0.721 0.680 0.812 0.0429 0.964 0.827
#> CV:kmeans 6 0.752 0.734 0.832 0.0549 0.952 0.778
#> MAD:kmeans 6 0.730 0.575 0.777 0.0469 0.938 0.712
#> ATC:kmeans 6 0.795 0.704 0.834 0.0394 0.962 0.831
#> SD:pam 6 0.793 0.750 0.862 0.0287 0.959 0.800
#> CV:pam 6 0.907 0.887 0.955 0.0185 0.982 0.914
#> MAD:pam 6 0.875 0.847 0.929 0.0300 0.974 0.866
#> ATC:pam 6 0.765 0.726 0.798 0.0355 0.903 0.575
#> SD:hclust 6 0.616 0.557 0.722 0.0669 0.889 0.623
#> CV:hclust 6 0.547 0.553 0.737 0.0376 0.911 0.650
#> MAD:hclust 6 0.566 0.432 0.645 0.0578 0.915 0.723
#> ATC:hclust 6 0.687 0.646 0.759 0.0315 0.979 0.913
Following heatmap plots the partition for each combination of methods and the lightness correspond to the silhouette scores for samples in each method. On top the consensus subgroup is inferred from all methods by taking the mean silhouette scores as weight.
collect_stats(res_list, k = 2)
collect_stats(res_list, k = 3)
collect_stats(res_list, k = 4)
collect_stats(res_list, k = 5)
collect_stats(res_list, k = 6)
Collect partitions from all methods:
collect_classes(res_list, k = 2)
collect_classes(res_list, k = 3)
collect_classes(res_list, k = 4)
collect_classes(res_list, k = 5)
collect_classes(res_list, k = 6)
Overlap of top rows from different top-row methods:
top_rows_overlap(res_list, top_n = 1000, method = "euler")
top_rows_overlap(res_list, top_n = 2000, method = "euler")
top_rows_overlap(res_list, top_n = 3000, method = "euler")
top_rows_overlap(res_list, top_n = 4000, method = "euler")
top_rows_overlap(res_list, top_n = 5000, method = "euler")
Also visualize the correspondance of rankings between different top-row methods:
top_rows_overlap(res_list, top_n = 1000, method = "correspondance")
top_rows_overlap(res_list, top_n = 2000, method = "correspondance")
top_rows_overlap(res_list, top_n = 3000, method = "correspondance")
top_rows_overlap(res_list, top_n = 4000, method = "correspondance")
top_rows_overlap(res_list, top_n = 5000, method = "correspondance")
Heatmaps of the top rows:
top_rows_heatmap(res_list, top_n = 1000)
top_rows_heatmap(res_list, top_n = 2000)
top_rows_heatmap(res_list, top_n = 3000)
top_rows_heatmap(res_list, top_n = 4000)
top_rows_heatmap(res_list, top_n = 5000)
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["SD", "hclust"]
# you can also extract it by
# res = res_list["SD:hclust"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'SD' method.
#> Subgroups are detected by 'hclust' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.548 0.813 0.896 0.4799 0.501 0.501
#> 3 3 0.443 0.646 0.774 0.2107 0.905 0.812
#> 4 4 0.482 0.589 0.794 0.1257 0.900 0.764
#> 5 5 0.484 0.449 0.733 0.1071 0.926 0.784
#> 6 6 0.616 0.557 0.722 0.0669 0.889 0.623
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.2236 0.8477 0.964 0.036
#> SRR1499584 2 0.0000 0.9135 0.000 1.000
#> SRR815256 2 0.0000 0.9135 0.000 1.000
#> SRR1077996 2 0.0000 0.9135 0.000 1.000
#> SRR1338468 1 0.9129 0.6335 0.672 0.328
#> SRR1394428 2 0.1843 0.9148 0.028 0.972
#> SRR1431104 2 0.7453 0.7779 0.212 0.788
#> SRR1082128 2 0.3431 0.9068 0.064 0.936
#> SRR1078212 1 0.3733 0.8432 0.928 0.072
#> SRR1458401 1 0.9248 0.6179 0.660 0.340
#> SRR1447281 1 0.0000 0.8486 1.000 0.000
#> SRR1339258 2 0.2603 0.9058 0.044 0.956
#> SRR1105106 2 0.2603 0.9058 0.044 0.956
#> SRR1105130 2 0.0376 0.9143 0.004 0.996
#> SRR1419039 1 0.0000 0.8486 1.000 0.000
#> SRR1079213 1 0.3733 0.8432 0.928 0.072
#> SRR1309745 2 0.0000 0.9135 0.000 1.000
#> SRR1079408 1 0.2236 0.8477 0.964 0.036
#> SRR1445550 2 0.4298 0.8967 0.088 0.912
#> SRR820026 2 0.3114 0.8962 0.056 0.944
#> SRR1353686 1 0.9815 0.4384 0.580 0.420
#> SRR1475466 1 0.0000 0.8486 1.000 0.000
#> SRR1096315 1 0.3733 0.8432 0.928 0.072
#> SRR1479826 1 0.9866 0.4308 0.568 0.432
#> SRR1479450 2 0.7674 0.7683 0.224 0.776
#> SRR1094097 1 0.0000 0.8486 1.000 0.000
#> SRR1071737 2 0.0000 0.9135 0.000 1.000
#> SRR1433989 1 0.0000 0.8486 1.000 0.000
#> SRR1077159 2 0.2778 0.9018 0.048 0.952
#> SRR1330082 1 0.0000 0.8486 1.000 0.000
#> SRR1079874 2 0.5519 0.8749 0.128 0.872
#> SRR1387132 2 0.3431 0.9096 0.064 0.936
#> SRR1095261 1 0.3733 0.8432 0.928 0.072
#> SRR818646 2 0.4161 0.9039 0.084 0.916
#> SRR1313991 1 0.0000 0.8486 1.000 0.000
#> SRR1363718 2 0.0000 0.9135 0.000 1.000
#> SRR1381372 2 0.8861 0.6030 0.304 0.696
#> SRR1388257 2 0.7056 0.8023 0.192 0.808
#> SRR818139 1 0.0000 0.8486 1.000 0.000
#> SRR1078188 2 0.0000 0.9135 0.000 1.000
#> SRR1080342 2 0.0000 0.9135 0.000 1.000
#> SRR1085358 2 0.2778 0.9018 0.048 0.952
#> SRR1473482 1 0.9248 0.6179 0.660 0.340
#> SRR1452674 1 0.0000 0.8486 1.000 0.000
#> SRR1395874 1 0.8327 0.7010 0.736 0.264
#> SRR1382780 1 0.2236 0.8477 0.964 0.036
#> SRR1361138 2 0.0376 0.9143 0.004 0.996
#> SRR1319242 2 0.3584 0.8972 0.068 0.932
#> SRR1084553 2 0.0000 0.9135 0.000 1.000
#> SRR1498747 1 0.9754 0.4844 0.592 0.408
#> SRR1442213 1 0.4022 0.8403 0.920 0.080
#> SRR1343943 2 0.0000 0.9135 0.000 1.000
#> SRR1458828 2 0.1633 0.9137 0.024 0.976
#> SRR1360280 2 0.0938 0.9144 0.012 0.988
#> SRR1474208 1 0.3733 0.8432 0.928 0.072
#> SRR1498726 2 0.5946 0.8599 0.144 0.856
#> SRR1099857 1 0.9248 0.6173 0.660 0.340
#> SRR1329423 2 0.5178 0.8850 0.116 0.884
#> SRR1074430 2 0.0376 0.9143 0.004 0.996
#> SRR1485848 2 0.4161 0.8973 0.084 0.916
#> SRR1471395 2 0.5519 0.8749 0.128 0.872
#> SRR1096198 2 0.7453 0.7726 0.212 0.788
#> SRR1323234 1 0.9248 0.6173 0.660 0.340
#> SRR1073483 2 0.0376 0.9143 0.004 0.996
#> SRR817817 2 0.4161 0.8973 0.084 0.916
#> SRR1434070 2 0.9977 0.0228 0.472 0.528
#> SRR1100941 1 0.4161 0.8385 0.916 0.084
#> SRR1336682 1 0.0000 0.8486 1.000 0.000
#> SRR1077211 2 0.1184 0.9147 0.016 0.984
#> SRR1389454 1 0.0000 0.8486 1.000 0.000
#> SRR1393004 1 0.0000 0.8486 1.000 0.000
#> SRR1086369 2 0.2236 0.9131 0.036 0.964
#> SRR1447192 1 0.0000 0.8486 1.000 0.000
#> SRR1459147 1 0.9358 0.5063 0.648 0.352
#> SRR1097929 1 0.2236 0.8477 0.964 0.036
#> SRR1075850 2 0.9323 0.3571 0.348 0.652
#> SRR1358126 1 0.0672 0.8489 0.992 0.008
#> SRR1121009 1 0.2236 0.8477 0.964 0.036
#> SRR1321720 1 0.9248 0.6135 0.660 0.340
#> SRR810105 1 0.9248 0.6173 0.660 0.340
#> SRR1489007 2 0.2948 0.9103 0.052 0.948
#> SRR1361838 2 0.4298 0.8967 0.088 0.912
#> SRR1475086 2 0.2423 0.9113 0.040 0.960
#> SRR1468226 2 0.0000 0.9135 0.000 1.000
#> SRR1069466 2 0.0000 0.9135 0.000 1.000
#> SRR1078114 2 0.7453 0.7726 0.212 0.788
#> SRR1319991 2 0.3431 0.9094 0.064 0.936
#> SRR1374543 1 0.9754 0.4766 0.592 0.408
#> SRR1383237 2 0.5059 0.8864 0.112 0.888
#> SRR1486215 1 0.1633 0.8475 0.976 0.024
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.6295 0.7449 0.472 0.000 0.528
#> SRR1499584 2 0.0424 0.8617 0.000 0.992 0.008
#> SRR815256 2 0.0424 0.8617 0.000 0.992 0.008
#> SRR1077996 2 0.0424 0.8617 0.000 0.992 0.008
#> SRR1338468 1 0.9040 0.3781 0.524 0.320 0.156
#> SRR1394428 2 0.2056 0.8585 0.024 0.952 0.024
#> SRR1431104 2 0.6902 0.7253 0.168 0.732 0.100
#> SRR1082128 2 0.3583 0.8459 0.056 0.900 0.044
#> SRR1078212 3 0.6667 0.7823 0.368 0.016 0.616
#> SRR1458401 1 0.8987 0.3875 0.516 0.340 0.144
#> SRR1447281 1 0.0000 0.4968 1.000 0.000 0.000
#> SRR1339258 2 0.6852 0.6751 0.036 0.664 0.300
#> SRR1105106 2 0.6852 0.6751 0.036 0.664 0.300
#> SRR1105130 2 0.0237 0.8625 0.004 0.996 0.000
#> SRR1419039 1 0.0000 0.4968 1.000 0.000 0.000
#> SRR1079213 3 0.6667 0.7823 0.368 0.016 0.616
#> SRR1309745 2 0.0000 0.8622 0.000 1.000 0.000
#> SRR1079408 3 0.6295 0.7449 0.472 0.000 0.528
#> SRR1445550 2 0.6231 0.7740 0.080 0.772 0.148
#> SRR820026 2 0.2384 0.8384 0.008 0.936 0.056
#> SRR1353686 1 0.8865 0.3522 0.476 0.404 0.120
#> SRR1475466 1 0.0000 0.4968 1.000 0.000 0.000
#> SRR1096315 3 0.6667 0.7823 0.368 0.016 0.616
#> SRR1479826 1 0.8840 0.3380 0.456 0.428 0.116
#> SRR1479450 2 0.7058 0.7134 0.180 0.720 0.100
#> SRR1094097 1 0.0000 0.4968 1.000 0.000 0.000
#> SRR1071737 2 0.0424 0.8617 0.000 0.992 0.008
#> SRR1433989 1 0.0000 0.4968 1.000 0.000 0.000
#> SRR1077159 2 0.2096 0.8440 0.004 0.944 0.052
#> SRR1330082 1 0.0000 0.4968 1.000 0.000 0.000
#> SRR1079874 2 0.6677 0.7658 0.088 0.744 0.168
#> SRR1387132 2 0.3888 0.8429 0.064 0.888 0.048
#> SRR1095261 3 0.6667 0.7823 0.368 0.016 0.616
#> SRR818646 2 0.4544 0.8321 0.084 0.860 0.056
#> SRR1313991 1 0.0000 0.4968 1.000 0.000 0.000
#> SRR1363718 2 0.0000 0.8622 0.000 1.000 0.000
#> SRR1381372 3 0.9811 -0.3219 0.240 0.376 0.384
#> SRR1388257 2 0.8910 0.5244 0.148 0.540 0.312
#> SRR818139 1 0.0000 0.4968 1.000 0.000 0.000
#> SRR1078188 2 0.0424 0.8617 0.000 0.992 0.008
#> SRR1080342 2 0.0000 0.8622 0.000 1.000 0.000
#> SRR1085358 2 0.2096 0.8440 0.004 0.944 0.052
#> SRR1473482 1 0.8987 0.3875 0.516 0.340 0.144
#> SRR1452674 1 0.0000 0.4968 1.000 0.000 0.000
#> SRR1395874 1 0.9724 0.0968 0.448 0.252 0.300
#> SRR1382780 3 0.6295 0.7449 0.472 0.000 0.528
#> SRR1361138 2 0.0237 0.8625 0.004 0.996 0.000
#> SRR1319242 2 0.2879 0.8451 0.024 0.924 0.052
#> SRR1084553 2 0.0424 0.8617 0.000 0.992 0.008
#> SRR1498747 1 0.8714 0.3636 0.484 0.408 0.108
#> SRR1442213 1 0.6381 -0.0700 0.648 0.012 0.340
#> SRR1343943 2 0.0237 0.8619 0.000 0.996 0.004
#> SRR1458828 2 0.1267 0.8581 0.004 0.972 0.024
#> SRR1360280 2 0.1877 0.8617 0.012 0.956 0.032
#> SRR1474208 3 0.6667 0.7823 0.368 0.016 0.616
#> SRR1498726 2 0.4921 0.8181 0.084 0.844 0.072
#> SRR1099857 1 0.8987 0.3879 0.516 0.340 0.144
#> SRR1329423 2 0.8016 0.6587 0.108 0.632 0.260
#> SRR1074430 2 0.0237 0.8625 0.004 0.996 0.000
#> SRR1485848 2 0.6148 0.7756 0.076 0.776 0.148
#> SRR1471395 2 0.6677 0.7658 0.088 0.744 0.168
#> SRR1096198 2 0.6380 0.7302 0.164 0.760 0.076
#> SRR1323234 1 0.8987 0.3879 0.516 0.340 0.144
#> SRR1073483 2 0.0237 0.8625 0.004 0.996 0.000
#> SRR817817 2 0.6148 0.7756 0.076 0.776 0.148
#> SRR1434070 2 0.9193 0.0779 0.156 0.480 0.364
#> SRR1100941 3 0.7085 0.7620 0.356 0.032 0.612
#> SRR1336682 1 0.0000 0.4968 1.000 0.000 0.000
#> SRR1077211 2 0.1453 0.8624 0.008 0.968 0.024
#> SRR1389454 1 0.0000 0.4968 1.000 0.000 0.000
#> SRR1393004 1 0.0000 0.4968 1.000 0.000 0.000
#> SRR1086369 2 0.2918 0.8546 0.032 0.924 0.044
#> SRR1447192 1 0.0000 0.4968 1.000 0.000 0.000
#> SRR1459147 1 0.7063 0.1347 0.516 0.020 0.464
#> SRR1097929 3 0.6295 0.7449 0.472 0.000 0.528
#> SRR1075850 2 0.8245 0.3587 0.132 0.624 0.244
#> SRR1358126 1 0.0424 0.4931 0.992 0.000 0.008
#> SRR1121009 3 0.6299 0.7389 0.476 0.000 0.524
#> SRR1321720 1 0.9046 0.3859 0.516 0.332 0.152
#> SRR810105 1 0.8987 0.3879 0.516 0.340 0.144
#> SRR1489007 2 0.3253 0.8482 0.052 0.912 0.036
#> SRR1361838 2 0.6231 0.7740 0.080 0.772 0.148
#> SRR1475086 2 0.2050 0.8562 0.028 0.952 0.020
#> SRR1468226 2 0.0424 0.8617 0.000 0.992 0.008
#> SRR1069466 2 0.0000 0.8622 0.000 1.000 0.000
#> SRR1078114 2 0.6380 0.7302 0.164 0.760 0.076
#> SRR1319991 2 0.3780 0.8431 0.064 0.892 0.044
#> SRR1374543 1 0.8708 0.3653 0.488 0.404 0.108
#> SRR1383237 2 0.7983 0.6573 0.104 0.632 0.264
#> SRR1486215 1 0.3941 0.3467 0.844 0.000 0.156
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.3649 0.7145 0.204 0.000 0.796 0.000
#> SRR1499584 2 0.0469 0.7644 0.000 0.988 0.000 0.012
#> SRR815256 2 0.2149 0.7412 0.000 0.912 0.000 0.088
#> SRR1077996 2 0.0469 0.7644 0.000 0.988 0.000 0.012
#> SRR1338468 1 0.8057 0.4358 0.484 0.304 0.188 0.024
#> SRR1394428 2 0.3560 0.7099 0.012 0.844 0.004 0.140
#> SRR1431104 2 0.7284 0.4758 0.116 0.648 0.064 0.172
#> SRR1082128 2 0.4669 0.6498 0.024 0.772 0.008 0.196
#> SRR1078212 3 0.0188 0.7570 0.004 0.000 0.996 0.000
#> SRR1458401 1 0.7986 0.4477 0.480 0.328 0.168 0.024
#> SRR1447281 1 0.0000 0.6539 1.000 0.000 0.000 0.000
#> SRR1339258 4 0.4961 0.5800 0.000 0.448 0.000 0.552
#> SRR1105106 4 0.4961 0.5800 0.000 0.448 0.000 0.552
#> SRR1105130 2 0.0469 0.7669 0.000 0.988 0.000 0.012
#> SRR1419039 1 0.0000 0.6539 1.000 0.000 0.000 0.000
#> SRR1079213 3 0.0188 0.7570 0.004 0.000 0.996 0.000
#> SRR1309745 2 0.0188 0.7663 0.000 0.996 0.000 0.004
#> SRR1079408 3 0.3649 0.7145 0.204 0.000 0.796 0.000
#> SRR1445550 2 0.5888 0.2364 0.048 0.640 0.004 0.308
#> SRR820026 2 0.2494 0.7367 0.000 0.916 0.048 0.036
#> SRR1353686 1 0.8169 0.4192 0.456 0.376 0.112 0.056
#> SRR1475466 1 0.0000 0.6539 1.000 0.000 0.000 0.000
#> SRR1096315 3 0.0188 0.7570 0.004 0.000 0.996 0.000
#> SRR1479826 1 0.8188 0.3903 0.424 0.400 0.132 0.044
#> SRR1479450 2 0.7703 0.3983 0.128 0.604 0.064 0.204
#> SRR1094097 1 0.0000 0.6539 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.0592 0.7631 0.000 0.984 0.000 0.016
#> SRR1433989 1 0.0000 0.6539 1.000 0.000 0.000 0.000
#> SRR1077159 2 0.2408 0.7423 0.000 0.920 0.044 0.036
#> SRR1330082 1 0.0000 0.6539 1.000 0.000 0.000 0.000
#> SRR1079874 2 0.6810 0.2343 0.048 0.612 0.044 0.296
#> SRR1387132 2 0.4630 0.6154 0.036 0.768 0.000 0.196
#> SRR1095261 3 0.0188 0.7570 0.004 0.000 0.996 0.000
#> SRR818646 2 0.5170 0.5711 0.048 0.724 0.000 0.228
#> SRR1313991 1 0.0000 0.6539 1.000 0.000 0.000 0.000
#> SRR1363718 2 0.0188 0.7663 0.000 0.996 0.000 0.004
#> SRR1381372 4 0.4511 0.5923 0.040 0.176 0.000 0.784
#> SRR1388257 4 0.5460 0.6274 0.028 0.340 0.000 0.632
#> SRR818139 1 0.0000 0.6539 1.000 0.000 0.000 0.000
#> SRR1078188 2 0.0592 0.7631 0.000 0.984 0.000 0.016
#> SRR1080342 2 0.0188 0.7663 0.000 0.996 0.000 0.004
#> SRR1085358 2 0.2408 0.7423 0.000 0.920 0.044 0.036
#> SRR1473482 1 0.7986 0.4477 0.480 0.328 0.168 0.024
#> SRR1452674 1 0.0000 0.6539 1.000 0.000 0.000 0.000
#> SRR1395874 3 0.8051 -0.0755 0.344 0.244 0.404 0.008
#> SRR1382780 3 0.3649 0.7145 0.204 0.000 0.796 0.000
#> SRR1361138 2 0.0469 0.7669 0.000 0.988 0.000 0.012
#> SRR1319242 2 0.2944 0.7356 0.004 0.900 0.052 0.044
#> SRR1084553 2 0.0469 0.7644 0.000 0.988 0.000 0.012
#> SRR1498747 1 0.7926 0.4286 0.460 0.384 0.120 0.036
#> SRR1442213 3 0.7719 0.3803 0.268 0.000 0.448 0.284
#> SRR1343943 2 0.0592 0.7650 0.000 0.984 0.000 0.016
#> SRR1458828 2 0.1520 0.7593 0.000 0.956 0.020 0.024
#> SRR1360280 2 0.3726 0.6007 0.000 0.788 0.000 0.212
#> SRR1474208 3 0.0188 0.7570 0.004 0.000 0.996 0.000
#> SRR1498726 2 0.5130 0.6782 0.040 0.800 0.084 0.076
#> SRR1099857 1 0.7986 0.4476 0.480 0.328 0.168 0.024
#> SRR1329423 4 0.6296 0.5748 0.064 0.388 0.000 0.548
#> SRR1074430 2 0.0469 0.7669 0.000 0.988 0.000 0.012
#> SRR1485848 2 0.5768 0.2335 0.044 0.652 0.004 0.300
#> SRR1471395 2 0.6810 0.2343 0.048 0.612 0.044 0.296
#> SRR1096198 2 0.7094 0.5179 0.112 0.672 0.076 0.140
#> SRR1323234 1 0.7986 0.4476 0.480 0.328 0.168 0.024
#> SRR1073483 2 0.0469 0.7669 0.000 0.988 0.000 0.012
#> SRR817817 2 0.5768 0.2335 0.044 0.652 0.004 0.300
#> SRR1434070 3 0.5597 -0.0788 0.000 0.464 0.516 0.020
#> SRR1100941 3 0.0779 0.7502 0.004 0.016 0.980 0.000
#> SRR1336682 1 0.0000 0.6539 1.000 0.000 0.000 0.000
#> SRR1077211 2 0.2799 0.7411 0.000 0.884 0.008 0.108
#> SRR1389454 1 0.0000 0.6539 1.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.6539 1.000 0.000 0.000 0.000
#> SRR1086369 2 0.4725 0.5428 0.012 0.728 0.004 0.256
#> SRR1447192 1 0.0000 0.6539 1.000 0.000 0.000 0.000
#> SRR1459147 4 0.4492 0.1327 0.260 0.004 0.004 0.732
#> SRR1097929 3 0.3649 0.7145 0.204 0.000 0.796 0.000
#> SRR1075850 2 0.5742 0.2547 0.000 0.596 0.368 0.036
#> SRR1358126 1 0.0336 0.6500 0.992 0.000 0.000 0.008
#> SRR1121009 3 0.3688 0.7104 0.208 0.000 0.792 0.000
#> SRR1321720 1 0.8378 0.4411 0.476 0.308 0.168 0.048
#> SRR810105 1 0.7986 0.4476 0.480 0.328 0.168 0.024
#> SRR1489007 2 0.4070 0.6690 0.044 0.824 0.000 0.132
#> SRR1361838 2 0.5888 0.2364 0.048 0.640 0.004 0.308
#> SRR1475086 2 0.2385 0.7526 0.000 0.920 0.028 0.052
#> SRR1468226 2 0.2011 0.7468 0.000 0.920 0.000 0.080
#> SRR1069466 2 0.0188 0.7663 0.000 0.996 0.000 0.004
#> SRR1078114 2 0.7094 0.5179 0.112 0.672 0.076 0.140
#> SRR1319991 2 0.4544 0.6472 0.048 0.788 0.000 0.164
#> SRR1374543 1 0.7954 0.4307 0.464 0.380 0.116 0.040
#> SRR1383237 4 0.6253 0.5894 0.060 0.396 0.000 0.544
#> SRR1486215 1 0.4584 0.3939 0.696 0.000 0.004 0.300
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.3513 0.71162 0.180 0.000 0.800 0.000 0.020
#> SRR1499584 2 0.0566 0.65262 0.000 0.984 0.000 0.012 0.004
#> SRR815256 2 0.2513 0.61689 0.000 0.876 0.000 0.116 0.008
#> SRR1077996 2 0.0566 0.65262 0.000 0.984 0.000 0.012 0.004
#> SRR1338468 1 0.8211 0.49856 0.476 0.188 0.124 0.020 0.192
#> SRR1394428 2 0.5069 0.40854 0.000 0.620 0.000 0.328 0.052
#> SRR1431104 4 0.7506 0.03486 0.068 0.408 0.036 0.424 0.064
#> SRR1082128 2 0.5499 0.20999 0.004 0.532 0.000 0.408 0.056
#> SRR1078212 3 0.0162 0.71251 0.000 0.000 0.996 0.004 0.000
#> SRR1458401 1 0.8165 0.50666 0.472 0.204 0.104 0.020 0.200
#> SRR1447281 1 0.0000 0.66896 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.4665 -0.07045 0.000 0.148 0.000 0.740 0.112
#> SRR1105106 4 0.4665 -0.07045 0.000 0.148 0.000 0.740 0.112
#> SRR1105130 2 0.2230 0.64652 0.000 0.884 0.000 0.116 0.000
#> SRR1419039 1 0.0290 0.66535 0.992 0.000 0.000 0.000 0.008
#> SRR1079213 3 0.0162 0.71191 0.000 0.000 0.996 0.000 0.004
#> SRR1309745 2 0.1732 0.65699 0.000 0.920 0.000 0.080 0.000
#> SRR1079408 3 0.3602 0.71079 0.180 0.000 0.796 0.000 0.024
#> SRR1445550 4 0.4430 0.25000 0.004 0.456 0.000 0.540 0.000
#> SRR820026 2 0.4275 0.53827 0.000 0.792 0.020 0.052 0.136
#> SRR1353686 1 0.8646 0.46964 0.440 0.232 0.060 0.088 0.180
#> SRR1475466 1 0.0000 0.66896 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0162 0.71191 0.000 0.000 0.996 0.000 0.004
#> SRR1479826 1 0.8575 0.44879 0.416 0.272 0.076 0.052 0.184
#> SRR1479450 4 0.7555 0.12141 0.068 0.360 0.036 0.464 0.072
#> SRR1094097 1 0.0000 0.66896 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0771 0.64965 0.000 0.976 0.000 0.020 0.004
#> SRR1433989 1 0.0000 0.66896 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 2 0.4303 0.55375 0.000 0.792 0.016 0.068 0.124
#> SRR1330082 1 0.0290 0.66549 0.992 0.000 0.000 0.000 0.008
#> SRR1079874 4 0.5400 0.19716 0.004 0.472 0.024 0.488 0.012
#> SRR1387132 2 0.4982 0.18994 0.000 0.556 0.000 0.412 0.032
#> SRR1095261 3 0.0162 0.71191 0.000 0.000 0.996 0.000 0.004
#> SRR818646 4 0.5296 -0.09367 0.000 0.468 0.000 0.484 0.048
#> SRR1313991 1 0.0000 0.66896 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0880 0.65903 0.000 0.968 0.000 0.032 0.000
#> SRR1381372 5 0.5236 0.38027 0.000 0.044 0.000 0.464 0.492
#> SRR1388257 4 0.5839 -0.28496 0.000 0.116 0.000 0.560 0.324
#> SRR818139 1 0.0404 0.66295 0.988 0.000 0.000 0.000 0.012
#> SRR1078188 2 0.0771 0.64965 0.000 0.976 0.000 0.020 0.004
#> SRR1080342 2 0.0880 0.65903 0.000 0.968 0.000 0.032 0.000
#> SRR1085358 2 0.4303 0.55375 0.000 0.792 0.016 0.068 0.124
#> SRR1473482 1 0.8165 0.50666 0.472 0.204 0.104 0.020 0.200
#> SRR1452674 1 0.0000 0.66896 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 3 0.8046 -0.05639 0.328 0.140 0.380 0.000 0.152
#> SRR1382780 3 0.3602 0.71079 0.180 0.000 0.796 0.000 0.024
#> SRR1361138 2 0.2230 0.64652 0.000 0.884 0.000 0.116 0.000
#> SRR1319242 2 0.4805 0.56275 0.000 0.760 0.028 0.140 0.072
#> SRR1084553 2 0.0566 0.65262 0.000 0.984 0.000 0.012 0.004
#> SRR1498747 1 0.8336 0.48749 0.452 0.244 0.064 0.048 0.192
#> SRR1442213 3 0.6805 0.17457 0.132 0.000 0.440 0.028 0.400
#> SRR1343943 2 0.1478 0.66160 0.000 0.936 0.000 0.064 0.000
#> SRR1458828 2 0.2616 0.65747 0.000 0.888 0.000 0.076 0.036
#> SRR1360280 2 0.4794 0.31532 0.000 0.624 0.000 0.344 0.032
#> SRR1474208 3 0.0162 0.71251 0.000 0.000 0.996 0.004 0.000
#> SRR1498726 2 0.6123 0.38011 0.000 0.640 0.060 0.224 0.076
#> SRR1099857 1 0.8165 0.50738 0.472 0.204 0.104 0.020 0.200
#> SRR1329423 4 0.1787 0.07792 0.004 0.044 0.000 0.936 0.016
#> SRR1074430 2 0.2230 0.64652 0.000 0.884 0.000 0.116 0.000
#> SRR1485848 2 0.4596 -0.24196 0.004 0.500 0.000 0.492 0.004
#> SRR1471395 4 0.5400 0.19716 0.004 0.472 0.024 0.488 0.012
#> SRR1096198 2 0.7789 -0.04093 0.072 0.428 0.044 0.380 0.076
#> SRR1323234 1 0.8165 0.50738 0.472 0.204 0.104 0.020 0.200
#> SRR1073483 2 0.2230 0.64652 0.000 0.884 0.000 0.116 0.000
#> SRR817817 2 0.4596 -0.24196 0.004 0.500 0.000 0.492 0.004
#> SRR1434070 3 0.5726 -0.00517 0.000 0.420 0.512 0.056 0.012
#> SRR1100941 3 0.0671 0.70602 0.000 0.016 0.980 0.004 0.000
#> SRR1336682 1 0.0000 0.66896 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.3946 0.58761 0.000 0.804 0.008 0.140 0.048
#> SRR1389454 1 0.0000 0.66896 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.66896 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 2 0.5601 0.06812 0.000 0.480 0.000 0.448 0.072
#> SRR1447192 1 0.0000 0.66896 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 5 0.4599 0.55874 0.100 0.000 0.000 0.156 0.744
#> SRR1097929 3 0.3513 0.71162 0.180 0.000 0.800 0.000 0.020
#> SRR1075850 2 0.6951 0.13295 0.000 0.480 0.308 0.024 0.188
#> SRR1358126 1 0.0609 0.65964 0.980 0.000 0.000 0.000 0.020
#> SRR1121009 3 0.3639 0.70766 0.184 0.000 0.792 0.000 0.024
#> SRR1321720 1 0.8483 0.49165 0.464 0.200 0.104 0.044 0.188
#> SRR810105 1 0.8165 0.50738 0.472 0.204 0.104 0.020 0.200
#> SRR1489007 2 0.4770 0.37485 0.000 0.644 0.000 0.320 0.036
#> SRR1361838 4 0.4430 0.25000 0.004 0.456 0.000 0.540 0.000
#> SRR1475086 2 0.4429 0.58263 0.000 0.764 0.008 0.168 0.060
#> SRR1468226 2 0.2411 0.62346 0.000 0.884 0.000 0.108 0.008
#> SRR1069466 2 0.1732 0.65699 0.000 0.920 0.000 0.080 0.000
#> SRR1078114 2 0.7789 -0.04093 0.072 0.428 0.044 0.380 0.076
#> SRR1319991 2 0.5044 0.21260 0.000 0.556 0.000 0.408 0.036
#> SRR1374543 1 0.8447 0.48850 0.452 0.232 0.060 0.064 0.192
#> SRR1383237 4 0.2610 0.06524 0.004 0.076 0.000 0.892 0.028
#> SRR1486215 1 0.4702 -0.03279 0.552 0.000 0.000 0.016 0.432
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.1349 0.756949 0.056 0.000 0.940 0.000 0.000 0.004
#> SRR1499584 2 0.1625 0.637496 0.000 0.928 0.000 0.012 0.060 0.000
#> SRR815256 2 0.3472 0.583367 0.000 0.808 0.000 0.092 0.100 0.000
#> SRR1077996 2 0.1625 0.637496 0.000 0.928 0.000 0.012 0.060 0.000
#> SRR1338468 5 0.5323 0.809288 0.444 0.052 0.016 0.004 0.484 0.000
#> SRR1394428 2 0.5838 0.164995 0.000 0.516 0.000 0.264 0.216 0.004
#> SRR1431104 4 0.6849 0.322581 0.068 0.356 0.000 0.416 0.156 0.004
#> SRR1082128 2 0.6060 -0.025125 0.004 0.448 0.000 0.356 0.188 0.004
#> SRR1078212 3 0.2402 0.766775 0.000 0.000 0.856 0.004 0.140 0.000
#> SRR1458401 5 0.4844 0.825211 0.440 0.056 0.000 0.000 0.504 0.000
#> SRR1447281 1 0.0000 0.994632 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.5044 -0.032556 0.000 0.128 0.000 0.700 0.036 0.136
#> SRR1105106 4 0.5044 -0.032556 0.000 0.128 0.000 0.700 0.036 0.136
#> SRR1105130 2 0.2301 0.617279 0.000 0.884 0.000 0.096 0.020 0.000
#> SRR1419039 1 0.0260 0.988391 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1079213 3 0.2402 0.765939 0.000 0.000 0.856 0.000 0.140 0.004
#> SRR1309745 2 0.1327 0.636723 0.000 0.936 0.000 0.064 0.000 0.000
#> SRR1079408 3 0.1493 0.756212 0.056 0.000 0.936 0.000 0.004 0.004
#> SRR1445550 4 0.4542 0.398347 0.004 0.412 0.000 0.556 0.028 0.000
#> SRR820026 2 0.4681 0.249078 0.000 0.524 0.000 0.044 0.432 0.000
#> SRR1353686 5 0.6275 0.756931 0.408 0.068 0.000 0.088 0.436 0.000
#> SRR1475466 1 0.0000 0.994632 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.2402 0.765939 0.000 0.000 0.856 0.000 0.140 0.004
#> SRR1479826 5 0.5946 0.781097 0.384 0.080 0.000 0.048 0.488 0.000
#> SRR1479450 4 0.6825 0.336380 0.064 0.320 0.000 0.444 0.168 0.004
#> SRR1094097 1 0.0000 0.994632 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.1895 0.631396 0.000 0.912 0.000 0.016 0.072 0.000
#> SRR1433989 1 0.0000 0.994632 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077159 2 0.4845 0.282889 0.000 0.540 0.000 0.060 0.400 0.000
#> SRR1330082 1 0.0260 0.988545 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1079874 4 0.5157 0.363070 0.004 0.440 0.000 0.484 0.072 0.000
#> SRR1387132 2 0.5253 0.121389 0.000 0.540 0.000 0.372 0.080 0.008
#> SRR1095261 3 0.2402 0.765939 0.000 0.000 0.856 0.000 0.140 0.004
#> SRR818646 4 0.5902 0.084936 0.000 0.408 0.000 0.428 0.156 0.008
#> SRR1313991 1 0.0000 0.994632 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.1003 0.647310 0.000 0.964 0.000 0.020 0.016 0.000
#> SRR1381372 6 0.5333 0.455312 0.000 0.032 0.000 0.252 0.084 0.632
#> SRR1388257 6 0.6650 0.213218 0.000 0.108 0.000 0.376 0.092 0.424
#> SRR818139 1 0.0363 0.983966 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1078188 2 0.1895 0.631396 0.000 0.912 0.000 0.016 0.072 0.000
#> SRR1080342 2 0.1003 0.647310 0.000 0.964 0.000 0.020 0.016 0.000
#> SRR1085358 2 0.4845 0.282889 0.000 0.540 0.000 0.060 0.400 0.000
#> SRR1473482 5 0.4844 0.825211 0.440 0.056 0.000 0.000 0.504 0.000
#> SRR1452674 1 0.0000 0.994632 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1395874 3 0.6416 -0.000785 0.224 0.024 0.484 0.004 0.264 0.000
#> SRR1382780 3 0.1493 0.756212 0.056 0.000 0.936 0.000 0.004 0.004
#> SRR1361138 2 0.2301 0.617279 0.000 0.884 0.000 0.096 0.020 0.000
#> SRR1319242 2 0.4805 0.396420 0.000 0.676 0.004 0.116 0.204 0.000
#> SRR1084553 2 0.1625 0.637496 0.000 0.928 0.000 0.012 0.060 0.000
#> SRR1498747 5 0.5933 0.803680 0.420 0.068 0.004 0.044 0.464 0.000
#> SRR1442213 3 0.4971 0.218362 0.016 0.000 0.492 0.012 0.016 0.464
#> SRR1343943 2 0.1765 0.646889 0.000 0.924 0.000 0.052 0.024 0.000
#> SRR1458828 2 0.2860 0.629449 0.000 0.852 0.000 0.048 0.100 0.000
#> SRR1360280 2 0.5782 0.234383 0.000 0.564 0.000 0.288 0.120 0.028
#> SRR1474208 3 0.2402 0.766775 0.000 0.000 0.856 0.004 0.140 0.000
#> SRR1498726 2 0.6068 0.080004 0.000 0.556 0.032 0.212 0.200 0.000
#> SRR1099857 5 0.4892 0.827209 0.440 0.060 0.000 0.000 0.500 0.000
#> SRR1329423 4 0.2194 0.158855 0.004 0.036 0.000 0.912 0.008 0.040
#> SRR1074430 2 0.2301 0.617279 0.000 0.884 0.000 0.096 0.020 0.000
#> SRR1485848 4 0.4718 0.343777 0.004 0.448 0.000 0.516 0.028 0.004
#> SRR1471395 4 0.5157 0.363070 0.004 0.440 0.000 0.484 0.072 0.000
#> SRR1096198 4 0.7031 0.296465 0.068 0.356 0.004 0.376 0.196 0.000
#> SRR1323234 5 0.4892 0.827209 0.440 0.060 0.000 0.000 0.500 0.000
#> SRR1073483 2 0.2301 0.617279 0.000 0.884 0.000 0.096 0.020 0.000
#> SRR817817 4 0.4718 0.343777 0.004 0.448 0.000 0.516 0.028 0.004
#> SRR1434070 3 0.6292 0.022904 0.000 0.368 0.468 0.060 0.104 0.000
#> SRR1100941 3 0.2833 0.757698 0.000 0.012 0.836 0.004 0.148 0.000
#> SRR1336682 1 0.0000 0.994632 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.4998 0.489903 0.000 0.676 0.000 0.112 0.196 0.016
#> SRR1389454 1 0.0000 0.994632 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.994632 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1086369 4 0.6522 0.066188 0.000 0.368 0.000 0.384 0.220 0.028
#> SRR1447192 1 0.0000 0.994632 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1459147 6 0.0717 0.478176 0.016 0.000 0.000 0.008 0.000 0.976
#> SRR1097929 3 0.1349 0.756949 0.056 0.000 0.940 0.000 0.000 0.004
#> SRR1075850 5 0.4371 0.132378 0.000 0.216 0.060 0.004 0.716 0.004
#> SRR1358126 1 0.0547 0.975456 0.980 0.000 0.000 0.000 0.000 0.020
#> SRR1121009 3 0.1555 0.753589 0.060 0.000 0.932 0.000 0.004 0.004
#> SRR1321720 5 0.5874 0.731977 0.432 0.108 0.000 0.016 0.440 0.004
#> SRR810105 5 0.4892 0.827209 0.440 0.060 0.000 0.000 0.500 0.000
#> SRR1489007 2 0.4933 0.280221 0.000 0.616 0.000 0.300 0.080 0.004
#> SRR1361838 4 0.4542 0.398347 0.004 0.412 0.000 0.556 0.028 0.000
#> SRR1475086 2 0.4429 0.481610 0.000 0.716 0.000 0.140 0.144 0.000
#> SRR1468226 2 0.3372 0.590108 0.000 0.816 0.000 0.084 0.100 0.000
#> SRR1069466 2 0.1327 0.636723 0.000 0.936 0.000 0.064 0.000 0.000
#> SRR1078114 4 0.7031 0.296465 0.068 0.356 0.004 0.376 0.196 0.000
#> SRR1319991 2 0.5190 0.066725 0.000 0.524 0.000 0.392 0.080 0.004
#> SRR1374543 5 0.5865 0.795473 0.420 0.060 0.000 0.056 0.464 0.000
#> SRR1383237 4 0.3083 0.136133 0.004 0.060 0.000 0.864 0.024 0.048
#> SRR1486215 6 0.3857 -0.022449 0.468 0.000 0.000 0.000 0.000 0.532
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["SD", "kmeans"]
# you can also extract it by
# res = res_list["SD:kmeans"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'SD' method.
#> Subgroups are detected by 'kmeans' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.848 0.932 0.968 0.5000 0.495 0.495
#> 3 3 0.720 0.854 0.906 0.2861 0.822 0.654
#> 4 4 0.597 0.564 0.793 0.1363 0.878 0.672
#> 5 5 0.627 0.641 0.794 0.0774 0.851 0.517
#> 6 6 0.721 0.680 0.812 0.0429 0.964 0.827
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.942 1.000 0.000
#> SRR1499584 2 0.0000 0.989 0.000 1.000
#> SRR815256 2 0.0000 0.989 0.000 1.000
#> SRR1077996 2 0.0000 0.989 0.000 1.000
#> SRR1338468 1 0.0938 0.945 0.988 0.012
#> SRR1394428 2 0.0000 0.989 0.000 1.000
#> SRR1431104 2 0.0000 0.989 0.000 1.000
#> SRR1082128 2 0.0000 0.989 0.000 1.000
#> SRR1078212 1 0.0000 0.942 1.000 0.000
#> SRR1458401 1 0.7219 0.771 0.800 0.200
#> SRR1447281 1 0.0938 0.945 0.988 0.012
#> SRR1339258 2 0.0000 0.989 0.000 1.000
#> SRR1105106 2 0.0000 0.989 0.000 1.000
#> SRR1105130 2 0.0000 0.989 0.000 1.000
#> SRR1419039 1 0.0938 0.945 0.988 0.012
#> SRR1079213 1 0.0000 0.942 1.000 0.000
#> SRR1309745 2 0.0000 0.989 0.000 1.000
#> SRR1079408 1 0.0000 0.942 1.000 0.000
#> SRR1445550 2 0.0000 0.989 0.000 1.000
#> SRR820026 2 0.2778 0.945 0.048 0.952
#> SRR1353686 1 0.0938 0.945 0.988 0.012
#> SRR1475466 1 0.0000 0.942 1.000 0.000
#> SRR1096315 1 0.0000 0.942 1.000 0.000
#> SRR1479826 1 0.5059 0.863 0.888 0.112
#> SRR1479450 1 0.7219 0.771 0.800 0.200
#> SRR1094097 1 0.0938 0.945 0.988 0.012
#> SRR1071737 2 0.0000 0.989 0.000 1.000
#> SRR1433989 1 0.0938 0.945 0.988 0.012
#> SRR1077159 2 0.6531 0.792 0.168 0.832
#> SRR1330082 1 0.0938 0.945 0.988 0.012
#> SRR1079874 2 0.0000 0.989 0.000 1.000
#> SRR1387132 2 0.0000 0.989 0.000 1.000
#> SRR1095261 1 0.9795 0.304 0.584 0.416
#> SRR818646 2 0.0000 0.989 0.000 1.000
#> SRR1313991 1 0.0938 0.945 0.988 0.012
#> SRR1363718 2 0.0000 0.989 0.000 1.000
#> SRR1381372 2 0.0000 0.989 0.000 1.000
#> SRR1388257 2 0.0000 0.989 0.000 1.000
#> SRR818139 1 0.0938 0.945 0.988 0.012
#> SRR1078188 2 0.0000 0.989 0.000 1.000
#> SRR1080342 2 0.0000 0.989 0.000 1.000
#> SRR1085358 2 0.0000 0.989 0.000 1.000
#> SRR1473482 1 0.0938 0.945 0.988 0.012
#> SRR1452674 1 0.0938 0.945 0.988 0.012
#> SRR1395874 1 0.0000 0.942 1.000 0.000
#> SRR1382780 1 0.0000 0.942 1.000 0.000
#> SRR1361138 2 0.0000 0.989 0.000 1.000
#> SRR1319242 2 0.0000 0.989 0.000 1.000
#> SRR1084553 2 0.0000 0.989 0.000 1.000
#> SRR1498747 1 0.0000 0.942 1.000 0.000
#> SRR1442213 1 0.0000 0.942 1.000 0.000
#> SRR1343943 2 0.0000 0.989 0.000 1.000
#> SRR1458828 2 0.0000 0.989 0.000 1.000
#> SRR1360280 2 0.0000 0.989 0.000 1.000
#> SRR1474208 1 0.9795 0.304 0.584 0.416
#> SRR1498726 2 0.3274 0.937 0.060 0.940
#> SRR1099857 1 0.0938 0.945 0.988 0.012
#> SRR1329423 2 0.0000 0.989 0.000 1.000
#> SRR1074430 2 0.0000 0.989 0.000 1.000
#> SRR1485848 2 0.0000 0.989 0.000 1.000
#> SRR1471395 2 0.0000 0.989 0.000 1.000
#> SRR1096198 1 0.0938 0.945 0.988 0.012
#> SRR1323234 1 0.0938 0.945 0.988 0.012
#> SRR1073483 2 0.0000 0.989 0.000 1.000
#> SRR817817 2 0.0000 0.989 0.000 1.000
#> SRR1434070 2 0.3114 0.941 0.056 0.944
#> SRR1100941 1 0.9815 0.292 0.580 0.420
#> SRR1336682 1 0.0938 0.945 0.988 0.012
#> SRR1077211 2 0.0000 0.989 0.000 1.000
#> SRR1389454 1 0.0938 0.945 0.988 0.012
#> SRR1393004 1 0.0000 0.942 1.000 0.000
#> SRR1086369 2 0.0000 0.989 0.000 1.000
#> SRR1447192 1 0.0938 0.945 0.988 0.012
#> SRR1459147 1 0.0938 0.945 0.988 0.012
#> SRR1097929 1 0.0000 0.942 1.000 0.000
#> SRR1075850 2 0.6438 0.799 0.164 0.836
#> SRR1358126 1 0.0938 0.945 0.988 0.012
#> SRR1121009 1 0.0000 0.942 1.000 0.000
#> SRR1321720 1 0.7219 0.771 0.800 0.200
#> SRR810105 1 0.5842 0.836 0.860 0.140
#> SRR1489007 2 0.0000 0.989 0.000 1.000
#> SRR1361838 2 0.0000 0.989 0.000 1.000
#> SRR1475086 2 0.0000 0.989 0.000 1.000
#> SRR1468226 2 0.0000 0.989 0.000 1.000
#> SRR1069466 2 0.0000 0.989 0.000 1.000
#> SRR1078114 1 0.0000 0.942 1.000 0.000
#> SRR1319991 2 0.0000 0.989 0.000 1.000
#> SRR1374543 1 0.0938 0.945 0.988 0.012
#> SRR1383237 2 0.0000 0.989 0.000 1.000
#> SRR1486215 1 0.0938 0.945 0.988 0.012
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.4346 0.819 0.184 0.000 0.816
#> SRR1499584 2 0.0000 0.942 0.000 1.000 0.000
#> SRR815256 2 0.1163 0.937 0.000 0.972 0.028
#> SRR1077996 2 0.0000 0.942 0.000 1.000 0.000
#> SRR1338468 1 0.4062 0.782 0.836 0.000 0.164
#> SRR1394428 2 0.2096 0.927 0.004 0.944 0.052
#> SRR1431104 2 0.2496 0.927 0.004 0.928 0.068
#> SRR1082128 2 0.2866 0.925 0.008 0.916 0.076
#> SRR1078212 3 0.3192 0.855 0.112 0.000 0.888
#> SRR1458401 1 0.6208 0.670 0.752 0.200 0.048
#> SRR1447281 1 0.0000 0.897 1.000 0.000 0.000
#> SRR1339258 2 0.2066 0.929 0.000 0.940 0.060
#> SRR1105106 2 0.2261 0.928 0.000 0.932 0.068
#> SRR1105130 2 0.0237 0.942 0.000 0.996 0.004
#> SRR1419039 1 0.0424 0.897 0.992 0.000 0.008
#> SRR1079213 3 0.3192 0.855 0.112 0.000 0.888
#> SRR1309745 2 0.0000 0.942 0.000 1.000 0.000
#> SRR1079408 1 0.4452 0.762 0.808 0.000 0.192
#> SRR1445550 2 0.1753 0.932 0.000 0.952 0.048
#> SRR820026 3 0.4755 0.746 0.008 0.184 0.808
#> SRR1353686 1 0.6264 0.356 0.616 0.004 0.380
#> SRR1475466 1 0.0424 0.897 0.992 0.000 0.008
#> SRR1096315 3 0.3192 0.855 0.112 0.000 0.888
#> SRR1479826 1 0.5036 0.787 0.808 0.020 0.172
#> SRR1479450 1 0.5874 0.669 0.760 0.208 0.032
#> SRR1094097 1 0.0424 0.897 0.992 0.000 0.008
#> SRR1071737 2 0.0000 0.942 0.000 1.000 0.000
#> SRR1433989 1 0.0424 0.897 0.992 0.000 0.008
#> SRR1077159 3 0.6396 0.545 0.016 0.320 0.664
#> SRR1330082 1 0.0424 0.897 0.992 0.000 0.008
#> SRR1079874 2 0.4733 0.798 0.004 0.800 0.196
#> SRR1387132 2 0.1529 0.939 0.000 0.960 0.040
#> SRR1095261 3 0.3802 0.859 0.080 0.032 0.888
#> SRR818646 2 0.2448 0.928 0.000 0.924 0.076
#> SRR1313991 1 0.0424 0.897 0.992 0.000 0.008
#> SRR1363718 2 0.0000 0.942 0.000 1.000 0.000
#> SRR1381372 2 0.3192 0.917 0.000 0.888 0.112
#> SRR1388257 2 0.3192 0.917 0.000 0.888 0.112
#> SRR818139 1 0.0424 0.897 0.992 0.000 0.008
#> SRR1078188 2 0.0000 0.942 0.000 1.000 0.000
#> SRR1080342 2 0.0000 0.942 0.000 1.000 0.000
#> SRR1085358 3 0.6205 0.515 0.008 0.336 0.656
#> SRR1473482 1 0.0237 0.895 0.996 0.000 0.004
#> SRR1452674 1 0.0000 0.897 1.000 0.000 0.000
#> SRR1395874 3 0.4887 0.767 0.228 0.000 0.772
#> SRR1382780 1 0.4452 0.762 0.808 0.000 0.192
#> SRR1361138 2 0.1163 0.938 0.000 0.972 0.028
#> SRR1319242 2 0.6180 0.140 0.000 0.584 0.416
#> SRR1084553 2 0.0000 0.942 0.000 1.000 0.000
#> SRR1498747 3 0.4605 0.807 0.204 0.000 0.796
#> SRR1442213 3 0.4346 0.819 0.184 0.000 0.816
#> SRR1343943 2 0.0000 0.942 0.000 1.000 0.000
#> SRR1458828 2 0.0237 0.942 0.000 0.996 0.004
#> SRR1360280 2 0.1964 0.929 0.000 0.944 0.056
#> SRR1474208 3 0.3802 0.859 0.080 0.032 0.888
#> SRR1498726 3 0.3742 0.838 0.036 0.072 0.892
#> SRR1099857 1 0.3619 0.812 0.864 0.000 0.136
#> SRR1329423 2 0.2860 0.925 0.004 0.912 0.084
#> SRR1074430 2 0.0237 0.942 0.000 0.996 0.004
#> SRR1485848 2 0.4733 0.798 0.004 0.800 0.196
#> SRR1471395 2 0.3500 0.886 0.004 0.880 0.116
#> SRR1096198 3 0.4796 0.770 0.220 0.000 0.780
#> SRR1323234 1 0.0000 0.897 1.000 0.000 0.000
#> SRR1073483 2 0.1163 0.938 0.000 0.972 0.028
#> SRR817817 2 0.4883 0.792 0.004 0.788 0.208
#> SRR1434070 3 0.3618 0.825 0.012 0.104 0.884
#> SRR1100941 3 0.3832 0.858 0.076 0.036 0.888
#> SRR1336682 1 0.0237 0.896 0.996 0.000 0.004
#> SRR1077211 2 0.1753 0.931 0.000 0.952 0.048
#> SRR1389454 1 0.0237 0.897 0.996 0.000 0.004
#> SRR1393004 1 0.0424 0.897 0.992 0.000 0.008
#> SRR1086369 2 0.2537 0.927 0.000 0.920 0.080
#> SRR1447192 1 0.0237 0.897 0.996 0.000 0.004
#> SRR1459147 1 0.2448 0.852 0.924 0.000 0.076
#> SRR1097929 3 0.4346 0.819 0.184 0.000 0.816
#> SRR1075850 3 0.3896 0.801 0.008 0.128 0.864
#> SRR1358126 1 0.1031 0.890 0.976 0.000 0.024
#> SRR1121009 1 0.4452 0.762 0.808 0.000 0.192
#> SRR1321720 1 0.5891 0.708 0.780 0.168 0.052
#> SRR810105 1 0.6447 0.727 0.744 0.060 0.196
#> SRR1489007 2 0.0892 0.940 0.000 0.980 0.020
#> SRR1361838 2 0.3500 0.886 0.004 0.880 0.116
#> SRR1475086 2 0.0000 0.942 0.000 1.000 0.000
#> SRR1468226 2 0.0592 0.941 0.000 0.988 0.012
#> SRR1069466 2 0.0000 0.942 0.000 1.000 0.000
#> SRR1078114 3 0.3610 0.858 0.096 0.016 0.888
#> SRR1319991 2 0.1860 0.932 0.000 0.948 0.052
#> SRR1374543 1 0.0000 0.897 1.000 0.000 0.000
#> SRR1383237 2 0.2400 0.927 0.004 0.932 0.064
#> SRR1486215 1 0.0424 0.897 0.992 0.000 0.008
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.3004 0.83357 0.060 0.000 0.892 0.048
#> SRR1499584 2 0.0188 0.71806 0.000 0.996 0.000 0.004
#> SRR815256 2 0.2760 0.63879 0.000 0.872 0.000 0.128
#> SRR1077996 2 0.0188 0.71806 0.000 0.996 0.000 0.004
#> SRR1338468 1 0.6289 0.60069 0.648 0.000 0.116 0.236
#> SRR1394428 2 0.4916 0.11259 0.000 0.576 0.000 0.424
#> SRR1431104 4 0.5429 -0.02390 0.004 0.392 0.012 0.592
#> SRR1082128 4 0.5119 0.12154 0.004 0.440 0.000 0.556
#> SRR1078212 3 0.0592 0.86352 0.016 0.000 0.984 0.000
#> SRR1458401 4 0.8027 0.09911 0.360 0.164 0.024 0.452
#> SRR1447281 1 0.0000 0.83813 1.000 0.000 0.000 0.000
#> SRR1339258 2 0.5508 0.14327 0.000 0.508 0.016 0.476
#> SRR1105106 2 0.5459 0.22089 0.000 0.552 0.016 0.432
#> SRR1105130 2 0.0188 0.71779 0.000 0.996 0.000 0.004
#> SRR1419039 1 0.0336 0.83609 0.992 0.000 0.000 0.008
#> SRR1079213 3 0.0592 0.86352 0.016 0.000 0.984 0.000
#> SRR1309745 2 0.1118 0.71384 0.000 0.964 0.000 0.036
#> SRR1079408 1 0.5964 0.63135 0.676 0.000 0.228 0.096
#> SRR1445550 2 0.6223 0.23310 0.004 0.552 0.048 0.396
#> SRR820026 3 0.7369 0.27190 0.000 0.196 0.512 0.292
#> SRR1353686 4 0.6565 0.20889 0.224 0.000 0.148 0.628
#> SRR1475466 1 0.0000 0.83813 1.000 0.000 0.000 0.000
#> SRR1096315 3 0.0592 0.86352 0.016 0.000 0.984 0.000
#> SRR1479826 1 0.7072 0.27913 0.480 0.024 0.064 0.432
#> SRR1479450 4 0.7913 0.19655 0.336 0.156 0.024 0.484
#> SRR1094097 1 0.0000 0.83813 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.71859 0.000 1.000 0.000 0.000
#> SRR1433989 1 0.0000 0.83813 1.000 0.000 0.000 0.000
#> SRR1077159 4 0.7380 0.30910 0.000 0.288 0.200 0.512
#> SRR1330082 1 0.0336 0.83609 0.992 0.000 0.000 0.008
#> SRR1079874 2 0.7043 0.15215 0.004 0.500 0.108 0.388
#> SRR1387132 2 0.3528 0.61903 0.000 0.808 0.000 0.192
#> SRR1095261 3 0.0779 0.86337 0.016 0.000 0.980 0.004
#> SRR818646 2 0.4713 0.36394 0.000 0.640 0.000 0.360
#> SRR1313991 1 0.0000 0.83813 1.000 0.000 0.000 0.000
#> SRR1363718 2 0.0336 0.71866 0.000 0.992 0.000 0.008
#> SRR1381372 4 0.4539 0.26857 0.000 0.272 0.008 0.720
#> SRR1388257 4 0.5090 0.15374 0.004 0.312 0.012 0.672
#> SRR818139 1 0.0336 0.83609 0.992 0.000 0.000 0.008
#> SRR1078188 2 0.0000 0.71859 0.000 1.000 0.000 0.000
#> SRR1080342 2 0.0336 0.71866 0.000 0.992 0.000 0.008
#> SRR1085358 4 0.6770 0.20237 0.000 0.408 0.096 0.496
#> SRR1473482 1 0.4804 0.64280 0.708 0.000 0.016 0.276
#> SRR1452674 1 0.0000 0.83813 1.000 0.000 0.000 0.000
#> SRR1395874 3 0.3828 0.81255 0.068 0.000 0.848 0.084
#> SRR1382780 1 0.5964 0.63135 0.676 0.000 0.228 0.096
#> SRR1361138 2 0.3486 0.62248 0.000 0.812 0.000 0.188
#> SRR1319242 2 0.2926 0.66555 0.000 0.896 0.056 0.048
#> SRR1084553 2 0.0000 0.71859 0.000 1.000 0.000 0.000
#> SRR1498747 3 0.5292 0.71483 0.064 0.000 0.728 0.208
#> SRR1442213 3 0.3312 0.83135 0.052 0.000 0.876 0.072
#> SRR1343943 2 0.0000 0.71859 0.000 1.000 0.000 0.000
#> SRR1458828 2 0.0188 0.71779 0.000 0.996 0.000 0.004
#> SRR1360280 2 0.4331 0.43351 0.000 0.712 0.000 0.288
#> SRR1474208 3 0.0779 0.86337 0.016 0.000 0.980 0.004
#> SRR1498726 3 0.3048 0.80186 0.000 0.016 0.876 0.108
#> SRR1099857 1 0.6234 0.50118 0.584 0.000 0.068 0.348
#> SRR1329423 4 0.5318 0.02998 0.004 0.360 0.012 0.624
#> SRR1074430 2 0.1022 0.71309 0.000 0.968 0.000 0.032
#> SRR1485848 2 0.7250 0.13459 0.004 0.496 0.132 0.368
#> SRR1471395 2 0.6644 0.20569 0.004 0.532 0.076 0.388
#> SRR1096198 3 0.5326 0.71473 0.040 0.024 0.756 0.180
#> SRR1323234 1 0.4535 0.68151 0.744 0.000 0.016 0.240
#> SRR1073483 2 0.3172 0.63602 0.000 0.840 0.000 0.160
#> SRR817817 4 0.7375 -0.04981 0.004 0.404 0.140 0.452
#> SRR1434070 3 0.1396 0.84685 0.004 0.032 0.960 0.004
#> SRR1100941 3 0.0779 0.86337 0.016 0.000 0.980 0.004
#> SRR1336682 1 0.0188 0.83651 0.996 0.000 0.000 0.004
#> SRR1077211 2 0.2973 0.62561 0.000 0.856 0.000 0.144
#> SRR1389454 1 0.0188 0.83709 0.996 0.000 0.000 0.004
#> SRR1393004 1 0.0000 0.83813 1.000 0.000 0.000 0.000
#> SRR1086369 4 0.4916 0.12127 0.000 0.424 0.000 0.576
#> SRR1447192 1 0.0000 0.83813 1.000 0.000 0.000 0.000
#> SRR1459147 1 0.5339 0.34355 0.600 0.000 0.016 0.384
#> SRR1097929 3 0.3247 0.82871 0.060 0.000 0.880 0.060
#> SRR1075850 3 0.6167 0.56502 0.000 0.100 0.652 0.248
#> SRR1358126 1 0.1474 0.81330 0.948 0.000 0.000 0.052
#> SRR1121009 1 0.5383 0.57356 0.672 0.000 0.292 0.036
#> SRR1321720 4 0.7349 0.00646 0.392 0.104 0.016 0.488
#> SRR810105 4 0.8414 0.10057 0.332 0.128 0.068 0.472
#> SRR1489007 2 0.3444 0.62552 0.000 0.816 0.000 0.184
#> SRR1361838 2 0.6644 0.20569 0.004 0.532 0.076 0.388
#> SRR1475086 2 0.1302 0.70803 0.000 0.956 0.000 0.044
#> SRR1468226 2 0.1716 0.69865 0.000 0.936 0.000 0.064
#> SRR1069466 2 0.1118 0.71384 0.000 0.964 0.000 0.036
#> SRR1078114 3 0.2861 0.82529 0.016 0.000 0.888 0.096
#> SRR1319991 2 0.5070 0.37414 0.000 0.620 0.008 0.372
#> SRR1374543 1 0.3444 0.73920 0.816 0.000 0.000 0.184
#> SRR1383237 4 0.5630 -0.10533 0.004 0.432 0.016 0.548
#> SRR1486215 1 0.0817 0.82888 0.976 0.000 0.000 0.024
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.3278 0.7494 0.028 0.000 0.860 0.020 0.092
#> SRR1499584 2 0.0000 0.8486 0.000 1.000 0.000 0.000 0.000
#> SRR815256 2 0.3110 0.7739 0.000 0.860 0.000 0.060 0.080
#> SRR1077996 2 0.0000 0.8486 0.000 1.000 0.000 0.000 0.000
#> SRR1338468 5 0.5243 0.4613 0.328 0.000 0.040 0.012 0.620
#> SRR1394428 2 0.5807 0.2483 0.000 0.484 0.000 0.092 0.424
#> SRR1431104 4 0.3924 0.6344 0.000 0.120 0.004 0.808 0.068
#> SRR1082128 5 0.4743 0.5306 0.000 0.112 0.000 0.156 0.732
#> SRR1078212 3 0.0000 0.8255 0.000 0.000 1.000 0.000 0.000
#> SRR1458401 5 0.3593 0.6840 0.096 0.052 0.000 0.012 0.840
#> SRR1447281 1 0.0703 0.8608 0.976 0.000 0.000 0.000 0.024
#> SRR1339258 4 0.5053 0.5829 0.000 0.216 0.000 0.688 0.096
#> SRR1105106 4 0.5640 0.4297 0.000 0.304 0.000 0.592 0.104
#> SRR1105130 2 0.0162 0.8487 0.000 0.996 0.000 0.000 0.004
#> SRR1419039 1 0.0162 0.8532 0.996 0.000 0.000 0.004 0.000
#> SRR1079213 3 0.0000 0.8255 0.000 0.000 1.000 0.000 0.000
#> SRR1309745 2 0.1522 0.8382 0.000 0.944 0.000 0.044 0.012
#> SRR1079408 1 0.7060 0.2269 0.456 0.000 0.284 0.020 0.240
#> SRR1445550 4 0.5852 0.6226 0.000 0.272 0.064 0.628 0.036
#> SRR820026 5 0.6847 0.4300 0.000 0.164 0.264 0.036 0.536
#> SRR1353686 5 0.5968 0.3341 0.036 0.000 0.064 0.296 0.604
#> SRR1475466 1 0.0703 0.8608 0.976 0.000 0.000 0.000 0.024
#> SRR1096315 3 0.0000 0.8255 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 5 0.3396 0.6699 0.156 0.012 0.004 0.004 0.824
#> SRR1479450 4 0.6633 0.2421 0.060 0.052 0.008 0.524 0.356
#> SRR1094097 1 0.0703 0.8608 0.976 0.000 0.000 0.000 0.024
#> SRR1071737 2 0.0162 0.8475 0.000 0.996 0.000 0.000 0.004
#> SRR1433989 1 0.0703 0.8608 0.976 0.000 0.000 0.000 0.024
#> SRR1077159 5 0.4278 0.6208 0.000 0.100 0.028 0.068 0.804
#> SRR1330082 1 0.0162 0.8532 0.996 0.000 0.000 0.004 0.000
#> SRR1079874 4 0.6307 0.6228 0.000 0.264 0.104 0.596 0.036
#> SRR1387132 2 0.4591 0.7030 0.000 0.748 0.000 0.132 0.120
#> SRR1095261 3 0.0693 0.8238 0.000 0.000 0.980 0.012 0.008
#> SRR818646 2 0.6450 0.3752 0.000 0.492 0.000 0.212 0.296
#> SRR1313991 1 0.0703 0.8608 0.976 0.000 0.000 0.000 0.024
#> SRR1363718 2 0.0000 0.8486 0.000 1.000 0.000 0.000 0.000
#> SRR1381372 4 0.6261 0.1446 0.020 0.088 0.000 0.492 0.400
#> SRR1388257 4 0.5579 0.3252 0.000 0.100 0.000 0.600 0.300
#> SRR818139 1 0.0162 0.8532 0.996 0.000 0.000 0.004 0.000
#> SRR1078188 2 0.0162 0.8475 0.000 0.996 0.000 0.000 0.004
#> SRR1080342 2 0.0000 0.8486 0.000 1.000 0.000 0.000 0.000
#> SRR1085358 5 0.4444 0.5692 0.000 0.176 0.004 0.064 0.756
#> SRR1473482 5 0.4118 0.4785 0.336 0.000 0.000 0.004 0.660
#> SRR1452674 1 0.0703 0.8608 0.976 0.000 0.000 0.000 0.024
#> SRR1395874 3 0.4920 0.5580 0.036 0.000 0.700 0.020 0.244
#> SRR1382780 1 0.7060 0.2269 0.456 0.000 0.284 0.020 0.240
#> SRR1361138 2 0.4588 0.7034 0.000 0.748 0.000 0.116 0.136
#> SRR1319242 2 0.1493 0.8366 0.000 0.948 0.000 0.024 0.028
#> SRR1084553 2 0.0000 0.8486 0.000 1.000 0.000 0.000 0.000
#> SRR1498747 5 0.5321 0.2276 0.028 0.000 0.392 0.016 0.564
#> SRR1442213 3 0.4332 0.7134 0.016 0.000 0.788 0.064 0.132
#> SRR1343943 2 0.0000 0.8486 0.000 1.000 0.000 0.000 0.000
#> SRR1458828 2 0.0162 0.8475 0.000 0.996 0.000 0.000 0.004
#> SRR1360280 2 0.5680 0.5614 0.000 0.624 0.000 0.148 0.228
#> SRR1474208 3 0.0693 0.8238 0.000 0.000 0.980 0.012 0.008
#> SRR1498726 3 0.5850 0.1767 0.000 0.012 0.544 0.372 0.072
#> SRR1099857 5 0.3647 0.6139 0.228 0.000 0.004 0.004 0.764
#> SRR1329423 4 0.3354 0.6234 0.000 0.088 0.000 0.844 0.068
#> SRR1074430 2 0.1082 0.8435 0.000 0.964 0.000 0.028 0.008
#> SRR1485848 4 0.6646 0.5931 0.000 0.224 0.156 0.580 0.040
#> SRR1471395 4 0.6174 0.6129 0.000 0.284 0.084 0.596 0.036
#> SRR1096198 4 0.6940 0.0335 0.008 0.020 0.404 0.432 0.136
#> SRR1323234 5 0.4101 0.4097 0.372 0.000 0.000 0.000 0.628
#> SRR1073483 2 0.3454 0.7790 0.000 0.836 0.000 0.064 0.100
#> SRR817817 4 0.5002 0.5606 0.000 0.084 0.160 0.736 0.020
#> SRR1434070 3 0.0968 0.8199 0.000 0.004 0.972 0.012 0.012
#> SRR1100941 3 0.0693 0.8238 0.000 0.000 0.980 0.012 0.008
#> SRR1336682 1 0.0609 0.8599 0.980 0.000 0.000 0.000 0.020
#> SRR1077211 2 0.4430 0.6820 0.000 0.752 0.000 0.076 0.172
#> SRR1389454 1 0.0000 0.8542 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0703 0.8608 0.976 0.000 0.000 0.000 0.024
#> SRR1086369 5 0.5987 0.3086 0.000 0.180 0.000 0.236 0.584
#> SRR1447192 1 0.0703 0.8608 0.976 0.000 0.000 0.000 0.024
#> SRR1459147 4 0.6114 0.0175 0.400 0.000 0.000 0.472 0.128
#> SRR1097929 3 0.3694 0.7175 0.024 0.000 0.824 0.020 0.132
#> SRR1075850 5 0.6208 0.3813 0.000 0.104 0.336 0.016 0.544
#> SRR1358126 1 0.2067 0.8076 0.920 0.000 0.000 0.048 0.032
#> SRR1121009 1 0.6324 0.2946 0.516 0.000 0.364 0.020 0.100
#> SRR1321720 5 0.3756 0.6794 0.096 0.032 0.000 0.036 0.836
#> SRR810105 5 0.3355 0.6821 0.084 0.048 0.000 0.012 0.856
#> SRR1489007 2 0.4496 0.6952 0.000 0.752 0.000 0.156 0.092
#> SRR1361838 4 0.6174 0.6129 0.000 0.284 0.084 0.596 0.036
#> SRR1475086 2 0.2189 0.7879 0.000 0.904 0.000 0.084 0.012
#> SRR1468226 2 0.1830 0.8242 0.000 0.924 0.000 0.068 0.008
#> SRR1069466 2 0.1364 0.8405 0.000 0.952 0.000 0.036 0.012
#> SRR1078114 3 0.4800 0.2954 0.000 0.000 0.604 0.368 0.028
#> SRR1319991 4 0.5053 0.5047 0.000 0.324 0.000 0.624 0.052
#> SRR1374543 1 0.4101 0.3389 0.628 0.000 0.000 0.000 0.372
#> SRR1383237 4 0.3459 0.6221 0.000 0.116 0.000 0.832 0.052
#> SRR1486215 1 0.2067 0.8076 0.920 0.000 0.000 0.048 0.032
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.4586 0.7555 0.008 0.000 0.768 0.072 0.084 0.068
#> SRR1499584 2 0.0865 0.8258 0.000 0.964 0.000 0.036 0.000 0.000
#> SRR815256 2 0.3210 0.7534 0.000 0.840 0.000 0.020 0.032 0.108
#> SRR1077996 2 0.0865 0.8258 0.000 0.964 0.000 0.036 0.000 0.000
#> SRR1338468 5 0.3733 0.6731 0.156 0.000 0.016 0.020 0.796 0.012
#> SRR1394428 5 0.6689 0.1142 0.000 0.328 0.000 0.060 0.440 0.172
#> SRR1431104 4 0.3099 0.7028 0.000 0.060 0.000 0.848 0.008 0.084
#> SRR1082128 5 0.5117 0.5295 0.000 0.040 0.000 0.096 0.688 0.176
#> SRR1078212 3 0.0146 0.8570 0.000 0.000 0.996 0.004 0.000 0.000
#> SRR1458401 5 0.1338 0.7378 0.032 0.004 0.000 0.004 0.952 0.008
#> SRR1447281 1 0.0000 0.8262 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1339258 6 0.5228 0.4519 0.000 0.120 0.000 0.308 0.000 0.572
#> SRR1105106 6 0.4979 0.6344 0.000 0.156 0.000 0.164 0.008 0.672
#> SRR1105130 2 0.0146 0.8282 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1419039 1 0.0891 0.8169 0.968 0.000 0.000 0.008 0.000 0.024
#> SRR1079213 3 0.0146 0.8570 0.000 0.000 0.996 0.004 0.000 0.000
#> SRR1309745 2 0.2070 0.8085 0.000 0.908 0.000 0.048 0.000 0.044
#> SRR1079408 1 0.8176 0.0199 0.336 0.000 0.244 0.080 0.260 0.080
#> SRR1445550 4 0.3219 0.7496 0.000 0.148 0.012 0.820 0.000 0.020
#> SRR820026 5 0.6470 0.5407 0.000 0.152 0.116 0.040 0.616 0.076
#> SRR1353686 5 0.4438 0.5304 0.012 0.000 0.024 0.272 0.684 0.008
#> SRR1475466 1 0.0000 0.8262 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0146 0.8570 0.000 0.000 0.996 0.004 0.000 0.000
#> SRR1479826 5 0.1780 0.7331 0.036 0.000 0.004 0.004 0.932 0.024
#> SRR1479450 4 0.4315 0.6026 0.028 0.024 0.004 0.744 0.196 0.004
#> SRR1094097 1 0.0146 0.8259 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1071737 2 0.1464 0.8231 0.000 0.944 0.000 0.036 0.004 0.016
#> SRR1433989 1 0.0146 0.8259 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1077159 5 0.2928 0.7051 0.000 0.028 0.004 0.028 0.872 0.068
#> SRR1330082 1 0.0891 0.8169 0.968 0.000 0.000 0.008 0.000 0.024
#> SRR1079874 4 0.3603 0.7622 0.000 0.124 0.056 0.808 0.000 0.012
#> SRR1387132 2 0.5468 0.6350 0.000 0.672 0.000 0.148 0.072 0.108
#> SRR1095261 3 0.0713 0.8519 0.000 0.000 0.972 0.028 0.000 0.000
#> SRR818646 2 0.7274 0.2278 0.000 0.420 0.000 0.144 0.188 0.248
#> SRR1313991 1 0.0146 0.8259 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1363718 2 0.0632 0.8286 0.000 0.976 0.000 0.024 0.000 0.000
#> SRR1381372 6 0.3089 0.6748 0.000 0.020 0.000 0.028 0.104 0.848
#> SRR1388257 6 0.4009 0.6953 0.000 0.024 0.000 0.112 0.076 0.788
#> SRR818139 1 0.0891 0.8169 0.968 0.000 0.000 0.008 0.000 0.024
#> SRR1078188 2 0.1464 0.8231 0.000 0.944 0.000 0.036 0.004 0.016
#> SRR1080342 2 0.0547 0.8286 0.000 0.980 0.000 0.020 0.000 0.000
#> SRR1085358 5 0.3532 0.6856 0.000 0.056 0.004 0.032 0.836 0.072
#> SRR1473482 5 0.2878 0.6866 0.160 0.000 0.004 0.004 0.828 0.004
#> SRR1452674 1 0.0000 0.8262 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1395874 3 0.6058 0.5315 0.008 0.000 0.572 0.080 0.280 0.060
#> SRR1382780 1 0.8176 0.0199 0.336 0.000 0.244 0.080 0.260 0.080
#> SRR1361138 2 0.5627 0.6223 0.000 0.660 0.000 0.144 0.092 0.104
#> SRR1319242 2 0.2484 0.8148 0.000 0.896 0.000 0.036 0.024 0.044
#> SRR1084553 2 0.0865 0.8258 0.000 0.964 0.000 0.036 0.000 0.000
#> SRR1498747 5 0.4009 0.6427 0.004 0.000 0.128 0.040 0.792 0.036
#> SRR1442213 3 0.5222 0.6826 0.000 0.000 0.676 0.060 0.068 0.196
#> SRR1343943 2 0.0777 0.8283 0.000 0.972 0.000 0.024 0.000 0.004
#> SRR1458828 2 0.1503 0.8226 0.000 0.944 0.000 0.032 0.008 0.016
#> SRR1360280 2 0.6072 0.4420 0.000 0.560 0.000 0.048 0.132 0.260
#> SRR1474208 3 0.0632 0.8535 0.000 0.000 0.976 0.024 0.000 0.000
#> SRR1498726 4 0.3884 0.6395 0.000 0.004 0.272 0.708 0.012 0.004
#> SRR1099857 5 0.2245 0.7237 0.068 0.000 0.004 0.012 0.904 0.012
#> SRR1329423 4 0.4025 0.6091 0.000 0.052 0.000 0.760 0.012 0.176
#> SRR1074430 2 0.1080 0.8211 0.000 0.960 0.000 0.032 0.004 0.004
#> SRR1485848 4 0.3960 0.7534 0.000 0.104 0.100 0.784 0.000 0.012
#> SRR1471395 4 0.3375 0.7512 0.000 0.156 0.024 0.808 0.000 0.012
#> SRR1096198 4 0.4347 0.6807 0.000 0.008 0.176 0.744 0.064 0.008
#> SRR1323234 5 0.3087 0.6679 0.184 0.000 0.004 0.004 0.804 0.004
#> SRR1073483 2 0.4373 0.7213 0.000 0.772 0.000 0.064 0.068 0.096
#> SRR817817 4 0.4249 0.7357 0.000 0.056 0.100 0.780 0.000 0.064
#> SRR1434070 3 0.0790 0.8488 0.000 0.000 0.968 0.032 0.000 0.000
#> SRR1100941 3 0.0713 0.8519 0.000 0.000 0.972 0.028 0.000 0.000
#> SRR1336682 1 0.0000 0.8262 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.5126 0.5723 0.000 0.660 0.000 0.024 0.092 0.224
#> SRR1389454 1 0.0146 0.8253 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1393004 1 0.0000 0.8262 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1086369 5 0.5975 0.2008 0.000 0.052 0.000 0.084 0.516 0.348
#> SRR1447192 1 0.0000 0.8262 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1459147 6 0.4436 0.5341 0.208 0.000 0.000 0.064 0.012 0.716
#> SRR1097929 3 0.4567 0.7428 0.000 0.000 0.752 0.076 0.120 0.052
#> SRR1075850 5 0.5624 0.5682 0.000 0.064 0.220 0.036 0.652 0.028
#> SRR1358126 1 0.3419 0.6872 0.792 0.000 0.000 0.016 0.012 0.180
#> SRR1121009 1 0.7591 0.0333 0.416 0.000 0.328 0.084 0.092 0.080
#> SRR1321720 5 0.2177 0.7291 0.032 0.000 0.000 0.008 0.908 0.052
#> SRR810105 5 0.0777 0.7370 0.024 0.004 0.000 0.000 0.972 0.000
#> SRR1489007 2 0.5375 0.6386 0.000 0.664 0.000 0.196 0.064 0.076
#> SRR1361838 4 0.3375 0.7512 0.000 0.156 0.024 0.808 0.000 0.012
#> SRR1475086 2 0.2520 0.7582 0.000 0.844 0.000 0.152 0.000 0.004
#> SRR1468226 2 0.2637 0.7780 0.000 0.872 0.000 0.024 0.008 0.096
#> SRR1069466 2 0.2213 0.8095 0.000 0.904 0.000 0.048 0.004 0.044
#> SRR1078114 4 0.3753 0.6251 0.000 0.004 0.292 0.696 0.000 0.008
#> SRR1319991 4 0.3925 0.6126 0.000 0.168 0.000 0.764 0.004 0.064
#> SRR1374543 1 0.4269 0.2606 0.580 0.000 0.004 0.008 0.404 0.004
#> SRR1383237 4 0.4775 0.2595 0.000 0.064 0.000 0.588 0.000 0.348
#> SRR1486215 1 0.3419 0.6872 0.792 0.000 0.000 0.016 0.012 0.180
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["SD", "skmeans"]
# you can also extract it by
# res = res_list["SD:skmeans"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'SD' method.
#> Subgroups are detected by 'skmeans' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.910 0.952 0.979 0.5054 0.495 0.495
#> 3 3 0.850 0.838 0.929 0.2865 0.810 0.633
#> 4 4 0.752 0.827 0.894 0.1295 0.890 0.698
#> 5 5 0.794 0.734 0.874 0.0773 0.905 0.664
#> 6 6 0.788 0.699 0.850 0.0439 0.935 0.706
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.985 1.000 0.000
#> SRR1499584 2 0.0000 0.972 0.000 1.000
#> SRR815256 2 0.0000 0.972 0.000 1.000
#> SRR1077996 2 0.0000 0.972 0.000 1.000
#> SRR1338468 1 0.0000 0.985 1.000 0.000
#> SRR1394428 2 0.0000 0.972 0.000 1.000
#> SRR1431104 2 0.0000 0.972 0.000 1.000
#> SRR1082128 2 0.0000 0.972 0.000 1.000
#> SRR1078212 1 0.0000 0.985 1.000 0.000
#> SRR1458401 1 0.7219 0.756 0.800 0.200
#> SRR1447281 1 0.0000 0.985 1.000 0.000
#> SRR1339258 2 0.0000 0.972 0.000 1.000
#> SRR1105106 2 0.0000 0.972 0.000 1.000
#> SRR1105130 2 0.0000 0.972 0.000 1.000
#> SRR1419039 1 0.0000 0.985 1.000 0.000
#> SRR1079213 1 0.0000 0.985 1.000 0.000
#> SRR1309745 2 0.0000 0.972 0.000 1.000
#> SRR1079408 1 0.0000 0.985 1.000 0.000
#> SRR1445550 2 0.0000 0.972 0.000 1.000
#> SRR820026 2 0.6247 0.814 0.156 0.844
#> SRR1353686 1 0.0000 0.985 1.000 0.000
#> SRR1475466 1 0.0000 0.985 1.000 0.000
#> SRR1096315 1 0.0000 0.985 1.000 0.000
#> SRR1479826 1 0.0000 0.985 1.000 0.000
#> SRR1479450 1 0.7219 0.756 0.800 0.200
#> SRR1094097 1 0.0000 0.985 1.000 0.000
#> SRR1071737 2 0.0000 0.972 0.000 1.000
#> SRR1433989 1 0.0000 0.985 1.000 0.000
#> SRR1077159 2 0.9710 0.372 0.400 0.600
#> SRR1330082 1 0.0000 0.985 1.000 0.000
#> SRR1079874 2 0.0000 0.972 0.000 1.000
#> SRR1387132 2 0.0000 0.972 0.000 1.000
#> SRR1095261 1 0.1184 0.971 0.984 0.016
#> SRR818646 2 0.0000 0.972 0.000 1.000
#> SRR1313991 1 0.0000 0.985 1.000 0.000
#> SRR1363718 2 0.0000 0.972 0.000 1.000
#> SRR1381372 2 0.0000 0.972 0.000 1.000
#> SRR1388257 2 0.0000 0.972 0.000 1.000
#> SRR818139 1 0.0000 0.985 1.000 0.000
#> SRR1078188 2 0.0000 0.972 0.000 1.000
#> SRR1080342 2 0.0000 0.972 0.000 1.000
#> SRR1085358 2 0.0672 0.965 0.008 0.992
#> SRR1473482 1 0.0000 0.985 1.000 0.000
#> SRR1452674 1 0.0000 0.985 1.000 0.000
#> SRR1395874 1 0.0000 0.985 1.000 0.000
#> SRR1382780 1 0.0000 0.985 1.000 0.000
#> SRR1361138 2 0.0000 0.972 0.000 1.000
#> SRR1319242 2 0.0000 0.972 0.000 1.000
#> SRR1084553 2 0.0000 0.972 0.000 1.000
#> SRR1498747 1 0.0000 0.985 1.000 0.000
#> SRR1442213 1 0.0000 0.985 1.000 0.000
#> SRR1343943 2 0.0000 0.972 0.000 1.000
#> SRR1458828 2 0.0000 0.972 0.000 1.000
#> SRR1360280 2 0.0000 0.972 0.000 1.000
#> SRR1474208 1 0.1414 0.968 0.980 0.020
#> SRR1498726 2 0.6247 0.814 0.156 0.844
#> SRR1099857 1 0.0000 0.985 1.000 0.000
#> SRR1329423 2 0.0000 0.972 0.000 1.000
#> SRR1074430 2 0.0000 0.972 0.000 1.000
#> SRR1485848 2 0.0000 0.972 0.000 1.000
#> SRR1471395 2 0.0000 0.972 0.000 1.000
#> SRR1096198 1 0.0000 0.985 1.000 0.000
#> SRR1323234 1 0.0000 0.985 1.000 0.000
#> SRR1073483 2 0.0000 0.972 0.000 1.000
#> SRR817817 2 0.0000 0.972 0.000 1.000
#> SRR1434070 2 0.6247 0.814 0.156 0.844
#> SRR1100941 1 0.1414 0.968 0.980 0.020
#> SRR1336682 1 0.0000 0.985 1.000 0.000
#> SRR1077211 2 0.0000 0.972 0.000 1.000
#> SRR1389454 1 0.0000 0.985 1.000 0.000
#> SRR1393004 1 0.0000 0.985 1.000 0.000
#> SRR1086369 2 0.0000 0.972 0.000 1.000
#> SRR1447192 1 0.0000 0.985 1.000 0.000
#> SRR1459147 1 0.0000 0.985 1.000 0.000
#> SRR1097929 1 0.0000 0.985 1.000 0.000
#> SRR1075850 2 0.9710 0.372 0.400 0.600
#> SRR1358126 1 0.0000 0.985 1.000 0.000
#> SRR1121009 1 0.0000 0.985 1.000 0.000
#> SRR1321720 1 0.6247 0.815 0.844 0.156
#> SRR810105 1 0.0000 0.985 1.000 0.000
#> SRR1489007 2 0.0000 0.972 0.000 1.000
#> SRR1361838 2 0.0000 0.972 0.000 1.000
#> SRR1475086 2 0.0000 0.972 0.000 1.000
#> SRR1468226 2 0.0000 0.972 0.000 1.000
#> SRR1069466 2 0.0000 0.972 0.000 1.000
#> SRR1078114 1 0.0000 0.985 1.000 0.000
#> SRR1319991 2 0.0000 0.972 0.000 1.000
#> SRR1374543 1 0.0000 0.985 1.000 0.000
#> SRR1383237 2 0.0000 0.972 0.000 1.000
#> SRR1486215 1 0.0000 0.985 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.6026 0.461 0.376 0.000 0.624
#> SRR1499584 2 0.0000 0.933 0.000 1.000 0.000
#> SRR815256 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1077996 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1338468 1 0.2165 0.914 0.936 0.000 0.064
#> SRR1394428 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1431104 2 0.0424 0.927 0.008 0.992 0.000
#> SRR1082128 2 0.2066 0.873 0.060 0.940 0.000
#> SRR1078212 3 0.0000 0.812 0.000 0.000 1.000
#> SRR1458401 1 0.1399 0.934 0.968 0.028 0.004
#> SRR1447281 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1339258 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1105106 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1105130 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1419039 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1079213 3 0.0000 0.812 0.000 0.000 1.000
#> SRR1309745 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1079408 1 0.2261 0.910 0.932 0.000 0.068
#> SRR1445550 2 0.6205 0.545 0.008 0.656 0.336
#> SRR820026 3 0.0237 0.811 0.000 0.004 0.996
#> SRR1353686 1 0.5988 0.359 0.632 0.000 0.368
#> SRR1475466 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1096315 3 0.0000 0.812 0.000 0.000 1.000
#> SRR1479826 1 0.0747 0.950 0.984 0.000 0.016
#> SRR1479450 1 0.4452 0.701 0.808 0.192 0.000
#> SRR1094097 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1071737 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1433989 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1077159 3 0.6026 0.438 0.000 0.376 0.624
#> SRR1330082 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1079874 2 0.6416 0.483 0.008 0.616 0.376
#> SRR1387132 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1095261 3 0.0000 0.812 0.000 0.000 1.000
#> SRR818646 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1313991 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1363718 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1381372 2 0.0237 0.930 0.004 0.996 0.000
#> SRR1388257 2 0.0237 0.930 0.004 0.996 0.000
#> SRR818139 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1078188 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1080342 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1085358 3 0.6026 0.438 0.000 0.376 0.624
#> SRR1473482 1 0.0424 0.954 0.992 0.000 0.008
#> SRR1452674 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1395874 3 0.6062 0.445 0.384 0.000 0.616
#> SRR1382780 1 0.2261 0.910 0.932 0.000 0.068
#> SRR1361138 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1319242 3 0.6062 0.423 0.000 0.384 0.616
#> SRR1084553 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1498747 3 0.6026 0.461 0.376 0.000 0.624
#> SRR1442213 3 0.6026 0.461 0.376 0.000 0.624
#> SRR1343943 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1458828 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1360280 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1474208 3 0.0000 0.812 0.000 0.000 1.000
#> SRR1498726 3 0.0000 0.812 0.000 0.000 1.000
#> SRR1099857 1 0.0592 0.952 0.988 0.000 0.012
#> SRR1329423 2 0.0424 0.927 0.008 0.992 0.000
#> SRR1074430 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1485848 2 0.6416 0.483 0.008 0.616 0.376
#> SRR1471395 2 0.6416 0.483 0.008 0.616 0.376
#> SRR1096198 3 0.0747 0.804 0.016 0.000 0.984
#> SRR1323234 1 0.0424 0.954 0.992 0.000 0.008
#> SRR1073483 2 0.0000 0.933 0.000 1.000 0.000
#> SRR817817 2 0.6416 0.483 0.008 0.616 0.376
#> SRR1434070 3 0.0000 0.812 0.000 0.000 1.000
#> SRR1100941 3 0.0000 0.812 0.000 0.000 1.000
#> SRR1336682 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1077211 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1389454 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1393004 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1086369 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1447192 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1459147 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1097929 3 0.6026 0.461 0.376 0.000 0.624
#> SRR1075850 3 0.0000 0.812 0.000 0.000 1.000
#> SRR1358126 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1121009 1 0.2448 0.902 0.924 0.000 0.076
#> SRR1321720 1 0.0424 0.952 0.992 0.008 0.000
#> SRR810105 1 0.2959 0.875 0.900 0.000 0.100
#> SRR1489007 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1361838 2 0.6416 0.483 0.008 0.616 0.376
#> SRR1475086 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1468226 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1069466 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1078114 3 0.0237 0.810 0.004 0.000 0.996
#> SRR1319991 2 0.0000 0.933 0.000 1.000 0.000
#> SRR1374543 1 0.0000 0.957 1.000 0.000 0.000
#> SRR1383237 2 0.0424 0.927 0.008 0.992 0.000
#> SRR1486215 1 0.0000 0.957 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.1913 0.887 0.020 0.000 0.940 0.040
#> SRR1499584 2 0.0921 0.906 0.000 0.972 0.000 0.028
#> SRR815256 2 0.2281 0.881 0.000 0.904 0.000 0.096
#> SRR1077996 2 0.0921 0.906 0.000 0.972 0.000 0.028
#> SRR1338468 1 0.3383 0.857 0.872 0.000 0.076 0.052
#> SRR1394428 2 0.2469 0.855 0.000 0.892 0.000 0.108
#> SRR1431104 4 0.3486 0.831 0.000 0.188 0.000 0.812
#> SRR1082128 2 0.2760 0.845 0.000 0.872 0.000 0.128
#> SRR1078212 3 0.0000 0.905 0.000 0.000 1.000 0.000
#> SRR1458401 1 0.5913 0.664 0.696 0.180 0.000 0.124
#> SRR1447281 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1339258 4 0.4331 0.766 0.000 0.288 0.000 0.712
#> SRR1105106 4 0.4967 0.492 0.000 0.452 0.000 0.548
#> SRR1105130 2 0.0921 0.906 0.000 0.972 0.000 0.028
#> SRR1419039 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.905 0.000 0.000 1.000 0.000
#> SRR1309745 2 0.0188 0.904 0.000 0.996 0.000 0.004
#> SRR1079408 1 0.3877 0.827 0.840 0.000 0.112 0.048
#> SRR1445550 4 0.3999 0.834 0.000 0.140 0.036 0.824
#> SRR820026 3 0.1888 0.870 0.000 0.044 0.940 0.016
#> SRR1353686 1 0.4150 0.784 0.824 0.000 0.056 0.120
#> SRR1475466 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.905 0.000 0.000 1.000 0.000
#> SRR1479826 1 0.3051 0.870 0.884 0.000 0.028 0.088
#> SRR1479450 1 0.5695 0.113 0.500 0.024 0.000 0.476
#> SRR1094097 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.0921 0.906 0.000 0.972 0.000 0.028
#> SRR1433989 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1077159 3 0.6808 0.492 0.000 0.236 0.600 0.164
#> SRR1330082 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1079874 4 0.4203 0.825 0.000 0.108 0.068 0.824
#> SRR1387132 2 0.0188 0.904 0.000 0.996 0.000 0.004
#> SRR1095261 3 0.0000 0.905 0.000 0.000 1.000 0.000
#> SRR818646 2 0.2647 0.851 0.000 0.880 0.000 0.120
#> SRR1313991 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1363718 2 0.0921 0.906 0.000 0.972 0.000 0.028
#> SRR1381372 2 0.3105 0.837 0.004 0.856 0.000 0.140
#> SRR1388257 4 0.4776 0.455 0.000 0.376 0.000 0.624
#> SRR818139 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1078188 2 0.0921 0.906 0.000 0.972 0.000 0.028
#> SRR1080342 2 0.0921 0.906 0.000 0.972 0.000 0.028
#> SRR1085358 2 0.7045 0.374 0.000 0.544 0.308 0.148
#> SRR1473482 1 0.1867 0.886 0.928 0.000 0.000 0.072
#> SRR1452674 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1395874 3 0.3840 0.803 0.104 0.000 0.844 0.052
#> SRR1382780 1 0.3877 0.827 0.840 0.000 0.112 0.048
#> SRR1361138 2 0.0817 0.901 0.000 0.976 0.000 0.024
#> SRR1319242 2 0.5038 0.482 0.000 0.652 0.336 0.012
#> SRR1084553 2 0.0921 0.906 0.000 0.972 0.000 0.028
#> SRR1498747 3 0.2060 0.882 0.016 0.000 0.932 0.052
#> SRR1442213 3 0.1975 0.884 0.016 0.000 0.936 0.048
#> SRR1343943 2 0.0921 0.906 0.000 0.972 0.000 0.028
#> SRR1458828 2 0.0921 0.906 0.000 0.972 0.000 0.028
#> SRR1360280 2 0.2469 0.856 0.000 0.892 0.000 0.108
#> SRR1474208 3 0.0000 0.905 0.000 0.000 1.000 0.000
#> SRR1498726 3 0.0188 0.903 0.000 0.000 0.996 0.004
#> SRR1099857 1 0.2053 0.885 0.924 0.000 0.004 0.072
#> SRR1329423 4 0.4188 0.817 0.040 0.148 0.000 0.812
#> SRR1074430 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1485848 4 0.4203 0.825 0.000 0.108 0.068 0.824
#> SRR1471395 4 0.4188 0.827 0.000 0.112 0.064 0.824
#> SRR1096198 3 0.4844 0.565 0.012 0.000 0.688 0.300
#> SRR1323234 1 0.1557 0.890 0.944 0.000 0.000 0.056
#> SRR1073483 2 0.0592 0.903 0.000 0.984 0.000 0.016
#> SRR817817 4 0.4215 0.821 0.000 0.104 0.072 0.824
#> SRR1434070 3 0.0000 0.905 0.000 0.000 1.000 0.000
#> SRR1100941 3 0.0000 0.905 0.000 0.000 1.000 0.000
#> SRR1336682 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1077211 2 0.2647 0.868 0.000 0.880 0.000 0.120
#> SRR1389454 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1086369 2 0.2704 0.848 0.000 0.876 0.000 0.124
#> SRR1447192 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1459147 1 0.4679 0.437 0.648 0.000 0.000 0.352
#> SRR1097929 3 0.1938 0.884 0.012 0.000 0.936 0.052
#> SRR1075850 3 0.0469 0.903 0.000 0.000 0.988 0.012
#> SRR1358126 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1121009 1 0.3300 0.814 0.848 0.000 0.144 0.008
#> SRR1321720 1 0.3306 0.834 0.840 0.004 0.000 0.156
#> SRR810105 1 0.6747 0.627 0.656 0.172 0.016 0.156
#> SRR1489007 2 0.0188 0.904 0.000 0.996 0.000 0.004
#> SRR1361838 4 0.4188 0.827 0.000 0.112 0.064 0.824
#> SRR1475086 2 0.0921 0.906 0.000 0.972 0.000 0.028
#> SRR1468226 2 0.0188 0.905 0.000 0.996 0.000 0.004
#> SRR1069466 2 0.0592 0.906 0.000 0.984 0.000 0.016
#> SRR1078114 3 0.4304 0.601 0.000 0.000 0.716 0.284
#> SRR1319991 4 0.4866 0.646 0.000 0.404 0.000 0.596
#> SRR1374543 1 0.0000 0.906 1.000 0.000 0.000 0.000
#> SRR1383237 4 0.4304 0.787 0.000 0.284 0.000 0.716
#> SRR1486215 1 0.0000 0.906 1.000 0.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.1913 0.8637 0.016 0.000 0.932 0.008 0.044
#> SRR1499584 2 0.0000 0.9268 0.000 1.000 0.000 0.000 0.000
#> SRR815256 2 0.2300 0.8613 0.000 0.904 0.000 0.024 0.072
#> SRR1077996 2 0.0000 0.9268 0.000 1.000 0.000 0.000 0.000
#> SRR1338468 1 0.5922 0.4022 0.608 0.000 0.128 0.008 0.256
#> SRR1394428 2 0.4968 0.1485 0.000 0.516 0.000 0.028 0.456
#> SRR1431104 4 0.1012 0.7944 0.000 0.020 0.000 0.968 0.012
#> SRR1082128 5 0.2853 0.5686 0.000 0.052 0.000 0.072 0.876
#> SRR1078212 3 0.0000 0.8832 0.000 0.000 1.000 0.000 0.000
#> SRR1458401 5 0.3053 0.6327 0.128 0.012 0.000 0.008 0.852
#> SRR1447281 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.3601 0.7494 0.000 0.128 0.000 0.820 0.052
#> SRR1105106 4 0.4765 0.6321 0.000 0.228 0.000 0.704 0.068
#> SRR1105130 2 0.0000 0.9268 0.000 1.000 0.000 0.000 0.000
#> SRR1419039 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.8832 0.000 0.000 1.000 0.000 0.000
#> SRR1309745 2 0.1082 0.9170 0.000 0.964 0.000 0.028 0.008
#> SRR1079408 1 0.4834 0.6516 0.740 0.000 0.152 0.008 0.100
#> SRR1445550 4 0.2278 0.8030 0.000 0.060 0.032 0.908 0.000
#> SRR820026 3 0.4034 0.7635 0.000 0.084 0.808 0.008 0.100
#> SRR1353686 1 0.6972 0.2876 0.552 0.000 0.060 0.148 0.240
#> SRR1475466 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.8832 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 5 0.4517 0.2074 0.436 0.000 0.000 0.008 0.556
#> SRR1479450 4 0.4302 -0.0135 0.480 0.000 0.000 0.520 0.000
#> SRR1094097 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.9268 0.000 1.000 0.000 0.000 0.000
#> SRR1433989 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.1757 0.6063 0.000 0.004 0.048 0.012 0.936
#> SRR1330082 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.2359 0.7974 0.000 0.036 0.060 0.904 0.000
#> SRR1387132 2 0.1549 0.9056 0.000 0.944 0.000 0.040 0.016
#> SRR1095261 3 0.0000 0.8832 0.000 0.000 1.000 0.000 0.000
#> SRR818646 5 0.5694 -0.1534 0.000 0.460 0.000 0.080 0.460
#> SRR1313991 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.9268 0.000 1.000 0.000 0.000 0.000
#> SRR1381372 5 0.5930 0.1521 0.004 0.360 0.000 0.100 0.536
#> SRR1388257 4 0.5878 0.3497 0.000 0.120 0.000 0.556 0.324
#> SRR818139 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.9268 0.000 1.000 0.000 0.000 0.000
#> SRR1080342 2 0.0000 0.9268 0.000 1.000 0.000 0.000 0.000
#> SRR1085358 5 0.2846 0.6042 0.000 0.076 0.028 0.012 0.884
#> SRR1473482 5 0.4510 0.2148 0.432 0.000 0.000 0.008 0.560
#> SRR1452674 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 3 0.3265 0.8171 0.040 0.000 0.856 0.008 0.096
#> SRR1382780 1 0.4834 0.6516 0.740 0.000 0.152 0.008 0.100
#> SRR1361138 2 0.1211 0.9159 0.000 0.960 0.000 0.024 0.016
#> SRR1319242 2 0.0963 0.8992 0.000 0.964 0.036 0.000 0.000
#> SRR1084553 2 0.0000 0.9268 0.000 1.000 0.000 0.000 0.000
#> SRR1498747 3 0.4025 0.6535 0.000 0.000 0.700 0.008 0.292
#> SRR1442213 3 0.1697 0.8625 0.000 0.000 0.932 0.008 0.060
#> SRR1343943 2 0.0000 0.9268 0.000 1.000 0.000 0.000 0.000
#> SRR1458828 2 0.0000 0.9268 0.000 1.000 0.000 0.000 0.000
#> SRR1360280 2 0.5243 0.2466 0.000 0.540 0.000 0.048 0.412
#> SRR1474208 3 0.0000 0.8832 0.000 0.000 1.000 0.000 0.000
#> SRR1498726 3 0.1270 0.8625 0.000 0.000 0.948 0.052 0.000
#> SRR1099857 5 0.4268 0.3860 0.344 0.000 0.000 0.008 0.648
#> SRR1329423 4 0.2026 0.7812 0.008 0.012 0.000 0.924 0.056
#> SRR1074430 2 0.0671 0.9223 0.000 0.980 0.000 0.016 0.004
#> SRR1485848 4 0.2300 0.7908 0.000 0.024 0.072 0.904 0.000
#> SRR1471395 4 0.2376 0.8029 0.000 0.052 0.044 0.904 0.000
#> SRR1096198 3 0.5163 0.5171 0.068 0.000 0.636 0.296 0.000
#> SRR1323234 5 0.4560 0.0541 0.484 0.000 0.000 0.008 0.508
#> SRR1073483 2 0.1018 0.9193 0.000 0.968 0.000 0.016 0.016
#> SRR817817 4 0.2208 0.7898 0.000 0.020 0.072 0.908 0.000
#> SRR1434070 3 0.0000 0.8832 0.000 0.000 1.000 0.000 0.000
#> SRR1100941 3 0.0000 0.8832 0.000 0.000 1.000 0.000 0.000
#> SRR1336682 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.3098 0.7777 0.000 0.836 0.000 0.016 0.148
#> SRR1389454 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 5 0.4522 0.4859 0.000 0.176 0.000 0.080 0.744
#> SRR1447192 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 1 0.4629 0.5295 0.704 0.000 0.000 0.244 0.052
#> SRR1097929 3 0.1894 0.8572 0.000 0.000 0.920 0.008 0.072
#> SRR1075850 3 0.4218 0.5408 0.000 0.008 0.660 0.000 0.332
#> SRR1358126 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1121009 1 0.4299 0.6415 0.744 0.000 0.220 0.008 0.028
#> SRR1321720 5 0.1732 0.6376 0.080 0.000 0.000 0.000 0.920
#> SRR810105 5 0.1764 0.6350 0.064 0.000 0.000 0.008 0.928
#> SRR1489007 2 0.1444 0.9076 0.000 0.948 0.000 0.040 0.012
#> SRR1361838 4 0.2376 0.8029 0.000 0.052 0.044 0.904 0.000
#> SRR1475086 2 0.0000 0.9268 0.000 1.000 0.000 0.000 0.000
#> SRR1468226 2 0.1281 0.9110 0.000 0.956 0.000 0.032 0.012
#> SRR1069466 2 0.0693 0.9230 0.000 0.980 0.000 0.012 0.008
#> SRR1078114 3 0.3143 0.7278 0.000 0.000 0.796 0.204 0.000
#> SRR1319991 4 0.4114 0.6514 0.000 0.244 0.000 0.732 0.024
#> SRR1374543 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
#> SRR1383237 4 0.3090 0.7648 0.000 0.088 0.000 0.860 0.052
#> SRR1486215 1 0.0000 0.8913 1.000 0.000 0.000 0.000 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.2870 0.7860 0.004 0.000 0.860 0.004 0.100 0.032
#> SRR1499584 2 0.0146 0.9014 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR815256 2 0.3266 0.5513 0.000 0.728 0.000 0.000 0.000 0.272
#> SRR1077996 2 0.0146 0.9014 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1338468 5 0.4261 0.6197 0.240 0.000 0.024 0.000 0.712 0.024
#> SRR1394428 6 0.5034 0.5202 0.000 0.328 0.000 0.004 0.080 0.588
#> SRR1431104 4 0.2784 0.6848 0.000 0.008 0.000 0.848 0.012 0.132
#> SRR1082128 6 0.3934 0.5975 0.000 0.008 0.000 0.020 0.256 0.716
#> SRR1078212 3 0.0146 0.8489 0.000 0.000 0.996 0.004 0.000 0.000
#> SRR1458401 5 0.1492 0.7048 0.036 0.000 0.000 0.000 0.940 0.024
#> SRR1447281 1 0.0363 0.8753 0.988 0.000 0.000 0.000 0.012 0.000
#> SRR1339258 4 0.4874 0.4933 0.000 0.084 0.000 0.608 0.000 0.308
#> SRR1105106 6 0.4904 0.4839 0.000 0.148 0.000 0.196 0.000 0.656
#> SRR1105130 2 0.0146 0.9014 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1419039 1 0.0000 0.8729 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0146 0.8489 0.000 0.000 0.996 0.004 0.000 0.000
#> SRR1309745 2 0.1625 0.8695 0.000 0.928 0.000 0.012 0.000 0.060
#> SRR1079408 1 0.6862 0.1030 0.432 0.000 0.260 0.004 0.256 0.048
#> SRR1445550 4 0.0935 0.7336 0.000 0.032 0.004 0.964 0.000 0.000
#> SRR820026 3 0.6065 0.4728 0.000 0.104 0.632 0.016 0.176 0.072
#> SRR1353686 5 0.6792 0.3846 0.280 0.000 0.052 0.208 0.456 0.004
#> SRR1475466 1 0.0363 0.8753 0.988 0.000 0.000 0.000 0.012 0.000
#> SRR1096315 3 0.0260 0.8496 0.000 0.000 0.992 0.008 0.000 0.000
#> SRR1479826 5 0.5688 0.4789 0.264 0.000 0.000 0.004 0.544 0.188
#> SRR1479450 4 0.4442 0.1344 0.440 0.000 0.000 0.536 0.020 0.004
#> SRR1094097 1 0.0260 0.8750 0.992 0.000 0.000 0.000 0.008 0.000
#> SRR1071737 2 0.0146 0.9014 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1433989 1 0.0363 0.8753 0.988 0.000 0.000 0.000 0.012 0.000
#> SRR1077159 5 0.3134 0.5721 0.000 0.000 0.004 0.004 0.784 0.208
#> SRR1330082 1 0.0000 0.8729 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.0914 0.7358 0.000 0.016 0.016 0.968 0.000 0.000
#> SRR1387132 2 0.3537 0.7476 0.000 0.796 0.000 0.024 0.016 0.164
#> SRR1095261 3 0.0260 0.8496 0.000 0.000 0.992 0.008 0.000 0.000
#> SRR818646 6 0.4148 0.7306 0.000 0.128 0.000 0.020 0.080 0.772
#> SRR1313991 1 0.0260 0.8750 0.992 0.000 0.000 0.000 0.008 0.000
#> SRR1363718 2 0.0000 0.9006 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1381372 6 0.2263 0.7239 0.012 0.036 0.000 0.008 0.032 0.912
#> SRR1388257 6 0.1625 0.6904 0.000 0.012 0.000 0.060 0.000 0.928
#> SRR818139 1 0.0000 0.8729 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0146 0.9014 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1080342 2 0.0000 0.9006 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1085358 5 0.4302 0.4837 0.000 0.048 0.004 0.004 0.712 0.232
#> SRR1473482 5 0.2219 0.7077 0.136 0.000 0.000 0.000 0.864 0.000
#> SRR1452674 1 0.0363 0.8753 0.988 0.000 0.000 0.000 0.012 0.000
#> SRR1395874 3 0.4316 0.6090 0.008 0.000 0.696 0.004 0.260 0.032
#> SRR1382780 1 0.6862 0.1030 0.432 0.000 0.260 0.004 0.256 0.048
#> SRR1361138 2 0.2882 0.8193 0.000 0.860 0.000 0.020 0.020 0.100
#> SRR1319242 2 0.1096 0.8836 0.000 0.964 0.020 0.008 0.004 0.004
#> SRR1084553 2 0.0146 0.9014 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1498747 5 0.4338 0.3749 0.000 0.000 0.300 0.004 0.660 0.036
#> SRR1442213 3 0.3668 0.7517 0.008 0.000 0.804 0.004 0.132 0.052
#> SRR1343943 2 0.0146 0.9014 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1458828 2 0.0146 0.9014 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1360280 6 0.3629 0.6621 0.000 0.260 0.000 0.000 0.016 0.724
#> SRR1474208 3 0.0260 0.8496 0.000 0.000 0.992 0.008 0.000 0.000
#> SRR1498726 3 0.2872 0.7450 0.000 0.000 0.832 0.152 0.012 0.004
#> SRR1099857 5 0.1219 0.7113 0.048 0.000 0.000 0.000 0.948 0.004
#> SRR1329423 4 0.3753 0.5652 0.000 0.008 0.000 0.696 0.004 0.292
#> SRR1074430 2 0.0622 0.8947 0.000 0.980 0.000 0.008 0.000 0.012
#> SRR1485848 4 0.0993 0.7330 0.000 0.012 0.024 0.964 0.000 0.000
#> SRR1471395 4 0.0891 0.7367 0.000 0.024 0.008 0.968 0.000 0.000
#> SRR1096198 4 0.5140 0.0465 0.052 0.000 0.424 0.512 0.008 0.004
#> SRR1323234 5 0.2219 0.7071 0.136 0.000 0.000 0.000 0.864 0.000
#> SRR1073483 2 0.2069 0.8567 0.000 0.908 0.000 0.020 0.004 0.068
#> SRR817817 4 0.1426 0.7308 0.000 0.008 0.028 0.948 0.000 0.016
#> SRR1434070 3 0.0260 0.8496 0.000 0.000 0.992 0.008 0.000 0.000
#> SRR1100941 3 0.0260 0.8496 0.000 0.000 0.992 0.008 0.000 0.000
#> SRR1336682 1 0.0363 0.8753 0.988 0.000 0.000 0.000 0.012 0.000
#> SRR1077211 2 0.3982 -0.0391 0.000 0.536 0.000 0.004 0.000 0.460
#> SRR1389454 1 0.0000 0.8729 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0363 0.8753 0.988 0.000 0.000 0.000 0.012 0.000
#> SRR1086369 6 0.2473 0.7027 0.000 0.008 0.000 0.000 0.136 0.856
#> SRR1447192 1 0.0363 0.8753 0.988 0.000 0.000 0.000 0.012 0.000
#> SRR1459147 1 0.4482 0.4364 0.628 0.000 0.000 0.048 0.000 0.324
#> SRR1097929 3 0.3389 0.7368 0.000 0.000 0.800 0.004 0.164 0.032
#> SRR1075850 5 0.4418 0.3440 0.000 0.016 0.392 0.004 0.584 0.004
#> SRR1358126 1 0.0790 0.8556 0.968 0.000 0.000 0.000 0.000 0.032
#> SRR1121009 1 0.6048 0.3147 0.544 0.000 0.308 0.004 0.100 0.044
#> SRR1321720 5 0.3017 0.6229 0.020 0.000 0.000 0.000 0.816 0.164
#> SRR810105 5 0.0858 0.6928 0.004 0.000 0.000 0.000 0.968 0.028
#> SRR1489007 2 0.2959 0.8010 0.000 0.844 0.000 0.024 0.008 0.124
#> SRR1361838 4 0.0891 0.7367 0.000 0.024 0.008 0.968 0.000 0.000
#> SRR1475086 2 0.0146 0.9014 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1468226 2 0.2730 0.7089 0.000 0.808 0.000 0.000 0.000 0.192
#> SRR1069466 2 0.1434 0.8766 0.000 0.940 0.000 0.012 0.000 0.048
#> SRR1078114 3 0.3983 0.4365 0.000 0.000 0.640 0.348 0.008 0.004
#> SRR1319991 4 0.5521 0.2882 0.000 0.296 0.000 0.564 0.008 0.132
#> SRR1374543 1 0.0363 0.8753 0.988 0.000 0.000 0.000 0.012 0.000
#> SRR1383237 4 0.4355 0.5222 0.000 0.032 0.000 0.644 0.004 0.320
#> SRR1486215 1 0.0632 0.8609 0.976 0.000 0.000 0.000 0.000 0.024
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["SD", "pam"]
# you can also extract it by
# res = res_list["SD:pam"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'SD' method.
#> Subgroups are detected by 'pam' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.613 0.850 0.924 0.4740 0.525 0.525
#> 3 3 0.738 0.812 0.913 0.3356 0.756 0.566
#> 4 4 0.622 0.536 0.733 0.1698 0.805 0.522
#> 5 5 0.753 0.708 0.849 0.0792 0.865 0.543
#> 6 6 0.793 0.750 0.862 0.0287 0.959 0.800
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.892 1.000 0.000
#> SRR1499584 2 0.0000 0.923 0.000 1.000
#> SRR815256 2 0.0000 0.923 0.000 1.000
#> SRR1077996 2 0.0000 0.923 0.000 1.000
#> SRR1338468 1 0.8763 0.638 0.704 0.296
#> SRR1394428 2 0.0000 0.923 0.000 1.000
#> SRR1431104 2 0.8081 0.715 0.248 0.752
#> SRR1082128 2 0.0000 0.923 0.000 1.000
#> SRR1078212 1 0.9358 0.411 0.648 0.352
#> SRR1458401 2 0.0000 0.923 0.000 1.000
#> SRR1447281 1 0.7453 0.750 0.788 0.212
#> SRR1339258 2 0.0000 0.923 0.000 1.000
#> SRR1105106 2 0.0000 0.923 0.000 1.000
#> SRR1105130 2 0.0000 0.923 0.000 1.000
#> SRR1419039 1 0.0000 0.892 1.000 0.000
#> SRR1079213 1 0.0000 0.892 1.000 0.000
#> SRR1309745 2 0.0000 0.923 0.000 1.000
#> SRR1079408 1 0.0000 0.892 1.000 0.000
#> SRR1445550 2 0.3879 0.877 0.076 0.924
#> SRR820026 2 0.4161 0.878 0.084 0.916
#> SRR1353686 1 0.3114 0.869 0.944 0.056
#> SRR1475466 1 0.0000 0.892 1.000 0.000
#> SRR1096315 1 0.0000 0.892 1.000 0.000
#> SRR1479826 1 0.8081 0.708 0.752 0.248
#> SRR1479450 2 0.2236 0.906 0.036 0.964
#> SRR1094097 1 0.0938 0.892 0.988 0.012
#> SRR1071737 2 0.0000 0.923 0.000 1.000
#> SRR1433989 1 0.0672 0.892 0.992 0.008
#> SRR1077159 2 0.2043 0.907 0.032 0.968
#> SRR1330082 1 0.0938 0.892 0.988 0.012
#> SRR1079874 2 0.8081 0.715 0.248 0.752
#> SRR1387132 2 0.0000 0.923 0.000 1.000
#> SRR1095261 1 0.8016 0.647 0.756 0.244
#> SRR818646 2 0.0000 0.923 0.000 1.000
#> SRR1313991 1 0.0000 0.892 1.000 0.000
#> SRR1363718 2 0.0000 0.923 0.000 1.000
#> SRR1381372 2 0.0376 0.922 0.004 0.996
#> SRR1388257 2 0.0938 0.918 0.012 0.988
#> SRR818139 1 0.0938 0.892 0.988 0.012
#> SRR1078188 2 0.0000 0.923 0.000 1.000
#> SRR1080342 2 0.0000 0.923 0.000 1.000
#> SRR1085358 2 0.2043 0.907 0.032 0.968
#> SRR1473482 1 0.9775 0.441 0.588 0.412
#> SRR1452674 1 0.6343 0.800 0.840 0.160
#> SRR1395874 2 0.8267 0.705 0.260 0.740
#> SRR1382780 1 0.0000 0.892 1.000 0.000
#> SRR1361138 2 0.0000 0.923 0.000 1.000
#> SRR1319242 2 0.0000 0.923 0.000 1.000
#> SRR1084553 2 0.0000 0.923 0.000 1.000
#> SRR1498747 1 0.5408 0.816 0.876 0.124
#> SRR1442213 1 0.5946 0.792 0.856 0.144
#> SRR1343943 2 0.0000 0.923 0.000 1.000
#> SRR1458828 2 0.0000 0.923 0.000 1.000
#> SRR1360280 2 0.0000 0.923 0.000 1.000
#> SRR1474208 2 0.8608 0.678 0.284 0.716
#> SRR1498726 2 0.8499 0.689 0.276 0.724
#> SRR1099857 2 0.2423 0.904 0.040 0.960
#> SRR1329423 2 0.0000 0.923 0.000 1.000
#> SRR1074430 2 0.0000 0.923 0.000 1.000
#> SRR1485848 2 0.8081 0.715 0.248 0.752
#> SRR1471395 2 0.4690 0.859 0.100 0.900
#> SRR1096198 1 0.2043 0.884 0.968 0.032
#> SRR1323234 1 0.8861 0.645 0.696 0.304
#> SRR1073483 2 0.0000 0.923 0.000 1.000
#> SRR817817 2 0.8081 0.715 0.248 0.752
#> SRR1434070 2 0.8267 0.705 0.260 0.740
#> SRR1100941 2 0.8555 0.684 0.280 0.720
#> SRR1336682 1 0.8443 0.689 0.728 0.272
#> SRR1077211 2 0.0000 0.923 0.000 1.000
#> SRR1389454 1 0.6343 0.800 0.840 0.160
#> SRR1393004 1 0.0000 0.892 1.000 0.000
#> SRR1086369 2 0.0000 0.923 0.000 1.000
#> SRR1447192 1 0.0000 0.892 1.000 0.000
#> SRR1459147 1 0.1843 0.889 0.972 0.028
#> SRR1097929 2 0.8555 0.684 0.280 0.720
#> SRR1075850 2 0.8555 0.684 0.280 0.720
#> SRR1358126 1 0.0938 0.892 0.988 0.012
#> SRR1121009 1 0.0000 0.892 1.000 0.000
#> SRR1321720 2 0.1414 0.913 0.020 0.980
#> SRR810105 2 0.2043 0.907 0.032 0.968
#> SRR1489007 2 0.0000 0.923 0.000 1.000
#> SRR1361838 2 0.8081 0.715 0.248 0.752
#> SRR1475086 2 0.0000 0.923 0.000 1.000
#> SRR1468226 2 0.0000 0.923 0.000 1.000
#> SRR1069466 2 0.0000 0.923 0.000 1.000
#> SRR1078114 1 0.3114 0.875 0.944 0.056
#> SRR1319991 2 0.0000 0.923 0.000 1.000
#> SRR1374543 1 0.1184 0.890 0.984 0.016
#> SRR1383237 2 0.0672 0.920 0.008 0.992
#> SRR1486215 1 0.0000 0.892 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.5016 0.613 0.240 0.000 0.760
#> SRR1499584 2 0.0000 0.947 0.000 1.000 0.000
#> SRR815256 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1077996 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1338468 1 0.9049 0.414 0.556 0.212 0.232
#> SRR1394428 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1431104 3 0.6398 0.513 0.008 0.372 0.620
#> SRR1082128 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1078212 3 0.0000 0.797 0.000 0.000 1.000
#> SRR1458401 2 0.2261 0.894 0.068 0.932 0.000
#> SRR1447281 1 0.0000 0.892 1.000 0.000 0.000
#> SRR1339258 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1105106 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1105130 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1419039 1 0.0000 0.892 1.000 0.000 0.000
#> SRR1079213 3 0.0000 0.797 0.000 0.000 1.000
#> SRR1309745 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1079408 1 0.2711 0.859 0.912 0.000 0.088
#> SRR1445550 3 0.6302 0.242 0.000 0.480 0.520
#> SRR820026 2 0.6410 0.310 0.004 0.576 0.420
#> SRR1353686 3 0.5443 0.591 0.260 0.004 0.736
#> SRR1475466 1 0.0000 0.892 1.000 0.000 0.000
#> SRR1096315 3 0.0000 0.797 0.000 0.000 1.000
#> SRR1479826 1 0.6984 0.666 0.720 0.192 0.088
#> SRR1479450 2 0.3879 0.783 0.000 0.848 0.152
#> SRR1094097 1 0.0237 0.891 0.996 0.000 0.004
#> SRR1071737 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1433989 1 0.4178 0.737 0.828 0.000 0.172
#> SRR1077159 2 0.2945 0.867 0.004 0.908 0.088
#> SRR1330082 1 0.1529 0.874 0.960 0.000 0.040
#> SRR1079874 3 0.6045 0.503 0.000 0.380 0.620
#> SRR1387132 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1095261 3 0.0000 0.797 0.000 0.000 1.000
#> SRR818646 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1313991 1 0.0237 0.891 0.996 0.000 0.004
#> SRR1363718 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1381372 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1388257 2 0.0000 0.947 0.000 1.000 0.000
#> SRR818139 1 0.0000 0.892 1.000 0.000 0.000
#> SRR1078188 2 0.5016 0.653 0.000 0.760 0.240
#> SRR1080342 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1085358 2 0.2945 0.867 0.004 0.908 0.088
#> SRR1473482 1 0.5804 0.761 0.800 0.112 0.088
#> SRR1452674 1 0.0000 0.892 1.000 0.000 0.000
#> SRR1395874 3 0.5058 0.660 0.000 0.244 0.756
#> SRR1382780 1 0.2711 0.859 0.912 0.000 0.088
#> SRR1361138 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1319242 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1084553 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1498747 3 0.0237 0.796 0.004 0.000 0.996
#> SRR1442213 3 0.0237 0.796 0.004 0.000 0.996
#> SRR1343943 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1458828 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1360280 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1474208 3 0.0000 0.797 0.000 0.000 1.000
#> SRR1498726 3 0.0000 0.797 0.000 0.000 1.000
#> SRR1099857 2 0.6184 0.741 0.108 0.780 0.112
#> SRR1329423 2 0.1289 0.925 0.032 0.968 0.000
#> SRR1074430 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1485848 3 0.3752 0.743 0.000 0.144 0.856
#> SRR1471395 2 0.5968 0.304 0.000 0.636 0.364
#> SRR1096198 3 0.6773 0.508 0.340 0.024 0.636
#> SRR1323234 1 0.4527 0.828 0.860 0.052 0.088
#> SRR1073483 2 0.0000 0.947 0.000 1.000 0.000
#> SRR817817 3 0.3851 0.746 0.004 0.136 0.860
#> SRR1434070 3 0.0000 0.797 0.000 0.000 1.000
#> SRR1100941 3 0.0000 0.797 0.000 0.000 1.000
#> SRR1336682 1 0.0237 0.890 0.996 0.004 0.000
#> SRR1077211 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1389454 1 0.0000 0.892 1.000 0.000 0.000
#> SRR1393004 1 0.2356 0.867 0.928 0.000 0.072
#> SRR1086369 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1447192 1 0.0000 0.892 1.000 0.000 0.000
#> SRR1459147 1 0.6008 0.278 0.628 0.000 0.372
#> SRR1097929 3 0.2165 0.768 0.000 0.064 0.936
#> SRR1075850 3 0.0237 0.796 0.004 0.000 0.996
#> SRR1358126 3 0.6095 0.424 0.392 0.000 0.608
#> SRR1121009 3 0.5397 0.567 0.280 0.000 0.720
#> SRR1321720 2 0.2537 0.884 0.080 0.920 0.000
#> SRR810105 2 0.3030 0.864 0.004 0.904 0.092
#> SRR1489007 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1361838 3 0.6045 0.503 0.000 0.380 0.620
#> SRR1475086 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1468226 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1069466 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1078114 3 0.3213 0.769 0.028 0.060 0.912
#> SRR1319991 2 0.0000 0.947 0.000 1.000 0.000
#> SRR1374543 1 0.2711 0.859 0.912 0.000 0.088
#> SRR1383237 2 0.3583 0.874 0.056 0.900 0.044
#> SRR1486215 1 0.0000 0.892 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 4 0.6044 0.705 0.044 0.000 0.428 0.528
#> SRR1499584 2 0.4948 0.564 0.000 0.560 0.000 0.440
#> SRR815256 4 0.7654 -0.424 0.000 0.340 0.220 0.440
#> SRR1077996 2 0.4981 0.548 0.000 0.536 0.000 0.464
#> SRR1338468 3 0.5055 0.454 0.368 0.008 0.624 0.000
#> SRR1394428 2 0.4998 -0.272 0.000 0.512 0.488 0.000
#> SRR1431104 4 0.8885 0.641 0.084 0.164 0.320 0.432
#> SRR1082128 2 0.4585 0.172 0.000 0.668 0.332 0.000
#> SRR1078212 4 0.4981 0.726 0.000 0.000 0.464 0.536
#> SRR1458401 3 0.4989 0.300 0.000 0.472 0.528 0.000
#> SRR1447281 1 0.0000 0.915 1.000 0.000 0.000 0.000
#> SRR1339258 2 0.4540 0.654 0.032 0.772 0.000 0.196
#> SRR1105106 2 0.4981 0.548 0.000 0.536 0.000 0.464
#> SRR1105130 2 0.0000 0.697 0.000 1.000 0.000 0.000
#> SRR1419039 1 0.0000 0.915 1.000 0.000 0.000 0.000
#> SRR1079213 4 0.4981 0.726 0.000 0.000 0.464 0.536
#> SRR1309745 2 0.2647 0.680 0.000 0.880 0.000 0.120
#> SRR1079408 3 0.4746 0.451 0.368 0.000 0.632 0.000
#> SRR1445550 4 0.3266 0.165 0.000 0.168 0.000 0.832
#> SRR820026 3 0.4741 0.480 0.000 0.328 0.668 0.004
#> SRR1353686 3 0.6201 -0.632 0.044 0.004 0.532 0.420
#> SRR1475466 1 0.0000 0.915 1.000 0.000 0.000 0.000
#> SRR1096315 4 0.4981 0.726 0.000 0.000 0.464 0.536
#> SRR1479826 3 0.4761 0.448 0.372 0.000 0.628 0.000
#> SRR1479450 2 0.5363 0.170 0.012 0.612 0.004 0.372
#> SRR1094097 1 0.0000 0.915 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.4948 0.564 0.000 0.560 0.000 0.440
#> SRR1433989 1 0.0000 0.915 1.000 0.000 0.000 0.000
#> SRR1077159 3 0.4776 0.452 0.000 0.376 0.624 0.000
#> SRR1330082 1 0.0000 0.915 1.000 0.000 0.000 0.000
#> SRR1079874 4 0.7670 0.625 0.000 0.232 0.320 0.448
#> SRR1387132 2 0.0000 0.697 0.000 1.000 0.000 0.000
#> SRR1095261 4 0.4972 0.728 0.000 0.000 0.456 0.544
#> SRR818646 2 0.0592 0.689 0.000 0.984 0.016 0.000
#> SRR1313991 1 0.0000 0.915 1.000 0.000 0.000 0.000
#> SRR1363718 2 0.4948 0.564 0.000 0.560 0.000 0.440
#> SRR1381372 2 0.4500 0.211 0.000 0.684 0.316 0.000
#> SRR1388257 2 0.1557 0.670 0.056 0.944 0.000 0.000
#> SRR818139 1 0.0000 0.915 1.000 0.000 0.000 0.000
#> SRR1078188 2 0.5119 0.563 0.000 0.556 0.004 0.440
#> SRR1080342 2 0.4948 0.564 0.000 0.560 0.000 0.440
#> SRR1085358 3 0.4776 0.452 0.000 0.376 0.624 0.000
#> SRR1473482 3 0.4936 0.451 0.372 0.004 0.624 0.000
#> SRR1452674 1 0.0000 0.915 1.000 0.000 0.000 0.000
#> SRR1395874 3 0.5599 -0.298 0.000 0.048 0.664 0.288
#> SRR1382780 3 0.4746 0.451 0.368 0.000 0.632 0.000
#> SRR1361138 2 0.0592 0.689 0.000 0.984 0.016 0.000
#> SRR1319242 2 0.1209 0.678 0.000 0.964 0.032 0.004
#> SRR1084553 2 0.4948 0.564 0.000 0.560 0.000 0.440
#> SRR1498747 3 0.0000 0.322 0.000 0.000 1.000 0.000
#> SRR1442213 3 0.5647 -0.161 0.164 0.000 0.720 0.116
#> SRR1343943 2 0.4977 0.551 0.000 0.540 0.000 0.460
#> SRR1458828 3 0.7421 0.108 0.000 0.168 0.432 0.400
#> SRR1360280 2 0.0469 0.691 0.000 0.988 0.012 0.000
#> SRR1474208 4 0.4981 0.726 0.000 0.000 0.464 0.536
#> SRR1498726 4 0.5112 0.728 0.000 0.004 0.436 0.560
#> SRR1099857 3 0.4746 0.459 0.000 0.368 0.632 0.000
#> SRR1329423 2 0.3862 0.589 0.152 0.824 0.000 0.024
#> SRR1074430 2 0.0000 0.697 0.000 1.000 0.000 0.000
#> SRR1485848 4 0.7110 0.650 0.008 0.120 0.320 0.552
#> SRR1471395 4 0.7284 0.162 0.000 0.424 0.148 0.428
#> SRR1096198 4 0.8083 0.582 0.264 0.008 0.320 0.408
#> SRR1323234 3 0.4936 0.451 0.372 0.004 0.624 0.000
#> SRR1073483 2 0.0000 0.697 0.000 1.000 0.000 0.000
#> SRR817817 4 0.7666 0.685 0.072 0.056 0.364 0.508
#> SRR1434070 4 0.4981 0.726 0.000 0.000 0.464 0.536
#> SRR1100941 4 0.4981 0.726 0.000 0.000 0.464 0.536
#> SRR1336682 1 0.0000 0.915 1.000 0.000 0.000 0.000
#> SRR1077211 2 0.0921 0.697 0.000 0.972 0.000 0.028
#> SRR1389454 1 0.0000 0.915 1.000 0.000 0.000 0.000
#> SRR1393004 1 0.1557 0.846 0.944 0.000 0.056 0.000
#> SRR1086369 2 0.4977 -0.207 0.000 0.540 0.460 0.000
#> SRR1447192 1 0.0000 0.915 1.000 0.000 0.000 0.000
#> SRR1459147 1 0.7531 -0.182 0.476 0.000 0.316 0.208
#> SRR1097929 3 0.4482 0.253 0.000 0.068 0.804 0.128
#> SRR1075850 3 0.0336 0.315 0.000 0.000 0.992 0.008
#> SRR1358126 1 0.4814 0.395 0.676 0.000 0.316 0.008
#> SRR1121009 4 0.7236 0.661 0.144 0.000 0.396 0.460
#> SRR1321720 3 0.4989 0.300 0.000 0.472 0.528 0.000
#> SRR810105 3 0.4804 0.442 0.000 0.384 0.616 0.000
#> SRR1489007 2 0.0000 0.697 0.000 1.000 0.000 0.000
#> SRR1361838 4 0.6936 0.645 0.000 0.132 0.320 0.548
#> SRR1475086 2 0.0592 0.692 0.000 0.984 0.000 0.016
#> SRR1468226 2 0.4948 0.564 0.000 0.560 0.000 0.440
#> SRR1069466 2 0.0000 0.697 0.000 1.000 0.000 0.000
#> SRR1078114 4 0.6788 0.716 0.040 0.036 0.364 0.560
#> SRR1319991 2 0.1557 0.692 0.000 0.944 0.000 0.056
#> SRR1374543 3 0.4877 0.395 0.408 0.000 0.592 0.000
#> SRR1383237 2 0.4799 0.510 0.224 0.744 0.000 0.032
#> SRR1486215 1 0.0336 0.909 0.992 0.000 0.008 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.4298 0.6209 0.168 0.000 0.772 0.052 0.008
#> SRR1499584 4 0.3424 0.7196 0.000 0.240 0.000 0.760 0.000
#> SRR815256 4 0.3671 0.5739 0.000 0.008 0.000 0.756 0.236
#> SRR1077996 4 0.1732 0.6831 0.000 0.080 0.000 0.920 0.000
#> SRR1338468 5 0.0290 0.8810 0.008 0.000 0.000 0.000 0.992
#> SRR1394428 5 0.4262 0.1880 0.000 0.440 0.000 0.000 0.560
#> SRR1431104 3 0.6750 0.4094 0.012 0.336 0.468 0.184 0.000
#> SRR1082128 2 0.1270 0.8213 0.000 0.948 0.000 0.000 0.052
#> SRR1078212 3 0.0000 0.7403 0.000 0.000 1.000 0.000 0.000
#> SRR1458401 5 0.0609 0.8764 0.000 0.020 0.000 0.000 0.980
#> SRR1447281 1 0.0000 0.9651 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.4626 0.2301 0.020 0.364 0.000 0.616 0.000
#> SRR1105106 4 0.1270 0.6623 0.000 0.052 0.000 0.948 0.000
#> SRR1105130 2 0.0000 0.8516 0.000 1.000 0.000 0.000 0.000
#> SRR1419039 1 0.0000 0.9651 1.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0404 0.7343 0.000 0.000 0.988 0.012 0.000
#> SRR1309745 2 0.3949 0.2450 0.000 0.668 0.000 0.332 0.000
#> SRR1079408 5 0.1270 0.8624 0.000 0.000 0.000 0.052 0.948
#> SRR1445550 4 0.1597 0.6164 0.000 0.012 0.048 0.940 0.000
#> SRR820026 5 0.5329 0.5952 0.000 0.144 0.184 0.000 0.672
#> SRR1353686 3 0.7157 0.4411 0.036 0.000 0.468 0.188 0.308
#> SRR1475466 1 0.0000 0.9651 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.7403 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 5 0.0162 0.8813 0.004 0.000 0.000 0.000 0.996
#> SRR1479450 2 0.3904 0.6822 0.000 0.792 0.052 0.156 0.000
#> SRR1094097 1 0.0000 0.9651 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 4 0.3424 0.7196 0.000 0.240 0.000 0.760 0.000
#> SRR1433989 1 0.0000 0.9651 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.0290 0.8814 0.000 0.008 0.000 0.000 0.992
#> SRR1330082 1 0.0000 0.9651 1.000 0.000 0.000 0.000 0.000
#> SRR1079874 3 0.6551 0.4250 0.000 0.304 0.468 0.228 0.000
#> SRR1387132 2 0.0000 0.8516 0.000 1.000 0.000 0.000 0.000
#> SRR1095261 3 0.0000 0.7403 0.000 0.000 1.000 0.000 0.000
#> SRR818646 2 0.0000 0.8516 0.000 1.000 0.000 0.000 0.000
#> SRR1313991 1 0.0000 0.9651 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 4 0.3424 0.7196 0.000 0.240 0.000 0.760 0.000
#> SRR1381372 2 0.4262 0.1160 0.000 0.560 0.000 0.000 0.440
#> SRR1388257 2 0.1270 0.8213 0.052 0.948 0.000 0.000 0.000
#> SRR818139 1 0.0000 0.9651 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 4 0.3424 0.7196 0.000 0.240 0.000 0.760 0.000
#> SRR1080342 4 0.3424 0.7196 0.000 0.240 0.000 0.760 0.000
#> SRR1085358 5 0.0290 0.8814 0.000 0.008 0.000 0.000 0.992
#> SRR1473482 5 0.0290 0.8810 0.008 0.000 0.000 0.000 0.992
#> SRR1452674 1 0.0000 0.9651 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 5 0.2389 0.8038 0.000 0.004 0.116 0.000 0.880
#> SRR1382780 5 0.1430 0.8607 0.000 0.000 0.004 0.052 0.944
#> SRR1361138 2 0.0000 0.8516 0.000 1.000 0.000 0.000 0.000
#> SRR1319242 2 0.0000 0.8516 0.000 1.000 0.000 0.000 0.000
#> SRR1084553 4 0.3424 0.7196 0.000 0.240 0.000 0.760 0.000
#> SRR1498747 5 0.0000 0.8810 0.000 0.000 0.000 0.000 1.000
#> SRR1442213 5 0.6127 0.2847 0.036 0.000 0.416 0.052 0.496
#> SRR1343943 4 0.3242 0.7205 0.000 0.216 0.000 0.784 0.000
#> SRR1458828 4 0.5653 0.5446 0.000 0.160 0.000 0.632 0.208
#> SRR1360280 2 0.0000 0.8516 0.000 1.000 0.000 0.000 0.000
#> SRR1474208 3 0.0000 0.7403 0.000 0.000 1.000 0.000 0.000
#> SRR1498726 3 0.4349 0.6649 0.000 0.068 0.756 0.176 0.000
#> SRR1099857 5 0.0000 0.8810 0.000 0.000 0.000 0.000 1.000
#> SRR1329423 2 0.4541 0.6576 0.084 0.744 0.000 0.172 0.000
#> SRR1074430 2 0.0000 0.8516 0.000 1.000 0.000 0.000 0.000
#> SRR1485848 4 0.4294 -0.2172 0.000 0.000 0.468 0.532 0.000
#> SRR1471395 4 0.6553 -0.0222 0.000 0.236 0.292 0.472 0.000
#> SRR1096198 3 0.7892 0.4998 0.204 0.184 0.468 0.144 0.000
#> SRR1323234 5 0.0290 0.8810 0.008 0.000 0.000 0.000 0.992
#> SRR1073483 2 0.0000 0.8516 0.000 1.000 0.000 0.000 0.000
#> SRR817817 3 0.4074 0.4935 0.000 0.000 0.636 0.364 0.000
#> SRR1434070 3 0.0000 0.7403 0.000 0.000 1.000 0.000 0.000
#> SRR1100941 3 0.0000 0.7403 0.000 0.000 1.000 0.000 0.000
#> SRR1336682 1 0.0000 0.9651 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.1965 0.7610 0.000 0.904 0.000 0.096 0.000
#> SRR1389454 1 0.0000 0.9651 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.1270 0.9208 0.948 0.000 0.000 0.052 0.000
#> SRR1086369 2 0.2605 0.7319 0.000 0.852 0.000 0.000 0.148
#> SRR1447192 1 0.0000 0.9651 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 3 0.4792 0.2180 0.448 0.000 0.536 0.008 0.008
#> SRR1097929 5 0.5181 0.4556 0.000 0.000 0.360 0.052 0.588
#> SRR1075850 5 0.1478 0.8533 0.000 0.000 0.064 0.000 0.936
#> SRR1358126 1 0.0290 0.9580 0.992 0.000 0.008 0.000 0.000
#> SRR1121009 1 0.5600 0.2790 0.584 0.000 0.348 0.052 0.016
#> SRR1321720 5 0.0290 0.8814 0.000 0.008 0.000 0.000 0.992
#> SRR810105 5 0.0290 0.8814 0.000 0.008 0.000 0.000 0.992
#> SRR1489007 2 0.0000 0.8516 0.000 1.000 0.000 0.000 0.000
#> SRR1361838 4 0.4291 -0.2078 0.000 0.000 0.464 0.536 0.000
#> SRR1475086 2 0.0000 0.8516 0.000 1.000 0.000 0.000 0.000
#> SRR1468226 4 0.3424 0.7196 0.000 0.240 0.000 0.760 0.000
#> SRR1069466 2 0.0000 0.8516 0.000 1.000 0.000 0.000 0.000
#> SRR1078114 3 0.4318 0.6765 0.056 0.004 0.764 0.176 0.000
#> SRR1319991 2 0.3636 0.6200 0.000 0.728 0.000 0.272 0.000
#> SRR1374543 5 0.2329 0.7925 0.124 0.000 0.000 0.000 0.876
#> SRR1383237 2 0.5398 0.5458 0.240 0.648 0.000 0.112 0.000
#> SRR1486215 1 0.0510 0.9541 0.984 0.000 0.000 0.000 0.016
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 6 0.3371 0.6888 0.000 0.000 0.292 0.000 0.000 0.708
#> SRR1499584 2 0.2823 0.7856 0.000 0.796 0.000 0.204 0.000 0.000
#> SRR815256 2 0.2994 0.6102 0.000 0.788 0.000 0.004 0.208 0.000
#> SRR1077996 2 0.1007 0.7018 0.000 0.956 0.000 0.044 0.000 0.000
#> SRR1338468 5 0.0000 0.9254 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1394428 5 0.3797 0.2424 0.000 0.000 0.000 0.420 0.580 0.000
#> SRR1431104 3 0.5942 0.5441 0.020 0.196 0.552 0.232 0.000 0.000
#> SRR1082128 4 0.1007 0.8349 0.000 0.000 0.000 0.956 0.044 0.000
#> SRR1078212 3 0.1075 0.6742 0.000 0.000 0.952 0.000 0.000 0.048
#> SRR1458401 5 0.0260 0.9197 0.000 0.000 0.000 0.008 0.992 0.000
#> SRR1447281 1 0.0000 0.9709 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1339258 2 0.4666 0.0584 0.000 0.564 0.048 0.388 0.000 0.000
#> SRR1105106 2 0.0363 0.6560 0.000 0.988 0.012 0.000 0.000 0.000
#> SRR1105130 4 0.0000 0.8577 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1419039 1 0.0000 0.9709 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.1141 0.6707 0.000 0.000 0.948 0.000 0.000 0.052
#> SRR1309745 4 0.3244 0.4515 0.000 0.268 0.000 0.732 0.000 0.000
#> SRR1079408 6 0.1141 0.8314 0.000 0.000 0.000 0.000 0.052 0.948
#> SRR1445550 2 0.1826 0.6177 0.000 0.924 0.052 0.020 0.000 0.004
#> SRR820026 5 0.4535 0.6008 0.000 0.000 0.148 0.148 0.704 0.000
#> SRR1353686 3 0.5758 0.5299 0.008 0.204 0.552 0.000 0.236 0.000
#> SRR1475466 1 0.0000 0.9709 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.1075 0.6742 0.000 0.000 0.952 0.000 0.000 0.048
#> SRR1479826 5 0.0000 0.9254 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1479450 4 0.3189 0.6992 0.000 0.184 0.020 0.796 0.000 0.000
#> SRR1094097 1 0.0000 0.9709 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.2823 0.7856 0.000 0.796 0.000 0.204 0.000 0.000
#> SRR1433989 1 0.0000 0.9709 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.0000 0.9254 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1330082 1 0.0000 0.9709 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079874 3 0.5679 0.5567 0.000 0.236 0.552 0.208 0.000 0.004
#> SRR1387132 4 0.0000 0.8577 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1095261 3 0.1075 0.6742 0.000 0.000 0.952 0.000 0.000 0.048
#> SRR818646 4 0.0000 0.8577 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1313991 1 0.0000 0.9709 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.2823 0.7856 0.000 0.796 0.000 0.204 0.000 0.000
#> SRR1381372 4 0.3828 0.1447 0.000 0.000 0.000 0.560 0.440 0.000
#> SRR1388257 4 0.1141 0.8284 0.052 0.000 0.000 0.948 0.000 0.000
#> SRR818139 1 0.0000 0.9709 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.2823 0.7856 0.000 0.796 0.000 0.204 0.000 0.000
#> SRR1080342 2 0.2823 0.7856 0.000 0.796 0.000 0.204 0.000 0.000
#> SRR1085358 5 0.0000 0.9254 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1473482 5 0.0000 0.9254 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1452674 1 0.0000 0.9709 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1395874 5 0.2048 0.8042 0.000 0.000 0.120 0.000 0.880 0.000
#> SRR1382780 6 0.1141 0.8314 0.000 0.000 0.000 0.000 0.052 0.948
#> SRR1361138 4 0.0000 0.8577 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1319242 4 0.0000 0.8577 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1084553 2 0.2823 0.7856 0.000 0.796 0.000 0.204 0.000 0.000
#> SRR1498747 5 0.0000 0.9254 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1442213 6 0.2572 0.7753 0.000 0.000 0.136 0.000 0.012 0.852
#> SRR1343943 2 0.2697 0.7809 0.000 0.812 0.000 0.188 0.000 0.000
#> SRR1458828 2 0.4634 0.5917 0.000 0.688 0.000 0.124 0.188 0.000
#> SRR1360280 4 0.0000 0.8577 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1474208 3 0.1075 0.6742 0.000 0.000 0.952 0.000 0.000 0.048
#> SRR1498726 3 0.2668 0.6838 0.000 0.168 0.828 0.000 0.000 0.004
#> SRR1099857 5 0.0000 0.9254 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1329423 4 0.4591 0.6391 0.040 0.188 0.048 0.724 0.000 0.000
#> SRR1074430 4 0.0363 0.8524 0.000 0.012 0.000 0.988 0.000 0.000
#> SRR1485848 3 0.3966 0.4929 0.000 0.444 0.552 0.000 0.000 0.004
#> SRR1471395 2 0.6033 -0.3083 0.000 0.420 0.368 0.208 0.000 0.004
#> SRR1096198 3 0.6873 0.5507 0.168 0.168 0.524 0.136 0.000 0.004
#> SRR1323234 5 0.0000 0.9254 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1073483 4 0.0000 0.8577 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR817817 3 0.3584 0.6405 0.000 0.308 0.688 0.000 0.000 0.004
#> SRR1434070 3 0.1075 0.6742 0.000 0.000 0.952 0.000 0.000 0.048
#> SRR1100941 3 0.1075 0.6742 0.000 0.000 0.952 0.000 0.000 0.048
#> SRR1336682 1 0.0000 0.9709 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077211 4 0.1387 0.8022 0.000 0.068 0.000 0.932 0.000 0.000
#> SRR1389454 1 0.0000 0.9709 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.3684 0.3957 0.628 0.000 0.000 0.000 0.000 0.372
#> SRR1086369 4 0.2260 0.7511 0.000 0.000 0.000 0.860 0.140 0.000
#> SRR1447192 1 0.0000 0.9709 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1459147 3 0.3993 0.3618 0.400 0.000 0.592 0.000 0.008 0.000
#> SRR1097929 6 0.2969 0.7543 0.000 0.000 0.224 0.000 0.000 0.776
#> SRR1075850 5 0.0622 0.9137 0.000 0.008 0.012 0.000 0.980 0.000
#> SRR1358126 1 0.0000 0.9709 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1121009 6 0.1141 0.8141 0.052 0.000 0.000 0.000 0.000 0.948
#> SRR1321720 5 0.0000 0.9254 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR810105 5 0.0000 0.9254 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1489007 4 0.0000 0.8577 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1361838 3 0.3971 0.4865 0.000 0.448 0.548 0.000 0.000 0.004
#> SRR1475086 4 0.0363 0.8524 0.000 0.012 0.000 0.988 0.000 0.000
#> SRR1468226 2 0.2823 0.7856 0.000 0.796 0.000 0.204 0.000 0.000
#> SRR1069466 4 0.0000 0.8577 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1078114 3 0.2362 0.6878 0.000 0.136 0.860 0.000 0.000 0.004
#> SRR1319991 4 0.3756 0.6207 0.000 0.268 0.020 0.712 0.000 0.000
#> SRR1374543 5 0.0865 0.8938 0.036 0.000 0.000 0.000 0.964 0.000
#> SRR1383237 4 0.5158 0.5132 0.284 0.040 0.048 0.628 0.000 0.000
#> SRR1486215 1 0.0260 0.9617 0.992 0.000 0.000 0.000 0.008 0.000
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["SD", "mclust"]
# you can also extract it by
# res = res_list["SD:mclust"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'SD' method.
#> Subgroups are detected by 'mclust' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.644 0.885 0.941 0.371 0.650 0.650
#> 3 3 0.337 0.828 0.839 0.474 0.750 0.628
#> 4 4 0.439 0.724 0.763 0.211 0.827 0.627
#> 5 5 0.881 0.882 0.949 0.189 0.799 0.445
#> 6 6 0.834 0.769 0.888 0.031 0.969 0.854
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 5
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.000 0.9351 1.000 0.000
#> SRR1499584 2 0.141 0.9497 0.020 0.980
#> SRR815256 2 0.141 0.9497 0.020 0.980
#> SRR1077996 2 0.141 0.9497 0.020 0.980
#> SRR1338468 1 0.000 0.9351 1.000 0.000
#> SRR1394428 1 0.595 0.8524 0.856 0.144
#> SRR1431104 1 0.000 0.9351 1.000 0.000
#> SRR1082128 1 0.595 0.8524 0.856 0.144
#> SRR1078212 1 0.000 0.9351 1.000 0.000
#> SRR1458401 1 0.584 0.8558 0.860 0.140
#> SRR1447281 1 0.141 0.9269 0.980 0.020
#> SRR1339258 1 0.000 0.9351 1.000 0.000
#> SRR1105106 1 0.913 0.5321 0.672 0.328
#> SRR1105130 2 0.141 0.9497 0.020 0.980
#> SRR1419039 1 0.141 0.9269 0.980 0.020
#> SRR1079213 1 0.000 0.9351 1.000 0.000
#> SRR1309745 2 0.141 0.9497 0.020 0.980
#> SRR1079408 1 0.000 0.9351 1.000 0.000
#> SRR1445550 1 0.000 0.9351 1.000 0.000
#> SRR820026 1 0.584 0.8558 0.860 0.140
#> SRR1353686 1 0.000 0.9351 1.000 0.000
#> SRR1475466 1 0.141 0.9269 0.980 0.020
#> SRR1096315 1 0.000 0.9351 1.000 0.000
#> SRR1479826 1 0.469 0.8843 0.900 0.100
#> SRR1479450 1 0.000 0.9351 1.000 0.000
#> SRR1094097 1 0.141 0.9269 0.980 0.020
#> SRR1071737 2 0.904 0.5005 0.320 0.680
#> SRR1433989 1 0.141 0.9269 0.980 0.020
#> SRR1077159 1 0.584 0.8558 0.860 0.140
#> SRR1330082 1 0.141 0.9269 0.980 0.020
#> SRR1079874 1 0.000 0.9351 1.000 0.000
#> SRR1387132 2 0.430 0.8846 0.088 0.912
#> SRR1095261 1 0.000 0.9351 1.000 0.000
#> SRR818646 1 0.595 0.8524 0.856 0.144
#> SRR1313991 1 0.141 0.9269 0.980 0.020
#> SRR1363718 2 0.141 0.9497 0.020 0.980
#> SRR1381372 1 0.584 0.8558 0.860 0.140
#> SRR1388257 1 0.482 0.8820 0.896 0.104
#> SRR818139 1 0.141 0.9269 0.980 0.020
#> SRR1078188 1 0.891 0.6133 0.692 0.308
#> SRR1080342 2 0.141 0.9497 0.020 0.980
#> SRR1085358 1 0.584 0.8558 0.860 0.140
#> SRR1473482 1 0.482 0.8817 0.896 0.104
#> SRR1452674 1 0.141 0.9269 0.980 0.020
#> SRR1395874 1 0.000 0.9351 1.000 0.000
#> SRR1382780 1 0.000 0.9351 1.000 0.000
#> SRR1361138 2 0.998 -0.0041 0.476 0.524
#> SRR1319242 1 0.584 0.8558 0.860 0.140
#> SRR1084553 2 0.141 0.9497 0.020 0.980
#> SRR1498747 1 0.000 0.9351 1.000 0.000
#> SRR1442213 1 0.000 0.9351 1.000 0.000
#> SRR1343943 2 0.141 0.9497 0.020 0.980
#> SRR1458828 2 0.184 0.9433 0.028 0.972
#> SRR1360280 2 0.141 0.9497 0.020 0.980
#> SRR1474208 1 0.000 0.9351 1.000 0.000
#> SRR1498726 1 0.000 0.9351 1.000 0.000
#> SRR1099857 1 0.482 0.8817 0.896 0.104
#> SRR1329423 1 0.000 0.9351 1.000 0.000
#> SRR1074430 2 0.141 0.9497 0.020 0.980
#> SRR1485848 1 0.000 0.9351 1.000 0.000
#> SRR1471395 1 0.000 0.9351 1.000 0.000
#> SRR1096198 1 0.000 0.9351 1.000 0.000
#> SRR1323234 1 0.469 0.8843 0.900 0.100
#> SRR1073483 2 0.141 0.9497 0.020 0.980
#> SRR817817 1 0.000 0.9351 1.000 0.000
#> SRR1434070 1 0.000 0.9351 1.000 0.000
#> SRR1100941 1 0.000 0.9351 1.000 0.000
#> SRR1336682 1 0.141 0.9269 0.980 0.020
#> SRR1077211 2 0.141 0.9497 0.020 0.980
#> SRR1389454 1 0.141 0.9269 0.980 0.020
#> SRR1393004 1 0.141 0.9269 0.980 0.020
#> SRR1086369 1 0.595 0.8524 0.856 0.144
#> SRR1447192 1 0.141 0.9269 0.980 0.020
#> SRR1459147 1 0.000 0.9351 1.000 0.000
#> SRR1097929 1 0.000 0.9351 1.000 0.000
#> SRR1075850 1 0.584 0.8558 0.860 0.140
#> SRR1358126 1 0.118 0.9286 0.984 0.016
#> SRR1121009 1 0.000 0.9351 1.000 0.000
#> SRR1321720 1 0.595 0.8524 0.856 0.144
#> SRR810105 1 0.584 0.8558 0.860 0.140
#> SRR1489007 2 0.141 0.9497 0.020 0.980
#> SRR1361838 1 0.000 0.9351 1.000 0.000
#> SRR1475086 1 0.900 0.5659 0.684 0.316
#> SRR1468226 2 0.141 0.9497 0.020 0.980
#> SRR1069466 2 0.141 0.9497 0.020 0.980
#> SRR1078114 1 0.000 0.9351 1.000 0.000
#> SRR1319991 1 0.999 0.0975 0.516 0.484
#> SRR1374543 1 0.000 0.9351 1.000 0.000
#> SRR1383237 1 0.000 0.9351 1.000 0.000
#> SRR1486215 1 0.141 0.9269 0.980 0.020
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.0424 0.817 0.008 0.000 0.992
#> SRR1499584 2 0.0000 0.913 0.000 1.000 0.000
#> SRR815256 2 0.1267 0.899 0.024 0.972 0.004
#> SRR1077996 2 0.0000 0.913 0.000 1.000 0.000
#> SRR1338468 3 0.2050 0.829 0.028 0.020 0.952
#> SRR1394428 3 0.5660 0.823 0.028 0.200 0.772
#> SRR1431104 3 0.6573 0.820 0.140 0.104 0.756
#> SRR1082128 3 0.5486 0.826 0.024 0.196 0.780
#> SRR1078212 3 0.3038 0.769 0.104 0.000 0.896
#> SRR1458401 3 0.5237 0.836 0.056 0.120 0.824
#> SRR1447281 1 0.4452 0.968 0.808 0.000 0.192
#> SRR1339258 3 0.6037 0.829 0.100 0.112 0.788
#> SRR1105106 2 0.6603 0.386 0.020 0.648 0.332
#> SRR1105130 2 0.0000 0.913 0.000 1.000 0.000
#> SRR1419039 1 0.4452 0.968 0.808 0.000 0.192
#> SRR1079213 3 0.3038 0.769 0.104 0.000 0.896
#> SRR1309745 2 0.0000 0.913 0.000 1.000 0.000
#> SRR1079408 3 0.2066 0.812 0.060 0.000 0.940
#> SRR1445550 3 0.6764 0.813 0.148 0.108 0.744
#> SRR820026 3 0.5253 0.830 0.020 0.188 0.792
#> SRR1353686 3 0.4397 0.810 0.116 0.028 0.856
#> SRR1475466 1 0.4452 0.968 0.808 0.000 0.192
#> SRR1096315 3 0.3038 0.769 0.104 0.000 0.896
#> SRR1479826 3 0.5138 0.836 0.052 0.120 0.828
#> SRR1479450 3 0.4937 0.811 0.148 0.028 0.824
#> SRR1094097 1 0.4452 0.968 0.808 0.000 0.192
#> SRR1071737 2 0.6062 0.188 0.000 0.616 0.384
#> SRR1433989 1 0.4452 0.968 0.808 0.000 0.192
#> SRR1077159 3 0.5384 0.829 0.024 0.188 0.788
#> SRR1330082 1 0.4452 0.968 0.808 0.000 0.192
#> SRR1079874 3 0.6693 0.816 0.148 0.104 0.748
#> SRR1387132 2 0.4291 0.730 0.000 0.820 0.180
#> SRR1095261 3 0.2796 0.779 0.092 0.000 0.908
#> SRR818646 3 0.5406 0.825 0.020 0.200 0.780
#> SRR1313991 1 0.4452 0.968 0.808 0.000 0.192
#> SRR1363718 2 0.0000 0.913 0.000 1.000 0.000
#> SRR1381372 3 0.5356 0.827 0.020 0.196 0.784
#> SRR1388257 3 0.5219 0.830 0.016 0.196 0.788
#> SRR818139 1 0.4452 0.968 0.808 0.000 0.192
#> SRR1078188 3 0.5859 0.666 0.000 0.344 0.656
#> SRR1080342 2 0.0000 0.913 0.000 1.000 0.000
#> SRR1085358 3 0.5384 0.829 0.024 0.188 0.788
#> SRR1473482 3 0.5260 0.829 0.080 0.092 0.828
#> SRR1452674 1 0.4452 0.968 0.808 0.000 0.192
#> SRR1395874 3 0.1031 0.817 0.024 0.000 0.976
#> SRR1382780 3 0.2066 0.812 0.060 0.000 0.940
#> SRR1361138 3 0.6215 0.498 0.000 0.428 0.572
#> SRR1319242 3 0.4974 0.809 0.000 0.236 0.764
#> SRR1084553 2 0.0000 0.913 0.000 1.000 0.000
#> SRR1498747 3 0.2031 0.825 0.032 0.016 0.952
#> SRR1442213 3 0.1860 0.813 0.052 0.000 0.948
#> SRR1343943 2 0.0000 0.913 0.000 1.000 0.000
#> SRR1458828 2 0.3340 0.803 0.000 0.880 0.120
#> SRR1360280 2 0.1031 0.901 0.024 0.976 0.000
#> SRR1474208 3 0.3038 0.769 0.104 0.000 0.896
#> SRR1498726 3 0.2356 0.841 0.000 0.072 0.928
#> SRR1099857 3 0.5260 0.829 0.080 0.092 0.828
#> SRR1329423 3 0.5815 0.831 0.096 0.104 0.800
#> SRR1074430 2 0.0000 0.913 0.000 1.000 0.000
#> SRR1485848 3 0.6511 0.821 0.136 0.104 0.760
#> SRR1471395 3 0.6693 0.816 0.148 0.104 0.748
#> SRR1096198 3 0.4136 0.809 0.116 0.020 0.864
#> SRR1323234 3 0.5260 0.829 0.080 0.092 0.828
#> SRR1073483 2 0.0000 0.913 0.000 1.000 0.000
#> SRR817817 3 0.6693 0.816 0.148 0.104 0.748
#> SRR1434070 3 0.3091 0.793 0.072 0.016 0.912
#> SRR1100941 3 0.2796 0.779 0.092 0.000 0.908
#> SRR1336682 1 0.4452 0.968 0.808 0.000 0.192
#> SRR1077211 2 0.0237 0.912 0.004 0.996 0.000
#> SRR1389454 1 0.4452 0.968 0.808 0.000 0.192
#> SRR1393004 1 0.6299 0.340 0.524 0.000 0.476
#> SRR1086369 3 0.5486 0.826 0.024 0.196 0.780
#> SRR1447192 1 0.4452 0.968 0.808 0.000 0.192
#> SRR1459147 3 0.3941 0.781 0.156 0.000 0.844
#> SRR1097929 3 0.0000 0.817 0.000 0.000 1.000
#> SRR1075850 3 0.5223 0.833 0.024 0.176 0.800
#> SRR1358126 3 0.4452 0.745 0.192 0.000 0.808
#> SRR1121009 3 0.2066 0.812 0.060 0.000 0.940
#> SRR1321720 3 0.5138 0.836 0.052 0.120 0.828
#> SRR810105 3 0.5138 0.836 0.052 0.120 0.828
#> SRR1489007 2 0.0424 0.909 0.000 0.992 0.008
#> SRR1361838 3 0.6693 0.816 0.148 0.104 0.748
#> SRR1475086 3 0.5785 0.683 0.000 0.332 0.668
#> SRR1468226 2 0.0000 0.913 0.000 1.000 0.000
#> SRR1069466 2 0.0000 0.913 0.000 1.000 0.000
#> SRR1078114 3 0.3091 0.829 0.072 0.016 0.912
#> SRR1319991 2 0.3851 0.784 0.004 0.860 0.136
#> SRR1374543 3 0.3816 0.785 0.148 0.000 0.852
#> SRR1383237 3 0.6254 0.827 0.116 0.108 0.776
#> SRR1486215 1 0.4452 0.968 0.808 0.000 0.192
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.5714 0.7055 0.156 0.000 0.716 0.128
#> SRR1499584 2 0.0000 0.8929 0.000 1.000 0.000 0.000
#> SRR815256 2 0.0672 0.8841 0.008 0.984 0.008 0.000
#> SRR1077996 2 0.0000 0.8929 0.000 1.000 0.000 0.000
#> SRR1338468 3 0.3908 0.7219 0.212 0.000 0.784 0.004
#> SRR1394428 3 0.6965 0.5969 0.140 0.272 0.584 0.004
#> SRR1431104 4 0.6099 0.8491 0.024 0.240 0.052 0.684
#> SRR1082128 3 0.7218 0.5701 0.140 0.296 0.556 0.008
#> SRR1078212 3 0.4220 0.5519 0.004 0.000 0.748 0.248
#> SRR1458401 3 0.5007 0.7269 0.208 0.028 0.752 0.012
#> SRR1447281 1 0.0000 0.9187 1.000 0.000 0.000 0.000
#> SRR1339258 4 0.7779 0.8065 0.132 0.248 0.048 0.572
#> SRR1105106 2 0.5843 0.2107 0.032 0.644 0.012 0.312
#> SRR1105130 2 0.0000 0.8929 0.000 1.000 0.000 0.000
#> SRR1419039 1 0.0000 0.9187 1.000 0.000 0.000 0.000
#> SRR1079213 3 0.4220 0.5519 0.004 0.000 0.748 0.248
#> SRR1309745 2 0.0000 0.8929 0.000 1.000 0.000 0.000
#> SRR1079408 3 0.4103 0.7055 0.256 0.000 0.744 0.000
#> SRR1445550 4 0.5756 0.8449 0.016 0.232 0.048 0.704
#> SRR820026 3 0.7074 0.6192 0.140 0.248 0.600 0.012
#> SRR1353686 3 0.5539 0.7296 0.224 0.060 0.712 0.004
#> SRR1475466 1 0.0336 0.9120 0.992 0.000 0.008 0.000
#> SRR1096315 3 0.4220 0.5519 0.004 0.000 0.748 0.248
#> SRR1479826 3 0.4318 0.7206 0.208 0.004 0.776 0.012
#> SRR1479450 3 0.7815 0.6422 0.156 0.112 0.616 0.116
#> SRR1094097 1 0.0336 0.9153 0.992 0.000 0.000 0.008
#> SRR1071737 2 0.1118 0.8601 0.000 0.964 0.036 0.000
#> SRR1433989 1 0.0336 0.9153 0.992 0.000 0.000 0.008
#> SRR1077159 3 0.5922 0.7140 0.140 0.124 0.724 0.012
#> SRR1330082 1 0.0336 0.9153 0.992 0.000 0.000 0.008
#> SRR1079874 4 0.6367 0.8481 0.012 0.224 0.096 0.668
#> SRR1387132 2 0.0817 0.8753 0.000 0.976 0.024 0.000
#> SRR1095261 3 0.4220 0.5519 0.004 0.000 0.748 0.248
#> SRR818646 3 0.7344 0.5274 0.140 0.328 0.524 0.008
#> SRR1313991 1 0.0336 0.9153 0.992 0.000 0.000 0.008
#> SRR1363718 2 0.0000 0.8929 0.000 1.000 0.000 0.000
#> SRR1381372 3 0.7572 0.5463 0.140 0.304 0.536 0.020
#> SRR1388257 3 0.9727 -0.0525 0.144 0.284 0.320 0.252
#> SRR818139 1 0.0336 0.9153 0.992 0.000 0.000 0.008
#> SRR1078188 2 0.4477 0.3312 0.000 0.688 0.312 0.000
#> SRR1080342 2 0.0000 0.8929 0.000 1.000 0.000 0.000
#> SRR1085358 3 0.6752 0.6588 0.140 0.204 0.644 0.012
#> SRR1473482 3 0.4692 0.7102 0.212 0.000 0.756 0.032
#> SRR1452674 1 0.0000 0.9187 1.000 0.000 0.000 0.000
#> SRR1395874 3 0.4824 0.7087 0.144 0.000 0.780 0.076
#> SRR1382780 3 0.4103 0.7055 0.256 0.000 0.744 0.000
#> SRR1361138 2 0.3873 0.5181 0.000 0.772 0.228 0.000
#> SRR1319242 3 0.6949 0.4741 0.084 0.368 0.536 0.012
#> SRR1084553 2 0.0000 0.8929 0.000 1.000 0.000 0.000
#> SRR1498747 3 0.4501 0.7226 0.212 0.000 0.764 0.024
#> SRR1442213 3 0.5564 0.7193 0.216 0.000 0.708 0.076
#> SRR1343943 2 0.0000 0.8929 0.000 1.000 0.000 0.000
#> SRR1458828 2 0.0817 0.8753 0.000 0.976 0.024 0.000
#> SRR1360280 2 0.0672 0.8841 0.008 0.984 0.008 0.000
#> SRR1474208 3 0.4220 0.5519 0.004 0.000 0.748 0.248
#> SRR1498726 3 0.8063 0.6478 0.136 0.208 0.576 0.080
#> SRR1099857 3 0.4692 0.7102 0.212 0.000 0.756 0.032
#> SRR1329423 4 0.8390 0.7604 0.148 0.240 0.080 0.532
#> SRR1074430 2 0.0000 0.8929 0.000 1.000 0.000 0.000
#> SRR1485848 4 0.7187 0.8012 0.012 0.224 0.168 0.596
#> SRR1471395 4 0.5577 0.8410 0.012 0.224 0.048 0.716
#> SRR1096198 3 0.7082 0.7295 0.212 0.076 0.648 0.064
#> SRR1323234 3 0.4728 0.7100 0.216 0.000 0.752 0.032
#> SRR1073483 2 0.0188 0.8913 0.000 0.996 0.004 0.000
#> SRR817817 4 0.7258 0.7914 0.012 0.224 0.176 0.588
#> SRR1434070 3 0.5099 0.5750 0.004 0.048 0.748 0.200
#> SRR1100941 3 0.4122 0.5615 0.004 0.000 0.760 0.236
#> SRR1336682 1 0.0000 0.9187 1.000 0.000 0.000 0.000
#> SRR1077211 2 0.0524 0.8865 0.008 0.988 0.004 0.000
#> SRR1389454 1 0.0000 0.9187 1.000 0.000 0.000 0.000
#> SRR1393004 1 0.4830 -0.0368 0.608 0.000 0.392 0.000
#> SRR1086369 3 0.7218 0.5699 0.140 0.296 0.556 0.008
#> SRR1447192 1 0.0000 0.9187 1.000 0.000 0.000 0.000
#> SRR1459147 3 0.7028 0.4770 0.424 0.028 0.492 0.056
#> SRR1097929 3 0.4919 0.7150 0.152 0.000 0.772 0.076
#> SRR1075850 3 0.6879 0.6449 0.140 0.220 0.628 0.012
#> SRR1358126 1 0.4722 0.2834 0.692 0.000 0.300 0.008
#> SRR1121009 3 0.5004 0.5964 0.392 0.000 0.604 0.004
#> SRR1321720 3 0.5111 0.7316 0.204 0.056 0.740 0.000
#> SRR810105 3 0.4546 0.7241 0.204 0.012 0.772 0.012
#> SRR1489007 2 0.0188 0.8913 0.000 0.996 0.004 0.000
#> SRR1361838 4 0.5577 0.8410 0.012 0.224 0.048 0.716
#> SRR1475086 2 0.4283 0.4531 0.000 0.740 0.256 0.004
#> SRR1468226 2 0.0000 0.8929 0.000 1.000 0.000 0.000
#> SRR1069466 2 0.0000 0.8929 0.000 1.000 0.000 0.000
#> SRR1078114 3 0.7390 0.6949 0.160 0.028 0.604 0.208
#> SRR1319991 2 0.3681 0.6680 0.000 0.816 0.008 0.176
#> SRR1374543 3 0.4331 0.6897 0.288 0.000 0.712 0.000
#> SRR1383237 4 0.7779 0.8065 0.132 0.248 0.048 0.572
#> SRR1486215 1 0.0000 0.9187 1.000 0.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.0162 0.959 0.000 0.000 0.996 0.000 0.004
#> SRR1499584 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR815256 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1077996 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1338468 5 0.0880 0.870 0.000 0.000 0.032 0.000 0.968
#> SRR1394428 5 0.3715 0.642 0.000 0.260 0.000 0.004 0.736
#> SRR1431104 4 0.0000 0.931 0.000 0.000 0.000 1.000 0.000
#> SRR1082128 5 0.0162 0.886 0.000 0.000 0.000 0.004 0.996
#> SRR1078212 3 0.0000 0.961 0.000 0.000 1.000 0.000 0.000
#> SRR1458401 5 0.0162 0.886 0.000 0.000 0.000 0.004 0.996
#> SRR1447281 1 0.0000 0.952 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.0000 0.931 0.000 0.000 0.000 1.000 0.000
#> SRR1105106 4 0.3966 0.497 0.000 0.336 0.000 0.664 0.000
#> SRR1105130 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1419039 1 0.0000 0.952 1.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.961 0.000 0.000 1.000 0.000 0.000
#> SRR1309745 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1079408 5 0.2929 0.739 0.180 0.000 0.000 0.000 0.820
#> SRR1445550 4 0.0000 0.931 0.000 0.000 0.000 1.000 0.000
#> SRR820026 2 0.4084 0.518 0.000 0.668 0.000 0.004 0.328
#> SRR1353686 1 0.3154 0.781 0.836 0.000 0.012 0.004 0.148
#> SRR1475466 1 0.0000 0.952 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.961 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 5 0.0000 0.886 0.000 0.000 0.000 0.000 1.000
#> SRR1479450 1 0.4161 0.367 0.608 0.000 0.000 0.392 0.000
#> SRR1094097 1 0.0000 0.952 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0162 0.954 0.000 0.996 0.000 0.004 0.000
#> SRR1433989 1 0.0000 0.952 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.0162 0.886 0.000 0.000 0.000 0.004 0.996
#> SRR1330082 1 0.0000 0.952 1.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.0000 0.931 0.000 0.000 0.000 1.000 0.000
#> SRR1387132 2 0.0162 0.954 0.000 0.996 0.000 0.004 0.000
#> SRR1095261 3 0.0000 0.961 0.000 0.000 1.000 0.000 0.000
#> SRR818646 2 0.3048 0.780 0.000 0.820 0.000 0.004 0.176
#> SRR1313991 1 0.0000 0.952 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1381372 2 0.3123 0.769 0.000 0.812 0.000 0.004 0.184
#> SRR1388257 2 0.5711 0.490 0.000 0.612 0.000 0.252 0.136
#> SRR818139 1 0.0000 0.952 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0162 0.954 0.000 0.996 0.000 0.004 0.000
#> SRR1080342 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1085358 5 0.0162 0.886 0.000 0.000 0.000 0.004 0.996
#> SRR1473482 5 0.0000 0.886 0.000 0.000 0.000 0.000 1.000
#> SRR1452674 1 0.0000 0.952 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 5 0.3837 0.549 0.000 0.000 0.308 0.000 0.692
#> SRR1382780 5 0.2929 0.739 0.180 0.000 0.000 0.000 0.820
#> SRR1361138 2 0.0162 0.954 0.000 0.996 0.000 0.004 0.000
#> SRR1319242 2 0.0162 0.954 0.000 0.996 0.000 0.004 0.000
#> SRR1084553 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1498747 5 0.0000 0.886 0.000 0.000 0.000 0.000 1.000
#> SRR1442213 3 0.3231 0.735 0.196 0.000 0.800 0.000 0.004
#> SRR1343943 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1458828 2 0.0162 0.954 0.000 0.996 0.000 0.004 0.000
#> SRR1360280 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1474208 3 0.0000 0.961 0.000 0.000 1.000 0.000 0.000
#> SRR1498726 3 0.0451 0.952 0.000 0.008 0.988 0.004 0.000
#> SRR1099857 5 0.0000 0.886 0.000 0.000 0.000 0.000 1.000
#> SRR1329423 4 0.0000 0.931 0.000 0.000 0.000 1.000 0.000
#> SRR1074430 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1485848 4 0.0000 0.931 0.000 0.000 0.000 1.000 0.000
#> SRR1471395 4 0.0000 0.931 0.000 0.000 0.000 1.000 0.000
#> SRR1096198 4 0.1608 0.869 0.000 0.000 0.072 0.928 0.000
#> SRR1323234 5 0.0000 0.886 0.000 0.000 0.000 0.000 1.000
#> SRR1073483 2 0.0162 0.954 0.000 0.996 0.000 0.004 0.000
#> SRR817817 4 0.0000 0.931 0.000 0.000 0.000 1.000 0.000
#> SRR1434070 3 0.0162 0.958 0.000 0.000 0.996 0.004 0.000
#> SRR1100941 3 0.0000 0.961 0.000 0.000 1.000 0.000 0.000
#> SRR1336682 1 0.0000 0.952 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1389454 1 0.0000 0.952 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0162 0.950 0.996 0.000 0.000 0.000 0.004
#> SRR1086369 5 0.3741 0.635 0.000 0.264 0.000 0.004 0.732
#> SRR1447192 1 0.0000 0.952 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 4 0.3534 0.628 0.256 0.000 0.000 0.744 0.000
#> SRR1097929 5 0.2891 0.741 0.000 0.000 0.176 0.000 0.824
#> SRR1075850 5 0.3579 0.673 0.000 0.240 0.000 0.004 0.756
#> SRR1358126 1 0.0290 0.946 0.992 0.000 0.000 0.008 0.000
#> SRR1121009 1 0.0162 0.950 0.996 0.000 0.000 0.000 0.004
#> SRR1321720 5 0.0162 0.886 0.000 0.000 0.000 0.004 0.996
#> SRR810105 5 0.0000 0.886 0.000 0.000 0.000 0.000 1.000
#> SRR1489007 2 0.0162 0.954 0.000 0.996 0.000 0.004 0.000
#> SRR1361838 4 0.0000 0.931 0.000 0.000 0.000 1.000 0.000
#> SRR1475086 2 0.0162 0.954 0.000 0.996 0.000 0.004 0.000
#> SRR1468226 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1069466 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1078114 3 0.2329 0.844 0.000 0.000 0.876 0.124 0.000
#> SRR1319991 2 0.1197 0.920 0.000 0.952 0.000 0.048 0.000
#> SRR1374543 1 0.3177 0.718 0.792 0.000 0.000 0.000 0.208
#> SRR1383237 4 0.0000 0.931 0.000 0.000 0.000 1.000 0.000
#> SRR1486215 1 0.0000 0.952 1.000 0.000 0.000 0.000 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.2625 0.8514 0.000 0.000 0.872 0.000 0.056 0.072
#> SRR1499584 2 0.0000 0.9357 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR815256 2 0.1814 0.8695 0.000 0.900 0.000 0.000 0.100 0.000
#> SRR1077996 2 0.0000 0.9357 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1338468 6 0.2361 0.6766 0.004 0.000 0.012 0.000 0.104 0.880
#> SRR1394428 5 0.2313 0.5887 0.000 0.100 0.000 0.004 0.884 0.012
#> SRR1431104 4 0.0000 0.9122 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1082128 5 0.2006 0.6119 0.000 0.000 0.000 0.004 0.892 0.104
#> SRR1078212 3 0.0000 0.9131 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1458401 5 0.2454 0.6118 0.000 0.000 0.000 0.000 0.840 0.160
#> SRR1447281 1 0.0000 0.9288 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.0000 0.9122 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1105106 4 0.3620 0.4505 0.000 0.352 0.000 0.648 0.000 0.000
#> SRR1105130 2 0.0146 0.9353 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1419039 1 0.0000 0.9288 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.9131 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1309745 2 0.0000 0.9357 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079408 6 0.0146 0.6997 0.004 0.000 0.000 0.000 0.000 0.996
#> SRR1445550 4 0.0000 0.9122 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR820026 2 0.4509 0.5727 0.000 0.712 0.000 0.004 0.180 0.104
#> SRR1353686 1 0.4456 0.6901 0.720 0.000 0.024 0.048 0.208 0.000
#> SRR1475466 1 0.1204 0.9022 0.944 0.000 0.000 0.000 0.000 0.056
#> SRR1096315 3 0.0000 0.9131 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1479826 5 0.3869 -0.0211 0.000 0.000 0.000 0.000 0.500 0.500
#> SRR1479450 1 0.3950 0.2708 0.564 0.000 0.000 0.432 0.004 0.000
#> SRR1094097 1 0.0146 0.9286 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1071737 2 0.0291 0.9346 0.000 0.992 0.000 0.004 0.004 0.000
#> SRR1433989 1 0.0146 0.9286 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1077159 5 0.3189 0.5810 0.000 0.000 0.000 0.004 0.760 0.236
#> SRR1330082 1 0.0146 0.9286 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1079874 4 0.0000 0.9122 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1387132 2 0.0291 0.9351 0.000 0.992 0.000 0.004 0.004 0.000
#> SRR1095261 3 0.0000 0.9131 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR818646 5 0.3830 0.2801 0.000 0.376 0.000 0.004 0.620 0.000
#> SRR1313991 1 0.0146 0.9286 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1363718 2 0.0000 0.9357 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1381372 2 0.3953 0.5139 0.000 0.656 0.000 0.016 0.328 0.000
#> SRR1388257 2 0.5523 0.3664 0.000 0.540 0.000 0.296 0.164 0.000
#> SRR818139 1 0.0146 0.9286 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1078188 2 0.0291 0.9346 0.000 0.992 0.000 0.004 0.004 0.000
#> SRR1080342 2 0.0000 0.9357 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1085358 5 0.3189 0.5810 0.000 0.000 0.000 0.004 0.760 0.236
#> SRR1473482 5 0.3868 -0.0085 0.000 0.000 0.000 0.000 0.504 0.496
#> SRR1452674 1 0.0000 0.9288 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1395874 6 0.2823 0.6085 0.000 0.000 0.204 0.000 0.000 0.796
#> SRR1382780 6 0.0146 0.6997 0.004 0.000 0.000 0.000 0.000 0.996
#> SRR1361138 2 0.0777 0.9261 0.000 0.972 0.000 0.004 0.024 0.000
#> SRR1319242 2 0.0291 0.9351 0.000 0.992 0.000 0.004 0.004 0.000
#> SRR1084553 2 0.0000 0.9357 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1498747 6 0.1588 0.6964 0.000 0.000 0.004 0.000 0.072 0.924
#> SRR1442213 3 0.6382 0.4318 0.088 0.000 0.512 0.000 0.096 0.304
#> SRR1343943 2 0.0000 0.9357 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1458828 2 0.0291 0.9351 0.000 0.992 0.000 0.004 0.004 0.000
#> SRR1360280 2 0.2219 0.8390 0.000 0.864 0.000 0.000 0.136 0.000
#> SRR1474208 3 0.0000 0.9131 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1498726 3 0.2121 0.8680 0.000 0.000 0.892 0.012 0.096 0.000
#> SRR1099857 6 0.3857 -0.0761 0.000 0.000 0.000 0.000 0.468 0.532
#> SRR1329423 4 0.0000 0.9122 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1074430 2 0.0146 0.9353 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1485848 4 0.0000 0.9122 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1471395 4 0.0000 0.9122 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1096198 4 0.3862 0.6837 0.000 0.000 0.132 0.772 0.096 0.000
#> SRR1323234 6 0.3868 -0.1501 0.000 0.000 0.000 0.000 0.492 0.508
#> SRR1073483 2 0.0405 0.9340 0.000 0.988 0.000 0.004 0.008 0.000
#> SRR817817 4 0.0000 0.9122 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1434070 3 0.0146 0.9105 0.000 0.000 0.996 0.004 0.000 0.000
#> SRR1100941 3 0.0000 0.9131 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1336682 1 0.0000 0.9288 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.1501 0.8884 0.000 0.924 0.000 0.000 0.076 0.000
#> SRR1389454 1 0.0000 0.9288 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.1910 0.8694 0.892 0.000 0.000 0.000 0.000 0.108
#> SRR1086369 5 0.2006 0.5824 0.000 0.104 0.000 0.004 0.892 0.000
#> SRR1447192 1 0.0146 0.9277 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1459147 4 0.3426 0.5881 0.276 0.000 0.000 0.720 0.000 0.004
#> SRR1097929 6 0.2234 0.6789 0.004 0.000 0.124 0.000 0.000 0.872
#> SRR1075850 5 0.5908 0.2646 0.000 0.412 0.008 0.004 0.440 0.136
#> SRR1358126 1 0.0146 0.9286 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1121009 1 0.2823 0.7831 0.796 0.000 0.000 0.000 0.000 0.204
#> SRR1321720 5 0.2048 0.6131 0.000 0.000 0.000 0.000 0.880 0.120
#> SRR810105 5 0.3050 0.5777 0.000 0.000 0.000 0.000 0.764 0.236
#> SRR1489007 2 0.0291 0.9351 0.000 0.992 0.000 0.004 0.004 0.000
#> SRR1361838 4 0.0000 0.9122 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1475086 2 0.0146 0.9352 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1468226 2 0.0000 0.9357 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1069466 2 0.0000 0.9357 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1078114 3 0.3956 0.7475 0.000 0.000 0.760 0.152 0.088 0.000
#> SRR1319991 2 0.1714 0.8663 0.000 0.908 0.000 0.092 0.000 0.000
#> SRR1374543 1 0.3163 0.7679 0.820 0.000 0.000 0.000 0.040 0.140
#> SRR1383237 4 0.0000 0.9122 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1486215 1 0.0000 0.9288 1.000 0.000 0.000 0.000 0.000 0.000
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["SD", "NMF"]
# you can also extract it by
# res = res_list["SD:NMF"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'SD' method.
#> Subgroups are detected by 'NMF' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.908 0.958 0.980 0.5018 0.497 0.497
#> 3 3 0.819 0.848 0.939 0.2987 0.784 0.593
#> 4 4 0.758 0.816 0.907 0.1258 0.793 0.495
#> 5 5 0.743 0.734 0.876 0.0667 0.883 0.611
#> 6 6 0.711 0.652 0.818 0.0521 0.881 0.531
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.968 1.000 0.000
#> SRR1499584 2 0.0000 0.988 0.000 1.000
#> SRR815256 2 0.0000 0.988 0.000 1.000
#> SRR1077996 2 0.0000 0.988 0.000 1.000
#> SRR1338468 1 0.0000 0.968 1.000 0.000
#> SRR1394428 2 0.0000 0.988 0.000 1.000
#> SRR1431104 2 0.3584 0.924 0.068 0.932
#> SRR1082128 2 0.2043 0.960 0.032 0.968
#> SRR1078212 1 0.0000 0.968 1.000 0.000
#> SRR1458401 1 0.8955 0.573 0.688 0.312
#> SRR1447281 1 0.0000 0.968 1.000 0.000
#> SRR1339258 2 0.0000 0.988 0.000 1.000
#> SRR1105106 2 0.0000 0.988 0.000 1.000
#> SRR1105130 2 0.0000 0.988 0.000 1.000
#> SRR1419039 1 0.0000 0.968 1.000 0.000
#> SRR1079213 1 0.0000 0.968 1.000 0.000
#> SRR1309745 2 0.0000 0.988 0.000 1.000
#> SRR1079408 1 0.0000 0.968 1.000 0.000
#> SRR1445550 2 0.0000 0.988 0.000 1.000
#> SRR820026 2 0.0000 0.988 0.000 1.000
#> SRR1353686 1 0.0000 0.968 1.000 0.000
#> SRR1475466 1 0.0000 0.968 1.000 0.000
#> SRR1096315 1 0.0000 0.968 1.000 0.000
#> SRR1479826 1 0.0000 0.968 1.000 0.000
#> SRR1479450 1 0.7376 0.753 0.792 0.208
#> SRR1094097 1 0.0000 0.968 1.000 0.000
#> SRR1071737 2 0.0000 0.988 0.000 1.000
#> SRR1433989 1 0.0000 0.968 1.000 0.000
#> SRR1077159 2 0.5408 0.856 0.124 0.876
#> SRR1330082 1 0.0000 0.968 1.000 0.000
#> SRR1079874 2 0.0000 0.988 0.000 1.000
#> SRR1387132 2 0.0000 0.988 0.000 1.000
#> SRR1095261 1 0.7674 0.719 0.776 0.224
#> SRR818646 2 0.0000 0.988 0.000 1.000
#> SRR1313991 1 0.0000 0.968 1.000 0.000
#> SRR1363718 2 0.0000 0.988 0.000 1.000
#> SRR1381372 2 0.0672 0.982 0.008 0.992
#> SRR1388257 2 0.0000 0.988 0.000 1.000
#> SRR818139 1 0.0000 0.968 1.000 0.000
#> SRR1078188 2 0.0000 0.988 0.000 1.000
#> SRR1080342 2 0.0000 0.988 0.000 1.000
#> SRR1085358 2 0.0000 0.988 0.000 1.000
#> SRR1473482 1 0.0000 0.968 1.000 0.000
#> SRR1452674 1 0.0000 0.968 1.000 0.000
#> SRR1395874 1 0.0000 0.968 1.000 0.000
#> SRR1382780 1 0.0000 0.968 1.000 0.000
#> SRR1361138 2 0.0000 0.988 0.000 1.000
#> SRR1319242 2 0.0000 0.988 0.000 1.000
#> SRR1084553 2 0.0000 0.988 0.000 1.000
#> SRR1498747 1 0.0000 0.968 1.000 0.000
#> SRR1442213 1 0.0000 0.968 1.000 0.000
#> SRR1343943 2 0.0000 0.988 0.000 1.000
#> SRR1458828 2 0.0000 0.988 0.000 1.000
#> SRR1360280 2 0.0000 0.988 0.000 1.000
#> SRR1474208 1 0.5946 0.830 0.856 0.144
#> SRR1498726 2 0.0938 0.978 0.012 0.988
#> SRR1099857 1 0.0000 0.968 1.000 0.000
#> SRR1329423 2 0.5946 0.832 0.144 0.856
#> SRR1074430 2 0.0000 0.988 0.000 1.000
#> SRR1485848 2 0.0000 0.988 0.000 1.000
#> SRR1471395 2 0.0000 0.988 0.000 1.000
#> SRR1096198 1 0.1414 0.953 0.980 0.020
#> SRR1323234 1 0.0000 0.968 1.000 0.000
#> SRR1073483 2 0.0000 0.988 0.000 1.000
#> SRR817817 2 0.0000 0.988 0.000 1.000
#> SRR1434070 2 0.0000 0.988 0.000 1.000
#> SRR1100941 2 0.6048 0.828 0.148 0.852
#> SRR1336682 1 0.0000 0.968 1.000 0.000
#> SRR1077211 2 0.0000 0.988 0.000 1.000
#> SRR1389454 1 0.0000 0.968 1.000 0.000
#> SRR1393004 1 0.0000 0.968 1.000 0.000
#> SRR1086369 2 0.0000 0.988 0.000 1.000
#> SRR1447192 1 0.0000 0.968 1.000 0.000
#> SRR1459147 1 0.0000 0.968 1.000 0.000
#> SRR1097929 1 0.0000 0.968 1.000 0.000
#> SRR1075850 2 0.0000 0.988 0.000 1.000
#> SRR1358126 1 0.0000 0.968 1.000 0.000
#> SRR1121009 1 0.0000 0.968 1.000 0.000
#> SRR1321720 1 0.6048 0.830 0.852 0.148
#> SRR810105 1 0.7219 0.765 0.800 0.200
#> SRR1489007 2 0.0000 0.988 0.000 1.000
#> SRR1361838 2 0.0000 0.988 0.000 1.000
#> SRR1475086 2 0.0000 0.988 0.000 1.000
#> SRR1468226 2 0.0000 0.988 0.000 1.000
#> SRR1069466 2 0.0000 0.988 0.000 1.000
#> SRR1078114 1 0.0376 0.965 0.996 0.004
#> SRR1319991 2 0.0000 0.988 0.000 1.000
#> SRR1374543 1 0.0000 0.968 1.000 0.000
#> SRR1383237 2 0.0000 0.988 0.000 1.000
#> SRR1486215 1 0.0000 0.968 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.0747 0.8915 0.016 0.000 0.984
#> SRR1499584 2 0.0237 0.9380 0.000 0.996 0.004
#> SRR815256 2 0.0237 0.9380 0.000 0.996 0.004
#> SRR1077996 2 0.0237 0.9380 0.000 0.996 0.004
#> SRR1338468 1 0.6204 0.2111 0.576 0.000 0.424
#> SRR1394428 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR1431104 2 0.3816 0.7980 0.148 0.852 0.000
#> SRR1082128 2 0.6274 0.1485 0.456 0.544 0.000
#> SRR1078212 3 0.0237 0.8953 0.004 0.000 0.996
#> SRR1458401 1 0.5397 0.6204 0.720 0.280 0.000
#> SRR1447281 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1339258 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR1105106 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR1105130 2 0.0237 0.9380 0.000 0.996 0.004
#> SRR1419039 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1079213 3 0.0237 0.8953 0.004 0.000 0.996
#> SRR1309745 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR1079408 3 0.4346 0.7484 0.184 0.000 0.816
#> SRR1445550 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR820026 3 0.1411 0.8720 0.000 0.036 0.964
#> SRR1353686 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1475466 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1096315 3 0.0237 0.8953 0.004 0.000 0.996
#> SRR1479826 1 0.0237 0.9414 0.996 0.000 0.004
#> SRR1479450 1 0.4605 0.7291 0.796 0.204 0.000
#> SRR1094097 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1071737 2 0.0592 0.9333 0.000 0.988 0.012
#> SRR1433989 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1077159 2 0.6308 -0.0347 0.000 0.508 0.492
#> SRR1330082 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1079874 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR1387132 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR1095261 3 0.0000 0.8947 0.000 0.000 1.000
#> SRR818646 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR1313991 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1363718 2 0.0237 0.9380 0.000 0.996 0.004
#> SRR1381372 2 0.6095 0.3533 0.392 0.608 0.000
#> SRR1388257 2 0.4291 0.7597 0.180 0.820 0.000
#> SRR818139 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1078188 2 0.0592 0.9333 0.000 0.988 0.012
#> SRR1080342 2 0.0237 0.9380 0.000 0.996 0.004
#> SRR1085358 3 0.6308 0.0244 0.000 0.492 0.508
#> SRR1473482 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1452674 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1395874 3 0.0592 0.8936 0.012 0.000 0.988
#> SRR1382780 3 0.4121 0.7658 0.168 0.000 0.832
#> SRR1361138 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR1319242 3 0.6299 0.0560 0.000 0.476 0.524
#> SRR1084553 2 0.0237 0.9380 0.000 0.996 0.004
#> SRR1498747 3 0.0592 0.8936 0.012 0.000 0.988
#> SRR1442213 3 0.0592 0.8936 0.012 0.000 0.988
#> SRR1343943 2 0.0237 0.9380 0.000 0.996 0.004
#> SRR1458828 2 0.0424 0.9359 0.000 0.992 0.008
#> SRR1360280 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR1474208 3 0.0000 0.8947 0.000 0.000 1.000
#> SRR1498726 3 0.0000 0.8947 0.000 0.000 1.000
#> SRR1099857 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1329423 1 0.2711 0.8586 0.912 0.088 0.000
#> SRR1074430 2 0.0237 0.9380 0.000 0.996 0.004
#> SRR1485848 2 0.3752 0.8038 0.000 0.856 0.144
#> SRR1471395 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR1096198 3 0.5378 0.6773 0.236 0.008 0.756
#> SRR1323234 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1073483 2 0.0237 0.9380 0.000 0.996 0.004
#> SRR817817 2 0.5098 0.6554 0.000 0.752 0.248
#> SRR1434070 3 0.0000 0.8947 0.000 0.000 1.000
#> SRR1100941 3 0.0000 0.8947 0.000 0.000 1.000
#> SRR1336682 1 0.0237 0.9416 0.996 0.004 0.000
#> SRR1077211 2 0.0237 0.9380 0.000 0.996 0.004
#> SRR1389454 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1393004 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1086369 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR1447192 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1459147 1 0.0237 0.9416 0.996 0.004 0.000
#> SRR1097929 3 0.0424 0.8946 0.008 0.000 0.992
#> SRR1075850 3 0.0237 0.8932 0.000 0.004 0.996
#> SRR1358126 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1121009 3 0.5678 0.5377 0.316 0.000 0.684
#> SRR1321720 1 0.0424 0.9385 0.992 0.008 0.000
#> SRR810105 1 0.5774 0.6780 0.748 0.232 0.020
#> SRR1489007 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR1361838 2 0.0237 0.9380 0.000 0.996 0.004
#> SRR1475086 2 0.0237 0.9380 0.000 0.996 0.004
#> SRR1468226 2 0.0237 0.9380 0.000 0.996 0.004
#> SRR1069466 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR1078114 3 0.0237 0.8953 0.004 0.000 0.996
#> SRR1319991 2 0.0000 0.9379 0.000 1.000 0.000
#> SRR1374543 1 0.0000 0.9443 1.000 0.000 0.000
#> SRR1383237 2 0.1643 0.9030 0.044 0.956 0.000
#> SRR1486215 1 0.0000 0.9443 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.0188 0.9103 0.004 0.000 0.996 0.000
#> SRR1499584 2 0.1940 0.8576 0.000 0.924 0.000 0.076
#> SRR815256 2 0.0000 0.8772 0.000 1.000 0.000 0.000
#> SRR1077996 2 0.3400 0.7647 0.000 0.820 0.000 0.180
#> SRR1338468 1 0.1847 0.9139 0.940 0.004 0.052 0.004
#> SRR1394428 2 0.0657 0.8732 0.004 0.984 0.000 0.012
#> SRR1431104 4 0.3552 0.8267 0.024 0.128 0.000 0.848
#> SRR1082128 2 0.4761 0.4958 0.332 0.664 0.000 0.004
#> SRR1078212 3 0.0000 0.9109 0.000 0.000 1.000 0.000
#> SRR1458401 2 0.5119 0.2148 0.440 0.556 0.000 0.004
#> SRR1447281 1 0.0000 0.9411 1.000 0.000 0.000 0.000
#> SRR1339258 4 0.1302 0.8291 0.000 0.044 0.000 0.956
#> SRR1105106 4 0.0817 0.8229 0.000 0.024 0.000 0.976
#> SRR1105130 2 0.0000 0.8772 0.000 1.000 0.000 0.000
#> SRR1419039 1 0.0336 0.9406 0.992 0.000 0.000 0.008
#> SRR1079213 3 0.0000 0.9109 0.000 0.000 1.000 0.000
#> SRR1309745 2 0.3172 0.7826 0.000 0.840 0.000 0.160
#> SRR1079408 1 0.3249 0.8289 0.852 0.000 0.140 0.008
#> SRR1445550 4 0.2973 0.8210 0.000 0.144 0.000 0.856
#> SRR820026 2 0.4477 0.5535 0.000 0.688 0.312 0.000
#> SRR1353686 1 0.1398 0.9230 0.956 0.000 0.004 0.040
#> SRR1475466 1 0.0000 0.9411 1.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.9109 0.000 0.000 1.000 0.000
#> SRR1479826 1 0.1677 0.9249 0.948 0.012 0.000 0.040
#> SRR1479450 1 0.4454 0.5325 0.692 0.000 0.000 0.308
#> SRR1094097 1 0.0469 0.9399 0.988 0.000 0.000 0.012
#> SRR1071737 2 0.0707 0.8768 0.000 0.980 0.000 0.020
#> SRR1433989 1 0.0336 0.9407 0.992 0.000 0.000 0.008
#> SRR1077159 2 0.1648 0.8638 0.012 0.956 0.016 0.016
#> SRR1330082 1 0.3123 0.8021 0.844 0.000 0.000 0.156
#> SRR1079874 4 0.3470 0.8242 0.008 0.132 0.008 0.852
#> SRR1387132 2 0.1792 0.8605 0.000 0.932 0.000 0.068
#> SRR1095261 3 0.0469 0.9074 0.000 0.000 0.988 0.012
#> SRR818646 2 0.0188 0.8772 0.004 0.996 0.000 0.000
#> SRR1313991 1 0.0469 0.9399 0.988 0.000 0.000 0.012
#> SRR1363718 2 0.1474 0.8683 0.000 0.948 0.000 0.052
#> SRR1381372 4 0.5021 0.6758 0.180 0.064 0.000 0.756
#> SRR1388257 4 0.1677 0.8155 0.012 0.040 0.000 0.948
#> SRR818139 1 0.0707 0.9374 0.980 0.000 0.000 0.020
#> SRR1078188 2 0.1716 0.8648 0.000 0.936 0.000 0.064
#> SRR1080342 2 0.1389 0.8702 0.000 0.952 0.000 0.048
#> SRR1085358 2 0.1191 0.8675 0.004 0.968 0.024 0.004
#> SRR1473482 1 0.1059 0.9336 0.972 0.012 0.000 0.016
#> SRR1452674 1 0.0000 0.9411 1.000 0.000 0.000 0.000
#> SRR1395874 3 0.1302 0.8863 0.044 0.000 0.956 0.000
#> SRR1382780 1 0.3300 0.8241 0.848 0.000 0.144 0.008
#> SRR1361138 2 0.0000 0.8772 0.000 1.000 0.000 0.000
#> SRR1319242 2 0.2281 0.8310 0.000 0.904 0.096 0.000
#> SRR1084553 2 0.0921 0.8751 0.000 0.972 0.000 0.028
#> SRR1498747 3 0.4053 0.6877 0.228 0.004 0.768 0.000
#> SRR1442213 3 0.1978 0.8706 0.004 0.000 0.928 0.068
#> SRR1343943 2 0.2868 0.8121 0.000 0.864 0.000 0.136
#> SRR1458828 2 0.0000 0.8772 0.000 1.000 0.000 0.000
#> SRR1360280 2 0.0336 0.8759 0.000 0.992 0.000 0.008
#> SRR1474208 3 0.0000 0.9109 0.000 0.000 1.000 0.000
#> SRR1498726 3 0.0592 0.9052 0.000 0.000 0.984 0.016
#> SRR1099857 1 0.1998 0.9223 0.944 0.016 0.020 0.020
#> SRR1329423 4 0.3224 0.7964 0.120 0.016 0.000 0.864
#> SRR1074430 2 0.0000 0.8772 0.000 1.000 0.000 0.000
#> SRR1485848 4 0.5179 0.6712 0.000 0.052 0.220 0.728
#> SRR1471395 4 0.3355 0.8088 0.004 0.160 0.000 0.836
#> SRR1096198 3 0.4804 0.7262 0.160 0.000 0.776 0.064
#> SRR1323234 1 0.0657 0.9374 0.984 0.004 0.000 0.012
#> SRR1073483 2 0.0000 0.8772 0.000 1.000 0.000 0.000
#> SRR817817 4 0.2179 0.8018 0.000 0.012 0.064 0.924
#> SRR1434070 3 0.0336 0.9089 0.000 0.000 0.992 0.008
#> SRR1100941 3 0.0000 0.9109 0.000 0.000 1.000 0.000
#> SRR1336682 1 0.0336 0.9406 0.992 0.000 0.000 0.008
#> SRR1077211 2 0.0000 0.8772 0.000 1.000 0.000 0.000
#> SRR1389454 1 0.0592 0.9403 0.984 0.000 0.000 0.016
#> SRR1393004 1 0.0000 0.9411 1.000 0.000 0.000 0.000
#> SRR1086369 2 0.1302 0.8613 0.000 0.956 0.000 0.044
#> SRR1447192 1 0.0188 0.9410 0.996 0.000 0.000 0.004
#> SRR1459147 4 0.2868 0.7488 0.136 0.000 0.000 0.864
#> SRR1097929 3 0.0188 0.9103 0.004 0.000 0.996 0.000
#> SRR1075850 2 0.4877 0.3697 0.000 0.592 0.408 0.000
#> SRR1358126 4 0.4998 -0.0327 0.488 0.000 0.000 0.512
#> SRR1121009 3 0.4985 0.1049 0.468 0.000 0.532 0.000
#> SRR1321720 1 0.2610 0.8716 0.900 0.088 0.000 0.012
#> SRR810105 2 0.5819 0.2817 0.404 0.568 0.012 0.016
#> SRR1489007 2 0.1474 0.8686 0.000 0.948 0.000 0.052
#> SRR1361838 4 0.3172 0.8095 0.000 0.160 0.000 0.840
#> SRR1475086 2 0.2868 0.8161 0.000 0.864 0.000 0.136
#> SRR1468226 2 0.0921 0.8760 0.000 0.972 0.000 0.028
#> SRR1069466 2 0.2921 0.8068 0.000 0.860 0.000 0.140
#> SRR1078114 3 0.1356 0.8917 0.008 0.000 0.960 0.032
#> SRR1319991 4 0.4072 0.7008 0.000 0.252 0.000 0.748
#> SRR1374543 1 0.0000 0.9411 1.000 0.000 0.000 0.000
#> SRR1383237 4 0.0707 0.8228 0.000 0.020 0.000 0.980
#> SRR1486215 1 0.2868 0.8538 0.864 0.000 0.000 0.136
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.0162 0.9103 0.004 0.000 0.996 0.000 0.000
#> SRR1499584 4 0.3895 0.5291 0.000 0.320 0.000 0.680 0.000
#> SRR815256 2 0.0880 0.8315 0.000 0.968 0.000 0.032 0.000
#> SRR1077996 4 0.2561 0.7523 0.000 0.144 0.000 0.856 0.000
#> SRR1338468 1 0.0566 0.8910 0.984 0.000 0.004 0.000 0.012
#> SRR1394428 2 0.0162 0.8282 0.000 0.996 0.000 0.000 0.004
#> SRR1431104 4 0.0955 0.7661 0.028 0.000 0.000 0.968 0.004
#> SRR1082128 2 0.2233 0.7666 0.104 0.892 0.000 0.000 0.004
#> SRR1078212 3 0.0000 0.9113 0.000 0.000 1.000 0.000 0.000
#> SRR1458401 2 0.4383 0.1673 0.424 0.572 0.000 0.000 0.004
#> SRR1447281 1 0.0000 0.8963 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.4305 0.1428 0.000 0.000 0.000 0.512 0.488
#> SRR1105106 5 0.0955 0.8343 0.000 0.004 0.000 0.028 0.968
#> SRR1105130 2 0.1282 0.8309 0.000 0.952 0.000 0.044 0.004
#> SRR1419039 1 0.0000 0.8963 1.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.9113 0.000 0.000 1.000 0.000 0.000
#> SRR1309745 2 0.4305 -0.0177 0.000 0.512 0.000 0.488 0.000
#> SRR1079408 1 0.4889 0.6072 0.700 0.024 0.252 0.004 0.020
#> SRR1445550 4 0.0794 0.7696 0.000 0.000 0.000 0.972 0.028
#> SRR820026 2 0.3766 0.6144 0.000 0.728 0.268 0.004 0.000
#> SRR1353686 1 0.0794 0.8859 0.972 0.000 0.000 0.000 0.028
#> SRR1475466 1 0.0404 0.8935 0.988 0.000 0.000 0.012 0.000
#> SRR1096315 3 0.0000 0.9113 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 1 0.6941 0.0966 0.436 0.264 0.004 0.004 0.292
#> SRR1479450 4 0.4235 0.2321 0.424 0.000 0.000 0.576 0.000
#> SRR1094097 1 0.0609 0.8904 0.980 0.000 0.000 0.020 0.000
#> SRR1071737 2 0.1908 0.8111 0.000 0.908 0.000 0.092 0.000
#> SRR1433989 1 0.0703 0.8885 0.976 0.000 0.000 0.024 0.000
#> SRR1077159 2 0.1235 0.8167 0.012 0.964 0.004 0.004 0.016
#> SRR1330082 1 0.1043 0.8772 0.960 0.000 0.000 0.040 0.000
#> SRR1079874 4 0.0324 0.7747 0.004 0.000 0.004 0.992 0.000
#> SRR1387132 4 0.3424 0.6727 0.000 0.240 0.000 0.760 0.000
#> SRR1095261 3 0.0162 0.9112 0.000 0.000 0.996 0.004 0.000
#> SRR818646 2 0.0290 0.8300 0.000 0.992 0.000 0.008 0.000
#> SRR1313991 1 0.0880 0.8833 0.968 0.000 0.000 0.032 0.000
#> SRR1363718 4 0.3707 0.5943 0.000 0.284 0.000 0.716 0.000
#> SRR1381372 5 0.0162 0.8409 0.000 0.004 0.000 0.000 0.996
#> SRR1388257 5 0.0566 0.8412 0.000 0.004 0.000 0.012 0.984
#> SRR818139 1 0.0162 0.8959 0.996 0.000 0.000 0.004 0.000
#> SRR1078188 2 0.2929 0.7468 0.000 0.820 0.000 0.180 0.000
#> SRR1080342 2 0.4150 0.3438 0.000 0.612 0.000 0.388 0.000
#> SRR1085358 2 0.0324 0.8276 0.000 0.992 0.000 0.004 0.004
#> SRR1473482 1 0.2464 0.8304 0.892 0.092 0.000 0.004 0.012
#> SRR1452674 1 0.0290 0.8950 0.992 0.000 0.000 0.008 0.000
#> SRR1395874 3 0.0955 0.8910 0.028 0.000 0.968 0.000 0.004
#> SRR1382780 1 0.4848 0.6001 0.696 0.024 0.260 0.004 0.016
#> SRR1361138 2 0.2230 0.7950 0.000 0.884 0.000 0.116 0.000
#> SRR1319242 2 0.5166 0.4747 0.000 0.604 0.348 0.044 0.004
#> SRR1084553 2 0.2966 0.7333 0.000 0.816 0.000 0.184 0.000
#> SRR1498747 3 0.3723 0.7118 0.160 0.024 0.808 0.004 0.004
#> SRR1442213 5 0.4211 0.3836 0.000 0.000 0.360 0.004 0.636
#> SRR1343943 4 0.4249 0.2255 0.000 0.432 0.000 0.568 0.000
#> SRR1458828 2 0.1197 0.8295 0.000 0.952 0.000 0.048 0.000
#> SRR1360280 2 0.0807 0.8310 0.000 0.976 0.000 0.012 0.012
#> SRR1474208 3 0.0162 0.9112 0.000 0.000 0.996 0.004 0.000
#> SRR1498726 3 0.0880 0.8907 0.000 0.000 0.968 0.032 0.000
#> SRR1099857 1 0.2619 0.8386 0.896 0.072 0.004 0.004 0.024
#> SRR1329423 4 0.2782 0.7307 0.048 0.000 0.000 0.880 0.072
#> SRR1074430 2 0.1270 0.8281 0.000 0.948 0.000 0.052 0.000
#> SRR1485848 4 0.0880 0.7703 0.000 0.000 0.032 0.968 0.000
#> SRR1471395 4 0.0566 0.7748 0.012 0.000 0.004 0.984 0.000
#> SRR1096198 4 0.3409 0.6959 0.112 0.000 0.052 0.836 0.000
#> SRR1323234 1 0.1605 0.8692 0.944 0.040 0.004 0.000 0.012
#> SRR1073483 2 0.1205 0.8314 0.000 0.956 0.000 0.040 0.004
#> SRR817817 4 0.5550 0.3073 0.000 0.000 0.076 0.548 0.376
#> SRR1434070 3 0.0162 0.9112 0.000 0.000 0.996 0.004 0.000
#> SRR1100941 3 0.0162 0.9112 0.000 0.000 0.996 0.004 0.000
#> SRR1336682 1 0.0000 0.8963 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.2036 0.8192 0.000 0.920 0.000 0.024 0.056
#> SRR1389454 1 0.0162 0.8956 0.996 0.000 0.000 0.000 0.004
#> SRR1393004 1 0.0000 0.8963 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 2 0.2102 0.7928 0.012 0.916 0.000 0.004 0.068
#> SRR1447192 1 0.0000 0.8963 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 5 0.0566 0.8424 0.004 0.000 0.000 0.012 0.984
#> SRR1097929 3 0.0324 0.9080 0.000 0.000 0.992 0.004 0.004
#> SRR1075850 2 0.4211 0.4759 0.000 0.636 0.360 0.004 0.000
#> SRR1358126 5 0.2969 0.7842 0.128 0.000 0.000 0.020 0.852
#> SRR1121009 3 0.3508 0.6093 0.252 0.000 0.748 0.000 0.000
#> SRR1321720 1 0.4564 0.4397 0.612 0.372 0.000 0.000 0.016
#> SRR810105 2 0.2492 0.7706 0.076 0.900 0.004 0.004 0.016
#> SRR1489007 4 0.1851 0.7743 0.000 0.088 0.000 0.912 0.000
#> SRR1361838 4 0.0324 0.7747 0.004 0.000 0.004 0.992 0.000
#> SRR1475086 4 0.2020 0.7698 0.000 0.100 0.000 0.900 0.000
#> SRR1468226 2 0.1282 0.8306 0.000 0.952 0.000 0.044 0.004
#> SRR1069466 4 0.2891 0.7302 0.000 0.176 0.000 0.824 0.000
#> SRR1078114 3 0.3837 0.5294 0.000 0.000 0.692 0.308 0.000
#> SRR1319991 4 0.0880 0.7775 0.000 0.032 0.000 0.968 0.000
#> SRR1374543 1 0.0000 0.8963 1.000 0.000 0.000 0.000 0.000
#> SRR1383237 4 0.3707 0.5566 0.000 0.000 0.000 0.716 0.284
#> SRR1486215 5 0.3612 0.6097 0.268 0.000 0.000 0.000 0.732
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.0508 0.83817 0.000 0.000 0.984 0.004 0.012 0.000
#> SRR1499584 2 0.2201 0.63888 0.000 0.900 0.000 0.052 0.048 0.000
#> SRR815256 2 0.3742 0.51911 0.000 0.648 0.000 0.004 0.348 0.000
#> SRR1077996 2 0.4552 0.30301 0.000 0.592 0.000 0.364 0.044 0.000
#> SRR1338468 1 0.0603 0.90273 0.980 0.016 0.000 0.004 0.000 0.000
#> SRR1394428 5 0.1267 0.68626 0.000 0.060 0.000 0.000 0.940 0.000
#> SRR1431104 4 0.1088 0.77812 0.000 0.024 0.000 0.960 0.016 0.000
#> SRR1082128 5 0.0984 0.67832 0.012 0.012 0.000 0.008 0.968 0.000
#> SRR1078212 3 0.0000 0.83964 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1458401 1 0.4745 0.53732 0.672 0.204 0.000 0.000 0.124 0.000
#> SRR1447281 1 0.0622 0.90468 0.980 0.000 0.000 0.008 0.012 0.000
#> SRR1339258 4 0.4025 0.33140 0.000 0.008 0.000 0.576 0.000 0.416
#> SRR1105106 6 0.0291 0.74602 0.000 0.004 0.000 0.004 0.000 0.992
#> SRR1105130 2 0.3979 0.49476 0.000 0.628 0.000 0.012 0.360 0.000
#> SRR1419039 1 0.0000 0.90550 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.83964 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1309745 4 0.5253 0.36390 0.000 0.128 0.000 0.576 0.296 0.000
#> SRR1079408 3 0.5454 0.47480 0.156 0.000 0.552 0.000 0.292 0.000
#> SRR1445550 4 0.2214 0.77159 0.000 0.092 0.000 0.892 0.004 0.012
#> SRR820026 2 0.6104 0.08824 0.000 0.376 0.328 0.000 0.296 0.000
#> SRR1353686 1 0.2792 0.83757 0.876 0.076 0.004 0.028 0.016 0.000
#> SRR1475466 1 0.0146 0.90567 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1096315 3 0.0146 0.83954 0.000 0.004 0.996 0.000 0.000 0.000
#> SRR1479826 5 0.5992 0.00396 0.236 0.004 0.000 0.000 0.476 0.284
#> SRR1479450 4 0.2454 0.73814 0.104 0.016 0.000 0.876 0.004 0.000
#> SRR1094097 1 0.0935 0.89382 0.964 0.000 0.000 0.032 0.004 0.000
#> SRR1071737 2 0.2743 0.65633 0.000 0.828 0.000 0.008 0.164 0.000
#> SRR1433989 1 0.0603 0.90268 0.980 0.000 0.000 0.016 0.004 0.000
#> SRR1077159 5 0.2445 0.65870 0.008 0.120 0.004 0.000 0.868 0.000
#> SRR1330082 1 0.2053 0.82814 0.888 0.000 0.000 0.108 0.004 0.000
#> SRR1079874 4 0.3550 0.71420 0.004 0.232 0.008 0.752 0.004 0.000
#> SRR1387132 4 0.3848 0.63199 0.000 0.040 0.000 0.736 0.224 0.000
#> SRR1095261 3 0.2051 0.78883 0.000 0.096 0.896 0.004 0.004 0.000
#> SRR818646 5 0.2765 0.62326 0.004 0.024 0.000 0.104 0.864 0.004
#> SRR1313991 1 0.0632 0.90181 0.976 0.000 0.000 0.024 0.000 0.000
#> SRR1363718 2 0.4556 0.62409 0.000 0.696 0.000 0.116 0.188 0.000
#> SRR1381372 6 0.0000 0.74782 0.000 0.000 0.000 0.000 0.000 1.000
#> SRR1388257 6 0.0146 0.74716 0.000 0.000 0.000 0.004 0.000 0.996
#> SRR818139 1 0.0291 0.90547 0.992 0.000 0.000 0.004 0.004 0.000
#> SRR1078188 2 0.0692 0.61927 0.000 0.976 0.000 0.004 0.020 0.000
#> SRR1080342 2 0.3699 0.63555 0.000 0.752 0.000 0.036 0.212 0.000
#> SRR1085358 5 0.1588 0.68408 0.000 0.072 0.004 0.000 0.924 0.000
#> SRR1473482 1 0.1196 0.88881 0.952 0.008 0.000 0.000 0.040 0.000
#> SRR1452674 1 0.0260 0.90566 0.992 0.000 0.000 0.008 0.000 0.000
#> SRR1395874 3 0.2754 0.76263 0.116 0.008 0.860 0.004 0.012 0.000
#> SRR1382780 3 0.5396 0.48594 0.148 0.000 0.560 0.000 0.292 0.000
#> SRR1361138 5 0.5654 0.22372 0.000 0.192 0.000 0.284 0.524 0.000
#> SRR1319242 2 0.5610 0.44224 0.000 0.576 0.264 0.012 0.148 0.000
#> SRR1084553 2 0.3136 0.65050 0.000 0.796 0.000 0.016 0.188 0.000
#> SRR1498747 3 0.2320 0.77851 0.004 0.000 0.864 0.000 0.132 0.000
#> SRR1442213 6 0.3955 0.09919 0.000 0.000 0.436 0.000 0.004 0.560
#> SRR1343943 2 0.4745 0.58863 0.000 0.676 0.000 0.188 0.136 0.000
#> SRR1458828 2 0.2234 0.64907 0.000 0.872 0.000 0.004 0.124 0.000
#> SRR1360280 5 0.3772 0.39383 0.000 0.296 0.000 0.004 0.692 0.008
#> SRR1474208 3 0.0000 0.83964 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1498726 3 0.0291 0.83916 0.000 0.000 0.992 0.004 0.004 0.000
#> SRR1099857 1 0.3606 0.62021 0.708 0.000 0.004 0.000 0.284 0.004
#> SRR1329423 4 0.0993 0.77473 0.000 0.000 0.000 0.964 0.012 0.024
#> SRR1074430 5 0.4453 0.07824 0.000 0.400 0.000 0.032 0.568 0.000
#> SRR1485848 4 0.4648 0.63985 0.000 0.312 0.044 0.636 0.004 0.004
#> SRR1471395 4 0.3163 0.73426 0.004 0.212 0.000 0.780 0.004 0.000
#> SRR1096198 4 0.5560 0.59336 0.168 0.084 0.068 0.672 0.008 0.000
#> SRR1323234 1 0.0547 0.90194 0.980 0.000 0.000 0.000 0.020 0.000
#> SRR1073483 5 0.2445 0.66050 0.000 0.108 0.000 0.020 0.872 0.000
#> SRR817817 6 0.6113 0.43146 0.000 0.228 0.088 0.100 0.000 0.584
#> SRR1434070 3 0.0777 0.83474 0.000 0.024 0.972 0.000 0.004 0.000
#> SRR1100941 3 0.1674 0.80946 0.000 0.068 0.924 0.004 0.004 0.000
#> SRR1336682 1 0.0622 0.90468 0.980 0.000 0.000 0.008 0.012 0.000
#> SRR1077211 2 0.5711 0.27748 0.000 0.472 0.000 0.004 0.380 0.144
#> SRR1389454 1 0.0000 0.90550 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.90550 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1086369 5 0.1801 0.67091 0.000 0.016 0.000 0.004 0.924 0.056
#> SRR1447192 1 0.0146 0.90598 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1459147 6 0.0000 0.74782 0.000 0.000 0.000 0.000 0.000 1.000
#> SRR1097929 3 0.1075 0.82735 0.000 0.000 0.952 0.000 0.048 0.000
#> SRR1075850 2 0.1625 0.61257 0.000 0.928 0.012 0.000 0.060 0.000
#> SRR1358126 6 0.2933 0.64353 0.200 0.000 0.000 0.004 0.000 0.796
#> SRR1121009 3 0.3376 0.64878 0.220 0.000 0.764 0.000 0.016 0.000
#> SRR1321720 1 0.4841 0.06414 0.508 0.056 0.000 0.000 0.436 0.000
#> SRR810105 5 0.5002 0.43598 0.136 0.228 0.000 0.000 0.636 0.000
#> SRR1489007 4 0.2747 0.74826 0.000 0.044 0.000 0.860 0.096 0.000
#> SRR1361838 4 0.2504 0.76132 0.004 0.136 0.000 0.856 0.004 0.000
#> SRR1475086 2 0.4131 0.25959 0.000 0.624 0.000 0.356 0.020 0.000
#> SRR1468226 2 0.4274 0.44867 0.000 0.600 0.000 0.012 0.380 0.008
#> SRR1069466 4 0.4164 0.65419 0.000 0.124 0.000 0.744 0.132 0.000
#> SRR1078114 3 0.5577 0.42169 0.004 0.228 0.588 0.176 0.004 0.000
#> SRR1319991 4 0.1232 0.77970 0.000 0.024 0.000 0.956 0.016 0.004
#> SRR1374543 1 0.1812 0.85901 0.912 0.000 0.000 0.008 0.080 0.000
#> SRR1383237 4 0.2257 0.74573 0.000 0.000 0.000 0.876 0.008 0.116
#> SRR1486215 6 0.3789 0.25884 0.416 0.000 0.000 0.000 0.000 0.584
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["CV", "hclust"]
# you can also extract it by
# res = res_list["CV:hclust"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'CV' method.
#> Subgroups are detected by 'hclust' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.950 0.981 0.2429 0.766 0.766
#> 3 3 0.497 0.848 0.893 1.1415 0.752 0.677
#> 4 4 0.438 0.563 0.716 0.3112 0.803 0.625
#> 5 5 0.508 0.672 0.744 0.0877 0.777 0.418
#> 6 6 0.547 0.553 0.737 0.0376 0.911 0.650
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.946 1.000 0.000
#> SRR1499584 2 0.0000 0.984 0.000 1.000
#> SRR815256 2 0.0000 0.984 0.000 1.000
#> SRR1077996 2 0.0000 0.984 0.000 1.000
#> SRR1338468 2 0.0376 0.981 0.004 0.996
#> SRR1394428 2 0.0000 0.984 0.000 1.000
#> SRR1431104 2 0.0000 0.984 0.000 1.000
#> SRR1082128 2 0.0000 0.984 0.000 1.000
#> SRR1078212 1 0.0000 0.946 1.000 0.000
#> SRR1458401 2 0.0376 0.981 0.004 0.996
#> SRR1447281 2 0.0000 0.984 0.000 1.000
#> SRR1339258 2 0.0000 0.984 0.000 1.000
#> SRR1105106 2 0.0000 0.984 0.000 1.000
#> SRR1105130 2 0.0000 0.984 0.000 1.000
#> SRR1419039 2 0.0000 0.984 0.000 1.000
#> SRR1079213 1 0.0000 0.946 1.000 0.000
#> SRR1309745 2 0.0000 0.984 0.000 1.000
#> SRR1079408 1 0.0000 0.946 1.000 0.000
#> SRR1445550 2 0.0000 0.984 0.000 1.000
#> SRR820026 2 0.1184 0.971 0.016 0.984
#> SRR1353686 2 0.0376 0.981 0.004 0.996
#> SRR1475466 2 0.0000 0.984 0.000 1.000
#> SRR1096315 1 0.0672 0.941 0.992 0.008
#> SRR1479826 2 0.0672 0.977 0.008 0.992
#> SRR1479450 2 0.0000 0.984 0.000 1.000
#> SRR1094097 2 0.0000 0.984 0.000 1.000
#> SRR1071737 2 0.0000 0.984 0.000 1.000
#> SRR1433989 2 0.0000 0.984 0.000 1.000
#> SRR1077159 2 0.0376 0.981 0.004 0.996
#> SRR1330082 2 0.0000 0.984 0.000 1.000
#> SRR1079874 2 0.0000 0.984 0.000 1.000
#> SRR1387132 2 0.0000 0.984 0.000 1.000
#> SRR1095261 2 0.9732 0.284 0.404 0.596
#> SRR818646 2 0.0000 0.984 0.000 1.000
#> SRR1313991 2 0.0000 0.984 0.000 1.000
#> SRR1363718 2 0.0000 0.984 0.000 1.000
#> SRR1381372 2 0.0000 0.984 0.000 1.000
#> SRR1388257 2 0.0000 0.984 0.000 1.000
#> SRR818139 2 0.0000 0.984 0.000 1.000
#> SRR1078188 2 0.0000 0.984 0.000 1.000
#> SRR1080342 2 0.0000 0.984 0.000 1.000
#> SRR1085358 2 0.0376 0.981 0.004 0.996
#> SRR1473482 2 0.0376 0.981 0.004 0.996
#> SRR1452674 2 0.0000 0.984 0.000 1.000
#> SRR1395874 1 0.9754 0.311 0.592 0.408
#> SRR1382780 1 0.0000 0.946 1.000 0.000
#> SRR1361138 2 0.0000 0.984 0.000 1.000
#> SRR1319242 2 0.0000 0.984 0.000 1.000
#> SRR1084553 2 0.0000 0.984 0.000 1.000
#> SRR1498747 2 0.8267 0.629 0.260 0.740
#> SRR1442213 1 0.0000 0.946 1.000 0.000
#> SRR1343943 2 0.0000 0.984 0.000 1.000
#> SRR1458828 2 0.0000 0.984 0.000 1.000
#> SRR1360280 2 0.0000 0.984 0.000 1.000
#> SRR1474208 1 0.0000 0.946 1.000 0.000
#> SRR1498726 2 0.0376 0.981 0.004 0.996
#> SRR1099857 2 0.0376 0.981 0.004 0.996
#> SRR1329423 2 0.0000 0.984 0.000 1.000
#> SRR1074430 2 0.0000 0.984 0.000 1.000
#> SRR1485848 2 0.0000 0.984 0.000 1.000
#> SRR1471395 2 0.0000 0.984 0.000 1.000
#> SRR1096198 2 0.0000 0.984 0.000 1.000
#> SRR1323234 2 0.0376 0.981 0.004 0.996
#> SRR1073483 2 0.0000 0.984 0.000 1.000
#> SRR817817 2 0.0000 0.984 0.000 1.000
#> SRR1434070 1 0.0000 0.946 1.000 0.000
#> SRR1100941 2 0.9795 0.247 0.416 0.584
#> SRR1336682 2 0.0000 0.984 0.000 1.000
#> SRR1077211 2 0.0000 0.984 0.000 1.000
#> SRR1389454 2 0.0000 0.984 0.000 1.000
#> SRR1393004 2 0.0000 0.984 0.000 1.000
#> SRR1086369 2 0.0000 0.984 0.000 1.000
#> SRR1447192 2 0.0000 0.984 0.000 1.000
#> SRR1459147 2 0.0000 0.984 0.000 1.000
#> SRR1097929 1 0.0000 0.946 1.000 0.000
#> SRR1075850 2 0.0376 0.981 0.004 0.996
#> SRR1358126 2 0.0000 0.984 0.000 1.000
#> SRR1121009 1 0.6438 0.791 0.836 0.164
#> SRR1321720 2 0.0376 0.981 0.004 0.996
#> SRR810105 2 0.0376 0.981 0.004 0.996
#> SRR1489007 2 0.0000 0.984 0.000 1.000
#> SRR1361838 2 0.0000 0.984 0.000 1.000
#> SRR1475086 2 0.0000 0.984 0.000 1.000
#> SRR1468226 2 0.0000 0.984 0.000 1.000
#> SRR1069466 2 0.0000 0.984 0.000 1.000
#> SRR1078114 2 0.0000 0.984 0.000 1.000
#> SRR1319991 2 0.0000 0.984 0.000 1.000
#> SRR1374543 2 0.0000 0.984 0.000 1.000
#> SRR1383237 2 0.0000 0.984 0.000 1.000
#> SRR1486215 2 0.0000 0.984 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.0592 0.934 0.012 0.000 0.988
#> SRR1499584 2 0.1529 0.883 0.040 0.960 0.000
#> SRR815256 2 0.0237 0.874 0.004 0.996 0.000
#> SRR1077996 2 0.1529 0.883 0.040 0.960 0.000
#> SRR1338468 2 0.4575 0.783 0.184 0.812 0.004
#> SRR1394428 2 0.1964 0.882 0.056 0.944 0.000
#> SRR1431104 2 0.5465 0.728 0.288 0.712 0.000
#> SRR1082128 2 0.2959 0.879 0.100 0.900 0.000
#> SRR1078212 3 0.0000 0.939 0.000 0.000 1.000
#> SRR1458401 2 0.1647 0.871 0.036 0.960 0.004
#> SRR1447281 1 0.1753 0.960 0.952 0.048 0.000
#> SRR1339258 2 0.2261 0.880 0.068 0.932 0.000
#> SRR1105106 2 0.2261 0.880 0.068 0.932 0.000
#> SRR1105130 2 0.2356 0.883 0.072 0.928 0.000
#> SRR1419039 1 0.2711 0.921 0.912 0.088 0.000
#> SRR1079213 3 0.0000 0.939 0.000 0.000 1.000
#> SRR1309745 2 0.1643 0.883 0.044 0.956 0.000
#> SRR1079408 3 0.0000 0.939 0.000 0.000 1.000
#> SRR1445550 2 0.3816 0.855 0.148 0.852 0.000
#> SRR820026 2 0.2063 0.855 0.044 0.948 0.008
#> SRR1353686 2 0.5815 0.684 0.304 0.692 0.004
#> SRR1475466 1 0.1753 0.960 0.952 0.048 0.000
#> SRR1096315 3 0.0592 0.934 0.012 0.000 0.988
#> SRR1479826 2 0.2165 0.858 0.064 0.936 0.000
#> SRR1479450 2 0.5397 0.737 0.280 0.720 0.000
#> SRR1094097 1 0.1753 0.960 0.952 0.048 0.000
#> SRR1071737 2 0.0592 0.878 0.012 0.988 0.000
#> SRR1433989 1 0.1753 0.960 0.952 0.048 0.000
#> SRR1077159 2 0.2096 0.878 0.052 0.944 0.004
#> SRR1330082 1 0.1753 0.960 0.952 0.048 0.000
#> SRR1079874 2 0.3816 0.855 0.148 0.852 0.000
#> SRR1387132 2 0.2959 0.878 0.100 0.900 0.000
#> SRR1095261 2 0.9167 0.169 0.148 0.460 0.392
#> SRR818646 2 0.2711 0.881 0.088 0.912 0.000
#> SRR1313991 1 0.1753 0.960 0.952 0.048 0.000
#> SRR1363718 2 0.0747 0.879 0.016 0.984 0.000
#> SRR1381372 2 0.2959 0.872 0.100 0.900 0.000
#> SRR1388257 2 0.2878 0.874 0.096 0.904 0.000
#> SRR818139 1 0.1753 0.960 0.952 0.048 0.000
#> SRR1078188 2 0.0592 0.878 0.012 0.988 0.000
#> SRR1080342 2 0.0747 0.879 0.016 0.984 0.000
#> SRR1085358 2 0.1525 0.878 0.032 0.964 0.004
#> SRR1473482 2 0.1647 0.871 0.036 0.960 0.004
#> SRR1452674 1 0.1753 0.960 0.952 0.048 0.000
#> SRR1395874 3 0.8734 0.363 0.168 0.248 0.584
#> SRR1382780 3 0.0000 0.939 0.000 0.000 1.000
#> SRR1361138 2 0.2356 0.883 0.072 0.928 0.000
#> SRR1319242 2 0.3038 0.879 0.104 0.896 0.000
#> SRR1084553 2 0.1031 0.881 0.024 0.976 0.000
#> SRR1498747 2 0.8399 0.506 0.136 0.608 0.256
#> SRR1442213 3 0.0000 0.939 0.000 0.000 1.000
#> SRR1343943 2 0.2356 0.879 0.072 0.928 0.000
#> SRR1458828 2 0.1411 0.879 0.036 0.964 0.000
#> SRR1360280 2 0.0237 0.874 0.004 0.996 0.000
#> SRR1474208 3 0.0000 0.939 0.000 0.000 1.000
#> SRR1498726 2 0.5529 0.732 0.296 0.704 0.000
#> SRR1099857 2 0.3918 0.829 0.140 0.856 0.004
#> SRR1329423 2 0.3752 0.857 0.144 0.856 0.000
#> SRR1074430 2 0.1860 0.883 0.052 0.948 0.000
#> SRR1485848 2 0.3816 0.855 0.148 0.852 0.000
#> SRR1471395 2 0.3816 0.855 0.148 0.852 0.000
#> SRR1096198 2 0.5397 0.738 0.280 0.720 0.000
#> SRR1323234 2 0.3918 0.829 0.140 0.856 0.004
#> SRR1073483 2 0.1860 0.883 0.052 0.948 0.000
#> SRR817817 2 0.4346 0.832 0.184 0.816 0.000
#> SRR1434070 3 0.0000 0.939 0.000 0.000 1.000
#> SRR1100941 2 0.9098 0.146 0.140 0.456 0.404
#> SRR1336682 1 0.1753 0.960 0.952 0.048 0.000
#> SRR1077211 2 0.0424 0.873 0.008 0.992 0.000
#> SRR1389454 1 0.1753 0.960 0.952 0.048 0.000
#> SRR1393004 1 0.1753 0.960 0.952 0.048 0.000
#> SRR1086369 2 0.0424 0.873 0.008 0.992 0.000
#> SRR1447192 1 0.1753 0.960 0.952 0.048 0.000
#> SRR1459147 2 0.3551 0.859 0.132 0.868 0.000
#> SRR1097929 3 0.0000 0.939 0.000 0.000 1.000
#> SRR1075850 2 0.1267 0.878 0.024 0.972 0.004
#> SRR1358126 1 0.4062 0.838 0.836 0.164 0.000
#> SRR1121009 3 0.4235 0.775 0.176 0.000 0.824
#> SRR1321720 2 0.3715 0.866 0.128 0.868 0.004
#> SRR810105 2 0.3918 0.829 0.140 0.856 0.004
#> SRR1489007 2 0.3941 0.856 0.156 0.844 0.000
#> SRR1361838 2 0.3816 0.855 0.148 0.852 0.000
#> SRR1475086 2 0.3879 0.856 0.152 0.848 0.000
#> SRR1468226 2 0.0237 0.874 0.004 0.996 0.000
#> SRR1069466 2 0.1643 0.883 0.044 0.956 0.000
#> SRR1078114 2 0.5397 0.738 0.280 0.720 0.000
#> SRR1319991 2 0.5397 0.737 0.280 0.720 0.000
#> SRR1374543 1 0.2625 0.925 0.916 0.084 0.000
#> SRR1383237 2 0.5327 0.747 0.272 0.728 0.000
#> SRR1486215 1 0.4931 0.704 0.768 0.232 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.0817 0.85167 0.000 0.000 0.976 0.024
#> SRR1499584 2 0.1474 0.57649 0.052 0.948 0.000 0.000
#> SRR815256 2 0.5028 -0.40219 0.004 0.596 0.000 0.400
#> SRR1077996 2 0.1474 0.57649 0.052 0.948 0.000 0.000
#> SRR1338468 4 0.7410 0.74029 0.184 0.328 0.000 0.488
#> SRR1394428 2 0.6201 -0.37884 0.060 0.564 0.000 0.376
#> SRR1431104 2 0.6362 0.53256 0.288 0.616 0.000 0.096
#> SRR1082128 2 0.6746 -0.10731 0.116 0.568 0.000 0.316
#> SRR1078212 3 0.0000 0.85820 0.000 0.000 1.000 0.000
#> SRR1458401 4 0.5816 0.79000 0.036 0.392 0.000 0.572
#> SRR1447281 1 0.0336 0.96508 0.992 0.008 0.000 0.000
#> SRR1339258 2 0.4741 0.53796 0.004 0.668 0.000 0.328
#> SRR1105106 2 0.4741 0.53796 0.004 0.668 0.000 0.328
#> SRR1105130 2 0.4817 0.45606 0.088 0.784 0.000 0.128
#> SRR1419039 1 0.1854 0.92383 0.940 0.048 0.000 0.012
#> SRR1079213 3 0.0000 0.85820 0.000 0.000 1.000 0.000
#> SRR1309745 2 0.1557 0.57789 0.056 0.944 0.000 0.000
#> SRR1079408 3 0.0000 0.85820 0.000 0.000 1.000 0.000
#> SRR1445550 2 0.6492 0.56179 0.144 0.636 0.000 0.220
#> SRR820026 4 0.4819 0.75964 0.004 0.344 0.000 0.652
#> SRR1353686 2 0.7896 0.03954 0.312 0.376 0.000 0.312
#> SRR1475466 1 0.0336 0.96508 0.992 0.008 0.000 0.000
#> SRR1096315 3 0.0707 0.85328 0.000 0.000 0.980 0.020
#> SRR1479826 4 0.5420 0.76890 0.024 0.352 0.000 0.624
#> SRR1479450 2 0.7890 -0.11868 0.292 0.372 0.000 0.336
#> SRR1094097 1 0.0336 0.96508 0.992 0.008 0.000 0.000
#> SRR1071737 2 0.1510 0.54933 0.028 0.956 0.000 0.016
#> SRR1433989 1 0.0336 0.96508 0.992 0.008 0.000 0.000
#> SRR1077159 4 0.5947 0.78699 0.044 0.384 0.000 0.572
#> SRR1330082 1 0.0336 0.96508 0.992 0.008 0.000 0.000
#> SRR1079874 2 0.6492 0.56179 0.144 0.636 0.000 0.220
#> SRR1387132 2 0.2773 0.58450 0.116 0.880 0.000 0.004
#> SRR1095261 3 0.9429 -0.00342 0.112 0.276 0.380 0.232
#> SRR818646 2 0.6750 -0.26036 0.104 0.540 0.000 0.356
#> SRR1313991 1 0.0336 0.96508 0.992 0.008 0.000 0.000
#> SRR1363718 2 0.1510 0.55485 0.028 0.956 0.000 0.016
#> SRR1381372 2 0.5311 0.53181 0.024 0.648 0.000 0.328
#> SRR1388257 2 0.5611 0.46565 0.024 0.564 0.000 0.412
#> SRR818139 1 0.0336 0.96508 0.992 0.008 0.000 0.000
#> SRR1078188 2 0.1510 0.54933 0.028 0.956 0.000 0.016
#> SRR1080342 2 0.1510 0.55485 0.028 0.956 0.000 0.016
#> SRR1085358 4 0.5746 0.78228 0.032 0.396 0.000 0.572
#> SRR1473482 4 0.5816 0.79000 0.036 0.392 0.000 0.572
#> SRR1452674 1 0.0336 0.96508 0.992 0.008 0.000 0.000
#> SRR1395874 3 0.8192 0.40626 0.160 0.168 0.576 0.096
#> SRR1382780 3 0.0000 0.85820 0.000 0.000 1.000 0.000
#> SRR1361138 2 0.4817 0.45606 0.088 0.784 0.000 0.128
#> SRR1319242 2 0.3821 0.55479 0.120 0.840 0.000 0.040
#> SRR1084553 2 0.1545 0.55798 0.040 0.952 0.000 0.008
#> SRR1498747 4 0.9530 0.47516 0.116 0.280 0.252 0.352
#> SRR1442213 3 0.0000 0.85820 0.000 0.000 1.000 0.000
#> SRR1343943 2 0.4697 0.54980 0.008 0.696 0.000 0.296
#> SRR1458828 2 0.2892 0.50065 0.036 0.896 0.000 0.068
#> SRR1360280 2 0.5028 -0.40219 0.004 0.596 0.000 0.400
#> SRR1474208 3 0.0188 0.85741 0.000 0.000 0.996 0.004
#> SRR1498726 4 0.7877 0.07879 0.280 0.356 0.000 0.364
#> SRR1099857 4 0.7146 0.77482 0.148 0.336 0.000 0.516
#> SRR1329423 2 0.6509 0.55959 0.140 0.632 0.000 0.228
#> SRR1074430 2 0.2300 0.57319 0.064 0.920 0.000 0.016
#> SRR1485848 2 0.6492 0.56179 0.144 0.636 0.000 0.220
#> SRR1471395 2 0.6492 0.56179 0.144 0.636 0.000 0.220
#> SRR1096198 2 0.6340 0.53362 0.284 0.620 0.000 0.096
#> SRR1323234 4 0.7146 0.77482 0.148 0.336 0.000 0.516
#> SRR1073483 2 0.2300 0.57319 0.064 0.920 0.000 0.016
#> SRR817817 2 0.7001 0.51648 0.180 0.576 0.000 0.244
#> SRR1434070 3 0.0000 0.85820 0.000 0.000 1.000 0.000
#> SRR1100941 3 0.9368 0.02572 0.108 0.272 0.392 0.228
#> SRR1336682 1 0.0336 0.96508 0.992 0.008 0.000 0.000
#> SRR1077211 2 0.4920 -0.28007 0.004 0.628 0.000 0.368
#> SRR1389454 1 0.0336 0.96508 0.992 0.008 0.000 0.000
#> SRR1393004 1 0.0336 0.96508 0.992 0.008 0.000 0.000
#> SRR1086369 2 0.5193 -0.43175 0.008 0.580 0.000 0.412
#> SRR1447192 1 0.0336 0.96508 0.992 0.008 0.000 0.000
#> SRR1459147 2 0.5936 0.51781 0.056 0.620 0.000 0.324
#> SRR1097929 3 0.0000 0.85820 0.000 0.000 1.000 0.000
#> SRR1075850 4 0.5560 0.78556 0.024 0.392 0.000 0.584
#> SRR1358126 1 0.3919 0.83558 0.840 0.104 0.000 0.056
#> SRR1121009 3 0.4004 0.71091 0.164 0.000 0.812 0.024
#> SRR1321720 4 0.7214 0.66580 0.144 0.380 0.000 0.476
#> SRR810105 4 0.7146 0.77482 0.148 0.336 0.000 0.516
#> SRR1489007 2 0.3494 0.58346 0.172 0.824 0.000 0.004
#> SRR1361838 2 0.6492 0.56179 0.144 0.636 0.000 0.220
#> SRR1475086 2 0.3636 0.57561 0.172 0.820 0.000 0.008
#> SRR1468226 2 0.5150 -0.39273 0.008 0.596 0.000 0.396
#> SRR1069466 2 0.1557 0.57789 0.056 0.944 0.000 0.000
#> SRR1078114 2 0.6340 0.53362 0.284 0.620 0.000 0.096
#> SRR1319991 2 0.7890 -0.11868 0.292 0.372 0.000 0.336
#> SRR1374543 1 0.1706 0.93650 0.948 0.016 0.000 0.036
#> SRR1383237 2 0.6245 0.54478 0.268 0.636 0.000 0.096
#> SRR1486215 1 0.4332 0.71183 0.792 0.176 0.000 0.032
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.2361 0.8806 0.000 0.096 0.892 0.012 0.000
#> SRR1499584 2 0.5355 0.7004 0.036 0.596 0.000 0.016 0.352
#> SRR815256 5 0.4205 0.5104 0.004 0.164 0.000 0.056 0.776
#> SRR1077996 2 0.5355 0.7004 0.036 0.596 0.000 0.016 0.352
#> SRR1338468 5 0.3318 0.6104 0.180 0.012 0.000 0.000 0.808
#> SRR1394428 5 0.5071 0.4649 0.048 0.192 0.000 0.036 0.724
#> SRR1431104 2 0.5603 0.4384 0.228 0.672 0.000 0.040 0.060
#> SRR1082128 5 0.6335 0.2367 0.104 0.244 0.000 0.044 0.608
#> SRR1078212 3 0.0404 0.9176 0.000 0.012 0.988 0.000 0.000
#> SRR1458401 5 0.0880 0.6463 0.032 0.000 0.000 0.000 0.968
#> SRR1447281 1 0.0000 0.9669 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.3318 0.7750 0.000 0.180 0.000 0.808 0.012
#> SRR1105106 4 0.3318 0.7750 0.000 0.180 0.000 0.808 0.012
#> SRR1105130 2 0.6264 0.5165 0.072 0.456 0.000 0.028 0.444
#> SRR1419039 1 0.1568 0.9337 0.944 0.020 0.000 0.036 0.000
#> SRR1079213 3 0.0162 0.9186 0.000 0.004 0.996 0.000 0.000
#> SRR1309745 2 0.5483 0.7015 0.040 0.596 0.000 0.020 0.344
#> SRR1079408 3 0.0162 0.9186 0.000 0.004 0.996 0.000 0.000
#> SRR1445550 4 0.5653 0.8135 0.140 0.196 0.000 0.656 0.008
#> SRR820026 5 0.2625 0.6098 0.000 0.108 0.000 0.016 0.876
#> SRR1353686 5 0.8451 -0.0548 0.284 0.168 0.000 0.232 0.316
#> SRR1475466 1 0.0000 0.9669 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.2408 0.8847 0.000 0.092 0.892 0.016 0.000
#> SRR1479826 5 0.3314 0.6185 0.020 0.108 0.000 0.020 0.852
#> SRR1479450 5 0.6819 0.1725 0.208 0.364 0.000 0.008 0.420
#> SRR1094097 1 0.0000 0.9669 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.4620 0.6665 0.016 0.592 0.000 0.000 0.392
#> SRR1433989 1 0.0000 0.9669 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.1872 0.6455 0.020 0.052 0.000 0.000 0.928
#> SRR1330082 1 0.0000 0.9669 1.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.5740 0.8087 0.140 0.208 0.000 0.644 0.008
#> SRR1387132 2 0.6064 0.6806 0.092 0.596 0.000 0.024 0.288
#> SRR1095261 2 0.8281 -0.1522 0.068 0.380 0.276 0.020 0.256
#> SRR818646 5 0.5953 0.3539 0.088 0.204 0.000 0.048 0.660
#> SRR1313991 1 0.0162 0.9647 0.996 0.004 0.000 0.000 0.000
#> SRR1363718 2 0.4759 0.6744 0.016 0.592 0.000 0.004 0.388
#> SRR1381372 4 0.3599 0.7340 0.020 0.160 0.000 0.812 0.008
#> SRR1388257 4 0.5867 0.6263 0.020 0.168 0.000 0.656 0.156
#> SRR818139 1 0.0000 0.9669 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.4620 0.6665 0.016 0.592 0.000 0.000 0.392
#> SRR1080342 2 0.4759 0.6744 0.016 0.592 0.000 0.004 0.388
#> SRR1085358 5 0.1626 0.6466 0.016 0.044 0.000 0.000 0.940
#> SRR1473482 5 0.0880 0.6463 0.032 0.000 0.000 0.000 0.968
#> SRR1452674 1 0.0162 0.9647 0.996 0.004 0.000 0.000 0.000
#> SRR1395874 3 0.7702 0.4140 0.112 0.192 0.508 0.004 0.184
#> SRR1382780 3 0.0162 0.9186 0.000 0.004 0.996 0.000 0.000
#> SRR1361138 2 0.6264 0.5165 0.072 0.456 0.000 0.028 0.444
#> SRR1319242 2 0.5808 0.6591 0.084 0.568 0.000 0.008 0.340
#> SRR1084553 2 0.4675 0.6783 0.020 0.600 0.000 0.000 0.380
#> SRR1498747 5 0.7065 0.3951 0.076 0.156 0.208 0.000 0.560
#> SRR1442213 3 0.0162 0.9186 0.000 0.004 0.996 0.000 0.000
#> SRR1343943 4 0.4402 0.7560 0.000 0.204 0.000 0.740 0.056
#> SRR1458828 2 0.4865 0.5873 0.016 0.536 0.000 0.004 0.444
#> SRR1360280 5 0.4205 0.5104 0.004 0.164 0.000 0.056 0.776
#> SRR1474208 3 0.0671 0.9167 0.000 0.016 0.980 0.004 0.000
#> SRR1498726 5 0.6871 0.1897 0.196 0.384 0.000 0.012 0.408
#> SRR1099857 5 0.2953 0.6327 0.144 0.012 0.000 0.000 0.844
#> SRR1329423 4 0.5355 0.8129 0.140 0.160 0.000 0.692 0.008
#> SRR1074430 2 0.5638 0.6956 0.048 0.580 0.000 0.020 0.352
#> SRR1485848 4 0.5740 0.8087 0.140 0.208 0.000 0.644 0.008
#> SRR1471395 4 0.5653 0.8135 0.140 0.196 0.000 0.656 0.008
#> SRR1096198 2 0.5677 0.4583 0.224 0.668 0.000 0.036 0.072
#> SRR1323234 5 0.2953 0.6327 0.144 0.012 0.000 0.000 0.844
#> SRR1073483 2 0.5638 0.6956 0.048 0.580 0.000 0.020 0.352
#> SRR817817 4 0.7797 0.5980 0.164 0.244 0.000 0.468 0.124
#> SRR1434070 3 0.0510 0.9173 0.000 0.016 0.984 0.000 0.000
#> SRR1100941 2 0.8260 -0.1501 0.064 0.372 0.288 0.020 0.256
#> SRR1336682 1 0.0000 0.9669 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 5 0.4849 0.4603 0.000 0.136 0.000 0.140 0.724
#> SRR1389454 1 0.0000 0.9669 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0162 0.9642 0.996 0.000 0.000 0.000 0.004
#> SRR1086369 5 0.4100 0.5287 0.008 0.148 0.000 0.052 0.792
#> SRR1447192 1 0.0000 0.9669 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 4 0.3590 0.6965 0.036 0.128 0.000 0.828 0.008
#> SRR1097929 3 0.0162 0.9186 0.000 0.004 0.996 0.000 0.000
#> SRR1075850 5 0.0693 0.6446 0.012 0.008 0.000 0.000 0.980
#> SRR1358126 1 0.3506 0.8208 0.824 0.044 0.000 0.132 0.000
#> SRR1121009 3 0.5096 0.7465 0.152 0.100 0.732 0.012 0.004
#> SRR1321720 5 0.4297 0.5886 0.132 0.056 0.000 0.020 0.792
#> SRR810105 5 0.2953 0.6327 0.144 0.012 0.000 0.000 0.844
#> SRR1489007 2 0.6228 0.6454 0.136 0.608 0.000 0.024 0.232
#> SRR1361838 4 0.5740 0.8087 0.140 0.208 0.000 0.644 0.008
#> SRR1475086 2 0.5878 0.6530 0.128 0.616 0.000 0.008 0.248
#> SRR1468226 5 0.4298 0.5038 0.008 0.168 0.000 0.052 0.772
#> SRR1069466 2 0.5483 0.7015 0.040 0.596 0.000 0.020 0.344
#> SRR1078114 2 0.5677 0.4583 0.224 0.668 0.000 0.036 0.072
#> SRR1319991 5 0.6819 0.1725 0.208 0.364 0.000 0.008 0.420
#> SRR1374543 1 0.1547 0.9324 0.948 0.032 0.000 0.004 0.016
#> SRR1383237 2 0.5602 0.4397 0.208 0.684 0.000 0.056 0.052
#> SRR1486215 1 0.4194 0.7660 0.780 0.088 0.000 0.132 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.3330 0.71118 0.000 0.000 0.716 0.000 0.000 0.284
#> SRR1499584 2 0.0993 0.63835 0.024 0.964 0.000 0.012 0.000 0.000
#> SRR815256 2 0.5265 -0.25139 0.000 0.500 0.000 0.100 0.400 0.000
#> SRR1077996 2 0.0993 0.63835 0.024 0.964 0.000 0.012 0.000 0.000
#> SRR1338468 5 0.5620 0.56870 0.168 0.320 0.000 0.000 0.512 0.000
#> SRR1394428 2 0.5642 -0.19756 0.032 0.508 0.000 0.072 0.388 0.000
#> SRR1431104 2 0.6248 0.31611 0.172 0.632 0.000 0.056 0.092 0.048
#> SRR1082128 2 0.6167 0.01052 0.080 0.516 0.000 0.076 0.328 0.000
#> SRR1078212 3 0.2378 0.79426 0.000 0.000 0.848 0.000 0.000 0.152
#> SRR1458401 5 0.4283 0.55340 0.024 0.384 0.000 0.000 0.592 0.000
#> SRR1447281 1 0.0146 0.96520 0.996 0.004 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.1719 0.68444 0.000 0.032 0.000 0.932 0.004 0.032
#> SRR1105106 4 0.1719 0.68444 0.000 0.032 0.000 0.932 0.004 0.032
#> SRR1105130 2 0.4094 0.53808 0.056 0.776 0.000 0.028 0.140 0.000
#> SRR1419039 1 0.1621 0.92909 0.936 0.004 0.000 0.004 0.008 0.048
#> SRR1079213 3 0.0000 0.80283 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1309745 2 0.1168 0.63800 0.028 0.956 0.000 0.016 0.000 0.000
#> SRR1079408 3 0.0146 0.80219 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1445550 4 0.3703 0.75469 0.128 0.060 0.000 0.800 0.012 0.000
#> SRR820026 5 0.4364 0.16335 0.004 0.064 0.000 0.008 0.732 0.192
#> SRR1353686 5 0.7867 -0.07662 0.272 0.188 0.000 0.244 0.288 0.008
#> SRR1475466 1 0.0146 0.96520 0.996 0.004 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.3390 0.70788 0.000 0.000 0.704 0.000 0.000 0.296
#> SRR1479826 5 0.5464 0.25781 0.024 0.112 0.000 0.016 0.668 0.180
#> SRR1479450 5 0.6087 0.06065 0.116 0.348 0.000 0.024 0.504 0.008
#> SRR1094097 1 0.0146 0.96520 0.996 0.004 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0405 0.62102 0.000 0.988 0.000 0.000 0.008 0.004
#> SRR1433989 1 0.0146 0.96520 0.996 0.004 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.3864 0.56615 0.004 0.344 0.000 0.000 0.648 0.004
#> SRR1330082 1 0.0146 0.96520 0.996 0.004 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.3870 0.75215 0.128 0.072 0.000 0.788 0.012 0.000
#> SRR1387132 2 0.2519 0.61261 0.072 0.888 0.000 0.020 0.020 0.000
#> SRR1095261 6 0.7864 0.98280 0.020 0.196 0.100 0.012 0.296 0.376
#> SRR818646 2 0.6082 -0.09513 0.064 0.488 0.000 0.076 0.372 0.000
#> SRR1313991 1 0.0291 0.96303 0.992 0.004 0.000 0.004 0.000 0.000
#> SRR1363718 2 0.0551 0.62743 0.004 0.984 0.000 0.004 0.008 0.000
#> SRR1381372 4 0.5514 0.50863 0.016 0.072 0.000 0.556 0.008 0.348
#> SRR1388257 4 0.7028 0.39168 0.016 0.112 0.000 0.508 0.128 0.236
#> SRR818139 1 0.0146 0.96520 0.996 0.004 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0405 0.62102 0.000 0.988 0.000 0.000 0.008 0.004
#> SRR1080342 2 0.0551 0.62743 0.004 0.984 0.000 0.004 0.008 0.000
#> SRR1085358 5 0.3807 0.55609 0.000 0.368 0.000 0.000 0.628 0.004
#> SRR1473482 5 0.4283 0.55340 0.024 0.384 0.000 0.000 0.592 0.000
#> SRR1452674 1 0.0291 0.96303 0.992 0.004 0.000 0.004 0.000 0.000
#> SRR1395874 3 0.8338 -0.34189 0.056 0.120 0.340 0.008 0.188 0.288
#> SRR1382780 3 0.0146 0.80219 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1361138 2 0.4094 0.53808 0.056 0.776 0.000 0.028 0.140 0.000
#> SRR1319242 2 0.3286 0.59481 0.032 0.848 0.000 0.016 0.092 0.012
#> SRR1084553 2 0.0405 0.62448 0.000 0.988 0.000 0.000 0.004 0.008
#> SRR1498747 5 0.7821 -0.26409 0.048 0.212 0.088 0.004 0.436 0.212
#> SRR1442213 3 0.0363 0.80269 0.000 0.000 0.988 0.000 0.000 0.012
#> SRR1343943 4 0.2588 0.67601 0.000 0.092 0.000 0.876 0.008 0.024
#> SRR1458828 2 0.2044 0.57915 0.008 0.908 0.000 0.004 0.076 0.004
#> SRR1360280 2 0.5265 -0.25139 0.000 0.500 0.000 0.100 0.400 0.000
#> SRR1474208 3 0.2454 0.79227 0.000 0.000 0.840 0.000 0.000 0.160
#> SRR1498726 5 0.5877 -0.00935 0.108 0.320 0.000 0.020 0.544 0.008
#> SRR1099857 5 0.5390 0.58979 0.132 0.328 0.000 0.000 0.540 0.000
#> SRR1329423 4 0.2890 0.74474 0.128 0.024 0.000 0.844 0.004 0.000
#> SRR1074430 2 0.1917 0.63667 0.036 0.928 0.000 0.016 0.016 0.004
#> SRR1485848 4 0.3870 0.75215 0.128 0.072 0.000 0.788 0.012 0.000
#> SRR1471395 4 0.3703 0.75469 0.128 0.060 0.000 0.800 0.012 0.000
#> SRR1096198 2 0.6273 0.32316 0.164 0.632 0.000 0.056 0.100 0.048
#> SRR1323234 5 0.5390 0.58979 0.132 0.328 0.000 0.000 0.540 0.000
#> SRR1073483 2 0.1917 0.63667 0.036 0.928 0.000 0.016 0.016 0.004
#> SRR817817 4 0.6906 0.44523 0.148 0.184 0.000 0.528 0.132 0.008
#> SRR1434070 3 0.2416 0.79340 0.000 0.000 0.844 0.000 0.000 0.156
#> SRR1100941 6 0.7932 0.98288 0.020 0.196 0.112 0.012 0.284 0.376
#> SRR1336682 1 0.0146 0.96520 0.996 0.004 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.6071 -0.33479 0.000 0.416 0.000 0.220 0.360 0.004
#> SRR1389454 1 0.0146 0.96520 0.996 0.004 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0291 0.96243 0.992 0.004 0.000 0.000 0.004 0.000
#> SRR1086369 2 0.5246 -0.28352 0.000 0.488 0.000 0.096 0.416 0.000
#> SRR1447192 1 0.0146 0.96520 0.996 0.004 0.000 0.000 0.000 0.000
#> SRR1459147 4 0.4926 0.47991 0.020 0.016 0.000 0.532 0.008 0.424
#> SRR1097929 3 0.0000 0.80283 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1075850 5 0.3706 0.54562 0.000 0.380 0.000 0.000 0.620 0.000
#> SRR1358126 1 0.3820 0.81111 0.816 0.012 0.000 0.100 0.024 0.048
#> SRR1121009 3 0.5372 0.56411 0.152 0.000 0.624 0.000 0.012 0.212
#> SRR1321720 5 0.5825 0.46225 0.116 0.368 0.000 0.020 0.496 0.000
#> SRR810105 5 0.5390 0.58979 0.132 0.328 0.000 0.000 0.540 0.000
#> SRR1489007 2 0.3408 0.57016 0.112 0.828 0.000 0.024 0.036 0.000
#> SRR1361838 4 0.3870 0.75215 0.128 0.072 0.000 0.788 0.012 0.000
#> SRR1475086 2 0.3552 0.57785 0.068 0.832 0.000 0.016 0.076 0.008
#> SRR1468226 2 0.5223 -0.24062 0.000 0.508 0.000 0.096 0.396 0.000
#> SRR1069466 2 0.1168 0.63800 0.028 0.956 0.000 0.016 0.000 0.000
#> SRR1078114 2 0.6273 0.32316 0.164 0.632 0.000 0.056 0.100 0.048
#> SRR1319991 5 0.6087 0.06065 0.116 0.348 0.000 0.024 0.504 0.008
#> SRR1374543 1 0.1705 0.92739 0.940 0.012 0.000 0.016 0.024 0.008
#> SRR1383237 2 0.6205 0.33183 0.160 0.640 0.000 0.064 0.092 0.044
#> SRR1486215 1 0.3727 0.75909 0.760 0.012 0.000 0.008 0.008 0.212
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["CV", "kmeans"]
# you can also extract it by
# res = res_list["CV:kmeans"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'CV' method.
#> Subgroups are detected by 'kmeans' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.492 0.734 0.869 0.4070 0.530 0.530
#> 3 3 0.679 0.779 0.890 0.4655 0.799 0.648
#> 4 4 0.582 0.521 0.743 0.1959 0.824 0.607
#> 5 5 0.639 0.699 0.795 0.0810 0.836 0.513
#> 6 6 0.752 0.734 0.832 0.0549 0.952 0.778
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 3
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0672 0.7000 0.992 0.008
#> SRR1499584 2 0.0376 0.8992 0.004 0.996
#> SRR815256 2 0.0376 0.8992 0.004 0.996
#> SRR1077996 2 0.0376 0.8992 0.004 0.996
#> SRR1338468 2 0.9850 -0.1555 0.428 0.572
#> SRR1394428 2 0.0376 0.8992 0.004 0.996
#> SRR1431104 2 0.1843 0.8845 0.028 0.972
#> SRR1082128 2 0.0000 0.8983 0.000 1.000
#> SRR1078212 1 0.0672 0.7000 0.992 0.008
#> SRR1458401 2 0.6973 0.6556 0.188 0.812
#> SRR1447281 1 0.9661 0.6648 0.608 0.392
#> SRR1339258 2 0.0672 0.8941 0.008 0.992
#> SRR1105106 2 0.0376 0.8992 0.004 0.996
#> SRR1105130 2 0.0376 0.8992 0.004 0.996
#> SRR1419039 1 0.9661 0.6648 0.608 0.392
#> SRR1079213 1 0.0672 0.7000 0.992 0.008
#> SRR1309745 2 0.0376 0.8992 0.004 0.996
#> SRR1079408 1 0.0672 0.7000 0.992 0.008
#> SRR1445550 2 0.1633 0.8870 0.024 0.976
#> SRR820026 2 0.0376 0.8992 0.004 0.996
#> SRR1353686 2 0.6623 0.6978 0.172 0.828
#> SRR1475466 1 0.9460 0.6764 0.636 0.364
#> SRR1096315 1 0.0672 0.7000 0.992 0.008
#> SRR1479826 2 0.9732 -0.0241 0.404 0.596
#> SRR1479450 2 0.9286 0.2619 0.344 0.656
#> SRR1094097 1 0.9661 0.6648 0.608 0.392
#> SRR1071737 2 0.0376 0.8992 0.004 0.996
#> SRR1433989 1 0.9661 0.6648 0.608 0.392
#> SRR1077159 2 0.0672 0.8975 0.008 0.992
#> SRR1330082 1 0.9661 0.6648 0.608 0.392
#> SRR1079874 2 0.1843 0.8845 0.028 0.972
#> SRR1387132 2 0.0000 0.8983 0.000 1.000
#> SRR1095261 1 0.7056 0.7012 0.808 0.192
#> SRR818646 2 0.0000 0.8983 0.000 1.000
#> SRR1313991 1 0.9661 0.6648 0.608 0.392
#> SRR1363718 2 0.0376 0.8992 0.004 0.996
#> SRR1381372 2 0.0672 0.8941 0.008 0.992
#> SRR1388257 2 0.0672 0.8941 0.008 0.992
#> SRR818139 1 0.9661 0.6648 0.608 0.392
#> SRR1078188 2 0.0376 0.8992 0.004 0.996
#> SRR1080342 2 0.0376 0.8992 0.004 0.996
#> SRR1085358 2 0.5519 0.7454 0.128 0.872
#> SRR1473482 2 0.9286 0.2243 0.344 0.656
#> SRR1452674 1 0.9661 0.6648 0.608 0.392
#> SRR1395874 1 0.5629 0.7115 0.868 0.132
#> SRR1382780 1 0.0672 0.7000 0.992 0.008
#> SRR1361138 2 0.0000 0.8983 0.000 1.000
#> SRR1319242 2 0.0376 0.8992 0.004 0.996
#> SRR1084553 2 0.0376 0.8992 0.004 0.996
#> SRR1498747 1 0.6531 0.7114 0.832 0.168
#> SRR1442213 1 0.0672 0.7000 0.992 0.008
#> SRR1343943 2 0.0376 0.8992 0.004 0.996
#> SRR1458828 2 0.0376 0.8992 0.004 0.996
#> SRR1360280 2 0.0376 0.8992 0.004 0.996
#> SRR1474208 1 0.0672 0.7000 0.992 0.008
#> SRR1498726 2 0.9552 0.1006 0.376 0.624
#> SRR1099857 2 0.9850 -0.1555 0.428 0.572
#> SRR1329423 2 0.1843 0.8845 0.028 0.972
#> SRR1074430 2 0.0376 0.8992 0.004 0.996
#> SRR1485848 2 0.1843 0.8845 0.028 0.972
#> SRR1471395 2 0.1843 0.8845 0.028 0.972
#> SRR1096198 1 0.9661 0.6648 0.608 0.392
#> SRR1323234 1 0.9775 0.6322 0.588 0.412
#> SRR1073483 2 0.0376 0.8992 0.004 0.996
#> SRR817817 2 0.1843 0.8845 0.028 0.972
#> SRR1434070 1 0.4161 0.6650 0.916 0.084
#> SRR1100941 1 0.2423 0.6898 0.960 0.040
#> SRR1336682 1 0.9686 0.6572 0.604 0.396
#> SRR1077211 2 0.0376 0.8992 0.004 0.996
#> SRR1389454 1 0.9661 0.6648 0.608 0.392
#> SRR1393004 1 0.9044 0.6886 0.680 0.320
#> SRR1086369 2 0.0376 0.8992 0.004 0.996
#> SRR1447192 1 0.9661 0.6648 0.608 0.392
#> SRR1459147 2 0.6623 0.7028 0.172 0.828
#> SRR1097929 1 0.0672 0.7000 0.992 0.008
#> SRR1075850 2 0.0938 0.8953 0.012 0.988
#> SRR1358126 2 1.0000 -0.3861 0.496 0.504
#> SRR1121009 1 0.0672 0.7000 0.992 0.008
#> SRR1321720 2 0.0000 0.8983 0.000 1.000
#> SRR810105 2 0.5946 0.7355 0.144 0.856
#> SRR1489007 2 0.0000 0.8983 0.000 1.000
#> SRR1361838 2 0.1843 0.8845 0.028 0.972
#> SRR1475086 2 0.0376 0.8992 0.004 0.996
#> SRR1468226 2 0.0376 0.8992 0.004 0.996
#> SRR1069466 2 0.0376 0.8992 0.004 0.996
#> SRR1078114 1 0.9833 0.6032 0.576 0.424
#> SRR1319991 2 0.0376 0.8964 0.004 0.996
#> SRR1374543 1 0.9661 0.6648 0.608 0.392
#> SRR1383237 2 0.1843 0.8845 0.028 0.972
#> SRR1486215 1 0.9661 0.6648 0.608 0.392
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.1031 0.9437 0.024 0.000 0.976
#> SRR1499584 2 0.0237 0.8685 0.004 0.996 0.000
#> SRR815256 2 0.2339 0.8583 0.048 0.940 0.012
#> SRR1077996 2 0.0237 0.8685 0.004 0.996 0.000
#> SRR1338468 1 0.6497 0.4639 0.648 0.336 0.016
#> SRR1394428 2 0.1878 0.8597 0.044 0.952 0.004
#> SRR1431104 2 0.5621 0.5850 0.308 0.692 0.000
#> SRR1082128 2 0.0592 0.8683 0.012 0.988 0.000
#> SRR1078212 3 0.1031 0.9437 0.024 0.000 0.976
#> SRR1458401 2 0.6295 0.0400 0.472 0.528 0.000
#> SRR1447281 1 0.2066 0.8460 0.940 0.000 0.060
#> SRR1339258 2 0.5435 0.7147 0.192 0.784 0.024
#> SRR1105106 2 0.3083 0.8523 0.060 0.916 0.024
#> SRR1105130 2 0.0000 0.8688 0.000 1.000 0.000
#> SRR1419039 1 0.2066 0.8460 0.940 0.000 0.060
#> SRR1079213 3 0.1031 0.9437 0.024 0.000 0.976
#> SRR1309745 2 0.0475 0.8685 0.004 0.992 0.004
#> SRR1079408 3 0.1031 0.9437 0.024 0.000 0.976
#> SRR1445550 2 0.5517 0.6368 0.268 0.728 0.004
#> SRR820026 2 0.1989 0.8588 0.048 0.948 0.004
#> SRR1353686 1 0.5285 0.5652 0.752 0.244 0.004
#> SRR1475466 1 0.2066 0.8460 0.940 0.000 0.060
#> SRR1096315 3 0.1031 0.9437 0.024 0.000 0.976
#> SRR1479826 2 0.7043 0.0925 0.448 0.532 0.020
#> SRR1479450 1 0.6026 0.3363 0.624 0.376 0.000
#> SRR1094097 1 0.2066 0.8460 0.940 0.000 0.060
#> SRR1071737 2 0.0000 0.8688 0.000 1.000 0.000
#> SRR1433989 1 0.2066 0.8460 0.940 0.000 0.060
#> SRR1077159 2 0.1989 0.8588 0.048 0.948 0.004
#> SRR1330082 1 0.2066 0.8460 0.940 0.000 0.060
#> SRR1079874 2 0.5621 0.5850 0.308 0.692 0.000
#> SRR1387132 2 0.0000 0.8688 0.000 1.000 0.000
#> SRR1095261 3 0.5295 0.7873 0.036 0.156 0.808
#> SRR818646 2 0.1878 0.8597 0.044 0.952 0.004
#> SRR1313991 1 0.2066 0.8460 0.940 0.000 0.060
#> SRR1363718 2 0.0237 0.8685 0.004 0.996 0.000
#> SRR1381372 2 0.3083 0.8523 0.060 0.916 0.024
#> SRR1388257 2 0.3083 0.8523 0.060 0.916 0.024
#> SRR818139 1 0.2066 0.8460 0.940 0.000 0.060
#> SRR1078188 2 0.0000 0.8688 0.000 1.000 0.000
#> SRR1080342 2 0.0237 0.8685 0.004 0.996 0.000
#> SRR1085358 2 0.1989 0.8587 0.048 0.948 0.004
#> SRR1473482 1 0.6172 0.5020 0.680 0.308 0.012
#> SRR1452674 1 0.2066 0.8460 0.940 0.000 0.060
#> SRR1395874 3 0.5402 0.7590 0.028 0.180 0.792
#> SRR1382780 3 0.1031 0.9437 0.024 0.000 0.976
#> SRR1361138 2 0.0000 0.8688 0.000 1.000 0.000
#> SRR1319242 2 0.0237 0.8689 0.004 0.996 0.000
#> SRR1084553 2 0.0000 0.8688 0.000 1.000 0.000
#> SRR1498747 3 0.5559 0.7418 0.028 0.192 0.780
#> SRR1442213 3 0.1031 0.9437 0.024 0.000 0.976
#> SRR1343943 2 0.0661 0.8681 0.008 0.988 0.004
#> SRR1458828 2 0.0592 0.8682 0.012 0.988 0.000
#> SRR1360280 2 0.2063 0.8589 0.044 0.948 0.008
#> SRR1474208 3 0.1129 0.9415 0.020 0.004 0.976
#> SRR1498726 2 0.1620 0.8565 0.024 0.964 0.012
#> SRR1099857 1 0.6809 0.1244 0.524 0.464 0.012
#> SRR1329423 2 0.6008 0.5445 0.332 0.664 0.004
#> SRR1074430 2 0.0000 0.8688 0.000 1.000 0.000
#> SRR1485848 2 0.5621 0.5850 0.308 0.692 0.000
#> SRR1471395 2 0.5845 0.5845 0.308 0.688 0.004
#> SRR1096198 1 0.7124 0.5655 0.672 0.272 0.056
#> SRR1323234 1 0.5677 0.6850 0.792 0.160 0.048
#> SRR1073483 2 0.0000 0.8688 0.000 1.000 0.000
#> SRR817817 2 0.5621 0.5850 0.308 0.692 0.000
#> SRR1434070 3 0.1337 0.9317 0.012 0.016 0.972
#> SRR1100941 3 0.1315 0.9389 0.020 0.008 0.972
#> SRR1336682 1 0.2066 0.8460 0.940 0.000 0.060
#> SRR1077211 2 0.2173 0.8594 0.048 0.944 0.008
#> SRR1389454 1 0.2066 0.8460 0.940 0.000 0.060
#> SRR1393004 1 0.2066 0.8460 0.940 0.000 0.060
#> SRR1086369 2 0.2063 0.8589 0.044 0.948 0.008
#> SRR1447192 1 0.2066 0.8460 0.940 0.000 0.060
#> SRR1459147 1 0.1031 0.7989 0.976 0.000 0.024
#> SRR1097929 3 0.1031 0.9437 0.024 0.000 0.976
#> SRR1075850 2 0.1753 0.8594 0.048 0.952 0.000
#> SRR1358126 1 0.2446 0.8266 0.936 0.012 0.052
#> SRR1121009 3 0.1031 0.9437 0.024 0.000 0.976
#> SRR1321720 2 0.5815 0.5172 0.304 0.692 0.004
#> SRR810105 2 0.4346 0.7266 0.184 0.816 0.000
#> SRR1489007 2 0.0000 0.8688 0.000 1.000 0.000
#> SRR1361838 2 0.5621 0.5850 0.308 0.692 0.000
#> SRR1475086 2 0.0000 0.8688 0.000 1.000 0.000
#> SRR1468226 2 0.1711 0.8646 0.032 0.960 0.008
#> SRR1069466 2 0.0475 0.8685 0.004 0.992 0.004
#> SRR1078114 2 0.7402 0.4690 0.324 0.624 0.052
#> SRR1319991 2 0.0983 0.8661 0.016 0.980 0.004
#> SRR1374543 1 0.2066 0.8460 0.940 0.000 0.060
#> SRR1383237 2 0.5465 0.6110 0.288 0.712 0.000
#> SRR1486215 1 0.2066 0.8460 0.940 0.000 0.060
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.0804 0.90322 0.008 0.000 0.980 0.012
#> SRR1499584 2 0.0188 0.53931 0.000 0.996 0.000 0.004
#> SRR815256 2 0.5203 -0.16482 0.000 0.576 0.008 0.416
#> SRR1077996 2 0.0188 0.53931 0.000 0.996 0.000 0.004
#> SRR1338468 4 0.7331 0.50492 0.260 0.212 0.000 0.528
#> SRR1394428 2 0.4804 -0.20850 0.000 0.616 0.000 0.384
#> SRR1431104 2 0.7045 0.35767 0.148 0.544 0.000 0.308
#> SRR1082128 2 0.0817 0.52549 0.000 0.976 0.000 0.024
#> SRR1078212 3 0.0336 0.90399 0.008 0.000 0.992 0.000
#> SRR1458401 4 0.7092 0.52359 0.148 0.320 0.000 0.532
#> SRR1447281 1 0.0336 0.96570 0.992 0.000 0.008 0.000
#> SRR1339258 2 0.6078 0.34476 0.032 0.552 0.008 0.408
#> SRR1105106 4 0.5588 0.00141 0.008 0.476 0.008 0.508
#> SRR1105130 2 0.0469 0.53202 0.000 0.988 0.000 0.012
#> SRR1419039 1 0.0524 0.96233 0.988 0.000 0.008 0.004
#> SRR1079213 3 0.0336 0.90399 0.008 0.000 0.992 0.000
#> SRR1309745 2 0.0376 0.53819 0.000 0.992 0.004 0.004
#> SRR1079408 3 0.1356 0.90022 0.008 0.000 0.960 0.032
#> SRR1445550 2 0.7020 0.34053 0.124 0.500 0.000 0.376
#> SRR820026 4 0.4790 0.48460 0.000 0.380 0.000 0.620
#> SRR1353686 4 0.4907 0.27407 0.176 0.060 0.000 0.764
#> SRR1475466 1 0.0336 0.96570 0.992 0.000 0.008 0.000
#> SRR1096315 3 0.0336 0.90399 0.008 0.000 0.992 0.000
#> SRR1479826 4 0.4938 0.50029 0.080 0.148 0.000 0.772
#> SRR1479450 2 0.7660 0.23689 0.216 0.428 0.000 0.356
#> SRR1094097 1 0.0336 0.96570 0.992 0.000 0.008 0.000
#> SRR1071737 2 0.1211 0.50587 0.000 0.960 0.000 0.040
#> SRR1433989 1 0.0336 0.96570 0.992 0.000 0.008 0.000
#> SRR1077159 4 0.4898 0.47552 0.000 0.416 0.000 0.584
#> SRR1330082 1 0.0336 0.96570 0.992 0.000 0.008 0.000
#> SRR1079874 2 0.7239 0.34212 0.156 0.500 0.000 0.344
#> SRR1387132 2 0.0000 0.53843 0.000 1.000 0.000 0.000
#> SRR1095261 3 0.4744 0.69615 0.000 0.012 0.704 0.284
#> SRR818646 2 0.4088 0.17028 0.000 0.764 0.004 0.232
#> SRR1313991 1 0.0336 0.96570 0.992 0.000 0.008 0.000
#> SRR1363718 2 0.0188 0.53931 0.000 0.996 0.000 0.004
#> SRR1381372 4 0.5580 0.04959 0.008 0.464 0.008 0.520
#> SRR1388257 4 0.5580 0.04959 0.008 0.464 0.008 0.520
#> SRR818139 1 0.0336 0.96570 0.992 0.000 0.008 0.000
#> SRR1078188 2 0.1211 0.50587 0.000 0.960 0.000 0.040
#> SRR1080342 2 0.0188 0.53931 0.000 0.996 0.000 0.004
#> SRR1085358 4 0.4955 0.46022 0.000 0.444 0.000 0.556
#> SRR1473482 4 0.7180 0.50546 0.264 0.188 0.000 0.548
#> SRR1452674 1 0.0336 0.96570 0.992 0.000 0.008 0.000
#> SRR1395874 3 0.6412 0.56196 0.004 0.084 0.616 0.296
#> SRR1382780 3 0.1356 0.90022 0.008 0.000 0.960 0.032
#> SRR1361138 2 0.0000 0.53843 0.000 1.000 0.000 0.000
#> SRR1319242 2 0.3688 0.25395 0.000 0.792 0.000 0.208
#> SRR1084553 2 0.0707 0.52564 0.000 0.980 0.000 0.020
#> SRR1498747 3 0.6520 0.43623 0.000 0.084 0.552 0.364
#> SRR1442213 3 0.0927 0.90179 0.008 0.000 0.976 0.016
#> SRR1343943 2 0.3402 0.46366 0.000 0.832 0.004 0.164
#> SRR1458828 2 0.4431 0.02559 0.000 0.696 0.000 0.304
#> SRR1360280 2 0.5055 -0.09090 0.000 0.624 0.008 0.368
#> SRR1474208 3 0.0376 0.90304 0.004 0.004 0.992 0.000
#> SRR1498726 4 0.5508 -0.11673 0.020 0.408 0.000 0.572
#> SRR1099857 4 0.7179 0.52881 0.180 0.276 0.000 0.544
#> SRR1329423 2 0.7444 0.32983 0.156 0.480 0.004 0.360
#> SRR1074430 2 0.0336 0.53469 0.000 0.992 0.000 0.008
#> SRR1485848 2 0.7239 0.34212 0.156 0.500 0.000 0.344
#> SRR1471395 2 0.7277 0.33194 0.156 0.484 0.000 0.360
#> SRR1096198 2 0.7986 0.21591 0.228 0.420 0.008 0.344
#> SRR1323234 1 0.3907 0.74769 0.828 0.032 0.000 0.140
#> SRR1073483 2 0.0336 0.53469 0.000 0.992 0.000 0.008
#> SRR817817 2 0.7215 0.34284 0.152 0.500 0.000 0.348
#> SRR1434070 3 0.0336 0.90065 0.000 0.008 0.992 0.000
#> SRR1100941 3 0.3088 0.83072 0.000 0.008 0.864 0.128
#> SRR1336682 1 0.0336 0.96570 0.992 0.000 0.008 0.000
#> SRR1077211 2 0.4877 0.03894 0.000 0.664 0.008 0.328
#> SRR1389454 1 0.0336 0.96570 0.992 0.000 0.008 0.000
#> SRR1393004 1 0.0336 0.96570 0.992 0.000 0.008 0.000
#> SRR1086369 2 0.5263 -0.29805 0.000 0.544 0.008 0.448
#> SRR1447192 1 0.0336 0.96570 0.992 0.000 0.008 0.000
#> SRR1459147 4 0.5648 -0.10383 0.428 0.012 0.008 0.552
#> SRR1097929 3 0.0524 0.90406 0.008 0.000 0.988 0.004
#> SRR1075850 4 0.4961 0.45711 0.000 0.448 0.000 0.552
#> SRR1358126 1 0.4482 0.61258 0.728 0.008 0.000 0.264
#> SRR1121009 3 0.2060 0.87796 0.052 0.000 0.932 0.016
#> SRR1321720 2 0.5959 -0.29438 0.044 0.568 0.000 0.388
#> SRR810105 4 0.5277 0.44778 0.008 0.460 0.000 0.532
#> SRR1489007 2 0.0592 0.53588 0.000 0.984 0.000 0.016
#> SRR1361838 2 0.7239 0.34212 0.156 0.500 0.000 0.344
#> SRR1475086 2 0.0000 0.53843 0.000 1.000 0.000 0.000
#> SRR1468226 2 0.4647 0.09896 0.000 0.704 0.008 0.288
#> SRR1069466 2 0.0376 0.53819 0.000 0.992 0.004 0.004
#> SRR1078114 2 0.7470 0.29721 0.144 0.488 0.008 0.360
#> SRR1319991 2 0.5007 0.38654 0.008 0.636 0.000 0.356
#> SRR1374543 1 0.0336 0.96570 0.992 0.000 0.008 0.000
#> SRR1383237 2 0.6801 0.37215 0.124 0.568 0.000 0.308
#> SRR1486215 1 0.0672 0.96001 0.984 0.000 0.008 0.008
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.2193 0.9014 0.000 0.000 0.912 0.060 0.028
#> SRR1499584 2 0.0609 0.8176 0.000 0.980 0.000 0.020 0.000
#> SRR815256 2 0.6420 0.1644 0.000 0.484 0.000 0.192 0.324
#> SRR1077996 2 0.0609 0.8176 0.000 0.980 0.000 0.020 0.000
#> SRR1338468 5 0.5921 0.7382 0.132 0.156 0.000 0.040 0.672
#> SRR1394428 2 0.4757 0.0741 0.000 0.596 0.000 0.024 0.380
#> SRR1431104 4 0.6007 0.6494 0.072 0.364 0.000 0.544 0.020
#> SRR1082128 2 0.1648 0.8009 0.000 0.940 0.000 0.020 0.040
#> SRR1078212 3 0.0290 0.9047 0.000 0.000 0.992 0.008 0.000
#> SRR1458401 5 0.5821 0.7520 0.108 0.192 0.000 0.032 0.668
#> SRR1447281 1 0.0290 0.9348 0.992 0.000 0.000 0.008 0.000
#> SRR1339258 4 0.5530 0.5386 0.004 0.172 0.000 0.664 0.160
#> SRR1105106 4 0.6541 0.2589 0.000 0.264 0.000 0.480 0.256
#> SRR1105130 2 0.0451 0.8220 0.000 0.988 0.000 0.008 0.004
#> SRR1419039 1 0.0324 0.9341 0.992 0.000 0.000 0.004 0.004
#> SRR1079213 3 0.0290 0.9047 0.000 0.000 0.992 0.008 0.000
#> SRR1309745 2 0.0510 0.8182 0.000 0.984 0.000 0.016 0.000
#> SRR1079408 3 0.2514 0.8828 0.000 0.000 0.896 0.060 0.044
#> SRR1445550 4 0.5053 0.7101 0.060 0.268 0.000 0.668 0.004
#> SRR820026 5 0.3098 0.7411 0.000 0.148 0.000 0.016 0.836
#> SRR1353686 4 0.6349 0.2359 0.088 0.028 0.000 0.520 0.364
#> SRR1475466 1 0.0000 0.9365 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.1469 0.9035 0.000 0.000 0.948 0.036 0.016
#> SRR1479826 5 0.2599 0.6653 0.024 0.028 0.000 0.044 0.904
#> SRR1479450 4 0.6462 0.6623 0.076 0.316 0.000 0.556 0.052
#> SRR1094097 1 0.0000 0.9365 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0693 0.8208 0.000 0.980 0.000 0.008 0.012
#> SRR1433989 1 0.0162 0.9360 0.996 0.000 0.000 0.004 0.000
#> SRR1077159 5 0.3333 0.7533 0.000 0.208 0.000 0.004 0.788
#> SRR1330082 1 0.0162 0.9360 0.996 0.000 0.000 0.004 0.000
#> SRR1079874 4 0.5047 0.7107 0.064 0.284 0.000 0.652 0.000
#> SRR1387132 2 0.0451 0.8199 0.000 0.988 0.000 0.004 0.008
#> SRR1095261 3 0.6160 0.5121 0.000 0.004 0.568 0.164 0.264
#> SRR818646 2 0.2676 0.7527 0.000 0.884 0.000 0.036 0.080
#> SRR1313991 1 0.0162 0.9360 0.996 0.000 0.000 0.004 0.000
#> SRR1363718 2 0.0609 0.8176 0.000 0.980 0.000 0.020 0.000
#> SRR1381372 4 0.6638 0.2148 0.000 0.276 0.000 0.452 0.272
#> SRR1388257 4 0.6571 0.2492 0.000 0.260 0.000 0.472 0.268
#> SRR818139 1 0.0000 0.9365 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0693 0.8208 0.000 0.980 0.000 0.008 0.012
#> SRR1080342 2 0.0609 0.8176 0.000 0.980 0.000 0.020 0.000
#> SRR1085358 5 0.3508 0.7403 0.000 0.252 0.000 0.000 0.748
#> SRR1473482 5 0.5493 0.7170 0.164 0.100 0.000 0.032 0.704
#> SRR1452674 1 0.0290 0.9348 0.992 0.000 0.000 0.008 0.000
#> SRR1395874 5 0.6868 0.1429 0.000 0.080 0.348 0.072 0.500
#> SRR1382780 3 0.2514 0.8828 0.000 0.000 0.896 0.060 0.044
#> SRR1361138 2 0.0451 0.8199 0.000 0.988 0.000 0.004 0.008
#> SRR1319242 2 0.3163 0.6555 0.000 0.824 0.000 0.012 0.164
#> SRR1084553 2 0.0451 0.8214 0.000 0.988 0.000 0.008 0.004
#> SRR1498747 5 0.5637 0.5166 0.000 0.068 0.216 0.040 0.676
#> SRR1442213 3 0.1568 0.8968 0.000 0.000 0.944 0.036 0.020
#> SRR1343943 2 0.4645 0.4950 0.000 0.724 0.000 0.204 0.072
#> SRR1458828 2 0.3906 0.5298 0.000 0.744 0.000 0.016 0.240
#> SRR1360280 2 0.6301 0.2282 0.000 0.516 0.000 0.184 0.300
#> SRR1474208 3 0.1469 0.9035 0.000 0.000 0.948 0.036 0.016
#> SRR1498726 4 0.6839 0.3436 0.004 0.196 0.008 0.468 0.324
#> SRR1099857 5 0.5236 0.7571 0.108 0.144 0.000 0.024 0.724
#> SRR1329423 4 0.5218 0.7078 0.068 0.256 0.000 0.668 0.008
#> SRR1074430 2 0.0579 0.8190 0.000 0.984 0.000 0.008 0.008
#> SRR1485848 4 0.5198 0.7108 0.064 0.284 0.000 0.648 0.004
#> SRR1471395 4 0.5026 0.7113 0.064 0.280 0.000 0.656 0.000
#> SRR1096198 4 0.6744 0.6380 0.104 0.284 0.004 0.560 0.048
#> SRR1323234 1 0.4552 0.4598 0.668 0.004 0.000 0.020 0.308
#> SRR1073483 2 0.0451 0.8199 0.000 0.988 0.000 0.004 0.008
#> SRR817817 4 0.5005 0.7114 0.064 0.276 0.000 0.660 0.000
#> SRR1434070 3 0.1364 0.9049 0.000 0.000 0.952 0.036 0.012
#> SRR1100941 3 0.4429 0.7355 0.000 0.000 0.744 0.064 0.192
#> SRR1336682 1 0.0290 0.9348 0.992 0.000 0.000 0.008 0.000
#> SRR1077211 2 0.6166 0.3513 0.000 0.556 0.000 0.200 0.244
#> SRR1389454 1 0.0162 0.9358 0.996 0.000 0.000 0.004 0.000
#> SRR1393004 1 0.0000 0.9365 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 5 0.6202 0.3124 0.000 0.372 0.000 0.144 0.484
#> SRR1447192 1 0.0290 0.9348 0.992 0.000 0.000 0.008 0.000
#> SRR1459147 4 0.6197 0.2850 0.164 0.004 0.000 0.560 0.272
#> SRR1097929 3 0.0451 0.9048 0.000 0.000 0.988 0.008 0.004
#> SRR1075850 5 0.3508 0.7403 0.000 0.252 0.000 0.000 0.748
#> SRR1358126 1 0.4907 -0.0186 0.492 0.000 0.000 0.484 0.024
#> SRR1121009 3 0.4039 0.8612 0.052 0.000 0.824 0.084 0.040
#> SRR1321720 5 0.5762 0.4107 0.024 0.440 0.000 0.040 0.496
#> SRR810105 5 0.4360 0.7085 0.000 0.284 0.000 0.024 0.692
#> SRR1489007 2 0.0693 0.8170 0.000 0.980 0.000 0.008 0.012
#> SRR1361838 4 0.5198 0.7108 0.064 0.284 0.000 0.648 0.004
#> SRR1475086 2 0.0693 0.8189 0.000 0.980 0.000 0.012 0.008
#> SRR1468226 2 0.5224 0.5469 0.000 0.684 0.000 0.176 0.140
#> SRR1069466 2 0.0609 0.8176 0.000 0.980 0.000 0.020 0.000
#> SRR1078114 4 0.6581 0.6425 0.076 0.308 0.004 0.560 0.052
#> SRR1319991 4 0.4497 0.5900 0.000 0.424 0.000 0.568 0.008
#> SRR1374543 1 0.0451 0.9325 0.988 0.000 0.000 0.008 0.004
#> SRR1383237 4 0.5659 0.6536 0.052 0.368 0.000 0.564 0.016
#> SRR1486215 1 0.0798 0.9256 0.976 0.000 0.000 0.008 0.016
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.2583 0.8593 0.000 0.000 0.884 0.052 0.008 0.056
#> SRR1499584 2 0.0146 0.8425 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR815256 6 0.5872 0.3725 0.000 0.268 0.000 0.004 0.220 0.508
#> SRR1077996 2 0.0146 0.8425 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1338468 5 0.3210 0.7208 0.020 0.096 0.000 0.000 0.844 0.040
#> SRR1394428 2 0.4726 0.1360 0.000 0.528 0.000 0.000 0.424 0.048
#> SRR1431104 4 0.5321 0.7577 0.028 0.212 0.000 0.664 0.008 0.088
#> SRR1082128 2 0.2434 0.8063 0.000 0.896 0.000 0.016 0.056 0.032
#> SRR1078212 3 0.0000 0.8653 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1458401 5 0.2933 0.7262 0.016 0.092 0.000 0.000 0.860 0.032
#> SRR1447281 1 0.0508 0.9810 0.984 0.000 0.000 0.000 0.004 0.012
#> SRR1339258 6 0.4847 0.6441 0.000 0.044 0.000 0.352 0.012 0.592
#> SRR1105106 6 0.5246 0.7867 0.000 0.088 0.000 0.228 0.032 0.652
#> SRR1105130 2 0.0000 0.8425 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1419039 1 0.0820 0.9739 0.972 0.000 0.000 0.016 0.000 0.012
#> SRR1079213 3 0.0508 0.8633 0.000 0.000 0.984 0.004 0.000 0.012
#> SRR1309745 2 0.0260 0.8416 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1079408 3 0.2933 0.8304 0.000 0.000 0.856 0.040 0.008 0.096
#> SRR1445550 4 0.3687 0.7671 0.020 0.136 0.000 0.808 0.008 0.028
#> SRR820026 5 0.3625 0.6844 0.000 0.012 0.000 0.052 0.804 0.132
#> SRR1353686 5 0.5318 0.0396 0.028 0.004 0.000 0.448 0.484 0.036
#> SRR1475466 1 0.0146 0.9851 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1096315 3 0.1716 0.8652 0.000 0.000 0.932 0.036 0.004 0.028
#> SRR1479826 5 0.3254 0.6878 0.000 0.000 0.000 0.056 0.820 0.124
#> SRR1479450 4 0.5413 0.7657 0.028 0.180 0.000 0.676 0.016 0.100
#> SRR1094097 1 0.0146 0.9849 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1071737 2 0.0291 0.8425 0.000 0.992 0.000 0.000 0.004 0.004
#> SRR1433989 1 0.0260 0.9843 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1077159 5 0.1793 0.7464 0.000 0.036 0.000 0.004 0.928 0.032
#> SRR1330082 1 0.0260 0.9843 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1079874 4 0.3166 0.7900 0.024 0.156 0.000 0.816 0.000 0.004
#> SRR1387132 2 0.1390 0.8298 0.000 0.948 0.000 0.016 0.004 0.032
#> SRR1095261 3 0.7318 0.3338 0.000 0.000 0.392 0.288 0.172 0.148
#> SRR818646 2 0.2571 0.7745 0.000 0.876 0.000 0.000 0.064 0.060
#> SRR1313991 1 0.0260 0.9843 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1363718 2 0.0146 0.8425 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1381372 6 0.5483 0.7908 0.000 0.100 0.000 0.188 0.056 0.656
#> SRR1388257 6 0.5315 0.8006 0.000 0.080 0.000 0.196 0.056 0.668
#> SRR818139 1 0.0291 0.9848 0.992 0.000 0.000 0.004 0.000 0.004
#> SRR1078188 2 0.0291 0.8425 0.000 0.992 0.000 0.000 0.004 0.004
#> SRR1080342 2 0.0146 0.8425 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1085358 5 0.2119 0.7455 0.000 0.044 0.000 0.008 0.912 0.036
#> SRR1473482 5 0.2353 0.7371 0.032 0.032 0.000 0.000 0.904 0.032
#> SRR1452674 1 0.0508 0.9810 0.984 0.000 0.000 0.000 0.004 0.012
#> SRR1395874 5 0.6564 0.3783 0.000 0.016 0.168 0.084 0.580 0.152
#> SRR1382780 3 0.2933 0.8304 0.000 0.000 0.856 0.040 0.008 0.096
#> SRR1361138 2 0.1148 0.8347 0.000 0.960 0.000 0.016 0.004 0.020
#> SRR1319242 2 0.2101 0.7752 0.000 0.892 0.000 0.004 0.100 0.004
#> SRR1084553 2 0.0291 0.8425 0.000 0.992 0.000 0.000 0.004 0.004
#> SRR1498747 5 0.3610 0.6803 0.000 0.004 0.032 0.036 0.824 0.104
#> SRR1442213 3 0.1049 0.8588 0.000 0.000 0.960 0.008 0.000 0.032
#> SRR1343943 2 0.5307 0.3688 0.000 0.636 0.000 0.192 0.012 0.160
#> SRR1458828 2 0.2762 0.6821 0.000 0.804 0.000 0.000 0.196 0.000
#> SRR1360280 2 0.5894 -0.1184 0.000 0.444 0.000 0.004 0.176 0.376
#> SRR1474208 3 0.1716 0.8652 0.000 0.000 0.932 0.036 0.004 0.028
#> SRR1498726 4 0.6167 0.4228 0.000 0.056 0.000 0.572 0.204 0.168
#> SRR1099857 5 0.1780 0.7436 0.004 0.036 0.000 0.004 0.932 0.024
#> SRR1329423 4 0.3840 0.7522 0.016 0.132 0.000 0.800 0.008 0.044
#> SRR1074430 2 0.0914 0.8368 0.000 0.968 0.000 0.016 0.000 0.016
#> SRR1485848 4 0.3025 0.7913 0.024 0.156 0.000 0.820 0.000 0.000
#> SRR1471395 4 0.3417 0.7874 0.024 0.156 0.000 0.808 0.008 0.004
#> SRR1096198 4 0.5869 0.7138 0.040 0.168 0.000 0.640 0.016 0.136
#> SRR1323234 5 0.4047 0.3559 0.384 0.000 0.000 0.000 0.604 0.012
#> SRR1073483 2 0.1232 0.8333 0.000 0.956 0.000 0.016 0.004 0.024
#> SRR817817 4 0.3300 0.7852 0.024 0.148 0.000 0.816 0.000 0.012
#> SRR1434070 3 0.1492 0.8659 0.000 0.000 0.940 0.036 0.000 0.024
#> SRR1100941 3 0.5933 0.6416 0.000 0.000 0.628 0.096 0.128 0.148
#> SRR1336682 1 0.0508 0.9810 0.984 0.000 0.000 0.000 0.004 0.012
#> SRR1077211 2 0.5241 -0.1275 0.000 0.472 0.000 0.004 0.080 0.444
#> SRR1389454 1 0.0291 0.9848 0.992 0.000 0.000 0.004 0.000 0.004
#> SRR1393004 1 0.0146 0.9851 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1086369 5 0.5899 -0.0522 0.000 0.208 0.000 0.000 0.432 0.360
#> SRR1447192 1 0.0653 0.9801 0.980 0.000 0.000 0.004 0.004 0.012
#> SRR1459147 6 0.5179 0.7405 0.036 0.008 0.000 0.252 0.048 0.656
#> SRR1097929 3 0.0508 0.8633 0.000 0.000 0.984 0.004 0.000 0.012
#> SRR1075850 5 0.1693 0.7479 0.000 0.044 0.000 0.004 0.932 0.020
#> SRR1358126 4 0.5285 0.3938 0.324 0.000 0.000 0.584 0.020 0.072
#> SRR1121009 3 0.4747 0.7883 0.040 0.000 0.744 0.076 0.008 0.132
#> SRR1321720 5 0.4110 0.5640 0.000 0.236 0.000 0.000 0.712 0.052
#> SRR810105 5 0.2398 0.7241 0.000 0.104 0.000 0.000 0.876 0.020
#> SRR1489007 2 0.1970 0.8140 0.000 0.920 0.000 0.028 0.008 0.044
#> SRR1361838 4 0.3025 0.7913 0.024 0.156 0.000 0.820 0.000 0.000
#> SRR1475086 2 0.1528 0.8275 0.000 0.944 0.000 0.016 0.012 0.028
#> SRR1468226 2 0.4399 0.3034 0.000 0.616 0.000 0.004 0.028 0.352
#> SRR1069466 2 0.0260 0.8416 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1078114 4 0.5808 0.7080 0.040 0.160 0.000 0.648 0.016 0.136
#> SRR1319991 4 0.4130 0.7294 0.000 0.264 0.000 0.700 0.008 0.028
#> SRR1374543 1 0.0260 0.9843 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1383237 4 0.5026 0.7516 0.024 0.232 0.000 0.676 0.008 0.060
#> SRR1486215 1 0.1875 0.9365 0.928 0.000 0.000 0.020 0.020 0.032
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["CV", "skmeans"]
# you can also extract it by
# res = res_list["CV:skmeans"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'CV' method.
#> Subgroups are detected by 'skmeans' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.748 0.894 0.940 0.4982 0.497 0.497
#> 3 3 0.761 0.824 0.923 0.3116 0.782 0.590
#> 4 4 0.811 0.819 0.908 0.1358 0.865 0.638
#> 5 5 0.828 0.768 0.891 0.0772 0.878 0.580
#> 6 6 0.858 0.788 0.893 0.0414 0.935 0.693
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.927 1.000 0.000
#> SRR1499584 2 0.0000 0.940 0.000 1.000
#> SRR815256 2 0.0000 0.940 0.000 1.000
#> SRR1077996 2 0.0000 0.940 0.000 1.000
#> SRR1338468 1 0.7219 0.837 0.800 0.200
#> SRR1394428 2 0.0000 0.940 0.000 1.000
#> SRR1431104 2 0.6531 0.804 0.168 0.832
#> SRR1082128 2 0.0000 0.940 0.000 1.000
#> SRR1078212 1 0.0000 0.927 1.000 0.000
#> SRR1458401 2 0.9795 0.176 0.416 0.584
#> SRR1447281 1 0.4431 0.920 0.908 0.092
#> SRR1339258 2 0.0000 0.940 0.000 1.000
#> SRR1105106 2 0.0000 0.940 0.000 1.000
#> SRR1105130 2 0.0000 0.940 0.000 1.000
#> SRR1419039 1 0.4431 0.920 0.908 0.092
#> SRR1079213 1 0.0000 0.927 1.000 0.000
#> SRR1309745 2 0.0000 0.940 0.000 1.000
#> SRR1079408 1 0.0000 0.927 1.000 0.000
#> SRR1445550 2 0.4431 0.883 0.092 0.908
#> SRR820026 2 0.4815 0.871 0.104 0.896
#> SRR1353686 1 0.6973 0.834 0.812 0.188
#> SRR1475466 1 0.0672 0.928 0.992 0.008
#> SRR1096315 1 0.0000 0.927 1.000 0.000
#> SRR1479826 1 0.4431 0.871 0.908 0.092
#> SRR1479450 1 0.8144 0.740 0.748 0.252
#> SRR1094097 1 0.4431 0.920 0.908 0.092
#> SRR1071737 2 0.0672 0.937 0.008 0.992
#> SRR1433989 1 0.4431 0.920 0.908 0.092
#> SRR1077159 2 0.5059 0.866 0.112 0.888
#> SRR1330082 1 0.4431 0.920 0.908 0.092
#> SRR1079874 2 0.4431 0.883 0.092 0.908
#> SRR1387132 2 0.0000 0.940 0.000 1.000
#> SRR1095261 1 0.0000 0.927 1.000 0.000
#> SRR818646 2 0.0000 0.940 0.000 1.000
#> SRR1313991 1 0.4431 0.920 0.908 0.092
#> SRR1363718 2 0.0000 0.940 0.000 1.000
#> SRR1381372 2 0.0000 0.940 0.000 1.000
#> SRR1388257 2 0.0000 0.940 0.000 1.000
#> SRR818139 1 0.4431 0.920 0.908 0.092
#> SRR1078188 2 0.0672 0.937 0.008 0.992
#> SRR1080342 2 0.0000 0.940 0.000 1.000
#> SRR1085358 2 0.6048 0.837 0.148 0.852
#> SRR1473482 1 0.7745 0.799 0.772 0.228
#> SRR1452674 1 0.4431 0.920 0.908 0.092
#> SRR1395874 1 0.0000 0.927 1.000 0.000
#> SRR1382780 1 0.0000 0.927 1.000 0.000
#> SRR1361138 2 0.0000 0.940 0.000 1.000
#> SRR1319242 2 0.4431 0.877 0.092 0.908
#> SRR1084553 2 0.0672 0.937 0.008 0.992
#> SRR1498747 1 0.0000 0.927 1.000 0.000
#> SRR1442213 1 0.0000 0.927 1.000 0.000
#> SRR1343943 2 0.0000 0.940 0.000 1.000
#> SRR1458828 2 0.0672 0.937 0.008 0.992
#> SRR1360280 2 0.0000 0.940 0.000 1.000
#> SRR1474208 1 0.0000 0.927 1.000 0.000
#> SRR1498726 1 0.1184 0.923 0.984 0.016
#> SRR1099857 1 0.4690 0.870 0.900 0.100
#> SRR1329423 2 0.4431 0.883 0.092 0.908
#> SRR1074430 2 0.0000 0.940 0.000 1.000
#> SRR1485848 2 0.4431 0.883 0.092 0.908
#> SRR1471395 2 0.4431 0.883 0.092 0.908
#> SRR1096198 1 0.1843 0.928 0.972 0.028
#> SRR1323234 1 0.6887 0.851 0.816 0.184
#> SRR1073483 2 0.0000 0.940 0.000 1.000
#> SRR817817 2 0.4431 0.883 0.092 0.908
#> SRR1434070 1 0.1414 0.922 0.980 0.020
#> SRR1100941 1 0.0000 0.927 1.000 0.000
#> SRR1336682 1 0.4431 0.920 0.908 0.092
#> SRR1077211 2 0.0000 0.940 0.000 1.000
#> SRR1389454 1 0.4431 0.920 0.908 0.092
#> SRR1393004 1 0.0376 0.928 0.996 0.004
#> SRR1086369 2 0.4431 0.877 0.092 0.908
#> SRR1447192 1 0.4431 0.920 0.908 0.092
#> SRR1459147 1 0.7745 0.783 0.772 0.228
#> SRR1097929 1 0.0000 0.927 1.000 0.000
#> SRR1075850 2 0.7056 0.791 0.192 0.808
#> SRR1358126 1 0.4690 0.915 0.900 0.100
#> SRR1121009 1 0.0000 0.927 1.000 0.000
#> SRR1321720 2 0.0000 0.940 0.000 1.000
#> SRR810105 2 0.9881 0.146 0.436 0.564
#> SRR1489007 2 0.0000 0.940 0.000 1.000
#> SRR1361838 2 0.4431 0.883 0.092 0.908
#> SRR1475086 2 0.0000 0.940 0.000 1.000
#> SRR1468226 2 0.0672 0.937 0.008 0.992
#> SRR1069466 2 0.0000 0.940 0.000 1.000
#> SRR1078114 1 0.0672 0.928 0.992 0.008
#> SRR1319991 2 0.0000 0.940 0.000 1.000
#> SRR1374543 1 0.4431 0.920 0.908 0.092
#> SRR1383237 2 0.4431 0.883 0.092 0.908
#> SRR1486215 1 0.4431 0.920 0.908 0.092
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1499584 2 0.0000 0.894 0.000 1.000 0.000
#> SRR815256 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1077996 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1338468 1 0.5138 0.667 0.748 0.252 0.000
#> SRR1394428 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1431104 2 0.5948 0.550 0.360 0.640 0.000
#> SRR1082128 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1078212 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1458401 1 0.5905 0.530 0.648 0.352 0.000
#> SRR1447281 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1339258 2 0.4555 0.732 0.200 0.800 0.000
#> SRR1105106 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1105130 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1419039 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1079213 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1309745 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1079408 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1445550 2 0.5882 0.567 0.348 0.652 0.000
#> SRR820026 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1353686 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1475466 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1096315 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1479826 3 0.6180 0.251 0.416 0.000 0.584
#> SRR1479450 1 0.0892 0.872 0.980 0.020 0.000
#> SRR1094097 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1071737 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1433989 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1077159 3 0.3192 0.835 0.000 0.112 0.888
#> SRR1330082 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1079874 2 0.5948 0.550 0.360 0.640 0.000
#> SRR1387132 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1095261 3 0.0000 0.950 0.000 0.000 1.000
#> SRR818646 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1313991 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1363718 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1381372 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1388257 2 0.0424 0.889 0.008 0.992 0.000
#> SRR818139 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1078188 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1080342 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1085358 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1473482 1 0.5760 0.567 0.672 0.328 0.000
#> SRR1452674 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1395874 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1382780 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1361138 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1319242 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1084553 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1498747 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1442213 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1343943 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1458828 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1360280 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1474208 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1498726 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1099857 1 0.8137 0.573 0.640 0.220 0.140
#> SRR1329423 2 0.5948 0.550 0.360 0.640 0.000
#> SRR1074430 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1485848 2 0.5948 0.550 0.360 0.640 0.000
#> SRR1471395 2 0.5948 0.550 0.360 0.640 0.000
#> SRR1096198 1 0.5948 0.351 0.640 0.000 0.360
#> SRR1323234 1 0.1289 0.866 0.968 0.032 0.000
#> SRR1073483 2 0.0000 0.894 0.000 1.000 0.000
#> SRR817817 2 0.5926 0.556 0.356 0.644 0.000
#> SRR1434070 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1100941 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1336682 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1077211 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1389454 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1393004 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1086369 2 0.4504 0.723 0.000 0.804 0.196
#> SRR1447192 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1459147 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1097929 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1075850 3 0.1289 0.921 0.000 0.032 0.968
#> SRR1358126 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1121009 3 0.0000 0.950 0.000 0.000 1.000
#> SRR1321720 1 0.5968 0.510 0.636 0.364 0.000
#> SRR810105 1 0.5948 0.517 0.640 0.360 0.000
#> SRR1489007 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1361838 2 0.5948 0.550 0.360 0.640 0.000
#> SRR1475086 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1468226 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1069466 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1078114 3 0.6008 0.380 0.372 0.000 0.628
#> SRR1319991 2 0.0000 0.894 0.000 1.000 0.000
#> SRR1374543 1 0.0000 0.886 1.000 0.000 0.000
#> SRR1383237 2 0.5859 0.572 0.344 0.656 0.000
#> SRR1486215 1 0.0000 0.886 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.0000 0.9127 0.000 0.000 1.000 0.000
#> SRR1499584 2 0.1867 0.8900 0.000 0.928 0.000 0.072
#> SRR815256 2 0.0817 0.8561 0.000 0.976 0.000 0.024
#> SRR1077996 2 0.1867 0.8900 0.000 0.928 0.000 0.072
#> SRR1338468 1 0.1406 0.8922 0.960 0.024 0.000 0.016
#> SRR1394428 2 0.0592 0.8586 0.000 0.984 0.000 0.016
#> SRR1431104 4 0.1388 0.9063 0.028 0.012 0.000 0.960
#> SRR1082128 2 0.1211 0.8786 0.000 0.960 0.000 0.040
#> SRR1078212 3 0.0000 0.9127 0.000 0.000 1.000 0.000
#> SRR1458401 1 0.5550 0.2705 0.552 0.428 0.000 0.020
#> SRR1447281 1 0.0000 0.9157 1.000 0.000 0.000 0.000
#> SRR1339258 4 0.2216 0.8379 0.000 0.092 0.000 0.908
#> SRR1105106 2 0.4888 0.3866 0.000 0.588 0.000 0.412
#> SRR1105130 2 0.1867 0.8900 0.000 0.928 0.000 0.072
#> SRR1419039 1 0.0000 0.9157 1.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.9127 0.000 0.000 1.000 0.000
#> SRR1309745 2 0.1867 0.8900 0.000 0.928 0.000 0.072
#> SRR1079408 3 0.0000 0.9127 0.000 0.000 1.000 0.000
#> SRR1445550 4 0.0779 0.9135 0.016 0.004 0.000 0.980
#> SRR820026 3 0.2610 0.8486 0.000 0.088 0.900 0.012
#> SRR1353686 1 0.6023 0.4292 0.600 0.056 0.000 0.344
#> SRR1475466 1 0.0000 0.9157 1.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.9127 0.000 0.000 1.000 0.000
#> SRR1479826 3 0.6567 0.4347 0.312 0.072 0.604 0.012
#> SRR1479450 4 0.3569 0.7440 0.196 0.000 0.000 0.804
#> SRR1094097 1 0.0000 0.9157 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.1867 0.8900 0.000 0.928 0.000 0.072
#> SRR1433989 1 0.0000 0.9157 1.000 0.000 0.000 0.000
#> SRR1077159 3 0.5594 0.2271 0.000 0.460 0.520 0.020
#> SRR1330082 1 0.0000 0.9157 1.000 0.000 0.000 0.000
#> SRR1079874 4 0.0779 0.9135 0.016 0.004 0.000 0.980
#> SRR1387132 2 0.1867 0.8900 0.000 0.928 0.000 0.072
#> SRR1095261 3 0.0000 0.9127 0.000 0.000 1.000 0.000
#> SRR818646 2 0.0000 0.8657 0.000 1.000 0.000 0.000
#> SRR1313991 1 0.0188 0.9133 0.996 0.000 0.000 0.004
#> SRR1363718 2 0.1867 0.8900 0.000 0.928 0.000 0.072
#> SRR1381372 2 0.4995 0.5949 0.032 0.720 0.000 0.248
#> SRR1388257 2 0.5830 0.3967 0.048 0.620 0.000 0.332
#> SRR818139 1 0.0000 0.9157 1.000 0.000 0.000 0.000
#> SRR1078188 2 0.1867 0.8900 0.000 0.928 0.000 0.072
#> SRR1080342 2 0.1867 0.8900 0.000 0.928 0.000 0.072
#> SRR1085358 3 0.3300 0.8011 0.000 0.144 0.848 0.008
#> SRR1473482 1 0.2775 0.8466 0.896 0.084 0.000 0.020
#> SRR1452674 1 0.0000 0.9157 1.000 0.000 0.000 0.000
#> SRR1395874 3 0.0000 0.9127 0.000 0.000 1.000 0.000
#> SRR1382780 3 0.0000 0.9127 0.000 0.000 1.000 0.000
#> SRR1361138 2 0.1867 0.8900 0.000 0.928 0.000 0.072
#> SRR1319242 2 0.1557 0.8855 0.000 0.944 0.000 0.056
#> SRR1084553 2 0.1867 0.8900 0.000 0.928 0.000 0.072
#> SRR1498747 3 0.0188 0.9105 0.000 0.000 0.996 0.004
#> SRR1442213 3 0.0000 0.9127 0.000 0.000 1.000 0.000
#> SRR1343943 2 0.4477 0.6403 0.000 0.688 0.000 0.312
#> SRR1458828 2 0.1302 0.8804 0.000 0.956 0.000 0.044
#> SRR1360280 2 0.0592 0.8597 0.000 0.984 0.000 0.016
#> SRR1474208 3 0.0000 0.9127 0.000 0.000 1.000 0.000
#> SRR1498726 3 0.2814 0.7899 0.000 0.000 0.868 0.132
#> SRR1099857 1 0.2909 0.8406 0.888 0.092 0.000 0.020
#> SRR1329423 4 0.0779 0.9135 0.016 0.004 0.000 0.980
#> SRR1074430 2 0.1867 0.8900 0.000 0.928 0.000 0.072
#> SRR1485848 4 0.0779 0.9135 0.016 0.004 0.000 0.980
#> SRR1471395 4 0.0779 0.9135 0.016 0.004 0.000 0.980
#> SRR1096198 4 0.6565 0.5920 0.224 0.000 0.148 0.628
#> SRR1323234 1 0.0592 0.9062 0.984 0.000 0.000 0.016
#> SRR1073483 2 0.1867 0.8900 0.000 0.928 0.000 0.072
#> SRR817817 4 0.0779 0.9135 0.016 0.004 0.000 0.980
#> SRR1434070 3 0.0000 0.9127 0.000 0.000 1.000 0.000
#> SRR1100941 3 0.0000 0.9127 0.000 0.000 1.000 0.000
#> SRR1336682 1 0.0000 0.9157 1.000 0.000 0.000 0.000
#> SRR1077211 2 0.0469 0.8671 0.000 0.988 0.000 0.012
#> SRR1389454 1 0.0000 0.9157 1.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.9157 1.000 0.000 0.000 0.000
#> SRR1086369 2 0.3881 0.7000 0.000 0.812 0.172 0.016
#> SRR1447192 1 0.0000 0.9157 1.000 0.000 0.000 0.000
#> SRR1459147 1 0.5331 0.4727 0.644 0.024 0.000 0.332
#> SRR1097929 3 0.0000 0.9127 0.000 0.000 1.000 0.000
#> SRR1075850 3 0.4855 0.6492 0.000 0.268 0.712 0.020
#> SRR1358126 1 0.3764 0.6927 0.784 0.000 0.000 0.216
#> SRR1121009 3 0.0000 0.9127 0.000 0.000 1.000 0.000
#> SRR1321720 2 0.5466 0.0894 0.436 0.548 0.000 0.016
#> SRR810105 2 0.4284 0.6550 0.200 0.780 0.000 0.020
#> SRR1489007 2 0.3528 0.7854 0.000 0.808 0.000 0.192
#> SRR1361838 4 0.0779 0.9135 0.016 0.004 0.000 0.980
#> SRR1475086 2 0.1940 0.8881 0.000 0.924 0.000 0.076
#> SRR1468226 2 0.1022 0.8788 0.000 0.968 0.000 0.032
#> SRR1069466 2 0.1867 0.8900 0.000 0.928 0.000 0.072
#> SRR1078114 4 0.6180 0.5228 0.080 0.000 0.296 0.624
#> SRR1319991 4 0.1637 0.8746 0.000 0.060 0.000 0.940
#> SRR1374543 1 0.0000 0.9157 1.000 0.000 0.000 0.000
#> SRR1383237 4 0.1388 0.9037 0.012 0.028 0.000 0.960
#> SRR1486215 1 0.0000 0.9157 1.000 0.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.0000 0.9796 0.000 0.000 1.000 0.000 0.000
#> SRR1499584 2 0.0000 0.9169 0.000 1.000 0.000 0.000 0.000
#> SRR815256 5 0.3750 0.6152 0.000 0.232 0.000 0.012 0.756
#> SRR1077996 2 0.0000 0.9169 0.000 1.000 0.000 0.000 0.000
#> SRR1338468 1 0.5019 0.3325 0.568 0.036 0.000 0.000 0.396
#> SRR1394428 5 0.4403 0.3845 0.000 0.384 0.000 0.008 0.608
#> SRR1431104 4 0.2871 0.7396 0.032 0.088 0.000 0.876 0.004
#> SRR1082128 2 0.2930 0.7735 0.000 0.832 0.000 0.004 0.164
#> SRR1078212 3 0.0000 0.9796 0.000 0.000 1.000 0.000 0.000
#> SRR1458401 5 0.1981 0.7280 0.064 0.016 0.000 0.000 0.920
#> SRR1447281 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.2450 0.7374 0.000 0.052 0.000 0.900 0.048
#> SRR1105106 4 0.6540 0.1259 0.000 0.288 0.000 0.476 0.236
#> SRR1105130 2 0.0290 0.9166 0.000 0.992 0.000 0.000 0.008
#> SRR1419039 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.9796 0.000 0.000 1.000 0.000 0.000
#> SRR1309745 2 0.0000 0.9169 0.000 1.000 0.000 0.000 0.000
#> SRR1079408 3 0.0000 0.9796 0.000 0.000 1.000 0.000 0.000
#> SRR1445550 4 0.0290 0.7848 0.000 0.008 0.000 0.992 0.000
#> SRR820026 5 0.3684 0.5721 0.000 0.000 0.280 0.000 0.720
#> SRR1353686 5 0.6602 0.1049 0.216 0.000 0.000 0.360 0.424
#> SRR1475466 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.9796 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 5 0.3409 0.6838 0.024 0.000 0.160 0.000 0.816
#> SRR1479450 4 0.3583 0.6543 0.192 0.012 0.000 0.792 0.004
#> SRR1094097 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0290 0.9150 0.000 0.992 0.000 0.000 0.008
#> SRR1433989 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.0898 0.7308 0.000 0.008 0.020 0.000 0.972
#> SRR1330082 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.0290 0.7848 0.000 0.008 0.000 0.992 0.000
#> SRR1387132 2 0.0290 0.9155 0.000 0.992 0.000 0.000 0.008
#> SRR1095261 3 0.0000 0.9796 0.000 0.000 1.000 0.000 0.000
#> SRR818646 2 0.2886 0.7879 0.000 0.844 0.000 0.008 0.148
#> SRR1313991 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.9169 0.000 1.000 0.000 0.000 0.000
#> SRR1381372 5 0.7098 0.1785 0.012 0.348 0.000 0.272 0.368
#> SRR1388257 4 0.7002 -0.1233 0.012 0.232 0.000 0.392 0.364
#> SRR818139 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0290 0.9150 0.000 0.992 0.000 0.000 0.008
#> SRR1080342 2 0.0000 0.9169 0.000 1.000 0.000 0.000 0.000
#> SRR1085358 5 0.4015 0.4623 0.000 0.000 0.348 0.000 0.652
#> SRR1473482 5 0.1732 0.7209 0.080 0.000 0.000 0.000 0.920
#> SRR1452674 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 3 0.0000 0.9796 0.000 0.000 1.000 0.000 0.000
#> SRR1382780 3 0.0000 0.9796 0.000 0.000 1.000 0.000 0.000
#> SRR1361138 2 0.0290 0.9155 0.000 0.992 0.000 0.000 0.008
#> SRR1319242 2 0.1197 0.8886 0.000 0.952 0.000 0.000 0.048
#> SRR1084553 2 0.0162 0.9159 0.000 0.996 0.000 0.000 0.004
#> SRR1498747 3 0.1478 0.9168 0.000 0.000 0.936 0.000 0.064
#> SRR1442213 3 0.0000 0.9796 0.000 0.000 1.000 0.000 0.000
#> SRR1343943 2 0.4963 0.3698 0.000 0.608 0.000 0.352 0.040
#> SRR1458828 2 0.2605 0.7952 0.000 0.852 0.000 0.000 0.148
#> SRR1360280 5 0.4430 0.4206 0.000 0.360 0.000 0.012 0.628
#> SRR1474208 3 0.0000 0.9796 0.000 0.000 1.000 0.000 0.000
#> SRR1498726 3 0.3266 0.7249 0.000 0.000 0.796 0.200 0.004
#> SRR1099857 5 0.1732 0.7211 0.080 0.000 0.000 0.000 0.920
#> SRR1329423 4 0.0290 0.7848 0.000 0.008 0.000 0.992 0.000
#> SRR1074430 2 0.0290 0.9155 0.000 0.992 0.000 0.000 0.008
#> SRR1485848 4 0.0290 0.7848 0.000 0.008 0.000 0.992 0.000
#> SRR1471395 4 0.0290 0.7848 0.000 0.008 0.000 0.992 0.000
#> SRR1096198 4 0.6369 0.3142 0.328 0.000 0.160 0.508 0.004
#> SRR1323234 1 0.3508 0.6561 0.748 0.000 0.000 0.000 0.252
#> SRR1073483 2 0.0290 0.9155 0.000 0.992 0.000 0.000 0.008
#> SRR817817 4 0.0290 0.7848 0.000 0.008 0.000 0.992 0.000
#> SRR1434070 3 0.0000 0.9796 0.000 0.000 1.000 0.000 0.000
#> SRR1100941 3 0.0000 0.9796 0.000 0.000 1.000 0.000 0.000
#> SRR1336682 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.4517 0.2701 0.000 0.600 0.000 0.012 0.388
#> SRR1389454 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 5 0.3787 0.7092 0.000 0.104 0.064 0.008 0.824
#> SRR1447192 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 1 0.6344 -0.0212 0.440 0.000 0.000 0.400 0.160
#> SRR1097929 3 0.0000 0.9796 0.000 0.000 1.000 0.000 0.000
#> SRR1075850 5 0.1697 0.7294 0.000 0.008 0.060 0.000 0.932
#> SRR1358126 1 0.1544 0.8653 0.932 0.000 0.000 0.068 0.000
#> SRR1121009 3 0.0162 0.9758 0.004 0.000 0.996 0.000 0.000
#> SRR1321720 5 0.2645 0.7322 0.044 0.068 0.000 0.000 0.888
#> SRR810105 5 0.1725 0.7336 0.020 0.044 0.000 0.000 0.936
#> SRR1489007 2 0.1670 0.8737 0.000 0.936 0.000 0.052 0.012
#> SRR1361838 4 0.0290 0.7848 0.000 0.008 0.000 0.992 0.000
#> SRR1475086 2 0.0290 0.9155 0.000 0.992 0.000 0.000 0.008
#> SRR1468226 2 0.2753 0.8005 0.000 0.856 0.000 0.008 0.136
#> SRR1069466 2 0.0000 0.9169 0.000 1.000 0.000 0.000 0.000
#> SRR1078114 4 0.5868 0.2067 0.088 0.000 0.392 0.516 0.004
#> SRR1319991 4 0.2110 0.7561 0.000 0.072 0.000 0.912 0.016
#> SRR1374543 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
#> SRR1383237 4 0.3266 0.6562 0.000 0.200 0.000 0.796 0.004
#> SRR1486215 1 0.0000 0.9243 1.000 0.000 0.000 0.000 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.0000 0.9593 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1499584 2 0.0458 0.9308 0.000 0.984 0.000 0.000 0.000 0.016
#> SRR815256 6 0.3248 0.6681 0.000 0.032 0.000 0.000 0.164 0.804
#> SRR1077996 2 0.0363 0.9314 0.000 0.988 0.000 0.000 0.000 0.012
#> SRR1338468 5 0.3232 0.6290 0.160 0.020 0.000 0.000 0.812 0.008
#> SRR1394428 5 0.6097 -0.1040 0.000 0.320 0.000 0.000 0.384 0.296
#> SRR1431104 4 0.1988 0.8174 0.004 0.048 0.000 0.920 0.004 0.024
#> SRR1082128 2 0.4118 0.6875 0.000 0.748 0.000 0.004 0.172 0.076
#> SRR1078212 3 0.0000 0.9593 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1458401 5 0.0291 0.7652 0.004 0.004 0.000 0.000 0.992 0.000
#> SRR1447281 1 0.0146 0.9578 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1339258 6 0.4057 0.1970 0.000 0.012 0.000 0.388 0.000 0.600
#> SRR1105106 6 0.1434 0.7021 0.000 0.020 0.000 0.024 0.008 0.948
#> SRR1105130 2 0.0603 0.9305 0.000 0.980 0.000 0.000 0.004 0.016
#> SRR1419039 1 0.0146 0.9566 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1079213 3 0.0000 0.9593 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1309745 2 0.0363 0.9314 0.000 0.988 0.000 0.000 0.000 0.012
#> SRR1079408 3 0.0000 0.9593 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445550 4 0.1714 0.8561 0.000 0.000 0.000 0.908 0.000 0.092
#> SRR820026 6 0.6096 0.1752 0.000 0.000 0.240 0.004 0.324 0.432
#> SRR1353686 5 0.7153 0.1783 0.116 0.000 0.000 0.200 0.432 0.252
#> SRR1475466 1 0.0000 0.9581 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0146 0.9585 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1479826 6 0.5032 0.4142 0.016 0.000 0.060 0.000 0.316 0.608
#> SRR1479450 4 0.1799 0.8232 0.052 0.004 0.000 0.928 0.008 0.008
#> SRR1094097 1 0.0000 0.9581 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0603 0.9305 0.000 0.980 0.000 0.000 0.004 0.016
#> SRR1433989 1 0.0000 0.9581 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.0632 0.7583 0.000 0.000 0.000 0.000 0.976 0.024
#> SRR1330082 1 0.0000 0.9581 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.1501 0.8612 0.000 0.000 0.000 0.924 0.000 0.076
#> SRR1387132 2 0.0748 0.9222 0.000 0.976 0.000 0.004 0.004 0.016
#> SRR1095261 3 0.0363 0.9537 0.000 0.000 0.988 0.000 0.000 0.012
#> SRR818646 2 0.4551 0.3024 0.000 0.608 0.000 0.000 0.048 0.344
#> SRR1313991 1 0.0146 0.9562 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1363718 2 0.0363 0.9314 0.000 0.988 0.000 0.000 0.000 0.012
#> SRR1381372 6 0.1478 0.7086 0.004 0.032 0.000 0.000 0.020 0.944
#> SRR1388257 6 0.1508 0.7035 0.004 0.016 0.000 0.012 0.020 0.948
#> SRR818139 1 0.0146 0.9578 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1078188 2 0.0603 0.9305 0.000 0.980 0.000 0.000 0.004 0.016
#> SRR1080342 2 0.0363 0.9314 0.000 0.988 0.000 0.000 0.000 0.012
#> SRR1085358 5 0.4395 0.2409 0.000 0.000 0.404 0.000 0.568 0.028
#> SRR1473482 5 0.0405 0.7649 0.008 0.000 0.000 0.000 0.988 0.004
#> SRR1452674 1 0.0146 0.9578 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1395874 3 0.0146 0.9577 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1382780 3 0.0000 0.9593 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1361138 2 0.0508 0.9247 0.000 0.984 0.000 0.004 0.000 0.012
#> SRR1319242 2 0.1320 0.9125 0.000 0.948 0.000 0.000 0.036 0.016
#> SRR1084553 2 0.0603 0.9305 0.000 0.980 0.000 0.000 0.004 0.016
#> SRR1498747 3 0.2454 0.7825 0.000 0.000 0.840 0.000 0.160 0.000
#> SRR1442213 3 0.0000 0.9593 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1343943 6 0.5758 0.2520 0.000 0.368 0.000 0.176 0.000 0.456
#> SRR1458828 2 0.3231 0.7374 0.000 0.784 0.000 0.000 0.200 0.016
#> SRR1360280 6 0.3854 0.6736 0.000 0.092 0.000 0.000 0.136 0.772
#> SRR1474208 3 0.0146 0.9585 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1498726 3 0.4624 0.4168 0.000 0.000 0.616 0.340 0.012 0.032
#> SRR1099857 5 0.0260 0.7648 0.008 0.000 0.000 0.000 0.992 0.000
#> SRR1329423 4 0.1863 0.8500 0.000 0.000 0.000 0.896 0.000 0.104
#> SRR1074430 2 0.0405 0.9261 0.000 0.988 0.000 0.004 0.000 0.008
#> SRR1485848 4 0.1327 0.8614 0.000 0.000 0.000 0.936 0.000 0.064
#> SRR1471395 4 0.1501 0.8612 0.000 0.000 0.000 0.924 0.000 0.076
#> SRR1096198 4 0.4682 0.6658 0.172 0.000 0.068 0.728 0.004 0.028
#> SRR1323234 1 0.3867 0.0361 0.512 0.000 0.000 0.000 0.488 0.000
#> SRR1073483 2 0.0748 0.9221 0.000 0.976 0.000 0.004 0.004 0.016
#> SRR817817 4 0.1765 0.8554 0.000 0.000 0.000 0.904 0.000 0.096
#> SRR1434070 3 0.0146 0.9585 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1100941 3 0.0146 0.9585 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1336682 1 0.0146 0.9578 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1077211 6 0.3806 0.6517 0.000 0.200 0.000 0.000 0.048 0.752
#> SRR1389454 1 0.0146 0.9578 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1393004 1 0.0000 0.9581 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1086369 6 0.4459 0.6221 0.000 0.024 0.052 0.000 0.200 0.724
#> SRR1447192 1 0.0146 0.9578 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1459147 6 0.2068 0.6648 0.080 0.000 0.000 0.008 0.008 0.904
#> SRR1097929 3 0.0000 0.9593 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1075850 5 0.0363 0.7636 0.000 0.000 0.000 0.000 0.988 0.012
#> SRR1358126 1 0.2231 0.8758 0.900 0.000 0.000 0.028 0.004 0.068
#> SRR1121009 3 0.0000 0.9593 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1321720 5 0.2426 0.7105 0.012 0.044 0.000 0.000 0.896 0.048
#> SRR810105 5 0.0260 0.7641 0.000 0.000 0.000 0.000 0.992 0.008
#> SRR1489007 2 0.1926 0.8721 0.000 0.912 0.000 0.068 0.000 0.020
#> SRR1361838 4 0.1267 0.8610 0.000 0.000 0.000 0.940 0.000 0.060
#> SRR1475086 2 0.0717 0.9214 0.000 0.976 0.000 0.008 0.000 0.016
#> SRR1468226 6 0.3558 0.6186 0.000 0.248 0.000 0.000 0.016 0.736
#> SRR1069466 2 0.0547 0.9291 0.000 0.980 0.000 0.000 0.000 0.020
#> SRR1078114 4 0.4293 0.6634 0.032 0.000 0.192 0.744 0.004 0.028
#> SRR1319991 4 0.3821 0.6995 0.000 0.064 0.000 0.776 0.004 0.156
#> SRR1374543 1 0.0000 0.9581 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1383237 4 0.4149 0.6392 0.000 0.212 0.000 0.728 0.004 0.056
#> SRR1486215 1 0.0547 0.9457 0.980 0.000 0.000 0.000 0.000 0.020
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["CV", "pam"]
# you can also extract it by
# res = res_list["CV:pam"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'CV' method.
#> Subgroups are detected by 'pam' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.426 0.656 0.793 0.3577 0.585 0.585
#> 3 3 0.714 0.809 0.922 0.5826 0.820 0.704
#> 4 4 0.656 0.748 0.851 0.2523 0.791 0.561
#> 5 5 0.867 0.888 0.940 0.1086 0.883 0.620
#> 6 6 0.907 0.887 0.955 0.0185 0.982 0.914
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 6
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.581 1.000 0.000
#> SRR1499584 2 0.0376 0.870 0.004 0.996
#> SRR815256 2 0.0000 0.871 0.000 1.000
#> SRR1077996 2 0.0376 0.870 0.004 0.996
#> SRR1338468 2 0.0376 0.869 0.004 0.996
#> SRR1394428 2 0.0000 0.871 0.000 1.000
#> SRR1431104 2 0.7883 0.549 0.236 0.764
#> SRR1082128 2 0.0000 0.871 0.000 1.000
#> SRR1078212 1 0.0938 0.582 0.988 0.012
#> SRR1458401 2 0.0000 0.871 0.000 1.000
#> SRR1447281 2 0.8909 0.268 0.308 0.692
#> SRR1339258 2 0.0672 0.869 0.008 0.992
#> SRR1105106 2 0.0376 0.870 0.004 0.996
#> SRR1105130 2 0.0000 0.871 0.000 1.000
#> SRR1419039 1 0.9963 0.408 0.536 0.464
#> SRR1079213 1 0.2043 0.581 0.968 0.032
#> SRR1309745 2 0.0376 0.870 0.004 0.996
#> SRR1079408 1 0.0376 0.581 0.996 0.004
#> SRR1445550 2 0.6343 0.689 0.160 0.840
#> SRR820026 2 0.1184 0.856 0.016 0.984
#> SRR1353686 2 0.7815 0.552 0.232 0.768
#> SRR1475466 1 0.9963 0.408 0.536 0.464
#> SRR1096315 1 0.0376 0.581 0.996 0.004
#> SRR1479826 2 0.5519 0.712 0.128 0.872
#> SRR1479450 2 0.4022 0.797 0.080 0.920
#> SRR1094097 1 0.9963 0.408 0.536 0.464
#> SRR1071737 2 0.0000 0.871 0.000 1.000
#> SRR1433989 1 0.9963 0.408 0.536 0.464
#> SRR1077159 2 0.0000 0.871 0.000 1.000
#> SRR1330082 1 0.9963 0.408 0.536 0.464
#> SRR1079874 2 0.7883 0.549 0.236 0.764
#> SRR1387132 2 0.0376 0.870 0.004 0.996
#> SRR1095261 1 0.9661 0.396 0.608 0.392
#> SRR818646 2 0.0000 0.871 0.000 1.000
#> SRR1313991 1 0.9963 0.408 0.536 0.464
#> SRR1363718 2 0.0376 0.870 0.004 0.996
#> SRR1381372 2 0.0000 0.871 0.000 1.000
#> SRR1388257 2 0.0672 0.869 0.008 0.992
#> SRR818139 2 0.9922 -0.182 0.448 0.552
#> SRR1078188 2 0.0000 0.871 0.000 1.000
#> SRR1080342 2 0.0376 0.870 0.004 0.996
#> SRR1085358 2 0.0000 0.871 0.000 1.000
#> SRR1473482 2 0.0000 0.871 0.000 1.000
#> SRR1452674 1 1.0000 0.313 0.500 0.500
#> SRR1395874 2 0.3431 0.820 0.064 0.936
#> SRR1382780 1 0.0376 0.581 0.996 0.004
#> SRR1361138 2 0.0000 0.871 0.000 1.000
#> SRR1319242 2 0.0376 0.870 0.004 0.996
#> SRR1084553 2 0.0000 0.871 0.000 1.000
#> SRR1498747 1 0.9988 0.255 0.520 0.480
#> SRR1442213 1 0.8813 0.474 0.700 0.300
#> SRR1343943 2 0.0376 0.870 0.004 0.996
#> SRR1458828 2 0.0000 0.871 0.000 1.000
#> SRR1360280 2 0.0000 0.871 0.000 1.000
#> SRR1474208 1 0.8861 0.472 0.696 0.304
#> SRR1498726 2 0.9044 0.349 0.320 0.680
#> SRR1099857 2 0.0000 0.871 0.000 1.000
#> SRR1329423 2 0.0672 0.869 0.008 0.992
#> SRR1074430 2 0.0000 0.871 0.000 1.000
#> SRR1485848 2 0.7883 0.549 0.236 0.764
#> SRR1471395 2 0.4815 0.770 0.104 0.896
#> SRR1096198 2 0.9998 -0.321 0.492 0.508
#> SRR1323234 2 0.0376 0.869 0.004 0.996
#> SRR1073483 2 0.0000 0.871 0.000 1.000
#> SRR817817 2 0.7883 0.549 0.236 0.764
#> SRR1434070 1 0.8861 0.472 0.696 0.304
#> SRR1100941 1 0.9286 0.445 0.656 0.344
#> SRR1336682 2 0.8861 0.277 0.304 0.696
#> SRR1077211 2 0.0000 0.871 0.000 1.000
#> SRR1389454 2 1.0000 -0.351 0.500 0.500
#> SRR1393004 1 0.9970 0.405 0.532 0.468
#> SRR1086369 2 0.0000 0.871 0.000 1.000
#> SRR1447192 1 0.9970 0.405 0.532 0.468
#> SRR1459147 2 0.1843 0.854 0.028 0.972
#> SRR1097929 1 0.8909 0.470 0.692 0.308
#> SRR1075850 2 0.7056 0.627 0.192 0.808
#> SRR1358126 1 0.9963 0.408 0.536 0.464
#> SRR1121009 1 0.0672 0.583 0.992 0.008
#> SRR1321720 2 0.0000 0.871 0.000 1.000
#> SRR810105 2 0.0000 0.871 0.000 1.000
#> SRR1489007 2 0.1184 0.863 0.016 0.984
#> SRR1361838 2 0.7883 0.549 0.236 0.764
#> SRR1475086 2 0.0376 0.870 0.004 0.996
#> SRR1468226 2 0.0000 0.871 0.000 1.000
#> SRR1069466 2 0.0376 0.870 0.004 0.996
#> SRR1078114 2 0.7883 0.549 0.236 0.764
#> SRR1319991 2 0.0376 0.870 0.004 0.996
#> SRR1374543 1 0.9963 0.408 0.536 0.464
#> SRR1383237 2 0.6887 0.649 0.184 0.816
#> SRR1486215 1 0.9970 0.405 0.532 0.468
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.0000 0.9023 0.000 0.000 1.000
#> SRR1499584 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR815256 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1077996 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1338468 2 0.1411 0.8788 0.036 0.964 0.000
#> SRR1394428 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1431104 2 0.5291 0.6435 0.268 0.732 0.000
#> SRR1082128 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1078212 3 0.0000 0.9023 0.000 0.000 1.000
#> SRR1458401 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1447281 1 0.0000 0.9135 1.000 0.000 0.000
#> SRR1339258 2 0.5621 0.5796 0.308 0.692 0.000
#> SRR1105106 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1105130 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1419039 1 0.0000 0.9135 1.000 0.000 0.000
#> SRR1079213 3 0.0000 0.9023 0.000 0.000 1.000
#> SRR1309745 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1079408 3 0.0000 0.9023 0.000 0.000 1.000
#> SRR1445550 2 0.4002 0.7724 0.160 0.840 0.000
#> SRR820026 2 0.4887 0.6386 0.000 0.772 0.228
#> SRR1353686 1 0.6302 -0.0413 0.520 0.480 0.000
#> SRR1475466 1 0.0000 0.9135 1.000 0.000 0.000
#> SRR1096315 3 0.0000 0.9023 0.000 0.000 1.000
#> SRR1479826 2 0.5733 0.4986 0.324 0.676 0.000
#> SRR1479450 2 0.4750 0.7079 0.216 0.784 0.000
#> SRR1094097 1 0.0000 0.9135 1.000 0.000 0.000
#> SRR1071737 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1433989 1 0.0000 0.9135 1.000 0.000 0.000
#> SRR1077159 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1330082 1 0.0000 0.9135 1.000 0.000 0.000
#> SRR1079874 2 0.5397 0.6242 0.280 0.720 0.000
#> SRR1387132 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1095261 3 0.3686 0.8011 0.000 0.140 0.860
#> SRR818646 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1313991 1 0.0000 0.9135 1.000 0.000 0.000
#> SRR1363718 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1381372 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1388257 2 0.0424 0.8969 0.008 0.992 0.000
#> SRR818139 1 0.0000 0.9135 1.000 0.000 0.000
#> SRR1078188 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1080342 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1085358 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1473482 2 0.2796 0.8312 0.092 0.908 0.000
#> SRR1452674 1 0.0000 0.9135 1.000 0.000 0.000
#> SRR1395874 2 0.1031 0.8873 0.000 0.976 0.024
#> SRR1382780 3 0.0000 0.9023 0.000 0.000 1.000
#> SRR1361138 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1319242 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1084553 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1498747 3 0.4291 0.7593 0.000 0.180 0.820
#> SRR1442213 3 0.0000 0.9023 0.000 0.000 1.000
#> SRR1343943 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1458828 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1360280 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1474208 3 0.0000 0.9023 0.000 0.000 1.000
#> SRR1498726 3 0.6410 0.3229 0.004 0.420 0.576
#> SRR1099857 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1329423 2 0.5859 0.5130 0.344 0.656 0.000
#> SRR1074430 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1485848 2 0.5859 0.5142 0.344 0.656 0.000
#> SRR1471395 2 0.4654 0.7197 0.208 0.792 0.000
#> SRR1096198 1 0.3412 0.7841 0.876 0.124 0.000
#> SRR1323234 2 0.6286 0.1909 0.464 0.536 0.000
#> SRR1073483 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR817817 2 0.4605 0.7241 0.204 0.796 0.000
#> SRR1434070 3 0.0000 0.9023 0.000 0.000 1.000
#> SRR1100941 3 0.2448 0.8547 0.000 0.076 0.924
#> SRR1336682 1 0.0000 0.9135 1.000 0.000 0.000
#> SRR1077211 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1389454 1 0.0000 0.9135 1.000 0.000 0.000
#> SRR1393004 1 0.0000 0.9135 1.000 0.000 0.000
#> SRR1086369 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1447192 1 0.0000 0.9135 1.000 0.000 0.000
#> SRR1459147 1 0.5859 0.4106 0.656 0.344 0.000
#> SRR1097929 3 0.0000 0.9023 0.000 0.000 1.000
#> SRR1075850 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1358126 1 0.2625 0.8290 0.916 0.084 0.000
#> SRR1121009 3 0.5254 0.6103 0.264 0.000 0.736
#> SRR1321720 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR810105 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1489007 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1361838 2 0.6111 0.3962 0.396 0.604 0.000
#> SRR1475086 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1468226 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1069466 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1078114 2 0.9804 0.1147 0.296 0.432 0.272
#> SRR1319991 2 0.0000 0.9014 0.000 1.000 0.000
#> SRR1374543 1 0.0000 0.9135 1.000 0.000 0.000
#> SRR1383237 2 0.6252 0.2591 0.444 0.556 0.000
#> SRR1486215 1 0.0000 0.9135 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1499584 2 0.3726 0.783 0.000 0.788 0.000 0.212
#> SRR815256 4 0.0817 0.889 0.000 0.024 0.000 0.976
#> SRR1077996 2 0.3726 0.783 0.000 0.788 0.000 0.212
#> SRR1338468 4 0.1022 0.885 0.000 0.032 0.000 0.968
#> SRR1394428 4 0.2704 0.804 0.000 0.124 0.000 0.876
#> SRR1431104 2 0.7042 0.614 0.240 0.572 0.000 0.188
#> SRR1082128 2 0.4193 0.744 0.000 0.732 0.000 0.268
#> SRR1078212 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1458401 4 0.0817 0.889 0.000 0.024 0.000 0.976
#> SRR1447281 1 0.0188 0.909 0.996 0.000 0.000 0.004
#> SRR1339258 2 0.4277 0.414 0.280 0.720 0.000 0.000
#> SRR1105106 2 0.3266 0.769 0.000 0.832 0.000 0.168
#> SRR1105130 2 0.3726 0.783 0.000 0.788 0.000 0.212
#> SRR1419039 1 0.0000 0.909 1.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1309745 2 0.3726 0.783 0.000 0.788 0.000 0.212
#> SRR1079408 3 0.0336 0.930 0.000 0.000 0.992 0.008
#> SRR1445550 2 0.3450 0.584 0.156 0.836 0.000 0.008
#> SRR820026 4 0.1520 0.883 0.000 0.024 0.020 0.956
#> SRR1353686 4 0.6912 0.381 0.192 0.216 0.000 0.592
#> SRR1475466 1 0.0188 0.909 0.996 0.000 0.000 0.004
#> SRR1096315 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1479826 4 0.3991 0.740 0.120 0.048 0.000 0.832
#> SRR1479450 2 0.3105 0.620 0.120 0.868 0.000 0.012
#> SRR1094097 1 0.0188 0.909 0.996 0.000 0.000 0.004
#> SRR1071737 2 0.3726 0.783 0.000 0.788 0.000 0.212
#> SRR1433989 1 0.0336 0.906 0.992 0.000 0.000 0.008
#> SRR1077159 4 0.0817 0.889 0.000 0.024 0.000 0.976
#> SRR1330082 1 0.0336 0.906 0.992 0.000 0.000 0.008
#> SRR1079874 2 0.4098 0.521 0.204 0.784 0.000 0.012
#> SRR1387132 2 0.3726 0.783 0.000 0.788 0.000 0.212
#> SRR1095261 3 0.5534 0.725 0.004 0.200 0.724 0.072
#> SRR818646 2 0.4072 0.755 0.000 0.748 0.000 0.252
#> SRR1313991 1 0.0000 0.909 1.000 0.000 0.000 0.000
#> SRR1363718 2 0.3726 0.783 0.000 0.788 0.000 0.212
#> SRR1381372 2 0.4103 0.752 0.000 0.744 0.000 0.256
#> SRR1388257 2 0.4049 0.781 0.008 0.780 0.000 0.212
#> SRR818139 1 0.0188 0.909 0.996 0.000 0.000 0.004
#> SRR1078188 2 0.3726 0.783 0.000 0.788 0.000 0.212
#> SRR1080342 2 0.3726 0.783 0.000 0.788 0.000 0.212
#> SRR1085358 4 0.0817 0.889 0.000 0.024 0.000 0.976
#> SRR1473482 4 0.1284 0.879 0.024 0.012 0.000 0.964
#> SRR1452674 1 0.0188 0.909 0.996 0.000 0.000 0.004
#> SRR1395874 4 0.2586 0.826 0.004 0.092 0.004 0.900
#> SRR1382780 3 0.1118 0.915 0.000 0.000 0.964 0.036
#> SRR1361138 2 0.3764 0.781 0.000 0.784 0.000 0.216
#> SRR1319242 2 0.4331 0.731 0.000 0.712 0.000 0.288
#> SRR1084553 2 0.3726 0.783 0.000 0.788 0.000 0.212
#> SRR1498747 4 0.2983 0.772 0.004 0.008 0.108 0.880
#> SRR1442213 3 0.1302 0.909 0.000 0.000 0.956 0.044
#> SRR1343943 2 0.1022 0.699 0.000 0.968 0.000 0.032
#> SRR1458828 4 0.1867 0.862 0.000 0.072 0.000 0.928
#> SRR1360280 2 0.4761 0.589 0.000 0.628 0.000 0.372
#> SRR1474208 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1498726 2 0.7211 -0.157 0.004 0.512 0.352 0.132
#> SRR1099857 4 0.0817 0.889 0.000 0.024 0.000 0.976
#> SRR1329423 2 0.4382 0.391 0.296 0.704 0.000 0.000
#> SRR1074430 2 0.4040 0.758 0.000 0.752 0.000 0.248
#> SRR1485848 2 0.4663 0.414 0.272 0.716 0.000 0.012
#> SRR1471395 2 0.3933 0.531 0.200 0.792 0.000 0.008
#> SRR1096198 1 0.2751 0.831 0.904 0.056 0.000 0.040
#> SRR1323234 4 0.2412 0.829 0.084 0.008 0.000 0.908
#> SRR1073483 2 0.3764 0.781 0.000 0.784 0.000 0.216
#> SRR817817 2 0.4059 0.527 0.200 0.788 0.000 0.012
#> SRR1434070 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1100941 3 0.2674 0.865 0.004 0.068 0.908 0.020
#> SRR1336682 1 0.0188 0.909 0.996 0.000 0.000 0.004
#> SRR1077211 2 0.3726 0.783 0.000 0.788 0.000 0.212
#> SRR1389454 1 0.0188 0.909 0.996 0.000 0.000 0.004
#> SRR1393004 1 0.0000 0.909 1.000 0.000 0.000 0.000
#> SRR1086369 4 0.3688 0.686 0.000 0.208 0.000 0.792
#> SRR1447192 1 0.0188 0.909 0.996 0.000 0.000 0.004
#> SRR1459147 1 0.6750 0.542 0.612 0.208 0.000 0.180
#> SRR1097929 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1075850 4 0.0524 0.885 0.004 0.008 0.000 0.988
#> SRR1358126 1 0.0817 0.894 0.976 0.000 0.000 0.024
#> SRR1121009 3 0.5174 0.408 0.368 0.000 0.620 0.012
#> SRR1321720 4 0.4222 0.557 0.000 0.272 0.000 0.728
#> SRR810105 4 0.0817 0.889 0.000 0.024 0.000 0.976
#> SRR1489007 2 0.3873 0.778 0.000 0.772 0.000 0.228
#> SRR1361838 2 0.4978 0.302 0.324 0.664 0.000 0.012
#> SRR1475086 2 0.3726 0.783 0.000 0.788 0.000 0.212
#> SRR1468226 2 0.3726 0.783 0.000 0.788 0.000 0.212
#> SRR1069466 2 0.3726 0.783 0.000 0.788 0.000 0.212
#> SRR1078114 2 0.8404 0.138 0.224 0.480 0.256 0.040
#> SRR1319991 2 0.0000 0.682 0.000 1.000 0.000 0.000
#> SRR1374543 1 0.4164 0.610 0.736 0.000 0.000 0.264
#> SRR1383237 1 0.7340 -0.305 0.436 0.408 0.000 0.156
#> SRR1486215 1 0.0188 0.908 0.996 0.000 0.000 0.004
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.0000 0.972 0.000 0.000 1.000 0.000 0.000
#> SRR1499584 2 0.0510 0.942 0.000 0.984 0.000 0.016 0.000
#> SRR815256 5 0.0404 0.939 0.000 0.012 0.000 0.000 0.988
#> SRR1077996 2 0.0404 0.945 0.000 0.988 0.000 0.012 0.000
#> SRR1338468 5 0.0794 0.930 0.000 0.028 0.000 0.000 0.972
#> SRR1394428 5 0.2179 0.858 0.000 0.112 0.000 0.000 0.888
#> SRR1431104 2 0.3687 0.725 0.180 0.792 0.000 0.028 0.000
#> SRR1082128 2 0.0880 0.931 0.000 0.968 0.000 0.000 0.032
#> SRR1078212 3 0.0000 0.972 0.000 0.000 1.000 0.000 0.000
#> SRR1458401 5 0.0162 0.941 0.000 0.004 0.000 0.000 0.996
#> SRR1447281 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.1851 0.896 0.088 0.000 0.000 0.912 0.000
#> SRR1105106 2 0.3274 0.701 0.000 0.780 0.000 0.220 0.000
#> SRR1105130 2 0.0000 0.951 0.000 1.000 0.000 0.000 0.000
#> SRR1419039 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.972 0.000 0.000 1.000 0.000 0.000
#> SRR1309745 2 0.0000 0.951 0.000 1.000 0.000 0.000 0.000
#> SRR1079408 3 0.2011 0.941 0.000 0.000 0.908 0.088 0.004
#> SRR1445550 4 0.2017 0.895 0.080 0.008 0.000 0.912 0.000
#> SRR820026 5 0.0404 0.939 0.000 0.012 0.000 0.000 0.988
#> SRR1353686 4 0.5358 0.633 0.104 0.000 0.000 0.648 0.248
#> SRR1475466 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.972 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 5 0.0162 0.941 0.000 0.004 0.000 0.000 0.996
#> SRR1479450 4 0.2179 0.843 0.000 0.112 0.000 0.888 0.000
#> SRR1094097 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0162 0.950 0.000 0.996 0.000 0.000 0.004
#> SRR1433989 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.0162 0.941 0.000 0.004 0.000 0.000 0.996
#> SRR1330082 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.1851 0.896 0.088 0.000 0.000 0.912 0.000
#> SRR1387132 2 0.0000 0.951 0.000 1.000 0.000 0.000 0.000
#> SRR1095261 4 0.3039 0.742 0.000 0.000 0.192 0.808 0.000
#> SRR818646 2 0.0000 0.951 0.000 1.000 0.000 0.000 0.000
#> SRR1313991 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.951 0.000 1.000 0.000 0.000 0.000
#> SRR1381372 2 0.0510 0.943 0.000 0.984 0.000 0.000 0.016
#> SRR1388257 2 0.0162 0.949 0.004 0.996 0.000 0.000 0.000
#> SRR818139 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0162 0.950 0.000 0.996 0.000 0.000 0.004
#> SRR1080342 2 0.0000 0.951 0.000 1.000 0.000 0.000 0.000
#> SRR1085358 5 0.0162 0.941 0.000 0.004 0.000 0.000 0.996
#> SRR1473482 5 0.0162 0.941 0.000 0.004 0.000 0.000 0.996
#> SRR1452674 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 5 0.2605 0.823 0.000 0.148 0.000 0.000 0.852
#> SRR1382780 3 0.2011 0.941 0.000 0.000 0.908 0.088 0.004
#> SRR1361138 2 0.0000 0.951 0.000 1.000 0.000 0.000 0.000
#> SRR1319242 2 0.0963 0.927 0.000 0.964 0.000 0.000 0.036
#> SRR1084553 2 0.0000 0.951 0.000 1.000 0.000 0.000 0.000
#> SRR1498747 5 0.0162 0.941 0.000 0.004 0.000 0.000 0.996
#> SRR1442213 3 0.2011 0.941 0.000 0.000 0.908 0.088 0.004
#> SRR1343943 4 0.2773 0.802 0.000 0.164 0.000 0.836 0.000
#> SRR1458828 5 0.0963 0.925 0.000 0.036 0.000 0.000 0.964
#> SRR1360280 2 0.2773 0.786 0.000 0.836 0.000 0.000 0.164
#> SRR1474208 3 0.0000 0.972 0.000 0.000 1.000 0.000 0.000
#> SRR1498726 4 0.1908 0.852 0.000 0.092 0.000 0.908 0.000
#> SRR1099857 5 0.0162 0.941 0.000 0.004 0.000 0.000 0.996
#> SRR1329423 4 0.2127 0.883 0.108 0.000 0.000 0.892 0.000
#> SRR1074430 2 0.0000 0.951 0.000 1.000 0.000 0.000 0.000
#> SRR1485848 4 0.1851 0.896 0.088 0.000 0.000 0.912 0.000
#> SRR1471395 4 0.1851 0.896 0.088 0.000 0.000 0.912 0.000
#> SRR1096198 1 0.1942 0.858 0.920 0.068 0.000 0.012 0.000
#> SRR1323234 5 0.0162 0.937 0.004 0.000 0.000 0.000 0.996
#> SRR1073483 2 0.0000 0.951 0.000 1.000 0.000 0.000 0.000
#> SRR817817 4 0.1851 0.896 0.088 0.000 0.000 0.912 0.000
#> SRR1434070 3 0.0000 0.972 0.000 0.000 1.000 0.000 0.000
#> SRR1100941 3 0.1484 0.924 0.000 0.048 0.944 0.000 0.008
#> SRR1336682 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.0000 0.951 0.000 1.000 0.000 0.000 0.000
#> SRR1389454 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 5 0.3109 0.763 0.000 0.200 0.000 0.000 0.800
#> SRR1447192 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 1 0.4451 -0.141 0.504 0.000 0.000 0.492 0.004
#> SRR1097929 3 0.0000 0.972 0.000 0.000 1.000 0.000 0.000
#> SRR1075850 5 0.0162 0.941 0.000 0.004 0.000 0.000 0.996
#> SRR1358126 1 0.0162 0.931 0.996 0.004 0.000 0.000 0.000
#> SRR1121009 1 0.3074 0.724 0.804 0.000 0.196 0.000 0.000
#> SRR1321720 5 0.3752 0.636 0.000 0.292 0.000 0.000 0.708
#> SRR810105 5 0.0162 0.941 0.000 0.004 0.000 0.000 0.996
#> SRR1489007 2 0.0671 0.941 0.000 0.980 0.000 0.004 0.016
#> SRR1361838 4 0.1851 0.896 0.088 0.000 0.000 0.912 0.000
#> SRR1475086 2 0.0000 0.951 0.000 1.000 0.000 0.000 0.000
#> SRR1468226 2 0.0000 0.951 0.000 1.000 0.000 0.000 0.000
#> SRR1069466 2 0.0000 0.951 0.000 1.000 0.000 0.000 0.000
#> SRR1078114 4 0.4617 0.784 0.108 0.148 0.000 0.744 0.000
#> SRR1319991 4 0.2471 0.825 0.000 0.136 0.000 0.864 0.000
#> SRR1374543 1 0.3662 0.636 0.744 0.004 0.000 0.000 0.252
#> SRR1383237 2 0.5580 0.373 0.336 0.576 0.000 0.088 0.000
#> SRR1486215 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.0000 0.946 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1499584 2 0.0458 0.939 0.000 0.984 0.000 0.016 0.000 0.000
#> SRR815256 5 0.0363 0.926 0.000 0.012 0.000 0.000 0.988 0.000
#> SRR1077996 2 0.0713 0.930 0.000 0.972 0.000 0.028 0.000 0.000
#> SRR1338468 5 0.0713 0.915 0.000 0.028 0.000 0.000 0.972 0.000
#> SRR1394428 5 0.1957 0.830 0.000 0.112 0.000 0.000 0.888 0.000
#> SRR1431104 2 0.3318 0.721 0.172 0.796 0.000 0.032 0.000 0.000
#> SRR1082128 2 0.0865 0.923 0.000 0.964 0.000 0.000 0.036 0.000
#> SRR1078212 3 0.0000 0.946 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1458401 5 0.0000 0.931 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1447281 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.0000 0.922 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1105106 2 0.2912 0.708 0.000 0.784 0.000 0.216 0.000 0.000
#> SRR1105130 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1419039 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.946 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1309745 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079408 6 0.0000 1.000 0.000 0.000 0.000 0.000 0.000 1.000
#> SRR1445550 4 0.0000 0.922 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR820026 5 0.0260 0.928 0.000 0.008 0.000 0.000 0.992 0.000
#> SRR1353686 4 0.4038 0.577 0.044 0.000 0.000 0.712 0.244 0.000
#> SRR1475466 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.946 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1479826 5 0.0000 0.931 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1479450 4 0.0865 0.902 0.000 0.036 0.000 0.964 0.000 0.000
#> SRR1094097 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0146 0.946 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1433989 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.0000 0.931 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1330082 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.0000 0.922 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1387132 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1095261 3 0.2793 0.699 0.000 0.000 0.800 0.200 0.000 0.000
#> SRR818646 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1313991 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1381372 2 0.0458 0.939 0.000 0.984 0.000 0.000 0.016 0.000
#> SRR1388257 2 0.0146 0.946 0.004 0.996 0.000 0.000 0.000 0.000
#> SRR818139 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0146 0.946 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1080342 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1085358 5 0.0000 0.931 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1473482 5 0.0000 0.931 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1452674 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1395874 5 0.2300 0.790 0.000 0.144 0.000 0.000 0.856 0.000
#> SRR1382780 6 0.0000 1.000 0.000 0.000 0.000 0.000 0.000 1.000
#> SRR1361138 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1319242 2 0.0790 0.926 0.000 0.968 0.000 0.000 0.032 0.000
#> SRR1084553 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1498747 5 0.0000 0.931 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1442213 6 0.0000 1.000 0.000 0.000 0.000 0.000 0.000 1.000
#> SRR1343943 4 0.1501 0.861 0.000 0.076 0.000 0.924 0.000 0.000
#> SRR1458828 5 0.0865 0.909 0.000 0.036 0.000 0.000 0.964 0.000
#> SRR1360280 2 0.2491 0.770 0.000 0.836 0.000 0.000 0.164 0.000
#> SRR1474208 3 0.0000 0.946 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1498726 4 0.0405 0.918 0.000 0.008 0.004 0.988 0.000 0.000
#> SRR1099857 5 0.0000 0.931 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1329423 4 0.0865 0.896 0.036 0.000 0.000 0.964 0.000 0.000
#> SRR1074430 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1485848 4 0.0000 0.922 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1471395 4 0.0000 0.922 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1096198 1 0.2145 0.827 0.900 0.072 0.000 0.028 0.000 0.000
#> SRR1323234 5 0.0000 0.931 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1073483 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR817817 4 0.0000 0.922 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1434070 3 0.0000 0.946 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1100941 3 0.0000 0.946 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1336682 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1389454 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1086369 5 0.2762 0.722 0.000 0.196 0.000 0.000 0.804 0.000
#> SRR1447192 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1459147 1 0.3971 0.154 0.548 0.000 0.000 0.448 0.004 0.000
#> SRR1097929 3 0.0547 0.932 0.000 0.000 0.980 0.000 0.000 0.020
#> SRR1075850 5 0.0000 0.931 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1358126 1 0.0291 0.929 0.992 0.004 0.000 0.004 0.000 0.000
#> SRR1121009 3 0.2431 0.774 0.132 0.000 0.860 0.000 0.000 0.008
#> SRR1321720 5 0.3351 0.583 0.000 0.288 0.000 0.000 0.712 0.000
#> SRR810105 5 0.0000 0.931 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1489007 2 0.0692 0.934 0.000 0.976 0.000 0.004 0.020 0.000
#> SRR1361838 4 0.0000 0.922 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1475086 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1468226 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1069466 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1078114 4 0.4748 0.644 0.040 0.148 0.084 0.728 0.000 0.000
#> SRR1319991 4 0.1327 0.873 0.000 0.064 0.000 0.936 0.000 0.000
#> SRR1374543 1 0.3547 0.503 0.696 0.004 0.000 0.000 0.300 0.000
#> SRR1383237 2 0.5406 0.369 0.272 0.568 0.000 0.160 0.000 0.000
#> SRR1486215 1 0.0000 0.935 1.000 0.000 0.000 0.000 0.000 0.000
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["CV", "mclust"]
# you can also extract it by
# res = res_list["CV:mclust"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'CV' method.
#> Subgroups are detected by 'mclust' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.928 0.945 0.975 0.3429 0.663 0.663
#> 3 3 0.410 0.809 0.838 0.5655 0.719 0.610
#> 4 4 0.713 0.831 0.858 0.3041 0.766 0.533
#> 5 5 0.912 0.860 0.945 0.1405 0.887 0.614
#> 6 6 0.869 0.767 0.878 0.0381 0.948 0.749
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 5
#> attr(,"optional")
#> [1] 2
There is also optional best \(k\) = 2 that is worth to check.
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.955 1.000 0.000
#> SRR1499584 2 0.0000 0.978 0.000 1.000
#> SRR815256 2 0.0000 0.978 0.000 1.000
#> SRR1077996 2 0.0000 0.978 0.000 1.000
#> SRR1338468 2 0.0672 0.976 0.008 0.992
#> SRR1394428 2 0.0000 0.978 0.000 1.000
#> SRR1431104 2 0.0376 0.976 0.004 0.996
#> SRR1082128 2 0.0000 0.978 0.000 1.000
#> SRR1078212 1 0.0000 0.955 1.000 0.000
#> SRR1458401 2 0.0672 0.976 0.008 0.992
#> SRR1447281 2 0.1184 0.973 0.016 0.984
#> SRR1339258 2 0.0000 0.978 0.000 1.000
#> SRR1105106 2 0.0000 0.978 0.000 1.000
#> SRR1105130 2 0.0000 0.978 0.000 1.000
#> SRR1419039 2 0.1184 0.973 0.016 0.984
#> SRR1079213 1 0.0000 0.955 1.000 0.000
#> SRR1309745 2 0.0000 0.978 0.000 1.000
#> SRR1079408 1 0.0000 0.955 1.000 0.000
#> SRR1445550 2 0.0000 0.978 0.000 1.000
#> SRR820026 1 0.6973 0.762 0.812 0.188
#> SRR1353686 2 0.0376 0.977 0.004 0.996
#> SRR1475466 2 0.7056 0.780 0.192 0.808
#> SRR1096315 1 0.0000 0.955 1.000 0.000
#> SRR1479826 2 0.7219 0.763 0.200 0.800
#> SRR1479450 2 0.0376 0.977 0.004 0.996
#> SRR1094097 2 0.1184 0.973 0.016 0.984
#> SRR1071737 2 0.0000 0.978 0.000 1.000
#> SRR1433989 2 0.1184 0.973 0.016 0.984
#> SRR1077159 2 0.7139 0.765 0.196 0.804
#> SRR1330082 2 0.1184 0.973 0.016 0.984
#> SRR1079874 2 0.0000 0.978 0.000 1.000
#> SRR1387132 2 0.0000 0.978 0.000 1.000
#> SRR1095261 1 0.0000 0.955 1.000 0.000
#> SRR818646 2 0.0000 0.978 0.000 1.000
#> SRR1313991 2 0.1184 0.973 0.016 0.984
#> SRR1363718 2 0.0000 0.978 0.000 1.000
#> SRR1381372 2 0.0000 0.978 0.000 1.000
#> SRR1388257 2 0.0000 0.978 0.000 1.000
#> SRR818139 2 0.1184 0.973 0.016 0.984
#> SRR1078188 2 0.0000 0.978 0.000 1.000
#> SRR1080342 2 0.0000 0.978 0.000 1.000
#> SRR1085358 1 0.4431 0.880 0.908 0.092
#> SRR1473482 2 0.0672 0.976 0.008 0.992
#> SRR1452674 2 0.1184 0.973 0.016 0.984
#> SRR1395874 1 0.0000 0.955 1.000 0.000
#> SRR1382780 1 0.0000 0.955 1.000 0.000
#> SRR1361138 2 0.0000 0.978 0.000 1.000
#> SRR1319242 2 0.2236 0.951 0.036 0.964
#> SRR1084553 2 0.0000 0.978 0.000 1.000
#> SRR1498747 1 0.1633 0.940 0.976 0.024
#> SRR1442213 1 0.0000 0.955 1.000 0.000
#> SRR1343943 2 0.0000 0.978 0.000 1.000
#> SRR1458828 2 0.0000 0.978 0.000 1.000
#> SRR1360280 2 0.0000 0.978 0.000 1.000
#> SRR1474208 1 0.0000 0.955 1.000 0.000
#> SRR1498726 1 0.0672 0.950 0.992 0.008
#> SRR1099857 2 0.0672 0.976 0.008 0.992
#> SRR1329423 2 0.0000 0.978 0.000 1.000
#> SRR1074430 2 0.0000 0.978 0.000 1.000
#> SRR1485848 2 0.0000 0.978 0.000 1.000
#> SRR1471395 2 0.0000 0.978 0.000 1.000
#> SRR1096198 2 0.2778 0.944 0.048 0.952
#> SRR1323234 2 0.0672 0.976 0.008 0.992
#> SRR1073483 2 0.0000 0.978 0.000 1.000
#> SRR817817 2 0.0000 0.978 0.000 1.000
#> SRR1434070 1 0.0000 0.955 1.000 0.000
#> SRR1100941 1 0.0000 0.955 1.000 0.000
#> SRR1336682 2 0.1184 0.973 0.016 0.984
#> SRR1077211 2 0.0000 0.978 0.000 1.000
#> SRR1389454 2 0.1184 0.973 0.016 0.984
#> SRR1393004 2 0.7376 0.756 0.208 0.792
#> SRR1086369 2 0.7299 0.754 0.204 0.796
#> SRR1447192 2 0.1184 0.973 0.016 0.984
#> SRR1459147 2 0.0672 0.976 0.008 0.992
#> SRR1097929 1 0.0000 0.955 1.000 0.000
#> SRR1075850 1 0.9970 0.109 0.532 0.468
#> SRR1358126 2 0.0376 0.977 0.004 0.996
#> SRR1121009 1 0.0000 0.955 1.000 0.000
#> SRR1321720 2 0.0672 0.976 0.008 0.992
#> SRR810105 2 0.0376 0.977 0.004 0.996
#> SRR1489007 2 0.0000 0.978 0.000 1.000
#> SRR1361838 2 0.0000 0.978 0.000 1.000
#> SRR1475086 2 0.0000 0.978 0.000 1.000
#> SRR1468226 2 0.0938 0.972 0.012 0.988
#> SRR1069466 2 0.0000 0.978 0.000 1.000
#> SRR1078114 2 0.5629 0.856 0.132 0.868
#> SRR1319991 2 0.0000 0.978 0.000 1.000
#> SRR1374543 2 0.1184 0.973 0.016 0.984
#> SRR1383237 2 0.0000 0.978 0.000 1.000
#> SRR1486215 2 0.1184 0.973 0.016 0.984
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.0000 0.864 0.000 0.000 1.000
#> SRR1499584 2 0.0000 0.860 0.000 1.000 0.000
#> SRR815256 2 0.1031 0.858 0.024 0.976 0.000
#> SRR1077996 2 0.0000 0.860 0.000 1.000 0.000
#> SRR1338468 2 0.1163 0.857 0.028 0.972 0.000
#> SRR1394428 2 0.1031 0.858 0.024 0.976 0.000
#> SRR1431104 2 0.5690 0.743 0.288 0.708 0.004
#> SRR1082128 2 0.0237 0.860 0.004 0.996 0.000
#> SRR1078212 3 0.0000 0.864 0.000 0.000 1.000
#> SRR1458401 2 0.1163 0.857 0.028 0.972 0.000
#> SRR1447281 1 0.6693 0.966 0.748 0.104 0.148
#> SRR1339258 2 0.3116 0.826 0.108 0.892 0.000
#> SRR1105106 2 0.0892 0.858 0.020 0.980 0.000
#> SRR1105130 2 0.1860 0.854 0.052 0.948 0.000
#> SRR1419039 1 0.6974 0.970 0.728 0.104 0.168
#> SRR1079213 3 0.0000 0.864 0.000 0.000 1.000
#> SRR1309745 2 0.3412 0.834 0.124 0.876 0.000
#> SRR1079408 3 0.0892 0.855 0.020 0.000 0.980
#> SRR1445550 2 0.5291 0.754 0.268 0.732 0.000
#> SRR820026 2 0.4586 0.797 0.096 0.856 0.048
#> SRR1353686 2 0.2959 0.836 0.100 0.900 0.000
#> SRR1475466 1 0.6758 0.923 0.728 0.072 0.200
#> SRR1096315 3 0.0000 0.864 0.000 0.000 1.000
#> SRR1479826 2 0.4586 0.797 0.096 0.856 0.048
#> SRR1479450 2 0.7091 0.674 0.124 0.724 0.152
#> SRR1094097 1 0.6974 0.970 0.728 0.104 0.168
#> SRR1071737 2 0.0237 0.860 0.004 0.996 0.000
#> SRR1433989 1 0.6974 0.970 0.728 0.104 0.168
#> SRR1077159 2 0.4253 0.810 0.080 0.872 0.048
#> SRR1330082 1 0.6974 0.970 0.728 0.104 0.168
#> SRR1079874 2 0.5431 0.746 0.284 0.716 0.000
#> SRR1387132 2 0.3816 0.824 0.148 0.852 0.000
#> SRR1095261 3 0.8084 0.181 0.072 0.384 0.544
#> SRR818646 2 0.1031 0.858 0.024 0.976 0.000
#> SRR1313991 1 0.6974 0.970 0.728 0.104 0.168
#> SRR1363718 2 0.0000 0.860 0.000 1.000 0.000
#> SRR1381372 2 0.1031 0.858 0.024 0.976 0.000
#> SRR1388257 2 0.1031 0.858 0.024 0.976 0.000
#> SRR818139 1 0.6752 0.968 0.744 0.104 0.152
#> SRR1078188 2 0.0000 0.860 0.000 1.000 0.000
#> SRR1080342 2 0.0000 0.860 0.000 1.000 0.000
#> SRR1085358 2 0.4586 0.797 0.096 0.856 0.048
#> SRR1473482 2 0.4834 0.682 0.204 0.792 0.004
#> SRR1452674 1 0.6974 0.970 0.728 0.104 0.168
#> SRR1395874 3 0.6576 0.555 0.068 0.192 0.740
#> SRR1382780 3 0.0892 0.855 0.020 0.000 0.980
#> SRR1361138 2 0.3816 0.824 0.148 0.852 0.000
#> SRR1319242 2 0.2982 0.839 0.056 0.920 0.024
#> SRR1084553 2 0.0424 0.860 0.008 0.992 0.000
#> SRR1498747 3 0.7842 0.382 0.072 0.328 0.600
#> SRR1442213 3 0.0000 0.864 0.000 0.000 1.000
#> SRR1343943 2 0.3752 0.826 0.144 0.856 0.000
#> SRR1458828 2 0.0983 0.859 0.016 0.980 0.004
#> SRR1360280 2 0.1031 0.858 0.024 0.976 0.000
#> SRR1474208 3 0.0000 0.864 0.000 0.000 1.000
#> SRR1498726 2 0.8094 0.561 0.100 0.612 0.288
#> SRR1099857 2 0.1289 0.857 0.032 0.968 0.000
#> SRR1329423 2 0.6693 0.684 0.104 0.748 0.148
#> SRR1074430 2 0.0000 0.860 0.000 1.000 0.000
#> SRR1485848 2 0.5431 0.746 0.284 0.716 0.000
#> SRR1471395 2 0.5431 0.746 0.284 0.716 0.000
#> SRR1096198 2 0.7653 0.646 0.140 0.684 0.176
#> SRR1323234 2 0.8633 -0.269 0.436 0.464 0.100
#> SRR1073483 2 0.3816 0.824 0.148 0.852 0.000
#> SRR817817 2 0.5254 0.755 0.264 0.736 0.000
#> SRR1434070 3 0.0000 0.864 0.000 0.000 1.000
#> SRR1100941 3 0.1711 0.841 0.032 0.008 0.960
#> SRR1336682 1 0.6693 0.966 0.748 0.104 0.148
#> SRR1077211 2 0.1163 0.857 0.028 0.972 0.000
#> SRR1389454 1 0.6693 0.966 0.748 0.104 0.148
#> SRR1393004 1 0.6106 0.875 0.756 0.044 0.200
#> SRR1086369 2 0.4586 0.797 0.096 0.856 0.048
#> SRR1447192 1 0.6752 0.968 0.744 0.104 0.152
#> SRR1459147 2 0.3879 0.802 0.152 0.848 0.000
#> SRR1097929 3 0.0000 0.864 0.000 0.000 1.000
#> SRR1075850 2 0.4586 0.797 0.096 0.856 0.048
#> SRR1358126 2 0.8392 0.431 0.236 0.616 0.148
#> SRR1121009 3 0.0237 0.862 0.004 0.000 0.996
#> SRR1321720 2 0.1163 0.857 0.028 0.972 0.000
#> SRR810105 2 0.1529 0.855 0.040 0.960 0.000
#> SRR1489007 2 0.3941 0.822 0.156 0.844 0.000
#> SRR1361838 2 0.5431 0.746 0.284 0.716 0.000
#> SRR1475086 2 0.3816 0.824 0.148 0.852 0.000
#> SRR1468226 2 0.2280 0.847 0.052 0.940 0.008
#> SRR1069466 2 0.3816 0.824 0.148 0.852 0.000
#> SRR1078114 2 0.7653 0.646 0.140 0.684 0.176
#> SRR1319991 2 0.4121 0.817 0.168 0.832 0.000
#> SRR1374543 1 0.7372 0.943 0.704 0.128 0.168
#> SRR1383237 2 0.5431 0.746 0.284 0.716 0.000
#> SRR1486215 1 0.6693 0.966 0.748 0.104 0.148
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.0000 0.932 0.000 0.000 1.000 0.000
#> SRR1499584 2 0.4605 0.815 0.000 0.664 0.000 0.336
#> SRR815256 4 0.0592 0.898 0.000 0.016 0.000 0.984
#> SRR1077996 2 0.4605 0.815 0.000 0.664 0.000 0.336
#> SRR1338468 4 0.2441 0.919 0.004 0.020 0.056 0.920
#> SRR1394428 4 0.0779 0.900 0.004 0.016 0.000 0.980
#> SRR1431104 2 0.0592 0.707 0.016 0.984 0.000 0.000
#> SRR1082128 2 0.4624 0.812 0.000 0.660 0.000 0.340
#> SRR1078212 3 0.0000 0.932 0.000 0.000 1.000 0.000
#> SRR1458401 4 0.2328 0.919 0.004 0.016 0.056 0.924
#> SRR1447281 1 0.0000 0.938 1.000 0.000 0.000 0.000
#> SRR1339258 2 0.3300 0.760 0.008 0.848 0.000 0.144
#> SRR1105106 4 0.2081 0.835 0.000 0.084 0.000 0.916
#> SRR1105130 2 0.4624 0.812 0.000 0.660 0.000 0.340
#> SRR1419039 1 0.0000 0.938 1.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.932 0.000 0.000 1.000 0.000
#> SRR1309745 2 0.4605 0.815 0.000 0.664 0.000 0.336
#> SRR1079408 3 0.0000 0.932 0.000 0.000 1.000 0.000
#> SRR1445550 2 0.0469 0.707 0.012 0.988 0.000 0.000
#> SRR820026 4 0.2311 0.902 0.004 0.004 0.076 0.916
#> SRR1353686 4 0.3746 0.893 0.016 0.060 0.056 0.868
#> SRR1475466 1 0.0000 0.938 1.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.932 0.000 0.000 1.000 0.000
#> SRR1479826 4 0.2311 0.902 0.004 0.004 0.076 0.916
#> SRR1479450 2 0.0779 0.709 0.016 0.980 0.000 0.004
#> SRR1094097 1 0.0000 0.938 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.4624 0.814 0.000 0.660 0.000 0.340
#> SRR1433989 1 0.0000 0.938 1.000 0.000 0.000 0.000
#> SRR1077159 4 0.2125 0.905 0.004 0.000 0.076 0.920
#> SRR1330082 1 0.0000 0.938 1.000 0.000 0.000 0.000
#> SRR1079874 2 0.0469 0.707 0.012 0.988 0.000 0.000
#> SRR1387132 2 0.4605 0.815 0.000 0.664 0.000 0.336
#> SRR1095261 3 0.4063 0.730 0.004 0.016 0.808 0.172
#> SRR818646 4 0.1867 0.852 0.000 0.072 0.000 0.928
#> SRR1313991 1 0.0000 0.938 1.000 0.000 0.000 0.000
#> SRR1363718 2 0.4605 0.815 0.000 0.664 0.000 0.336
#> SRR1381372 4 0.1557 0.870 0.000 0.056 0.000 0.944
#> SRR1388257 4 0.1637 0.866 0.000 0.060 0.000 0.940
#> SRR818139 1 0.0000 0.938 1.000 0.000 0.000 0.000
#> SRR1078188 2 0.4624 0.814 0.000 0.660 0.000 0.340
#> SRR1080342 2 0.4605 0.815 0.000 0.664 0.000 0.336
#> SRR1085358 4 0.2311 0.902 0.004 0.004 0.076 0.916
#> SRR1473482 4 0.2328 0.919 0.004 0.016 0.056 0.924
#> SRR1452674 1 0.0000 0.938 1.000 0.000 0.000 0.000
#> SRR1395874 3 0.4051 0.685 0.004 0.004 0.784 0.208
#> SRR1382780 3 0.0000 0.932 0.000 0.000 1.000 0.000
#> SRR1361138 2 0.4605 0.815 0.000 0.664 0.000 0.336
#> SRR1319242 2 0.5328 0.802 0.004 0.660 0.020 0.316
#> SRR1084553 2 0.4624 0.814 0.000 0.660 0.000 0.340
#> SRR1498747 3 0.4854 0.494 0.004 0.004 0.676 0.316
#> SRR1442213 3 0.0000 0.932 0.000 0.000 1.000 0.000
#> SRR1343943 2 0.4605 0.815 0.000 0.664 0.000 0.336
#> SRR1458828 2 0.4817 0.762 0.000 0.612 0.000 0.388
#> SRR1360280 4 0.0592 0.898 0.000 0.016 0.000 0.984
#> SRR1474208 3 0.0000 0.932 0.000 0.000 1.000 0.000
#> SRR1498726 2 0.6288 0.737 0.004 0.652 0.096 0.248
#> SRR1099857 4 0.2485 0.917 0.004 0.016 0.064 0.916
#> SRR1329423 2 0.1411 0.713 0.020 0.960 0.000 0.020
#> SRR1074430 2 0.4605 0.815 0.000 0.664 0.000 0.336
#> SRR1485848 2 0.0469 0.707 0.012 0.988 0.000 0.000
#> SRR1471395 2 0.0469 0.707 0.012 0.988 0.000 0.000
#> SRR1096198 2 0.3507 0.726 0.016 0.880 0.052 0.052
#> SRR1323234 1 0.6227 0.216 0.588 0.004 0.056 0.352
#> SRR1073483 2 0.4605 0.815 0.000 0.664 0.000 0.336
#> SRR817817 2 0.0657 0.709 0.012 0.984 0.000 0.004
#> SRR1434070 3 0.0000 0.932 0.000 0.000 1.000 0.000
#> SRR1100941 3 0.0657 0.924 0.000 0.004 0.984 0.012
#> SRR1336682 1 0.0000 0.938 1.000 0.000 0.000 0.000
#> SRR1077211 4 0.0592 0.898 0.000 0.016 0.000 0.984
#> SRR1389454 1 0.0000 0.938 1.000 0.000 0.000 0.000
#> SRR1393004 1 0.0336 0.930 0.992 0.000 0.008 0.000
#> SRR1086369 4 0.2311 0.902 0.004 0.004 0.076 0.916
#> SRR1447192 1 0.0000 0.938 1.000 0.000 0.000 0.000
#> SRR1459147 4 0.5172 0.540 0.284 0.008 0.016 0.692
#> SRR1097929 3 0.0000 0.932 0.000 0.000 1.000 0.000
#> SRR1075850 4 0.2125 0.905 0.004 0.000 0.076 0.920
#> SRR1358126 1 0.5774 0.395 0.640 0.316 0.004 0.040
#> SRR1121009 3 0.0336 0.928 0.000 0.000 0.992 0.008
#> SRR1321720 4 0.2189 0.918 0.004 0.020 0.044 0.932
#> SRR810105 4 0.2328 0.919 0.004 0.016 0.056 0.924
#> SRR1489007 2 0.4585 0.816 0.000 0.668 0.000 0.332
#> SRR1361838 2 0.0469 0.707 0.012 0.988 0.000 0.000
#> SRR1475086 2 0.4585 0.816 0.000 0.668 0.000 0.332
#> SRR1468226 2 0.5143 0.622 0.000 0.540 0.004 0.456
#> SRR1069466 2 0.4605 0.815 0.000 0.664 0.000 0.336
#> SRR1078114 2 0.3507 0.726 0.016 0.880 0.052 0.052
#> SRR1319991 2 0.4585 0.816 0.000 0.668 0.000 0.332
#> SRR1374543 1 0.0000 0.938 1.000 0.000 0.000 0.000
#> SRR1383237 2 0.0469 0.707 0.012 0.988 0.000 0.000
#> SRR1486215 1 0.0000 0.938 1.000 0.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.0000 0.9274 0.000 0.000 1.000 0.000 0.000
#> SRR1499584 2 0.0000 0.9026 0.000 1.000 0.000 0.000 0.000
#> SRR815256 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1077996 2 0.0000 0.9026 0.000 1.000 0.000 0.000 0.000
#> SRR1338468 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1394428 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1431104 4 0.0000 0.8955 0.000 0.000 0.000 1.000 0.000
#> SRR1082128 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1078212 3 0.0000 0.9274 0.000 0.000 1.000 0.000 0.000
#> SRR1458401 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1447281 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.6825 -0.0171 0.000 0.324 0.000 0.340 0.336
#> SRR1105106 5 0.4287 0.1364 0.000 0.460 0.000 0.000 0.540
#> SRR1105130 2 0.0290 0.9009 0.000 0.992 0.000 0.000 0.008
#> SRR1419039 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.9274 0.000 0.000 1.000 0.000 0.000
#> SRR1309745 2 0.0000 0.9026 0.000 1.000 0.000 0.000 0.000
#> SRR1079408 3 0.0000 0.9274 0.000 0.000 1.000 0.000 0.000
#> SRR1445550 4 0.0000 0.8955 0.000 0.000 0.000 1.000 0.000
#> SRR820026 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1353686 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1475466 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.9274 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1479450 4 0.0000 0.8955 0.000 0.000 0.000 1.000 0.000
#> SRR1094097 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0510 0.8976 0.000 0.984 0.000 0.000 0.016
#> SRR1433989 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1330082 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.0000 0.8955 0.000 0.000 0.000 1.000 0.000
#> SRR1387132 2 0.4291 0.0989 0.000 0.536 0.000 0.464 0.000
#> SRR1095261 3 0.0880 0.9042 0.000 0.000 0.968 0.000 0.032
#> SRR818646 5 0.0162 0.9513 0.000 0.004 0.000 0.000 0.996
#> SRR1313991 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.9026 0.000 1.000 0.000 0.000 0.000
#> SRR1381372 5 0.0404 0.9463 0.000 0.012 0.000 0.000 0.988
#> SRR1388257 5 0.1043 0.9250 0.000 0.040 0.000 0.000 0.960
#> SRR818139 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0510 0.8976 0.000 0.984 0.000 0.000 0.016
#> SRR1080342 2 0.0000 0.9026 0.000 1.000 0.000 0.000 0.000
#> SRR1085358 5 0.0963 0.9249 0.000 0.000 0.036 0.000 0.964
#> SRR1473482 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1452674 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 3 0.2127 0.8385 0.000 0.000 0.892 0.000 0.108
#> SRR1382780 3 0.0000 0.9274 0.000 0.000 1.000 0.000 0.000
#> SRR1361138 2 0.0566 0.8979 0.000 0.984 0.000 0.012 0.004
#> SRR1319242 2 0.2377 0.8053 0.000 0.872 0.000 0.000 0.128
#> SRR1084553 2 0.0510 0.8976 0.000 0.984 0.000 0.000 0.016
#> SRR1498747 3 0.4045 0.4866 0.000 0.000 0.644 0.000 0.356
#> SRR1442213 3 0.0000 0.9274 0.000 0.000 1.000 0.000 0.000
#> SRR1343943 2 0.0000 0.9026 0.000 1.000 0.000 0.000 0.000
#> SRR1458828 2 0.3480 0.6429 0.000 0.752 0.000 0.000 0.248
#> SRR1360280 5 0.1410 0.9073 0.000 0.060 0.000 0.000 0.940
#> SRR1474208 3 0.0000 0.9274 0.000 0.000 1.000 0.000 0.000
#> SRR1498726 3 0.6561 0.1942 0.000 0.000 0.452 0.332 0.216
#> SRR1099857 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1329423 4 0.0000 0.8955 0.000 0.000 0.000 1.000 0.000
#> SRR1074430 2 0.0000 0.9026 0.000 1.000 0.000 0.000 0.000
#> SRR1485848 4 0.0000 0.8955 0.000 0.000 0.000 1.000 0.000
#> SRR1471395 4 0.0000 0.8955 0.000 0.000 0.000 1.000 0.000
#> SRR1096198 4 0.0000 0.8955 0.000 0.000 0.000 1.000 0.000
#> SRR1323234 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1073483 2 0.0451 0.9000 0.000 0.988 0.000 0.008 0.004
#> SRR817817 4 0.0000 0.8955 0.000 0.000 0.000 1.000 0.000
#> SRR1434070 3 0.0000 0.9274 0.000 0.000 1.000 0.000 0.000
#> SRR1100941 3 0.0000 0.9274 0.000 0.000 1.000 0.000 0.000
#> SRR1336682 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 5 0.2179 0.8520 0.000 0.112 0.000 0.000 0.888
#> SRR1389454 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1447192 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 5 0.3395 0.6801 0.236 0.000 0.000 0.000 0.764
#> SRR1097929 3 0.0000 0.9274 0.000 0.000 1.000 0.000 0.000
#> SRR1075850 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1358126 4 0.4015 0.4429 0.348 0.000 0.000 0.652 0.000
#> SRR1121009 3 0.0000 0.9274 0.000 0.000 1.000 0.000 0.000
#> SRR1321720 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR810105 5 0.0000 0.9535 0.000 0.000 0.000 0.000 1.000
#> SRR1489007 4 0.4138 0.3035 0.000 0.384 0.000 0.616 0.000
#> SRR1361838 4 0.0000 0.8955 0.000 0.000 0.000 1.000 0.000
#> SRR1475086 2 0.4307 -0.0282 0.000 0.500 0.000 0.500 0.000
#> SRR1468226 2 0.2852 0.7599 0.000 0.828 0.000 0.000 0.172
#> SRR1069466 2 0.0000 0.9026 0.000 1.000 0.000 0.000 0.000
#> SRR1078114 4 0.0000 0.8955 0.000 0.000 0.000 1.000 0.000
#> SRR1319991 2 0.0000 0.9026 0.000 1.000 0.000 0.000 0.000
#> SRR1374543 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
#> SRR1383237 4 0.0000 0.8955 0.000 0.000 0.000 1.000 0.000
#> SRR1486215 1 0.0000 1.0000 1.000 0.000 0.000 0.000 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.0000 0.9328 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1499584 2 0.0713 0.8438 0.000 0.972 0.000 0.000 0.000 0.028
#> SRR815256 6 0.4018 0.5992 0.000 0.008 0.000 0.000 0.412 0.580
#> SRR1077996 2 0.0713 0.8438 0.000 0.972 0.000 0.000 0.000 0.028
#> SRR1338468 5 0.0405 0.8421 0.000 0.004 0.000 0.000 0.988 0.008
#> SRR1394428 5 0.3756 -0.3644 0.000 0.000 0.000 0.000 0.600 0.400
#> SRR1431104 4 0.0000 0.9378 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1082128 6 0.4868 0.3856 0.000 0.024 0.000 0.024 0.396 0.556
#> SRR1078212 3 0.0000 0.9328 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1458401 5 0.0000 0.8481 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1447281 1 0.0363 0.9859 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1339258 2 0.5778 0.2485 0.000 0.464 0.000 0.352 0.000 0.184
#> SRR1105106 6 0.4377 0.1680 0.000 0.436 0.000 0.000 0.024 0.540
#> SRR1105130 2 0.0508 0.8413 0.000 0.984 0.000 0.000 0.012 0.004
#> SRR1419039 1 0.0000 0.9864 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.9328 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1309745 2 0.0547 0.8453 0.000 0.980 0.000 0.000 0.000 0.020
#> SRR1079408 3 0.0000 0.9328 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445550 4 0.0000 0.9378 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR820026 6 0.3684 0.6294 0.000 0.000 0.000 0.000 0.372 0.628
#> SRR1353686 5 0.1232 0.8183 0.024 0.004 0.000 0.000 0.956 0.016
#> SRR1475466 1 0.0632 0.9852 0.976 0.000 0.000 0.000 0.000 0.024
#> SRR1096315 3 0.0000 0.9328 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1479826 5 0.0146 0.8468 0.000 0.000 0.000 0.000 0.996 0.004
#> SRR1479450 4 0.0000 0.9378 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1094097 1 0.0632 0.9852 0.976 0.000 0.000 0.000 0.000 0.024
#> SRR1071737 2 0.1765 0.8146 0.000 0.904 0.000 0.000 0.000 0.096
#> SRR1433989 1 0.0632 0.9852 0.976 0.000 0.000 0.000 0.000 0.024
#> SRR1077159 6 0.3684 0.6294 0.000 0.000 0.000 0.000 0.372 0.628
#> SRR1330082 1 0.0632 0.9852 0.976 0.000 0.000 0.000 0.000 0.024
#> SRR1079874 4 0.0000 0.9378 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1387132 2 0.3782 0.4011 0.000 0.636 0.000 0.360 0.000 0.004
#> SRR1095261 3 0.0790 0.9085 0.000 0.000 0.968 0.000 0.032 0.000
#> SRR818646 6 0.4199 0.4122 0.000 0.020 0.000 0.000 0.380 0.600
#> SRR1313991 1 0.0632 0.9852 0.976 0.000 0.000 0.000 0.000 0.024
#> SRR1363718 2 0.0632 0.8448 0.000 0.976 0.000 0.000 0.000 0.024
#> SRR1381372 6 0.4189 0.4118 0.000 0.020 0.000 0.000 0.376 0.604
#> SRR1388257 6 0.4230 0.4270 0.000 0.024 0.000 0.000 0.364 0.612
#> SRR818139 1 0.0458 0.9859 0.984 0.000 0.000 0.000 0.000 0.016
#> SRR1078188 2 0.1765 0.8146 0.000 0.904 0.000 0.000 0.000 0.096
#> SRR1080342 2 0.0632 0.8448 0.000 0.976 0.000 0.000 0.000 0.024
#> SRR1085358 6 0.3899 0.6266 0.000 0.000 0.008 0.000 0.364 0.628
#> SRR1473482 5 0.0146 0.8468 0.000 0.000 0.000 0.000 0.996 0.004
#> SRR1452674 1 0.0363 0.9859 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1395874 3 0.1556 0.8622 0.000 0.000 0.920 0.000 0.080 0.000
#> SRR1382780 3 0.0000 0.9328 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1361138 2 0.1149 0.8371 0.000 0.960 0.000 0.024 0.008 0.008
#> SRR1319242 2 0.4856 -0.1569 0.000 0.472 0.000 0.000 0.056 0.472
#> SRR1084553 2 0.1765 0.8146 0.000 0.904 0.000 0.000 0.000 0.096
#> SRR1498747 3 0.3499 0.4981 0.000 0.000 0.680 0.000 0.320 0.000
#> SRR1442213 3 0.0000 0.9328 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1343943 2 0.0000 0.8450 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1458828 2 0.3102 0.6696 0.000 0.816 0.000 0.000 0.156 0.028
#> SRR1360280 6 0.5184 0.6185 0.000 0.120 0.000 0.000 0.296 0.584
#> SRR1474208 3 0.0000 0.9328 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1498726 3 0.5655 0.1992 0.000 0.000 0.480 0.360 0.160 0.000
#> SRR1099857 5 0.0000 0.8481 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1329423 4 0.0000 0.9378 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1074430 2 0.0146 0.8444 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1485848 4 0.0000 0.9378 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1471395 4 0.0000 0.9378 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1096198 4 0.0000 0.9378 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1323234 5 0.0000 0.8481 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1073483 2 0.0603 0.8426 0.000 0.980 0.000 0.016 0.000 0.004
#> SRR817817 4 0.0000 0.9378 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1434070 3 0.0000 0.9328 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1100941 3 0.0000 0.9328 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1336682 1 0.0363 0.9859 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1077211 6 0.5352 0.5793 0.000 0.204 0.000 0.000 0.204 0.592
#> SRR1389454 1 0.0363 0.9859 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1393004 1 0.0632 0.9852 0.976 0.000 0.000 0.000 0.000 0.024
#> SRR1086369 6 0.3684 0.6294 0.000 0.000 0.000 0.000 0.372 0.628
#> SRR1447192 1 0.0363 0.9859 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1459147 5 0.3468 0.4748 0.264 0.000 0.000 0.000 0.728 0.008
#> SRR1097929 3 0.0000 0.9328 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1075850 6 0.3684 0.6294 0.000 0.000 0.000 0.000 0.372 0.628
#> SRR1358126 4 0.3668 0.4968 0.328 0.000 0.000 0.668 0.000 0.004
#> SRR1121009 3 0.0000 0.9328 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1321720 5 0.1753 0.7675 0.000 0.004 0.000 0.000 0.912 0.084
#> SRR810105 5 0.0146 0.8468 0.000 0.000 0.000 0.000 0.996 0.004
#> SRR1489007 4 0.3819 0.3251 0.000 0.372 0.000 0.624 0.000 0.004
#> SRR1361838 4 0.0000 0.9378 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1475086 2 0.3995 0.0626 0.000 0.516 0.000 0.480 0.000 0.004
#> SRR1468226 6 0.4835 0.3612 0.000 0.352 0.000 0.000 0.068 0.580
#> SRR1069466 2 0.0713 0.8438 0.000 0.972 0.000 0.000 0.000 0.028
#> SRR1078114 4 0.0000 0.9378 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1319991 2 0.0000 0.8450 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1374543 1 0.0547 0.9854 0.980 0.000 0.000 0.000 0.000 0.020
#> SRR1383237 4 0.0000 0.9378 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1486215 1 0.0363 0.9859 0.988 0.000 0.000 0.000 0.000 0.012
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["CV", "NMF"]
# you can also extract it by
# res = res_list["CV:NMF"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'CV' method.
#> Subgroups are detected by 'NMF' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.555 0.840 0.917 0.4640 0.507 0.507
#> 3 3 0.796 0.860 0.940 0.3756 0.810 0.647
#> 4 4 0.816 0.860 0.927 0.1688 0.794 0.507
#> 5 5 0.799 0.785 0.909 0.0492 0.893 0.629
#> 6 6 0.721 0.636 0.811 0.0580 0.873 0.504
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 3
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.8350 1.000 0.000
#> SRR1499584 2 0.0000 0.9517 0.000 1.000
#> SRR815256 2 0.0000 0.9517 0.000 1.000
#> SRR1077996 2 0.0000 0.9517 0.000 1.000
#> SRR1338468 1 0.9732 0.5427 0.596 0.404
#> SRR1394428 2 0.0000 0.9517 0.000 1.000
#> SRR1431104 1 0.9993 0.2459 0.516 0.484
#> SRR1082128 2 0.0000 0.9517 0.000 1.000
#> SRR1078212 1 0.0000 0.8350 1.000 0.000
#> SRR1458401 2 0.0376 0.9481 0.004 0.996
#> SRR1447281 1 0.9608 0.5837 0.616 0.384
#> SRR1339258 2 0.0000 0.9517 0.000 1.000
#> SRR1105106 2 0.0000 0.9517 0.000 1.000
#> SRR1105130 2 0.0000 0.9517 0.000 1.000
#> SRR1419039 1 0.7883 0.7721 0.764 0.236
#> SRR1079213 1 0.0000 0.8350 1.000 0.000
#> SRR1309745 2 0.0000 0.9517 0.000 1.000
#> SRR1079408 1 0.0000 0.8350 1.000 0.000
#> SRR1445550 2 0.0000 0.9517 0.000 1.000
#> SRR820026 2 0.6438 0.7584 0.164 0.836
#> SRR1353686 2 0.5842 0.7894 0.140 0.860
#> SRR1475466 1 0.3431 0.8284 0.936 0.064
#> SRR1096315 1 0.0000 0.8350 1.000 0.000
#> SRR1479826 2 0.8144 0.5841 0.252 0.748
#> SRR1479450 2 0.8327 0.5546 0.264 0.736
#> SRR1094097 1 0.7299 0.7956 0.796 0.204
#> SRR1071737 2 0.0000 0.9517 0.000 1.000
#> SRR1433989 1 0.7299 0.7956 0.796 0.204
#> SRR1077159 2 0.0000 0.9517 0.000 1.000
#> SRR1330082 1 0.8713 0.7197 0.708 0.292
#> SRR1079874 2 0.0000 0.9517 0.000 1.000
#> SRR1387132 2 0.0000 0.9517 0.000 1.000
#> SRR1095261 1 0.0000 0.8350 1.000 0.000
#> SRR818646 2 0.0000 0.9517 0.000 1.000
#> SRR1313991 1 0.7376 0.7933 0.792 0.208
#> SRR1363718 2 0.0000 0.9517 0.000 1.000
#> SRR1381372 2 0.0000 0.9517 0.000 1.000
#> SRR1388257 2 0.0000 0.9517 0.000 1.000
#> SRR818139 1 0.7299 0.7956 0.796 0.204
#> SRR1078188 2 0.0000 0.9517 0.000 1.000
#> SRR1080342 2 0.0000 0.9517 0.000 1.000
#> SRR1085358 2 0.9996 0.0574 0.488 0.512
#> SRR1473482 2 0.8016 0.6019 0.244 0.756
#> SRR1452674 1 0.9044 0.6870 0.680 0.320
#> SRR1395874 1 0.0000 0.8350 1.000 0.000
#> SRR1382780 1 0.0000 0.8350 1.000 0.000
#> SRR1361138 2 0.0000 0.9517 0.000 1.000
#> SRR1319242 2 0.0000 0.9517 0.000 1.000
#> SRR1084553 2 0.0000 0.9517 0.000 1.000
#> SRR1498747 1 0.0000 0.8350 1.000 0.000
#> SRR1442213 1 0.0000 0.8350 1.000 0.000
#> SRR1343943 2 0.0000 0.9517 0.000 1.000
#> SRR1458828 2 0.0000 0.9517 0.000 1.000
#> SRR1360280 2 0.0000 0.9517 0.000 1.000
#> SRR1474208 1 0.0000 0.8350 1.000 0.000
#> SRR1498726 1 0.0376 0.8348 0.996 0.004
#> SRR1099857 1 0.8909 0.7020 0.692 0.308
#> SRR1329423 2 0.0000 0.9517 0.000 1.000
#> SRR1074430 2 0.0000 0.9517 0.000 1.000
#> SRR1485848 2 0.0000 0.9517 0.000 1.000
#> SRR1471395 2 0.0000 0.9517 0.000 1.000
#> SRR1096198 1 0.5842 0.8142 0.860 0.140
#> SRR1323234 1 0.9358 0.6406 0.648 0.352
#> SRR1073483 2 0.0000 0.9517 0.000 1.000
#> SRR817817 2 0.0000 0.9517 0.000 1.000
#> SRR1434070 1 0.0000 0.8350 1.000 0.000
#> SRR1100941 1 0.0000 0.8350 1.000 0.000
#> SRR1336682 1 0.9732 0.5426 0.596 0.404
#> SRR1077211 2 0.0000 0.9517 0.000 1.000
#> SRR1389454 1 0.9170 0.6707 0.668 0.332
#> SRR1393004 1 0.0000 0.8350 1.000 0.000
#> SRR1086369 2 0.4939 0.8347 0.108 0.892
#> SRR1447192 1 0.7376 0.7933 0.792 0.208
#> SRR1459147 2 0.5629 0.8015 0.132 0.868
#> SRR1097929 1 0.0000 0.8350 1.000 0.000
#> SRR1075850 2 0.2236 0.9179 0.036 0.964
#> SRR1358126 1 0.9460 0.6206 0.636 0.364
#> SRR1121009 1 0.0000 0.8350 1.000 0.000
#> SRR1321720 2 0.0000 0.9517 0.000 1.000
#> SRR810105 2 0.6247 0.7651 0.156 0.844
#> SRR1489007 2 0.0000 0.9517 0.000 1.000
#> SRR1361838 2 0.0000 0.9517 0.000 1.000
#> SRR1475086 2 0.0000 0.9517 0.000 1.000
#> SRR1468226 2 0.0000 0.9517 0.000 1.000
#> SRR1069466 2 0.0000 0.9517 0.000 1.000
#> SRR1078114 1 0.0000 0.8350 1.000 0.000
#> SRR1319991 2 0.0000 0.9517 0.000 1.000
#> SRR1374543 1 0.7299 0.7956 0.796 0.204
#> SRR1383237 2 0.0000 0.9517 0.000 1.000
#> SRR1486215 1 0.7299 0.7956 0.796 0.204
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1499584 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR815256 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1077996 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1338468 1 0.4452 0.7520 0.808 0.192 0.000
#> SRR1394428 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1431104 1 0.4179 0.8646 0.876 0.072 0.052
#> SRR1082128 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1078212 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1458401 2 0.6286 0.1346 0.464 0.536 0.000
#> SRR1447281 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1339258 2 0.2165 0.8532 0.064 0.936 0.000
#> SRR1105106 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1105130 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1419039 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1079213 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1309745 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1079408 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1445550 2 0.4555 0.7293 0.200 0.800 0.000
#> SRR820026 2 0.6305 0.0787 0.000 0.516 0.484
#> SRR1353686 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1475466 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1096315 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1479826 2 0.5327 0.6034 0.272 0.728 0.000
#> SRR1479450 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1094097 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1071737 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1433989 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1077159 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1330082 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1079874 2 0.5882 0.5194 0.348 0.652 0.000
#> SRR1387132 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1095261 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR818646 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1313991 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1363718 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1381372 2 0.1163 0.8774 0.028 0.972 0.000
#> SRR1388257 2 0.1529 0.8700 0.040 0.960 0.000
#> SRR818139 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1078188 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1080342 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1085358 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1473482 1 0.4504 0.7459 0.804 0.196 0.000
#> SRR1452674 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1395874 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1382780 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1361138 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1319242 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1084553 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1498747 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1442213 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1343943 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1458828 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1360280 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1474208 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1498726 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1099857 1 0.4504 0.7457 0.804 0.196 0.000
#> SRR1329423 1 0.4235 0.7535 0.824 0.176 0.000
#> SRR1074430 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1485848 2 0.5948 0.4940 0.360 0.640 0.000
#> SRR1471395 2 0.5016 0.6839 0.240 0.760 0.000
#> SRR1096198 1 0.0424 0.9507 0.992 0.000 0.008
#> SRR1323234 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1073483 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR817817 2 0.6095 0.4257 0.392 0.608 0.000
#> SRR1434070 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1100941 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1336682 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1077211 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1389454 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1393004 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1086369 2 0.0237 0.8907 0.000 0.996 0.004
#> SRR1447192 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1459147 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1097929 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1075850 2 0.4796 0.6806 0.000 0.780 0.220
#> SRR1358126 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1121009 3 0.0000 0.9965 0.000 0.000 1.000
#> SRR1321720 2 0.6309 0.0153 0.496 0.504 0.000
#> SRR810105 2 0.4842 0.6766 0.224 0.776 0.000
#> SRR1489007 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1361838 2 0.6062 0.4438 0.384 0.616 0.000
#> SRR1475086 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1468226 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1069466 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1078114 3 0.1964 0.9372 0.056 0.000 0.944
#> SRR1319991 2 0.0000 0.8927 0.000 1.000 0.000
#> SRR1374543 1 0.0000 0.9568 1.000 0.000 0.000
#> SRR1383237 2 0.4796 0.7079 0.220 0.780 0.000
#> SRR1486215 1 0.0000 0.9568 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR1499584 4 0.3219 0.8301 0.000 0.164 0.000 0.836
#> SRR815256 2 0.0336 0.9166 0.000 0.992 0.000 0.008
#> SRR1077996 4 0.2530 0.8640 0.000 0.112 0.000 0.888
#> SRR1338468 1 0.4989 0.0083 0.528 0.472 0.000 0.000
#> SRR1394428 2 0.0592 0.9090 0.016 0.984 0.000 0.000
#> SRR1431104 4 0.0817 0.8667 0.024 0.000 0.000 0.976
#> SRR1082128 2 0.0921 0.9183 0.000 0.972 0.000 0.028
#> SRR1078212 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR1458401 2 0.2216 0.8663 0.092 0.908 0.000 0.000
#> SRR1447281 1 0.0000 0.9163 1.000 0.000 0.000 0.000
#> SRR1339258 4 0.1211 0.8819 0.000 0.040 0.000 0.960
#> SRR1105106 4 0.2868 0.8581 0.000 0.136 0.000 0.864
#> SRR1105130 2 0.1022 0.9175 0.000 0.968 0.000 0.032
#> SRR1419039 1 0.0336 0.9172 0.992 0.000 0.000 0.008
#> SRR1079213 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR1309745 4 0.3356 0.8193 0.000 0.176 0.000 0.824
#> SRR1079408 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR1445550 4 0.0188 0.8808 0.000 0.004 0.000 0.996
#> SRR820026 2 0.1716 0.8928 0.000 0.936 0.064 0.000
#> SRR1353686 1 0.0657 0.9114 0.984 0.012 0.000 0.004
#> SRR1475466 1 0.1022 0.9121 0.968 0.000 0.000 0.032
#> SRR1096315 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR1479826 2 0.4134 0.6679 0.260 0.740 0.000 0.000
#> SRR1479450 4 0.2011 0.8241 0.080 0.000 0.000 0.920
#> SRR1094097 1 0.1302 0.9066 0.956 0.000 0.000 0.044
#> SRR1071737 2 0.1118 0.9165 0.000 0.964 0.000 0.036
#> SRR1433989 1 0.1211 0.9087 0.960 0.000 0.000 0.040
#> SRR1077159 2 0.0000 0.9145 0.000 1.000 0.000 0.000
#> SRR1330082 1 0.2216 0.8743 0.908 0.000 0.000 0.092
#> SRR1079874 4 0.0336 0.8764 0.008 0.000 0.000 0.992
#> SRR1387132 4 0.2081 0.8756 0.000 0.084 0.000 0.916
#> SRR1095261 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR818646 2 0.0707 0.9183 0.000 0.980 0.000 0.020
#> SRR1313991 1 0.2216 0.8758 0.908 0.000 0.000 0.092
#> SRR1363718 2 0.4522 0.4907 0.000 0.680 0.000 0.320
#> SRR1381372 4 0.4797 0.7256 0.020 0.260 0.000 0.720
#> SRR1388257 4 0.3972 0.8081 0.008 0.204 0.000 0.788
#> SRR818139 1 0.0188 0.9170 0.996 0.000 0.000 0.004
#> SRR1078188 2 0.1118 0.9165 0.000 0.964 0.000 0.036
#> SRR1080342 2 0.1940 0.8882 0.000 0.924 0.000 0.076
#> SRR1085358 2 0.2973 0.8235 0.000 0.856 0.144 0.000
#> SRR1473482 2 0.3528 0.7654 0.192 0.808 0.000 0.000
#> SRR1452674 1 0.0707 0.9156 0.980 0.000 0.000 0.020
#> SRR1395874 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR1382780 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR1361138 2 0.1118 0.9165 0.000 0.964 0.000 0.036
#> SRR1319242 2 0.0921 0.9183 0.000 0.972 0.000 0.028
#> SRR1084553 2 0.1118 0.9165 0.000 0.964 0.000 0.036
#> SRR1498747 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR1442213 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR1343943 4 0.2216 0.8713 0.000 0.092 0.000 0.908
#> SRR1458828 2 0.0921 0.9183 0.000 0.972 0.000 0.028
#> SRR1360280 2 0.0336 0.9166 0.000 0.992 0.000 0.008
#> SRR1474208 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR1498726 3 0.0336 0.9809 0.000 0.000 0.992 0.008
#> SRR1099857 2 0.4134 0.6682 0.260 0.740 0.000 0.000
#> SRR1329423 4 0.0469 0.8739 0.012 0.000 0.000 0.988
#> SRR1074430 2 0.1118 0.9165 0.000 0.964 0.000 0.036
#> SRR1485848 4 0.0188 0.8786 0.004 0.000 0.000 0.996
#> SRR1471395 4 0.0000 0.8801 0.000 0.000 0.000 1.000
#> SRR1096198 4 0.7169 0.2100 0.148 0.000 0.344 0.508
#> SRR1323234 1 0.0817 0.9046 0.976 0.024 0.000 0.000
#> SRR1073483 2 0.1211 0.9145 0.000 0.960 0.000 0.040
#> SRR817817 4 0.0000 0.8801 0.000 0.000 0.000 1.000
#> SRR1434070 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR1100941 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR1336682 1 0.0000 0.9163 1.000 0.000 0.000 0.000
#> SRR1077211 2 0.0707 0.9183 0.000 0.980 0.000 0.020
#> SRR1389454 1 0.0000 0.9163 1.000 0.000 0.000 0.000
#> SRR1393004 1 0.0336 0.9172 0.992 0.000 0.000 0.008
#> SRR1086369 2 0.0000 0.9145 0.000 1.000 0.000 0.000
#> SRR1447192 1 0.0000 0.9163 1.000 0.000 0.000 0.000
#> SRR1459147 1 0.5861 -0.0255 0.492 0.032 0.000 0.476
#> SRR1097929 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR1075850 2 0.0817 0.9113 0.000 0.976 0.024 0.000
#> SRR1358126 1 0.2589 0.8549 0.884 0.000 0.000 0.116
#> SRR1121009 3 0.0000 0.9878 0.000 0.000 1.000 0.000
#> SRR1321720 2 0.3172 0.8034 0.160 0.840 0.000 0.000
#> SRR810105 2 0.1867 0.8791 0.072 0.928 0.000 0.000
#> SRR1489007 4 0.0707 0.8825 0.000 0.020 0.000 0.980
#> SRR1361838 4 0.0188 0.8786 0.004 0.000 0.000 0.996
#> SRR1475086 4 0.4643 0.5404 0.000 0.344 0.000 0.656
#> SRR1468226 2 0.3024 0.8103 0.000 0.852 0.000 0.148
#> SRR1069466 4 0.4250 0.6897 0.000 0.276 0.000 0.724
#> SRR1078114 3 0.3925 0.7795 0.016 0.000 0.808 0.176
#> SRR1319991 4 0.1389 0.8810 0.000 0.048 0.000 0.952
#> SRR1374543 1 0.0817 0.9147 0.976 0.000 0.000 0.024
#> SRR1383237 4 0.0000 0.8801 0.000 0.000 0.000 1.000
#> SRR1486215 1 0.0469 0.9113 0.988 0.012 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.0000 0.9644 0.000 0.000 1.000 0.000 0.000
#> SRR1499584 2 0.4126 0.3660 0.000 0.620 0.000 0.380 0.000
#> SRR815256 2 0.2891 0.7418 0.000 0.824 0.000 0.000 0.176
#> SRR1077996 4 0.4045 0.4513 0.000 0.356 0.000 0.644 0.000
#> SRR1338468 1 0.3861 0.5802 0.728 0.264 0.000 0.000 0.008
#> SRR1394428 2 0.0000 0.8903 0.000 1.000 0.000 0.000 0.000
#> SRR1431104 4 0.0162 0.8493 0.004 0.000 0.000 0.996 0.000
#> SRR1082128 2 0.0000 0.8903 0.000 1.000 0.000 0.000 0.000
#> SRR1078212 3 0.0000 0.9644 0.000 0.000 1.000 0.000 0.000
#> SRR1458401 2 0.1638 0.8455 0.064 0.932 0.000 0.000 0.004
#> SRR1447281 1 0.0000 0.8581 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 5 0.1041 0.8012 0.000 0.004 0.000 0.032 0.964
#> SRR1105106 5 0.0324 0.8157 0.000 0.004 0.000 0.004 0.992
#> SRR1105130 2 0.0000 0.8903 0.000 1.000 0.000 0.000 0.000
#> SRR1419039 1 0.0162 0.8582 0.996 0.000 0.000 0.004 0.000
#> SRR1079213 3 0.0000 0.9644 0.000 0.000 1.000 0.000 0.000
#> SRR1309745 2 0.4482 0.4253 0.000 0.636 0.000 0.348 0.016
#> SRR1079408 3 0.0000 0.9644 0.000 0.000 1.000 0.000 0.000
#> SRR1445550 4 0.2280 0.7856 0.000 0.000 0.000 0.880 0.120
#> SRR820026 2 0.3969 0.5366 0.000 0.692 0.304 0.000 0.004
#> SRR1353686 1 0.3635 0.6248 0.748 0.000 0.000 0.004 0.248
#> SRR1475466 1 0.0510 0.8554 0.984 0.000 0.000 0.016 0.000
#> SRR1096315 3 0.0000 0.9644 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 5 0.5902 0.4696 0.208 0.192 0.000 0.000 0.600
#> SRR1479450 4 0.0290 0.8476 0.008 0.000 0.000 0.992 0.000
#> SRR1094097 1 0.2179 0.8045 0.888 0.000 0.000 0.112 0.000
#> SRR1071737 2 0.0162 0.8903 0.000 0.996 0.000 0.000 0.004
#> SRR1433989 1 0.1965 0.8151 0.904 0.000 0.000 0.096 0.000
#> SRR1077159 2 0.0162 0.8903 0.000 0.996 0.000 0.000 0.004
#> SRR1330082 1 0.2424 0.7909 0.868 0.000 0.000 0.132 0.000
#> SRR1079874 4 0.0000 0.8502 0.000 0.000 0.000 1.000 0.000
#> SRR1387132 4 0.2690 0.7318 0.000 0.156 0.000 0.844 0.000
#> SRR1095261 3 0.0000 0.9644 0.000 0.000 1.000 0.000 0.000
#> SRR818646 2 0.0162 0.8897 0.000 0.996 0.000 0.000 0.004
#> SRR1313991 1 0.4074 0.5066 0.636 0.000 0.000 0.364 0.000
#> SRR1363718 2 0.3210 0.7000 0.000 0.788 0.000 0.212 0.000
#> SRR1381372 5 0.0162 0.8153 0.000 0.004 0.000 0.000 0.996
#> SRR1388257 5 0.0324 0.8157 0.000 0.004 0.000 0.004 0.992
#> SRR818139 1 0.0000 0.8581 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0162 0.8903 0.000 0.996 0.000 0.000 0.004
#> SRR1080342 2 0.0794 0.8795 0.000 0.972 0.000 0.028 0.000
#> SRR1085358 2 0.2011 0.8291 0.000 0.908 0.088 0.000 0.004
#> SRR1473482 1 0.4557 0.3364 0.584 0.404 0.000 0.000 0.012
#> SRR1452674 1 0.0162 0.8582 0.996 0.000 0.000 0.004 0.000
#> SRR1395874 3 0.0000 0.9644 0.000 0.000 1.000 0.000 0.000
#> SRR1382780 3 0.0000 0.9644 0.000 0.000 1.000 0.000 0.000
#> SRR1361138 2 0.0510 0.8862 0.000 0.984 0.000 0.016 0.000
#> SRR1319242 2 0.0162 0.8903 0.000 0.996 0.000 0.000 0.004
#> SRR1084553 2 0.0162 0.8900 0.000 0.996 0.000 0.004 0.000
#> SRR1498747 3 0.0162 0.9604 0.000 0.000 0.996 0.000 0.004
#> SRR1442213 3 0.0000 0.9644 0.000 0.000 1.000 0.000 0.000
#> SRR1343943 5 0.4582 0.0719 0.000 0.012 0.000 0.416 0.572
#> SRR1458828 2 0.0162 0.8903 0.000 0.996 0.000 0.000 0.004
#> SRR1360280 2 0.0000 0.8903 0.000 1.000 0.000 0.000 0.000
#> SRR1474208 3 0.0000 0.9644 0.000 0.000 1.000 0.000 0.000
#> SRR1498726 3 0.4273 0.1784 0.000 0.000 0.552 0.448 0.000
#> SRR1099857 1 0.4574 0.3183 0.576 0.412 0.000 0.000 0.012
#> SRR1329423 4 0.3424 0.6264 0.000 0.000 0.000 0.760 0.240
#> SRR1074430 2 0.0290 0.8892 0.000 0.992 0.000 0.008 0.000
#> SRR1485848 4 0.0000 0.8502 0.000 0.000 0.000 1.000 0.000
#> SRR1471395 4 0.0000 0.8502 0.000 0.000 0.000 1.000 0.000
#> SRR1096198 4 0.0609 0.8398 0.020 0.000 0.000 0.980 0.000
#> SRR1323234 1 0.0000 0.8581 1.000 0.000 0.000 0.000 0.000
#> SRR1073483 2 0.0404 0.8880 0.000 0.988 0.000 0.012 0.000
#> SRR817817 4 0.4307 0.0507 0.000 0.000 0.000 0.504 0.496
#> SRR1434070 3 0.0000 0.9644 0.000 0.000 1.000 0.000 0.000
#> SRR1100941 3 0.0000 0.9644 0.000 0.000 1.000 0.000 0.000
#> SRR1336682 1 0.0000 0.8581 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.2516 0.7808 0.000 0.860 0.000 0.000 0.140
#> SRR1389454 1 0.0000 0.8581 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0162 0.8582 0.996 0.000 0.000 0.004 0.000
#> SRR1086369 2 0.0798 0.8827 0.000 0.976 0.016 0.000 0.008
#> SRR1447192 1 0.0000 0.8581 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 5 0.0162 0.8138 0.004 0.000 0.000 0.000 0.996
#> SRR1097929 3 0.0000 0.9644 0.000 0.000 1.000 0.000 0.000
#> SRR1075850 2 0.0162 0.8903 0.000 0.996 0.000 0.000 0.004
#> SRR1358126 1 0.3825 0.7529 0.804 0.000 0.000 0.136 0.060
#> SRR1121009 3 0.0000 0.9644 0.000 0.000 1.000 0.000 0.000
#> SRR1321720 2 0.3928 0.5236 0.296 0.700 0.000 0.000 0.004
#> SRR810105 2 0.0771 0.8805 0.020 0.976 0.000 0.000 0.004
#> SRR1489007 4 0.0510 0.8460 0.000 0.016 0.000 0.984 0.000
#> SRR1361838 4 0.0000 0.8502 0.000 0.000 0.000 1.000 0.000
#> SRR1475086 4 0.3452 0.6231 0.000 0.244 0.000 0.756 0.000
#> SRR1468226 5 0.3519 0.6601 0.000 0.216 0.000 0.008 0.776
#> SRR1069466 2 0.3242 0.6944 0.000 0.784 0.000 0.216 0.000
#> SRR1078114 4 0.1544 0.7978 0.000 0.000 0.068 0.932 0.000
#> SRR1319991 4 0.2329 0.7820 0.000 0.000 0.000 0.876 0.124
#> SRR1374543 1 0.0609 0.8540 0.980 0.000 0.000 0.020 0.000
#> SRR1383237 4 0.0290 0.8488 0.000 0.000 0.000 0.992 0.008
#> SRR1486215 1 0.0290 0.8548 0.992 0.000 0.000 0.000 0.008
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.0000 0.9172 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1499584 2 0.3167 0.7145 0.000 0.832 0.000 0.072 0.096 0.000
#> SRR815256 5 0.2932 0.6502 0.000 0.020 0.000 0.004 0.836 0.140
#> SRR1077996 2 0.1082 0.7502 0.000 0.956 0.000 0.040 0.004 0.000
#> SRR1338468 1 0.3890 0.5145 0.692 0.008 0.000 0.004 0.292 0.004
#> SRR1394428 5 0.3646 0.5628 0.004 0.292 0.000 0.004 0.700 0.000
#> SRR1431104 4 0.4229 0.2863 0.016 0.436 0.000 0.548 0.000 0.000
#> SRR1082128 2 0.2473 0.7438 0.008 0.856 0.000 0.000 0.136 0.000
#> SRR1078212 3 0.0000 0.9172 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1458401 5 0.2841 0.6669 0.164 0.012 0.000 0.000 0.824 0.000
#> SRR1447281 1 0.0692 0.8452 0.976 0.000 0.000 0.004 0.020 0.000
#> SRR1339258 6 0.4358 0.5784 0.000 0.100 0.000 0.072 0.056 0.772
#> SRR1105106 6 0.2231 0.6268 0.000 0.016 0.000 0.028 0.048 0.908
#> SRR1105130 2 0.3867 0.0456 0.000 0.512 0.000 0.000 0.488 0.000
#> SRR1419039 1 0.1490 0.8359 0.948 0.008 0.000 0.016 0.004 0.024
#> SRR1079213 3 0.0000 0.9172 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1309745 2 0.0820 0.7603 0.000 0.972 0.000 0.016 0.012 0.000
#> SRR1079408 3 0.0000 0.9172 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445550 4 0.5533 0.3127 0.000 0.048 0.000 0.584 0.060 0.308
#> SRR820026 5 0.3275 0.6345 0.000 0.012 0.100 0.052 0.836 0.000
#> SRR1353686 6 0.7174 0.2510 0.112 0.000 0.000 0.264 0.204 0.420
#> SRR1475466 1 0.1219 0.8422 0.948 0.004 0.000 0.048 0.000 0.000
#> SRR1096315 3 0.1007 0.9016 0.000 0.000 0.956 0.044 0.000 0.000
#> SRR1479826 6 0.5827 0.0177 0.052 0.012 0.000 0.036 0.428 0.472
#> SRR1479450 4 0.4154 0.6574 0.096 0.164 0.000 0.740 0.000 0.000
#> SRR1094097 1 0.2402 0.7903 0.856 0.004 0.000 0.140 0.000 0.000
#> SRR1071737 2 0.3862 0.1053 0.000 0.524 0.000 0.000 0.476 0.000
#> SRR1433989 1 0.1910 0.8157 0.892 0.000 0.000 0.108 0.000 0.000
#> SRR1077159 5 0.1588 0.7443 0.004 0.072 0.000 0.000 0.924 0.000
#> SRR1330082 1 0.2520 0.7741 0.844 0.004 0.000 0.152 0.000 0.000
#> SRR1079874 4 0.2344 0.7337 0.000 0.076 0.000 0.892 0.028 0.004
#> SRR1387132 2 0.1867 0.7426 0.000 0.916 0.000 0.064 0.020 0.000
#> SRR1095261 3 0.4432 0.4136 0.000 0.000 0.600 0.364 0.036 0.000
#> SRR818646 2 0.3074 0.6837 0.004 0.792 0.000 0.004 0.200 0.000
#> SRR1313991 1 0.3830 0.4648 0.620 0.004 0.000 0.376 0.000 0.000
#> SRR1363718 2 0.1584 0.7711 0.000 0.928 0.000 0.008 0.064 0.000
#> SRR1381372 6 0.0912 0.6321 0.004 0.012 0.000 0.008 0.004 0.972
#> SRR1388257 6 0.0260 0.6366 0.000 0.000 0.000 0.008 0.000 0.992
#> SRR818139 1 0.0653 0.8440 0.980 0.004 0.000 0.000 0.004 0.012
#> SRR1078188 5 0.3584 0.5008 0.000 0.308 0.000 0.004 0.688 0.000
#> SRR1080342 2 0.2320 0.7541 0.000 0.864 0.000 0.004 0.132 0.000
#> SRR1085358 5 0.2537 0.7429 0.000 0.096 0.032 0.000 0.872 0.000
#> SRR1473482 5 0.3428 0.5106 0.304 0.000 0.000 0.000 0.696 0.000
#> SRR1452674 1 0.0858 0.8469 0.968 0.000 0.000 0.028 0.004 0.000
#> SRR1395874 3 0.0790 0.9071 0.000 0.000 0.968 0.032 0.000 0.000
#> SRR1382780 3 0.0000 0.9172 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1361138 2 0.2302 0.7610 0.000 0.872 0.000 0.008 0.120 0.000
#> SRR1319242 5 0.2964 0.6739 0.000 0.204 0.000 0.004 0.792 0.000
#> SRR1084553 2 0.3584 0.5346 0.000 0.688 0.000 0.004 0.308 0.000
#> SRR1498747 3 0.5412 0.0963 0.032 0.000 0.476 0.048 0.444 0.000
#> SRR1442213 3 0.0000 0.9172 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1343943 6 0.6473 0.3792 0.000 0.252 0.000 0.164 0.064 0.520
#> SRR1458828 5 0.1663 0.7425 0.000 0.088 0.000 0.000 0.912 0.000
#> SRR1360280 5 0.3776 0.6755 0.000 0.196 0.000 0.000 0.756 0.048
#> SRR1474208 3 0.0865 0.9055 0.000 0.000 0.964 0.036 0.000 0.000
#> SRR1498726 4 0.3802 0.5634 0.000 0.012 0.180 0.772 0.036 0.000
#> SRR1099857 5 0.4450 0.4291 0.332 0.016 0.000 0.008 0.636 0.008
#> SRR1329423 6 0.6852 0.0678 0.004 0.268 0.000 0.324 0.036 0.368
#> SRR1074430 2 0.2730 0.7159 0.000 0.808 0.000 0.000 0.192 0.000
#> SRR1485848 4 0.2006 0.7397 0.000 0.080 0.000 0.904 0.016 0.000
#> SRR1471395 4 0.2870 0.7238 0.000 0.100 0.000 0.856 0.040 0.004
#> SRR1096198 4 0.3424 0.6883 0.096 0.092 0.000 0.812 0.000 0.000
#> SRR1323234 1 0.0713 0.8417 0.972 0.000 0.000 0.000 0.028 0.000
#> SRR1073483 2 0.2915 0.7218 0.000 0.808 0.000 0.008 0.184 0.000
#> SRR817817 4 0.5227 0.2615 0.000 0.020 0.000 0.580 0.064 0.336
#> SRR1434070 3 0.0000 0.9172 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1100941 3 0.1524 0.8872 0.000 0.000 0.932 0.060 0.008 0.000
#> SRR1336682 1 0.0820 0.8469 0.972 0.000 0.000 0.012 0.016 0.000
#> SRR1077211 5 0.5233 0.3703 0.000 0.112 0.000 0.000 0.556 0.332
#> SRR1389454 1 0.0260 0.8460 0.992 0.000 0.000 0.000 0.008 0.000
#> SRR1393004 1 0.0405 0.8468 0.988 0.000 0.000 0.004 0.008 0.000
#> SRR1086369 5 0.7742 0.1825 0.000 0.232 0.208 0.004 0.336 0.220
#> SRR1447192 1 0.0458 0.8453 0.984 0.000 0.000 0.000 0.016 0.000
#> SRR1459147 6 0.0291 0.6355 0.004 0.000 0.000 0.000 0.004 0.992
#> SRR1097929 3 0.0000 0.9172 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1075850 5 0.1728 0.7414 0.008 0.064 0.000 0.004 0.924 0.000
#> SRR1358126 1 0.6151 0.2550 0.464 0.004 0.000 0.244 0.004 0.284
#> SRR1121009 3 0.0436 0.9103 0.004 0.004 0.988 0.004 0.000 0.000
#> SRR1321720 1 0.5954 0.0225 0.468 0.204 0.000 0.004 0.324 0.000
#> SRR810105 5 0.2384 0.7334 0.064 0.048 0.000 0.000 0.888 0.000
#> SRR1489007 2 0.2118 0.7079 0.000 0.888 0.000 0.104 0.008 0.000
#> SRR1361838 4 0.2214 0.7393 0.004 0.092 0.000 0.892 0.012 0.000
#> SRR1475086 2 0.2328 0.7656 0.000 0.892 0.000 0.056 0.052 0.000
#> SRR1468226 6 0.5503 0.2731 0.000 0.292 0.004 0.008 0.116 0.580
#> SRR1069466 2 0.1225 0.7683 0.000 0.952 0.000 0.012 0.036 0.000
#> SRR1078114 4 0.2231 0.6990 0.012 0.020 0.048 0.912 0.008 0.000
#> SRR1319991 2 0.5315 -0.1128 0.000 0.504 0.000 0.416 0.016 0.064
#> SRR1374543 1 0.0937 0.8446 0.960 0.000 0.000 0.040 0.000 0.000
#> SRR1383237 2 0.4940 0.2676 0.008 0.640 0.000 0.268 0.000 0.084
#> SRR1486215 1 0.3564 0.7252 0.800 0.024 0.000 0.008 0.008 0.160
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["MAD", "hclust"]
# you can also extract it by
# res = res_list["MAD:hclust"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'MAD' method.
#> Subgroups are detected by 'hclust' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.528 0.826 0.911 0.4784 0.501 0.501
#> 3 3 0.471 0.634 0.808 0.2433 0.915 0.831
#> 4 4 0.458 0.542 0.801 0.0849 0.913 0.797
#> 5 5 0.546 0.441 0.729 0.1323 0.913 0.761
#> 6 6 0.566 0.432 0.645 0.0578 0.915 0.723
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.8677 1.000 0.000
#> SRR1499584 2 0.0000 0.9193 0.000 1.000
#> SRR815256 2 0.0000 0.9193 0.000 1.000
#> SRR1077996 2 0.0000 0.9193 0.000 1.000
#> SRR1338468 1 0.7602 0.7510 0.780 0.220
#> SRR1394428 2 0.2236 0.9198 0.036 0.964
#> SRR1431104 2 0.6887 0.7891 0.184 0.816
#> SRR1082128 2 0.3114 0.9143 0.056 0.944
#> SRR1078212 1 0.5629 0.8138 0.868 0.132
#> SRR1458401 1 0.8081 0.7239 0.752 0.248
#> SRR1447281 1 0.0000 0.8677 1.000 0.000
#> SRR1339258 2 0.0376 0.9194 0.004 0.996
#> SRR1105106 2 0.0376 0.9194 0.004 0.996
#> SRR1105130 2 0.0376 0.9203 0.004 0.996
#> SRR1419039 1 0.0000 0.8677 1.000 0.000
#> SRR1079213 1 0.5178 0.8243 0.884 0.116
#> SRR1309745 2 0.0000 0.9193 0.000 1.000
#> SRR1079408 1 0.0000 0.8677 1.000 0.000
#> SRR1445550 2 0.4431 0.8930 0.092 0.908
#> SRR820026 2 0.3733 0.9008 0.072 0.928
#> SRR1353686 1 0.9993 0.1384 0.516 0.484
#> SRR1475466 1 0.0000 0.8677 1.000 0.000
#> SRR1096315 1 0.5178 0.8243 0.884 0.116
#> SRR1479826 1 0.8861 0.6426 0.696 0.304
#> SRR1479450 2 0.9754 0.2728 0.408 0.592
#> SRR1094097 1 0.0000 0.8677 1.000 0.000
#> SRR1071737 2 0.0000 0.9193 0.000 1.000
#> SRR1433989 1 0.0000 0.8677 1.000 0.000
#> SRR1077159 2 0.3584 0.9025 0.068 0.932
#> SRR1330082 1 0.0000 0.8677 1.000 0.000
#> SRR1079874 2 0.4815 0.8839 0.104 0.896
#> SRR1387132 2 0.2236 0.9190 0.036 0.964
#> SRR1095261 1 0.5178 0.8243 0.884 0.116
#> SRR818646 2 0.2778 0.9169 0.048 0.952
#> SRR1313991 1 0.0000 0.8677 1.000 0.000
#> SRR1363718 2 0.0000 0.9193 0.000 1.000
#> SRR1381372 2 0.6712 0.7888 0.176 0.824
#> SRR1388257 2 0.3733 0.9046 0.072 0.928
#> SRR818139 1 0.0000 0.8677 1.000 0.000
#> SRR1078188 2 0.0000 0.9193 0.000 1.000
#> SRR1080342 2 0.0000 0.9193 0.000 1.000
#> SRR1085358 2 0.3584 0.9025 0.068 0.932
#> SRR1473482 1 0.8081 0.7239 0.752 0.248
#> SRR1452674 1 0.0000 0.8677 1.000 0.000
#> SRR1395874 1 0.7299 0.7629 0.796 0.204
#> SRR1382780 1 0.0000 0.8677 1.000 0.000
#> SRR1361138 2 0.0376 0.9203 0.004 0.996
#> SRR1319242 2 0.3584 0.9033 0.068 0.932
#> SRR1084553 2 0.0000 0.9193 0.000 1.000
#> SRR1498747 1 0.6712 0.7886 0.824 0.176
#> SRR1442213 1 0.2603 0.8556 0.956 0.044
#> SRR1343943 2 0.0000 0.9193 0.000 1.000
#> SRR1458828 2 0.0938 0.9215 0.012 0.988
#> SRR1360280 2 0.0938 0.9206 0.012 0.988
#> SRR1474208 1 0.5629 0.8138 0.868 0.132
#> SRR1498726 2 0.5737 0.8531 0.136 0.864
#> SRR1099857 1 0.8081 0.7239 0.752 0.248
#> SRR1329423 2 0.2423 0.9183 0.040 0.960
#> SRR1074430 2 0.0376 0.9203 0.004 0.996
#> SRR1485848 2 0.4562 0.8905 0.096 0.904
#> SRR1471395 2 0.4815 0.8839 0.104 0.896
#> SRR1096198 2 0.8016 0.6974 0.244 0.756
#> SRR1323234 1 0.8016 0.7284 0.756 0.244
#> SRR1073483 2 0.0376 0.9203 0.004 0.996
#> SRR817817 2 0.4562 0.8905 0.096 0.904
#> SRR1434070 2 0.9087 0.5482 0.324 0.676
#> SRR1100941 1 0.5629 0.8138 0.868 0.132
#> SRR1336682 1 0.0000 0.8677 1.000 0.000
#> SRR1077211 2 0.0672 0.9208 0.008 0.992
#> SRR1389454 1 0.0000 0.8677 1.000 0.000
#> SRR1393004 1 0.0000 0.8677 1.000 0.000
#> SRR1086369 2 0.2603 0.9185 0.044 0.956
#> SRR1447192 1 0.0000 0.8677 1.000 0.000
#> SRR1459147 2 0.9944 0.0405 0.456 0.544
#> SRR1097929 1 0.0376 0.8670 0.996 0.004
#> SRR1075850 1 0.9993 0.2027 0.516 0.484
#> SRR1358126 1 0.0000 0.8677 1.000 0.000
#> SRR1121009 1 0.0000 0.8677 1.000 0.000
#> SRR1321720 1 0.8081 0.7239 0.752 0.248
#> SRR810105 1 0.8081 0.7239 0.752 0.248
#> SRR1489007 2 0.1843 0.9202 0.028 0.972
#> SRR1361838 2 0.4431 0.8930 0.092 0.908
#> SRR1475086 2 0.1414 0.9217 0.020 0.980
#> SRR1468226 2 0.0000 0.9193 0.000 1.000
#> SRR1069466 2 0.0000 0.9193 0.000 1.000
#> SRR1078114 2 0.8016 0.6974 0.244 0.756
#> SRR1319991 2 0.1843 0.9202 0.028 0.972
#> SRR1374543 1 0.9323 0.5502 0.652 0.348
#> SRR1383237 2 0.2423 0.9183 0.040 0.960
#> SRR1486215 1 0.0000 0.8677 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 1 0.4121 0.5608 0.832 0.000 0.168
#> SRR1499584 2 0.0237 0.8318 0.000 0.996 0.004
#> SRR815256 2 0.0237 0.8318 0.000 0.996 0.004
#> SRR1077996 2 0.0237 0.8318 0.000 0.996 0.004
#> SRR1338468 1 0.7058 0.5476 0.708 0.212 0.080
#> SRR1394428 2 0.2414 0.8239 0.020 0.940 0.040
#> SRR1431104 2 0.8322 0.5982 0.124 0.608 0.268
#> SRR1082128 2 0.3832 0.8125 0.036 0.888 0.076
#> SRR1078212 3 0.7828 0.5510 0.448 0.052 0.500
#> SRR1458401 1 0.7344 0.5242 0.680 0.240 0.080
#> SRR1447281 1 0.0000 0.6816 1.000 0.000 0.000
#> SRR1339258 2 0.6267 0.5036 0.000 0.548 0.452
#> SRR1105106 2 0.6267 0.5036 0.000 0.548 0.452
#> SRR1105130 2 0.0000 0.8318 0.000 1.000 0.000
#> SRR1419039 1 0.0000 0.6816 1.000 0.000 0.000
#> SRR1079213 3 0.7484 0.5339 0.460 0.036 0.504
#> SRR1309745 2 0.0237 0.8318 0.000 0.996 0.004
#> SRR1079408 1 0.4121 0.5608 0.832 0.000 0.168
#> SRR1445550 2 0.6880 0.6625 0.036 0.660 0.304
#> SRR820026 2 0.3042 0.8023 0.040 0.920 0.040
#> SRR1353686 1 0.9021 0.0693 0.452 0.416 0.132
#> SRR1475466 1 0.0000 0.6816 1.000 0.000 0.000
#> SRR1096315 3 0.7484 0.5339 0.460 0.036 0.504
#> SRR1479826 1 0.7363 0.4367 0.656 0.280 0.064
#> SRR1479450 2 0.9077 0.2064 0.340 0.508 0.152
#> SRR1094097 1 0.0000 0.6816 1.000 0.000 0.000
#> SRR1071737 2 0.0237 0.8318 0.000 0.996 0.004
#> SRR1433989 1 0.0000 0.6816 1.000 0.000 0.000
#> SRR1077159 2 0.2806 0.8038 0.040 0.928 0.032
#> SRR1330082 1 0.0000 0.6816 1.000 0.000 0.000
#> SRR1079874 2 0.6988 0.6518 0.036 0.644 0.320
#> SRR1387132 2 0.4196 0.8032 0.024 0.864 0.112
#> SRR1095261 3 0.7484 0.5339 0.460 0.036 0.504
#> SRR818646 2 0.3649 0.8141 0.036 0.896 0.068
#> SRR1313991 1 0.0000 0.6816 1.000 0.000 0.000
#> SRR1363718 2 0.0237 0.8318 0.000 0.996 0.004
#> SRR1381372 3 0.7536 -0.0822 0.068 0.292 0.640
#> SRR1388257 2 0.7526 0.5058 0.040 0.536 0.424
#> SRR818139 1 0.0000 0.6816 1.000 0.000 0.000
#> SRR1078188 2 0.0237 0.8318 0.000 0.996 0.004
#> SRR1080342 2 0.0237 0.8318 0.000 0.996 0.004
#> SRR1085358 2 0.2806 0.8038 0.040 0.928 0.032
#> SRR1473482 1 0.7344 0.5242 0.680 0.240 0.080
#> SRR1452674 1 0.0000 0.6816 1.000 0.000 0.000
#> SRR1395874 1 0.7124 0.5508 0.708 0.204 0.088
#> SRR1382780 1 0.4121 0.5608 0.832 0.000 0.168
#> SRR1361138 2 0.0000 0.8318 0.000 1.000 0.000
#> SRR1319242 2 0.2356 0.8079 0.000 0.928 0.072
#> SRR1084553 2 0.0237 0.8318 0.000 0.996 0.004
#> SRR1498747 1 0.7424 0.5425 0.700 0.172 0.128
#> SRR1442213 1 0.5926 -0.0993 0.644 0.000 0.356
#> SRR1343943 2 0.0237 0.8318 0.000 0.996 0.004
#> SRR1458828 2 0.0747 0.8309 0.000 0.984 0.016
#> SRR1360280 2 0.2063 0.8261 0.008 0.948 0.044
#> SRR1474208 3 0.7828 0.5510 0.448 0.052 0.500
#> SRR1498726 2 0.5212 0.7692 0.064 0.828 0.108
#> SRR1099857 1 0.7344 0.5242 0.680 0.240 0.080
#> SRR1329423 2 0.7121 0.5239 0.024 0.548 0.428
#> SRR1074430 2 0.0000 0.8318 0.000 1.000 0.000
#> SRR1485848 2 0.6935 0.6563 0.036 0.652 0.312
#> SRR1471395 2 0.6988 0.6518 0.036 0.644 0.320
#> SRR1096198 2 0.7821 0.6002 0.176 0.672 0.152
#> SRR1323234 1 0.7306 0.5281 0.684 0.236 0.080
#> SRR1073483 2 0.0000 0.8318 0.000 1.000 0.000
#> SRR817817 2 0.6935 0.6563 0.036 0.652 0.312
#> SRR1434070 2 0.8167 0.4162 0.212 0.640 0.148
#> SRR1100941 3 0.7828 0.5510 0.448 0.052 0.500
#> SRR1336682 1 0.0000 0.6816 1.000 0.000 0.000
#> SRR1077211 2 0.0424 0.8308 0.000 0.992 0.008
#> SRR1389454 1 0.0000 0.6816 1.000 0.000 0.000
#> SRR1393004 1 0.0000 0.6816 1.000 0.000 0.000
#> SRR1086369 2 0.3028 0.8202 0.032 0.920 0.048
#> SRR1447192 1 0.0000 0.6816 1.000 0.000 0.000
#> SRR1459147 3 0.4465 0.3329 0.176 0.004 0.820
#> SRR1097929 1 0.4351 0.5586 0.828 0.004 0.168
#> SRR1075850 3 0.9367 0.2434 0.168 0.404 0.428
#> SRR1358126 1 0.0000 0.6816 1.000 0.000 0.000
#> SRR1121009 1 0.3816 0.5759 0.852 0.000 0.148
#> SRR1321720 1 0.7344 0.5242 0.680 0.240 0.080
#> SRR810105 1 0.7344 0.5242 0.680 0.240 0.080
#> SRR1489007 2 0.3234 0.8173 0.020 0.908 0.072
#> SRR1361838 2 0.6935 0.6561 0.036 0.652 0.312
#> SRR1475086 2 0.1529 0.8293 0.000 0.960 0.040
#> SRR1468226 2 0.0237 0.8318 0.000 0.996 0.004
#> SRR1069466 2 0.0237 0.8318 0.000 0.996 0.004
#> SRR1078114 2 0.7821 0.6002 0.176 0.672 0.152
#> SRR1319991 2 0.3415 0.8153 0.020 0.900 0.080
#> SRR1374543 1 0.8286 0.2999 0.588 0.308 0.104
#> SRR1383237 2 0.7164 0.4880 0.024 0.524 0.452
#> SRR1486215 1 0.4702 0.2852 0.788 0.000 0.212
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.4998 -0.1048 0.488 0.000 0.512 0.000
#> SRR1499584 2 0.0336 0.7528 0.000 0.992 0.000 0.008
#> SRR815256 2 0.0779 0.7533 0.000 0.980 0.004 0.016
#> SRR1077996 2 0.0336 0.7528 0.000 0.992 0.000 0.008
#> SRR1338468 1 0.6783 0.5555 0.624 0.204 0.168 0.004
#> SRR1394428 2 0.2940 0.7106 0.012 0.892 0.008 0.088
#> SRR1431104 2 0.7876 0.0855 0.100 0.560 0.068 0.272
#> SRR1082128 2 0.4060 0.6599 0.024 0.832 0.012 0.132
#> SRR1078212 3 0.0376 0.7275 0.000 0.004 0.992 0.004
#> SRR1458401 1 0.6768 0.5557 0.620 0.228 0.148 0.004
#> SRR1447281 1 0.0000 0.6815 1.000 0.000 0.000 0.000
#> SRR1339258 4 0.4996 0.6312 0.000 0.484 0.000 0.516
#> SRR1105106 4 0.4996 0.6312 0.000 0.484 0.000 0.516
#> SRR1105130 2 0.0336 0.7537 0.000 0.992 0.000 0.008
#> SRR1419039 1 0.0188 0.6804 0.996 0.000 0.000 0.004
#> SRR1079213 3 0.0336 0.7279 0.008 0.000 0.992 0.000
#> SRR1309745 2 0.0336 0.7540 0.000 0.992 0.000 0.008
#> SRR1079408 1 0.5000 0.0223 0.504 0.000 0.496 0.000
#> SRR1445550 2 0.6479 0.0439 0.012 0.604 0.064 0.320
#> SRR820026 2 0.2805 0.6923 0.000 0.888 0.100 0.012
#> SRR1353686 1 0.8642 0.1444 0.400 0.396 0.112 0.092
#> SRR1475466 1 0.0000 0.6815 1.000 0.000 0.000 0.000
#> SRR1096315 3 0.0336 0.7279 0.008 0.000 0.992 0.000
#> SRR1479826 1 0.7158 0.5190 0.608 0.268 0.084 0.040
#> SRR1479450 2 0.8655 0.0815 0.292 0.484 0.100 0.124
#> SRR1094097 1 0.0000 0.6815 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.0524 0.7524 0.000 0.988 0.004 0.008
#> SRR1433989 1 0.0000 0.6815 1.000 0.000 0.000 0.000
#> SRR1077159 2 0.2610 0.7003 0.000 0.900 0.088 0.012
#> SRR1330082 1 0.0000 0.6815 1.000 0.000 0.000 0.000
#> SRR1079874 2 0.6762 0.0363 0.012 0.588 0.084 0.316
#> SRR1387132 2 0.3808 0.6117 0.012 0.812 0.000 0.176
#> SRR1095261 3 0.0336 0.7279 0.008 0.000 0.992 0.000
#> SRR818646 2 0.3606 0.6619 0.024 0.844 0.000 0.132
#> SRR1313991 1 0.0000 0.6815 1.000 0.000 0.000 0.000
#> SRR1363718 2 0.0469 0.7537 0.000 0.988 0.000 0.012
#> SRR1381372 4 0.4420 0.5658 0.012 0.240 0.000 0.748
#> SRR1388257 4 0.5294 0.5815 0.008 0.484 0.000 0.508
#> SRR818139 1 0.0000 0.6815 1.000 0.000 0.000 0.000
#> SRR1078188 2 0.0524 0.7524 0.000 0.988 0.004 0.008
#> SRR1080342 2 0.0469 0.7537 0.000 0.988 0.000 0.012
#> SRR1085358 2 0.2610 0.7003 0.000 0.900 0.088 0.012
#> SRR1473482 1 0.6768 0.5557 0.620 0.228 0.148 0.004
#> SRR1452674 1 0.0000 0.6815 1.000 0.000 0.000 0.000
#> SRR1395874 1 0.6861 0.5434 0.616 0.200 0.180 0.004
#> SRR1382780 1 0.5000 0.0223 0.504 0.000 0.496 0.000
#> SRR1361138 2 0.0336 0.7537 0.000 0.992 0.000 0.008
#> SRR1319242 2 0.2473 0.7094 0.000 0.908 0.080 0.012
#> SRR1084553 2 0.0336 0.7528 0.000 0.992 0.000 0.008
#> SRR1498747 1 0.7346 0.4371 0.552 0.164 0.276 0.008
#> SRR1442213 3 0.7878 0.2360 0.284 0.000 0.376 0.340
#> SRR1343943 2 0.0188 0.7536 0.000 0.996 0.000 0.004
#> SRR1458828 2 0.0672 0.7541 0.000 0.984 0.008 0.008
#> SRR1360280 2 0.2081 0.7231 0.000 0.916 0.000 0.084
#> SRR1474208 3 0.0376 0.7275 0.000 0.004 0.992 0.004
#> SRR1498726 2 0.5013 0.6305 0.028 0.800 0.108 0.064
#> SRR1099857 1 0.6768 0.5557 0.620 0.228 0.148 0.004
#> SRR1329423 4 0.5404 0.5975 0.012 0.476 0.000 0.512
#> SRR1074430 2 0.0336 0.7537 0.000 0.992 0.000 0.008
#> SRR1485848 2 0.6628 0.0398 0.012 0.600 0.076 0.312
#> SRR1471395 2 0.6762 0.0363 0.012 0.588 0.084 0.316
#> SRR1096198 2 0.7454 0.3835 0.128 0.648 0.100 0.124
#> SRR1323234 1 0.6780 0.5556 0.620 0.224 0.152 0.004
#> SRR1073483 2 0.0336 0.7537 0.000 0.992 0.000 0.008
#> SRR817817 2 0.6628 0.0398 0.012 0.600 0.076 0.312
#> SRR1434070 2 0.5290 0.0999 0.000 0.584 0.404 0.012
#> SRR1100941 3 0.0376 0.7275 0.000 0.004 0.992 0.004
#> SRR1336682 1 0.0000 0.6815 1.000 0.000 0.000 0.000
#> SRR1077211 2 0.1520 0.7492 0.000 0.956 0.020 0.024
#> SRR1389454 1 0.0000 0.6815 1.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.6815 1.000 0.000 0.000 0.000
#> SRR1086369 2 0.3408 0.6844 0.016 0.860 0.004 0.120
#> SRR1447192 1 0.0000 0.6815 1.000 0.000 0.000 0.000
#> SRR1459147 4 0.2334 0.1085 0.088 0.004 0.000 0.908
#> SRR1097929 3 0.4996 -0.0989 0.484 0.000 0.516 0.000
#> SRR1075850 3 0.4889 0.1855 0.000 0.360 0.636 0.004
#> SRR1358126 1 0.0188 0.6804 0.996 0.000 0.000 0.004
#> SRR1121009 1 0.4961 0.1467 0.552 0.000 0.448 0.000
#> SRR1321720 1 0.6768 0.5557 0.620 0.228 0.148 0.004
#> SRR810105 1 0.6768 0.5557 0.620 0.228 0.148 0.004
#> SRR1489007 2 0.3105 0.6713 0.012 0.868 0.000 0.120
#> SRR1361838 2 0.6604 0.0280 0.012 0.596 0.072 0.320
#> SRR1475086 2 0.1677 0.7427 0.000 0.948 0.012 0.040
#> SRR1468226 2 0.0779 0.7533 0.000 0.980 0.004 0.016
#> SRR1069466 2 0.0336 0.7540 0.000 0.992 0.000 0.008
#> SRR1078114 2 0.7454 0.3835 0.128 0.648 0.100 0.124
#> SRR1319991 2 0.3271 0.6623 0.012 0.856 0.000 0.132
#> SRR1374543 1 0.7869 0.4011 0.536 0.296 0.124 0.044
#> SRR1383237 4 0.5388 0.6381 0.012 0.456 0.000 0.532
#> SRR1486215 1 0.4134 0.4208 0.740 0.000 0.000 0.260
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.4446 0.12513 0.476 0.000 0.520 0.000 0.004
#> SRR1499584 2 0.0162 0.64473 0.000 0.996 0.000 0.004 0.000
#> SRR815256 2 0.0992 0.64399 0.000 0.968 0.000 0.024 0.008
#> SRR1077996 2 0.0162 0.64473 0.000 0.996 0.000 0.004 0.000
#> SRR1338468 1 0.6493 0.58414 0.612 0.024 0.116 0.016 0.232
#> SRR1394428 2 0.5753 0.40592 0.000 0.552 0.004 0.360 0.084
#> SRR1431104 4 0.7966 0.15585 0.080 0.332 0.052 0.456 0.080
#> SRR1082128 2 0.5569 0.37629 0.000 0.556 0.000 0.364 0.080
#> SRR1078212 3 0.0865 0.46499 0.000 0.000 0.972 0.024 0.004
#> SRR1458401 1 0.6497 0.58859 0.608 0.032 0.092 0.016 0.252
#> SRR1447281 1 0.0000 0.72382 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.4609 0.32572 0.000 0.152 0.000 0.744 0.104
#> SRR1105106 4 0.4609 0.32572 0.000 0.152 0.000 0.744 0.104
#> SRR1105130 2 0.3752 0.62488 0.000 0.804 0.000 0.148 0.048
#> SRR1419039 1 0.0162 0.72269 0.996 0.000 0.000 0.000 0.004
#> SRR1079213 3 0.0000 0.46688 0.000 0.000 1.000 0.000 0.000
#> SRR1309745 2 0.2377 0.63039 0.000 0.872 0.000 0.128 0.000
#> SRR1079408 3 0.4451 0.08649 0.492 0.000 0.504 0.000 0.004
#> SRR1445550 4 0.5762 0.19419 0.000 0.440 0.040 0.496 0.024
#> SRR820026 2 0.6140 0.39923 0.000 0.636 0.048 0.092 0.224
#> SRR1353686 1 0.9033 0.20270 0.384 0.104 0.068 0.216 0.228
#> SRR1475466 1 0.0000 0.72382 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.46688 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 1 0.6752 0.56193 0.592 0.064 0.044 0.032 0.268
#> SRR1479450 4 0.9388 0.10985 0.272 0.228 0.064 0.284 0.152
#> SRR1094097 1 0.0000 0.72382 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0404 0.64252 0.000 0.988 0.000 0.012 0.000
#> SRR1433989 1 0.0000 0.72382 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 2 0.6127 0.40242 0.000 0.628 0.036 0.104 0.232
#> SRR1330082 1 0.0000 0.72382 1.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.5997 0.16147 0.000 0.452 0.056 0.468 0.024
#> SRR1387132 2 0.5337 0.33670 0.000 0.508 0.000 0.440 0.052
#> SRR1095261 3 0.0000 0.46688 0.000 0.000 1.000 0.000 0.000
#> SRR818646 2 0.5579 0.34713 0.000 0.508 0.000 0.420 0.072
#> SRR1313991 1 0.0000 0.72382 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0703 0.64742 0.000 0.976 0.000 0.024 0.000
#> SRR1381372 4 0.5267 -0.05175 0.000 0.048 0.000 0.524 0.428
#> SRR1388257 4 0.5692 0.36253 0.000 0.168 0.000 0.628 0.204
#> SRR818139 1 0.0000 0.72382 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0404 0.64252 0.000 0.988 0.000 0.012 0.000
#> SRR1080342 2 0.0703 0.64742 0.000 0.976 0.000 0.024 0.000
#> SRR1085358 2 0.6127 0.40242 0.000 0.628 0.036 0.104 0.232
#> SRR1473482 1 0.6497 0.58859 0.608 0.032 0.092 0.016 0.252
#> SRR1452674 1 0.0000 0.72382 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 1 0.6471 0.55747 0.596 0.024 0.152 0.004 0.224
#> SRR1382780 3 0.4451 0.08649 0.492 0.000 0.504 0.000 0.004
#> SRR1361138 2 0.3752 0.62488 0.000 0.804 0.000 0.148 0.048
#> SRR1319242 2 0.5485 0.54402 0.000 0.724 0.060 0.116 0.100
#> SRR1084553 2 0.0162 0.64473 0.000 0.996 0.000 0.004 0.000
#> SRR1498747 1 0.6750 0.40932 0.536 0.024 0.248 0.000 0.192
#> SRR1442213 5 0.6938 -0.13000 0.212 0.000 0.384 0.012 0.392
#> SRR1343943 2 0.1608 0.63828 0.000 0.928 0.000 0.072 0.000
#> SRR1458828 2 0.2414 0.63875 0.000 0.900 0.008 0.080 0.012
#> SRR1360280 2 0.4552 0.52182 0.000 0.696 0.000 0.264 0.040
#> SRR1474208 3 0.0865 0.46499 0.000 0.000 0.972 0.024 0.004
#> SRR1498726 2 0.6893 0.40176 0.012 0.612 0.068 0.176 0.132
#> SRR1099857 1 0.6444 0.58880 0.608 0.028 0.092 0.016 0.256
#> SRR1329423 4 0.1997 0.34959 0.000 0.036 0.000 0.924 0.040
#> SRR1074430 2 0.3752 0.62488 0.000 0.804 0.000 0.148 0.048
#> SRR1485848 2 0.5940 -0.20307 0.000 0.480 0.052 0.444 0.024
#> SRR1471395 4 0.5997 0.16147 0.000 0.452 0.056 0.468 0.024
#> SRR1096198 2 0.8917 -0.04519 0.108 0.372 0.064 0.300 0.156
#> SRR1323234 1 0.6469 0.58815 0.608 0.028 0.096 0.016 0.252
#> SRR1073483 2 0.3752 0.62488 0.000 0.804 0.000 0.148 0.048
#> SRR817817 2 0.5940 -0.20307 0.000 0.480 0.052 0.444 0.024
#> SRR1434070 2 0.6016 0.19043 0.000 0.524 0.384 0.076 0.016
#> SRR1100941 3 0.0865 0.46499 0.000 0.000 0.972 0.024 0.004
#> SRR1336682 1 0.0000 0.72382 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.3166 0.62427 0.000 0.856 0.012 0.112 0.020
#> SRR1389454 1 0.0000 0.72382 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.72382 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 2 0.5825 0.35251 0.000 0.536 0.000 0.360 0.104
#> SRR1447192 1 0.0000 0.72382 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 5 0.4229 0.12834 0.020 0.000 0.000 0.276 0.704
#> SRR1097929 3 0.4443 0.12900 0.472 0.000 0.524 0.000 0.004
#> SRR1075850 3 0.6542 0.06079 0.000 0.180 0.572 0.024 0.224
#> SRR1358126 1 0.0162 0.72269 0.996 0.000 0.000 0.000 0.004
#> SRR1121009 1 0.4273 -0.00846 0.552 0.000 0.448 0.000 0.000
#> SRR1321720 1 0.6637 0.58754 0.608 0.044 0.092 0.016 0.240
#> SRR810105 1 0.6444 0.58880 0.608 0.028 0.092 0.016 0.256
#> SRR1489007 2 0.5274 0.44993 0.000 0.600 0.000 0.336 0.064
#> SRR1361838 4 0.5882 0.19576 0.000 0.440 0.048 0.488 0.024
#> SRR1475086 2 0.4770 0.58727 0.000 0.752 0.012 0.140 0.096
#> SRR1468226 2 0.0703 0.64522 0.000 0.976 0.000 0.024 0.000
#> SRR1069466 2 0.2377 0.63039 0.000 0.872 0.000 0.128 0.000
#> SRR1078114 2 0.8917 -0.04519 0.108 0.372 0.064 0.300 0.156
#> SRR1319991 2 0.5405 0.39374 0.000 0.556 0.000 0.380 0.064
#> SRR1374543 1 0.7803 0.44608 0.520 0.036 0.076 0.120 0.248
#> SRR1383237 4 0.3670 0.35713 0.000 0.112 0.000 0.820 0.068
#> SRR1486215 1 0.4047 0.22331 0.676 0.000 0.000 0.004 0.320
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.6013 0.2763 0.332 0.000 0.524 0.032 0.108 0.004
#> SRR1499584 2 0.2699 0.6121 0.000 0.856 0.000 0.124 0.012 0.008
#> SRR815256 2 0.3135 0.6140 0.008 0.840 0.000 0.120 0.004 0.028
#> SRR1077996 2 0.2699 0.6121 0.000 0.856 0.000 0.124 0.012 0.008
#> SRR1338468 1 0.1176 0.5757 0.956 0.000 0.024 0.020 0.000 0.000
#> SRR1394428 2 0.6798 0.2766 0.048 0.452 0.000 0.240 0.004 0.256
#> SRR1431104 4 0.5595 0.4928 0.148 0.112 0.008 0.672 0.000 0.060
#> SRR1082128 2 0.6743 0.2000 0.056 0.424 0.000 0.356 0.004 0.160
#> SRR1078212 3 0.1425 0.4701 0.012 0.000 0.952 0.020 0.008 0.008
#> SRR1458401 1 0.0405 0.5781 0.988 0.000 0.000 0.004 0.000 0.008
#> SRR1447281 1 0.3782 0.6835 0.588 0.000 0.000 0.000 0.412 0.000
#> SRR1339258 6 0.6029 0.5297 0.000 0.212 0.000 0.348 0.004 0.436
#> SRR1105106 6 0.6029 0.5297 0.000 0.212 0.000 0.348 0.004 0.436
#> SRR1105130 2 0.3076 0.5955 0.024 0.852 0.000 0.096 0.000 0.028
#> SRR1419039 1 0.3899 0.6816 0.592 0.000 0.000 0.000 0.404 0.004
#> SRR1079213 3 0.0146 0.4723 0.004 0.000 0.996 0.000 0.000 0.000
#> SRR1309745 2 0.2094 0.6096 0.000 0.900 0.000 0.080 0.000 0.020
#> SRR1079408 3 0.6123 0.2653 0.336 0.000 0.508 0.032 0.120 0.004
#> SRR1445550 4 0.3946 0.5744 0.012 0.208 0.000 0.748 0.000 0.032
#> SRR820026 2 0.8004 0.1183 0.248 0.392 0.012 0.204 0.024 0.120
#> SRR1353686 1 0.5509 0.1630 0.584 0.020 0.008 0.336 0.028 0.024
#> SRR1475466 1 0.3782 0.6835 0.588 0.000 0.000 0.000 0.412 0.000
#> SRR1096315 3 0.0146 0.4723 0.004 0.000 0.996 0.000 0.000 0.000
#> SRR1479826 1 0.3750 0.5353 0.824 0.000 0.004 0.052 0.068 0.052
#> SRR1479450 4 0.6586 0.2497 0.400 0.104 0.008 0.440 0.020 0.028
#> SRR1094097 1 0.3782 0.6835 0.588 0.000 0.000 0.000 0.412 0.000
#> SRR1071737 2 0.2841 0.6096 0.000 0.848 0.000 0.128 0.012 0.012
#> SRR1433989 1 0.3782 0.6835 0.588 0.000 0.000 0.000 0.412 0.000
#> SRR1077159 2 0.7590 0.1436 0.268 0.416 0.004 0.168 0.012 0.132
#> SRR1330082 1 0.3782 0.6835 0.588 0.000 0.000 0.000 0.412 0.000
#> SRR1079874 4 0.4009 0.5808 0.016 0.212 0.012 0.748 0.000 0.012
#> SRR1387132 2 0.5695 0.2352 0.020 0.508 0.000 0.372 0.000 0.100
#> SRR1095261 3 0.0146 0.4723 0.004 0.000 0.996 0.000 0.000 0.000
#> SRR818646 2 0.6390 0.2179 0.040 0.480 0.000 0.336 0.004 0.140
#> SRR1313991 1 0.3782 0.6835 0.588 0.000 0.000 0.000 0.412 0.000
#> SRR1363718 2 0.2473 0.6187 0.000 0.856 0.000 0.136 0.000 0.008
#> SRR1381372 6 0.5525 0.3393 0.000 0.044 0.000 0.092 0.236 0.628
#> SRR1388257 6 0.5629 0.4458 0.000 0.112 0.000 0.200 0.052 0.636
#> SRR818139 1 0.3782 0.6835 0.588 0.000 0.000 0.000 0.412 0.000
#> SRR1078188 2 0.2841 0.6096 0.000 0.848 0.000 0.128 0.012 0.012
#> SRR1080342 2 0.2473 0.6187 0.000 0.856 0.000 0.136 0.000 0.008
#> SRR1085358 2 0.7590 0.1436 0.268 0.416 0.004 0.168 0.012 0.132
#> SRR1473482 1 0.0405 0.5781 0.988 0.000 0.000 0.004 0.000 0.008
#> SRR1452674 1 0.3782 0.6835 0.588 0.000 0.000 0.000 0.412 0.000
#> SRR1395874 1 0.3877 0.4787 0.800 0.000 0.124 0.024 0.048 0.004
#> SRR1382780 3 0.6123 0.2653 0.336 0.000 0.508 0.032 0.120 0.004
#> SRR1361138 2 0.3076 0.5955 0.024 0.852 0.000 0.096 0.000 0.028
#> SRR1319242 2 0.6571 0.2895 0.080 0.516 0.024 0.332 0.020 0.028
#> SRR1084553 2 0.2699 0.6121 0.000 0.856 0.000 0.124 0.012 0.008
#> SRR1498747 1 0.5534 0.2520 0.636 0.000 0.228 0.020 0.104 0.012
#> SRR1442213 5 0.6644 -0.1377 0.104 0.000 0.384 0.024 0.444 0.044
#> SRR1343943 2 0.2112 0.6221 0.000 0.896 0.000 0.088 0.000 0.016
#> SRR1458828 2 0.2809 0.6195 0.020 0.868 0.000 0.096 0.008 0.008
#> SRR1360280 2 0.5602 0.4333 0.000 0.592 0.000 0.184 0.012 0.212
#> SRR1474208 3 0.1425 0.4701 0.012 0.000 0.952 0.020 0.008 0.008
#> SRR1498726 4 0.7015 0.0672 0.128 0.368 0.028 0.432 0.012 0.032
#> SRR1099857 1 0.0291 0.5796 0.992 0.000 0.000 0.004 0.000 0.004
#> SRR1329423 4 0.4903 -0.4199 0.000 0.072 0.000 0.568 0.000 0.360
#> SRR1074430 2 0.3076 0.5955 0.024 0.852 0.000 0.096 0.000 0.028
#> SRR1485848 4 0.3984 0.5601 0.012 0.236 0.008 0.732 0.000 0.012
#> SRR1471395 4 0.4009 0.5808 0.016 0.212 0.012 0.748 0.000 0.012
#> SRR1096198 4 0.5741 0.4607 0.264 0.116 0.008 0.592 0.000 0.020
#> SRR1323234 1 0.0436 0.5798 0.988 0.000 0.004 0.004 0.000 0.004
#> SRR1073483 2 0.3076 0.5955 0.024 0.852 0.000 0.096 0.000 0.028
#> SRR817817 4 0.3984 0.5601 0.012 0.236 0.008 0.732 0.000 0.012
#> SRR1434070 3 0.7233 -0.3055 0.016 0.332 0.344 0.272 0.012 0.024
#> SRR1100941 3 0.1425 0.4701 0.012 0.000 0.952 0.020 0.008 0.008
#> SRR1336682 1 0.3782 0.6835 0.588 0.000 0.000 0.000 0.412 0.000
#> SRR1077211 2 0.4933 0.5448 0.008 0.688 0.004 0.204 0.004 0.092
#> SRR1389454 1 0.3782 0.6835 0.588 0.000 0.000 0.000 0.412 0.000
#> SRR1393004 1 0.3782 0.6835 0.588 0.000 0.000 0.000 0.412 0.000
#> SRR1086369 2 0.7052 0.2292 0.044 0.404 0.000 0.264 0.012 0.276
#> SRR1447192 1 0.3782 0.6835 0.588 0.000 0.000 0.000 0.412 0.000
#> SRR1459147 5 0.4700 -0.3261 0.000 0.000 0.000 0.044 0.500 0.456
#> SRR1097929 3 0.6023 0.2781 0.336 0.000 0.520 0.032 0.108 0.004
#> SRR1075850 3 0.7108 0.0639 0.336 0.100 0.468 0.024 0.020 0.052
#> SRR1358126 1 0.3890 0.6809 0.596 0.000 0.000 0.000 0.400 0.004
#> SRR1121009 3 0.5775 0.0791 0.432 0.000 0.452 0.016 0.096 0.004
#> SRR1321720 1 0.0881 0.5774 0.972 0.012 0.000 0.008 0.000 0.008
#> SRR810105 1 0.0291 0.5796 0.992 0.000 0.000 0.004 0.000 0.004
#> SRR1489007 2 0.5517 0.3738 0.048 0.612 0.000 0.268 0.000 0.072
#> SRR1361838 4 0.4013 0.5782 0.012 0.208 0.004 0.748 0.000 0.028
#> SRR1475086 2 0.5644 0.4381 0.080 0.576 0.000 0.312 0.008 0.024
#> SRR1468226 2 0.2804 0.6150 0.000 0.852 0.000 0.120 0.004 0.024
#> SRR1069466 2 0.2094 0.6096 0.000 0.900 0.000 0.080 0.000 0.020
#> SRR1078114 4 0.5741 0.4607 0.264 0.116 0.008 0.592 0.000 0.020
#> SRR1319991 2 0.5823 0.3125 0.048 0.572 0.000 0.288 0.000 0.092
#> SRR1374543 1 0.4911 0.4213 0.708 0.000 0.008 0.184 0.076 0.024
#> SRR1383237 4 0.5852 -0.5297 0.000 0.168 0.000 0.452 0.004 0.376
#> SRR1486215 5 0.4401 -0.2570 0.300 0.000 0.000 0.004 0.656 0.040
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["MAD", "kmeans"]
# you can also extract it by
# res = res_list["MAD:kmeans"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'MAD' method.
#> Subgroups are detected by 'kmeans' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.954 0.937 0.976 0.5014 0.501 0.501
#> 3 3 0.701 0.769 0.879 0.2854 0.821 0.657
#> 4 4 0.615 0.537 0.768 0.1346 0.888 0.702
#> 5 5 0.660 0.615 0.772 0.0780 0.849 0.516
#> 6 6 0.730 0.575 0.777 0.0469 0.938 0.712
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.000 0.9840 1.000 0.000
#> SRR1499584 2 0.000 0.9667 0.000 1.000
#> SRR815256 2 0.000 0.9667 0.000 1.000
#> SRR1077996 2 0.000 0.9667 0.000 1.000
#> SRR1338468 1 0.000 0.9840 1.000 0.000
#> SRR1394428 2 0.000 0.9667 0.000 1.000
#> SRR1431104 2 0.000 0.9667 0.000 1.000
#> SRR1082128 2 0.000 0.9667 0.000 1.000
#> SRR1078212 1 0.000 0.9840 1.000 0.000
#> SRR1458401 1 0.662 0.7979 0.828 0.172
#> SRR1447281 1 0.000 0.9840 1.000 0.000
#> SRR1339258 2 0.000 0.9667 0.000 1.000
#> SRR1105106 2 0.000 0.9667 0.000 1.000
#> SRR1105130 2 0.000 0.9667 0.000 1.000
#> SRR1419039 1 0.000 0.9840 1.000 0.000
#> SRR1079213 1 0.000 0.9840 1.000 0.000
#> SRR1309745 2 0.000 0.9667 0.000 1.000
#> SRR1079408 1 0.000 0.9840 1.000 0.000
#> SRR1445550 2 0.000 0.9667 0.000 1.000
#> SRR820026 2 0.000 0.9667 0.000 1.000
#> SRR1353686 1 0.000 0.9840 1.000 0.000
#> SRR1475466 1 0.000 0.9840 1.000 0.000
#> SRR1096315 1 0.000 0.9840 1.000 0.000
#> SRR1479826 1 0.000 0.9840 1.000 0.000
#> SRR1479450 1 0.595 0.8357 0.856 0.144
#> SRR1094097 1 0.000 0.9840 1.000 0.000
#> SRR1071737 2 0.000 0.9667 0.000 1.000
#> SRR1433989 1 0.000 0.9840 1.000 0.000
#> SRR1077159 2 0.295 0.9200 0.052 0.948
#> SRR1330082 1 0.000 0.9840 1.000 0.000
#> SRR1079874 2 0.000 0.9667 0.000 1.000
#> SRR1387132 2 0.000 0.9667 0.000 1.000
#> SRR1095261 2 1.000 0.0461 0.500 0.500
#> SRR818646 2 0.000 0.9667 0.000 1.000
#> SRR1313991 1 0.000 0.9840 1.000 0.000
#> SRR1363718 2 0.000 0.9667 0.000 1.000
#> SRR1381372 2 0.000 0.9667 0.000 1.000
#> SRR1388257 2 0.000 0.9667 0.000 1.000
#> SRR818139 1 0.000 0.9840 1.000 0.000
#> SRR1078188 2 0.000 0.9667 0.000 1.000
#> SRR1080342 2 0.000 0.9667 0.000 1.000
#> SRR1085358 2 0.000 0.9667 0.000 1.000
#> SRR1473482 1 0.000 0.9840 1.000 0.000
#> SRR1452674 1 0.000 0.9840 1.000 0.000
#> SRR1395874 1 0.000 0.9840 1.000 0.000
#> SRR1382780 1 0.000 0.9840 1.000 0.000
#> SRR1361138 2 0.000 0.9667 0.000 1.000
#> SRR1319242 2 0.000 0.9667 0.000 1.000
#> SRR1084553 2 0.000 0.9667 0.000 1.000
#> SRR1498747 1 0.000 0.9840 1.000 0.000
#> SRR1442213 1 0.000 0.9840 1.000 0.000
#> SRR1343943 2 0.000 0.9667 0.000 1.000
#> SRR1458828 2 0.000 0.9667 0.000 1.000
#> SRR1360280 2 0.000 0.9667 0.000 1.000
#> SRR1474208 2 1.000 0.0761 0.492 0.508
#> SRR1498726 2 0.184 0.9424 0.028 0.972
#> SRR1099857 1 0.000 0.9840 1.000 0.000
#> SRR1329423 2 0.000 0.9667 0.000 1.000
#> SRR1074430 2 0.000 0.9667 0.000 1.000
#> SRR1485848 2 0.000 0.9667 0.000 1.000
#> SRR1471395 2 0.000 0.9667 0.000 1.000
#> SRR1096198 1 0.000 0.9840 1.000 0.000
#> SRR1323234 1 0.000 0.9840 1.000 0.000
#> SRR1073483 2 0.000 0.9667 0.000 1.000
#> SRR817817 2 0.000 0.9667 0.000 1.000
#> SRR1434070 2 0.000 0.9667 0.000 1.000
#> SRR1100941 2 0.999 0.1184 0.480 0.520
#> SRR1336682 1 0.000 0.9840 1.000 0.000
#> SRR1077211 2 0.000 0.9667 0.000 1.000
#> SRR1389454 1 0.000 0.9840 1.000 0.000
#> SRR1393004 1 0.000 0.9840 1.000 0.000
#> SRR1086369 2 0.000 0.9667 0.000 1.000
#> SRR1447192 1 0.000 0.9840 1.000 0.000
#> SRR1459147 1 0.000 0.9840 1.000 0.000
#> SRR1097929 1 0.000 0.9840 1.000 0.000
#> SRR1075850 2 0.278 0.9239 0.048 0.952
#> SRR1358126 1 0.000 0.9840 1.000 0.000
#> SRR1121009 1 0.000 0.9840 1.000 0.000
#> SRR1321720 1 0.615 0.8245 0.848 0.152
#> SRR810105 1 0.541 0.8590 0.876 0.124
#> SRR1489007 2 0.000 0.9667 0.000 1.000
#> SRR1361838 2 0.000 0.9667 0.000 1.000
#> SRR1475086 2 0.000 0.9667 0.000 1.000
#> SRR1468226 2 0.000 0.9667 0.000 1.000
#> SRR1069466 2 0.000 0.9667 0.000 1.000
#> SRR1078114 1 0.000 0.9840 1.000 0.000
#> SRR1319991 2 0.000 0.9667 0.000 1.000
#> SRR1374543 1 0.000 0.9840 1.000 0.000
#> SRR1383237 2 0.000 0.9667 0.000 1.000
#> SRR1486215 1 0.000 0.9840 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.6204 0.3550 0.424 0.000 0.576
#> SRR1499584 2 0.0592 0.8997 0.000 0.988 0.012
#> SRR815256 2 0.1529 0.8950 0.000 0.960 0.040
#> SRR1077996 2 0.0592 0.8997 0.000 0.988 0.012
#> SRR1338468 1 0.4974 0.6586 0.764 0.000 0.236
#> SRR1394428 2 0.2165 0.8864 0.000 0.936 0.064
#> SRR1431104 2 0.2537 0.8808 0.000 0.920 0.080
#> SRR1082128 2 0.2625 0.8853 0.000 0.916 0.084
#> SRR1078212 3 0.3340 0.7894 0.120 0.000 0.880
#> SRR1458401 1 0.7721 0.5925 0.680 0.168 0.152
#> SRR1447281 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1339258 2 0.1753 0.8898 0.000 0.952 0.048
#> SRR1105106 2 0.1753 0.8898 0.000 0.952 0.048
#> SRR1105130 2 0.0747 0.8996 0.000 0.984 0.016
#> SRR1419039 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1079213 3 0.3340 0.7894 0.120 0.000 0.880
#> SRR1309745 2 0.0424 0.8998 0.000 0.992 0.008
#> SRR1079408 1 0.2537 0.8435 0.920 0.000 0.080
#> SRR1445550 2 0.1753 0.8893 0.000 0.952 0.048
#> SRR820026 3 0.3941 0.7116 0.000 0.156 0.844
#> SRR1353686 3 0.5254 0.6449 0.264 0.000 0.736
#> SRR1475466 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1096315 3 0.3340 0.7894 0.120 0.000 0.880
#> SRR1479826 1 0.5285 0.6539 0.752 0.004 0.244
#> SRR1479450 1 0.6880 0.6463 0.736 0.156 0.108
#> SRR1094097 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1071737 2 0.0747 0.8996 0.000 0.984 0.016
#> SRR1433989 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1077159 3 0.6678 -0.0603 0.008 0.480 0.512
#> SRR1330082 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1079874 2 0.6244 0.3368 0.000 0.560 0.440
#> SRR1387132 2 0.1860 0.8937 0.000 0.948 0.052
#> SRR1095261 3 0.3889 0.7915 0.084 0.032 0.884
#> SRR818646 2 0.2625 0.8853 0.000 0.916 0.084
#> SRR1313991 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1363718 2 0.0592 0.8997 0.000 0.988 0.012
#> SRR1381372 2 0.3038 0.8787 0.000 0.896 0.104
#> SRR1388257 2 0.3038 0.8770 0.000 0.896 0.104
#> SRR818139 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1078188 2 0.0747 0.8996 0.000 0.984 0.016
#> SRR1080342 2 0.0592 0.8997 0.000 0.988 0.012
#> SRR1085358 2 0.6126 0.3603 0.000 0.600 0.400
#> SRR1473482 1 0.2066 0.8569 0.940 0.000 0.060
#> SRR1452674 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1395874 1 0.6309 -0.1370 0.504 0.000 0.496
#> SRR1382780 1 0.2537 0.8435 0.920 0.000 0.080
#> SRR1361138 2 0.1529 0.8946 0.000 0.960 0.040
#> SRR1319242 2 0.5431 0.5642 0.000 0.716 0.284
#> SRR1084553 2 0.0747 0.8996 0.000 0.984 0.016
#> SRR1498747 3 0.6215 0.3430 0.428 0.000 0.572
#> SRR1442213 3 0.5948 0.4940 0.360 0.000 0.640
#> SRR1343943 2 0.0592 0.8997 0.000 0.988 0.012
#> SRR1458828 2 0.0747 0.8996 0.000 0.984 0.016
#> SRR1360280 2 0.2165 0.8864 0.000 0.936 0.064
#> SRR1474208 3 0.3856 0.7890 0.072 0.040 0.888
#> SRR1498726 3 0.3234 0.7653 0.020 0.072 0.908
#> SRR1099857 1 0.4555 0.7121 0.800 0.000 0.200
#> SRR1329423 2 0.2537 0.8844 0.000 0.920 0.080
#> SRR1074430 2 0.0747 0.8996 0.000 0.984 0.016
#> SRR1485848 2 0.6244 0.3368 0.000 0.560 0.440
#> SRR1471395 2 0.5835 0.5449 0.000 0.660 0.340
#> SRR1096198 3 0.3340 0.7894 0.120 0.000 0.880
#> SRR1323234 1 0.1643 0.8653 0.956 0.000 0.044
#> SRR1073483 2 0.1643 0.8943 0.000 0.956 0.044
#> SRR817817 2 0.6267 0.3265 0.000 0.548 0.452
#> SRR1434070 3 0.3619 0.7361 0.000 0.136 0.864
#> SRR1100941 3 0.3802 0.7912 0.080 0.032 0.888
#> SRR1336682 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1077211 2 0.1753 0.8925 0.000 0.952 0.048
#> SRR1389454 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1393004 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1086369 2 0.2878 0.8809 0.000 0.904 0.096
#> SRR1447192 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1459147 1 0.3272 0.7983 0.892 0.004 0.104
#> SRR1097929 3 0.6192 0.3661 0.420 0.000 0.580
#> SRR1075850 3 0.2537 0.7553 0.000 0.080 0.920
#> SRR1358126 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1121009 1 0.1411 0.8690 0.964 0.000 0.036
#> SRR1321720 1 0.7108 0.6105 0.716 0.184 0.100
#> SRR810105 1 0.6803 0.6015 0.680 0.040 0.280
#> SRR1489007 2 0.1411 0.8960 0.000 0.964 0.036
#> SRR1361838 2 0.5835 0.5449 0.000 0.660 0.340
#> SRR1475086 2 0.0747 0.8996 0.000 0.984 0.016
#> SRR1468226 2 0.0747 0.8996 0.000 0.984 0.016
#> SRR1069466 2 0.0424 0.8998 0.000 0.992 0.008
#> SRR1078114 3 0.3340 0.7894 0.120 0.000 0.880
#> SRR1319991 2 0.1529 0.8926 0.000 0.960 0.040
#> SRR1374543 1 0.0000 0.8836 1.000 0.000 0.000
#> SRR1383237 2 0.1860 0.8896 0.000 0.948 0.052
#> SRR1486215 1 0.0000 0.8836 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.5200 0.6652 0.184 0.000 0.744 0.072
#> SRR1499584 2 0.0000 0.6853 0.000 1.000 0.000 0.000
#> SRR815256 2 0.1637 0.6568 0.000 0.940 0.000 0.060
#> SRR1077996 2 0.0000 0.6853 0.000 1.000 0.000 0.000
#> SRR1338468 1 0.7067 0.5056 0.552 0.000 0.160 0.288
#> SRR1394428 2 0.4948 -0.0453 0.000 0.560 0.000 0.440
#> SRR1431104 4 0.5750 -0.0873 0.000 0.440 0.028 0.532
#> SRR1082128 4 0.4817 0.2589 0.000 0.388 0.000 0.612
#> SRR1078212 3 0.0000 0.8142 0.000 0.000 1.000 0.000
#> SRR1458401 4 0.7806 -0.1726 0.396 0.100 0.040 0.464
#> SRR1447281 1 0.0188 0.8301 0.996 0.000 0.000 0.004
#> SRR1339258 2 0.4907 0.2237 0.000 0.580 0.000 0.420
#> SRR1105106 2 0.4843 0.2594 0.000 0.604 0.000 0.396
#> SRR1105130 2 0.0000 0.6853 0.000 1.000 0.000 0.000
#> SRR1419039 1 0.0921 0.8254 0.972 0.000 0.000 0.028
#> SRR1079213 3 0.0000 0.8142 0.000 0.000 1.000 0.000
#> SRR1309745 2 0.1022 0.6758 0.000 0.968 0.000 0.032
#> SRR1079408 1 0.4948 0.7299 0.776 0.000 0.124 0.100
#> SRR1445550 2 0.6462 0.2511 0.000 0.580 0.088 0.332
#> SRR820026 3 0.6770 0.4587 0.000 0.140 0.592 0.268
#> SRR1353686 3 0.6727 0.4581 0.096 0.000 0.520 0.384
#> SRR1475466 1 0.0000 0.8304 1.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.8142 0.000 0.000 1.000 0.000
#> SRR1479826 1 0.6968 0.4000 0.492 0.000 0.116 0.392
#> SRR1479450 1 0.8075 0.1894 0.436 0.100 0.056 0.408
#> SRR1094097 1 0.0000 0.8304 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.6853 0.000 1.000 0.000 0.000
#> SRR1433989 1 0.0000 0.8304 1.000 0.000 0.000 0.000
#> SRR1077159 4 0.7147 0.2143 0.000 0.216 0.224 0.560
#> SRR1330082 1 0.0921 0.8254 0.972 0.000 0.000 0.028
#> SRR1079874 2 0.7881 0.0736 0.000 0.384 0.320 0.296
#> SRR1387132 2 0.3486 0.5587 0.000 0.812 0.000 0.188
#> SRR1095261 3 0.0188 0.8138 0.000 0.000 0.996 0.004
#> SRR818646 2 0.4790 0.2295 0.000 0.620 0.000 0.380
#> SRR1313991 1 0.0000 0.8304 1.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.6853 0.000 1.000 0.000 0.000
#> SRR1381372 4 0.4661 0.2238 0.000 0.348 0.000 0.652
#> SRR1388257 4 0.4713 0.1190 0.000 0.360 0.000 0.640
#> SRR818139 1 0.0921 0.8254 0.972 0.000 0.000 0.028
#> SRR1078188 2 0.0000 0.6853 0.000 1.000 0.000 0.000
#> SRR1080342 2 0.0000 0.6853 0.000 1.000 0.000 0.000
#> SRR1085358 4 0.6060 0.2106 0.000 0.440 0.044 0.516
#> SRR1473482 1 0.5300 0.6235 0.664 0.000 0.028 0.308
#> SRR1452674 1 0.0000 0.8304 1.000 0.000 0.000 0.000
#> SRR1395874 3 0.6344 0.5513 0.224 0.000 0.648 0.128
#> SRR1382780 1 0.4948 0.7299 0.776 0.000 0.124 0.100
#> SRR1361138 2 0.3569 0.5390 0.000 0.804 0.000 0.196
#> SRR1319242 2 0.1174 0.6743 0.000 0.968 0.020 0.012
#> SRR1084553 2 0.0000 0.6853 0.000 1.000 0.000 0.000
#> SRR1498747 3 0.6821 0.5655 0.152 0.000 0.592 0.256
#> SRR1442213 3 0.5032 0.7150 0.080 0.000 0.764 0.156
#> SRR1343943 2 0.0000 0.6853 0.000 1.000 0.000 0.000
#> SRR1458828 2 0.0000 0.6853 0.000 1.000 0.000 0.000
#> SRR1360280 2 0.4431 0.3461 0.000 0.696 0.000 0.304
#> SRR1474208 3 0.0000 0.8142 0.000 0.000 1.000 0.000
#> SRR1498726 3 0.2198 0.7824 0.000 0.008 0.920 0.072
#> SRR1099857 1 0.6324 0.5217 0.572 0.000 0.072 0.356
#> SRR1329423 4 0.4925 -0.0446 0.000 0.428 0.000 0.572
#> SRR1074430 2 0.0921 0.6777 0.000 0.972 0.000 0.028
#> SRR1485848 2 0.7878 0.0736 0.000 0.384 0.324 0.292
#> SRR1471395 2 0.7665 0.1418 0.000 0.456 0.240 0.304
#> SRR1096198 3 0.1557 0.7977 0.000 0.000 0.944 0.056
#> SRR1323234 1 0.5277 0.6278 0.668 0.000 0.028 0.304
#> SRR1073483 2 0.3219 0.5720 0.000 0.836 0.000 0.164
#> SRR817817 2 0.7921 0.0336 0.000 0.348 0.324 0.328
#> SRR1434070 3 0.1489 0.7889 0.000 0.044 0.952 0.004
#> SRR1100941 3 0.0188 0.8138 0.000 0.000 0.996 0.004
#> SRR1336682 1 0.0336 0.8295 0.992 0.000 0.000 0.008
#> SRR1077211 2 0.2469 0.6174 0.000 0.892 0.000 0.108
#> SRR1389454 1 0.0817 0.8264 0.976 0.000 0.000 0.024
#> SRR1393004 1 0.0000 0.8304 1.000 0.000 0.000 0.000
#> SRR1086369 4 0.4981 0.1029 0.000 0.464 0.000 0.536
#> SRR1447192 1 0.0000 0.8304 1.000 0.000 0.000 0.000
#> SRR1459147 1 0.5220 0.3329 0.568 0.000 0.008 0.424
#> SRR1097929 3 0.5770 0.6601 0.148 0.000 0.712 0.140
#> SRR1075850 3 0.4136 0.7074 0.000 0.016 0.788 0.196
#> SRR1358126 1 0.1211 0.8207 0.960 0.000 0.000 0.040
#> SRR1121009 1 0.3606 0.7577 0.844 0.000 0.132 0.024
#> SRR1321720 4 0.7297 -0.0628 0.356 0.084 0.028 0.532
#> SRR810105 4 0.7875 -0.1639 0.380 0.076 0.064 0.480
#> SRR1489007 2 0.3266 0.5776 0.000 0.832 0.000 0.168
#> SRR1361838 2 0.7665 0.1418 0.000 0.456 0.240 0.304
#> SRR1475086 2 0.0592 0.6812 0.000 0.984 0.000 0.016
#> SRR1468226 2 0.1302 0.6714 0.000 0.956 0.000 0.044
#> SRR1069466 2 0.0817 0.6791 0.000 0.976 0.000 0.024
#> SRR1078114 3 0.1389 0.8008 0.000 0.000 0.952 0.048
#> SRR1319991 2 0.4817 0.3040 0.000 0.612 0.000 0.388
#> SRR1374543 1 0.3266 0.7565 0.832 0.000 0.000 0.168
#> SRR1383237 4 0.5000 -0.1769 0.000 0.496 0.000 0.504
#> SRR1486215 1 0.1211 0.8207 0.960 0.000 0.000 0.040
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.6055 0.4567 0.168 0.000 0.640 0.024 0.168
#> SRR1499584 2 0.0000 0.8575 0.000 1.000 0.000 0.000 0.000
#> SRR815256 2 0.1557 0.8356 0.000 0.940 0.000 0.052 0.008
#> SRR1077996 2 0.0000 0.8575 0.000 1.000 0.000 0.000 0.000
#> SRR1338468 5 0.4929 0.4559 0.340 0.000 0.032 0.004 0.624
#> SRR1394428 5 0.6424 -0.0853 0.000 0.380 0.000 0.176 0.444
#> SRR1431104 4 0.4114 0.6241 0.000 0.176 0.004 0.776 0.044
#> SRR1082128 5 0.5171 0.3663 0.000 0.076 0.000 0.276 0.648
#> SRR1078212 3 0.0000 0.7224 0.000 0.000 1.000 0.000 0.000
#> SRR1458401 5 0.3247 0.6258 0.136 0.016 0.000 0.008 0.840
#> SRR1447281 1 0.0000 0.8858 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.5329 0.4911 0.000 0.336 0.000 0.596 0.068
#> SRR1105106 4 0.5509 0.4004 0.000 0.360 0.000 0.564 0.076
#> SRR1105130 2 0.0000 0.8575 0.000 1.000 0.000 0.000 0.000
#> SRR1419039 1 0.1106 0.8753 0.964 0.000 0.000 0.024 0.012
#> SRR1079213 3 0.0324 0.7220 0.000 0.000 0.992 0.004 0.004
#> SRR1309745 2 0.1205 0.8457 0.000 0.956 0.000 0.040 0.004
#> SRR1079408 1 0.5784 0.4975 0.644 0.000 0.088 0.024 0.244
#> SRR1445550 4 0.6738 0.5810 0.000 0.252 0.176 0.544 0.028
#> SRR820026 3 0.6829 0.0532 0.000 0.092 0.444 0.052 0.412
#> SRR1353686 5 0.6440 0.1589 0.008 0.000 0.224 0.220 0.548
#> SRR1475466 1 0.0000 0.8858 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.7224 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 5 0.4110 0.5758 0.244 0.000 0.008 0.012 0.736
#> SRR1479450 4 0.6406 0.0133 0.084 0.008 0.016 0.476 0.416
#> SRR1094097 1 0.0000 0.8858 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.8575 0.000 1.000 0.000 0.000 0.000
#> SRR1433989 1 0.0000 0.8858 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.4885 0.5210 0.000 0.064 0.048 0.124 0.764
#> SRR1330082 1 0.1106 0.8753 0.964 0.000 0.000 0.024 0.012
#> SRR1079874 4 0.6761 0.4622 0.000 0.140 0.308 0.520 0.032
#> SRR1387132 2 0.5375 0.6084 0.000 0.668 0.000 0.176 0.156
#> SRR1095261 3 0.0162 0.7221 0.000 0.000 0.996 0.004 0.000
#> SRR818646 2 0.6631 0.2749 0.000 0.452 0.000 0.292 0.256
#> SRR1313991 1 0.0000 0.8858 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.8575 0.000 1.000 0.000 0.000 0.000
#> SRR1381372 4 0.5264 0.1691 0.000 0.052 0.000 0.556 0.392
#> SRR1388257 4 0.4589 0.4345 0.000 0.064 0.000 0.724 0.212
#> SRR818139 1 0.1106 0.8753 0.964 0.000 0.000 0.024 0.012
#> SRR1078188 2 0.0000 0.8575 0.000 1.000 0.000 0.000 0.000
#> SRR1080342 2 0.0000 0.8575 0.000 1.000 0.000 0.000 0.000
#> SRR1085358 5 0.5507 0.4395 0.000 0.168 0.016 0.128 0.688
#> SRR1473482 5 0.4074 0.4342 0.364 0.000 0.000 0.000 0.636
#> SRR1452674 1 0.0000 0.8858 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 3 0.6307 0.3112 0.100 0.000 0.548 0.024 0.328
#> SRR1382780 1 0.5784 0.4975 0.644 0.000 0.088 0.024 0.244
#> SRR1361138 2 0.5472 0.5973 0.000 0.656 0.000 0.156 0.188
#> SRR1319242 2 0.2072 0.8281 0.000 0.928 0.016 0.020 0.036
#> SRR1084553 2 0.0000 0.8575 0.000 1.000 0.000 0.000 0.000
#> SRR1498747 5 0.5884 0.1906 0.072 0.000 0.324 0.020 0.584
#> SRR1442213 3 0.6154 0.4291 0.016 0.000 0.568 0.108 0.308
#> SRR1343943 2 0.0000 0.8575 0.000 1.000 0.000 0.000 0.000
#> SRR1458828 2 0.0000 0.8575 0.000 1.000 0.000 0.000 0.000
#> SRR1360280 2 0.5732 0.5584 0.000 0.624 0.000 0.184 0.192
#> SRR1474208 3 0.0000 0.7224 0.000 0.000 1.000 0.000 0.000
#> SRR1498726 3 0.4443 0.5147 0.000 0.016 0.744 0.212 0.028
#> SRR1099857 5 0.4147 0.4990 0.316 0.000 0.008 0.000 0.676
#> SRR1329423 4 0.4258 0.6152 0.000 0.160 0.000 0.768 0.072
#> SRR1074430 2 0.0510 0.8542 0.000 0.984 0.000 0.016 0.000
#> SRR1485848 4 0.6640 0.3965 0.000 0.120 0.352 0.500 0.028
#> SRR1471395 4 0.6962 0.5531 0.000 0.224 0.224 0.520 0.032
#> SRR1096198 3 0.4129 0.5457 0.000 0.000 0.756 0.204 0.040
#> SRR1323234 5 0.4101 0.4209 0.372 0.000 0.000 0.000 0.628
#> SRR1073483 2 0.4711 0.6844 0.000 0.736 0.000 0.116 0.148
#> SRR817817 4 0.5789 0.3795 0.000 0.088 0.356 0.552 0.004
#> SRR1434070 3 0.0992 0.7056 0.000 0.024 0.968 0.008 0.000
#> SRR1100941 3 0.0162 0.7221 0.000 0.000 0.996 0.004 0.000
#> SRR1336682 1 0.0162 0.8848 0.996 0.000 0.000 0.004 0.000
#> SRR1077211 2 0.3888 0.7378 0.000 0.804 0.000 0.076 0.120
#> SRR1389454 1 0.0807 0.8784 0.976 0.000 0.000 0.012 0.012
#> SRR1393004 1 0.0000 0.8858 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 5 0.5880 0.2156 0.000 0.128 0.000 0.304 0.568
#> SRR1447192 1 0.0000 0.8858 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 4 0.5880 0.2264 0.304 0.000 0.000 0.568 0.128
#> SRR1097929 3 0.5795 0.3958 0.064 0.000 0.604 0.024 0.308
#> SRR1075850 3 0.5076 0.3202 0.000 0.024 0.600 0.012 0.364
#> SRR1358126 1 0.3201 0.7938 0.852 0.000 0.000 0.096 0.052
#> SRR1121009 1 0.5495 0.5990 0.700 0.000 0.124 0.024 0.152
#> SRR1321720 5 0.3776 0.6225 0.128 0.012 0.000 0.040 0.820
#> SRR810105 5 0.3257 0.6230 0.132 0.012 0.008 0.004 0.844
#> SRR1489007 2 0.5222 0.6155 0.000 0.680 0.000 0.196 0.124
#> SRR1361838 4 0.6962 0.5531 0.000 0.224 0.224 0.520 0.032
#> SRR1475086 2 0.2036 0.8090 0.000 0.920 0.000 0.056 0.024
#> SRR1468226 2 0.1357 0.8414 0.000 0.948 0.000 0.048 0.004
#> SRR1069466 2 0.1124 0.8476 0.000 0.960 0.000 0.036 0.004
#> SRR1078114 3 0.3196 0.5804 0.000 0.000 0.804 0.192 0.004
#> SRR1319991 4 0.4946 0.5017 0.000 0.300 0.000 0.648 0.052
#> SRR1374543 1 0.4009 0.4906 0.684 0.000 0.000 0.004 0.312
#> SRR1383237 4 0.4489 0.6047 0.000 0.192 0.000 0.740 0.068
#> SRR1486215 1 0.3201 0.7938 0.852 0.000 0.000 0.096 0.052
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.5813 0.5619 0.056 0.000 0.664 0.052 0.180 0.048
#> SRR1499584 2 0.0260 0.8072 0.000 0.992 0.000 0.008 0.000 0.000
#> SRR815256 2 0.1501 0.7688 0.000 0.924 0.000 0.000 0.000 0.076
#> SRR1077996 2 0.0260 0.8072 0.000 0.992 0.000 0.008 0.000 0.000
#> SRR1338468 5 0.3250 0.6466 0.168 0.000 0.004 0.004 0.808 0.016
#> SRR1394428 6 0.6530 0.3521 0.000 0.216 0.000 0.036 0.296 0.452
#> SRR1431104 4 0.3735 0.6011 0.000 0.036 0.004 0.776 0.004 0.180
#> SRR1082128 5 0.5270 -0.1039 0.000 0.020 0.000 0.052 0.476 0.452
#> SRR1078212 3 0.0508 0.7458 0.000 0.000 0.984 0.012 0.004 0.000
#> SRR1458401 5 0.1564 0.6646 0.024 0.000 0.000 0.000 0.936 0.040
#> SRR1447281 1 0.0363 0.8588 0.988 0.000 0.000 0.000 0.012 0.000
#> SRR1339258 6 0.5735 -0.0135 0.000 0.168 0.000 0.388 0.000 0.444
#> SRR1105106 6 0.5771 0.2693 0.000 0.212 0.000 0.252 0.004 0.532
#> SRR1105130 2 0.0458 0.8058 0.000 0.984 0.000 0.000 0.000 0.016
#> SRR1419039 1 0.0725 0.8539 0.976 0.000 0.000 0.012 0.000 0.012
#> SRR1079213 3 0.0291 0.7448 0.000 0.000 0.992 0.004 0.004 0.000
#> SRR1309745 2 0.1858 0.7691 0.000 0.912 0.000 0.012 0.000 0.076
#> SRR1079408 1 0.7495 0.2262 0.432 0.000 0.156 0.056 0.296 0.060
#> SRR1445550 4 0.3528 0.7249 0.000 0.092 0.084 0.816 0.000 0.008
#> SRR820026 5 0.7589 0.2821 0.000 0.076 0.304 0.072 0.432 0.116
#> SRR1353686 5 0.4910 0.3832 0.000 0.000 0.084 0.284 0.628 0.004
#> SRR1475466 1 0.0363 0.8588 0.988 0.000 0.000 0.000 0.012 0.000
#> SRR1096315 3 0.0405 0.7459 0.000 0.000 0.988 0.008 0.004 0.000
#> SRR1479826 5 0.2876 0.6733 0.080 0.000 0.000 0.004 0.860 0.056
#> SRR1479450 4 0.4371 0.5348 0.024 0.004 0.012 0.716 0.236 0.008
#> SRR1094097 1 0.0436 0.8580 0.988 0.000 0.000 0.004 0.004 0.004
#> SRR1071737 2 0.0146 0.8075 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1433989 1 0.0551 0.8577 0.984 0.000 0.000 0.008 0.004 0.004
#> SRR1077159 5 0.4542 0.4907 0.000 0.012 0.012 0.044 0.716 0.216
#> SRR1330082 1 0.0725 0.8539 0.976 0.000 0.000 0.012 0.000 0.012
#> SRR1079874 4 0.3396 0.7345 0.000 0.072 0.116 0.812 0.000 0.000
#> SRR1387132 2 0.6553 -0.0198 0.000 0.436 0.000 0.092 0.096 0.376
#> SRR1095261 3 0.1219 0.7336 0.000 0.000 0.948 0.048 0.004 0.000
#> SRR818646 6 0.6613 0.3348 0.000 0.264 0.000 0.068 0.172 0.496
#> SRR1313991 1 0.0436 0.8580 0.988 0.000 0.000 0.004 0.004 0.004
#> SRR1363718 2 0.0146 0.8078 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1381372 6 0.3307 0.4452 0.000 0.008 0.000 0.064 0.096 0.832
#> SRR1388257 6 0.3316 0.4227 0.000 0.008 0.000 0.152 0.028 0.812
#> SRR818139 1 0.0725 0.8539 0.976 0.000 0.000 0.012 0.000 0.012
#> SRR1078188 2 0.0146 0.8075 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1080342 2 0.0146 0.8078 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1085358 5 0.5009 0.4473 0.000 0.032 0.012 0.044 0.684 0.228
#> SRR1473482 5 0.2597 0.6506 0.176 0.000 0.000 0.000 0.824 0.000
#> SRR1452674 1 0.0363 0.8588 0.988 0.000 0.000 0.000 0.012 0.000
#> SRR1395874 3 0.6027 0.3651 0.016 0.000 0.524 0.052 0.356 0.052
#> SRR1382780 1 0.7495 0.2262 0.432 0.000 0.156 0.056 0.296 0.060
#> SRR1361138 2 0.6692 -0.0718 0.000 0.420 0.000 0.084 0.124 0.372
#> SRR1319242 2 0.3467 0.7244 0.000 0.848 0.012 0.048 0.040 0.052
#> SRR1084553 2 0.0260 0.8072 0.000 0.992 0.000 0.008 0.000 0.000
#> SRR1498747 5 0.4225 0.5016 0.004 0.000 0.180 0.016 0.752 0.048
#> SRR1442213 3 0.6372 0.4828 0.000 0.000 0.552 0.072 0.216 0.160
#> SRR1343943 2 0.0260 0.8072 0.000 0.992 0.000 0.008 0.000 0.000
#> SRR1458828 2 0.0146 0.8075 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1360280 6 0.5508 0.1081 0.000 0.388 0.000 0.000 0.132 0.480
#> SRR1474208 3 0.0935 0.7414 0.000 0.000 0.964 0.032 0.004 0.000
#> SRR1498726 4 0.4769 0.3081 0.000 0.012 0.424 0.540 0.008 0.016
#> SRR1099857 5 0.2260 0.6643 0.140 0.000 0.000 0.000 0.860 0.000
#> SRR1329423 4 0.4172 0.4670 0.000 0.040 0.000 0.680 0.000 0.280
#> SRR1074430 2 0.0777 0.8020 0.000 0.972 0.000 0.004 0.000 0.024
#> SRR1485848 4 0.3645 0.7251 0.000 0.064 0.152 0.784 0.000 0.000
#> SRR1471395 4 0.3419 0.7340 0.000 0.084 0.104 0.812 0.000 0.000
#> SRR1096198 4 0.4688 0.3946 0.000 0.000 0.388 0.572 0.028 0.012
#> SRR1323234 5 0.2631 0.6478 0.180 0.000 0.000 0.000 0.820 0.000
#> SRR1073483 2 0.5862 0.1767 0.000 0.524 0.000 0.036 0.096 0.344
#> SRR817817 4 0.3800 0.7159 0.000 0.048 0.168 0.776 0.000 0.008
#> SRR1434070 3 0.2006 0.7082 0.000 0.016 0.916 0.060 0.004 0.004
#> SRR1100941 3 0.1219 0.7336 0.000 0.000 0.948 0.048 0.004 0.000
#> SRR1336682 1 0.0363 0.8588 0.988 0.000 0.000 0.000 0.012 0.000
#> SRR1077211 2 0.5186 0.2916 0.000 0.584 0.000 0.016 0.068 0.332
#> SRR1389454 1 0.0551 0.8574 0.984 0.000 0.000 0.004 0.008 0.004
#> SRR1393004 1 0.0363 0.8588 0.988 0.000 0.000 0.000 0.012 0.000
#> SRR1086369 6 0.5107 0.3159 0.000 0.036 0.000 0.040 0.316 0.608
#> SRR1447192 1 0.0363 0.8588 0.988 0.000 0.000 0.000 0.012 0.000
#> SRR1459147 6 0.6213 0.1870 0.228 0.000 0.004 0.212 0.024 0.532
#> SRR1097929 3 0.5349 0.4931 0.000 0.000 0.612 0.052 0.288 0.048
#> SRR1075850 5 0.5147 0.2370 0.000 0.004 0.424 0.040 0.516 0.016
#> SRR1358126 1 0.3402 0.7572 0.820 0.000 0.000 0.052 0.008 0.120
#> SRR1121009 1 0.7390 0.3593 0.500 0.000 0.188 0.064 0.184 0.064
#> SRR1321720 5 0.2821 0.6183 0.020 0.004 0.000 0.004 0.856 0.116
#> SRR810105 5 0.1334 0.6660 0.020 0.000 0.000 0.000 0.948 0.032
#> SRR1489007 2 0.6808 0.0483 0.000 0.456 0.004 0.120 0.092 0.328
#> SRR1361838 4 0.3419 0.7340 0.000 0.084 0.104 0.812 0.000 0.000
#> SRR1475086 2 0.2906 0.6945 0.000 0.844 0.004 0.132 0.004 0.016
#> SRR1468226 2 0.1075 0.7891 0.000 0.952 0.000 0.000 0.000 0.048
#> SRR1069466 2 0.1745 0.7754 0.000 0.920 0.000 0.012 0.000 0.068
#> SRR1078114 3 0.4315 -0.2805 0.000 0.000 0.492 0.492 0.004 0.012
#> SRR1319991 4 0.4702 0.4702 0.000 0.096 0.004 0.680 0.000 0.220
#> SRR1374543 1 0.3592 0.4738 0.656 0.000 0.000 0.000 0.344 0.000
#> SRR1383237 4 0.4825 0.1398 0.000 0.044 0.004 0.504 0.000 0.448
#> SRR1486215 1 0.3402 0.7572 0.820 0.000 0.000 0.052 0.008 0.120
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["MAD", "skmeans"]
# you can also extract it by
# res = res_list["MAD:skmeans"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'MAD' method.
#> Subgroups are detected by 'skmeans' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.975 0.989 0.5053 0.495 0.495
#> 3 3 0.878 0.861 0.941 0.2857 0.818 0.647
#> 4 4 0.754 0.832 0.894 0.1251 0.852 0.618
#> 5 5 0.778 0.729 0.867 0.0783 0.932 0.755
#> 6 6 0.791 0.728 0.861 0.0453 0.932 0.705
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.993 1.000 0.000
#> SRR1499584 2 0.0000 0.984 0.000 1.000
#> SRR815256 2 0.0000 0.984 0.000 1.000
#> SRR1077996 2 0.0000 0.984 0.000 1.000
#> SRR1338468 1 0.0000 0.993 1.000 0.000
#> SRR1394428 2 0.0000 0.984 0.000 1.000
#> SRR1431104 2 0.0000 0.984 0.000 1.000
#> SRR1082128 2 0.0000 0.984 0.000 1.000
#> SRR1078212 1 0.0000 0.993 1.000 0.000
#> SRR1458401 1 0.4815 0.886 0.896 0.104
#> SRR1447281 1 0.0000 0.993 1.000 0.000
#> SRR1339258 2 0.0000 0.984 0.000 1.000
#> SRR1105106 2 0.0000 0.984 0.000 1.000
#> SRR1105130 2 0.0000 0.984 0.000 1.000
#> SRR1419039 1 0.0000 0.993 1.000 0.000
#> SRR1079213 1 0.0000 0.993 1.000 0.000
#> SRR1309745 2 0.0000 0.984 0.000 1.000
#> SRR1079408 1 0.0000 0.993 1.000 0.000
#> SRR1445550 2 0.0000 0.984 0.000 1.000
#> SRR820026 2 0.0376 0.981 0.004 0.996
#> SRR1353686 1 0.0000 0.993 1.000 0.000
#> SRR1475466 1 0.0000 0.993 1.000 0.000
#> SRR1096315 1 0.0000 0.993 1.000 0.000
#> SRR1479826 1 0.0000 0.993 1.000 0.000
#> SRR1479450 1 0.4815 0.886 0.896 0.104
#> SRR1094097 1 0.0000 0.993 1.000 0.000
#> SRR1071737 2 0.0000 0.984 0.000 1.000
#> SRR1433989 1 0.0000 0.993 1.000 0.000
#> SRR1077159 2 0.9087 0.537 0.324 0.676
#> SRR1330082 1 0.0000 0.993 1.000 0.000
#> SRR1079874 2 0.0000 0.984 0.000 1.000
#> SRR1387132 2 0.0000 0.984 0.000 1.000
#> SRR1095261 1 0.0000 0.993 1.000 0.000
#> SRR818646 2 0.0000 0.984 0.000 1.000
#> SRR1313991 1 0.0000 0.993 1.000 0.000
#> SRR1363718 2 0.0000 0.984 0.000 1.000
#> SRR1381372 2 0.0000 0.984 0.000 1.000
#> SRR1388257 2 0.0000 0.984 0.000 1.000
#> SRR818139 1 0.0000 0.993 1.000 0.000
#> SRR1078188 2 0.0000 0.984 0.000 1.000
#> SRR1080342 2 0.0000 0.984 0.000 1.000
#> SRR1085358 2 0.0000 0.984 0.000 1.000
#> SRR1473482 1 0.0000 0.993 1.000 0.000
#> SRR1452674 1 0.0000 0.993 1.000 0.000
#> SRR1395874 1 0.0000 0.993 1.000 0.000
#> SRR1382780 1 0.0000 0.993 1.000 0.000
#> SRR1361138 2 0.0000 0.984 0.000 1.000
#> SRR1319242 2 0.0000 0.984 0.000 1.000
#> SRR1084553 2 0.0000 0.984 0.000 1.000
#> SRR1498747 1 0.0000 0.993 1.000 0.000
#> SRR1442213 1 0.0000 0.993 1.000 0.000
#> SRR1343943 2 0.0000 0.984 0.000 1.000
#> SRR1458828 2 0.0000 0.984 0.000 1.000
#> SRR1360280 2 0.0000 0.984 0.000 1.000
#> SRR1474208 1 0.2236 0.960 0.964 0.036
#> SRR1498726 2 0.4562 0.887 0.096 0.904
#> SRR1099857 1 0.0000 0.993 1.000 0.000
#> SRR1329423 2 0.0000 0.984 0.000 1.000
#> SRR1074430 2 0.0000 0.984 0.000 1.000
#> SRR1485848 2 0.0000 0.984 0.000 1.000
#> SRR1471395 2 0.0000 0.984 0.000 1.000
#> SRR1096198 1 0.0000 0.993 1.000 0.000
#> SRR1323234 1 0.0000 0.993 1.000 0.000
#> SRR1073483 2 0.0000 0.984 0.000 1.000
#> SRR817817 2 0.0000 0.984 0.000 1.000
#> SRR1434070 2 0.0000 0.984 0.000 1.000
#> SRR1100941 1 0.0000 0.993 1.000 0.000
#> SRR1336682 1 0.0000 0.993 1.000 0.000
#> SRR1077211 2 0.0000 0.984 0.000 1.000
#> SRR1389454 1 0.0000 0.993 1.000 0.000
#> SRR1393004 1 0.0000 0.993 1.000 0.000
#> SRR1086369 2 0.0000 0.984 0.000 1.000
#> SRR1447192 1 0.0000 0.993 1.000 0.000
#> SRR1459147 1 0.0000 0.993 1.000 0.000
#> SRR1097929 1 0.0000 0.993 1.000 0.000
#> SRR1075850 2 0.8763 0.594 0.296 0.704
#> SRR1358126 1 0.0000 0.993 1.000 0.000
#> SRR1121009 1 0.0000 0.993 1.000 0.000
#> SRR1321720 1 0.2043 0.964 0.968 0.032
#> SRR810105 1 0.0000 0.993 1.000 0.000
#> SRR1489007 2 0.0000 0.984 0.000 1.000
#> SRR1361838 2 0.0000 0.984 0.000 1.000
#> SRR1475086 2 0.0000 0.984 0.000 1.000
#> SRR1468226 2 0.0000 0.984 0.000 1.000
#> SRR1069466 2 0.0000 0.984 0.000 1.000
#> SRR1078114 1 0.0000 0.993 1.000 0.000
#> SRR1319991 2 0.0000 0.984 0.000 1.000
#> SRR1374543 1 0.0000 0.993 1.000 0.000
#> SRR1383237 2 0.0000 0.984 0.000 1.000
#> SRR1486215 1 0.0000 0.993 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 1 0.5859 0.564 0.656 0.000 0.344
#> SRR1499584 2 0.0000 0.952 0.000 1.000 0.000
#> SRR815256 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1077996 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1338468 1 0.0424 0.938 0.992 0.000 0.008
#> SRR1394428 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1431104 2 0.1031 0.928 0.000 0.976 0.024
#> SRR1082128 2 0.0592 0.939 0.012 0.988 0.000
#> SRR1078212 3 0.0000 0.858 0.000 0.000 1.000
#> SRR1458401 1 0.0424 0.936 0.992 0.008 0.000
#> SRR1447281 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1339258 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1105106 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1105130 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1419039 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1079213 3 0.0000 0.858 0.000 0.000 1.000
#> SRR1309745 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1079408 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1445550 2 0.6299 -0.123 0.000 0.524 0.476
#> SRR820026 3 0.2537 0.811 0.000 0.080 0.920
#> SRR1353686 3 0.5988 0.402 0.368 0.000 0.632
#> SRR1475466 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1096315 3 0.0000 0.858 0.000 0.000 1.000
#> SRR1479826 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1479450 1 0.2187 0.901 0.948 0.024 0.028
#> SRR1094097 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1071737 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1433989 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1077159 2 0.6855 0.459 0.032 0.652 0.316
#> SRR1330082 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1079874 3 0.5678 0.613 0.000 0.316 0.684
#> SRR1387132 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1095261 3 0.0000 0.858 0.000 0.000 1.000
#> SRR818646 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1313991 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1363718 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1381372 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1388257 2 0.0000 0.952 0.000 1.000 0.000
#> SRR818139 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1078188 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1080342 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1085358 2 0.5678 0.505 0.000 0.684 0.316
#> SRR1473482 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1452674 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1395874 1 0.5859 0.564 0.656 0.000 0.344
#> SRR1382780 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1361138 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1319242 2 0.5733 0.491 0.000 0.676 0.324
#> SRR1084553 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1498747 1 0.5678 0.604 0.684 0.000 0.316
#> SRR1442213 1 0.5760 0.587 0.672 0.000 0.328
#> SRR1343943 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1458828 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1360280 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1474208 3 0.0000 0.858 0.000 0.000 1.000
#> SRR1498726 3 0.0000 0.858 0.000 0.000 1.000
#> SRR1099857 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1329423 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1074430 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1485848 3 0.5678 0.613 0.000 0.316 0.684
#> SRR1471395 3 0.5678 0.613 0.000 0.316 0.684
#> SRR1096198 3 0.0000 0.858 0.000 0.000 1.000
#> SRR1323234 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1073483 2 0.0000 0.952 0.000 1.000 0.000
#> SRR817817 3 0.5678 0.613 0.000 0.316 0.684
#> SRR1434070 3 0.0000 0.858 0.000 0.000 1.000
#> SRR1100941 3 0.0000 0.858 0.000 0.000 1.000
#> SRR1336682 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1077211 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1389454 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1393004 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1086369 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1447192 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1459147 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1097929 1 0.5859 0.564 0.656 0.000 0.344
#> SRR1075850 3 0.0000 0.858 0.000 0.000 1.000
#> SRR1358126 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1121009 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1321720 1 0.0000 0.943 1.000 0.000 0.000
#> SRR810105 1 0.0747 0.932 0.984 0.000 0.016
#> SRR1489007 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1361838 3 0.5678 0.613 0.000 0.316 0.684
#> SRR1475086 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1468226 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1069466 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1078114 3 0.0000 0.858 0.000 0.000 1.000
#> SRR1319991 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1374543 1 0.0000 0.943 1.000 0.000 0.000
#> SRR1383237 2 0.0000 0.952 0.000 1.000 0.000
#> SRR1486215 1 0.0000 0.943 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.3991 0.7733 0.172 0.000 0.808 0.020
#> SRR1499584 2 0.0000 0.9097 0.000 1.000 0.000 0.000
#> SRR815256 2 0.0921 0.9054 0.000 0.972 0.000 0.028
#> SRR1077996 2 0.0000 0.9097 0.000 1.000 0.000 0.000
#> SRR1338468 1 0.3168 0.8582 0.884 0.000 0.056 0.060
#> SRR1394428 2 0.2814 0.8488 0.000 0.868 0.000 0.132
#> SRR1431104 4 0.3539 0.8432 0.004 0.176 0.000 0.820
#> SRR1082128 2 0.3907 0.7899 0.000 0.768 0.000 0.232
#> SRR1078212 3 0.0000 0.8727 0.000 0.000 1.000 0.000
#> SRR1458401 1 0.6123 0.6274 0.676 0.192 0.000 0.132
#> SRR1447281 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1339258 4 0.4072 0.8169 0.000 0.252 0.000 0.748
#> SRR1105106 4 0.4624 0.7008 0.000 0.340 0.000 0.660
#> SRR1105130 2 0.0000 0.9097 0.000 1.000 0.000 0.000
#> SRR1419039 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.8727 0.000 0.000 1.000 0.000
#> SRR1309745 2 0.1022 0.9028 0.000 0.968 0.000 0.032
#> SRR1079408 1 0.1389 0.9027 0.952 0.000 0.000 0.048
#> SRR1445550 4 0.5412 0.8349 0.000 0.168 0.096 0.736
#> SRR820026 3 0.3764 0.7067 0.000 0.172 0.816 0.012
#> SRR1353686 1 0.4839 0.6967 0.764 0.000 0.184 0.052
#> SRR1475466 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.8727 0.000 0.000 1.000 0.000
#> SRR1479826 1 0.1557 0.8999 0.944 0.000 0.000 0.056
#> SRR1479450 1 0.4522 0.5424 0.680 0.000 0.000 0.320
#> SRR1094097 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.9097 0.000 1.000 0.000 0.000
#> SRR1433989 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1077159 2 0.7568 -0.0341 0.000 0.404 0.404 0.192
#> SRR1330082 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1079874 4 0.5556 0.7832 0.000 0.092 0.188 0.720
#> SRR1387132 2 0.2011 0.8805 0.000 0.920 0.000 0.080
#> SRR1095261 3 0.0000 0.8727 0.000 0.000 1.000 0.000
#> SRR818646 2 0.3726 0.8055 0.000 0.788 0.000 0.212
#> SRR1313991 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.9097 0.000 1.000 0.000 0.000
#> SRR1381372 2 0.3764 0.8023 0.000 0.784 0.000 0.216
#> SRR1388257 4 0.3764 0.6759 0.000 0.216 0.000 0.784
#> SRR818139 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.9097 0.000 1.000 0.000 0.000
#> SRR1080342 2 0.0000 0.9097 0.000 1.000 0.000 0.000
#> SRR1085358 2 0.4669 0.7746 0.000 0.780 0.052 0.168
#> SRR1473482 1 0.1792 0.8949 0.932 0.000 0.000 0.068
#> SRR1452674 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1395874 3 0.6007 0.4655 0.340 0.000 0.604 0.056
#> SRR1382780 1 0.1389 0.9027 0.952 0.000 0.000 0.048
#> SRR1361138 2 0.1557 0.9005 0.000 0.944 0.000 0.056
#> SRR1319242 2 0.1389 0.8800 0.000 0.952 0.048 0.000
#> SRR1084553 2 0.0000 0.9097 0.000 1.000 0.000 0.000
#> SRR1498747 3 0.4410 0.7837 0.128 0.000 0.808 0.064
#> SRR1442213 3 0.4257 0.7830 0.140 0.000 0.812 0.048
#> SRR1343943 2 0.0000 0.9097 0.000 1.000 0.000 0.000
#> SRR1458828 2 0.0000 0.9097 0.000 1.000 0.000 0.000
#> SRR1360280 2 0.2868 0.8499 0.000 0.864 0.000 0.136
#> SRR1474208 3 0.0000 0.8727 0.000 0.000 1.000 0.000
#> SRR1498726 3 0.0336 0.8692 0.000 0.000 0.992 0.008
#> SRR1099857 1 0.1792 0.8949 0.932 0.000 0.000 0.068
#> SRR1329423 4 0.3718 0.8417 0.012 0.168 0.000 0.820
#> SRR1074430 2 0.0469 0.9087 0.000 0.988 0.000 0.012
#> SRR1485848 4 0.5535 0.7784 0.000 0.088 0.192 0.720
#> SRR1471395 4 0.5677 0.8183 0.000 0.140 0.140 0.720
#> SRR1096198 3 0.3324 0.7628 0.012 0.000 0.852 0.136
#> SRR1323234 1 0.1792 0.8949 0.932 0.000 0.000 0.068
#> SRR1073483 2 0.1211 0.9035 0.000 0.960 0.000 0.040
#> SRR817817 4 0.5473 0.7770 0.000 0.084 0.192 0.724
#> SRR1434070 3 0.0000 0.8727 0.000 0.000 1.000 0.000
#> SRR1100941 3 0.0000 0.8727 0.000 0.000 1.000 0.000
#> SRR1336682 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1077211 2 0.1716 0.8899 0.000 0.936 0.000 0.064
#> SRR1389454 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1086369 2 0.3801 0.7998 0.000 0.780 0.000 0.220
#> SRR1447192 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1459147 1 0.4977 0.1397 0.540 0.000 0.000 0.460
#> SRR1097929 3 0.4336 0.7856 0.128 0.000 0.812 0.060
#> SRR1075850 3 0.0657 0.8687 0.000 0.004 0.984 0.012
#> SRR1358126 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1121009 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1321720 1 0.3266 0.8246 0.832 0.000 0.000 0.168
#> SRR810105 1 0.6672 0.6012 0.648 0.180 0.008 0.164
#> SRR1489007 2 0.1474 0.8917 0.000 0.948 0.000 0.052
#> SRR1361838 4 0.5674 0.8148 0.000 0.132 0.148 0.720
#> SRR1475086 2 0.0000 0.9097 0.000 1.000 0.000 0.000
#> SRR1468226 2 0.0469 0.9099 0.000 0.988 0.000 0.012
#> SRR1069466 2 0.0469 0.9068 0.000 0.988 0.000 0.012
#> SRR1078114 3 0.2216 0.8086 0.000 0.000 0.908 0.092
#> SRR1319991 4 0.4193 0.7932 0.000 0.268 0.000 0.732
#> SRR1374543 1 0.0000 0.9185 1.000 0.000 0.000 0.000
#> SRR1383237 4 0.3801 0.8294 0.000 0.220 0.000 0.780
#> SRR1486215 1 0.0000 0.9185 1.000 0.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.3523 0.7841 0.096 0.000 0.844 0.012 0.048
#> SRR1499584 2 0.0000 0.9272 0.000 1.000 0.000 0.000 0.000
#> SRR815256 2 0.1872 0.8793 0.000 0.928 0.000 0.020 0.052
#> SRR1077996 2 0.0000 0.9272 0.000 1.000 0.000 0.000 0.000
#> SRR1338468 1 0.5554 0.4508 0.588 0.000 0.056 0.012 0.344
#> SRR1394428 2 0.5223 -0.0249 0.000 0.512 0.000 0.044 0.444
#> SRR1431104 4 0.1750 0.7996 0.000 0.036 0.000 0.936 0.028
#> SRR1082128 5 0.3555 0.5907 0.000 0.052 0.000 0.124 0.824
#> SRR1078212 3 0.0000 0.8517 0.000 0.000 1.000 0.000 0.000
#> SRR1458401 5 0.3154 0.5628 0.148 0.004 0.000 0.012 0.836
#> SRR1447281 1 0.0000 0.8498 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.3647 0.7606 0.000 0.132 0.000 0.816 0.052
#> SRR1105106 4 0.4885 0.5858 0.000 0.276 0.000 0.668 0.056
#> SRR1105130 2 0.0000 0.9272 0.000 1.000 0.000 0.000 0.000
#> SRR1419039 1 0.0000 0.8498 1.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.8517 0.000 0.000 1.000 0.000 0.000
#> SRR1309745 2 0.1124 0.9102 0.000 0.960 0.000 0.036 0.004
#> SRR1079408 1 0.3081 0.7382 0.832 0.000 0.000 0.012 0.156
#> SRR1445550 4 0.3051 0.8091 0.000 0.076 0.060 0.864 0.000
#> SRR820026 3 0.3976 0.6390 0.000 0.216 0.760 0.004 0.020
#> SRR1353686 1 0.7390 0.3609 0.524 0.000 0.136 0.108 0.232
#> SRR1475466 1 0.0000 0.8498 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.8517 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 1 0.4574 0.3998 0.576 0.000 0.000 0.012 0.412
#> SRR1479450 1 0.4161 0.3572 0.608 0.000 0.000 0.392 0.000
#> SRR1094097 1 0.0000 0.8498 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.9272 0.000 1.000 0.000 0.000 0.000
#> SRR1433989 1 0.0000 0.8498 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.2342 0.6271 0.000 0.024 0.040 0.020 0.916
#> SRR1330082 1 0.0000 0.8498 1.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.3035 0.8030 0.000 0.032 0.112 0.856 0.000
#> SRR1387132 2 0.1670 0.8944 0.000 0.936 0.000 0.052 0.012
#> SRR1095261 3 0.0000 0.8517 0.000 0.000 1.000 0.000 0.000
#> SRR818646 5 0.6100 0.2684 0.000 0.368 0.000 0.132 0.500
#> SRR1313991 1 0.0000 0.8498 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.9272 0.000 1.000 0.000 0.000 0.000
#> SRR1381372 5 0.5838 0.3651 0.000 0.336 0.000 0.112 0.552
#> SRR1388257 4 0.5500 0.2447 0.000 0.072 0.000 0.552 0.376
#> SRR818139 1 0.0000 0.8498 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.9272 0.000 1.000 0.000 0.000 0.000
#> SRR1080342 2 0.0000 0.9272 0.000 1.000 0.000 0.000 0.000
#> SRR1085358 5 0.3807 0.6130 0.000 0.176 0.004 0.028 0.792
#> SRR1473482 1 0.4650 0.2893 0.520 0.000 0.000 0.012 0.468
#> SRR1452674 1 0.0000 0.8498 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 3 0.5646 0.6087 0.152 0.000 0.668 0.012 0.168
#> SRR1382780 1 0.3081 0.7382 0.832 0.000 0.000 0.012 0.156
#> SRR1361138 2 0.1915 0.8913 0.000 0.928 0.000 0.040 0.032
#> SRR1319242 2 0.0290 0.9231 0.000 0.992 0.008 0.000 0.000
#> SRR1084553 2 0.0000 0.9272 0.000 1.000 0.000 0.000 0.000
#> SRR1498747 3 0.5121 0.4282 0.020 0.000 0.552 0.012 0.416
#> SRR1442213 3 0.3387 0.7780 0.012 0.000 0.828 0.012 0.148
#> SRR1343943 2 0.0000 0.9272 0.000 1.000 0.000 0.000 0.000
#> SRR1458828 2 0.0000 0.9272 0.000 1.000 0.000 0.000 0.000
#> SRR1360280 2 0.5467 0.0405 0.000 0.524 0.000 0.064 0.412
#> SRR1474208 3 0.0000 0.8517 0.000 0.000 1.000 0.000 0.000
#> SRR1498726 3 0.1043 0.8353 0.000 0.000 0.960 0.040 0.000
#> SRR1099857 5 0.4648 -0.2492 0.464 0.000 0.000 0.012 0.524
#> SRR1329423 4 0.1981 0.7908 0.000 0.028 0.000 0.924 0.048
#> SRR1074430 2 0.0404 0.9242 0.000 0.988 0.000 0.012 0.000
#> SRR1485848 4 0.2920 0.7912 0.000 0.016 0.132 0.852 0.000
#> SRR1471395 4 0.3075 0.8097 0.000 0.048 0.092 0.860 0.000
#> SRR1096198 3 0.4190 0.7030 0.060 0.000 0.768 0.172 0.000
#> SRR1323234 1 0.4653 0.2798 0.516 0.000 0.000 0.012 0.472
#> SRR1073483 2 0.0898 0.9197 0.000 0.972 0.000 0.020 0.008
#> SRR817817 4 0.2561 0.7791 0.000 0.000 0.144 0.856 0.000
#> SRR1434070 3 0.0000 0.8517 0.000 0.000 1.000 0.000 0.000
#> SRR1100941 3 0.0000 0.8517 0.000 0.000 1.000 0.000 0.000
#> SRR1336682 1 0.0000 0.8498 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.1774 0.8800 0.000 0.932 0.000 0.016 0.052
#> SRR1389454 1 0.0000 0.8498 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.8498 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 5 0.5604 0.5039 0.000 0.240 0.000 0.132 0.628
#> SRR1447192 1 0.0000 0.8498 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 1 0.4924 0.5049 0.668 0.000 0.000 0.272 0.060
#> SRR1097929 3 0.3573 0.7653 0.016 0.000 0.816 0.012 0.156
#> SRR1075850 3 0.3807 0.6652 0.000 0.012 0.748 0.000 0.240
#> SRR1358126 1 0.0404 0.8430 0.988 0.000 0.000 0.000 0.012
#> SRR1121009 1 0.1106 0.8309 0.964 0.000 0.000 0.012 0.024
#> SRR1321720 5 0.1830 0.6347 0.068 0.000 0.000 0.008 0.924
#> SRR810105 5 0.2102 0.6304 0.068 0.004 0.000 0.012 0.916
#> SRR1489007 2 0.1557 0.8973 0.000 0.940 0.000 0.052 0.008
#> SRR1361838 4 0.3112 0.8076 0.000 0.044 0.100 0.856 0.000
#> SRR1475086 2 0.0000 0.9272 0.000 1.000 0.000 0.000 0.000
#> SRR1468226 2 0.0865 0.9168 0.000 0.972 0.000 0.024 0.004
#> SRR1069466 2 0.0955 0.9153 0.000 0.968 0.000 0.028 0.004
#> SRR1078114 3 0.2424 0.7690 0.000 0.000 0.868 0.132 0.000
#> SRR1319991 4 0.4113 0.6778 0.000 0.232 0.000 0.740 0.028
#> SRR1374543 1 0.0000 0.8498 1.000 0.000 0.000 0.000 0.000
#> SRR1383237 4 0.3102 0.7789 0.000 0.084 0.000 0.860 0.056
#> SRR1486215 1 0.0404 0.8430 0.988 0.000 0.000 0.000 0.012
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.3979 0.668 0.048 0.000 0.776 0.008 0.160 0.008
#> SRR1499584 2 0.0000 0.928 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR815256 2 0.2527 0.772 0.000 0.832 0.000 0.000 0.000 0.168
#> SRR1077996 2 0.0000 0.928 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1338468 5 0.3674 0.659 0.220 0.000 0.012 0.004 0.756 0.008
#> SRR1394428 6 0.4595 0.635 0.000 0.248 0.000 0.000 0.084 0.668
#> SRR1431104 4 0.2544 0.780 0.000 0.004 0.000 0.852 0.004 0.140
#> SRR1082128 6 0.3485 0.626 0.000 0.004 0.000 0.020 0.204 0.772
#> SRR1078212 3 0.0000 0.783 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1458401 5 0.1908 0.711 0.028 0.000 0.000 0.000 0.916 0.056
#> SRR1447281 1 0.0000 0.890 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.4405 0.663 0.000 0.072 0.000 0.688 0.000 0.240
#> SRR1105106 6 0.5822 0.171 0.000 0.232 0.000 0.276 0.000 0.492
#> SRR1105130 2 0.0146 0.927 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1419039 1 0.0000 0.890 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.783 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1309745 2 0.1092 0.912 0.000 0.960 0.000 0.020 0.000 0.020
#> SRR1079408 1 0.4612 0.286 0.584 0.000 0.012 0.008 0.384 0.012
#> SRR1445550 4 0.1577 0.821 0.000 0.036 0.016 0.940 0.000 0.008
#> SRR820026 3 0.5778 0.505 0.000 0.164 0.656 0.012 0.060 0.108
#> SRR1353686 5 0.6922 0.417 0.248 0.000 0.128 0.144 0.480 0.000
#> SRR1475466 1 0.0000 0.890 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.783 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1479826 5 0.4615 0.531 0.304 0.000 0.004 0.004 0.644 0.044
#> SRR1479450 1 0.3930 0.250 0.576 0.000 0.000 0.420 0.004 0.000
#> SRR1094097 1 0.0000 0.890 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.928 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433989 1 0.0000 0.890 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.3946 0.439 0.000 0.004 0.008 0.004 0.680 0.304
#> SRR1330082 1 0.0000 0.890 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.1464 0.822 0.000 0.016 0.036 0.944 0.004 0.000
#> SRR1387132 2 0.3706 0.748 0.000 0.780 0.000 0.040 0.008 0.172
#> SRR1095261 3 0.0260 0.783 0.000 0.000 0.992 0.008 0.000 0.000
#> SRR818646 6 0.3520 0.731 0.000 0.068 0.000 0.024 0.080 0.828
#> SRR1313991 1 0.0000 0.890 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.928 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1381372 6 0.1785 0.724 0.000 0.048 0.000 0.016 0.008 0.928
#> SRR1388257 6 0.1644 0.668 0.000 0.004 0.000 0.076 0.000 0.920
#> SRR818139 1 0.0000 0.890 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.928 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1080342 2 0.0000 0.928 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1085358 5 0.5447 0.159 0.000 0.104 0.004 0.004 0.548 0.340
#> SRR1473482 5 0.2446 0.727 0.124 0.000 0.000 0.000 0.864 0.012
#> SRR1452674 1 0.0000 0.890 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1395874 3 0.5408 0.270 0.068 0.000 0.512 0.008 0.404 0.008
#> SRR1382780 1 0.4612 0.286 0.584 0.000 0.012 0.008 0.384 0.012
#> SRR1361138 2 0.3273 0.802 0.000 0.824 0.000 0.024 0.016 0.136
#> SRR1319242 2 0.0551 0.920 0.000 0.984 0.008 0.004 0.000 0.004
#> SRR1084553 2 0.0000 0.928 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1498747 5 0.3065 0.577 0.000 0.000 0.172 0.008 0.812 0.008
#> SRR1442213 3 0.4252 0.553 0.000 0.000 0.676 0.008 0.288 0.028
#> SRR1343943 2 0.0000 0.928 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1458828 2 0.0000 0.928 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1360280 6 0.3564 0.647 0.000 0.264 0.000 0.000 0.012 0.724
#> SRR1474208 3 0.0260 0.783 0.000 0.000 0.992 0.008 0.000 0.000
#> SRR1498726 3 0.2261 0.744 0.000 0.000 0.884 0.104 0.008 0.004
#> SRR1099857 5 0.1398 0.727 0.052 0.000 0.000 0.000 0.940 0.008
#> SRR1329423 4 0.3221 0.729 0.004 0.000 0.000 0.772 0.004 0.220
#> SRR1074430 2 0.0520 0.924 0.000 0.984 0.000 0.008 0.000 0.008
#> SRR1485848 4 0.1728 0.807 0.000 0.008 0.064 0.924 0.004 0.000
#> SRR1471395 4 0.1485 0.823 0.000 0.024 0.028 0.944 0.004 0.000
#> SRR1096198 3 0.4918 0.489 0.088 0.000 0.632 0.276 0.004 0.000
#> SRR1323234 5 0.2257 0.726 0.116 0.000 0.000 0.000 0.876 0.008
#> SRR1073483 2 0.2361 0.852 0.000 0.880 0.000 0.012 0.004 0.104
#> SRR817817 4 0.1888 0.812 0.000 0.004 0.068 0.916 0.000 0.012
#> SRR1434070 3 0.0405 0.782 0.000 0.000 0.988 0.008 0.000 0.004
#> SRR1100941 3 0.0260 0.783 0.000 0.000 0.992 0.008 0.000 0.000
#> SRR1336682 1 0.0000 0.890 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.3266 0.598 0.000 0.728 0.000 0.000 0.000 0.272
#> SRR1389454 1 0.0000 0.890 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.890 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1086369 6 0.2325 0.709 0.000 0.008 0.000 0.008 0.100 0.884
#> SRR1447192 1 0.0000 0.890 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1459147 1 0.4766 0.429 0.612 0.000 0.000 0.072 0.000 0.316
#> SRR1097929 3 0.4101 0.478 0.000 0.000 0.632 0.008 0.352 0.008
#> SRR1075850 3 0.4559 0.023 0.000 0.020 0.512 0.008 0.460 0.000
#> SRR1358126 1 0.0547 0.879 0.980 0.000 0.000 0.000 0.000 0.020
#> SRR1121009 1 0.3567 0.690 0.796 0.000 0.016 0.008 0.168 0.012
#> SRR1321720 5 0.3231 0.605 0.016 0.000 0.000 0.000 0.784 0.200
#> SRR810105 5 0.1152 0.706 0.004 0.000 0.000 0.000 0.952 0.044
#> SRR1489007 2 0.3334 0.796 0.000 0.820 0.000 0.040 0.008 0.132
#> SRR1361838 4 0.1478 0.823 0.000 0.020 0.032 0.944 0.004 0.000
#> SRR1475086 2 0.0000 0.928 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1468226 2 0.1765 0.865 0.000 0.904 0.000 0.000 0.000 0.096
#> SRR1069466 2 0.0603 0.922 0.000 0.980 0.000 0.016 0.000 0.004
#> SRR1078114 3 0.2902 0.672 0.000 0.000 0.800 0.196 0.004 0.000
#> SRR1319991 4 0.5147 0.481 0.000 0.236 0.000 0.628 0.004 0.132
#> SRR1374543 1 0.0260 0.885 0.992 0.000 0.000 0.000 0.008 0.000
#> SRR1383237 4 0.4001 0.681 0.000 0.028 0.000 0.708 0.004 0.260
#> SRR1486215 1 0.0363 0.884 0.988 0.000 0.000 0.000 0.000 0.012
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["MAD", "pam"]
# you can also extract it by
# res = res_list["MAD:pam"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'MAD' method.
#> Subgroups are detected by 'pam' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.669 0.914 0.952 0.4751 0.525 0.525
#> 3 3 0.719 0.854 0.930 0.3677 0.724 0.520
#> 4 4 0.644 0.511 0.761 0.1493 0.773 0.460
#> 5 5 0.841 0.851 0.925 0.0765 0.857 0.525
#> 6 6 0.875 0.847 0.929 0.0300 0.974 0.866
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.943 1.000 0.000
#> SRR1499584 2 0.0000 0.951 0.000 1.000
#> SRR815256 2 0.0000 0.951 0.000 1.000
#> SRR1077996 2 0.0000 0.951 0.000 1.000
#> SRR1338468 1 0.7219 0.780 0.800 0.200
#> SRR1394428 2 0.0376 0.949 0.004 0.996
#> SRR1431104 2 0.6343 0.848 0.160 0.840
#> SRR1082128 2 0.0376 0.949 0.004 0.996
#> SRR1078212 1 0.6247 0.815 0.844 0.156
#> SRR1458401 2 0.0376 0.949 0.004 0.996
#> SRR1447281 1 0.3274 0.909 0.940 0.060
#> SRR1339258 2 0.0000 0.951 0.000 1.000
#> SRR1105106 2 0.0000 0.951 0.000 1.000
#> SRR1105130 2 0.0000 0.951 0.000 1.000
#> SRR1419039 1 0.0000 0.943 1.000 0.000
#> SRR1079213 1 0.0000 0.943 1.000 0.000
#> SRR1309745 2 0.0000 0.951 0.000 1.000
#> SRR1079408 1 0.0000 0.943 1.000 0.000
#> SRR1445550 2 0.1843 0.939 0.028 0.972
#> SRR820026 2 0.3584 0.921 0.068 0.932
#> SRR1353686 1 0.3584 0.902 0.932 0.068
#> SRR1475466 1 0.0000 0.943 1.000 0.000
#> SRR1096315 1 0.0000 0.943 1.000 0.000
#> SRR1479826 1 0.6438 0.824 0.836 0.164
#> SRR1479450 2 0.5629 0.871 0.132 0.868
#> SRR1094097 1 0.0000 0.943 1.000 0.000
#> SRR1071737 2 0.0000 0.951 0.000 1.000
#> SRR1433989 1 0.0000 0.943 1.000 0.000
#> SRR1077159 2 0.2043 0.936 0.032 0.968
#> SRR1330082 1 0.0000 0.943 1.000 0.000
#> SRR1079874 2 0.6148 0.855 0.152 0.848
#> SRR1387132 2 0.0000 0.951 0.000 1.000
#> SRR1095261 1 0.9170 0.479 0.668 0.332
#> SRR818646 2 0.0000 0.951 0.000 1.000
#> SRR1313991 1 0.0000 0.943 1.000 0.000
#> SRR1363718 2 0.0000 0.951 0.000 1.000
#> SRR1381372 2 0.0000 0.951 0.000 1.000
#> SRR1388257 2 0.0000 0.951 0.000 1.000
#> SRR818139 1 0.0000 0.943 1.000 0.000
#> SRR1078188 2 0.0000 0.951 0.000 1.000
#> SRR1080342 2 0.0000 0.951 0.000 1.000
#> SRR1085358 2 0.2043 0.936 0.032 0.968
#> SRR1473482 1 0.6343 0.833 0.840 0.160
#> SRR1452674 1 0.0000 0.943 1.000 0.000
#> SRR1395874 2 0.6247 0.852 0.156 0.844
#> SRR1382780 1 0.0000 0.943 1.000 0.000
#> SRR1361138 2 0.0000 0.951 0.000 1.000
#> SRR1319242 2 0.0000 0.951 0.000 1.000
#> SRR1084553 2 0.0000 0.951 0.000 1.000
#> SRR1498747 1 0.1184 0.936 0.984 0.016
#> SRR1442213 1 0.5408 0.851 0.876 0.124
#> SRR1343943 2 0.0000 0.951 0.000 1.000
#> SRR1458828 2 0.0000 0.951 0.000 1.000
#> SRR1360280 2 0.0000 0.951 0.000 1.000
#> SRR1474208 2 0.6887 0.829 0.184 0.816
#> SRR1498726 2 0.6887 0.829 0.184 0.816
#> SRR1099857 2 0.4022 0.912 0.080 0.920
#> SRR1329423 2 0.0672 0.947 0.008 0.992
#> SRR1074430 2 0.0000 0.951 0.000 1.000
#> SRR1485848 2 0.6148 0.855 0.152 0.848
#> SRR1471395 2 0.3431 0.920 0.064 0.936
#> SRR1096198 1 0.1184 0.936 0.984 0.016
#> SRR1323234 1 0.6712 0.814 0.824 0.176
#> SRR1073483 2 0.0000 0.951 0.000 1.000
#> SRR817817 2 0.6343 0.848 0.160 0.840
#> SRR1434070 2 0.6247 0.852 0.156 0.844
#> SRR1100941 2 0.6887 0.829 0.184 0.816
#> SRR1336682 1 0.6148 0.832 0.848 0.152
#> SRR1077211 2 0.0000 0.951 0.000 1.000
#> SRR1389454 1 0.0000 0.943 1.000 0.000
#> SRR1393004 1 0.0000 0.943 1.000 0.000
#> SRR1086369 2 0.0000 0.951 0.000 1.000
#> SRR1447192 1 0.0000 0.943 1.000 0.000
#> SRR1459147 1 0.0376 0.941 0.996 0.004
#> SRR1097929 2 0.6887 0.829 0.184 0.816
#> SRR1075850 2 0.6887 0.829 0.184 0.816
#> SRR1358126 1 0.0000 0.943 1.000 0.000
#> SRR1121009 1 0.0000 0.943 1.000 0.000
#> SRR1321720 2 0.2043 0.936 0.032 0.968
#> SRR810105 2 0.2043 0.936 0.032 0.968
#> SRR1489007 2 0.0000 0.951 0.000 1.000
#> SRR1361838 2 0.6148 0.855 0.152 0.848
#> SRR1475086 2 0.0000 0.951 0.000 1.000
#> SRR1468226 2 0.0000 0.951 0.000 1.000
#> SRR1069466 2 0.0000 0.951 0.000 1.000
#> SRR1078114 1 0.5519 0.853 0.872 0.128
#> SRR1319991 2 0.0000 0.951 0.000 1.000
#> SRR1374543 1 0.0000 0.943 1.000 0.000
#> SRR1383237 2 0.0938 0.947 0.012 0.988
#> SRR1486215 1 0.0000 0.943 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.1289 0.8881 0.032 0.000 0.968
#> SRR1499584 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR815256 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1077996 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1338468 1 0.7664 0.6661 0.668 0.104 0.228
#> SRR1394428 2 0.1753 0.9049 0.000 0.952 0.048
#> SRR1431104 3 0.4371 0.8491 0.032 0.108 0.860
#> SRR1082128 2 0.0592 0.9338 0.000 0.988 0.012
#> SRR1078212 3 0.0000 0.8983 0.000 0.000 1.000
#> SRR1458401 2 0.7681 0.1591 0.412 0.540 0.048
#> SRR1447281 1 0.0000 0.9172 1.000 0.000 0.000
#> SRR1339258 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1105106 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1105130 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1419039 1 0.0000 0.9172 1.000 0.000 0.000
#> SRR1079213 3 0.0000 0.8983 0.000 0.000 1.000
#> SRR1309745 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1079408 1 0.3038 0.8766 0.896 0.000 0.104
#> SRR1445550 3 0.5327 0.6812 0.000 0.272 0.728
#> SRR820026 2 0.4399 0.7737 0.000 0.812 0.188
#> SRR1353686 3 0.0424 0.8974 0.008 0.000 0.992
#> SRR1475466 1 0.0000 0.9172 1.000 0.000 0.000
#> SRR1096315 3 0.0000 0.8983 0.000 0.000 1.000
#> SRR1479826 1 0.7344 0.6884 0.696 0.204 0.100
#> SRR1479450 3 0.7422 0.4911 0.048 0.344 0.608
#> SRR1094097 1 0.0000 0.9172 1.000 0.000 0.000
#> SRR1071737 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1433989 1 0.4399 0.7380 0.812 0.000 0.188
#> SRR1077159 2 0.2959 0.8577 0.000 0.900 0.100
#> SRR1330082 1 0.0000 0.9172 1.000 0.000 0.000
#> SRR1079874 3 0.3686 0.8344 0.000 0.140 0.860
#> SRR1387132 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1095261 3 0.0000 0.8983 0.000 0.000 1.000
#> SRR818646 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1313991 1 0.0000 0.9172 1.000 0.000 0.000
#> SRR1363718 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1381372 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1388257 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR818139 1 0.0000 0.9172 1.000 0.000 0.000
#> SRR1078188 2 0.1289 0.9180 0.000 0.968 0.032
#> SRR1080342 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1085358 2 0.2959 0.8577 0.000 0.900 0.100
#> SRR1473482 1 0.3539 0.8748 0.888 0.012 0.100
#> SRR1452674 1 0.0000 0.9172 1.000 0.000 0.000
#> SRR1395874 3 0.1411 0.8891 0.000 0.036 0.964
#> SRR1382780 1 0.3038 0.8766 0.896 0.000 0.104
#> SRR1361138 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1319242 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1084553 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1498747 3 0.1964 0.8683 0.056 0.000 0.944
#> SRR1442213 3 0.0000 0.8983 0.000 0.000 1.000
#> SRR1343943 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1458828 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1360280 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1474208 3 0.0000 0.8983 0.000 0.000 1.000
#> SRR1498726 3 0.0237 0.8981 0.000 0.004 0.996
#> SRR1099857 1 0.7515 0.6583 0.680 0.220 0.100
#> SRR1329423 2 0.0747 0.9311 0.016 0.984 0.000
#> SRR1074430 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1485848 3 0.3116 0.8542 0.000 0.108 0.892
#> SRR1471395 2 0.6302 -0.0613 0.000 0.520 0.480
#> SRR1096198 3 0.3896 0.8439 0.128 0.008 0.864
#> SRR1323234 1 0.3539 0.8748 0.888 0.012 0.100
#> SRR1073483 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR817817 3 0.3459 0.8589 0.012 0.096 0.892
#> SRR1434070 3 0.0000 0.8983 0.000 0.000 1.000
#> SRR1100941 3 0.0000 0.8983 0.000 0.000 1.000
#> SRR1336682 1 0.0000 0.9172 1.000 0.000 0.000
#> SRR1077211 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1389454 1 0.0000 0.9172 1.000 0.000 0.000
#> SRR1393004 1 0.0592 0.9139 0.988 0.000 0.012
#> SRR1086369 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1447192 1 0.0000 0.9172 1.000 0.000 0.000
#> SRR1459147 3 0.6483 0.2912 0.452 0.004 0.544
#> SRR1097929 3 0.1031 0.8908 0.000 0.024 0.976
#> SRR1075850 3 0.0000 0.8983 0.000 0.000 1.000
#> SRR1358126 3 0.3686 0.8351 0.140 0.000 0.860
#> SRR1121009 3 0.3116 0.8580 0.108 0.000 0.892
#> SRR1321720 2 0.7681 0.1591 0.412 0.540 0.048
#> SRR810105 2 0.6335 0.6522 0.036 0.724 0.240
#> SRR1489007 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1361838 3 0.3686 0.8344 0.000 0.140 0.860
#> SRR1475086 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1468226 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1069466 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1078114 3 0.2945 0.8636 0.088 0.004 0.908
#> SRR1319991 2 0.0000 0.9417 0.000 1.000 0.000
#> SRR1374543 1 0.2959 0.8784 0.900 0.000 0.100
#> SRR1383237 2 0.1031 0.9251 0.024 0.976 0.000
#> SRR1486215 1 0.0000 0.9172 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.0376 0.82530 0.004 0.004 0.992 0.000
#> SRR1499584 4 0.0000 0.81123 0.000 0.000 0.000 1.000
#> SRR815256 4 0.2589 0.68850 0.000 0.116 0.000 0.884
#> SRR1077996 4 0.0000 0.81123 0.000 0.000 0.000 1.000
#> SRR1338468 2 0.6822 -0.07619 0.412 0.488 0.100 0.000
#> SRR1394428 2 0.0592 0.48724 0.000 0.984 0.000 0.016
#> SRR1431104 3 0.2796 0.77703 0.016 0.092 0.892 0.000
#> SRR1082128 2 0.0469 0.48794 0.000 0.988 0.000 0.012
#> SRR1078212 3 0.0188 0.82623 0.000 0.004 0.996 0.000
#> SRR1458401 2 0.0188 0.48858 0.000 0.996 0.000 0.004
#> SRR1447281 1 0.0000 0.92086 1.000 0.000 0.000 0.000
#> SRR1339258 4 0.1902 0.75824 0.000 0.064 0.004 0.932
#> SRR1105106 4 0.0188 0.80821 0.000 0.000 0.004 0.996
#> SRR1105130 2 0.4985 0.13866 0.000 0.532 0.000 0.468
#> SRR1419039 1 0.0000 0.92086 1.000 0.000 0.000 0.000
#> SRR1079213 3 0.0188 0.82623 0.000 0.004 0.996 0.000
#> SRR1309745 4 0.3610 0.57263 0.000 0.200 0.000 0.800
#> SRR1079408 2 0.6840 -0.11290 0.432 0.468 0.100 0.000
#> SRR1445550 4 0.4961 -0.01514 0.000 0.000 0.448 0.552
#> SRR820026 2 0.2593 0.47589 0.000 0.892 0.104 0.004
#> SRR1353686 3 0.0524 0.82468 0.004 0.008 0.988 0.000
#> SRR1475466 1 0.0000 0.92086 1.000 0.000 0.000 0.000
#> SRR1096315 3 0.0188 0.82623 0.000 0.004 0.996 0.000
#> SRR1479826 2 0.6840 -0.11290 0.432 0.468 0.100 0.000
#> SRR1479450 2 0.4985 0.00953 0.000 0.532 0.468 0.000
#> SRR1094097 1 0.0000 0.92086 1.000 0.000 0.000 0.000
#> SRR1071737 4 0.0000 0.81123 0.000 0.000 0.000 1.000
#> SRR1433989 1 0.0188 0.91772 0.996 0.000 0.004 0.000
#> SRR1077159 2 0.2345 0.47705 0.000 0.900 0.100 0.000
#> SRR1330082 1 0.0000 0.92086 1.000 0.000 0.000 0.000
#> SRR1079874 3 0.2469 0.76972 0.000 0.108 0.892 0.000
#> SRR1387132 2 0.4985 0.13866 0.000 0.532 0.000 0.468
#> SRR1095261 3 0.0188 0.82623 0.000 0.004 0.996 0.000
#> SRR818646 2 0.4985 0.13866 0.000 0.532 0.000 0.468
#> SRR1313991 1 0.0000 0.92086 1.000 0.000 0.000 0.000
#> SRR1363718 4 0.0000 0.81123 0.000 0.000 0.000 1.000
#> SRR1381372 2 0.0707 0.48599 0.000 0.980 0.000 0.020
#> SRR1388257 2 0.4985 0.13866 0.000 0.532 0.000 0.468
#> SRR818139 1 0.0000 0.92086 1.000 0.000 0.000 0.000
#> SRR1078188 4 0.0000 0.81123 0.000 0.000 0.000 1.000
#> SRR1080342 4 0.0000 0.81123 0.000 0.000 0.000 1.000
#> SRR1085358 2 0.2530 0.47749 0.000 0.896 0.100 0.004
#> SRR1473482 2 0.6840 -0.11290 0.432 0.468 0.100 0.000
#> SRR1452674 1 0.0000 0.92086 1.000 0.000 0.000 0.000
#> SRR1395874 3 0.4193 0.60790 0.000 0.268 0.732 0.000
#> SRR1382780 2 0.6840 -0.11290 0.432 0.468 0.100 0.000
#> SRR1361138 2 0.4985 0.13866 0.000 0.532 0.000 0.468
#> SRR1319242 2 0.4981 0.14183 0.000 0.536 0.000 0.464
#> SRR1084553 4 0.0000 0.81123 0.000 0.000 0.000 1.000
#> SRR1498747 3 0.4985 0.31072 0.000 0.468 0.532 0.000
#> SRR1442213 3 0.4428 0.59364 0.004 0.276 0.720 0.000
#> SRR1343943 4 0.0000 0.81123 0.000 0.000 0.000 1.000
#> SRR1458828 4 0.4134 0.48221 0.000 0.260 0.000 0.740
#> SRR1360280 2 0.4985 0.13866 0.000 0.532 0.000 0.468
#> SRR1474208 3 0.0188 0.82623 0.000 0.004 0.996 0.000
#> SRR1498726 3 0.0188 0.82537 0.000 0.004 0.996 0.000
#> SRR1099857 2 0.4155 0.45503 0.072 0.828 0.100 0.000
#> SRR1329423 2 0.7549 0.17233 0.200 0.508 0.004 0.288
#> SRR1074430 2 0.4994 0.11328 0.000 0.520 0.000 0.480
#> SRR1485848 3 0.2469 0.77421 0.000 0.000 0.892 0.108
#> SRR1471395 3 0.7842 -0.18830 0.000 0.264 0.376 0.360
#> SRR1096198 3 0.2654 0.76925 0.108 0.004 0.888 0.000
#> SRR1323234 2 0.6840 -0.11290 0.432 0.468 0.100 0.000
#> SRR1073483 2 0.4985 0.13866 0.000 0.532 0.000 0.468
#> SRR817817 3 0.2408 0.77651 0.000 0.000 0.896 0.104
#> SRR1434070 3 0.0188 0.82623 0.000 0.004 0.996 0.000
#> SRR1100941 3 0.0188 0.82623 0.000 0.004 0.996 0.000
#> SRR1336682 1 0.0000 0.92086 1.000 0.000 0.000 0.000
#> SRR1077211 4 0.4992 -0.07668 0.000 0.476 0.000 0.524
#> SRR1389454 1 0.0000 0.92086 1.000 0.000 0.000 0.000
#> SRR1393004 1 0.0469 0.90910 0.988 0.000 0.012 0.000
#> SRR1086369 2 0.0592 0.48724 0.000 0.984 0.000 0.016
#> SRR1447192 1 0.0000 0.92086 1.000 0.000 0.000 0.000
#> SRR1459147 3 0.4843 0.36471 0.396 0.000 0.604 0.000
#> SRR1097929 2 0.4989 -0.23913 0.000 0.528 0.472 0.000
#> SRR1075850 3 0.4985 0.31072 0.000 0.468 0.532 0.000
#> SRR1358126 1 0.4977 -0.07352 0.540 0.000 0.460 0.000
#> SRR1121009 3 0.4372 0.60760 0.268 0.004 0.728 0.000
#> SRR1321720 2 0.0188 0.48858 0.000 0.996 0.000 0.004
#> SRR810105 2 0.2345 0.47705 0.000 0.900 0.100 0.000
#> SRR1489007 2 0.4985 0.13866 0.000 0.532 0.000 0.468
#> SRR1361838 3 0.2469 0.77421 0.000 0.000 0.892 0.108
#> SRR1475086 2 0.4985 0.13866 0.000 0.532 0.000 0.468
#> SRR1468226 4 0.0000 0.81123 0.000 0.000 0.000 1.000
#> SRR1069466 2 0.4996 0.10013 0.000 0.516 0.000 0.484
#> SRR1078114 3 0.2480 0.78003 0.088 0.008 0.904 0.000
#> SRR1319991 4 0.5132 -0.00711 0.000 0.448 0.004 0.548
#> SRR1374543 1 0.6811 0.16348 0.496 0.404 0.100 0.000
#> SRR1383237 2 0.7674 0.05697 0.224 0.436 0.000 0.340
#> SRR1486215 1 0.0000 0.92086 1.000 0.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.2866 0.831 0.100 0.004 0.872 0.000 0.024
#> SRR1499584 2 0.0703 0.978 0.000 0.976 0.000 0.024 0.000
#> SRR815256 2 0.1444 0.948 0.000 0.948 0.000 0.012 0.040
#> SRR1077996 2 0.0609 0.976 0.000 0.980 0.000 0.020 0.000
#> SRR1338468 5 0.0771 0.917 0.020 0.000 0.000 0.004 0.976
#> SRR1394428 4 0.4291 0.148 0.000 0.000 0.000 0.536 0.464
#> SRR1431104 3 0.3124 0.821 0.004 0.016 0.844 0.136 0.000
#> SRR1082128 4 0.2329 0.810 0.000 0.000 0.000 0.876 0.124
#> SRR1078212 3 0.0162 0.894 0.000 0.000 0.996 0.000 0.004
#> SRR1458401 5 0.0703 0.916 0.000 0.000 0.000 0.024 0.976
#> SRR1447281 1 0.0000 0.964 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 2 0.2763 0.826 0.000 0.848 0.004 0.148 0.000
#> SRR1105106 2 0.0404 0.971 0.000 0.988 0.000 0.012 0.000
#> SRR1105130 4 0.0000 0.884 0.000 0.000 0.000 1.000 0.000
#> SRR1419039 1 0.0000 0.964 1.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0162 0.894 0.000 0.000 0.996 0.000 0.004
#> SRR1309745 4 0.4256 0.167 0.000 0.436 0.000 0.564 0.000
#> SRR1079408 5 0.0162 0.918 0.000 0.004 0.000 0.000 0.996
#> SRR1445550 2 0.1251 0.945 0.000 0.956 0.008 0.036 0.000
#> SRR820026 5 0.5891 0.318 0.000 0.000 0.120 0.328 0.552
#> SRR1353686 3 0.2295 0.856 0.004 0.008 0.900 0.000 0.088
#> SRR1475466 1 0.0000 0.964 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0162 0.894 0.000 0.000 0.996 0.000 0.004
#> SRR1479826 5 0.0404 0.919 0.012 0.000 0.000 0.000 0.988
#> SRR1479450 4 0.4297 0.512 0.000 0.020 0.288 0.692 0.000
#> SRR1094097 1 0.0000 0.964 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0703 0.978 0.000 0.976 0.000 0.024 0.000
#> SRR1433989 1 0.0510 0.953 0.984 0.000 0.016 0.000 0.000
#> SRR1077159 5 0.0609 0.917 0.000 0.000 0.000 0.020 0.980
#> SRR1330082 1 0.0000 0.964 1.000 0.000 0.000 0.000 0.000
#> SRR1079874 3 0.3061 0.821 0.000 0.020 0.844 0.136 0.000
#> SRR1387132 4 0.0000 0.884 0.000 0.000 0.000 1.000 0.000
#> SRR1095261 3 0.0162 0.894 0.000 0.000 0.996 0.000 0.004
#> SRR818646 4 0.0000 0.884 0.000 0.000 0.000 1.000 0.000
#> SRR1313991 1 0.0000 0.964 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0703 0.978 0.000 0.976 0.000 0.024 0.000
#> SRR1381372 5 0.3177 0.738 0.000 0.000 0.000 0.208 0.792
#> SRR1388257 4 0.0000 0.884 0.000 0.000 0.000 1.000 0.000
#> SRR818139 1 0.0000 0.964 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0703 0.978 0.000 0.976 0.000 0.024 0.000
#> SRR1080342 2 0.0703 0.978 0.000 0.976 0.000 0.024 0.000
#> SRR1085358 5 0.0703 0.916 0.000 0.000 0.000 0.024 0.976
#> SRR1473482 5 0.0609 0.917 0.020 0.000 0.000 0.000 0.980
#> SRR1452674 1 0.0000 0.964 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 5 0.3274 0.710 0.000 0.000 0.220 0.000 0.780
#> SRR1382780 5 0.0162 0.918 0.000 0.004 0.000 0.000 0.996
#> SRR1361138 4 0.0000 0.884 0.000 0.000 0.000 1.000 0.000
#> SRR1319242 4 0.0162 0.883 0.000 0.000 0.000 0.996 0.004
#> SRR1084553 2 0.0703 0.978 0.000 0.976 0.000 0.024 0.000
#> SRR1498747 5 0.0000 0.919 0.000 0.000 0.000 0.000 1.000
#> SRR1442213 5 0.4037 0.620 0.004 0.004 0.288 0.000 0.704
#> SRR1343943 2 0.0703 0.978 0.000 0.976 0.000 0.024 0.000
#> SRR1458828 2 0.0912 0.966 0.000 0.972 0.000 0.012 0.016
#> SRR1360280 4 0.0000 0.884 0.000 0.000 0.000 1.000 0.000
#> SRR1474208 3 0.0162 0.894 0.000 0.000 0.996 0.000 0.004
#> SRR1498726 3 0.0671 0.892 0.000 0.016 0.980 0.004 0.000
#> SRR1099857 5 0.0000 0.919 0.000 0.000 0.000 0.000 1.000
#> SRR1329423 4 0.3154 0.779 0.148 0.012 0.004 0.836 0.000
#> SRR1074430 4 0.0880 0.871 0.000 0.032 0.000 0.968 0.000
#> SRR1485848 3 0.2690 0.815 0.000 0.156 0.844 0.000 0.000
#> SRR1471395 3 0.5684 0.186 0.000 0.080 0.488 0.432 0.000
#> SRR1096198 3 0.3390 0.835 0.060 0.000 0.840 0.100 0.000
#> SRR1323234 5 0.0404 0.919 0.012 0.000 0.000 0.000 0.988
#> SRR1073483 4 0.0000 0.884 0.000 0.000 0.000 1.000 0.000
#> SRR817817 3 0.1270 0.883 0.000 0.052 0.948 0.000 0.000
#> SRR1434070 3 0.0162 0.894 0.000 0.000 0.996 0.000 0.004
#> SRR1100941 3 0.0162 0.894 0.000 0.000 0.996 0.000 0.004
#> SRR1336682 1 0.0000 0.964 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 4 0.2127 0.810 0.000 0.108 0.000 0.892 0.000
#> SRR1389454 1 0.0000 0.964 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0324 0.961 0.992 0.004 0.000 0.000 0.004
#> SRR1086369 4 0.2561 0.791 0.000 0.000 0.000 0.856 0.144
#> SRR1447192 1 0.0000 0.964 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 3 0.4074 0.416 0.364 0.000 0.636 0.000 0.000
#> SRR1097929 5 0.0703 0.913 0.000 0.000 0.024 0.000 0.976
#> SRR1075850 5 0.1270 0.902 0.000 0.000 0.052 0.000 0.948
#> SRR1358126 1 0.1965 0.873 0.904 0.000 0.096 0.000 0.000
#> SRR1121009 1 0.4806 0.427 0.640 0.004 0.328 0.000 0.028
#> SRR1321720 5 0.0703 0.916 0.000 0.000 0.000 0.024 0.976
#> SRR810105 5 0.0609 0.917 0.000 0.000 0.000 0.020 0.980
#> SRR1489007 4 0.0000 0.884 0.000 0.000 0.000 1.000 0.000
#> SRR1361838 3 0.2690 0.815 0.000 0.156 0.844 0.000 0.000
#> SRR1475086 4 0.0000 0.884 0.000 0.000 0.000 1.000 0.000
#> SRR1468226 2 0.0703 0.978 0.000 0.976 0.000 0.024 0.000
#> SRR1069466 4 0.0510 0.879 0.000 0.016 0.000 0.984 0.000
#> SRR1078114 3 0.0404 0.893 0.000 0.012 0.988 0.000 0.000
#> SRR1319991 4 0.1638 0.855 0.000 0.064 0.004 0.932 0.000
#> SRR1374543 5 0.2230 0.843 0.116 0.000 0.000 0.000 0.884
#> SRR1383237 4 0.5060 0.652 0.204 0.104 0.000 0.692 0.000
#> SRR1486215 1 0.0609 0.952 0.980 0.000 0.000 0.000 0.020
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 6 0.0000 0.834 0.000 0.000 0.000 0.000 0.000 1.000
#> SRR1499584 2 0.0000 0.961 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR815256 2 0.0935 0.928 0.000 0.964 0.000 0.004 0.032 0.000
#> SRR1077996 2 0.0000 0.961 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1338468 5 0.0000 0.921 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1394428 4 0.3860 0.139 0.000 0.000 0.000 0.528 0.472 0.000
#> SRR1431104 3 0.0458 0.878 0.000 0.000 0.984 0.016 0.000 0.000
#> SRR1082128 4 0.2003 0.794 0.000 0.000 0.000 0.884 0.116 0.000
#> SRR1078212 3 0.2003 0.873 0.000 0.000 0.884 0.000 0.000 0.116
#> SRR1458401 5 0.0000 0.921 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1447281 1 0.0000 0.972 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1339258 2 0.4302 0.668 0.000 0.728 0.116 0.156 0.000 0.000
#> SRR1105106 2 0.0000 0.961 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1105130 4 0.0000 0.868 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1419039 1 0.0000 0.972 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.2003 0.873 0.000 0.000 0.884 0.000 0.000 0.116
#> SRR1309745 4 0.3607 0.421 0.000 0.348 0.000 0.652 0.000 0.000
#> SRR1079408 6 0.2003 0.858 0.000 0.000 0.000 0.000 0.116 0.884
#> SRR1445550 2 0.2843 0.821 0.000 0.848 0.116 0.036 0.000 0.000
#> SRR820026 5 0.3984 0.407 0.000 0.000 0.016 0.336 0.648 0.000
#> SRR1353686 3 0.0547 0.879 0.000 0.000 0.980 0.000 0.020 0.000
#> SRR1475466 1 0.0000 0.972 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.2003 0.873 0.000 0.000 0.884 0.000 0.000 0.116
#> SRR1479826 5 0.0000 0.921 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1479450 4 0.3647 0.487 0.000 0.000 0.360 0.640 0.000 0.000
#> SRR1094097 1 0.0000 0.972 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.961 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433989 1 0.0000 0.972 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.0000 0.921 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1330082 1 0.0000 0.972 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079874 3 0.0458 0.878 0.000 0.000 0.984 0.016 0.000 0.000
#> SRR1387132 4 0.0000 0.868 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1095261 3 0.2003 0.873 0.000 0.000 0.884 0.000 0.000 0.116
#> SRR818646 4 0.0000 0.868 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1313991 1 0.0000 0.972 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.961 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1381372 5 0.2793 0.683 0.000 0.000 0.000 0.200 0.800 0.000
#> SRR1388257 4 0.0000 0.868 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR818139 1 0.0000 0.972 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.961 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1080342 2 0.0000 0.961 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1085358 5 0.0000 0.921 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1473482 5 0.0000 0.921 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1452674 1 0.0000 0.972 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1395874 5 0.2668 0.701 0.000 0.000 0.168 0.000 0.828 0.004
#> SRR1382780 6 0.2003 0.858 0.000 0.000 0.000 0.000 0.116 0.884
#> SRR1361138 4 0.0000 0.868 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1319242 4 0.0000 0.868 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1084553 2 0.0000 0.961 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1498747 5 0.0000 0.921 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1442213 6 0.1779 0.864 0.000 0.000 0.016 0.000 0.064 0.920
#> SRR1343943 2 0.0000 0.961 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1458828 2 0.0000 0.961 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1360280 4 0.0000 0.868 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1474208 3 0.2003 0.873 0.000 0.000 0.884 0.000 0.000 0.116
#> SRR1498726 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1099857 5 0.0000 0.921 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1329423 4 0.4286 0.666 0.164 0.000 0.108 0.728 0.000 0.000
#> SRR1074430 4 0.0547 0.860 0.000 0.020 0.000 0.980 0.000 0.000
#> SRR1485848 3 0.0458 0.878 0.000 0.016 0.984 0.000 0.000 0.000
#> SRR1471395 3 0.4118 0.358 0.000 0.020 0.628 0.352 0.000 0.000
#> SRR1096198 3 0.1779 0.857 0.064 0.000 0.920 0.016 0.000 0.000
#> SRR1323234 5 0.0000 0.921 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1073483 4 0.0000 0.868 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR817817 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1434070 3 0.2003 0.873 0.000 0.000 0.884 0.000 0.000 0.116
#> SRR1100941 3 0.2003 0.873 0.000 0.000 0.884 0.000 0.000 0.116
#> SRR1336682 1 0.0000 0.972 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077211 4 0.1327 0.831 0.000 0.064 0.000 0.936 0.000 0.000
#> SRR1389454 1 0.0000 0.972 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.3221 0.618 0.736 0.000 0.000 0.000 0.000 0.264
#> SRR1086369 4 0.2260 0.771 0.000 0.000 0.000 0.860 0.140 0.000
#> SRR1447192 1 0.0000 0.972 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1459147 3 0.3578 0.487 0.340 0.000 0.660 0.000 0.000 0.000
#> SRR1097929 6 0.3428 0.562 0.000 0.000 0.000 0.000 0.304 0.696
#> SRR1075850 5 0.0363 0.911 0.000 0.000 0.012 0.000 0.988 0.000
#> SRR1358126 1 0.0363 0.960 0.988 0.000 0.012 0.000 0.000 0.000
#> SRR1121009 6 0.1863 0.798 0.104 0.000 0.000 0.000 0.000 0.896
#> SRR1321720 5 0.0000 0.921 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR810105 5 0.0000 0.921 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1489007 4 0.0000 0.868 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1361838 3 0.0547 0.876 0.000 0.020 0.980 0.000 0.000 0.000
#> SRR1475086 4 0.0000 0.868 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1468226 2 0.0000 0.961 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1069466 4 0.0458 0.862 0.000 0.016 0.000 0.984 0.000 0.000
#> SRR1078114 3 0.0363 0.884 0.000 0.000 0.988 0.000 0.000 0.012
#> SRR1319991 4 0.1967 0.819 0.000 0.012 0.084 0.904 0.000 0.000
#> SRR1374543 5 0.1951 0.827 0.076 0.000 0.000 0.000 0.908 0.016
#> SRR1383237 4 0.6068 0.492 0.244 0.096 0.080 0.580 0.000 0.000
#> SRR1486215 1 0.1501 0.903 0.924 0.000 0.000 0.000 0.000 0.076
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["MAD", "mclust"]
# you can also extract it by
# res = res_list["MAD:mclust"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'MAD' method.
#> Subgroups are detected by 'mclust' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.428 0.736 0.875 0.4256 0.615 0.615
#> 3 3 0.479 0.369 0.677 0.3316 0.654 0.503
#> 4 4 0.512 0.604 0.740 0.1638 0.754 0.504
#> 5 5 0.898 0.895 0.952 0.1880 0.823 0.502
#> 6 6 0.839 0.798 0.889 0.0429 0.954 0.795
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 5
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0672 0.830 0.992 0.008
#> SRR1499584 2 0.0672 0.927 0.008 0.992
#> SRR815256 2 0.0672 0.927 0.008 0.992
#> SRR1077996 2 0.0672 0.927 0.008 0.992
#> SRR1338468 1 0.0672 0.830 0.992 0.008
#> SRR1394428 1 0.9998 0.253 0.508 0.492
#> SRR1431104 1 0.4815 0.805 0.896 0.104
#> SRR1082128 1 0.9998 0.253 0.508 0.492
#> SRR1078212 1 0.0672 0.830 0.992 0.008
#> SRR1458401 1 0.9710 0.385 0.600 0.400
#> SRR1447281 1 0.0672 0.824 0.992 0.008
#> SRR1339258 1 0.4815 0.805 0.896 0.104
#> SRR1105106 2 0.8081 0.621 0.248 0.752
#> SRR1105130 2 0.0672 0.927 0.008 0.992
#> SRR1419039 1 0.0672 0.824 0.992 0.008
#> SRR1079213 1 0.0672 0.830 0.992 0.008
#> SRR1309745 2 0.0672 0.927 0.008 0.992
#> SRR1079408 1 0.0672 0.830 0.992 0.008
#> SRR1445550 1 0.4815 0.805 0.896 0.104
#> SRR820026 1 0.9998 0.253 0.508 0.492
#> SRR1353686 1 0.0672 0.830 0.992 0.008
#> SRR1475466 1 0.0672 0.824 0.992 0.008
#> SRR1096315 1 0.0672 0.830 0.992 0.008
#> SRR1479826 1 0.7883 0.657 0.764 0.236
#> SRR1479450 1 0.0672 0.830 0.992 0.008
#> SRR1094097 1 0.0672 0.824 0.992 0.008
#> SRR1071737 2 0.6438 0.758 0.164 0.836
#> SRR1433989 1 0.0672 0.824 0.992 0.008
#> SRR1077159 1 0.9998 0.253 0.508 0.492
#> SRR1330082 1 0.0672 0.824 0.992 0.008
#> SRR1079874 1 0.4815 0.805 0.896 0.104
#> SRR1387132 2 0.1184 0.921 0.016 0.984
#> SRR1095261 1 0.4690 0.807 0.900 0.100
#> SRR818646 1 0.9998 0.253 0.508 0.492
#> SRR1313991 1 0.0672 0.824 0.992 0.008
#> SRR1363718 2 0.0672 0.927 0.008 0.992
#> SRR1381372 1 0.9988 0.284 0.520 0.480
#> SRR1388257 1 0.9983 0.295 0.524 0.476
#> SRR818139 1 0.0672 0.824 0.992 0.008
#> SRR1078188 2 0.8661 0.522 0.288 0.712
#> SRR1080342 2 0.0672 0.927 0.008 0.992
#> SRR1085358 1 0.9998 0.253 0.508 0.492
#> SRR1473482 1 0.8327 0.621 0.736 0.264
#> SRR1452674 1 0.0672 0.824 0.992 0.008
#> SRR1395874 1 0.0672 0.830 0.992 0.008
#> SRR1382780 1 0.0672 0.830 0.992 0.008
#> SRR1361138 2 0.8661 0.522 0.288 0.712
#> SRR1319242 1 0.9998 0.253 0.508 0.492
#> SRR1084553 2 0.0672 0.927 0.008 0.992
#> SRR1498747 1 0.0938 0.829 0.988 0.012
#> SRR1442213 1 0.0672 0.830 0.992 0.008
#> SRR1343943 2 0.0672 0.927 0.008 0.992
#> SRR1458828 2 0.0672 0.927 0.008 0.992
#> SRR1360280 2 0.0672 0.927 0.008 0.992
#> SRR1474208 1 0.4815 0.805 0.896 0.104
#> SRR1498726 1 0.4815 0.805 0.896 0.104
#> SRR1099857 1 0.8207 0.632 0.744 0.256
#> SRR1329423 1 0.4815 0.805 0.896 0.104
#> SRR1074430 2 0.0672 0.927 0.008 0.992
#> SRR1485848 1 0.4815 0.805 0.896 0.104
#> SRR1471395 1 0.4815 0.805 0.896 0.104
#> SRR1096198 1 0.0672 0.830 0.992 0.008
#> SRR1323234 1 0.8207 0.632 0.744 0.256
#> SRR1073483 2 0.0672 0.927 0.008 0.992
#> SRR817817 1 0.4815 0.805 0.896 0.104
#> SRR1434070 1 0.4815 0.805 0.896 0.104
#> SRR1100941 1 0.4815 0.805 0.896 0.104
#> SRR1336682 1 0.0672 0.824 0.992 0.008
#> SRR1077211 2 0.0672 0.927 0.008 0.992
#> SRR1389454 1 0.0672 0.824 0.992 0.008
#> SRR1393004 1 0.0376 0.829 0.996 0.004
#> SRR1086369 1 0.9998 0.253 0.508 0.492
#> SRR1447192 1 0.0672 0.824 0.992 0.008
#> SRR1459147 1 0.0672 0.830 0.992 0.008
#> SRR1097929 1 0.0938 0.829 0.988 0.012
#> SRR1075850 1 0.9922 0.362 0.552 0.448
#> SRR1358126 1 0.0376 0.829 0.996 0.004
#> SRR1121009 1 0.0672 0.830 0.992 0.008
#> SRR1321720 1 0.9686 0.390 0.604 0.396
#> SRR810105 1 0.9686 0.390 0.604 0.396
#> SRR1489007 2 0.0672 0.927 0.008 0.992
#> SRR1361838 1 0.4815 0.805 0.896 0.104
#> SRR1475086 1 0.9491 0.468 0.632 0.368
#> SRR1468226 2 0.0672 0.927 0.008 0.992
#> SRR1069466 2 0.0672 0.927 0.008 0.992
#> SRR1078114 1 0.2423 0.824 0.960 0.040
#> SRR1319991 2 0.7815 0.655 0.232 0.768
#> SRR1374543 1 0.0672 0.830 0.992 0.008
#> SRR1383237 1 0.4815 0.805 0.896 0.104
#> SRR1486215 1 0.0672 0.824 0.992 0.008
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 1 0.3879 0.0420 0.848 0.000 0.152
#> SRR1499584 2 0.0000 0.6817 0.000 1.000 0.000
#> SRR815256 2 0.0424 0.6815 0.008 0.992 0.000
#> SRR1077996 2 0.0000 0.6817 0.000 1.000 0.000
#> SRR1338468 1 0.2711 0.2028 0.912 0.000 0.088
#> SRR1394428 2 0.6299 0.3955 0.476 0.524 0.000
#> SRR1431104 1 0.6520 -0.4278 0.508 0.488 0.004
#> SRR1082128 2 0.6299 0.3955 0.476 0.524 0.000
#> SRR1078212 3 0.6291 0.9910 0.468 0.000 0.532
#> SRR1458401 1 0.3192 0.2033 0.888 0.112 0.000
#> SRR1447281 1 0.6274 0.3527 0.544 0.000 0.456
#> SRR1339258 2 0.6299 0.4077 0.476 0.524 0.000
#> SRR1105106 2 0.1289 0.6787 0.032 0.968 0.000
#> SRR1105130 2 0.0000 0.6817 0.000 1.000 0.000
#> SRR1419039 1 0.6274 0.3527 0.544 0.000 0.456
#> SRR1079213 3 0.6291 0.9910 0.468 0.000 0.532
#> SRR1309745 2 0.0424 0.6813 0.008 0.992 0.000
#> SRR1079408 1 0.1411 0.2747 0.964 0.000 0.036
#> SRR1445550 2 0.6509 0.4098 0.472 0.524 0.004
#> SRR820026 2 0.7295 0.3290 0.480 0.492 0.028
#> SRR1353686 1 0.0592 0.2942 0.988 0.012 0.000
#> SRR1475466 1 0.6274 0.3527 0.544 0.000 0.456
#> SRR1096315 3 0.6291 0.9910 0.468 0.000 0.532
#> SRR1479826 1 0.1964 0.2760 0.944 0.056 0.000
#> SRR1479450 1 0.1860 0.2642 0.948 0.052 0.000
#> SRR1094097 1 0.6274 0.3527 0.544 0.000 0.456
#> SRR1071737 2 0.3879 0.6438 0.152 0.848 0.000
#> SRR1433989 1 0.6274 0.3527 0.544 0.000 0.456
#> SRR1077159 2 0.6302 0.3872 0.480 0.520 0.000
#> SRR1330082 1 0.6274 0.3527 0.544 0.000 0.456
#> SRR1079874 1 0.6825 -0.4348 0.500 0.488 0.012
#> SRR1387132 2 0.2711 0.6663 0.088 0.912 0.000
#> SRR1095261 3 0.6291 0.9910 0.468 0.000 0.532
#> SRR818646 2 0.6291 0.4075 0.468 0.532 0.000
#> SRR1313991 1 0.6274 0.3527 0.544 0.000 0.456
#> SRR1363718 2 0.0000 0.6817 0.000 1.000 0.000
#> SRR1381372 2 0.6299 0.3955 0.476 0.524 0.000
#> SRR1388257 2 0.6244 0.4428 0.440 0.560 0.000
#> SRR818139 1 0.6274 0.3527 0.544 0.000 0.456
#> SRR1078188 2 0.6192 0.4625 0.420 0.580 0.000
#> SRR1080342 2 0.0000 0.6817 0.000 1.000 0.000
#> SRR1085358 2 0.6302 0.3872 0.480 0.520 0.000
#> SRR1473482 1 0.1411 0.2911 0.964 0.036 0.000
#> SRR1452674 1 0.6274 0.3527 0.544 0.000 0.456
#> SRR1395874 1 0.3267 0.1439 0.884 0.000 0.116
#> SRR1382780 1 0.1411 0.2747 0.964 0.000 0.036
#> SRR1361138 2 0.5497 0.5403 0.292 0.708 0.000
#> SRR1319242 2 0.6299 0.3955 0.476 0.524 0.000
#> SRR1084553 2 0.0000 0.6817 0.000 1.000 0.000
#> SRR1498747 1 0.2959 0.1794 0.900 0.000 0.100
#> SRR1442213 1 0.2261 0.2347 0.932 0.000 0.068
#> SRR1343943 2 0.0000 0.6817 0.000 1.000 0.000
#> SRR1458828 2 0.3816 0.6443 0.148 0.852 0.000
#> SRR1360280 2 0.0000 0.6817 0.000 1.000 0.000
#> SRR1474208 3 0.6291 0.9910 0.468 0.000 0.532
#> SRR1498726 1 0.8720 -0.3178 0.480 0.412 0.108
#> SRR1099857 1 0.1411 0.2911 0.964 0.036 0.000
#> SRR1329423 1 0.6307 -0.4244 0.512 0.488 0.000
#> SRR1074430 2 0.0000 0.6817 0.000 1.000 0.000
#> SRR1485848 1 0.6682 -0.4313 0.504 0.488 0.008
#> SRR1471395 1 0.6825 -0.4348 0.500 0.488 0.012
#> SRR1096198 1 0.2261 0.2179 0.932 0.000 0.068
#> SRR1323234 1 0.1411 0.2911 0.964 0.036 0.000
#> SRR1073483 2 0.0000 0.6817 0.000 1.000 0.000
#> SRR817817 1 0.6825 -0.4348 0.500 0.488 0.012
#> SRR1434070 3 0.6822 0.9549 0.480 0.012 0.508
#> SRR1100941 3 0.6295 0.9861 0.472 0.000 0.528
#> SRR1336682 1 0.6215 0.3499 0.572 0.000 0.428
#> SRR1077211 2 0.0000 0.6817 0.000 1.000 0.000
#> SRR1389454 1 0.6274 0.3527 0.544 0.000 0.456
#> SRR1393004 1 0.5431 0.3279 0.716 0.000 0.284
#> SRR1086369 2 0.6299 0.3955 0.476 0.524 0.000
#> SRR1447192 1 0.6274 0.3527 0.544 0.000 0.456
#> SRR1459147 1 0.1031 0.3034 0.976 0.000 0.024
#> SRR1097929 1 0.3619 0.0912 0.864 0.000 0.136
#> SRR1075850 1 0.8334 -0.3589 0.480 0.440 0.080
#> SRR1358126 1 0.3686 0.3057 0.860 0.000 0.140
#> SRR1121009 1 0.1411 0.2747 0.964 0.000 0.036
#> SRR1321720 1 0.2711 0.2411 0.912 0.088 0.000
#> SRR810105 1 0.2711 0.2411 0.912 0.088 0.000
#> SRR1489007 2 0.0000 0.6817 0.000 1.000 0.000
#> SRR1361838 1 0.6825 -0.4348 0.500 0.488 0.012
#> SRR1475086 2 0.6204 0.4589 0.424 0.576 0.000
#> SRR1468226 2 0.0000 0.6817 0.000 1.000 0.000
#> SRR1069466 2 0.0000 0.6817 0.000 1.000 0.000
#> SRR1078114 1 0.6816 -0.9061 0.516 0.012 0.472
#> SRR1319991 2 0.3941 0.6423 0.156 0.844 0.000
#> SRR1374543 1 0.0000 0.2968 1.000 0.000 0.000
#> SRR1383237 2 0.6299 0.4077 0.476 0.524 0.000
#> SRR1486215 1 0.6274 0.3527 0.544 0.000 0.456
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.7669 0.2686 0.236 0.000 0.452 0.312
#> SRR1499584 2 0.0336 0.7779 0.000 0.992 0.008 0.000
#> SRR815256 2 0.0469 0.7793 0.000 0.988 0.012 0.000
#> SRR1077996 2 0.0336 0.7779 0.000 0.992 0.008 0.000
#> SRR1338468 3 0.4391 0.6926 0.252 0.000 0.740 0.008
#> SRR1394428 2 0.5991 0.5774 0.064 0.672 0.256 0.008
#> SRR1431104 2 0.7862 0.4811 0.052 0.508 0.096 0.344
#> SRR1082128 2 0.6112 0.5736 0.064 0.668 0.256 0.012
#> SRR1078212 4 0.4977 0.7076 0.000 0.000 0.460 0.540
#> SRR1458401 3 0.6192 0.6617 0.248 0.080 0.664 0.008
#> SRR1447281 1 0.0000 0.8637 1.000 0.000 0.000 0.000
#> SRR1339258 2 0.7863 0.4961 0.064 0.520 0.084 0.332
#> SRR1105106 2 0.0376 0.7803 0.000 0.992 0.004 0.004
#> SRR1105130 2 0.0188 0.7790 0.000 0.996 0.004 0.000
#> SRR1419039 1 0.0000 0.8637 1.000 0.000 0.000 0.000
#> SRR1079213 4 0.4977 0.7076 0.000 0.000 0.460 0.540
#> SRR1309745 2 0.0188 0.7790 0.000 0.996 0.004 0.000
#> SRR1079408 3 0.4624 0.6383 0.340 0.000 0.660 0.000
#> SRR1445550 2 0.7677 0.4861 0.048 0.512 0.084 0.356
#> SRR820026 2 0.6519 0.5514 0.064 0.652 0.256 0.028
#> SRR1353686 3 0.6988 0.6137 0.268 0.112 0.604 0.016
#> SRR1475466 1 0.0000 0.8637 1.000 0.000 0.000 0.000
#> SRR1096315 4 0.4977 0.7076 0.000 0.000 0.460 0.540
#> SRR1479826 3 0.4277 0.6795 0.280 0.000 0.720 0.000
#> SRR1479450 1 0.8949 -0.3423 0.400 0.184 0.340 0.076
#> SRR1094097 1 0.0000 0.8637 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.1151 0.7795 0.000 0.968 0.024 0.008
#> SRR1433989 1 0.0000 0.8637 1.000 0.000 0.000 0.000
#> SRR1077159 3 0.6378 0.3089 0.064 0.324 0.604 0.008
#> SRR1330082 1 0.0000 0.8637 1.000 0.000 0.000 0.000
#> SRR1079874 2 0.6537 0.4591 0.000 0.500 0.076 0.424
#> SRR1387132 2 0.1305 0.7784 0.000 0.960 0.036 0.004
#> SRR1095261 4 0.4981 0.7048 0.000 0.000 0.464 0.536
#> SRR818646 2 0.5506 0.6466 0.064 0.740 0.184 0.012
#> SRR1313991 1 0.0000 0.8637 1.000 0.000 0.000 0.000
#> SRR1363718 2 0.0336 0.7779 0.000 0.992 0.008 0.000
#> SRR1381372 2 0.5769 0.6196 0.064 0.712 0.212 0.012
#> SRR1388257 2 0.5767 0.6415 0.064 0.728 0.188 0.020
#> SRR818139 1 0.0000 0.8637 1.000 0.000 0.000 0.000
#> SRR1078188 2 0.2198 0.7656 0.000 0.920 0.072 0.008
#> SRR1080342 2 0.0336 0.7779 0.000 0.992 0.008 0.000
#> SRR1085358 2 0.6578 0.3239 0.064 0.548 0.380 0.008
#> SRR1473482 3 0.5472 0.6476 0.280 0.000 0.676 0.044
#> SRR1452674 1 0.0000 0.8637 1.000 0.000 0.000 0.000
#> SRR1395874 3 0.5810 0.6649 0.256 0.000 0.672 0.072
#> SRR1382780 3 0.4624 0.6383 0.340 0.000 0.660 0.000
#> SRR1361138 2 0.1890 0.7711 0.000 0.936 0.056 0.008
#> SRR1319242 2 0.5610 0.6198 0.060 0.716 0.216 0.008
#> SRR1084553 2 0.0336 0.7779 0.000 0.992 0.008 0.000
#> SRR1498747 3 0.4252 0.6928 0.252 0.000 0.744 0.004
#> SRR1442213 3 0.5619 0.6815 0.268 0.000 0.676 0.056
#> SRR1343943 2 0.0336 0.7779 0.000 0.992 0.008 0.000
#> SRR1458828 2 0.0921 0.7800 0.000 0.972 0.028 0.000
#> SRR1360280 2 0.0000 0.7796 0.000 1.000 0.000 0.000
#> SRR1474208 4 0.4977 0.7076 0.000 0.000 0.460 0.540
#> SRR1498726 3 0.9084 -0.2044 0.064 0.316 0.356 0.264
#> SRR1099857 3 0.5472 0.6476 0.280 0.000 0.676 0.044
#> SRR1329423 2 0.8175 0.4763 0.064 0.508 0.116 0.312
#> SRR1074430 2 0.0336 0.7779 0.000 0.992 0.008 0.000
#> SRR1485848 2 0.6886 0.4426 0.008 0.488 0.080 0.424
#> SRR1471395 2 0.6537 0.4591 0.000 0.500 0.076 0.424
#> SRR1096198 4 0.9254 -0.0688 0.216 0.104 0.264 0.416
#> SRR1323234 3 0.5472 0.6476 0.280 0.000 0.676 0.044
#> SRR1073483 2 0.0000 0.7796 0.000 1.000 0.000 0.000
#> SRR817817 4 0.6560 -0.4742 0.000 0.460 0.076 0.464
#> SRR1434070 3 0.8361 -0.4434 0.060 0.124 0.416 0.400
#> SRR1100941 4 0.5771 0.6320 0.028 0.000 0.460 0.512
#> SRR1336682 1 0.0000 0.8637 1.000 0.000 0.000 0.000
#> SRR1077211 2 0.0188 0.7790 0.000 0.996 0.004 0.000
#> SRR1389454 1 0.0000 0.8637 1.000 0.000 0.000 0.000
#> SRR1393004 1 0.2973 0.6780 0.856 0.000 0.144 0.000
#> SRR1086369 2 0.5769 0.6196 0.064 0.712 0.212 0.012
#> SRR1447192 1 0.0000 0.8637 1.000 0.000 0.000 0.000
#> SRR1459147 1 0.8488 0.2250 0.548 0.112 0.160 0.180
#> SRR1097929 3 0.5168 0.6819 0.248 0.000 0.712 0.040
#> SRR1075850 3 0.8770 -0.0855 0.064 0.324 0.428 0.184
#> SRR1358126 1 0.2469 0.7182 0.892 0.000 0.108 0.000
#> SRR1121009 1 0.4564 0.2241 0.672 0.000 0.328 0.000
#> SRR1321720 3 0.6634 0.6292 0.248 0.112 0.632 0.008
#> SRR810105 3 0.5369 0.6888 0.244 0.036 0.712 0.008
#> SRR1489007 2 0.0000 0.7796 0.000 1.000 0.000 0.000
#> SRR1361838 2 0.6537 0.4591 0.000 0.500 0.076 0.424
#> SRR1475086 2 0.2198 0.7655 0.000 0.920 0.072 0.008
#> SRR1468226 2 0.0336 0.7779 0.000 0.992 0.008 0.000
#> SRR1069466 2 0.0336 0.7779 0.000 0.992 0.008 0.000
#> SRR1078114 3 0.8461 -0.4332 0.076 0.112 0.412 0.400
#> SRR1319991 2 0.1767 0.7761 0.000 0.944 0.044 0.012
#> SRR1374543 3 0.5099 0.5873 0.380 0.000 0.612 0.008
#> SRR1383237 2 0.7863 0.4961 0.064 0.520 0.084 0.332
#> SRR1486215 1 0.0000 0.8637 1.000 0.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.0566 0.949 0.012 0.000 0.984 0.000 0.004
#> SRR1499584 2 0.0000 0.964 0.000 1.000 0.000 0.000 0.000
#> SRR815256 2 0.0000 0.964 0.000 1.000 0.000 0.000 0.000
#> SRR1077996 2 0.0000 0.964 0.000 1.000 0.000 0.000 0.000
#> SRR1338468 5 0.1121 0.873 0.000 0.000 0.044 0.000 0.956
#> SRR1394428 5 0.3662 0.643 0.000 0.252 0.000 0.004 0.744
#> SRR1431104 4 0.0000 0.930 0.000 0.000 0.000 1.000 0.000
#> SRR1082128 5 0.0324 0.890 0.000 0.004 0.000 0.004 0.992
#> SRR1078212 3 0.0000 0.959 0.000 0.000 1.000 0.000 0.000
#> SRR1458401 5 0.0324 0.890 0.000 0.004 0.000 0.004 0.992
#> SRR1447281 1 0.0162 0.967 0.996 0.000 0.000 0.000 0.004
#> SRR1339258 4 0.0000 0.930 0.000 0.000 0.000 1.000 0.000
#> SRR1105106 2 0.3895 0.537 0.000 0.680 0.000 0.320 0.000
#> SRR1105130 2 0.0162 0.964 0.000 0.996 0.000 0.004 0.000
#> SRR1419039 1 0.0000 0.969 1.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.959 0.000 0.000 1.000 0.000 0.000
#> SRR1309745 2 0.0162 0.964 0.000 0.996 0.000 0.004 0.000
#> SRR1079408 5 0.3003 0.744 0.188 0.000 0.000 0.000 0.812
#> SRR1445550 4 0.0000 0.930 0.000 0.000 0.000 1.000 0.000
#> SRR820026 2 0.4418 0.704 0.000 0.756 0.060 0.004 0.180
#> SRR1353686 1 0.4191 0.762 0.796 0.000 0.088 0.008 0.108
#> SRR1475466 1 0.0000 0.969 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.959 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 5 0.0000 0.890 0.000 0.000 0.000 0.000 1.000
#> SRR1479450 1 0.3838 0.605 0.716 0.000 0.000 0.280 0.004
#> SRR1094097 1 0.0000 0.969 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0162 0.964 0.000 0.996 0.000 0.004 0.000
#> SRR1433989 1 0.0000 0.969 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.0324 0.890 0.000 0.004 0.000 0.004 0.992
#> SRR1330082 1 0.0000 0.969 1.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.0162 0.929 0.000 0.000 0.004 0.996 0.000
#> SRR1387132 2 0.0162 0.964 0.000 0.996 0.000 0.004 0.000
#> SRR1095261 3 0.0000 0.959 0.000 0.000 1.000 0.000 0.000
#> SRR818646 2 0.1205 0.935 0.000 0.956 0.000 0.004 0.040
#> SRR1313991 1 0.0000 0.969 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.964 0.000 1.000 0.000 0.000 0.000
#> SRR1381372 2 0.2753 0.835 0.000 0.856 0.000 0.008 0.136
#> SRR1388257 2 0.3454 0.795 0.000 0.816 0.000 0.156 0.028
#> SRR818139 1 0.0000 0.969 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0162 0.964 0.000 0.996 0.000 0.004 0.000
#> SRR1080342 2 0.0000 0.964 0.000 1.000 0.000 0.000 0.000
#> SRR1085358 5 0.0324 0.890 0.000 0.004 0.000 0.004 0.992
#> SRR1473482 5 0.0000 0.890 0.000 0.000 0.000 0.000 1.000
#> SRR1452674 1 0.0162 0.967 0.996 0.000 0.000 0.000 0.004
#> SRR1395874 5 0.3395 0.685 0.000 0.000 0.236 0.000 0.764
#> SRR1382780 5 0.3003 0.744 0.188 0.000 0.000 0.000 0.812
#> SRR1361138 2 0.0162 0.964 0.000 0.996 0.000 0.004 0.000
#> SRR1319242 2 0.0162 0.964 0.000 0.996 0.000 0.004 0.000
#> SRR1084553 2 0.0000 0.964 0.000 1.000 0.000 0.000 0.000
#> SRR1498747 5 0.1043 0.875 0.000 0.000 0.040 0.000 0.960
#> SRR1442213 3 0.5284 0.599 0.236 0.000 0.660 0.000 0.104
#> SRR1343943 2 0.0000 0.964 0.000 1.000 0.000 0.000 0.000
#> SRR1458828 2 0.0162 0.964 0.000 0.996 0.000 0.004 0.000
#> SRR1360280 2 0.0162 0.964 0.000 0.996 0.000 0.004 0.000
#> SRR1474208 3 0.0000 0.959 0.000 0.000 1.000 0.000 0.000
#> SRR1498726 3 0.0290 0.956 0.000 0.000 0.992 0.008 0.000
#> SRR1099857 5 0.0000 0.890 0.000 0.000 0.000 0.000 1.000
#> SRR1329423 4 0.0000 0.930 0.000 0.000 0.000 1.000 0.000
#> SRR1074430 2 0.0000 0.964 0.000 1.000 0.000 0.000 0.000
#> SRR1485848 4 0.0162 0.929 0.000 0.000 0.004 0.996 0.000
#> SRR1471395 4 0.0000 0.930 0.000 0.000 0.000 1.000 0.000
#> SRR1096198 4 0.4074 0.409 0.000 0.000 0.364 0.636 0.000
#> SRR1323234 5 0.0000 0.890 0.000 0.000 0.000 0.000 1.000
#> SRR1073483 2 0.0162 0.964 0.000 0.996 0.000 0.004 0.000
#> SRR817817 4 0.0162 0.929 0.000 0.000 0.004 0.996 0.000
#> SRR1434070 3 0.0290 0.956 0.000 0.000 0.992 0.008 0.000
#> SRR1100941 3 0.0000 0.959 0.000 0.000 1.000 0.000 0.000
#> SRR1336682 1 0.0162 0.967 0.996 0.000 0.000 0.000 0.004
#> SRR1077211 2 0.0000 0.964 0.000 1.000 0.000 0.000 0.000
#> SRR1389454 1 0.0000 0.969 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.969 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 5 0.4321 0.354 0.000 0.396 0.000 0.004 0.600
#> SRR1447192 1 0.0000 0.969 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 4 0.3857 0.537 0.312 0.000 0.000 0.688 0.000
#> SRR1097929 5 0.2471 0.804 0.000 0.000 0.136 0.000 0.864
#> SRR1075850 5 0.3195 0.809 0.000 0.100 0.040 0.004 0.856
#> SRR1358126 1 0.0794 0.946 0.972 0.000 0.000 0.028 0.000
#> SRR1121009 1 0.0162 0.967 0.996 0.000 0.000 0.000 0.004
#> SRR1321720 5 0.0324 0.890 0.000 0.004 0.000 0.004 0.992
#> SRR810105 5 0.0162 0.890 0.000 0.004 0.000 0.000 0.996
#> SRR1489007 2 0.0162 0.964 0.000 0.996 0.000 0.004 0.000
#> SRR1361838 4 0.0000 0.930 0.000 0.000 0.000 1.000 0.000
#> SRR1475086 2 0.0290 0.962 0.000 0.992 0.000 0.008 0.000
#> SRR1468226 2 0.0000 0.964 0.000 1.000 0.000 0.000 0.000
#> SRR1069466 2 0.0000 0.964 0.000 1.000 0.000 0.000 0.000
#> SRR1078114 3 0.0510 0.950 0.000 0.000 0.984 0.016 0.000
#> SRR1319991 2 0.0510 0.957 0.000 0.984 0.000 0.016 0.000
#> SRR1374543 1 0.0510 0.958 0.984 0.000 0.000 0.000 0.016
#> SRR1383237 4 0.0000 0.930 0.000 0.000 0.000 1.000 0.000
#> SRR1486215 1 0.0000 0.969 1.000 0.000 0.000 0.000 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.2546 0.8399 0.012 0.000 0.888 0.000 0.040 0.060
#> SRR1499584 2 0.0260 0.8910 0.000 0.992 0.000 0.000 0.008 0.000
#> SRR815256 2 0.2219 0.8320 0.000 0.864 0.000 0.000 0.136 0.000
#> SRR1077996 2 0.0260 0.8910 0.000 0.992 0.000 0.000 0.008 0.000
#> SRR1338468 6 0.1010 0.8798 0.000 0.000 0.036 0.000 0.004 0.960
#> SRR1394428 5 0.3044 0.6752 0.000 0.116 0.000 0.000 0.836 0.048
#> SRR1431104 4 0.0146 0.9559 0.000 0.000 0.000 0.996 0.004 0.000
#> SRR1082128 5 0.2489 0.6613 0.000 0.012 0.000 0.000 0.860 0.128
#> SRR1078212 3 0.0000 0.8894 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1458401 5 0.3950 0.4085 0.000 0.004 0.000 0.000 0.564 0.432
#> SRR1447281 1 0.0260 0.9275 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1339258 4 0.0146 0.9559 0.000 0.000 0.000 0.996 0.004 0.000
#> SRR1105106 2 0.3163 0.6634 0.000 0.764 0.000 0.232 0.004 0.000
#> SRR1105130 2 0.2178 0.8289 0.000 0.868 0.000 0.000 0.132 0.000
#> SRR1419039 1 0.0000 0.9288 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.8894 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1309745 2 0.0000 0.8912 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079408 6 0.1075 0.8485 0.048 0.000 0.000 0.000 0.000 0.952
#> SRR1445550 4 0.0146 0.9559 0.000 0.000 0.000 0.996 0.004 0.000
#> SRR820026 2 0.6466 0.2450 0.000 0.504 0.056 0.000 0.276 0.164
#> SRR1353686 1 0.7541 0.0757 0.424 0.004 0.288 0.020 0.104 0.160
#> SRR1475466 1 0.0547 0.9227 0.980 0.000 0.000 0.000 0.000 0.020
#> SRR1096315 3 0.0000 0.8894 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1479826 6 0.1663 0.8555 0.000 0.000 0.000 0.000 0.088 0.912
#> SRR1479450 1 0.4515 0.4021 0.608 0.000 0.000 0.356 0.008 0.028
#> SRR1094097 1 0.0260 0.9284 0.992 0.000 0.000 0.000 0.008 0.000
#> SRR1071737 2 0.0458 0.8899 0.000 0.984 0.000 0.000 0.016 0.000
#> SRR1433989 1 0.0260 0.9284 0.992 0.000 0.000 0.000 0.008 0.000
#> SRR1077159 5 0.3953 0.5974 0.000 0.016 0.000 0.000 0.656 0.328
#> SRR1330082 1 0.0260 0.9284 0.992 0.000 0.000 0.000 0.008 0.000
#> SRR1079874 4 0.0405 0.9518 0.000 0.000 0.008 0.988 0.004 0.000
#> SRR1387132 2 0.1444 0.8627 0.000 0.928 0.000 0.000 0.072 0.000
#> SRR1095261 3 0.0000 0.8894 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR818646 5 0.2762 0.6247 0.000 0.196 0.000 0.000 0.804 0.000
#> SRR1313991 1 0.0260 0.9284 0.992 0.000 0.000 0.000 0.008 0.000
#> SRR1363718 2 0.0260 0.8910 0.000 0.992 0.000 0.000 0.008 0.000
#> SRR1381372 5 0.3990 0.4387 0.000 0.304 0.000 0.016 0.676 0.004
#> SRR1388257 2 0.5037 0.5232 0.000 0.640 0.000 0.172 0.188 0.000
#> SRR818139 1 0.0260 0.9284 0.992 0.000 0.000 0.000 0.008 0.000
#> SRR1078188 2 0.1141 0.8735 0.000 0.948 0.000 0.000 0.052 0.000
#> SRR1080342 2 0.0260 0.8910 0.000 0.992 0.000 0.000 0.008 0.000
#> SRR1085358 5 0.3938 0.6010 0.000 0.016 0.000 0.000 0.660 0.324
#> SRR1473482 6 0.1863 0.8392 0.000 0.000 0.000 0.000 0.104 0.896
#> SRR1452674 1 0.0260 0.9275 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1395874 6 0.2823 0.7065 0.000 0.000 0.204 0.000 0.000 0.796
#> SRR1382780 6 0.1075 0.8485 0.048 0.000 0.000 0.000 0.000 0.952
#> SRR1361138 2 0.2697 0.7882 0.000 0.812 0.000 0.000 0.188 0.000
#> SRR1319242 2 0.2823 0.7877 0.000 0.796 0.000 0.000 0.204 0.000
#> SRR1084553 2 0.0146 0.8914 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1498747 6 0.1049 0.8803 0.000 0.000 0.032 0.000 0.008 0.960
#> SRR1442213 3 0.5592 0.1730 0.036 0.000 0.496 0.000 0.060 0.408
#> SRR1343943 2 0.0146 0.8914 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1458828 2 0.0146 0.8916 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1360280 2 0.3175 0.7071 0.000 0.744 0.000 0.000 0.256 0.000
#> SRR1474208 3 0.0000 0.8894 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1498726 3 0.1882 0.8602 0.000 0.008 0.920 0.012 0.060 0.000
#> SRR1099857 6 0.1141 0.8737 0.000 0.000 0.000 0.000 0.052 0.948
#> SRR1329423 4 0.0146 0.9559 0.000 0.000 0.000 0.996 0.004 0.000
#> SRR1074430 2 0.0146 0.8914 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1485848 4 0.0363 0.9472 0.000 0.000 0.012 0.988 0.000 0.000
#> SRR1471395 4 0.0146 0.9559 0.000 0.000 0.000 0.996 0.004 0.000
#> SRR1096198 3 0.4945 0.1157 0.000 0.000 0.484 0.452 0.064 0.000
#> SRR1323234 6 0.1714 0.8531 0.000 0.000 0.000 0.000 0.092 0.908
#> SRR1073483 2 0.2454 0.8081 0.000 0.840 0.000 0.000 0.160 0.000
#> SRR817817 4 0.0363 0.9472 0.000 0.000 0.012 0.988 0.000 0.000
#> SRR1434070 3 0.1218 0.8705 0.000 0.012 0.956 0.004 0.028 0.000
#> SRR1100941 3 0.0000 0.8894 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1336682 1 0.0260 0.9275 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1077211 2 0.2300 0.8192 0.000 0.856 0.000 0.000 0.144 0.000
#> SRR1389454 1 0.0000 0.9288 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.1007 0.9105 0.956 0.000 0.000 0.000 0.000 0.044
#> SRR1086369 5 0.2489 0.6650 0.000 0.128 0.000 0.000 0.860 0.012
#> SRR1447192 1 0.0000 0.9288 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1459147 4 0.3819 0.5106 0.316 0.000 0.000 0.672 0.012 0.000
#> SRR1097929 6 0.1765 0.8403 0.000 0.000 0.096 0.000 0.000 0.904
#> SRR1075850 5 0.5927 0.5482 0.000 0.100 0.060 0.000 0.584 0.256
#> SRR1358126 1 0.0717 0.9203 0.976 0.000 0.000 0.016 0.008 0.000
#> SRR1121009 1 0.1444 0.8929 0.928 0.000 0.000 0.000 0.000 0.072
#> SRR1321720 5 0.3584 0.5178 0.000 0.004 0.000 0.000 0.688 0.308
#> SRR810105 5 0.3993 0.3302 0.000 0.004 0.000 0.000 0.520 0.476
#> SRR1489007 2 0.0260 0.8906 0.000 0.992 0.000 0.000 0.008 0.000
#> SRR1361838 4 0.0146 0.9559 0.000 0.000 0.000 0.996 0.004 0.000
#> SRR1475086 2 0.0405 0.8904 0.000 0.988 0.000 0.004 0.008 0.000
#> SRR1468226 2 0.0260 0.8910 0.000 0.992 0.000 0.000 0.008 0.000
#> SRR1069466 2 0.0000 0.8912 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1078114 3 0.0405 0.8853 0.000 0.000 0.988 0.008 0.004 0.000
#> SRR1319991 2 0.1531 0.8571 0.000 0.928 0.000 0.068 0.004 0.000
#> SRR1374543 1 0.2278 0.8230 0.868 0.000 0.000 0.000 0.004 0.128
#> SRR1383237 4 0.0146 0.9559 0.000 0.000 0.000 0.996 0.004 0.000
#> SRR1486215 1 0.0000 0.9288 1.000 0.000 0.000 0.000 0.000 0.000
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["MAD", "NMF"]
# you can also extract it by
# res = res_list["MAD:NMF"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'MAD' method.
#> Subgroups are detected by 'NMF' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.999 0.970 0.986 0.5028 0.497 0.497
#> 3 3 0.680 0.786 0.885 0.2980 0.794 0.612
#> 4 4 0.715 0.755 0.875 0.1260 0.830 0.575
#> 5 5 0.705 0.693 0.847 0.0631 0.884 0.620
#> 6 6 0.719 0.654 0.819 0.0517 0.883 0.541
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.982 1.000 0.000
#> SRR1499584 2 0.0000 0.989 0.000 1.000
#> SRR815256 2 0.0000 0.989 0.000 1.000
#> SRR1077996 2 0.0000 0.989 0.000 1.000
#> SRR1338468 1 0.0000 0.982 1.000 0.000
#> SRR1394428 2 0.0000 0.989 0.000 1.000
#> SRR1431104 2 0.2603 0.950 0.044 0.956
#> SRR1082128 2 0.3274 0.933 0.060 0.940
#> SRR1078212 1 0.0000 0.982 1.000 0.000
#> SRR1458401 1 0.7299 0.755 0.796 0.204
#> SRR1447281 1 0.0000 0.982 1.000 0.000
#> SRR1339258 2 0.0000 0.989 0.000 1.000
#> SRR1105106 2 0.0000 0.989 0.000 1.000
#> SRR1105130 2 0.0000 0.989 0.000 1.000
#> SRR1419039 1 0.0000 0.982 1.000 0.000
#> SRR1079213 1 0.0000 0.982 1.000 0.000
#> SRR1309745 2 0.0000 0.989 0.000 1.000
#> SRR1079408 1 0.0000 0.982 1.000 0.000
#> SRR1445550 2 0.0000 0.989 0.000 1.000
#> SRR820026 2 0.0000 0.989 0.000 1.000
#> SRR1353686 1 0.0000 0.982 1.000 0.000
#> SRR1475466 1 0.0000 0.982 1.000 0.000
#> SRR1096315 1 0.0000 0.982 1.000 0.000
#> SRR1479826 1 0.0000 0.982 1.000 0.000
#> SRR1479450 1 0.2236 0.953 0.964 0.036
#> SRR1094097 1 0.0000 0.982 1.000 0.000
#> SRR1071737 2 0.0000 0.989 0.000 1.000
#> SRR1433989 1 0.0000 0.982 1.000 0.000
#> SRR1077159 2 0.0376 0.986 0.004 0.996
#> SRR1330082 1 0.0000 0.982 1.000 0.000
#> SRR1079874 2 0.0000 0.989 0.000 1.000
#> SRR1387132 2 0.0000 0.989 0.000 1.000
#> SRR1095261 1 0.3733 0.919 0.928 0.072
#> SRR818646 2 0.0000 0.989 0.000 1.000
#> SRR1313991 1 0.0000 0.982 1.000 0.000
#> SRR1363718 2 0.0000 0.989 0.000 1.000
#> SRR1381372 2 0.0938 0.979 0.012 0.988
#> SRR1388257 2 0.0000 0.989 0.000 1.000
#> SRR818139 1 0.0000 0.982 1.000 0.000
#> SRR1078188 2 0.0000 0.989 0.000 1.000
#> SRR1080342 2 0.0000 0.989 0.000 1.000
#> SRR1085358 2 0.0000 0.989 0.000 1.000
#> SRR1473482 1 0.0000 0.982 1.000 0.000
#> SRR1452674 1 0.0000 0.982 1.000 0.000
#> SRR1395874 1 0.0000 0.982 1.000 0.000
#> SRR1382780 1 0.0000 0.982 1.000 0.000
#> SRR1361138 2 0.0000 0.989 0.000 1.000
#> SRR1319242 2 0.0000 0.989 0.000 1.000
#> SRR1084553 2 0.0000 0.989 0.000 1.000
#> SRR1498747 1 0.0000 0.982 1.000 0.000
#> SRR1442213 1 0.0000 0.982 1.000 0.000
#> SRR1343943 2 0.0000 0.989 0.000 1.000
#> SRR1458828 2 0.0000 0.989 0.000 1.000
#> SRR1360280 2 0.0000 0.989 0.000 1.000
#> SRR1474208 1 0.7602 0.728 0.780 0.220
#> SRR1498726 2 0.1184 0.976 0.016 0.984
#> SRR1099857 1 0.0000 0.982 1.000 0.000
#> SRR1329423 2 0.2236 0.958 0.036 0.964
#> SRR1074430 2 0.0000 0.989 0.000 1.000
#> SRR1485848 2 0.0000 0.989 0.000 1.000
#> SRR1471395 2 0.0000 0.989 0.000 1.000
#> SRR1096198 1 0.0000 0.982 1.000 0.000
#> SRR1323234 1 0.0000 0.982 1.000 0.000
#> SRR1073483 2 0.0000 0.989 0.000 1.000
#> SRR817817 2 0.0000 0.989 0.000 1.000
#> SRR1434070 2 0.0000 0.989 0.000 1.000
#> SRR1100941 2 0.9129 0.500 0.328 0.672
#> SRR1336682 1 0.0000 0.982 1.000 0.000
#> SRR1077211 2 0.0000 0.989 0.000 1.000
#> SRR1389454 1 0.0000 0.982 1.000 0.000
#> SRR1393004 1 0.0000 0.982 1.000 0.000
#> SRR1086369 2 0.0000 0.989 0.000 1.000
#> SRR1447192 1 0.0000 0.982 1.000 0.000
#> SRR1459147 1 0.0000 0.982 1.000 0.000
#> SRR1097929 1 0.0000 0.982 1.000 0.000
#> SRR1075850 2 0.0000 0.989 0.000 1.000
#> SRR1358126 1 0.0000 0.982 1.000 0.000
#> SRR1121009 1 0.0000 0.982 1.000 0.000
#> SRR1321720 1 0.4022 0.912 0.920 0.080
#> SRR810105 1 0.5059 0.877 0.888 0.112
#> SRR1489007 2 0.0000 0.989 0.000 1.000
#> SRR1361838 2 0.0000 0.989 0.000 1.000
#> SRR1475086 2 0.0000 0.989 0.000 1.000
#> SRR1468226 2 0.0000 0.989 0.000 1.000
#> SRR1069466 2 0.0000 0.989 0.000 1.000
#> SRR1078114 1 0.0000 0.982 1.000 0.000
#> SRR1319991 2 0.0000 0.989 0.000 1.000
#> SRR1374543 1 0.0000 0.982 1.000 0.000
#> SRR1383237 2 0.0000 0.989 0.000 1.000
#> SRR1486215 1 0.0000 0.982 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 3 0.3619 0.8275 0.136 0.000 0.864
#> SRR1499584 2 0.2537 0.8877 0.000 0.920 0.080
#> SRR815256 2 0.1964 0.8942 0.000 0.944 0.056
#> SRR1077996 2 0.2356 0.8905 0.000 0.928 0.072
#> SRR1338468 1 0.6235 0.3060 0.564 0.000 0.436
#> SRR1394428 2 0.2845 0.8934 0.012 0.920 0.068
#> SRR1431104 2 0.6598 0.2196 0.428 0.564 0.008
#> SRR1082128 1 0.6297 0.4556 0.640 0.352 0.008
#> SRR1078212 3 0.1964 0.8587 0.056 0.000 0.944
#> SRR1458401 1 0.6372 0.6855 0.756 0.176 0.068
#> SRR1447281 1 0.0747 0.8600 0.984 0.000 0.016
#> SRR1339258 2 0.2063 0.8711 0.044 0.948 0.008
#> SRR1105106 2 0.1315 0.8824 0.020 0.972 0.008
#> SRR1105130 2 0.2711 0.8842 0.000 0.912 0.088
#> SRR1419039 1 0.0424 0.8588 0.992 0.000 0.008
#> SRR1079213 3 0.2448 0.8569 0.076 0.000 0.924
#> SRR1309745 2 0.1015 0.8857 0.012 0.980 0.008
#> SRR1079408 1 0.6180 0.3509 0.584 0.000 0.416
#> SRR1445550 2 0.0661 0.8905 0.008 0.988 0.004
#> SRR820026 3 0.3752 0.7530 0.000 0.144 0.856
#> SRR1353686 1 0.2959 0.8309 0.900 0.000 0.100
#> SRR1475466 1 0.2066 0.8522 0.940 0.000 0.060
#> SRR1096315 3 0.2356 0.8574 0.072 0.000 0.928
#> SRR1479826 1 0.2537 0.8438 0.920 0.000 0.080
#> SRR1479450 1 0.3234 0.8377 0.908 0.072 0.020
#> SRR1094097 1 0.1031 0.8607 0.976 0.000 0.024
#> SRR1071737 2 0.3116 0.8733 0.000 0.892 0.108
#> SRR1433989 1 0.2066 0.8522 0.940 0.000 0.060
#> SRR1077159 2 0.5678 0.6121 0.000 0.684 0.316
#> SRR1330082 1 0.1832 0.8407 0.956 0.036 0.008
#> SRR1079874 2 0.1877 0.8920 0.012 0.956 0.032
#> SRR1387132 2 0.1711 0.8772 0.032 0.960 0.008
#> SRR1095261 3 0.1129 0.8519 0.004 0.020 0.976
#> SRR818646 2 0.2866 0.8488 0.076 0.916 0.008
#> SRR1313991 1 0.1411 0.8590 0.964 0.000 0.036
#> SRR1363718 2 0.2066 0.8936 0.000 0.940 0.060
#> SRR1381372 2 0.6672 0.0463 0.472 0.520 0.008
#> SRR1388257 2 0.3213 0.8359 0.092 0.900 0.008
#> SRR818139 1 0.1267 0.8485 0.972 0.024 0.004
#> SRR1078188 2 0.3340 0.8653 0.000 0.880 0.120
#> SRR1080342 2 0.2066 0.8937 0.000 0.940 0.060
#> SRR1085358 2 0.4796 0.7614 0.000 0.780 0.220
#> SRR1473482 1 0.1860 0.8550 0.948 0.000 0.052
#> SRR1452674 1 0.0892 0.8604 0.980 0.000 0.020
#> SRR1395874 3 0.3340 0.8406 0.120 0.000 0.880
#> SRR1382780 1 0.6215 0.3173 0.572 0.000 0.428
#> SRR1361138 2 0.1289 0.8951 0.000 0.968 0.032
#> SRR1319242 3 0.6307 -0.1536 0.000 0.488 0.512
#> SRR1084553 2 0.2796 0.8822 0.000 0.908 0.092
#> SRR1498747 3 0.3482 0.8348 0.128 0.000 0.872
#> SRR1442213 3 0.3551 0.8316 0.132 0.000 0.868
#> SRR1343943 2 0.1964 0.8945 0.000 0.944 0.056
#> SRR1458828 2 0.3192 0.8708 0.000 0.888 0.112
#> SRR1360280 2 0.1170 0.8900 0.008 0.976 0.016
#> SRR1474208 3 0.0747 0.8518 0.000 0.016 0.984
#> SRR1498726 3 0.2066 0.8323 0.000 0.060 0.940
#> SRR1099857 1 0.3192 0.8219 0.888 0.000 0.112
#> SRR1329423 1 0.4861 0.7036 0.800 0.192 0.008
#> SRR1074430 2 0.2165 0.8926 0.000 0.936 0.064
#> SRR1485848 2 0.5810 0.5047 0.000 0.664 0.336
#> SRR1471395 2 0.0661 0.8905 0.008 0.988 0.004
#> SRR1096198 3 0.4062 0.7937 0.164 0.000 0.836
#> SRR1323234 1 0.1643 0.8573 0.956 0.000 0.044
#> SRR1073483 2 0.1860 0.8945 0.000 0.948 0.052
#> SRR817817 2 0.6155 0.4943 0.008 0.664 0.328
#> SRR1434070 3 0.2448 0.8222 0.000 0.076 0.924
#> SRR1100941 3 0.1163 0.8475 0.000 0.028 0.972
#> SRR1336682 1 0.2384 0.8288 0.936 0.056 0.008
#> SRR1077211 2 0.2165 0.8934 0.000 0.936 0.064
#> SRR1389454 1 0.0424 0.8551 0.992 0.000 0.008
#> SRR1393004 1 0.2165 0.8504 0.936 0.000 0.064
#> SRR1086369 2 0.2486 0.8607 0.060 0.932 0.008
#> SRR1447192 1 0.1163 0.8600 0.972 0.000 0.028
#> SRR1459147 1 0.3295 0.7993 0.896 0.096 0.008
#> SRR1097929 3 0.2959 0.8503 0.100 0.000 0.900
#> SRR1075850 3 0.2448 0.8222 0.000 0.076 0.924
#> SRR1358126 1 0.1163 0.8486 0.972 0.028 0.000
#> SRR1121009 1 0.6291 0.2014 0.532 0.000 0.468
#> SRR1321720 1 0.2955 0.8126 0.912 0.080 0.008
#> SRR810105 1 0.6887 0.6915 0.720 0.076 0.204
#> SRR1489007 2 0.2297 0.8913 0.020 0.944 0.036
#> SRR1361838 2 0.1315 0.8926 0.008 0.972 0.020
#> SRR1475086 2 0.2878 0.8803 0.000 0.904 0.096
#> SRR1468226 2 0.2066 0.8936 0.000 0.940 0.060
#> SRR1069466 2 0.0661 0.8886 0.004 0.988 0.008
#> SRR1078114 3 0.3267 0.8428 0.116 0.000 0.884
#> SRR1319991 2 0.1015 0.8857 0.012 0.980 0.008
#> SRR1374543 1 0.1031 0.8605 0.976 0.000 0.024
#> SRR1383237 2 0.2280 0.8663 0.052 0.940 0.008
#> SRR1486215 1 0.1031 0.8605 0.976 0.000 0.024
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 3 0.1474 0.8862 0.052 0.000 0.948 0.000
#> SRR1499584 2 0.2675 0.8107 0.000 0.892 0.008 0.100
#> SRR815256 2 0.0000 0.8323 0.000 1.000 0.000 0.000
#> SRR1077996 2 0.4295 0.6867 0.000 0.752 0.008 0.240
#> SRR1338468 1 0.2466 0.8449 0.900 0.000 0.096 0.004
#> SRR1394428 2 0.0895 0.8259 0.004 0.976 0.000 0.020
#> SRR1431104 4 0.2996 0.8311 0.044 0.064 0.000 0.892
#> SRR1082128 2 0.5459 0.1636 0.432 0.552 0.000 0.016
#> SRR1078212 3 0.0336 0.9000 0.008 0.000 0.992 0.000
#> SRR1458401 1 0.5459 0.1006 0.512 0.476 0.004 0.008
#> SRR1447281 1 0.0188 0.8856 0.996 0.000 0.000 0.004
#> SRR1339258 4 0.1743 0.8314 0.004 0.056 0.000 0.940
#> SRR1105106 4 0.1902 0.8273 0.000 0.064 0.004 0.932
#> SRR1105130 2 0.0000 0.8323 0.000 1.000 0.000 0.000
#> SRR1419039 1 0.0336 0.8849 0.992 0.000 0.000 0.008
#> SRR1079213 3 0.0336 0.9000 0.008 0.000 0.992 0.000
#> SRR1309745 2 0.4830 0.3772 0.000 0.608 0.000 0.392
#> SRR1079408 1 0.2413 0.8649 0.916 0.000 0.064 0.020
#> SRR1445550 4 0.3105 0.8142 0.000 0.120 0.012 0.868
#> SRR820026 2 0.3945 0.6673 0.000 0.780 0.216 0.004
#> SRR1353686 1 0.4123 0.6804 0.772 0.000 0.220 0.008
#> SRR1475466 1 0.0469 0.8852 0.988 0.000 0.012 0.000
#> SRR1096315 3 0.0524 0.9003 0.008 0.000 0.988 0.004
#> SRR1479826 1 0.2519 0.8734 0.924 0.020 0.020 0.036
#> SRR1479450 1 0.5105 0.2092 0.564 0.000 0.004 0.432
#> SRR1094097 1 0.0524 0.8849 0.988 0.000 0.004 0.008
#> SRR1071737 2 0.1545 0.8308 0.000 0.952 0.008 0.040
#> SRR1433989 1 0.0376 0.8855 0.992 0.000 0.004 0.004
#> SRR1077159 2 0.1362 0.8207 0.004 0.964 0.012 0.020
#> SRR1330082 1 0.3710 0.7267 0.804 0.000 0.004 0.192
#> SRR1079874 4 0.4609 0.7977 0.008 0.076 0.104 0.812
#> SRR1387132 2 0.4008 0.6744 0.000 0.756 0.000 0.244
#> SRR1095261 3 0.0657 0.8992 0.004 0.000 0.984 0.012
#> SRR818646 2 0.1488 0.8305 0.012 0.956 0.000 0.032
#> SRR1313991 1 0.0895 0.8822 0.976 0.000 0.004 0.020
#> SRR1363718 2 0.2675 0.8099 0.000 0.892 0.008 0.100
#> SRR1381372 4 0.7836 0.1917 0.288 0.304 0.000 0.408
#> SRR1388257 4 0.2101 0.8089 0.012 0.060 0.000 0.928
#> SRR818139 1 0.1211 0.8734 0.960 0.000 0.000 0.040
#> SRR1078188 2 0.2412 0.8183 0.000 0.908 0.008 0.084
#> SRR1080342 2 0.2480 0.8153 0.000 0.904 0.008 0.088
#> SRR1085358 2 0.1174 0.8225 0.000 0.968 0.020 0.012
#> SRR1473482 1 0.2310 0.8727 0.932 0.032 0.016 0.020
#> SRR1452674 1 0.0188 0.8856 0.996 0.000 0.000 0.004
#> SRR1395874 3 0.3266 0.7695 0.168 0.000 0.832 0.000
#> SRR1382780 1 0.2413 0.8649 0.916 0.000 0.064 0.020
#> SRR1361138 2 0.0336 0.8335 0.000 0.992 0.000 0.008
#> SRR1319242 2 0.3401 0.7529 0.000 0.840 0.152 0.008
#> SRR1084553 2 0.1807 0.8286 0.000 0.940 0.008 0.052
#> SRR1498747 3 0.5463 -0.0370 0.484 0.008 0.504 0.004
#> SRR1442213 3 0.2965 0.8565 0.036 0.000 0.892 0.072
#> SRR1343943 2 0.4482 0.6461 0.000 0.728 0.008 0.264
#> SRR1458828 2 0.0804 0.8336 0.000 0.980 0.008 0.012
#> SRR1360280 2 0.0592 0.8289 0.000 0.984 0.000 0.016
#> SRR1474208 3 0.0657 0.8992 0.004 0.000 0.984 0.012
#> SRR1498726 3 0.0817 0.8908 0.000 0.000 0.976 0.024
#> SRR1099857 1 0.2643 0.8697 0.920 0.028 0.028 0.024
#> SRR1329423 4 0.3404 0.7996 0.104 0.032 0.000 0.864
#> SRR1074430 2 0.0469 0.8337 0.000 0.988 0.000 0.012
#> SRR1485848 4 0.5933 0.3749 0.000 0.040 0.408 0.552
#> SRR1471395 4 0.2831 0.8151 0.000 0.120 0.004 0.876
#> SRR1096198 3 0.3850 0.8067 0.116 0.000 0.840 0.044
#> SRR1323234 1 0.2107 0.8767 0.940 0.016 0.024 0.020
#> SRR1073483 2 0.0188 0.8329 0.000 0.996 0.000 0.004
#> SRR817817 4 0.4011 0.6899 0.000 0.008 0.208 0.784
#> SRR1434070 3 0.1004 0.8889 0.000 0.004 0.972 0.024
#> SRR1100941 3 0.0657 0.8992 0.004 0.000 0.984 0.012
#> SRR1336682 1 0.0469 0.8850 0.988 0.000 0.000 0.012
#> SRR1077211 2 0.0000 0.8323 0.000 1.000 0.000 0.000
#> SRR1389454 1 0.0707 0.8835 0.980 0.000 0.000 0.020
#> SRR1393004 1 0.0592 0.8846 0.984 0.000 0.016 0.000
#> SRR1086369 2 0.1635 0.8151 0.008 0.948 0.000 0.044
#> SRR1447192 1 0.0188 0.8856 0.996 0.000 0.000 0.004
#> SRR1459147 4 0.3311 0.6881 0.172 0.000 0.000 0.828
#> SRR1097929 3 0.1637 0.8775 0.060 0.000 0.940 0.000
#> SRR1075850 2 0.4898 0.3291 0.000 0.584 0.416 0.000
#> SRR1358126 1 0.4677 0.5527 0.680 0.000 0.004 0.316
#> SRR1121009 1 0.4564 0.5024 0.672 0.000 0.328 0.000
#> SRR1321720 1 0.3099 0.8222 0.876 0.104 0.000 0.020
#> SRR810105 2 0.6008 -0.0457 0.464 0.504 0.012 0.020
#> SRR1489007 2 0.3266 0.7659 0.000 0.832 0.000 0.168
#> SRR1361838 4 0.3581 0.8143 0.000 0.116 0.032 0.852
#> SRR1475086 2 0.4086 0.7178 0.000 0.776 0.008 0.216
#> SRR1468226 2 0.1661 0.8296 0.000 0.944 0.004 0.052
#> SRR1069466 2 0.4741 0.5367 0.000 0.668 0.004 0.328
#> SRR1078114 3 0.1388 0.8935 0.012 0.000 0.960 0.028
#> SRR1319991 4 0.3266 0.7733 0.000 0.168 0.000 0.832
#> SRR1374543 1 0.0524 0.8856 0.988 0.000 0.008 0.004
#> SRR1383237 4 0.1488 0.8235 0.012 0.032 0.000 0.956
#> SRR1486215 1 0.2216 0.8517 0.908 0.000 0.000 0.092
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 3 0.1106 0.9009 0.024 0.000 0.964 0.012 0.000
#> SRR1499584 4 0.4276 0.4732 0.000 0.380 0.000 0.616 0.004
#> SRR815256 2 0.1041 0.8109 0.000 0.964 0.000 0.032 0.004
#> SRR1077996 4 0.3430 0.7026 0.000 0.220 0.000 0.776 0.004
#> SRR1338468 1 0.1248 0.8254 0.964 0.004 0.016 0.008 0.008
#> SRR1394428 2 0.1124 0.7992 0.000 0.960 0.000 0.004 0.036
#> SRR1431104 4 0.1628 0.7085 0.056 0.000 0.000 0.936 0.008
#> SRR1082128 2 0.4121 0.5353 0.264 0.720 0.000 0.004 0.012
#> SRR1078212 3 0.0162 0.9153 0.000 0.000 0.996 0.004 0.000
#> SRR1458401 1 0.4538 0.2545 0.540 0.452 0.000 0.008 0.000
#> SRR1447281 1 0.0000 0.8320 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 4 0.4130 0.5212 0.000 0.012 0.000 0.696 0.292
#> SRR1105106 5 0.1792 0.7548 0.000 0.000 0.000 0.084 0.916
#> SRR1105130 2 0.1197 0.8096 0.000 0.952 0.000 0.048 0.000
#> SRR1419039 1 0.0000 0.8320 1.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.9144 0.000 0.000 1.000 0.000 0.000
#> SRR1309745 4 0.4088 0.5183 0.000 0.368 0.000 0.632 0.000
#> SRR1079408 1 0.4091 0.7521 0.828 0.020 0.060 0.012 0.080
#> SRR1445550 4 0.1412 0.7267 0.000 0.008 0.004 0.952 0.036
#> SRR820026 2 0.4661 0.4482 0.000 0.624 0.356 0.004 0.016
#> SRR1353686 1 0.4776 0.3710 0.612 0.000 0.364 0.004 0.020
#> SRR1475466 1 0.0162 0.8313 0.996 0.000 0.000 0.000 0.004
#> SRR1096315 3 0.0162 0.9153 0.000 0.000 0.996 0.004 0.000
#> SRR1479826 1 0.6188 0.5328 0.640 0.084 0.032 0.012 0.232
#> SRR1479450 1 0.4430 0.1814 0.540 0.000 0.000 0.456 0.004
#> SRR1094097 1 0.1041 0.8208 0.964 0.000 0.000 0.032 0.004
#> SRR1071737 2 0.2233 0.7826 0.000 0.892 0.000 0.104 0.004
#> SRR1433989 1 0.1205 0.8171 0.956 0.000 0.000 0.040 0.004
#> SRR1077159 2 0.2381 0.7778 0.008 0.912 0.008 0.012 0.060
#> SRR1330082 1 0.1282 0.8146 0.952 0.000 0.000 0.044 0.004
#> SRR1079874 4 0.1168 0.7258 0.008 0.000 0.032 0.960 0.000
#> SRR1387132 4 0.3366 0.7008 0.000 0.232 0.000 0.768 0.000
#> SRR1095261 3 0.0290 0.9146 0.000 0.000 0.992 0.008 0.000
#> SRR818646 2 0.1012 0.8086 0.000 0.968 0.000 0.020 0.012
#> SRR1313991 1 0.1205 0.8171 0.956 0.000 0.000 0.040 0.004
#> SRR1363718 4 0.4166 0.5385 0.000 0.348 0.000 0.648 0.004
#> SRR1381372 5 0.0324 0.7761 0.004 0.000 0.000 0.004 0.992
#> SRR1388257 5 0.1121 0.7788 0.000 0.000 0.000 0.044 0.956
#> SRR818139 1 0.0566 0.8294 0.984 0.000 0.000 0.004 0.012
#> SRR1078188 2 0.3437 0.7234 0.000 0.808 0.012 0.176 0.004
#> SRR1080342 2 0.4410 0.0609 0.000 0.556 0.000 0.440 0.004
#> SRR1085358 2 0.1412 0.7965 0.000 0.952 0.004 0.008 0.036
#> SRR1473482 1 0.3136 0.7853 0.880 0.064 0.012 0.012 0.032
#> SRR1452674 1 0.0162 0.8313 0.996 0.000 0.000 0.000 0.004
#> SRR1395874 3 0.2873 0.7899 0.120 0.000 0.860 0.020 0.000
#> SRR1382780 1 0.4091 0.7521 0.828 0.020 0.060 0.012 0.080
#> SRR1361138 2 0.2561 0.7488 0.000 0.856 0.000 0.144 0.000
#> SRR1319242 2 0.4763 0.5207 0.000 0.632 0.336 0.032 0.000
#> SRR1084553 2 0.3266 0.6826 0.000 0.796 0.000 0.200 0.004
#> SRR1498747 3 0.5529 0.3182 0.344 0.032 0.600 0.012 0.012
#> SRR1442213 5 0.3895 0.5232 0.004 0.004 0.264 0.000 0.728
#> SRR1343943 4 0.4161 0.4425 0.000 0.392 0.000 0.608 0.000
#> SRR1458828 2 0.1502 0.8074 0.000 0.940 0.000 0.056 0.004
#> SRR1360280 2 0.1942 0.7989 0.000 0.920 0.000 0.012 0.068
#> SRR1474208 3 0.0290 0.9154 0.000 0.000 0.992 0.008 0.000
#> SRR1498726 3 0.0963 0.8988 0.000 0.000 0.964 0.036 0.000
#> SRR1099857 1 0.4684 0.7225 0.792 0.088 0.028 0.012 0.080
#> SRR1329423 4 0.3682 0.6454 0.072 0.000 0.000 0.820 0.108
#> SRR1074430 2 0.1341 0.8078 0.000 0.944 0.000 0.056 0.000
#> SRR1485848 4 0.2424 0.6888 0.000 0.000 0.132 0.868 0.000
#> SRR1471395 4 0.0833 0.7290 0.016 0.004 0.004 0.976 0.000
#> SRR1096198 4 0.6257 0.3649 0.172 0.000 0.272 0.552 0.004
#> SRR1323234 1 0.2570 0.8000 0.908 0.052 0.012 0.012 0.016
#> SRR1073483 2 0.1121 0.8103 0.000 0.956 0.000 0.044 0.000
#> SRR817817 4 0.6657 0.0408 0.000 0.000 0.236 0.424 0.340
#> SRR1434070 3 0.0404 0.9126 0.000 0.000 0.988 0.012 0.000
#> SRR1100941 3 0.0290 0.9146 0.000 0.000 0.992 0.008 0.000
#> SRR1336682 1 0.0000 0.8320 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.1668 0.8116 0.000 0.940 0.000 0.028 0.032
#> SRR1389454 1 0.0510 0.8288 0.984 0.000 0.000 0.000 0.016
#> SRR1393004 1 0.0162 0.8316 0.996 0.000 0.000 0.004 0.000
#> SRR1086369 2 0.3093 0.7057 0.008 0.824 0.000 0.000 0.168
#> SRR1447192 1 0.0000 0.8320 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 5 0.1357 0.7795 0.004 0.000 0.000 0.048 0.948
#> SRR1097929 3 0.1334 0.8941 0.020 0.004 0.960 0.012 0.004
#> SRR1075850 2 0.4473 0.3825 0.000 0.580 0.412 0.000 0.008
#> SRR1358126 5 0.4592 0.5290 0.332 0.000 0.000 0.024 0.644
#> SRR1121009 1 0.4800 0.0798 0.508 0.004 0.476 0.012 0.000
#> SRR1321720 1 0.4843 0.5559 0.676 0.280 0.000 0.008 0.036
#> SRR810105 2 0.4265 0.6535 0.144 0.796 0.012 0.012 0.036
#> SRR1489007 4 0.2891 0.7332 0.000 0.176 0.000 0.824 0.000
#> SRR1361838 4 0.0671 0.7313 0.000 0.004 0.016 0.980 0.000
#> SRR1475086 4 0.3039 0.7228 0.000 0.192 0.000 0.808 0.000
#> SRR1468226 2 0.1981 0.8048 0.000 0.920 0.000 0.064 0.016
#> SRR1069466 4 0.3305 0.7018 0.000 0.224 0.000 0.776 0.000
#> SRR1078114 3 0.2017 0.8560 0.008 0.000 0.912 0.080 0.000
#> SRR1319991 4 0.1408 0.7407 0.000 0.044 0.000 0.948 0.008
#> SRR1374543 1 0.0000 0.8320 1.000 0.000 0.000 0.000 0.000
#> SRR1383237 4 0.3752 0.5045 0.000 0.000 0.000 0.708 0.292
#> SRR1486215 5 0.4196 0.4653 0.356 0.004 0.000 0.000 0.640
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 3 0.1820 0.8112 0.016 0.000 0.928 0.012 0.044 0.000
#> SRR1499584 2 0.1610 0.7339 0.000 0.916 0.000 0.084 0.000 0.000
#> SRR815256 2 0.2219 0.7206 0.000 0.864 0.000 0.000 0.136 0.000
#> SRR1077996 2 0.3672 0.5064 0.000 0.688 0.000 0.304 0.008 0.000
#> SRR1338468 1 0.0798 0.8994 0.976 0.004 0.004 0.000 0.012 0.004
#> SRR1394428 5 0.1858 0.6282 0.000 0.092 0.000 0.000 0.904 0.004
#> SRR1431104 4 0.0870 0.7944 0.004 0.012 0.000 0.972 0.000 0.012
#> SRR1082128 5 0.1946 0.6312 0.004 0.072 0.000 0.012 0.912 0.000
#> SRR1078212 3 0.0146 0.8309 0.000 0.000 0.996 0.000 0.004 0.000
#> SRR1458401 1 0.4050 0.5869 0.716 0.236 0.000 0.000 0.048 0.000
#> SRR1447281 1 0.0520 0.9026 0.984 0.000 0.000 0.008 0.008 0.000
#> SRR1339258 4 0.3938 0.5389 0.000 0.016 0.000 0.660 0.000 0.324
#> SRR1105106 6 0.0777 0.7147 0.000 0.004 0.000 0.024 0.000 0.972
#> SRR1105130 2 0.2653 0.7230 0.000 0.844 0.000 0.012 0.144 0.000
#> SRR1419039 1 0.0622 0.8994 0.980 0.000 0.000 0.008 0.012 0.000
#> SRR1079213 3 0.0291 0.8311 0.000 0.000 0.992 0.000 0.004 0.004
#> SRR1309745 4 0.4809 0.5658 0.000 0.192 0.000 0.668 0.140 0.000
#> SRR1079408 5 0.6157 0.1516 0.360 0.000 0.180 0.000 0.444 0.016
#> SRR1445550 4 0.1642 0.7955 0.000 0.028 0.000 0.936 0.004 0.032
#> SRR820026 2 0.6127 -0.1164 0.000 0.352 0.320 0.000 0.328 0.000
#> SRR1353686 1 0.2177 0.8719 0.916 0.044 0.012 0.016 0.012 0.000
#> SRR1475466 1 0.0260 0.9026 0.992 0.000 0.000 0.008 0.000 0.000
#> SRR1096315 3 0.0000 0.8313 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1479826 5 0.5921 0.2914 0.232 0.000 0.036 0.000 0.580 0.152
#> SRR1479450 4 0.2914 0.6868 0.152 0.004 0.008 0.832 0.004 0.000
#> SRR1094097 1 0.1333 0.8882 0.944 0.000 0.000 0.048 0.008 0.000
#> SRR1071737 2 0.0865 0.7525 0.000 0.964 0.000 0.000 0.036 0.000
#> SRR1433989 1 0.0713 0.8991 0.972 0.000 0.000 0.028 0.000 0.000
#> SRR1077159 5 0.2902 0.5650 0.004 0.196 0.000 0.000 0.800 0.000
#> SRR1330082 1 0.1444 0.8766 0.928 0.000 0.000 0.072 0.000 0.000
#> SRR1079874 4 0.2449 0.7826 0.000 0.080 0.020 0.888 0.012 0.000
#> SRR1387132 4 0.3549 0.7010 0.000 0.028 0.000 0.776 0.192 0.004
#> SRR1095261 3 0.1586 0.8164 0.000 0.040 0.940 0.004 0.012 0.004
#> SRR818646 5 0.2250 0.6174 0.000 0.040 0.000 0.064 0.896 0.000
#> SRR1313991 1 0.1267 0.8836 0.940 0.000 0.000 0.060 0.000 0.000
#> SRR1363718 2 0.3445 0.7119 0.000 0.796 0.000 0.156 0.048 0.000
#> SRR1381372 6 0.0291 0.7143 0.000 0.000 0.000 0.004 0.004 0.992
#> SRR1388257 6 0.0547 0.7163 0.000 0.000 0.000 0.020 0.000 0.980
#> SRR818139 1 0.0717 0.9009 0.976 0.000 0.000 0.016 0.008 0.000
#> SRR1078188 2 0.0653 0.7411 0.000 0.980 0.004 0.004 0.012 0.000
#> SRR1080342 2 0.2384 0.7532 0.000 0.888 0.000 0.048 0.064 0.000
#> SRR1085358 5 0.2234 0.6160 0.000 0.124 0.000 0.000 0.872 0.004
#> SRR1473482 1 0.1296 0.8919 0.952 0.004 0.000 0.000 0.032 0.012
#> SRR1452674 1 0.0405 0.9023 0.988 0.000 0.000 0.008 0.004 0.000
#> SRR1395874 3 0.5388 0.4403 0.308 0.016 0.604 0.020 0.052 0.000
#> SRR1382780 5 0.6099 0.1531 0.360 0.000 0.184 0.000 0.444 0.012
#> SRR1361138 5 0.6131 -0.1618 0.000 0.332 0.000 0.332 0.336 0.000
#> SRR1319242 2 0.4364 0.5443 0.000 0.688 0.256 0.004 0.052 0.000
#> SRR1084553 2 0.1007 0.7542 0.000 0.956 0.000 0.000 0.044 0.000
#> SRR1498747 3 0.3795 0.4737 0.004 0.000 0.632 0.000 0.364 0.000
#> SRR1442213 6 0.3766 0.4843 0.000 0.000 0.256 0.000 0.024 0.720
#> SRR1343943 2 0.3938 0.6402 0.000 0.728 0.000 0.228 0.044 0.000
#> SRR1458828 2 0.1267 0.7490 0.000 0.940 0.000 0.000 0.060 0.000
#> SRR1360280 5 0.4444 0.0486 0.000 0.436 0.000 0.000 0.536 0.028
#> SRR1474208 3 0.0405 0.8310 0.000 0.000 0.988 0.008 0.004 0.000
#> SRR1498726 3 0.1320 0.8243 0.000 0.000 0.948 0.036 0.016 0.000
#> SRR1099857 1 0.4609 0.4068 0.608 0.000 0.016 0.000 0.352 0.024
#> SRR1329423 4 0.1588 0.7806 0.004 0.000 0.000 0.924 0.000 0.072
#> SRR1074430 2 0.4299 0.5206 0.000 0.652 0.000 0.040 0.308 0.000
#> SRR1485848 4 0.5449 0.5209 0.000 0.124 0.272 0.592 0.012 0.000
#> SRR1471395 4 0.2608 0.7872 0.012 0.084 0.004 0.884 0.012 0.004
#> SRR1096198 4 0.6394 0.1911 0.144 0.024 0.356 0.464 0.012 0.000
#> SRR1323234 1 0.1116 0.8941 0.960 0.000 0.004 0.000 0.028 0.008
#> SRR1073483 5 0.3683 0.5381 0.000 0.184 0.000 0.048 0.768 0.000
#> SRR817817 6 0.6270 0.3598 0.000 0.068 0.288 0.088 0.008 0.548
#> SRR1434070 3 0.1338 0.8227 0.000 0.032 0.952 0.004 0.008 0.004
#> SRR1100941 3 0.1440 0.8208 0.000 0.032 0.948 0.004 0.012 0.004
#> SRR1336682 1 0.0725 0.9028 0.976 0.000 0.000 0.012 0.012 0.000
#> SRR1077211 2 0.3766 0.6391 0.000 0.748 0.000 0.000 0.212 0.040
#> SRR1389454 1 0.0653 0.9028 0.980 0.000 0.000 0.012 0.004 0.004
#> SRR1393004 1 0.0146 0.9014 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1086369 5 0.2808 0.6151 0.000 0.048 0.000 0.008 0.868 0.076
#> SRR1447192 1 0.0603 0.9024 0.980 0.000 0.000 0.016 0.004 0.000
#> SRR1459147 6 0.0260 0.7170 0.000 0.000 0.000 0.008 0.000 0.992
#> SRR1097929 3 0.2520 0.7457 0.004 0.000 0.844 0.000 0.152 0.000
#> SRR1075850 2 0.2705 0.6905 0.000 0.876 0.076 0.004 0.040 0.004
#> SRR1358126 6 0.4556 0.4969 0.300 0.000 0.000 0.032 0.016 0.652
#> SRR1121009 3 0.5037 0.2548 0.408 0.000 0.524 0.004 0.064 0.000
#> SRR1321720 1 0.4993 0.3708 0.608 0.084 0.000 0.000 0.304 0.004
#> SRR810105 5 0.5828 0.3854 0.200 0.284 0.000 0.000 0.512 0.004
#> SRR1489007 4 0.2798 0.7667 0.000 0.036 0.000 0.852 0.112 0.000
#> SRR1361838 4 0.1655 0.7932 0.000 0.052 0.008 0.932 0.008 0.000
#> SRR1475086 2 0.3807 0.3616 0.000 0.628 0.000 0.368 0.004 0.000
#> SRR1468226 2 0.3048 0.7091 0.000 0.824 0.000 0.004 0.152 0.020
#> SRR1069466 4 0.3714 0.6735 0.000 0.196 0.000 0.760 0.044 0.000
#> SRR1078114 3 0.2546 0.7750 0.000 0.040 0.888 0.060 0.012 0.000
#> SRR1319991 4 0.1838 0.7943 0.000 0.020 0.000 0.928 0.040 0.012
#> SRR1374543 1 0.2778 0.7698 0.824 0.000 0.000 0.008 0.168 0.000
#> SRR1383237 4 0.2340 0.7512 0.000 0.000 0.000 0.852 0.000 0.148
#> SRR1486215 6 0.4264 0.0386 0.484 0.000 0.000 0.000 0.016 0.500
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["ATC", "hclust"]
# you can also extract it by
# res = res_list["ATC:hclust"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'ATC' method.
#> Subgroups are detected by 'hclust' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.802 0.894 0.948 0.4860 0.501 0.501
#> 3 3 0.636 0.793 0.872 0.2233 0.916 0.833
#> 4 4 0.631 0.669 0.797 0.1042 0.981 0.954
#> 5 5 0.681 0.637 0.833 0.1324 0.788 0.505
#> 6 6 0.687 0.646 0.759 0.0315 0.979 0.913
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.9233 1.000 0.000
#> SRR1499584 2 0.0000 0.9594 0.000 1.000
#> SRR815256 2 0.0000 0.9594 0.000 1.000
#> SRR1077996 2 0.0000 0.9594 0.000 1.000
#> SRR1338468 1 0.0000 0.9233 1.000 0.000
#> SRR1394428 2 0.1184 0.9570 0.016 0.984
#> SRR1431104 2 0.0938 0.9592 0.012 0.988
#> SRR1082128 2 0.1184 0.9569 0.016 0.984
#> SRR1078212 1 0.7376 0.7883 0.792 0.208
#> SRR1458401 1 0.3879 0.9044 0.924 0.076
#> SRR1447281 1 0.0000 0.9233 1.000 0.000
#> SRR1339258 2 0.0000 0.9594 0.000 1.000
#> SRR1105106 2 0.0000 0.9594 0.000 1.000
#> SRR1105130 2 0.0376 0.9607 0.004 0.996
#> SRR1419039 1 0.0000 0.9233 1.000 0.000
#> SRR1079213 1 0.7299 0.7935 0.796 0.204
#> SRR1309745 2 0.0000 0.9594 0.000 1.000
#> SRR1079408 1 0.0000 0.9233 1.000 0.000
#> SRR1445550 2 0.0672 0.9606 0.008 0.992
#> SRR820026 2 0.0672 0.9606 0.008 0.992
#> SRR1353686 2 0.9996 -0.0596 0.488 0.512
#> SRR1475466 1 0.0000 0.9233 1.000 0.000
#> SRR1096315 1 0.7299 0.7935 0.796 0.204
#> SRR1479826 1 0.3879 0.9044 0.924 0.076
#> SRR1479450 1 0.3879 0.9044 0.924 0.076
#> SRR1094097 1 0.0000 0.9233 1.000 0.000
#> SRR1071737 2 0.0000 0.9594 0.000 1.000
#> SRR1433989 1 0.0000 0.9233 1.000 0.000
#> SRR1077159 2 0.1184 0.9569 0.016 0.984
#> SRR1330082 1 0.0000 0.9233 1.000 0.000
#> SRR1079874 2 0.0938 0.9592 0.012 0.988
#> SRR1387132 2 0.0376 0.9607 0.004 0.996
#> SRR1095261 2 0.6712 0.7724 0.176 0.824
#> SRR818646 2 0.1184 0.9569 0.016 0.984
#> SRR1313991 1 0.0000 0.9233 1.000 0.000
#> SRR1363718 2 0.0000 0.9594 0.000 1.000
#> SRR1381372 1 0.9661 0.4595 0.608 0.392
#> SRR1388257 2 0.1184 0.9570 0.016 0.984
#> SRR818139 1 0.0000 0.9233 1.000 0.000
#> SRR1078188 2 0.0000 0.9594 0.000 1.000
#> SRR1080342 2 0.0000 0.9594 0.000 1.000
#> SRR1085358 2 0.0672 0.9606 0.008 0.992
#> SRR1473482 1 0.0000 0.9233 1.000 0.000
#> SRR1452674 1 0.0000 0.9233 1.000 0.000
#> SRR1395874 1 0.0000 0.9233 1.000 0.000
#> SRR1382780 1 0.0000 0.9233 1.000 0.000
#> SRR1361138 2 0.0938 0.9588 0.012 0.988
#> SRR1319242 2 0.0376 0.9607 0.004 0.996
#> SRR1084553 2 0.0000 0.9594 0.000 1.000
#> SRR1498747 1 0.3879 0.9044 0.924 0.076
#> SRR1442213 1 0.7299 0.7945 0.796 0.204
#> SRR1343943 2 0.0000 0.9594 0.000 1.000
#> SRR1458828 2 0.0376 0.9607 0.004 0.996
#> SRR1360280 2 0.0376 0.9607 0.004 0.996
#> SRR1474208 2 0.9850 0.1725 0.428 0.572
#> SRR1498726 2 0.3733 0.9029 0.072 0.928
#> SRR1099857 1 0.1633 0.9194 0.976 0.024
#> SRR1329423 2 0.0938 0.9592 0.012 0.988
#> SRR1074430 2 0.0376 0.9607 0.004 0.996
#> SRR1485848 2 0.0672 0.9606 0.008 0.992
#> SRR1471395 2 0.0938 0.9592 0.012 0.988
#> SRR1096198 1 0.7056 0.8064 0.808 0.192
#> SRR1323234 1 0.1633 0.9194 0.976 0.024
#> SRR1073483 2 0.0376 0.9607 0.004 0.996
#> SRR817817 2 0.0672 0.9606 0.008 0.992
#> SRR1434070 2 0.0672 0.9606 0.008 0.992
#> SRR1100941 2 0.7376 0.7225 0.208 0.792
#> SRR1336682 1 0.0000 0.9233 1.000 0.000
#> SRR1077211 2 0.0376 0.9607 0.004 0.996
#> SRR1389454 1 0.0000 0.9233 1.000 0.000
#> SRR1393004 1 0.0000 0.9233 1.000 0.000
#> SRR1086369 2 0.1184 0.9569 0.016 0.984
#> SRR1447192 1 0.0000 0.9233 1.000 0.000
#> SRR1459147 1 0.8608 0.6755 0.716 0.284
#> SRR1097929 1 0.3879 0.9044 0.924 0.076
#> SRR1075850 2 0.6712 0.7724 0.176 0.824
#> SRR1358126 1 0.5946 0.8541 0.856 0.144
#> SRR1121009 1 0.0000 0.9233 1.000 0.000
#> SRR1321720 1 0.3879 0.9044 0.924 0.076
#> SRR810105 1 0.3879 0.9044 0.924 0.076
#> SRR1489007 2 0.0376 0.9607 0.004 0.996
#> SRR1361838 2 0.0672 0.9606 0.008 0.992
#> SRR1475086 2 0.0938 0.9592 0.012 0.988
#> SRR1468226 2 0.0000 0.9594 0.000 1.000
#> SRR1069466 2 0.0376 0.9607 0.004 0.996
#> SRR1078114 1 0.9358 0.5398 0.648 0.352
#> SRR1319991 2 0.0672 0.9606 0.008 0.992
#> SRR1374543 1 0.3733 0.9058 0.928 0.072
#> SRR1383237 2 0.0000 0.9594 0.000 1.000
#> SRR1486215 1 0.0000 0.9233 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 1 0.1163 0.893 0.972 0.000 0.028
#> SRR1499584 2 0.3412 0.814 0.000 0.876 0.124
#> SRR815256 2 0.3412 0.814 0.000 0.876 0.124
#> SRR1077996 2 0.3412 0.814 0.000 0.876 0.124
#> SRR1338468 1 0.0475 0.901 0.992 0.004 0.004
#> SRR1394428 2 0.3482 0.829 0.000 0.872 0.128
#> SRR1431104 2 0.3340 0.834 0.000 0.880 0.120
#> SRR1082128 2 0.3482 0.829 0.000 0.872 0.128
#> SRR1078212 3 0.6850 0.735 0.208 0.072 0.720
#> SRR1458401 1 0.5951 0.710 0.764 0.040 0.196
#> SRR1447281 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1339258 2 0.3192 0.820 0.000 0.888 0.112
#> SRR1105106 2 0.2796 0.830 0.000 0.908 0.092
#> SRR1105130 2 0.1163 0.853 0.000 0.972 0.028
#> SRR1419039 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1079213 3 0.6723 0.731 0.212 0.064 0.724
#> SRR1309745 2 0.3412 0.814 0.000 0.876 0.124
#> SRR1079408 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1445550 2 0.3340 0.834 0.000 0.880 0.120
#> SRR820026 2 0.2625 0.847 0.000 0.916 0.084
#> SRR1353686 2 0.9862 -0.391 0.256 0.392 0.352
#> SRR1475466 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1096315 3 0.6723 0.731 0.212 0.064 0.724
#> SRR1479826 1 0.5901 0.715 0.768 0.040 0.192
#> SRR1479450 1 0.5842 0.716 0.768 0.036 0.196
#> SRR1094097 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1071737 2 0.3412 0.814 0.000 0.876 0.124
#> SRR1433989 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1077159 2 0.3482 0.829 0.000 0.872 0.128
#> SRR1330082 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1079874 2 0.3412 0.831 0.000 0.876 0.124
#> SRR1387132 2 0.0892 0.855 0.000 0.980 0.020
#> SRR1095261 2 0.5650 0.572 0.000 0.688 0.312
#> SRR818646 2 0.3482 0.829 0.000 0.872 0.128
#> SRR1313991 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1363718 2 0.3412 0.814 0.000 0.876 0.124
#> SRR1381372 3 0.4974 0.641 0.000 0.236 0.764
#> SRR1388257 2 0.3482 0.829 0.000 0.872 0.128
#> SRR818139 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1078188 2 0.3412 0.814 0.000 0.876 0.124
#> SRR1080342 2 0.3412 0.814 0.000 0.876 0.124
#> SRR1085358 2 0.2878 0.843 0.000 0.904 0.096
#> SRR1473482 1 0.0475 0.901 0.992 0.004 0.004
#> SRR1452674 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1395874 1 0.1163 0.893 0.972 0.000 0.028
#> SRR1382780 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1361138 2 0.2878 0.842 0.000 0.904 0.096
#> SRR1319242 2 0.0747 0.854 0.000 0.984 0.016
#> SRR1084553 2 0.3192 0.820 0.000 0.888 0.112
#> SRR1498747 1 0.5842 0.716 0.768 0.036 0.196
#> SRR1442213 3 0.5344 0.734 0.084 0.092 0.824
#> SRR1343943 2 0.3412 0.814 0.000 0.876 0.124
#> SRR1458828 2 0.1163 0.852 0.000 0.972 0.028
#> SRR1360280 2 0.1643 0.847 0.000 0.956 0.044
#> SRR1474208 3 0.7722 0.239 0.048 0.432 0.520
#> SRR1498726 2 0.4346 0.777 0.000 0.816 0.184
#> SRR1099857 1 0.3690 0.836 0.884 0.016 0.100
#> SRR1329423 2 0.3412 0.831 0.000 0.876 0.124
#> SRR1074430 2 0.1411 0.849 0.000 0.964 0.036
#> SRR1485848 2 0.3116 0.840 0.000 0.892 0.108
#> SRR1471395 2 0.3412 0.831 0.000 0.876 0.124
#> SRR1096198 3 0.7980 0.509 0.356 0.072 0.572
#> SRR1323234 1 0.3610 0.839 0.888 0.016 0.096
#> SRR1073483 2 0.1411 0.849 0.000 0.964 0.036
#> SRR817817 2 0.1964 0.852 0.000 0.944 0.056
#> SRR1434070 2 0.0424 0.855 0.000 0.992 0.008
#> SRR1100941 2 0.5859 0.498 0.000 0.656 0.344
#> SRR1336682 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1077211 2 0.1643 0.847 0.000 0.956 0.044
#> SRR1389454 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1393004 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1086369 2 0.3482 0.829 0.000 0.872 0.128
#> SRR1447192 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1459147 3 0.3412 0.722 0.000 0.124 0.876
#> SRR1097929 1 0.5792 0.720 0.772 0.036 0.192
#> SRR1075850 2 0.5650 0.572 0.000 0.688 0.312
#> SRR1358126 3 0.7057 0.584 0.264 0.056 0.680
#> SRR1121009 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1321720 1 0.5951 0.710 0.764 0.040 0.196
#> SRR810105 1 0.5951 0.710 0.764 0.040 0.196
#> SRR1489007 2 0.1031 0.854 0.000 0.976 0.024
#> SRR1361838 2 0.3340 0.834 0.000 0.880 0.120
#> SRR1475086 2 0.3340 0.834 0.000 0.880 0.120
#> SRR1468226 2 0.3412 0.814 0.000 0.876 0.124
#> SRR1069466 2 0.1163 0.851 0.000 0.972 0.028
#> SRR1078114 3 0.8595 0.694 0.180 0.216 0.604
#> SRR1319991 2 0.1860 0.852 0.000 0.948 0.052
#> SRR1374543 1 0.5635 0.735 0.784 0.036 0.180
#> SRR1383237 2 0.3412 0.814 0.000 0.876 0.124
#> SRR1486215 1 0.0747 0.894 0.984 0.000 0.016
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 1 0.3569 0.743 0.804 0.000 0.196 0.000
#> SRR1499584 2 0.0000 0.638 0.000 1.000 0.000 0.000
#> SRR815256 2 0.0000 0.638 0.000 1.000 0.000 0.000
#> SRR1077996 2 0.0000 0.638 0.000 1.000 0.000 0.000
#> SRR1338468 1 0.1557 0.808 0.944 0.000 0.056 0.000
#> SRR1394428 2 0.5161 0.744 0.000 0.520 0.004 0.476
#> SRR1431104 2 0.4992 0.747 0.000 0.524 0.000 0.476
#> SRR1082128 2 0.5161 0.744 0.000 0.520 0.004 0.476
#> SRR1078212 3 0.2805 0.338 0.012 0.000 0.888 0.100
#> SRR1458401 1 0.4977 0.511 0.540 0.000 0.460 0.000
#> SRR1447281 1 0.0000 0.820 1.000 0.000 0.000 0.000
#> SRR1339258 2 0.0817 0.653 0.000 0.976 0.000 0.024
#> SRR1105106 2 0.2216 0.690 0.000 0.908 0.000 0.092
#> SRR1105130 2 0.4454 0.767 0.000 0.692 0.000 0.308
#> SRR1419039 1 0.0592 0.820 0.984 0.000 0.016 0.000
#> SRR1079213 3 0.0895 0.286 0.004 0.000 0.976 0.020
#> SRR1309745 2 0.0000 0.638 0.000 1.000 0.000 0.000
#> SRR1079408 1 0.0921 0.818 0.972 0.000 0.028 0.000
#> SRR1445550 2 0.4992 0.747 0.000 0.524 0.000 0.476
#> SRR820026 2 0.4925 0.762 0.000 0.572 0.000 0.428
#> SRR1353686 3 0.9604 0.164 0.160 0.256 0.384 0.200
#> SRR1475466 1 0.0000 0.820 1.000 0.000 0.000 0.000
#> SRR1096315 3 0.0895 0.286 0.004 0.000 0.976 0.020
#> SRR1479826 1 0.4972 0.517 0.544 0.000 0.456 0.000
#> SRR1479450 1 0.4925 0.547 0.572 0.000 0.428 0.000
#> SRR1094097 1 0.0000 0.820 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.638 0.000 1.000 0.000 0.000
#> SRR1433989 1 0.0000 0.820 1.000 0.000 0.000 0.000
#> SRR1077159 2 0.5161 0.744 0.000 0.520 0.004 0.476
#> SRR1330082 1 0.0592 0.820 0.984 0.000 0.016 0.000
#> SRR1079874 2 0.4994 0.745 0.000 0.520 0.000 0.480
#> SRR1387132 2 0.4331 0.766 0.000 0.712 0.000 0.288
#> SRR1095261 2 0.7491 0.555 0.000 0.500 0.232 0.268
#> SRR818646 2 0.5161 0.744 0.000 0.520 0.004 0.476
#> SRR1313991 1 0.0000 0.820 1.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.638 0.000 1.000 0.000 0.000
#> SRR1381372 4 0.3024 0.359 0.000 0.000 0.148 0.852
#> SRR1388257 2 0.5161 0.744 0.000 0.520 0.004 0.476
#> SRR818139 1 0.0000 0.820 1.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.638 0.000 1.000 0.000 0.000
#> SRR1080342 2 0.0000 0.638 0.000 1.000 0.000 0.000
#> SRR1085358 2 0.4967 0.756 0.000 0.548 0.000 0.452
#> SRR1473482 1 0.1557 0.808 0.944 0.000 0.056 0.000
#> SRR1452674 1 0.0000 0.820 1.000 0.000 0.000 0.000
#> SRR1395874 1 0.3569 0.743 0.804 0.000 0.196 0.000
#> SRR1382780 1 0.0921 0.818 0.972 0.000 0.028 0.000
#> SRR1361138 2 0.5119 0.758 0.000 0.556 0.004 0.440
#> SRR1319242 2 0.4697 0.768 0.000 0.644 0.000 0.356
#> SRR1084553 2 0.1022 0.658 0.000 0.968 0.000 0.032
#> SRR1498747 1 0.4925 0.547 0.572 0.000 0.428 0.000
#> SRR1442213 4 0.5643 0.499 0.024 0.000 0.428 0.548
#> SRR1343943 2 0.0000 0.638 0.000 1.000 0.000 0.000
#> SRR1458828 2 0.4382 0.765 0.000 0.704 0.000 0.296
#> SRR1360280 2 0.3837 0.749 0.000 0.776 0.000 0.224
#> SRR1474208 3 0.7468 0.175 0.000 0.268 0.504 0.228
#> SRR1498726 2 0.6458 0.716 0.000 0.520 0.072 0.408
#> SRR1099857 1 0.4164 0.706 0.736 0.000 0.264 0.000
#> SRR1329423 2 0.4994 0.745 0.000 0.520 0.000 0.480
#> SRR1074430 2 0.3688 0.744 0.000 0.792 0.000 0.208
#> SRR1485848 2 0.5383 0.753 0.000 0.536 0.012 0.452
#> SRR1471395 2 0.4994 0.745 0.000 0.520 0.000 0.480
#> SRR1096198 3 0.5383 0.267 0.160 0.000 0.740 0.100
#> SRR1323234 1 0.4134 0.709 0.740 0.000 0.260 0.000
#> SRR1073483 2 0.3688 0.744 0.000 0.792 0.000 0.208
#> SRR817817 2 0.5253 0.767 0.000 0.624 0.016 0.360
#> SRR1434070 2 0.4543 0.769 0.000 0.676 0.000 0.324
#> SRR1100941 2 0.7534 0.494 0.000 0.492 0.268 0.240
#> SRR1336682 1 0.0592 0.820 0.984 0.000 0.016 0.000
#> SRR1077211 2 0.4072 0.757 0.000 0.748 0.000 0.252
#> SRR1389454 1 0.0592 0.820 0.984 0.000 0.016 0.000
#> SRR1393004 1 0.0000 0.820 1.000 0.000 0.000 0.000
#> SRR1086369 2 0.5161 0.744 0.000 0.520 0.004 0.476
#> SRR1447192 1 0.0000 0.820 1.000 0.000 0.000 0.000
#> SRR1459147 4 0.4605 0.517 0.000 0.000 0.336 0.664
#> SRR1097929 1 0.4916 0.551 0.576 0.000 0.424 0.000
#> SRR1075850 2 0.7491 0.555 0.000 0.500 0.232 0.268
#> SRR1358126 4 0.7344 0.367 0.208 0.000 0.268 0.524
#> SRR1121009 1 0.0000 0.820 1.000 0.000 0.000 0.000
#> SRR1321720 1 0.4977 0.511 0.540 0.000 0.460 0.000
#> SRR810105 1 0.4977 0.511 0.540 0.000 0.460 0.000
#> SRR1489007 2 0.4746 0.768 0.000 0.632 0.000 0.368
#> SRR1361838 2 0.4992 0.747 0.000 0.524 0.000 0.476
#> SRR1475086 2 0.4992 0.747 0.000 0.524 0.000 0.476
#> SRR1468226 2 0.0000 0.638 0.000 1.000 0.000 0.000
#> SRR1069466 2 0.3801 0.749 0.000 0.780 0.000 0.220
#> SRR1078114 3 0.5531 0.327 0.000 0.128 0.732 0.140
#> SRR1319991 2 0.4855 0.765 0.000 0.600 0.000 0.400
#> SRR1374543 1 0.4877 0.568 0.592 0.000 0.408 0.000
#> SRR1383237 2 0.0000 0.638 0.000 1.000 0.000 0.000
#> SRR1486215 1 0.1297 0.814 0.964 0.000 0.020 0.016
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 1 0.3242 0.57439 0.784 0.000 0.216 0.000 0.000
#> SRR1499584 2 0.0000 0.77096 0.000 1.000 0.000 0.000 0.000
#> SRR815256 2 0.0000 0.77096 0.000 1.000 0.000 0.000 0.000
#> SRR1077996 2 0.0000 0.77096 0.000 1.000 0.000 0.000 0.000
#> SRR1338468 1 0.1851 0.84425 0.912 0.000 0.088 0.000 0.000
#> SRR1394428 4 0.0324 0.81721 0.000 0.000 0.004 0.992 0.004
#> SRR1431104 4 0.0162 0.81983 0.000 0.004 0.000 0.996 0.000
#> SRR1082128 4 0.0162 0.81880 0.000 0.000 0.000 0.996 0.004
#> SRR1078212 3 0.5027 -0.00190 0.012 0.000 0.720 0.084 0.184
#> SRR1458401 3 0.4227 0.47774 0.420 0.000 0.580 0.000 0.000
#> SRR1447281 1 0.0000 0.88625 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 2 0.2813 0.72156 0.000 0.832 0.000 0.168 0.000
#> SRR1105106 2 0.2519 0.74531 0.000 0.884 0.000 0.100 0.016
#> SRR1105130 4 0.4384 0.42276 0.000 0.324 0.000 0.660 0.016
#> SRR1419039 1 0.1410 0.86753 0.940 0.000 0.060 0.000 0.000
#> SRR1079213 3 0.3074 0.00994 0.000 0.000 0.804 0.000 0.196
#> SRR1309745 2 0.2230 0.74516 0.000 0.884 0.000 0.116 0.000
#> SRR1079408 1 0.0794 0.87320 0.972 0.000 0.028 0.000 0.000
#> SRR1445550 4 0.0162 0.81937 0.000 0.004 0.000 0.996 0.000
#> SRR820026 4 0.1341 0.80444 0.000 0.056 0.000 0.944 0.000
#> SRR1353686 4 0.8034 -0.03210 0.160 0.000 0.232 0.440 0.168
#> SRR1475466 1 0.0000 0.88625 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.3074 0.00994 0.000 0.000 0.804 0.000 0.196
#> SRR1479826 3 0.4235 0.47270 0.424 0.000 0.576 0.000 0.000
#> SRR1479450 3 0.4278 0.43879 0.452 0.000 0.548 0.000 0.000
#> SRR1094097 1 0.0000 0.88625 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.77096 0.000 1.000 0.000 0.000 0.000
#> SRR1433989 1 0.0000 0.88625 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 4 0.0162 0.81880 0.000 0.000 0.000 0.996 0.004
#> SRR1330082 1 0.1410 0.86753 0.940 0.000 0.060 0.000 0.000
#> SRR1079874 4 0.0162 0.81981 0.000 0.004 0.000 0.996 0.000
#> SRR1387132 2 0.4696 0.29994 0.000 0.556 0.000 0.428 0.016
#> SRR1095261 4 0.4504 0.63554 0.000 0.000 0.084 0.748 0.168
#> SRR818646 4 0.0162 0.81880 0.000 0.000 0.000 0.996 0.004
#> SRR1313991 1 0.0000 0.88625 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.77096 0.000 1.000 0.000 0.000 0.000
#> SRR1381372 5 0.3160 0.62975 0.000 0.000 0.004 0.188 0.808
#> SRR1388257 4 0.0324 0.81721 0.000 0.000 0.004 0.992 0.004
#> SRR818139 1 0.0000 0.88625 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.77096 0.000 1.000 0.000 0.000 0.000
#> SRR1080342 2 0.0000 0.77096 0.000 1.000 0.000 0.000 0.000
#> SRR1085358 4 0.1195 0.80860 0.000 0.028 0.000 0.960 0.012
#> SRR1473482 1 0.1851 0.84425 0.912 0.000 0.088 0.000 0.000
#> SRR1452674 1 0.0000 0.88625 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 1 0.3242 0.57439 0.784 0.000 0.216 0.000 0.000
#> SRR1382780 1 0.0794 0.87320 0.972 0.000 0.028 0.000 0.000
#> SRR1361138 4 0.3487 0.61917 0.000 0.212 0.000 0.780 0.008
#> SRR1319242 4 0.4269 0.46284 0.000 0.300 0.000 0.684 0.016
#> SRR1084553 2 0.0955 0.76892 0.000 0.968 0.000 0.028 0.004
#> SRR1498747 3 0.4278 0.43879 0.452 0.000 0.548 0.000 0.000
#> SRR1442213 5 0.3424 0.67407 0.000 0.000 0.240 0.000 0.760
#> SRR1343943 2 0.2516 0.73457 0.000 0.860 0.000 0.140 0.000
#> SRR1458828 4 0.4666 0.15927 0.000 0.412 0.000 0.572 0.016
#> SRR1360280 2 0.4014 0.62907 0.000 0.728 0.000 0.256 0.016
#> SRR1474208 4 0.6316 0.19677 0.000 0.000 0.356 0.480 0.164
#> SRR1498726 4 0.1981 0.78232 0.000 0.000 0.048 0.924 0.028
#> SRR1099857 1 0.4196 0.25553 0.640 0.000 0.356 0.000 0.004
#> SRR1329423 4 0.0000 0.81846 0.000 0.000 0.000 1.000 0.000
#> SRR1074430 2 0.4640 0.38644 0.000 0.584 0.000 0.400 0.016
#> SRR1485848 4 0.1106 0.81656 0.000 0.024 0.012 0.964 0.000
#> SRR1471395 4 0.0162 0.81981 0.000 0.004 0.000 0.996 0.000
#> SRR1096198 3 0.7035 0.20911 0.160 0.000 0.572 0.084 0.184
#> SRR1323234 1 0.4045 0.26826 0.644 0.000 0.356 0.000 0.000
#> SRR1073483 2 0.4640 0.38644 0.000 0.584 0.000 0.400 0.016
#> SRR817817 4 0.3223 0.74834 0.000 0.116 0.016 0.852 0.016
#> SRR1434070 4 0.3961 0.57948 0.000 0.248 0.000 0.736 0.016
#> SRR1100941 4 0.4926 0.58653 0.000 0.000 0.112 0.712 0.176
#> SRR1336682 1 0.1410 0.86753 0.940 0.000 0.060 0.000 0.000
#> SRR1077211 2 0.4718 0.26721 0.000 0.540 0.000 0.444 0.016
#> SRR1389454 1 0.1410 0.86753 0.940 0.000 0.060 0.000 0.000
#> SRR1393004 1 0.0000 0.88625 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 4 0.0162 0.81880 0.000 0.000 0.000 0.996 0.004
#> SRR1447192 1 0.0000 0.88625 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 5 0.1012 0.69381 0.000 0.000 0.020 0.012 0.968
#> SRR1097929 3 0.4283 0.43039 0.456 0.000 0.544 0.000 0.000
#> SRR1075850 4 0.4504 0.63554 0.000 0.000 0.084 0.748 0.168
#> SRR1358126 5 0.5584 0.49893 0.092 0.000 0.324 0.000 0.584
#> SRR1121009 1 0.0162 0.88597 0.996 0.000 0.004 0.000 0.000
#> SRR1321720 3 0.4227 0.47774 0.420 0.000 0.580 0.000 0.000
#> SRR810105 3 0.4227 0.47774 0.420 0.000 0.580 0.000 0.000
#> SRR1489007 4 0.4527 0.21694 0.000 0.392 0.000 0.596 0.012
#> SRR1361838 4 0.0162 0.81937 0.000 0.004 0.000 0.996 0.000
#> SRR1475086 4 0.1043 0.80872 0.000 0.040 0.000 0.960 0.000
#> SRR1468226 2 0.0000 0.77096 0.000 1.000 0.000 0.000 0.000
#> SRR1069466 2 0.4682 0.34145 0.000 0.564 0.000 0.420 0.016
#> SRR1078114 3 0.6023 -0.09412 0.000 0.000 0.576 0.248 0.176
#> SRR1319991 4 0.2017 0.78074 0.000 0.080 0.000 0.912 0.008
#> SRR1374543 3 0.4297 0.39114 0.472 0.000 0.528 0.000 0.000
#> SRR1383237 2 0.0000 0.77096 0.000 1.000 0.000 0.000 0.000
#> SRR1486215 1 0.1774 0.86569 0.932 0.000 0.052 0.000 0.016
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 1 0.4374 0.3414 0.712 0.000 0.096 0.000 0.192 0.000
#> SRR1499584 2 0.0000 0.7810 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR815256 2 0.0000 0.7810 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1077996 2 0.0000 0.7810 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1338468 1 0.2039 0.8121 0.904 0.000 0.020 0.000 0.076 0.000
#> SRR1394428 4 0.0622 0.7636 0.000 0.000 0.012 0.980 0.008 0.000
#> SRR1431104 4 0.0653 0.7662 0.000 0.004 0.004 0.980 0.012 0.000
#> SRR1082128 4 0.2112 0.7466 0.000 0.000 0.016 0.896 0.088 0.000
#> SRR1078212 3 0.2066 0.6233 0.000 0.000 0.904 0.072 0.024 0.000
#> SRR1458401 5 0.5887 0.8557 0.328 0.000 0.216 0.000 0.456 0.000
#> SRR1447281 1 0.0000 0.8573 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1339258 2 0.2743 0.7205 0.000 0.828 0.000 0.164 0.008 0.000
#> SRR1105106 2 0.2537 0.7480 0.000 0.880 0.000 0.088 0.024 0.008
#> SRR1105130 4 0.4956 0.3644 0.000 0.316 0.000 0.608 0.068 0.008
#> SRR1419039 1 0.1387 0.8341 0.932 0.000 0.000 0.000 0.068 0.000
#> SRR1079213 3 0.0725 0.5849 0.000 0.000 0.976 0.000 0.012 0.012
#> SRR1309745 2 0.2003 0.7424 0.000 0.884 0.000 0.116 0.000 0.000
#> SRR1079408 1 0.1124 0.8327 0.956 0.000 0.008 0.000 0.036 0.000
#> SRR1445550 4 0.0713 0.7669 0.000 0.000 0.000 0.972 0.028 0.000
#> SRR820026 4 0.3172 0.7423 0.000 0.048 0.000 0.824 0.128 0.000
#> SRR1353686 4 0.7034 -0.2452 0.136 0.000 0.308 0.428 0.128 0.000
#> SRR1475466 1 0.0000 0.8573 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0725 0.5849 0.000 0.000 0.976 0.000 0.012 0.012
#> SRR1479826 5 0.5894 0.8535 0.332 0.000 0.216 0.000 0.452 0.000
#> SRR1479450 5 0.5825 0.8522 0.344 0.000 0.196 0.000 0.460 0.000
#> SRR1094097 1 0.0000 0.8573 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.7810 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433989 1 0.0000 0.8573 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077159 4 0.2112 0.7466 0.000 0.000 0.016 0.896 0.088 0.000
#> SRR1330082 1 0.1387 0.8341 0.932 0.000 0.000 0.000 0.068 0.000
#> SRR1079874 4 0.0291 0.7677 0.000 0.004 0.004 0.992 0.000 0.000
#> SRR1387132 2 0.4998 0.2937 0.000 0.548 0.000 0.392 0.048 0.012
#> SRR1095261 4 0.4954 0.4515 0.000 0.000 0.260 0.628 0.112 0.000
#> SRR818646 4 0.1461 0.7639 0.000 0.000 0.016 0.940 0.044 0.000
#> SRR1313991 1 0.0000 0.8573 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.7810 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1381372 6 0.5418 0.5100 0.000 0.000 0.000 0.120 0.388 0.492
#> SRR1388257 4 0.0622 0.7636 0.000 0.000 0.012 0.980 0.008 0.000
#> SRR818139 1 0.0000 0.8573 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.7810 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1080342 2 0.0000 0.7810 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1085358 4 0.2908 0.7514 0.000 0.020 0.004 0.848 0.124 0.004
#> SRR1473482 1 0.2039 0.8121 0.904 0.000 0.020 0.000 0.076 0.000
#> SRR1452674 1 0.0000 0.8573 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1395874 1 0.4374 0.3414 0.712 0.000 0.096 0.000 0.192 0.000
#> SRR1382780 1 0.1124 0.8327 0.956 0.000 0.008 0.000 0.036 0.000
#> SRR1361138 4 0.5136 0.5775 0.000 0.212 0.012 0.668 0.100 0.008
#> SRR1319242 4 0.5629 0.3915 0.000 0.292 0.000 0.560 0.136 0.012
#> SRR1084553 2 0.1078 0.7756 0.000 0.964 0.000 0.012 0.016 0.008
#> SRR1498747 5 0.5825 0.8522 0.344 0.000 0.196 0.000 0.460 0.000
#> SRR1442213 6 0.4159 0.5718 0.000 0.000 0.116 0.000 0.140 0.744
#> SRR1343943 2 0.2402 0.7322 0.000 0.856 0.000 0.140 0.004 0.000
#> SRR1458828 4 0.4930 0.0884 0.000 0.404 0.000 0.540 0.048 0.008
#> SRR1360280 2 0.4289 0.6338 0.000 0.720 0.000 0.220 0.048 0.012
#> SRR1474208 3 0.5212 0.2077 0.000 0.000 0.532 0.368 0.100 0.000
#> SRR1498726 4 0.1951 0.7272 0.000 0.000 0.076 0.908 0.016 0.000
#> SRR1099857 1 0.5466 -0.2259 0.560 0.000 0.136 0.000 0.300 0.004
#> SRR1329423 4 0.0405 0.7648 0.000 0.000 0.004 0.988 0.008 0.000
#> SRR1074430 2 0.5475 0.4322 0.000 0.576 0.000 0.296 0.116 0.012
#> SRR1485848 4 0.3016 0.7419 0.000 0.016 0.012 0.836 0.136 0.000
#> SRR1471395 4 0.0291 0.7677 0.000 0.004 0.004 0.992 0.000 0.000
#> SRR1096198 3 0.5160 0.4760 0.128 0.000 0.704 0.072 0.096 0.000
#> SRR1323234 1 0.5333 -0.2140 0.564 0.000 0.136 0.000 0.300 0.000
#> SRR1073483 2 0.5475 0.4322 0.000 0.576 0.000 0.296 0.116 0.012
#> SRR817817 4 0.4835 0.6900 0.000 0.108 0.020 0.716 0.152 0.004
#> SRR1434070 4 0.4491 0.5309 0.000 0.240 0.000 0.692 0.060 0.008
#> SRR1100941 4 0.5127 0.3645 0.000 0.000 0.300 0.588 0.112 0.000
#> SRR1336682 1 0.1387 0.8341 0.932 0.000 0.000 0.000 0.068 0.000
#> SRR1077211 2 0.5719 0.3334 0.000 0.532 0.000 0.320 0.136 0.012
#> SRR1389454 1 0.1387 0.8341 0.932 0.000 0.000 0.000 0.068 0.000
#> SRR1393004 1 0.0000 0.8573 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1086369 4 0.1461 0.7639 0.000 0.000 0.016 0.940 0.044 0.000
#> SRR1447192 1 0.0000 0.8573 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1459147 6 0.0790 0.6491 0.000 0.000 0.032 0.000 0.000 0.968
#> SRR1097929 5 0.5831 0.8482 0.348 0.000 0.196 0.000 0.456 0.000
#> SRR1075850 4 0.4954 0.4515 0.000 0.000 0.260 0.628 0.112 0.000
#> SRR1358126 5 0.4860 -0.4513 0.028 0.000 0.052 0.000 0.668 0.252
#> SRR1121009 1 0.0260 0.8563 0.992 0.000 0.000 0.000 0.008 0.000
#> SRR1321720 5 0.5887 0.8557 0.328 0.000 0.216 0.000 0.456 0.000
#> SRR810105 5 0.5887 0.8557 0.328 0.000 0.216 0.000 0.456 0.000
#> SRR1489007 4 0.4809 0.1646 0.000 0.384 0.004 0.568 0.040 0.004
#> SRR1361838 4 0.0713 0.7669 0.000 0.000 0.000 0.972 0.028 0.000
#> SRR1475086 4 0.1082 0.7635 0.000 0.040 0.004 0.956 0.000 0.000
#> SRR1468226 2 0.0000 0.7810 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1069466 2 0.4982 0.3949 0.000 0.556 0.000 0.384 0.048 0.012
#> SRR1078114 3 0.4003 0.5669 0.000 0.000 0.756 0.152 0.092 0.000
#> SRR1319991 4 0.2705 0.7386 0.000 0.072 0.000 0.872 0.052 0.004
#> SRR1374543 5 0.5748 0.8235 0.360 0.000 0.176 0.000 0.464 0.000
#> SRR1383237 2 0.0000 0.7810 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1486215 1 0.1657 0.8355 0.928 0.000 0.000 0.000 0.056 0.016
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["ATC", "kmeans"]
# you can also extract it by
# res = res_list["ATC:kmeans"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'ATC' method.
#> Subgroups are detected by 'kmeans' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 1.000 0.984 0.993 0.4920 0.510 0.510
#> 3 3 0.727 0.810 0.884 0.3369 0.723 0.506
#> 4 4 0.822 0.887 0.921 0.1318 0.820 0.530
#> 5 5 0.781 0.767 0.851 0.0565 0.951 0.807
#> 6 6 0.795 0.704 0.834 0.0394 0.962 0.831
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.000 0.999 1.000 0.000
#> SRR1499584 2 0.000 0.989 0.000 1.000
#> SRR815256 2 0.000 0.989 0.000 1.000
#> SRR1077996 2 0.000 0.989 0.000 1.000
#> SRR1338468 1 0.000 0.999 1.000 0.000
#> SRR1394428 2 0.000 0.989 0.000 1.000
#> SRR1431104 2 0.000 0.989 0.000 1.000
#> SRR1082128 2 0.000 0.989 0.000 1.000
#> SRR1078212 1 0.242 0.957 0.960 0.040
#> SRR1458401 1 0.000 0.999 1.000 0.000
#> SRR1447281 1 0.000 0.999 1.000 0.000
#> SRR1339258 2 0.000 0.989 0.000 1.000
#> SRR1105106 2 0.000 0.989 0.000 1.000
#> SRR1105130 2 0.000 0.989 0.000 1.000
#> SRR1419039 1 0.000 0.999 1.000 0.000
#> SRR1079213 1 0.000 0.999 1.000 0.000
#> SRR1309745 2 0.000 0.989 0.000 1.000
#> SRR1079408 1 0.000 0.999 1.000 0.000
#> SRR1445550 2 0.000 0.989 0.000 1.000
#> SRR820026 2 0.000 0.989 0.000 1.000
#> SRR1353686 2 0.697 0.767 0.188 0.812
#> SRR1475466 1 0.000 0.999 1.000 0.000
#> SRR1096315 1 0.000 0.999 1.000 0.000
#> SRR1479826 1 0.000 0.999 1.000 0.000
#> SRR1479450 1 0.000 0.999 1.000 0.000
#> SRR1094097 1 0.000 0.999 1.000 0.000
#> SRR1071737 2 0.000 0.989 0.000 1.000
#> SRR1433989 1 0.000 0.999 1.000 0.000
#> SRR1077159 2 0.000 0.989 0.000 1.000
#> SRR1330082 1 0.000 0.999 1.000 0.000
#> SRR1079874 2 0.000 0.989 0.000 1.000
#> SRR1387132 2 0.000 0.989 0.000 1.000
#> SRR1095261 2 0.000 0.989 0.000 1.000
#> SRR818646 2 0.000 0.989 0.000 1.000
#> SRR1313991 1 0.000 0.999 1.000 0.000
#> SRR1363718 2 0.000 0.989 0.000 1.000
#> SRR1381372 2 0.000 0.989 0.000 1.000
#> SRR1388257 2 0.000 0.989 0.000 1.000
#> SRR818139 1 0.000 0.999 1.000 0.000
#> SRR1078188 2 0.000 0.989 0.000 1.000
#> SRR1080342 2 0.000 0.989 0.000 1.000
#> SRR1085358 2 0.000 0.989 0.000 1.000
#> SRR1473482 1 0.000 0.999 1.000 0.000
#> SRR1452674 1 0.000 0.999 1.000 0.000
#> SRR1395874 1 0.000 0.999 1.000 0.000
#> SRR1382780 1 0.000 0.999 1.000 0.000
#> SRR1361138 2 0.000 0.989 0.000 1.000
#> SRR1319242 2 0.000 0.989 0.000 1.000
#> SRR1084553 2 0.000 0.989 0.000 1.000
#> SRR1498747 1 0.000 0.999 1.000 0.000
#> SRR1442213 1 0.000 0.999 1.000 0.000
#> SRR1343943 2 0.000 0.989 0.000 1.000
#> SRR1458828 2 0.000 0.989 0.000 1.000
#> SRR1360280 2 0.000 0.989 0.000 1.000
#> SRR1474208 2 0.000 0.989 0.000 1.000
#> SRR1498726 2 0.000 0.989 0.000 1.000
#> SRR1099857 1 0.000 0.999 1.000 0.000
#> SRR1329423 2 0.000 0.989 0.000 1.000
#> SRR1074430 2 0.000 0.989 0.000 1.000
#> SRR1485848 2 0.000 0.989 0.000 1.000
#> SRR1471395 2 0.000 0.989 0.000 1.000
#> SRR1096198 1 0.000 0.999 1.000 0.000
#> SRR1323234 1 0.000 0.999 1.000 0.000
#> SRR1073483 2 0.000 0.989 0.000 1.000
#> SRR817817 2 0.000 0.989 0.000 1.000
#> SRR1434070 2 0.000 0.989 0.000 1.000
#> SRR1100941 2 0.000 0.989 0.000 1.000
#> SRR1336682 1 0.000 0.999 1.000 0.000
#> SRR1077211 2 0.000 0.989 0.000 1.000
#> SRR1389454 1 0.000 0.999 1.000 0.000
#> SRR1393004 1 0.000 0.999 1.000 0.000
#> SRR1086369 2 0.000 0.989 0.000 1.000
#> SRR1447192 1 0.000 0.999 1.000 0.000
#> SRR1459147 2 0.958 0.394 0.380 0.620
#> SRR1097929 1 0.000 0.999 1.000 0.000
#> SRR1075850 2 0.000 0.989 0.000 1.000
#> SRR1358126 1 0.000 0.999 1.000 0.000
#> SRR1121009 1 0.000 0.999 1.000 0.000
#> SRR1321720 1 0.000 0.999 1.000 0.000
#> SRR810105 1 0.000 0.999 1.000 0.000
#> SRR1489007 2 0.000 0.989 0.000 1.000
#> SRR1361838 2 0.000 0.989 0.000 1.000
#> SRR1475086 2 0.000 0.989 0.000 1.000
#> SRR1468226 2 0.000 0.989 0.000 1.000
#> SRR1069466 2 0.000 0.989 0.000 1.000
#> SRR1078114 2 0.000 0.989 0.000 1.000
#> SRR1319991 2 0.000 0.989 0.000 1.000
#> SRR1374543 1 0.000 0.999 1.000 0.000
#> SRR1383237 2 0.000 0.989 0.000 1.000
#> SRR1486215 1 0.000 0.999 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1499584 2 0.0000 0.992 0.000 1.000 0.000
#> SRR815256 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1077996 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1338468 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1394428 3 0.5706 0.678 0.000 0.320 0.680
#> SRR1431104 3 0.5733 0.681 0.000 0.324 0.676
#> SRR1082128 3 0.0424 0.723 0.000 0.008 0.992
#> SRR1078212 3 0.0000 0.723 0.000 0.000 1.000
#> SRR1458401 1 0.5835 0.673 0.660 0.000 0.340
#> SRR1447281 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1339258 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1105106 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1105130 2 0.2165 0.906 0.000 0.936 0.064
#> SRR1419039 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1079213 3 0.0000 0.723 0.000 0.000 1.000
#> SRR1309745 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1079408 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1445550 3 0.6260 0.552 0.000 0.448 0.552
#> SRR820026 3 0.6260 0.552 0.000 0.448 0.552
#> SRR1353686 3 0.0000 0.723 0.000 0.000 1.000
#> SRR1475466 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1096315 3 0.0000 0.723 0.000 0.000 1.000
#> SRR1479826 1 0.4654 0.798 0.792 0.000 0.208
#> SRR1479450 1 0.6095 0.594 0.608 0.000 0.392
#> SRR1094097 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1071737 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1433989 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1077159 3 0.2261 0.723 0.000 0.068 0.932
#> SRR1330082 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1079874 3 0.5591 0.688 0.000 0.304 0.696
#> SRR1387132 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1095261 3 0.0000 0.723 0.000 0.000 1.000
#> SRR818646 3 0.6045 0.650 0.000 0.380 0.620
#> SRR1313991 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1363718 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1381372 3 0.6095 0.638 0.000 0.392 0.608
#> SRR1388257 3 0.6045 0.650 0.000 0.380 0.620
#> SRR818139 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1078188 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1080342 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1085358 3 0.6252 0.560 0.000 0.444 0.556
#> SRR1473482 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1452674 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1395874 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1382780 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1361138 3 0.6045 0.650 0.000 0.380 0.620
#> SRR1319242 2 0.2261 0.900 0.000 0.932 0.068
#> SRR1084553 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1498747 1 0.5785 0.683 0.668 0.000 0.332
#> SRR1442213 3 0.6215 -0.217 0.428 0.000 0.572
#> SRR1343943 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1458828 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1360280 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1474208 3 0.0000 0.723 0.000 0.000 1.000
#> SRR1498726 3 0.0000 0.723 0.000 0.000 1.000
#> SRR1099857 1 0.5785 0.683 0.668 0.000 0.332
#> SRR1329423 3 0.6045 0.650 0.000 0.380 0.620
#> SRR1074430 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1485848 3 0.5785 0.676 0.000 0.332 0.668
#> SRR1471395 3 0.6079 0.641 0.000 0.388 0.612
#> SRR1096198 3 0.0000 0.723 0.000 0.000 1.000
#> SRR1323234 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1073483 2 0.0000 0.992 0.000 1.000 0.000
#> SRR817817 3 0.6168 0.592 0.000 0.412 0.588
#> SRR1434070 3 0.6295 0.503 0.000 0.472 0.528
#> SRR1100941 3 0.0000 0.723 0.000 0.000 1.000
#> SRR1336682 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1077211 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1389454 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1393004 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1086369 3 0.6045 0.650 0.000 0.380 0.620
#> SRR1447192 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1459147 3 0.0000 0.723 0.000 0.000 1.000
#> SRR1097929 1 0.5785 0.683 0.668 0.000 0.332
#> SRR1075850 3 0.3412 0.718 0.000 0.124 0.876
#> SRR1358126 1 0.3482 0.854 0.872 0.000 0.128
#> SRR1121009 1 0.0000 0.926 1.000 0.000 0.000
#> SRR1321720 3 0.0892 0.715 0.020 0.000 0.980
#> SRR810105 3 0.2625 0.646 0.084 0.000 0.916
#> SRR1489007 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1361838 3 0.5733 0.681 0.000 0.324 0.676
#> SRR1475086 3 0.6062 0.646 0.000 0.384 0.616
#> SRR1468226 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1069466 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1078114 3 0.0000 0.723 0.000 0.000 1.000
#> SRR1319991 3 0.6260 0.552 0.000 0.448 0.552
#> SRR1374543 1 0.4399 0.813 0.812 0.000 0.188
#> SRR1383237 2 0.0000 0.992 0.000 1.000 0.000
#> SRR1486215 1 0.0000 0.926 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 1 0.0336 0.969 0.992 0.000 0.008 0.000
#> SRR1499584 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR815256 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1077996 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1338468 1 0.1489 0.941 0.952 0.000 0.044 0.004
#> SRR1394428 4 0.2522 0.902 0.000 0.076 0.016 0.908
#> SRR1431104 4 0.0921 0.888 0.000 0.028 0.000 0.972
#> SRR1082128 4 0.1743 0.872 0.000 0.004 0.056 0.940
#> SRR1078212 3 0.3074 0.813 0.000 0.000 0.848 0.152
#> SRR1458401 3 0.3494 0.829 0.172 0.000 0.824 0.004
#> SRR1447281 1 0.0000 0.973 1.000 0.000 0.000 0.000
#> SRR1339258 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1105106 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1105130 4 0.3444 0.822 0.000 0.184 0.000 0.816
#> SRR1419039 1 0.0000 0.973 1.000 0.000 0.000 0.000
#> SRR1079213 3 0.2408 0.843 0.000 0.000 0.896 0.104
#> SRR1309745 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1079408 1 0.0336 0.969 0.992 0.000 0.008 0.000
#> SRR1445550 4 0.2149 0.902 0.000 0.088 0.000 0.912
#> SRR820026 4 0.1940 0.903 0.000 0.076 0.000 0.924
#> SRR1353686 3 0.2345 0.849 0.000 0.000 0.900 0.100
#> SRR1475466 1 0.0000 0.973 1.000 0.000 0.000 0.000
#> SRR1096315 3 0.2469 0.842 0.000 0.000 0.892 0.108
#> SRR1479826 3 0.3978 0.810 0.192 0.000 0.796 0.012
#> SRR1479450 3 0.3494 0.829 0.172 0.000 0.824 0.004
#> SRR1094097 1 0.0000 0.973 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1433989 1 0.0000 0.973 1.000 0.000 0.000 0.000
#> SRR1077159 4 0.1209 0.875 0.000 0.004 0.032 0.964
#> SRR1330082 1 0.0000 0.973 1.000 0.000 0.000 0.000
#> SRR1079874 4 0.1151 0.887 0.000 0.024 0.008 0.968
#> SRR1387132 4 0.4713 0.548 0.000 0.360 0.000 0.640
#> SRR1095261 4 0.4941 0.216 0.000 0.000 0.436 0.564
#> SRR818646 4 0.2473 0.903 0.000 0.080 0.012 0.908
#> SRR1313991 1 0.0000 0.973 1.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1381372 4 0.3913 0.800 0.000 0.028 0.148 0.824
#> SRR1388257 4 0.2342 0.903 0.000 0.080 0.008 0.912
#> SRR818139 1 0.0000 0.973 1.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1080342 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1085358 4 0.2334 0.902 0.000 0.088 0.004 0.908
#> SRR1473482 1 0.1211 0.947 0.960 0.000 0.040 0.000
#> SRR1452674 1 0.0000 0.973 1.000 0.000 0.000 0.000
#> SRR1395874 1 0.0707 0.962 0.980 0.000 0.020 0.000
#> SRR1382780 1 0.0336 0.969 0.992 0.000 0.008 0.000
#> SRR1361138 4 0.2473 0.903 0.000 0.080 0.012 0.908
#> SRR1319242 4 0.2868 0.868 0.000 0.136 0.000 0.864
#> SRR1084553 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1498747 3 0.3539 0.827 0.176 0.000 0.820 0.004
#> SRR1442213 3 0.0592 0.853 0.000 0.000 0.984 0.016
#> SRR1343943 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1458828 2 0.2647 0.844 0.000 0.880 0.000 0.120
#> SRR1360280 2 0.0188 0.979 0.000 0.996 0.000 0.004
#> SRR1474208 4 0.3356 0.762 0.000 0.000 0.176 0.824
#> SRR1498726 4 0.0921 0.871 0.000 0.000 0.028 0.972
#> SRR1099857 3 0.3591 0.831 0.168 0.000 0.824 0.008
#> SRR1329423 4 0.2473 0.903 0.000 0.080 0.012 0.908
#> SRR1074430 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1485848 4 0.3307 0.830 0.000 0.028 0.104 0.868
#> SRR1471395 4 0.2266 0.903 0.000 0.084 0.004 0.912
#> SRR1096198 3 0.2216 0.849 0.000 0.000 0.908 0.092
#> SRR1323234 1 0.4643 0.408 0.656 0.000 0.344 0.000
#> SRR1073483 2 0.3172 0.784 0.000 0.840 0.000 0.160
#> SRR817817 4 0.3307 0.830 0.000 0.028 0.104 0.868
#> SRR1434070 4 0.1940 0.903 0.000 0.076 0.000 0.924
#> SRR1100941 3 0.3123 0.809 0.000 0.000 0.844 0.156
#> SRR1336682 1 0.0000 0.973 1.000 0.000 0.000 0.000
#> SRR1077211 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1389454 1 0.0000 0.973 1.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.973 1.000 0.000 0.000 0.000
#> SRR1086369 4 0.2473 0.903 0.000 0.080 0.012 0.908
#> SRR1447192 1 0.0000 0.973 1.000 0.000 0.000 0.000
#> SRR1459147 3 0.1474 0.850 0.000 0.000 0.948 0.052
#> SRR1097929 3 0.3539 0.827 0.176 0.000 0.820 0.004
#> SRR1075850 4 0.3933 0.734 0.000 0.008 0.200 0.792
#> SRR1358126 3 0.4446 0.785 0.196 0.000 0.776 0.028
#> SRR1121009 1 0.0000 0.973 1.000 0.000 0.000 0.000
#> SRR1321720 3 0.3052 0.817 0.004 0.000 0.860 0.136
#> SRR810105 3 0.3004 0.860 0.048 0.000 0.892 0.060
#> SRR1489007 4 0.4103 0.733 0.000 0.256 0.000 0.744
#> SRR1361838 4 0.1109 0.887 0.000 0.028 0.004 0.968
#> SRR1475086 4 0.2266 0.903 0.000 0.084 0.004 0.912
#> SRR1468226 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1069466 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1078114 3 0.3074 0.813 0.000 0.000 0.848 0.152
#> SRR1319991 4 0.2149 0.902 0.000 0.088 0.000 0.912
#> SRR1374543 3 0.4122 0.761 0.236 0.000 0.760 0.004
#> SRR1383237 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1486215 1 0.1938 0.927 0.936 0.000 0.052 0.012
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 1 0.1216 0.9177 0.960 0.000 0.020 0.000 0.020
#> SRR1499584 2 0.0000 0.9258 0.000 1.000 0.000 0.000 0.000
#> SRR815256 2 0.0000 0.9258 0.000 1.000 0.000 0.000 0.000
#> SRR1077996 2 0.0000 0.9258 0.000 1.000 0.000 0.000 0.000
#> SRR1338468 1 0.5264 0.6966 0.676 0.000 0.128 0.000 0.196
#> SRR1394428 4 0.1281 0.8494 0.000 0.032 0.012 0.956 0.000
#> SRR1431104 4 0.0955 0.8305 0.000 0.000 0.028 0.968 0.004
#> SRR1082128 4 0.1386 0.8348 0.000 0.000 0.032 0.952 0.016
#> SRR1078212 3 0.5605 0.5897 0.000 0.000 0.520 0.076 0.404
#> SRR1458401 5 0.1704 0.7850 0.068 0.000 0.000 0.004 0.928
#> SRR1447281 1 0.0510 0.9247 0.984 0.000 0.016 0.000 0.000
#> SRR1339258 2 0.2488 0.8995 0.000 0.872 0.124 0.000 0.004
#> SRR1105106 2 0.2230 0.9028 0.000 0.884 0.116 0.000 0.000
#> SRR1105130 4 0.4294 0.7426 0.000 0.080 0.152 0.768 0.000
#> SRR1419039 1 0.2286 0.8988 0.888 0.000 0.108 0.000 0.004
#> SRR1079213 3 0.5308 0.5406 0.000 0.000 0.532 0.052 0.416
#> SRR1309745 2 0.0000 0.9258 0.000 1.000 0.000 0.000 0.000
#> SRR1079408 1 0.1012 0.9206 0.968 0.000 0.020 0.000 0.012
#> SRR1445550 4 0.2209 0.8477 0.000 0.032 0.056 0.912 0.000
#> SRR820026 4 0.1741 0.8494 0.000 0.024 0.040 0.936 0.000
#> SRR1353686 5 0.5598 0.0382 0.000 0.000 0.276 0.112 0.612
#> SRR1475466 1 0.0162 0.9255 0.996 0.000 0.004 0.000 0.000
#> SRR1096315 3 0.5519 0.5744 0.000 0.000 0.520 0.068 0.412
#> SRR1479826 5 0.3421 0.7518 0.080 0.000 0.080 0.000 0.840
#> SRR1479450 5 0.1831 0.7853 0.076 0.000 0.000 0.004 0.920
#> SRR1094097 1 0.0000 0.9256 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.9258 0.000 1.000 0.000 0.000 0.000
#> SRR1433989 1 0.0162 0.9255 0.996 0.000 0.004 0.000 0.000
#> SRR1077159 4 0.1168 0.8346 0.000 0.000 0.032 0.960 0.008
#> SRR1330082 1 0.2233 0.9004 0.892 0.000 0.104 0.000 0.004
#> SRR1079874 4 0.1670 0.8243 0.000 0.000 0.052 0.936 0.012
#> SRR1387132 4 0.5800 0.5949 0.000 0.196 0.156 0.640 0.008
#> SRR1095261 3 0.6063 0.6413 0.000 0.000 0.540 0.316 0.144
#> SRR818646 4 0.1954 0.8474 0.000 0.032 0.028 0.932 0.008
#> SRR1313991 1 0.0290 0.9255 0.992 0.000 0.008 0.000 0.000
#> SRR1363718 2 0.0000 0.9258 0.000 1.000 0.000 0.000 0.000
#> SRR1381372 4 0.6635 0.3189 0.000 0.004 0.284 0.484 0.228
#> SRR1388257 4 0.1281 0.8494 0.000 0.032 0.012 0.956 0.000
#> SRR818139 1 0.0000 0.9256 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.9258 0.000 1.000 0.000 0.000 0.000
#> SRR1080342 2 0.0000 0.9258 0.000 1.000 0.000 0.000 0.000
#> SRR1085358 4 0.2629 0.8403 0.000 0.032 0.064 0.896 0.008
#> SRR1473482 1 0.5059 0.7164 0.696 0.000 0.112 0.000 0.192
#> SRR1452674 1 0.0000 0.9256 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 1 0.2773 0.8509 0.868 0.000 0.020 0.000 0.112
#> SRR1382780 1 0.1012 0.9206 0.968 0.000 0.020 0.000 0.012
#> SRR1361138 4 0.2313 0.8462 0.000 0.032 0.040 0.916 0.012
#> SRR1319242 4 0.4031 0.7726 0.000 0.048 0.160 0.788 0.004
#> SRR1084553 2 0.0404 0.9254 0.000 0.988 0.012 0.000 0.000
#> SRR1498747 5 0.2116 0.7852 0.076 0.000 0.008 0.004 0.912
#> SRR1442213 5 0.1638 0.7260 0.004 0.000 0.064 0.000 0.932
#> SRR1343943 2 0.0451 0.9255 0.000 0.988 0.008 0.000 0.004
#> SRR1458828 2 0.4610 0.7889 0.000 0.756 0.128 0.112 0.004
#> SRR1360280 2 0.3098 0.8755 0.000 0.836 0.148 0.016 0.000
#> SRR1474208 3 0.4878 0.4233 0.000 0.000 0.536 0.440 0.024
#> SRR1498726 4 0.0794 0.8309 0.000 0.000 0.028 0.972 0.000
#> SRR1099857 5 0.2270 0.7851 0.076 0.000 0.020 0.000 0.904
#> SRR1329423 4 0.1668 0.8498 0.000 0.032 0.028 0.940 0.000
#> SRR1074430 2 0.2230 0.9028 0.000 0.884 0.116 0.000 0.000
#> SRR1485848 4 0.4510 -0.0755 0.000 0.000 0.432 0.560 0.008
#> SRR1471395 4 0.2352 0.8466 0.000 0.032 0.048 0.912 0.008
#> SRR1096198 5 0.4687 0.2074 0.000 0.000 0.288 0.040 0.672
#> SRR1323234 5 0.5159 0.5937 0.188 0.000 0.124 0.000 0.688
#> SRR1073483 2 0.6040 0.5233 0.000 0.600 0.148 0.244 0.008
#> SRR817817 4 0.4656 -0.1234 0.000 0.000 0.480 0.508 0.012
#> SRR1434070 4 0.2362 0.8416 0.000 0.024 0.076 0.900 0.000
#> SRR1100941 3 0.6269 0.6585 0.000 0.000 0.528 0.188 0.284
#> SRR1336682 1 0.2286 0.8988 0.888 0.000 0.108 0.000 0.004
#> SRR1077211 2 0.2605 0.8870 0.000 0.852 0.148 0.000 0.000
#> SRR1389454 1 0.2286 0.8988 0.888 0.000 0.108 0.000 0.004
#> SRR1393004 1 0.0162 0.9255 0.996 0.000 0.004 0.000 0.000
#> SRR1086369 4 0.2040 0.8461 0.000 0.032 0.032 0.928 0.008
#> SRR1447192 1 0.0000 0.9256 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 5 0.4659 -0.0236 0.000 0.000 0.488 0.012 0.500
#> SRR1097929 5 0.2116 0.7852 0.076 0.000 0.008 0.004 0.912
#> SRR1075850 3 0.5167 0.4769 0.000 0.000 0.552 0.404 0.044
#> SRR1358126 5 0.4238 0.6759 0.052 0.000 0.192 0.000 0.756
#> SRR1121009 1 0.2358 0.9044 0.888 0.000 0.104 0.000 0.008
#> SRR1321720 5 0.1857 0.7305 0.004 0.000 0.008 0.060 0.928
#> SRR810105 5 0.1772 0.7636 0.032 0.000 0.008 0.020 0.940
#> SRR1489007 4 0.5075 0.6954 0.000 0.124 0.148 0.720 0.008
#> SRR1361838 4 0.0963 0.8281 0.000 0.000 0.036 0.964 0.000
#> SRR1475086 4 0.2506 0.8451 0.000 0.036 0.052 0.904 0.008
#> SRR1468226 2 0.0162 0.9260 0.000 0.996 0.004 0.000 0.000
#> SRR1069466 2 0.2389 0.9018 0.000 0.880 0.116 0.000 0.004
#> SRR1078114 3 0.5820 0.6174 0.000 0.000 0.524 0.100 0.376
#> SRR1319991 4 0.1992 0.8463 0.000 0.032 0.044 0.924 0.000
#> SRR1374543 5 0.3359 0.7569 0.096 0.000 0.052 0.004 0.848
#> SRR1383237 2 0.1410 0.9180 0.000 0.940 0.060 0.000 0.000
#> SRR1486215 1 0.4035 0.8377 0.784 0.000 0.156 0.000 0.060
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 1 0.2249 0.8295 0.900 0.000 0.000 0.004 0.032 0.064
#> SRR1499584 2 0.0000 0.8559 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR815256 2 0.0146 0.8546 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1077996 2 0.0000 0.8559 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1338468 1 0.6032 0.3733 0.460 0.000 0.012 0.000 0.356 0.172
#> SRR1394428 4 0.1836 0.7679 0.000 0.012 0.004 0.928 0.008 0.048
#> SRR1431104 4 0.2255 0.7385 0.000 0.000 0.028 0.892 0.000 0.080
#> SRR1082128 4 0.2958 0.7357 0.000 0.000 0.028 0.852 0.012 0.108
#> SRR1078212 3 0.2101 0.6943 0.000 0.000 0.892 0.004 0.100 0.004
#> SRR1458401 5 0.1951 0.8826 0.020 0.000 0.060 0.004 0.916 0.000
#> SRR1447281 1 0.0935 0.8552 0.964 0.000 0.004 0.000 0.000 0.032
#> SRR1339258 2 0.3217 0.7936 0.000 0.768 0.008 0.000 0.000 0.224
#> SRR1105106 2 0.2933 0.8078 0.000 0.796 0.004 0.000 0.000 0.200
#> SRR1105130 4 0.4435 0.4577 0.000 0.016 0.008 0.640 0.008 0.328
#> SRR1419039 1 0.3519 0.8100 0.804 0.000 0.008 0.000 0.044 0.144
#> SRR1079213 3 0.2070 0.6898 0.000 0.000 0.896 0.000 0.092 0.012
#> SRR1309745 2 0.0000 0.8559 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079408 1 0.1364 0.8469 0.944 0.000 0.000 0.004 0.004 0.048
#> SRR1445550 4 0.2449 0.7564 0.000 0.012 0.020 0.888 0.000 0.080
#> SRR820026 4 0.1760 0.7728 0.000 0.004 0.020 0.928 0.000 0.048
#> SRR1353686 3 0.5037 0.1828 0.000 0.000 0.516 0.036 0.428 0.020
#> SRR1475466 1 0.0000 0.8563 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.2101 0.6943 0.000 0.000 0.892 0.004 0.100 0.004
#> SRR1479826 5 0.1257 0.8564 0.028 0.000 0.000 0.000 0.952 0.020
#> SRR1479450 5 0.2034 0.8829 0.024 0.000 0.060 0.004 0.912 0.000
#> SRR1094097 1 0.0000 0.8563 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.8559 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433989 1 0.0000 0.8563 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077159 4 0.2786 0.7369 0.000 0.000 0.024 0.864 0.012 0.100
#> SRR1330082 1 0.3519 0.8099 0.804 0.000 0.008 0.000 0.044 0.144
#> SRR1079874 4 0.3439 0.6726 0.000 0.000 0.072 0.808 0.000 0.120
#> SRR1387132 4 0.4746 0.3659 0.000 0.024 0.008 0.580 0.008 0.380
#> SRR1095261 3 0.2066 0.6670 0.000 0.000 0.904 0.072 0.024 0.000
#> SRR818646 4 0.2619 0.7463 0.000 0.012 0.004 0.876 0.012 0.096
#> SRR1313991 1 0.0632 0.8566 0.976 0.000 0.000 0.000 0.000 0.024
#> SRR1363718 2 0.0000 0.8559 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1381372 6 0.5428 0.0000 0.000 0.000 0.048 0.308 0.052 0.592
#> SRR1388257 4 0.1723 0.7705 0.000 0.012 0.004 0.932 0.004 0.048
#> SRR818139 1 0.0547 0.8574 0.980 0.000 0.000 0.000 0.000 0.020
#> SRR1078188 2 0.0000 0.8559 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1080342 2 0.0000 0.8559 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1085358 4 0.3369 0.7153 0.000 0.012 0.008 0.812 0.012 0.156
#> SRR1473482 1 0.5894 0.4047 0.476 0.000 0.008 0.000 0.352 0.164
#> SRR1452674 1 0.0000 0.8563 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1395874 1 0.4542 0.6074 0.684 0.000 0.000 0.004 0.240 0.072
#> SRR1382780 1 0.1364 0.8469 0.944 0.000 0.000 0.004 0.004 0.048
#> SRR1361138 4 0.3315 0.7396 0.000 0.012 0.012 0.824 0.012 0.140
#> SRR1319242 4 0.4350 0.4646 0.000 0.012 0.008 0.644 0.008 0.328
#> SRR1084553 2 0.1007 0.8525 0.000 0.956 0.000 0.000 0.000 0.044
#> SRR1498747 5 0.2307 0.8811 0.024 0.000 0.064 0.000 0.900 0.012
#> SRR1442213 5 0.3874 0.7393 0.000 0.000 0.068 0.000 0.760 0.172
#> SRR1343943 2 0.0858 0.8543 0.000 0.968 0.004 0.000 0.000 0.028
#> SRR1458828 2 0.4963 0.6063 0.000 0.636 0.000 0.124 0.000 0.240
#> SRR1360280 2 0.4066 0.7202 0.000 0.696 0.004 0.028 0.000 0.272
#> SRR1474208 3 0.2442 0.6000 0.000 0.000 0.852 0.144 0.000 0.004
#> SRR1498726 4 0.1789 0.7452 0.000 0.000 0.044 0.924 0.000 0.032
#> SRR1099857 5 0.2032 0.8750 0.024 0.000 0.036 0.000 0.920 0.020
#> SRR1329423 4 0.1946 0.7550 0.000 0.012 0.004 0.912 0.000 0.072
#> SRR1074430 2 0.2912 0.7980 0.000 0.784 0.000 0.000 0.000 0.216
#> SRR1485848 3 0.4852 -0.0553 0.000 0.000 0.492 0.452 0.000 0.056
#> SRR1471395 4 0.2976 0.7245 0.000 0.012 0.020 0.844 0.000 0.124
#> SRR1096198 3 0.3961 0.1962 0.000 0.000 0.556 0.000 0.440 0.004
#> SRR1323234 5 0.3898 0.7090 0.060 0.000 0.012 0.000 0.780 0.148
#> SRR1073483 2 0.6076 0.0627 0.000 0.436 0.004 0.232 0.000 0.328
#> SRR817817 3 0.5478 -0.0081 0.000 0.000 0.512 0.352 0.000 0.136
#> SRR1434070 4 0.3125 0.7185 0.000 0.004 0.032 0.828 0.000 0.136
#> SRR1100941 3 0.1908 0.6913 0.000 0.000 0.916 0.028 0.056 0.000
#> SRR1336682 1 0.3557 0.8080 0.800 0.000 0.008 0.000 0.044 0.148
#> SRR1077211 2 0.3383 0.7570 0.000 0.728 0.004 0.000 0.000 0.268
#> SRR1389454 1 0.3519 0.8100 0.804 0.000 0.008 0.000 0.044 0.144
#> SRR1393004 1 0.0000 0.8563 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1086369 4 0.2879 0.7393 0.000 0.012 0.012 0.864 0.012 0.100
#> SRR1447192 1 0.0363 0.8566 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1459147 3 0.5711 0.2129 0.000 0.000 0.508 0.016 0.112 0.364
#> SRR1097929 5 0.2450 0.8804 0.024 0.000 0.064 0.004 0.896 0.012
#> SRR1075850 3 0.2402 0.6171 0.000 0.000 0.868 0.120 0.000 0.012
#> SRR1358126 5 0.4533 0.4386 0.004 0.000 0.032 0.000 0.588 0.376
#> SRR1121009 1 0.3599 0.8100 0.788 0.000 0.004 0.004 0.032 0.172
#> SRR1321720 5 0.1719 0.8690 0.000 0.000 0.060 0.016 0.924 0.000
#> SRR810105 5 0.1728 0.8770 0.008 0.000 0.064 0.004 0.924 0.000
#> SRR1489007 4 0.4078 0.5235 0.000 0.016 0.008 0.676 0.000 0.300
#> SRR1361838 4 0.2003 0.7403 0.000 0.000 0.044 0.912 0.000 0.044
#> SRR1475086 4 0.2865 0.7222 0.000 0.012 0.008 0.840 0.000 0.140
#> SRR1468226 2 0.0508 0.8557 0.000 0.984 0.004 0.000 0.000 0.012
#> SRR1069466 2 0.3109 0.7944 0.000 0.772 0.004 0.000 0.000 0.224
#> SRR1078114 3 0.2019 0.6957 0.000 0.000 0.900 0.012 0.088 0.000
#> SRR1319991 4 0.1757 0.7704 0.000 0.012 0.008 0.928 0.000 0.052
#> SRR1374543 5 0.1786 0.8796 0.028 0.000 0.032 0.004 0.932 0.004
#> SRR1383237 2 0.2346 0.8322 0.000 0.868 0.008 0.000 0.000 0.124
#> SRR1486215 1 0.5300 0.6082 0.556 0.000 0.016 0.000 0.072 0.356
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["ATC", "skmeans"]
# you can also extract it by
# res = res_list["ATC:skmeans"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'ATC' method.
#> Subgroups are detected by 'skmeans' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.995 0.998 0.5003 0.501 0.501
#> 3 3 0.987 0.944 0.972 0.2166 0.853 0.713
#> 4 4 0.854 0.861 0.935 0.1319 0.885 0.709
#> 5 5 0.799 0.757 0.879 0.0486 0.947 0.833
#> 6 6 0.836 0.744 0.882 0.0407 0.950 0.828
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 shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.000 1.000 1.000 0.000
#> SRR1499584 2 0.000 0.996 0.000 1.000
#> SRR815256 2 0.000 0.996 0.000 1.000
#> SRR1077996 2 0.000 0.996 0.000 1.000
#> SRR1338468 1 0.000 1.000 1.000 0.000
#> SRR1394428 2 0.000 0.996 0.000 1.000
#> SRR1431104 2 0.000 0.996 0.000 1.000
#> SRR1082128 2 0.000 0.996 0.000 1.000
#> SRR1078212 1 0.000 1.000 1.000 0.000
#> SRR1458401 1 0.000 1.000 1.000 0.000
#> SRR1447281 1 0.000 1.000 1.000 0.000
#> SRR1339258 2 0.000 0.996 0.000 1.000
#> SRR1105106 2 0.000 0.996 0.000 1.000
#> SRR1105130 2 0.000 0.996 0.000 1.000
#> SRR1419039 1 0.000 1.000 1.000 0.000
#> SRR1079213 1 0.000 1.000 1.000 0.000
#> SRR1309745 2 0.000 0.996 0.000 1.000
#> SRR1079408 1 0.000 1.000 1.000 0.000
#> SRR1445550 2 0.000 0.996 0.000 1.000
#> SRR820026 2 0.000 0.996 0.000 1.000
#> SRR1353686 1 0.000 1.000 1.000 0.000
#> SRR1475466 1 0.000 1.000 1.000 0.000
#> SRR1096315 1 0.000 1.000 1.000 0.000
#> SRR1479826 1 0.000 1.000 1.000 0.000
#> SRR1479450 1 0.000 1.000 1.000 0.000
#> SRR1094097 1 0.000 1.000 1.000 0.000
#> SRR1071737 2 0.000 0.996 0.000 1.000
#> SRR1433989 1 0.000 1.000 1.000 0.000
#> SRR1077159 2 0.000 0.996 0.000 1.000
#> SRR1330082 1 0.000 1.000 1.000 0.000
#> SRR1079874 2 0.000 0.996 0.000 1.000
#> SRR1387132 2 0.000 0.996 0.000 1.000
#> SRR1095261 2 0.000 0.996 0.000 1.000
#> SRR818646 2 0.000 0.996 0.000 1.000
#> SRR1313991 1 0.000 1.000 1.000 0.000
#> SRR1363718 2 0.000 0.996 0.000 1.000
#> SRR1381372 2 0.000 0.996 0.000 1.000
#> SRR1388257 2 0.000 0.996 0.000 1.000
#> SRR818139 1 0.000 1.000 1.000 0.000
#> SRR1078188 2 0.000 0.996 0.000 1.000
#> SRR1080342 2 0.000 0.996 0.000 1.000
#> SRR1085358 2 0.000 0.996 0.000 1.000
#> SRR1473482 1 0.000 1.000 1.000 0.000
#> SRR1452674 1 0.000 1.000 1.000 0.000
#> SRR1395874 1 0.000 1.000 1.000 0.000
#> SRR1382780 1 0.000 1.000 1.000 0.000
#> SRR1361138 2 0.000 0.996 0.000 1.000
#> SRR1319242 2 0.000 0.996 0.000 1.000
#> SRR1084553 2 0.000 0.996 0.000 1.000
#> SRR1498747 1 0.000 1.000 1.000 0.000
#> SRR1442213 1 0.000 1.000 1.000 0.000
#> SRR1343943 2 0.000 0.996 0.000 1.000
#> SRR1458828 2 0.000 0.996 0.000 1.000
#> SRR1360280 2 0.000 0.996 0.000 1.000
#> SRR1474208 2 0.000 0.996 0.000 1.000
#> SRR1498726 2 0.000 0.996 0.000 1.000
#> SRR1099857 1 0.000 1.000 1.000 0.000
#> SRR1329423 2 0.000 0.996 0.000 1.000
#> SRR1074430 2 0.000 0.996 0.000 1.000
#> SRR1485848 2 0.000 0.996 0.000 1.000
#> SRR1471395 2 0.000 0.996 0.000 1.000
#> SRR1096198 1 0.000 1.000 1.000 0.000
#> SRR1323234 1 0.000 1.000 1.000 0.000
#> SRR1073483 2 0.000 0.996 0.000 1.000
#> SRR817817 2 0.000 0.996 0.000 1.000
#> SRR1434070 2 0.000 0.996 0.000 1.000
#> SRR1100941 2 0.714 0.756 0.196 0.804
#> SRR1336682 1 0.000 1.000 1.000 0.000
#> SRR1077211 2 0.000 0.996 0.000 1.000
#> SRR1389454 1 0.000 1.000 1.000 0.000
#> SRR1393004 1 0.000 1.000 1.000 0.000
#> SRR1086369 2 0.000 0.996 0.000 1.000
#> SRR1447192 1 0.000 1.000 1.000 0.000
#> SRR1459147 1 0.000 1.000 1.000 0.000
#> SRR1097929 1 0.000 1.000 1.000 0.000
#> SRR1075850 2 0.000 0.996 0.000 1.000
#> SRR1358126 1 0.000 1.000 1.000 0.000
#> SRR1121009 1 0.000 1.000 1.000 0.000
#> SRR1321720 1 0.000 1.000 1.000 0.000
#> SRR810105 1 0.000 1.000 1.000 0.000
#> SRR1489007 2 0.000 0.996 0.000 1.000
#> SRR1361838 2 0.000 0.996 0.000 1.000
#> SRR1475086 2 0.000 0.996 0.000 1.000
#> SRR1468226 2 0.000 0.996 0.000 1.000
#> SRR1069466 2 0.000 0.996 0.000 1.000
#> SRR1078114 1 0.000 1.000 1.000 0.000
#> SRR1319991 2 0.000 0.996 0.000 1.000
#> SRR1374543 1 0.000 1.000 1.000 0.000
#> SRR1383237 2 0.000 0.996 0.000 1.000
#> SRR1486215 1 0.000 1.000 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1499584 2 0.0000 0.999 0.000 1.000 0.000
#> SRR815256 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1077996 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1338468 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1394428 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1431104 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1082128 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1078212 3 0.0000 0.811 0.000 0.000 1.000
#> SRR1458401 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1447281 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1339258 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1105106 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1105130 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1419039 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1079213 3 0.0000 0.811 0.000 0.000 1.000
#> SRR1309745 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1079408 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1445550 2 0.0000 0.999 0.000 1.000 0.000
#> SRR820026 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1353686 3 0.2711 0.738 0.088 0.000 0.912
#> SRR1475466 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1096315 3 0.0000 0.811 0.000 0.000 1.000
#> SRR1479826 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1479450 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1094097 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1071737 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1433989 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1077159 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1330082 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1079874 3 0.6291 0.368 0.000 0.468 0.532
#> SRR1387132 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1095261 3 0.0000 0.811 0.000 0.000 1.000
#> SRR818646 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1313991 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1363718 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1381372 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1388257 2 0.0000 0.999 0.000 1.000 0.000
#> SRR818139 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1078188 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1080342 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1085358 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1473482 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1452674 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1395874 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1382780 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1361138 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1319242 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1084553 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1498747 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1442213 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1343943 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1458828 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1360280 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1474208 3 0.0000 0.811 0.000 0.000 1.000
#> SRR1498726 3 0.6168 0.499 0.000 0.412 0.588
#> SRR1099857 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1329423 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1074430 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1485848 3 0.6126 0.520 0.000 0.400 0.600
#> SRR1471395 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1096198 1 0.1643 0.948 0.956 0.000 0.044
#> SRR1323234 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1073483 2 0.0000 0.999 0.000 1.000 0.000
#> SRR817817 3 0.6126 0.520 0.000 0.400 0.600
#> SRR1434070 2 0.0892 0.975 0.000 0.980 0.020
#> SRR1100941 3 0.0000 0.811 0.000 0.000 1.000
#> SRR1336682 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1077211 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1389454 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1393004 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1086369 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1447192 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1459147 1 0.4842 0.729 0.776 0.000 0.224
#> SRR1097929 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1075850 3 0.0592 0.809 0.000 0.012 0.988
#> SRR1358126 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1121009 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1321720 1 0.0000 0.992 1.000 0.000 0.000
#> SRR810105 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1489007 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1361838 3 0.6225 0.458 0.000 0.432 0.568
#> SRR1475086 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1468226 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1069466 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1078114 3 0.0000 0.811 0.000 0.000 1.000
#> SRR1319991 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1374543 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1383237 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1486215 1 0.0000 0.992 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1499584 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR815256 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1077996 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1338468 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1394428 4 0.2345 0.8376 0.000 0.100 0.000 0.900
#> SRR1431104 2 0.4730 0.4487 0.000 0.636 0.000 0.364
#> SRR1082128 4 0.4661 0.6684 0.000 0.348 0.000 0.652
#> SRR1078212 3 0.0000 0.7635 0.000 0.000 1.000 0.000
#> SRR1458401 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1447281 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1339258 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1105106 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1105130 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1419039 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.7635 0.000 0.000 1.000 0.000
#> SRR1309745 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1079408 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1445550 2 0.4933 0.2742 0.000 0.568 0.000 0.432
#> SRR820026 4 0.3726 0.8347 0.000 0.212 0.000 0.788
#> SRR1353686 3 0.3895 0.5949 0.184 0.000 0.804 0.012
#> SRR1475466 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.7635 0.000 0.000 1.000 0.000
#> SRR1479826 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1479450 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1094097 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1433989 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1077159 4 0.3688 0.8382 0.000 0.208 0.000 0.792
#> SRR1330082 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1079874 2 0.2976 0.8204 0.000 0.872 0.008 0.120
#> SRR1387132 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1095261 3 0.0000 0.7635 0.000 0.000 1.000 0.000
#> SRR818646 4 0.2704 0.8367 0.000 0.124 0.000 0.876
#> SRR1313991 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1381372 2 0.0469 0.9225 0.000 0.988 0.000 0.012
#> SRR1388257 4 0.2216 0.8331 0.000 0.092 0.000 0.908
#> SRR818139 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1080342 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1085358 4 0.3764 0.8345 0.000 0.216 0.000 0.784
#> SRR1473482 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1452674 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1395874 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1382780 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1361138 2 0.0921 0.9056 0.000 0.972 0.000 0.028
#> SRR1319242 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1084553 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1498747 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1442213 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1343943 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1458828 2 0.0188 0.9289 0.000 0.996 0.000 0.004
#> SRR1360280 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1474208 3 0.0469 0.7576 0.000 0.000 0.988 0.012
#> SRR1498726 4 0.2089 0.7796 0.000 0.048 0.020 0.932
#> SRR1099857 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1329423 4 0.1474 0.7895 0.000 0.052 0.000 0.948
#> SRR1074430 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1485848 3 0.7003 0.1275 0.000 0.424 0.460 0.116
#> SRR1471395 2 0.2760 0.8194 0.000 0.872 0.000 0.128
#> SRR1096198 1 0.4103 0.6331 0.744 0.000 0.256 0.000
#> SRR1323234 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1073483 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR817817 3 0.6661 0.0672 0.000 0.456 0.460 0.084
#> SRR1434070 2 0.4072 0.6329 0.000 0.748 0.000 0.252
#> SRR1100941 3 0.0000 0.7635 0.000 0.000 1.000 0.000
#> SRR1336682 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1077211 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1389454 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1086369 4 0.3764 0.8345 0.000 0.216 0.000 0.784
#> SRR1447192 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1459147 3 0.5212 0.2376 0.420 0.000 0.572 0.008
#> SRR1097929 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1075850 3 0.2647 0.6646 0.000 0.120 0.880 0.000
#> SRR1358126 1 0.0188 0.9879 0.996 0.000 0.000 0.004
#> SRR1121009 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1321720 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR810105 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1489007 2 0.0336 0.9257 0.000 0.992 0.000 0.008
#> SRR1361838 2 0.5650 0.2195 0.000 0.544 0.024 0.432
#> SRR1475086 2 0.1940 0.8697 0.000 0.924 0.000 0.076
#> SRR1468226 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1069466 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1078114 3 0.0000 0.7635 0.000 0.000 1.000 0.000
#> SRR1319991 4 0.3764 0.7786 0.000 0.216 0.000 0.784
#> SRR1374543 1 0.0000 0.9916 1.000 0.000 0.000 0.000
#> SRR1383237 2 0.0000 0.9315 0.000 1.000 0.000 0.000
#> SRR1486215 1 0.0000 0.9916 1.000 0.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 1 0.0162 0.9597 0.996 0.000 0.000 0.000 0.004
#> SRR1499584 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR815256 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1077996 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1338468 1 0.1341 0.9319 0.944 0.000 0.000 0.000 0.056
#> SRR1394428 4 0.5014 -0.2724 0.000 0.040 0.000 0.592 0.368
#> SRR1431104 4 0.4211 0.4592 0.000 0.360 0.000 0.636 0.004
#> SRR1082128 5 0.5581 0.5870 0.000 0.140 0.000 0.224 0.636
#> SRR1078212 3 0.0000 0.9237 0.000 0.000 1.000 0.000 0.000
#> SRR1458401 1 0.1043 0.9438 0.960 0.000 0.000 0.000 0.040
#> SRR1447281 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1105106 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1105130 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1419039 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.9237 0.000 0.000 1.000 0.000 0.000
#> SRR1309745 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1079408 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1445550 4 0.3684 0.5218 0.000 0.280 0.000 0.720 0.000
#> SRR820026 4 0.6518 0.1166 0.000 0.396 0.000 0.412 0.192
#> SRR1353686 3 0.5559 0.6005 0.112 0.000 0.684 0.020 0.184
#> SRR1475466 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.9237 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 1 0.0290 0.9582 0.992 0.000 0.000 0.000 0.008
#> SRR1479450 1 0.0162 0.9597 0.996 0.000 0.000 0.000 0.004
#> SRR1094097 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1433989 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.5666 0.6211 0.000 0.108 0.000 0.300 0.592
#> SRR1330082 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1079874 2 0.4630 0.1722 0.000 0.588 0.000 0.396 0.016
#> SRR1387132 2 0.0162 0.8909 0.000 0.996 0.000 0.000 0.004
#> SRR1095261 3 0.0000 0.9237 0.000 0.000 1.000 0.000 0.000
#> SRR818646 5 0.5195 0.5061 0.000 0.048 0.000 0.388 0.564
#> SRR1313991 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1381372 2 0.4009 0.4704 0.000 0.684 0.000 0.004 0.312
#> SRR1388257 4 0.5181 -0.2696 0.000 0.052 0.000 0.588 0.360
#> SRR818139 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1080342 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1085358 5 0.5814 0.6214 0.000 0.128 0.000 0.288 0.584
#> SRR1473482 1 0.0609 0.9527 0.980 0.000 0.000 0.000 0.020
#> SRR1452674 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 1 0.0162 0.9597 0.996 0.000 0.000 0.000 0.004
#> SRR1382780 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1361138 2 0.3427 0.6384 0.000 0.796 0.000 0.012 0.192
#> SRR1319242 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1084553 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1498747 1 0.0162 0.9597 0.996 0.000 0.000 0.000 0.004
#> SRR1442213 1 0.3861 0.7168 0.728 0.000 0.000 0.008 0.264
#> SRR1343943 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1458828 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1360280 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1474208 3 0.1478 0.8773 0.000 0.000 0.936 0.064 0.000
#> SRR1498726 4 0.2002 0.3726 0.000 0.020 0.028 0.932 0.020
#> SRR1099857 1 0.2488 0.8806 0.872 0.000 0.000 0.004 0.124
#> SRR1329423 4 0.2124 0.3504 0.000 0.028 0.000 0.916 0.056
#> SRR1074430 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1485848 4 0.6625 0.3632 0.000 0.276 0.268 0.456 0.000
#> SRR1471395 2 0.4494 0.2284 0.000 0.608 0.000 0.380 0.012
#> SRR1096198 1 0.3661 0.6149 0.724 0.000 0.276 0.000 0.000
#> SRR1323234 1 0.0609 0.9528 0.980 0.000 0.000 0.000 0.020
#> SRR1073483 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR817817 2 0.6816 -0.3895 0.000 0.352 0.308 0.340 0.000
#> SRR1434070 2 0.4383 0.0669 0.000 0.572 0.004 0.424 0.000
#> SRR1100941 3 0.0000 0.9237 0.000 0.000 1.000 0.000 0.000
#> SRR1336682 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.0404 0.8827 0.000 0.988 0.000 0.000 0.012
#> SRR1389454 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 5 0.5778 0.6248 0.000 0.128 0.000 0.280 0.592
#> SRR1447192 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 5 0.7094 -0.2542 0.272 0.000 0.340 0.012 0.376
#> SRR1097929 1 0.0162 0.9597 0.996 0.000 0.000 0.000 0.004
#> SRR1075850 3 0.2880 0.7671 0.000 0.108 0.868 0.004 0.020
#> SRR1358126 1 0.2230 0.8729 0.884 0.000 0.000 0.000 0.116
#> SRR1121009 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1321720 1 0.2488 0.8806 0.872 0.000 0.000 0.004 0.124
#> SRR810105 1 0.2488 0.8806 0.872 0.000 0.000 0.004 0.124
#> SRR1489007 2 0.0324 0.8882 0.000 0.992 0.000 0.004 0.004
#> SRR1361838 4 0.4132 0.5232 0.000 0.260 0.020 0.720 0.000
#> SRR1475086 2 0.1877 0.8200 0.000 0.924 0.000 0.064 0.012
#> SRR1468226 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1069466 2 0.0000 0.8934 0.000 1.000 0.000 0.000 0.000
#> SRR1078114 3 0.0000 0.9237 0.000 0.000 1.000 0.000 0.000
#> SRR1319991 4 0.4581 0.4409 0.000 0.196 0.000 0.732 0.072
#> SRR1374543 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000
#> SRR1383237 2 0.0162 0.8909 0.000 0.996 0.000 0.000 0.004
#> SRR1486215 1 0.2230 0.8912 0.884 0.000 0.000 0.000 0.116
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 1 0.0713 0.9022 0.972 0.000 0.000 0.000 0.000 0.028
#> SRR1499584 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR815256 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1077996 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1338468 1 0.2320 0.8161 0.864 0.000 0.000 0.000 0.004 0.132
#> SRR1394428 5 0.5400 0.3909 0.000 0.020 0.000 0.428 0.488 0.064
#> SRR1431104 4 0.2925 0.6300 0.000 0.148 0.000 0.832 0.004 0.016
#> SRR1082128 5 0.1644 0.7604 0.000 0.076 0.000 0.000 0.920 0.004
#> SRR1078212 3 0.0260 0.8888 0.000 0.000 0.992 0.000 0.000 0.008
#> SRR1458401 1 0.2752 0.8270 0.864 0.000 0.000 0.020 0.012 0.104
#> SRR1447281 1 0.0000 0.9092 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1339258 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1105106 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1105130 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1419039 1 0.0260 0.9071 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1079213 3 0.0458 0.8879 0.000 0.000 0.984 0.000 0.000 0.016
#> SRR1309745 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079408 1 0.0458 0.9066 0.984 0.000 0.000 0.000 0.000 0.016
#> SRR1445550 4 0.2070 0.6309 0.000 0.100 0.000 0.892 0.008 0.000
#> SRR820026 2 0.6291 -0.0753 0.000 0.500 0.000 0.252 0.220 0.028
#> SRR1353686 3 0.6184 0.2509 0.048 0.000 0.476 0.064 0.016 0.396
#> SRR1475466 1 0.0000 0.9092 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0363 0.8887 0.000 0.000 0.988 0.000 0.000 0.012
#> SRR1479826 1 0.0458 0.9054 0.984 0.000 0.000 0.000 0.000 0.016
#> SRR1479450 1 0.1010 0.8969 0.960 0.000 0.000 0.004 0.000 0.036
#> SRR1094097 1 0.0000 0.9092 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433989 1 0.0000 0.9092 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077159 5 0.1807 0.7805 0.000 0.060 0.000 0.020 0.920 0.000
#> SRR1330082 1 0.0146 0.9084 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1079874 4 0.5702 0.2614 0.000 0.428 0.004 0.464 0.016 0.088
#> SRR1387132 2 0.0146 0.9122 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1095261 3 0.0291 0.8885 0.000 0.000 0.992 0.004 0.000 0.004
#> SRR818646 5 0.2315 0.7387 0.000 0.008 0.000 0.084 0.892 0.016
#> SRR1313991 1 0.0000 0.9092 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1381372 6 0.4810 0.0383 0.000 0.376 0.000 0.016 0.032 0.576
#> SRR1388257 5 0.5477 0.3562 0.000 0.024 0.000 0.444 0.468 0.064
#> SRR818139 1 0.0000 0.9092 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1080342 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1085358 5 0.1951 0.7749 0.000 0.076 0.000 0.016 0.908 0.000
#> SRR1473482 1 0.1155 0.8964 0.956 0.000 0.000 0.004 0.004 0.036
#> SRR1452674 1 0.0000 0.9092 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1395874 1 0.1152 0.8943 0.952 0.000 0.000 0.004 0.000 0.044
#> SRR1382780 1 0.0458 0.9066 0.984 0.000 0.000 0.000 0.000 0.016
#> SRR1361138 2 0.3647 0.3975 0.000 0.640 0.000 0.000 0.360 0.000
#> SRR1319242 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1084553 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1498747 1 0.1082 0.8964 0.956 0.000 0.000 0.004 0.000 0.040
#> SRR1442213 6 0.3850 0.1865 0.340 0.000 0.000 0.004 0.004 0.652
#> SRR1343943 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1458828 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1360280 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1474208 3 0.1908 0.8200 0.000 0.000 0.900 0.096 0.000 0.004
#> SRR1498726 4 0.3082 0.4803 0.000 0.012 0.008 0.860 0.080 0.040
#> SRR1099857 1 0.4423 0.5105 0.644 0.000 0.000 0.020 0.016 0.320
#> SRR1329423 4 0.3575 0.4812 0.000 0.028 0.000 0.824 0.092 0.056
#> SRR1074430 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1485848 4 0.5798 0.4360 0.000 0.192 0.288 0.516 0.000 0.004
#> SRR1471395 2 0.5310 -0.1324 0.000 0.508 0.000 0.412 0.016 0.064
#> SRR1096198 1 0.3511 0.6403 0.760 0.000 0.216 0.000 0.000 0.024
#> SRR1323234 1 0.0858 0.9010 0.968 0.000 0.000 0.000 0.004 0.028
#> SRR1073483 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR817817 4 0.6311 0.3077 0.000 0.284 0.340 0.368 0.000 0.008
#> SRR1434070 2 0.4135 0.0862 0.000 0.584 0.000 0.404 0.008 0.004
#> SRR1100941 3 0.0000 0.8894 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1336682 1 0.0000 0.9092 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.0260 0.9079 0.000 0.992 0.000 0.000 0.008 0.000
#> SRR1389454 1 0.0146 0.9084 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1393004 1 0.0000 0.9092 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1086369 5 0.1779 0.7804 0.000 0.064 0.000 0.016 0.920 0.000
#> SRR1447192 1 0.0000 0.9092 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1459147 6 0.4239 0.2624 0.080 0.000 0.104 0.012 0.020 0.784
#> SRR1097929 1 0.1285 0.8899 0.944 0.000 0.000 0.004 0.000 0.052
#> SRR1075850 3 0.3295 0.6986 0.000 0.124 0.832 0.020 0.020 0.004
#> SRR1358126 1 0.3672 0.4801 0.688 0.000 0.000 0.000 0.008 0.304
#> SRR1121009 1 0.0260 0.9071 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1321720 1 0.4423 0.5105 0.644 0.000 0.000 0.020 0.016 0.320
#> SRR810105 1 0.4423 0.5105 0.644 0.000 0.000 0.020 0.016 0.320
#> SRR1489007 2 0.0862 0.8912 0.000 0.972 0.000 0.016 0.004 0.008
#> SRR1361838 4 0.1858 0.6293 0.000 0.092 0.004 0.904 0.000 0.000
#> SRR1475086 2 0.2807 0.7756 0.000 0.868 0.000 0.088 0.016 0.028
#> SRR1468226 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1069466 2 0.0000 0.9149 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1078114 3 0.0000 0.8894 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1319991 4 0.5167 0.4777 0.000 0.192 0.000 0.668 0.116 0.024
#> SRR1374543 1 0.0000 0.9092 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1383237 2 0.0405 0.9064 0.000 0.988 0.000 0.004 0.000 0.008
#> SRR1486215 1 0.3409 0.5670 0.700 0.000 0.000 0.000 0.000 0.300
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["ATC", "pam"]
# you can also extract it by
# res = res_list["ATC:pam"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'ATC' method.
#> Subgroups are detected by 'pam' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.743 0.906 0.954 0.4837 0.501 0.501
#> 3 3 0.983 0.950 0.980 0.3059 0.665 0.445
#> 4 4 0.820 0.829 0.922 0.1860 0.839 0.592
#> 5 5 0.792 0.674 0.867 0.0699 0.903 0.645
#> 6 6 0.765 0.726 0.798 0.0355 0.903 0.575
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 3
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.000 0.907 1.000 0.000
#> SRR1499584 2 0.000 0.985 0.000 1.000
#> SRR815256 2 0.000 0.985 0.000 1.000
#> SRR1077996 2 0.000 0.985 0.000 1.000
#> SRR1338468 1 0.000 0.907 1.000 0.000
#> SRR1394428 2 0.000 0.985 0.000 1.000
#> SRR1431104 2 0.000 0.985 0.000 1.000
#> SRR1082128 2 0.000 0.985 0.000 1.000
#> SRR1078212 1 0.925 0.587 0.660 0.340
#> SRR1458401 1 0.563 0.843 0.868 0.132
#> SRR1447281 1 0.000 0.907 1.000 0.000
#> SRR1339258 2 0.000 0.985 0.000 1.000
#> SRR1105106 2 0.000 0.985 0.000 1.000
#> SRR1105130 2 0.000 0.985 0.000 1.000
#> SRR1419039 1 0.000 0.907 1.000 0.000
#> SRR1079213 1 0.584 0.837 0.860 0.140
#> SRR1309745 2 0.000 0.985 0.000 1.000
#> SRR1079408 1 0.000 0.907 1.000 0.000
#> SRR1445550 2 0.000 0.985 0.000 1.000
#> SRR820026 2 0.000 0.985 0.000 1.000
#> SRR1353686 1 0.975 0.447 0.592 0.408
#> SRR1475466 1 0.000 0.907 1.000 0.000
#> SRR1096315 1 0.913 0.607 0.672 0.328
#> SRR1479826 1 0.000 0.907 1.000 0.000
#> SRR1479450 1 0.563 0.843 0.868 0.132
#> SRR1094097 1 0.000 0.907 1.000 0.000
#> SRR1071737 2 0.000 0.985 0.000 1.000
#> SRR1433989 1 0.000 0.907 1.000 0.000
#> SRR1077159 2 0.000 0.985 0.000 1.000
#> SRR1330082 1 0.000 0.907 1.000 0.000
#> SRR1079874 2 0.000 0.985 0.000 1.000
#> SRR1387132 2 0.000 0.985 0.000 1.000
#> SRR1095261 2 0.518 0.847 0.116 0.884
#> SRR818646 2 0.000 0.985 0.000 1.000
#> SRR1313991 1 0.000 0.907 1.000 0.000
#> SRR1363718 2 0.000 0.985 0.000 1.000
#> SRR1381372 2 0.000 0.985 0.000 1.000
#> SRR1388257 2 0.000 0.985 0.000 1.000
#> SRR818139 1 0.000 0.907 1.000 0.000
#> SRR1078188 2 0.000 0.985 0.000 1.000
#> SRR1080342 2 0.000 0.985 0.000 1.000
#> SRR1085358 2 0.000 0.985 0.000 1.000
#> SRR1473482 1 0.000 0.907 1.000 0.000
#> SRR1452674 1 0.000 0.907 1.000 0.000
#> SRR1395874 1 0.000 0.907 1.000 0.000
#> SRR1382780 1 0.000 0.907 1.000 0.000
#> SRR1361138 2 0.000 0.985 0.000 1.000
#> SRR1319242 2 0.000 0.985 0.000 1.000
#> SRR1084553 2 0.000 0.985 0.000 1.000
#> SRR1498747 1 0.000 0.907 1.000 0.000
#> SRR1442213 1 0.563 0.843 0.868 0.132
#> SRR1343943 2 0.000 0.985 0.000 1.000
#> SRR1458828 2 0.000 0.985 0.000 1.000
#> SRR1360280 2 0.000 0.985 0.000 1.000
#> SRR1474208 2 0.921 0.401 0.336 0.664
#> SRR1498726 2 0.625 0.787 0.156 0.844
#> SRR1099857 1 0.563 0.843 0.868 0.132
#> SRR1329423 2 0.000 0.985 0.000 1.000
#> SRR1074430 2 0.000 0.985 0.000 1.000
#> SRR1485848 2 0.000 0.985 0.000 1.000
#> SRR1471395 2 0.000 0.985 0.000 1.000
#> SRR1096198 1 0.584 0.837 0.860 0.140
#> SRR1323234 1 0.000 0.907 1.000 0.000
#> SRR1073483 2 0.000 0.985 0.000 1.000
#> SRR817817 2 0.000 0.985 0.000 1.000
#> SRR1434070 2 0.000 0.985 0.000 1.000
#> SRR1100941 1 0.975 0.447 0.592 0.408
#> SRR1336682 1 0.000 0.907 1.000 0.000
#> SRR1077211 2 0.000 0.985 0.000 1.000
#> SRR1389454 1 0.000 0.907 1.000 0.000
#> SRR1393004 1 0.000 0.907 1.000 0.000
#> SRR1086369 2 0.000 0.985 0.000 1.000
#> SRR1447192 1 0.000 0.907 1.000 0.000
#> SRR1459147 2 0.278 0.933 0.048 0.952
#> SRR1097929 1 0.563 0.843 0.868 0.132
#> SRR1075850 2 0.000 0.985 0.000 1.000
#> SRR1358126 1 0.000 0.907 1.000 0.000
#> SRR1121009 1 0.000 0.907 1.000 0.000
#> SRR1321720 1 0.939 0.558 0.644 0.356
#> SRR810105 1 0.839 0.697 0.732 0.268
#> SRR1489007 2 0.000 0.985 0.000 1.000
#> SRR1361838 2 0.000 0.985 0.000 1.000
#> SRR1475086 2 0.000 0.985 0.000 1.000
#> SRR1468226 2 0.000 0.985 0.000 1.000
#> SRR1069466 2 0.000 0.985 0.000 1.000
#> SRR1078114 1 0.975 0.447 0.592 0.408
#> SRR1319991 2 0.000 0.985 0.000 1.000
#> SRR1374543 1 0.000 0.907 1.000 0.000
#> SRR1383237 2 0.000 0.985 0.000 1.000
#> SRR1486215 1 0.000 0.907 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1499584 2 0.0000 0.996 0.000 1.000 0.000
#> SRR815256 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1077996 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1338468 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1394428 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1431104 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1082128 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1078212 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1458401 3 0.4796 0.722 0.220 0.000 0.780
#> SRR1447281 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1339258 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1105106 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1105130 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1419039 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1079213 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1309745 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1079408 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1445550 3 0.3267 0.858 0.000 0.116 0.884
#> SRR820026 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1353686 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1475466 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1096315 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1479826 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1479450 3 0.2448 0.901 0.076 0.000 0.924
#> SRR1094097 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1071737 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1433989 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1077159 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1330082 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1079874 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1387132 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1095261 3 0.0000 0.968 0.000 0.000 1.000
#> SRR818646 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1313991 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1363718 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1381372 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1388257 3 0.0000 0.968 0.000 0.000 1.000
#> SRR818139 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1078188 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1080342 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1085358 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1473482 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1452674 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1395874 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1382780 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1361138 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1319242 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1084553 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1498747 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1442213 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1343943 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1458828 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1360280 3 0.4555 0.754 0.000 0.200 0.800
#> SRR1474208 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1498726 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1099857 3 0.6126 0.349 0.400 0.000 0.600
#> SRR1329423 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1074430 2 0.0747 0.980 0.000 0.984 0.016
#> SRR1485848 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1471395 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1096198 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1323234 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1073483 3 0.2796 0.890 0.000 0.092 0.908
#> SRR817817 3 0.1289 0.944 0.000 0.032 0.968
#> SRR1434070 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1100941 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1336682 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1077211 2 0.1411 0.958 0.000 0.964 0.036
#> SRR1389454 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1393004 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1086369 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1447192 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1459147 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1097929 1 0.6204 0.216 0.576 0.000 0.424
#> SRR1075850 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1358126 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1121009 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1321720 3 0.0000 0.968 0.000 0.000 1.000
#> SRR810105 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1489007 3 0.4750 0.739 0.000 0.216 0.784
#> SRR1361838 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1475086 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1468226 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1069466 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1078114 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1319991 3 0.0000 0.968 0.000 0.000 1.000
#> SRR1374543 1 0.0000 0.979 1.000 0.000 0.000
#> SRR1383237 2 0.0000 0.996 0.000 1.000 0.000
#> SRR1486215 1 0.0000 0.979 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1499584 2 0.0000 0.966 0.000 1.000 0.000 0.000
#> SRR815256 2 0.0000 0.966 0.000 1.000 0.000 0.000
#> SRR1077996 2 0.0000 0.966 0.000 1.000 0.000 0.000
#> SRR1338468 1 0.0336 0.991 0.992 0.000 0.008 0.000
#> SRR1394428 4 0.0000 0.838 0.000 0.000 0.000 1.000
#> SRR1431104 4 0.4500 0.567 0.000 0.000 0.316 0.684
#> SRR1082128 4 0.1474 0.813 0.000 0.000 0.052 0.948
#> SRR1078212 3 0.1389 0.829 0.000 0.000 0.952 0.048
#> SRR1458401 3 0.4522 0.479 0.000 0.000 0.680 0.320
#> SRR1447281 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1339258 2 0.2149 0.912 0.000 0.912 0.000 0.088
#> SRR1105106 2 0.0000 0.966 0.000 1.000 0.000 0.000
#> SRR1105130 4 0.0000 0.838 0.000 0.000 0.000 1.000
#> SRR1419039 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.842 0.000 0.000 1.000 0.000
#> SRR1309745 2 0.0000 0.966 0.000 1.000 0.000 0.000
#> SRR1079408 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1445550 4 0.2589 0.774 0.000 0.116 0.000 0.884
#> SRR820026 4 0.0000 0.838 0.000 0.000 0.000 1.000
#> SRR1353686 3 0.0336 0.842 0.000 0.000 0.992 0.008
#> SRR1475466 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1096315 3 0.1302 0.831 0.000 0.000 0.956 0.044
#> SRR1479826 3 0.4522 0.523 0.320 0.000 0.680 0.000
#> SRR1479450 3 0.3873 0.632 0.000 0.000 0.772 0.228
#> SRR1094097 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.966 0.000 1.000 0.000 0.000
#> SRR1433989 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1077159 4 0.0921 0.827 0.000 0.000 0.028 0.972
#> SRR1330082 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1079874 4 0.4500 0.567 0.000 0.000 0.316 0.684
#> SRR1387132 4 0.1389 0.816 0.000 0.048 0.000 0.952
#> SRR1095261 3 0.3266 0.721 0.000 0.000 0.832 0.168
#> SRR818646 4 0.0000 0.838 0.000 0.000 0.000 1.000
#> SRR1313991 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.966 0.000 1.000 0.000 0.000
#> SRR1381372 4 0.1302 0.818 0.000 0.000 0.044 0.956
#> SRR1388257 4 0.0000 0.838 0.000 0.000 0.000 1.000
#> SRR818139 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.966 0.000 1.000 0.000 0.000
#> SRR1080342 2 0.0000 0.966 0.000 1.000 0.000 0.000
#> SRR1085358 4 0.0000 0.838 0.000 0.000 0.000 1.000
#> SRR1473482 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1452674 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1395874 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1382780 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1361138 4 0.0336 0.835 0.000 0.000 0.008 0.992
#> SRR1319242 4 0.0000 0.838 0.000 0.000 0.000 1.000
#> SRR1084553 2 0.0000 0.966 0.000 1.000 0.000 0.000
#> SRR1498747 3 0.0000 0.842 0.000 0.000 1.000 0.000
#> SRR1442213 3 0.0000 0.842 0.000 0.000 1.000 0.000
#> SRR1343943 2 0.0000 0.966 0.000 1.000 0.000 0.000
#> SRR1458828 2 0.2149 0.912 0.000 0.912 0.000 0.088
#> SRR1360280 4 0.1940 0.800 0.000 0.076 0.000 0.924
#> SRR1474208 3 0.4356 0.494 0.000 0.000 0.708 0.292
#> SRR1498726 4 0.4955 0.291 0.000 0.000 0.444 0.556
#> SRR1099857 3 0.0000 0.842 0.000 0.000 1.000 0.000
#> SRR1329423 4 0.0000 0.838 0.000 0.000 0.000 1.000
#> SRR1074430 2 0.2408 0.898 0.000 0.896 0.000 0.104
#> SRR1485848 4 0.4522 0.562 0.000 0.000 0.320 0.680
#> SRR1471395 4 0.0000 0.838 0.000 0.000 0.000 1.000
#> SRR1096198 3 0.0000 0.842 0.000 0.000 1.000 0.000
#> SRR1323234 3 0.4746 0.434 0.368 0.000 0.632 0.000
#> SRR1073483 4 0.3610 0.680 0.000 0.200 0.000 0.800
#> SRR817817 4 0.6052 0.509 0.000 0.064 0.320 0.616
#> SRR1434070 4 0.0000 0.838 0.000 0.000 0.000 1.000
#> SRR1100941 3 0.2408 0.790 0.000 0.000 0.896 0.104
#> SRR1336682 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1077211 2 0.2704 0.876 0.000 0.876 0.000 0.124
#> SRR1389454 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1086369 4 0.0000 0.838 0.000 0.000 0.000 1.000
#> SRR1447192 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1459147 3 0.2760 0.756 0.000 0.000 0.872 0.128
#> SRR1097929 3 0.0188 0.842 0.000 0.000 0.996 0.004
#> SRR1075850 4 0.4522 0.562 0.000 0.000 0.320 0.680
#> SRR1358126 3 0.0188 0.842 0.004 0.000 0.996 0.000
#> SRR1121009 1 0.0000 1.000 1.000 0.000 0.000 0.000
#> SRR1321720 4 0.4843 0.304 0.000 0.000 0.396 0.604
#> SRR810105 4 0.4855 0.294 0.000 0.000 0.400 0.600
#> SRR1489007 4 0.4431 0.509 0.000 0.304 0.000 0.696
#> SRR1361838 4 0.4500 0.567 0.000 0.000 0.316 0.684
#> SRR1475086 4 0.0000 0.838 0.000 0.000 0.000 1.000
#> SRR1468226 2 0.0000 0.966 0.000 1.000 0.000 0.000
#> SRR1069466 2 0.2149 0.912 0.000 0.912 0.000 0.088
#> SRR1078114 3 0.1389 0.829 0.000 0.000 0.952 0.048
#> SRR1319991 4 0.0000 0.838 0.000 0.000 0.000 1.000
#> SRR1374543 3 0.4522 0.523 0.320 0.000 0.680 0.000
#> SRR1383237 2 0.0000 0.966 0.000 1.000 0.000 0.000
#> SRR1486215 1 0.0000 1.000 1.000 0.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1499584 2 0.0000 0.9207 0.000 1.000 0.000 0.000 0.000
#> SRR815256 2 0.0000 0.9207 0.000 1.000 0.000 0.000 0.000
#> SRR1077996 2 0.0000 0.9207 0.000 1.000 0.000 0.000 0.000
#> SRR1338468 1 0.3730 0.6032 0.712 0.000 0.000 0.000 0.288
#> SRR1394428 4 0.4060 0.4165 0.000 0.000 0.360 0.640 0.000
#> SRR1431104 3 0.4273 -0.0530 0.000 0.000 0.552 0.448 0.000
#> SRR1082128 4 0.2719 0.6179 0.000 0.000 0.004 0.852 0.144
#> SRR1078212 3 0.4150 -0.0304 0.000 0.000 0.612 0.000 0.388
#> SRR1458401 5 0.0000 0.7945 0.000 0.000 0.000 0.000 1.000
#> SRR1447281 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 2 0.3336 0.7749 0.000 0.772 0.000 0.228 0.000
#> SRR1105106 2 0.0794 0.9121 0.000 0.972 0.000 0.028 0.000
#> SRR1105130 4 0.0162 0.7417 0.000 0.000 0.004 0.996 0.000
#> SRR1419039 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1079213 5 0.4287 0.3319 0.000 0.000 0.460 0.000 0.540
#> SRR1309745 2 0.0000 0.9207 0.000 1.000 0.000 0.000 0.000
#> SRR1079408 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1445550 3 0.5901 0.0458 0.000 0.116 0.540 0.344 0.000
#> SRR820026 4 0.4074 0.4142 0.000 0.000 0.364 0.636 0.000
#> SRR1353686 5 0.2929 0.6644 0.000 0.000 0.180 0.000 0.820
#> SRR1475466 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 5 0.4294 0.3163 0.000 0.000 0.468 0.000 0.532
#> SRR1479826 5 0.0000 0.7945 0.000 0.000 0.000 0.000 1.000
#> SRR1479450 5 0.0000 0.7945 0.000 0.000 0.000 0.000 1.000
#> SRR1094097 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.0000 0.9207 0.000 1.000 0.000 0.000 0.000
#> SRR1433989 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 4 0.0510 0.7372 0.000 0.000 0.000 0.984 0.016
#> SRR1330082 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.3932 0.4220 0.000 0.000 0.328 0.672 0.000
#> SRR1387132 4 0.0000 0.7418 0.000 0.000 0.000 1.000 0.000
#> SRR1095261 3 0.4252 0.0714 0.000 0.000 0.652 0.008 0.340
#> SRR818646 4 0.1478 0.7182 0.000 0.000 0.064 0.936 0.000
#> SRR1313991 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.9207 0.000 1.000 0.000 0.000 0.000
#> SRR1381372 4 0.3816 0.3923 0.000 0.000 0.000 0.696 0.304
#> SRR1388257 4 0.4074 0.4124 0.000 0.000 0.364 0.636 0.000
#> SRR818139 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1078188 2 0.0000 0.9207 0.000 1.000 0.000 0.000 0.000
#> SRR1080342 2 0.0000 0.9207 0.000 1.000 0.000 0.000 0.000
#> SRR1085358 4 0.0000 0.7418 0.000 0.000 0.000 1.000 0.000
#> SRR1473482 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1452674 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1382780 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1361138 4 0.0000 0.7418 0.000 0.000 0.000 1.000 0.000
#> SRR1319242 4 0.0000 0.7418 0.000 0.000 0.000 1.000 0.000
#> SRR1084553 2 0.0510 0.9166 0.000 0.984 0.000 0.016 0.000
#> SRR1498747 5 0.0000 0.7945 0.000 0.000 0.000 0.000 1.000
#> SRR1442213 5 0.0000 0.7945 0.000 0.000 0.000 0.000 1.000
#> SRR1343943 2 0.0000 0.9207 0.000 1.000 0.000 0.000 0.000
#> SRR1458828 2 0.4535 0.7540 0.000 0.752 0.108 0.140 0.000
#> SRR1360280 4 0.0609 0.7370 0.000 0.020 0.000 0.980 0.000
#> SRR1474208 3 0.0000 0.5081 0.000 0.000 1.000 0.000 0.000
#> SRR1498726 3 0.3003 0.4043 0.000 0.000 0.812 0.188 0.000
#> SRR1099857 5 0.0000 0.7945 0.000 0.000 0.000 0.000 1.000
#> SRR1329423 3 0.4300 -0.1141 0.000 0.000 0.524 0.476 0.000
#> SRR1074430 2 0.3452 0.7557 0.000 0.756 0.000 0.244 0.000
#> SRR1485848 3 0.0510 0.5071 0.000 0.000 0.984 0.016 0.000
#> SRR1471395 3 0.4287 -0.0829 0.000 0.000 0.540 0.460 0.000
#> SRR1096198 5 0.4210 0.4029 0.000 0.000 0.412 0.000 0.588
#> SRR1323234 5 0.0510 0.7836 0.016 0.000 0.000 0.000 0.984
#> SRR1073483 4 0.2424 0.6441 0.000 0.132 0.000 0.868 0.000
#> SRR817817 3 0.0510 0.5071 0.000 0.000 0.984 0.016 0.000
#> SRR1434070 4 0.4126 0.3961 0.000 0.000 0.380 0.620 0.000
#> SRR1100941 3 0.4138 -0.0195 0.000 0.000 0.616 0.000 0.384
#> SRR1336682 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1077211 2 0.3452 0.7557 0.000 0.756 0.000 0.244 0.000
#> SRR1389454 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 4 0.0566 0.7394 0.000 0.000 0.004 0.984 0.012
#> SRR1447192 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 5 0.6060 0.2377 0.000 0.000 0.384 0.124 0.492
#> SRR1097929 5 0.0000 0.7945 0.000 0.000 0.000 0.000 1.000
#> SRR1075850 3 0.4294 0.0705 0.000 0.000 0.532 0.468 0.000
#> SRR1358126 5 0.1410 0.7652 0.000 0.000 0.060 0.000 0.940
#> SRR1121009 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
#> SRR1321720 5 0.3636 0.5176 0.000 0.000 0.000 0.272 0.728
#> SRR810105 5 0.3636 0.5176 0.000 0.000 0.000 0.272 0.728
#> SRR1489007 4 0.3318 0.5736 0.000 0.192 0.008 0.800 0.000
#> SRR1361838 3 0.4138 0.0739 0.000 0.000 0.616 0.384 0.000
#> SRR1475086 4 0.3109 0.5812 0.000 0.000 0.200 0.800 0.000
#> SRR1468226 2 0.0000 0.9207 0.000 1.000 0.000 0.000 0.000
#> SRR1069466 2 0.3336 0.7749 0.000 0.772 0.000 0.228 0.000
#> SRR1078114 3 0.4138 -0.0195 0.000 0.000 0.616 0.000 0.384
#> SRR1319991 4 0.4249 0.2930 0.000 0.000 0.432 0.568 0.000
#> SRR1374543 5 0.0000 0.7945 0.000 0.000 0.000 0.000 1.000
#> SRR1383237 2 0.0865 0.9105 0.000 0.972 0.004 0.024 0.000
#> SRR1486215 1 0.0000 0.9849 1.000 0.000 0.000 0.000 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 1 0.5842 0.6895 0.488 0.000 0.240 0.000 0.000 0.272
#> SRR1499584 2 0.0000 0.9218 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR815256 2 0.0000 0.9218 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1077996 2 0.0000 0.9218 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1338468 1 0.2178 0.6899 0.868 0.000 0.000 0.000 0.132 0.000
#> SRR1394428 4 0.2527 0.7198 0.000 0.000 0.000 0.832 0.000 0.168
#> SRR1431104 4 0.0146 0.7949 0.000 0.000 0.004 0.996 0.000 0.000
#> SRR1082128 5 0.5727 0.0887 0.000 0.000 0.000 0.264 0.516 0.220
#> SRR1078212 3 0.4003 0.8229 0.000 0.000 0.760 0.124 0.116 0.000
#> SRR1458401 5 0.0000 0.9178 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1447281 1 0.0000 0.8015 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1339258 6 0.4159 0.3711 0.000 0.396 0.000 0.016 0.000 0.588
#> SRR1105106 2 0.1501 0.8553 0.000 0.924 0.000 0.000 0.000 0.076
#> SRR1105130 6 0.3288 0.6757 0.000 0.000 0.000 0.276 0.000 0.724
#> SRR1419039 1 0.0000 0.8015 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079213 3 0.3101 0.7557 0.000 0.000 0.756 0.000 0.244 0.000
#> SRR1309745 2 0.0000 0.9218 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079408 1 0.5842 0.6895 0.488 0.000 0.240 0.000 0.000 0.272
#> SRR1445550 4 0.1700 0.7422 0.000 0.080 0.004 0.916 0.000 0.000
#> SRR820026 4 0.2416 0.7270 0.000 0.000 0.000 0.844 0.000 0.156
#> SRR1353686 5 0.2897 0.7594 0.000 0.000 0.060 0.088 0.852 0.000
#> SRR1475466 1 0.5842 0.6895 0.488 0.000 0.240 0.000 0.000 0.272
#> SRR1096315 3 0.3215 0.7596 0.000 0.000 0.756 0.004 0.240 0.000
#> SRR1479826 5 0.0000 0.9178 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1479450 5 0.0000 0.9178 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1094097 1 0.2783 0.7911 0.836 0.000 0.148 0.000 0.000 0.016
#> SRR1071737 2 0.0000 0.9218 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433989 1 0.2402 0.7958 0.868 0.000 0.120 0.000 0.000 0.012
#> SRR1077159 6 0.6056 0.3040 0.000 0.000 0.000 0.276 0.316 0.408
#> SRR1330082 1 0.0000 0.8015 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.4254 0.3966 0.000 0.000 0.048 0.680 0.000 0.272
#> SRR1387132 6 0.3266 0.6771 0.000 0.000 0.000 0.272 0.000 0.728
#> SRR1095261 3 0.4034 0.7978 0.000 0.000 0.760 0.168 0.064 0.008
#> SRR818646 6 0.3672 0.5547 0.000 0.000 0.000 0.368 0.000 0.632
#> SRR1313991 1 0.0000 0.8015 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1363718 2 0.0000 0.9218 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1381372 6 0.4896 0.5538 0.000 0.000 0.000 0.132 0.216 0.652
#> SRR1388257 4 0.2562 0.7140 0.000 0.000 0.000 0.828 0.000 0.172
#> SRR818139 1 0.1349 0.8007 0.940 0.000 0.056 0.000 0.000 0.004
#> SRR1078188 2 0.0000 0.9218 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1080342 2 0.0000 0.9218 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1085358 6 0.3288 0.6752 0.000 0.000 0.000 0.276 0.000 0.724
#> SRR1473482 1 0.0000 0.8015 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1452674 1 0.0000 0.8015 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1395874 1 0.5842 0.6895 0.488 0.000 0.240 0.000 0.000 0.272
#> SRR1382780 1 0.5842 0.6895 0.488 0.000 0.240 0.000 0.000 0.272
#> SRR1361138 6 0.3288 0.6752 0.000 0.000 0.000 0.276 0.000 0.724
#> SRR1319242 6 0.3266 0.6771 0.000 0.000 0.000 0.272 0.000 0.728
#> SRR1084553 2 0.0547 0.9078 0.000 0.980 0.000 0.000 0.000 0.020
#> SRR1498747 5 0.0790 0.8993 0.000 0.000 0.000 0.000 0.968 0.032
#> SRR1442213 5 0.0000 0.9178 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1343943 2 0.0000 0.9218 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1458828 2 0.4931 0.4625 0.000 0.636 0.000 0.248 0.000 0.116
#> SRR1360280 6 0.3266 0.6771 0.000 0.000 0.000 0.272 0.000 0.728
#> SRR1474208 3 0.3076 0.7252 0.000 0.000 0.760 0.240 0.000 0.000
#> SRR1498726 4 0.3023 0.6595 0.000 0.000 0.140 0.828 0.000 0.032
#> SRR1099857 5 0.0000 0.9178 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1329423 4 0.0603 0.7948 0.000 0.000 0.004 0.980 0.000 0.016
#> SRR1074430 6 0.4228 0.3807 0.000 0.392 0.000 0.020 0.000 0.588
#> SRR1485848 4 0.3198 0.3876 0.000 0.000 0.260 0.740 0.000 0.000
#> SRR1471395 4 0.0146 0.7949 0.000 0.000 0.004 0.996 0.000 0.000
#> SRR1096198 3 0.3515 0.6601 0.000 0.000 0.676 0.000 0.324 0.000
#> SRR1323234 5 0.2261 0.8087 0.004 0.000 0.104 0.000 0.884 0.008
#> SRR1073483 6 0.4613 0.6678 0.000 0.116 0.000 0.196 0.000 0.688
#> SRR817817 3 0.3866 0.2812 0.000 0.000 0.516 0.484 0.000 0.000
#> SRR1434070 4 0.2340 0.7293 0.000 0.000 0.000 0.852 0.000 0.148
#> SRR1100941 3 0.4001 0.8229 0.000 0.000 0.760 0.128 0.112 0.000
#> SRR1336682 1 0.0000 0.8015 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077211 6 0.4228 0.3807 0.000 0.392 0.000 0.020 0.000 0.588
#> SRR1389454 1 0.0000 0.8015 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1393004 1 0.4999 0.7396 0.632 0.000 0.240 0.000 0.000 0.128
#> SRR1086369 6 0.5544 0.5091 0.000 0.000 0.000 0.280 0.176 0.544
#> SRR1447192 1 0.1219 0.8012 0.948 0.000 0.048 0.000 0.000 0.004
#> SRR1459147 3 0.4862 0.7496 0.000 0.000 0.704 0.048 0.192 0.056
#> SRR1097929 5 0.0458 0.9103 0.000 0.000 0.000 0.000 0.984 0.016
#> SRR1075850 3 0.4459 0.6813 0.000 0.000 0.712 0.156 0.000 0.132
#> SRR1358126 5 0.0790 0.8934 0.000 0.000 0.032 0.000 0.968 0.000
#> SRR1121009 1 0.5842 0.6895 0.488 0.000 0.240 0.000 0.000 0.272
#> SRR1321720 5 0.0000 0.9178 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR810105 5 0.0000 0.9178 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1489007 6 0.4953 0.6397 0.000 0.172 0.000 0.176 0.000 0.652
#> SRR1361838 4 0.0937 0.7792 0.000 0.000 0.040 0.960 0.000 0.000
#> SRR1475086 6 0.3982 0.4522 0.000 0.000 0.004 0.460 0.000 0.536
#> SRR1468226 2 0.0000 0.9218 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1069466 6 0.4159 0.3711 0.000 0.396 0.000 0.016 0.000 0.588
#> SRR1078114 3 0.4001 0.8229 0.000 0.000 0.760 0.128 0.112 0.000
#> SRR1319991 4 0.1814 0.7630 0.000 0.000 0.000 0.900 0.000 0.100
#> SRR1374543 5 0.0000 0.9178 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1383237 2 0.4379 0.1642 0.000 0.576 0.000 0.028 0.000 0.396
#> SRR1486215 1 0.5548 0.6952 0.548 0.000 0.184 0.000 0.000 0.268
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["ATC", "mclust"]
# you can also extract it by
# res = res_list["ATC:mclust"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'ATC' method.
#> Subgroups are detected by 'mclust' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.931 0.927 0.968 0.4444 0.575 0.575
#> 3 3 0.792 0.827 0.912 0.3793 0.672 0.484
#> 4 4 0.724 0.775 0.869 0.0872 0.904 0.770
#> 5 5 0.779 0.710 0.737 0.0770 0.880 0.680
#> 6 6 0.690 0.755 0.824 0.0835 0.908 0.663
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 2 0.9635 0.435 0.388 0.612
#> SRR1499584 2 0.0000 0.954 0.000 1.000
#> SRR815256 2 0.0000 0.954 0.000 1.000
#> SRR1077996 2 0.0000 0.954 0.000 1.000
#> SRR1338468 1 0.0000 0.997 1.000 0.000
#> SRR1394428 2 0.0000 0.954 0.000 1.000
#> SRR1431104 2 0.0000 0.954 0.000 1.000
#> SRR1082128 2 0.0000 0.954 0.000 1.000
#> SRR1078212 2 0.0376 0.952 0.004 0.996
#> SRR1458401 2 0.9710 0.407 0.400 0.600
#> SRR1447281 1 0.0000 0.997 1.000 0.000
#> SRR1339258 2 0.0000 0.954 0.000 1.000
#> SRR1105106 2 0.0000 0.954 0.000 1.000
#> SRR1105130 2 0.0000 0.954 0.000 1.000
#> SRR1419039 1 0.0000 0.997 1.000 0.000
#> SRR1079213 2 0.0376 0.952 0.004 0.996
#> SRR1309745 2 0.0000 0.954 0.000 1.000
#> SRR1079408 1 0.0000 0.997 1.000 0.000
#> SRR1445550 2 0.0000 0.954 0.000 1.000
#> SRR820026 2 0.0000 0.954 0.000 1.000
#> SRR1353686 2 0.0376 0.952 0.004 0.996
#> SRR1475466 1 0.0000 0.997 1.000 0.000
#> SRR1096315 2 0.0376 0.952 0.004 0.996
#> SRR1479826 1 0.0000 0.997 1.000 0.000
#> SRR1479450 2 0.8955 0.587 0.312 0.688
#> SRR1094097 1 0.0000 0.997 1.000 0.000
#> SRR1071737 2 0.0000 0.954 0.000 1.000
#> SRR1433989 1 0.0000 0.997 1.000 0.000
#> SRR1077159 2 0.0376 0.952 0.004 0.996
#> SRR1330082 1 0.0000 0.997 1.000 0.000
#> SRR1079874 2 0.0000 0.954 0.000 1.000
#> SRR1387132 2 0.0000 0.954 0.000 1.000
#> SRR1095261 2 0.0376 0.952 0.004 0.996
#> SRR818646 2 0.0000 0.954 0.000 1.000
#> SRR1313991 1 0.0000 0.997 1.000 0.000
#> SRR1363718 2 0.0000 0.954 0.000 1.000
#> SRR1381372 1 0.0000 0.997 1.000 0.000
#> SRR1388257 2 0.0000 0.954 0.000 1.000
#> SRR818139 1 0.0000 0.997 1.000 0.000
#> SRR1078188 2 0.0000 0.954 0.000 1.000
#> SRR1080342 2 0.0000 0.954 0.000 1.000
#> SRR1085358 2 0.0000 0.954 0.000 1.000
#> SRR1473482 1 0.0000 0.997 1.000 0.000
#> SRR1452674 1 0.0000 0.997 1.000 0.000
#> SRR1395874 1 0.3274 0.930 0.940 0.060
#> SRR1382780 1 0.0000 0.997 1.000 0.000
#> SRR1361138 2 0.0000 0.954 0.000 1.000
#> SRR1319242 2 0.0000 0.954 0.000 1.000
#> SRR1084553 2 0.0000 0.954 0.000 1.000
#> SRR1498747 2 0.7883 0.704 0.236 0.764
#> SRR1442213 1 0.0000 0.997 1.000 0.000
#> SRR1343943 2 0.0000 0.954 0.000 1.000
#> SRR1458828 2 0.0000 0.954 0.000 1.000
#> SRR1360280 2 0.0000 0.954 0.000 1.000
#> SRR1474208 2 0.0376 0.952 0.004 0.996
#> SRR1498726 2 0.0376 0.952 0.004 0.996
#> SRR1099857 1 0.0000 0.997 1.000 0.000
#> SRR1329423 2 0.0376 0.952 0.004 0.996
#> SRR1074430 2 0.0000 0.954 0.000 1.000
#> SRR1485848 2 0.0376 0.952 0.004 0.996
#> SRR1471395 2 0.0000 0.954 0.000 1.000
#> SRR1096198 2 0.0376 0.952 0.004 0.996
#> SRR1323234 1 0.0000 0.997 1.000 0.000
#> SRR1073483 2 0.0000 0.954 0.000 1.000
#> SRR817817 2 0.0376 0.952 0.004 0.996
#> SRR1434070 2 0.0000 0.954 0.000 1.000
#> SRR1100941 2 0.0376 0.952 0.004 0.996
#> SRR1336682 1 0.0000 0.997 1.000 0.000
#> SRR1077211 2 0.0000 0.954 0.000 1.000
#> SRR1389454 1 0.0000 0.997 1.000 0.000
#> SRR1393004 1 0.0000 0.997 1.000 0.000
#> SRR1086369 2 0.0000 0.954 0.000 1.000
#> SRR1447192 1 0.0000 0.997 1.000 0.000
#> SRR1459147 1 0.0000 0.997 1.000 0.000
#> SRR1097929 2 0.8861 0.601 0.304 0.696
#> SRR1075850 2 0.0376 0.952 0.004 0.996
#> SRR1358126 1 0.0000 0.997 1.000 0.000
#> SRR1121009 1 0.0000 0.997 1.000 0.000
#> SRR1321720 2 0.9686 0.416 0.396 0.604
#> SRR810105 2 0.9732 0.397 0.404 0.596
#> SRR1489007 2 0.0000 0.954 0.000 1.000
#> SRR1361838 2 0.0376 0.952 0.004 0.996
#> SRR1475086 2 0.0000 0.954 0.000 1.000
#> SRR1468226 2 0.0000 0.954 0.000 1.000
#> SRR1069466 2 0.0000 0.954 0.000 1.000
#> SRR1078114 2 0.0376 0.952 0.004 0.996
#> SRR1319991 2 0.0000 0.954 0.000 1.000
#> SRR1374543 2 0.8661 0.627 0.288 0.712
#> SRR1383237 2 0.0000 0.954 0.000 1.000
#> SRR1486215 1 0.0000 0.997 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 1 0.7558 0.540 0.644 0.072 0.284
#> SRR1499584 2 0.0000 0.939 0.000 1.000 0.000
#> SRR815256 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1077996 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1338468 1 0.1529 0.905 0.960 0.000 0.040
#> SRR1394428 2 0.1860 0.912 0.000 0.948 0.052
#> SRR1431104 2 0.1860 0.912 0.000 0.948 0.052
#> SRR1082128 2 0.1163 0.928 0.000 0.972 0.028
#> SRR1078212 3 0.3295 0.824 0.008 0.096 0.896
#> SRR1458401 1 0.1031 0.903 0.976 0.024 0.000
#> SRR1447281 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1339258 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1105106 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1105130 2 0.0424 0.937 0.000 0.992 0.008
#> SRR1419039 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1079213 3 0.3031 0.808 0.012 0.076 0.912
#> SRR1309745 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1079408 1 0.0424 0.914 0.992 0.000 0.008
#> SRR1445550 3 0.6305 0.380 0.000 0.484 0.516
#> SRR820026 2 0.6267 -0.217 0.000 0.548 0.452
#> SRR1353686 2 0.6869 0.437 0.264 0.688 0.048
#> SRR1475466 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1096315 3 0.3129 0.819 0.008 0.088 0.904
#> SRR1479826 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1479450 1 0.6260 0.227 0.552 0.448 0.000
#> SRR1094097 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1071737 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1433989 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1077159 3 0.6215 0.529 0.000 0.428 0.572
#> SRR1330082 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1079874 2 0.1964 0.909 0.000 0.944 0.056
#> SRR1387132 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1095261 3 0.3295 0.824 0.008 0.096 0.896
#> SRR818646 2 0.1643 0.918 0.000 0.956 0.044
#> SRR1313991 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1363718 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1381372 1 0.3340 0.865 0.880 0.000 0.120
#> SRR1388257 2 0.0424 0.937 0.000 0.992 0.008
#> SRR818139 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1078188 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1080342 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1085358 2 0.5926 0.154 0.000 0.644 0.356
#> SRR1473482 1 0.0747 0.912 0.984 0.000 0.016
#> SRR1452674 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1395874 1 0.0237 0.914 0.996 0.000 0.004
#> SRR1382780 1 0.0424 0.914 0.992 0.000 0.008
#> SRR1361138 2 0.1643 0.918 0.000 0.956 0.044
#> SRR1319242 2 0.0424 0.937 0.000 0.992 0.008
#> SRR1084553 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1498747 1 0.6775 0.682 0.744 0.112 0.144
#> SRR1442213 1 0.2625 0.883 0.916 0.000 0.084
#> SRR1343943 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1458828 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1360280 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1474208 3 0.3295 0.824 0.008 0.096 0.896
#> SRR1498726 3 0.6252 0.494 0.000 0.444 0.556
#> SRR1099857 1 0.0892 0.911 0.980 0.000 0.020
#> SRR1329423 2 0.2173 0.906 0.008 0.944 0.048
#> SRR1074430 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1485848 3 0.4062 0.803 0.000 0.164 0.836
#> SRR1471395 2 0.1860 0.912 0.000 0.948 0.052
#> SRR1096198 1 0.9211 0.271 0.528 0.196 0.276
#> SRR1323234 1 0.0747 0.912 0.984 0.000 0.016
#> SRR1073483 2 0.0237 0.938 0.000 0.996 0.004
#> SRR817817 3 0.3965 0.820 0.008 0.132 0.860
#> SRR1434070 3 0.6225 0.522 0.000 0.432 0.568
#> SRR1100941 3 0.3213 0.822 0.008 0.092 0.900
#> SRR1336682 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1077211 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1389454 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1393004 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1086369 2 0.0424 0.937 0.000 0.992 0.008
#> SRR1447192 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1459147 1 0.3686 0.851 0.860 0.000 0.140
#> SRR1097929 1 0.6425 0.709 0.764 0.096 0.140
#> SRR1075850 3 0.3965 0.820 0.008 0.132 0.860
#> SRR1358126 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1121009 1 0.0747 0.912 0.984 0.000 0.016
#> SRR1321720 1 0.1129 0.905 0.976 0.020 0.004
#> SRR810105 1 0.1905 0.897 0.956 0.028 0.016
#> SRR1489007 2 0.1860 0.912 0.000 0.948 0.052
#> SRR1361838 3 0.6225 0.522 0.000 0.432 0.568
#> SRR1475086 2 0.1860 0.912 0.000 0.948 0.052
#> SRR1468226 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1069466 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1078114 3 0.3532 0.824 0.008 0.108 0.884
#> SRR1319991 2 0.2448 0.887 0.000 0.924 0.076
#> SRR1374543 1 0.6204 0.295 0.576 0.424 0.000
#> SRR1383237 2 0.0000 0.939 0.000 1.000 0.000
#> SRR1486215 1 0.2796 0.881 0.908 0.000 0.092
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 1 0.6200 0.0280 0.504 0.000 0.444 0.052
#> SRR1499584 2 0.4134 0.8378 0.000 0.740 0.000 0.260
#> SRR815256 2 0.4072 0.8413 0.000 0.748 0.000 0.252
#> SRR1077996 2 0.4134 0.8378 0.000 0.740 0.000 0.260
#> SRR1338468 1 0.4599 0.5067 0.736 0.000 0.016 0.248
#> SRR1394428 2 0.0336 0.8480 0.000 0.992 0.008 0.000
#> SRR1431104 2 0.1022 0.8387 0.000 0.968 0.032 0.000
#> SRR1082128 2 0.0000 0.8499 0.000 1.000 0.000 0.000
#> SRR1078212 3 0.0000 0.9087 0.000 0.000 1.000 0.000
#> SRR1458401 1 0.1890 0.7790 0.936 0.000 0.008 0.056
#> SRR1447281 1 0.0000 0.8108 1.000 0.000 0.000 0.000
#> SRR1339258 2 0.4072 0.8413 0.000 0.748 0.000 0.252
#> SRR1105106 2 0.4072 0.8413 0.000 0.748 0.000 0.252
#> SRR1105130 2 0.0188 0.8507 0.000 0.996 0.000 0.004
#> SRR1419039 1 0.1118 0.8000 0.964 0.000 0.000 0.036
#> SRR1079213 3 0.0188 0.9050 0.004 0.000 0.996 0.000
#> SRR1309745 2 0.4072 0.8413 0.000 0.748 0.000 0.252
#> SRR1079408 1 0.1211 0.8020 0.960 0.000 0.000 0.040
#> SRR1445550 2 0.2216 0.8027 0.000 0.908 0.092 0.000
#> SRR820026 2 0.0336 0.8486 0.000 0.992 0.008 0.000
#> SRR1353686 2 0.4428 0.7750 0.048 0.840 0.064 0.048
#> SRR1475466 1 0.0707 0.8088 0.980 0.000 0.000 0.020
#> SRR1096315 3 0.0000 0.9087 0.000 0.000 1.000 0.000
#> SRR1479826 1 0.0188 0.8108 0.996 0.000 0.000 0.004
#> SRR1479450 1 0.6346 0.1508 0.572 0.368 0.008 0.052
#> SRR1094097 1 0.0000 0.8108 1.000 0.000 0.000 0.000
#> SRR1071737 2 0.4134 0.8378 0.000 0.740 0.000 0.260
#> SRR1433989 1 0.0707 0.8088 0.980 0.000 0.000 0.020
#> SRR1077159 2 0.2345 0.7957 0.000 0.900 0.100 0.000
#> SRR1330082 1 0.0000 0.8108 1.000 0.000 0.000 0.000
#> SRR1079874 2 0.2704 0.7735 0.000 0.876 0.124 0.000
#> SRR1387132 2 0.3024 0.8531 0.000 0.852 0.000 0.148
#> SRR1095261 3 0.0188 0.9089 0.000 0.004 0.996 0.000
#> SRR818646 2 0.0188 0.8490 0.000 0.996 0.004 0.000
#> SRR1313991 1 0.0336 0.8092 0.992 0.000 0.000 0.008
#> SRR1363718 2 0.4103 0.8395 0.000 0.744 0.000 0.256
#> SRR1381372 4 0.5964 0.9632 0.208 0.000 0.108 0.684
#> SRR1388257 2 0.0188 0.8507 0.000 0.996 0.000 0.004
#> SRR818139 1 0.1118 0.8000 0.964 0.000 0.000 0.036
#> SRR1078188 2 0.4103 0.8400 0.000 0.744 0.000 0.256
#> SRR1080342 2 0.4103 0.8395 0.000 0.744 0.000 0.256
#> SRR1085358 2 0.0188 0.8496 0.000 0.996 0.004 0.000
#> SRR1473482 1 0.1211 0.8020 0.960 0.000 0.000 0.040
#> SRR1452674 1 0.0000 0.8108 1.000 0.000 0.000 0.000
#> SRR1395874 1 0.4700 0.6477 0.792 0.000 0.124 0.084
#> SRR1382780 1 0.1211 0.8020 0.960 0.000 0.000 0.040
#> SRR1361138 2 0.0336 0.8480 0.000 0.992 0.008 0.000
#> SRR1319242 2 0.0188 0.8507 0.000 0.996 0.000 0.004
#> SRR1084553 2 0.4072 0.8413 0.000 0.748 0.000 0.252
#> SRR1498747 1 0.6127 0.2595 0.600 0.004 0.344 0.052
#> SRR1442213 1 0.6095 0.3000 0.668 0.000 0.108 0.224
#> SRR1343943 2 0.4072 0.8413 0.000 0.748 0.000 0.252
#> SRR1458828 2 0.3837 0.8457 0.000 0.776 0.000 0.224
#> SRR1360280 2 0.4072 0.8413 0.000 0.748 0.000 0.252
#> SRR1474208 3 0.0188 0.9089 0.000 0.004 0.996 0.000
#> SRR1498726 2 0.2149 0.8064 0.000 0.912 0.088 0.000
#> SRR1099857 1 0.3056 0.7428 0.888 0.000 0.040 0.072
#> SRR1329423 2 0.2021 0.8370 0.012 0.932 0.056 0.000
#> SRR1074430 2 0.4072 0.8413 0.000 0.748 0.000 0.252
#> SRR1485848 3 0.2408 0.7530 0.000 0.104 0.896 0.000
#> SRR1471395 2 0.1022 0.8387 0.000 0.968 0.032 0.000
#> SRR1096198 3 0.6602 0.0375 0.348 0.020 0.580 0.052
#> SRR1323234 1 0.1302 0.8000 0.956 0.000 0.000 0.044
#> SRR1073483 2 0.2704 0.8544 0.000 0.876 0.000 0.124
#> SRR817817 3 0.0188 0.9089 0.000 0.004 0.996 0.000
#> SRR1434070 2 0.4008 0.6089 0.000 0.756 0.244 0.000
#> SRR1100941 3 0.0000 0.9087 0.000 0.000 1.000 0.000
#> SRR1336682 1 0.1022 0.8019 0.968 0.000 0.000 0.032
#> SRR1077211 2 0.4072 0.8413 0.000 0.748 0.000 0.252
#> SRR1389454 1 0.1118 0.8000 0.964 0.000 0.000 0.036
#> SRR1393004 1 0.0188 0.8108 0.996 0.000 0.000 0.004
#> SRR1086369 2 0.0188 0.8507 0.000 0.996 0.000 0.004
#> SRR1447192 1 0.0000 0.8108 1.000 0.000 0.000 0.000
#> SRR1459147 4 0.5929 0.9631 0.204 0.000 0.108 0.688
#> SRR1097929 1 0.5955 0.2981 0.616 0.000 0.328 0.056
#> SRR1075850 3 0.0188 0.9089 0.000 0.004 0.996 0.000
#> SRR1358126 1 0.1118 0.8000 0.964 0.000 0.000 0.036
#> SRR1121009 1 0.1211 0.8020 0.960 0.000 0.000 0.040
#> SRR1321720 1 0.4584 0.6739 0.824 0.024 0.096 0.056
#> SRR810105 1 0.4608 0.6621 0.800 0.000 0.104 0.096
#> SRR1489007 2 0.0000 0.8499 0.000 1.000 0.000 0.000
#> SRR1361838 2 0.2647 0.7784 0.000 0.880 0.120 0.000
#> SRR1475086 2 0.0921 0.8403 0.000 0.972 0.028 0.000
#> SRR1468226 2 0.4072 0.8413 0.000 0.748 0.000 0.252
#> SRR1069466 2 0.4072 0.8413 0.000 0.748 0.000 0.252
#> SRR1078114 3 0.0000 0.9087 0.000 0.000 1.000 0.000
#> SRR1319991 2 0.0707 0.8437 0.000 0.980 0.020 0.000
#> SRR1374543 1 0.6055 0.1527 0.576 0.372 0.000 0.052
#> SRR1383237 2 0.4072 0.8413 0.000 0.748 0.000 0.252
#> SRR1486215 4 0.5910 0.9350 0.244 0.000 0.084 0.672
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 1 0.4437 0.4596 0.532 0.000 0.004 0.000 0.464
#> SRR1499584 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR815256 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1077996 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1338468 1 0.4201 0.5607 0.752 0.044 0.000 0.000 0.204
#> SRR1394428 4 0.0000 0.8082 0.000 0.000 0.000 1.000 0.000
#> SRR1431104 4 0.0000 0.8082 0.000 0.000 0.000 1.000 0.000
#> SRR1082128 4 0.0703 0.7917 0.000 0.024 0.000 0.976 0.000
#> SRR1078212 3 0.1197 0.8777 0.000 0.000 0.952 0.000 0.048
#> SRR1458401 1 0.4201 0.5206 0.592 0.000 0.000 0.000 0.408
#> SRR1447281 1 0.0000 0.8117 1.000 0.000 0.000 0.000 0.000
#> SRR1339258 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1105106 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1105130 4 0.2280 0.6321 0.000 0.120 0.000 0.880 0.000
#> SRR1419039 1 0.0609 0.8042 0.980 0.020 0.000 0.000 0.000
#> SRR1079213 3 0.0000 0.8890 0.000 0.000 1.000 0.000 0.000
#> SRR1309745 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1079408 1 0.0000 0.8117 1.000 0.000 0.000 0.000 0.000
#> SRR1445550 4 0.0000 0.8082 0.000 0.000 0.000 1.000 0.000
#> SRR820026 4 0.0609 0.7954 0.000 0.000 0.000 0.980 0.020
#> SRR1353686 4 0.4161 0.0596 0.000 0.000 0.000 0.608 0.392
#> SRR1475466 1 0.0000 0.8117 1.000 0.000 0.000 0.000 0.000
#> SRR1096315 3 0.0000 0.8890 0.000 0.000 1.000 0.000 0.000
#> SRR1479826 1 0.0000 0.8117 1.000 0.000 0.000 0.000 0.000
#> SRR1479450 1 0.4982 0.4782 0.556 0.000 0.000 0.032 0.412
#> SRR1094097 1 0.0000 0.8117 1.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1433989 1 0.0000 0.8117 1.000 0.000 0.000 0.000 0.000
#> SRR1077159 4 0.1701 0.7651 0.000 0.016 0.000 0.936 0.048
#> SRR1330082 1 0.0000 0.8117 1.000 0.000 0.000 0.000 0.000
#> SRR1079874 4 0.0162 0.8071 0.000 0.000 0.004 0.996 0.000
#> SRR1387132 4 0.4256 -0.7409 0.000 0.436 0.000 0.564 0.000
#> SRR1095261 3 0.0000 0.8890 0.000 0.000 1.000 0.000 0.000
#> SRR818646 4 0.0000 0.8082 0.000 0.000 0.000 1.000 0.000
#> SRR1313991 1 0.0162 0.8106 0.996 0.000 0.000 0.000 0.004
#> SRR1363718 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1381372 5 0.4294 0.6724 0.000 0.468 0.000 0.000 0.532
#> SRR1388257 4 0.0703 0.7918 0.000 0.024 0.000 0.976 0.000
#> SRR818139 1 0.0609 0.8042 0.980 0.020 0.000 0.000 0.000
#> SRR1078188 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1080342 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1085358 4 0.2293 0.7163 0.000 0.084 0.000 0.900 0.016
#> SRR1473482 1 0.0000 0.8117 1.000 0.000 0.000 0.000 0.000
#> SRR1452674 1 0.0000 0.8117 1.000 0.000 0.000 0.000 0.000
#> SRR1395874 1 0.4210 0.5171 0.588 0.000 0.000 0.000 0.412
#> SRR1382780 1 0.0000 0.8117 1.000 0.000 0.000 0.000 0.000
#> SRR1361138 4 0.0510 0.7984 0.000 0.016 0.000 0.984 0.000
#> SRR1319242 4 0.3636 0.0410 0.000 0.272 0.000 0.728 0.000
#> SRR1084553 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1498747 1 0.4294 0.4593 0.532 0.000 0.000 0.000 0.468
#> SRR1442213 1 0.5178 -0.0843 0.484 0.040 0.000 0.000 0.476
#> SRR1343943 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1458828 4 0.4278 -0.7965 0.000 0.452 0.000 0.548 0.000
#> SRR1360280 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1474208 3 0.1270 0.8756 0.000 0.000 0.948 0.000 0.052
#> SRR1498726 4 0.0703 0.7914 0.000 0.000 0.000 0.976 0.024
#> SRR1099857 1 0.1965 0.7347 0.904 0.000 0.000 0.000 0.096
#> SRR1329423 4 0.0000 0.8082 0.000 0.000 0.000 1.000 0.000
#> SRR1074430 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1485848 3 0.5406 0.0260 0.000 0.000 0.480 0.464 0.056
#> SRR1471395 4 0.0000 0.8082 0.000 0.000 0.000 1.000 0.000
#> SRR1096198 5 0.6911 0.0363 0.212 0.000 0.016 0.304 0.468
#> SRR1323234 1 0.0000 0.8117 1.000 0.000 0.000 0.000 0.000
#> SRR1073483 4 0.4256 -0.7433 0.000 0.436 0.000 0.564 0.000
#> SRR817817 3 0.0404 0.8890 0.000 0.000 0.988 0.000 0.012
#> SRR1434070 4 0.0771 0.7942 0.000 0.000 0.004 0.976 0.020
#> SRR1100941 3 0.0000 0.8890 0.000 0.000 1.000 0.000 0.000
#> SRR1336682 1 0.0609 0.8042 0.980 0.020 0.000 0.000 0.000
#> SRR1077211 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1389454 1 0.0609 0.8042 0.980 0.020 0.000 0.000 0.000
#> SRR1393004 1 0.0000 0.8117 1.000 0.000 0.000 0.000 0.000
#> SRR1086369 4 0.1608 0.7269 0.000 0.072 0.000 0.928 0.000
#> SRR1447192 1 0.0000 0.8117 1.000 0.000 0.000 0.000 0.000
#> SRR1459147 5 0.4294 0.6724 0.000 0.468 0.000 0.000 0.532
#> SRR1097929 1 0.4294 0.4593 0.532 0.000 0.000 0.000 0.468
#> SRR1075850 3 0.0290 0.8896 0.000 0.000 0.992 0.000 0.008
#> SRR1358126 1 0.1216 0.7928 0.960 0.020 0.000 0.000 0.020
#> SRR1121009 1 0.0000 0.8117 1.000 0.000 0.000 0.000 0.000
#> SRR1321720 1 0.6269 0.2461 0.444 0.000 0.000 0.148 0.408
#> SRR810105 1 0.4192 0.5242 0.596 0.000 0.000 0.000 0.404
#> SRR1489007 4 0.0000 0.8082 0.000 0.000 0.000 1.000 0.000
#> SRR1361838 4 0.0609 0.7954 0.000 0.000 0.000 0.980 0.020
#> SRR1475086 4 0.0000 0.8082 0.000 0.000 0.000 1.000 0.000
#> SRR1468226 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1069466 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1078114 3 0.1341 0.8726 0.000 0.000 0.944 0.000 0.056
#> SRR1319991 4 0.0000 0.8082 0.000 0.000 0.000 1.000 0.000
#> SRR1374543 1 0.4982 0.4782 0.556 0.000 0.000 0.032 0.412
#> SRR1383237 2 0.4294 1.0000 0.000 0.532 0.000 0.468 0.000
#> SRR1486215 5 0.4440 0.6714 0.004 0.468 0.000 0.000 0.528
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 1 0.3784 0.384 0.680 0.000 0.012 0.000 0.308 0.000
#> SRR1499584 2 0.1501 0.964 0.000 0.924 0.000 0.076 0.000 0.000
#> SRR815256 2 0.1958 0.970 0.000 0.896 0.000 0.100 0.004 0.000
#> SRR1077996 2 0.1501 0.964 0.000 0.924 0.000 0.076 0.000 0.000
#> SRR1338468 1 0.5250 0.469 0.608 0.000 0.000 0.000 0.184 0.208
#> SRR1394428 4 0.0632 0.814 0.000 0.000 0.000 0.976 0.024 0.000
#> SRR1431104 4 0.1204 0.858 0.000 0.056 0.000 0.944 0.000 0.000
#> SRR1082128 4 0.2300 0.848 0.000 0.144 0.000 0.856 0.000 0.000
#> SRR1078212 3 0.2320 0.866 0.000 0.004 0.864 0.000 0.132 0.000
#> SRR1458401 5 0.4771 0.641 0.256 0.000 0.000 0.096 0.648 0.000
#> SRR1447281 1 0.0146 0.821 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1339258 2 0.2340 0.939 0.000 0.852 0.000 0.148 0.000 0.000
#> SRR1105106 2 0.2100 0.967 0.000 0.884 0.000 0.112 0.004 0.000
#> SRR1105130 4 0.2912 0.797 0.000 0.216 0.000 0.784 0.000 0.000
#> SRR1419039 1 0.2969 0.721 0.776 0.000 0.000 0.000 0.224 0.000
#> SRR1079213 3 0.1787 0.857 0.000 0.068 0.920 0.000 0.008 0.004
#> SRR1309745 2 0.1501 0.964 0.000 0.924 0.000 0.076 0.000 0.000
#> SRR1079408 1 0.0547 0.818 0.980 0.000 0.000 0.000 0.020 0.000
#> SRR1445550 4 0.1951 0.861 0.000 0.076 0.000 0.908 0.016 0.000
#> SRR820026 4 0.2257 0.860 0.000 0.116 0.000 0.876 0.008 0.000
#> SRR1353686 5 0.4805 0.179 0.008 0.036 0.000 0.440 0.516 0.000
#> SRR1475466 1 0.0260 0.816 0.992 0.000 0.000 0.000 0.008 0.000
#> SRR1096315 3 0.0000 0.893 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1479826 5 0.3765 0.401 0.404 0.000 0.000 0.000 0.596 0.000
#> SRR1479450 5 0.5594 0.595 0.228 0.000 0.004 0.200 0.568 0.000
#> SRR1094097 1 0.0000 0.821 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1071737 2 0.1501 0.964 0.000 0.924 0.000 0.076 0.000 0.000
#> SRR1433989 1 0.0000 0.821 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1077159 4 0.2664 0.854 0.000 0.136 0.000 0.848 0.016 0.000
#> SRR1330082 1 0.2048 0.784 0.880 0.000 0.000 0.000 0.120 0.000
#> SRR1079874 4 0.3178 0.841 0.000 0.056 0.016 0.848 0.080 0.000
#> SRR1387132 4 0.3789 0.405 0.000 0.416 0.000 0.584 0.000 0.000
#> SRR1095261 3 0.0000 0.893 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR818646 4 0.1088 0.827 0.000 0.016 0.000 0.960 0.024 0.000
#> SRR1313991 1 0.0260 0.819 0.992 0.000 0.000 0.000 0.008 0.000
#> SRR1363718 2 0.1501 0.964 0.000 0.924 0.000 0.076 0.000 0.000
#> SRR1381372 6 0.0000 0.664 0.000 0.000 0.000 0.000 0.000 1.000
#> SRR1388257 4 0.2378 0.832 0.000 0.152 0.000 0.848 0.000 0.000
#> SRR818139 1 0.2854 0.733 0.792 0.000 0.000 0.000 0.208 0.000
#> SRR1078188 2 0.1644 0.964 0.000 0.920 0.000 0.076 0.004 0.000
#> SRR1080342 2 0.1501 0.964 0.000 0.924 0.000 0.076 0.000 0.000
#> SRR1085358 4 0.3190 0.795 0.000 0.220 0.000 0.772 0.008 0.000
#> SRR1473482 1 0.2969 0.719 0.776 0.000 0.000 0.000 0.224 0.000
#> SRR1452674 1 0.0000 0.821 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1395874 1 0.2941 0.516 0.780 0.000 0.000 0.000 0.220 0.000
#> SRR1382780 1 0.0632 0.819 0.976 0.000 0.000 0.000 0.024 0.000
#> SRR1361138 4 0.2219 0.852 0.000 0.136 0.000 0.864 0.000 0.000
#> SRR1319242 4 0.3601 0.668 0.000 0.312 0.000 0.684 0.004 0.000
#> SRR1084553 2 0.1814 0.970 0.000 0.900 0.000 0.100 0.000 0.000
#> SRR1498747 5 0.3819 0.543 0.372 0.000 0.004 0.000 0.624 0.000
#> SRR1442213 5 0.5757 0.197 0.152 0.000 0.008 0.000 0.516 0.324
#> SRR1343943 2 0.1910 0.969 0.000 0.892 0.000 0.108 0.000 0.000
#> SRR1458828 2 0.2340 0.934 0.000 0.852 0.000 0.148 0.000 0.000
#> SRR1360280 2 0.2234 0.958 0.000 0.872 0.000 0.124 0.004 0.000
#> SRR1474208 3 0.2320 0.866 0.000 0.004 0.864 0.000 0.132 0.000
#> SRR1498726 4 0.1719 0.860 0.000 0.060 0.000 0.924 0.016 0.000
#> SRR1099857 5 0.4551 0.435 0.344 0.000 0.000 0.000 0.608 0.048
#> SRR1329423 4 0.0632 0.814 0.000 0.000 0.000 0.976 0.024 0.000
#> SRR1074430 2 0.2146 0.964 0.000 0.880 0.000 0.116 0.004 0.000
#> SRR1485848 4 0.5549 0.184 0.000 0.004 0.352 0.516 0.128 0.000
#> SRR1471395 4 0.1267 0.859 0.000 0.060 0.000 0.940 0.000 0.000
#> SRR1096198 5 0.4718 0.396 0.032 0.000 0.076 0.172 0.720 0.000
#> SRR1323234 5 0.3737 0.412 0.392 0.000 0.000 0.000 0.608 0.000
#> SRR1073483 4 0.3797 0.405 0.000 0.420 0.000 0.580 0.000 0.000
#> SRR817817 3 0.2772 0.679 0.000 0.000 0.816 0.180 0.004 0.000
#> SRR1434070 4 0.3948 0.814 0.000 0.092 0.020 0.792 0.096 0.000
#> SRR1100941 3 0.0000 0.893 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1336682 1 0.2697 0.749 0.812 0.000 0.000 0.000 0.188 0.000
#> SRR1077211 2 0.2006 0.969 0.000 0.892 0.000 0.104 0.004 0.000
#> SRR1389454 1 0.2912 0.729 0.784 0.000 0.000 0.000 0.216 0.000
#> SRR1393004 1 0.0000 0.821 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1086369 4 0.2793 0.809 0.000 0.200 0.000 0.800 0.000 0.000
#> SRR1447192 1 0.0000 0.821 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1459147 6 0.0000 0.664 0.000 0.000 0.000 0.000 0.000 1.000
#> SRR1097929 5 0.3862 0.538 0.388 0.000 0.004 0.000 0.608 0.000
#> SRR1075850 3 0.0713 0.882 0.000 0.000 0.972 0.028 0.000 0.000
#> SRR1358126 5 0.3789 0.393 0.416 0.000 0.000 0.000 0.584 0.000
#> SRR1121009 1 0.2969 0.719 0.776 0.000 0.000 0.000 0.224 0.000
#> SRR1321720 5 0.4809 0.626 0.192 0.000 0.000 0.140 0.668 0.000
#> SRR810105 5 0.4200 0.639 0.208 0.000 0.000 0.072 0.720 0.000
#> SRR1489007 4 0.2176 0.851 0.000 0.080 0.000 0.896 0.024 0.000
#> SRR1361838 4 0.2856 0.853 0.000 0.076 0.000 0.856 0.068 0.000
#> SRR1475086 4 0.1204 0.858 0.000 0.056 0.000 0.944 0.000 0.000
#> SRR1468226 2 0.1858 0.969 0.000 0.904 0.000 0.092 0.004 0.000
#> SRR1069466 2 0.2340 0.939 0.000 0.852 0.000 0.148 0.000 0.000
#> SRR1078114 3 0.2320 0.866 0.000 0.004 0.864 0.000 0.132 0.000
#> SRR1319991 4 0.1524 0.859 0.000 0.060 0.000 0.932 0.008 0.000
#> SRR1374543 5 0.5268 0.593 0.324 0.000 0.004 0.104 0.568 0.000
#> SRR1383237 2 0.2100 0.967 0.000 0.884 0.000 0.112 0.004 0.000
#> SRR1486215 6 0.5462 0.118 0.376 0.000 0.000 0.000 0.128 0.496
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["ATC", "NMF"]
# you can also extract it by
# res = res_list["ATC:NMF"]
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.
#> On a matrix with 17567 rows and 90 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'ATC' method.
#> Subgroups are detected by 'NMF' method.
#> Performed in total 1250 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_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.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:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower 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)
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.725 0.879 0.948 0.4578 0.537 0.537
#> 3 3 0.523 0.565 0.761 0.4184 0.748 0.554
#> 4 4 0.654 0.730 0.861 0.1366 0.803 0.505
#> 5 5 0.627 0.600 0.787 0.0658 0.870 0.558
#> 6 6 0.682 0.604 0.787 0.0482 0.849 0.421
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 2
Following shows 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 class
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.
cbind(get_classes(res, k = 2), get_membership(res, k = 2))
#> class entropy silhouette p1 p2
#> SRR808704 1 0.0000 0.949 1.000 0.000
#> SRR1499584 2 0.0000 0.924 0.000 1.000
#> SRR815256 2 0.0000 0.924 0.000 1.000
#> SRR1077996 2 0.0000 0.924 0.000 1.000
#> SRR1338468 1 0.0000 0.949 1.000 0.000
#> SRR1394428 1 0.6148 0.794 0.848 0.152
#> SRR1431104 1 0.0000 0.949 1.000 0.000
#> SRR1082128 1 0.0000 0.949 1.000 0.000
#> SRR1078212 1 0.0000 0.949 1.000 0.000
#> SRR1458401 1 0.0000 0.949 1.000 0.000
#> SRR1447281 1 0.0000 0.949 1.000 0.000
#> SRR1339258 2 0.0000 0.924 0.000 1.000
#> SRR1105106 2 0.0000 0.924 0.000 1.000
#> SRR1105130 2 0.5178 0.864 0.116 0.884
#> SRR1419039 1 0.0000 0.949 1.000 0.000
#> SRR1079213 1 0.0000 0.949 1.000 0.000
#> SRR1309745 2 0.0000 0.924 0.000 1.000
#> SRR1079408 1 0.0000 0.949 1.000 0.000
#> SRR1445550 2 0.5946 0.841 0.144 0.856
#> SRR820026 2 0.9323 0.513 0.348 0.652
#> SRR1353686 1 0.0000 0.949 1.000 0.000
#> SRR1475466 1 0.0000 0.949 1.000 0.000
#> SRR1096315 1 0.0000 0.949 1.000 0.000
#> SRR1479826 1 0.0000 0.949 1.000 0.000
#> SRR1479450 1 0.0000 0.949 1.000 0.000
#> SRR1094097 1 0.0000 0.949 1.000 0.000
#> SRR1071737 2 0.0000 0.924 0.000 1.000
#> SRR1433989 1 0.0000 0.949 1.000 0.000
#> SRR1077159 1 0.9358 0.440 0.648 0.352
#> SRR1330082 1 0.0000 0.949 1.000 0.000
#> SRR1079874 1 0.0000 0.949 1.000 0.000
#> SRR1387132 2 0.5737 0.848 0.136 0.864
#> SRR1095261 1 0.0000 0.949 1.000 0.000
#> SRR818646 1 0.8016 0.662 0.756 0.244
#> SRR1313991 1 0.0000 0.949 1.000 0.000
#> SRR1363718 2 0.0000 0.924 0.000 1.000
#> SRR1381372 1 0.0000 0.949 1.000 0.000
#> SRR1388257 1 0.9754 0.284 0.592 0.408
#> SRR818139 1 0.0000 0.949 1.000 0.000
#> SRR1078188 2 0.0000 0.924 0.000 1.000
#> SRR1080342 2 0.0000 0.924 0.000 1.000
#> SRR1085358 2 0.7528 0.756 0.216 0.784
#> SRR1473482 1 0.0000 0.949 1.000 0.000
#> SRR1452674 1 0.0000 0.949 1.000 0.000
#> SRR1395874 1 0.0000 0.949 1.000 0.000
#> SRR1382780 1 0.0000 0.949 1.000 0.000
#> SRR1361138 1 0.9460 0.410 0.636 0.364
#> SRR1319242 2 0.5519 0.855 0.128 0.872
#> SRR1084553 2 0.0000 0.924 0.000 1.000
#> SRR1498747 1 0.0000 0.949 1.000 0.000
#> SRR1442213 1 0.0000 0.949 1.000 0.000
#> SRR1343943 2 0.0000 0.924 0.000 1.000
#> SRR1458828 2 0.0000 0.924 0.000 1.000
#> SRR1360280 2 0.0000 0.924 0.000 1.000
#> SRR1474208 1 0.3431 0.893 0.936 0.064
#> SRR1498726 1 0.0000 0.949 1.000 0.000
#> SRR1099857 1 0.0000 0.949 1.000 0.000
#> SRR1329423 1 0.0000 0.949 1.000 0.000
#> SRR1074430 2 0.0000 0.924 0.000 1.000
#> SRR1485848 2 0.8016 0.714 0.244 0.756
#> SRR1471395 1 0.3114 0.900 0.944 0.056
#> SRR1096198 1 0.0000 0.949 1.000 0.000
#> SRR1323234 1 0.0000 0.949 1.000 0.000
#> SRR1073483 2 0.1184 0.918 0.016 0.984
#> SRR817817 2 0.3431 0.895 0.064 0.936
#> SRR1434070 2 0.0376 0.923 0.004 0.996
#> SRR1100941 1 0.0000 0.949 1.000 0.000
#> SRR1336682 1 0.0000 0.949 1.000 0.000
#> SRR1077211 2 0.0000 0.924 0.000 1.000
#> SRR1389454 1 0.0000 0.949 1.000 0.000
#> SRR1393004 1 0.0000 0.949 1.000 0.000
#> SRR1086369 1 0.8144 0.648 0.748 0.252
#> SRR1447192 1 0.0000 0.949 1.000 0.000
#> SRR1459147 1 0.0000 0.949 1.000 0.000
#> SRR1097929 1 0.0000 0.949 1.000 0.000
#> SRR1075850 2 0.9850 0.294 0.428 0.572
#> SRR1358126 1 0.0000 0.949 1.000 0.000
#> SRR1121009 1 0.0000 0.949 1.000 0.000
#> SRR1321720 1 0.0000 0.949 1.000 0.000
#> SRR810105 1 0.0000 0.949 1.000 0.000
#> SRR1489007 2 0.5408 0.858 0.124 0.876
#> SRR1361838 1 0.9909 0.162 0.556 0.444
#> SRR1475086 1 0.7745 0.688 0.772 0.228
#> SRR1468226 2 0.0000 0.924 0.000 1.000
#> SRR1069466 2 0.0000 0.924 0.000 1.000
#> SRR1078114 1 0.0000 0.949 1.000 0.000
#> SRR1319991 2 0.6973 0.792 0.188 0.812
#> SRR1374543 1 0.0000 0.949 1.000 0.000
#> SRR1383237 2 0.0000 0.924 0.000 1.000
#> SRR1486215 1 0.0000 0.949 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR808704 1 0.5291 0.2159 0.732 0.000 0.268
#> SRR1499584 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR815256 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1077996 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1338468 1 0.0747 0.6233 0.984 0.000 0.016
#> SRR1394428 1 0.8624 0.4268 0.476 0.100 0.424
#> SRR1431104 3 0.8324 -0.3398 0.372 0.088 0.540
#> SRR1082128 1 0.2879 0.6477 0.924 0.024 0.052
#> SRR1078212 3 0.6180 0.5444 0.416 0.000 0.584
#> SRR1458401 1 0.3879 0.6548 0.848 0.000 0.152
#> SRR1447281 1 0.6168 0.5679 0.588 0.000 0.412
#> SRR1339258 2 0.4399 0.7477 0.000 0.812 0.188
#> SRR1105106 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1105130 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1419039 1 0.6180 0.5619 0.584 0.000 0.416
#> SRR1079213 3 0.6204 0.5448 0.424 0.000 0.576
#> SRR1309745 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1079408 1 0.1643 0.6021 0.956 0.000 0.044
#> SRR1445550 2 0.5216 0.6616 0.000 0.740 0.260
#> SRR820026 3 0.5848 0.2712 0.012 0.268 0.720
#> SRR1353686 1 0.5529 0.2297 0.704 0.000 0.296
#> SRR1475466 1 0.1411 0.6323 0.964 0.000 0.036
#> SRR1096315 3 0.6204 0.5448 0.424 0.000 0.576
#> SRR1479826 1 0.2878 0.6584 0.904 0.000 0.096
#> SRR1479450 1 0.6180 0.5645 0.584 0.000 0.416
#> SRR1094097 1 0.5733 0.6139 0.676 0.000 0.324
#> SRR1071737 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1433989 1 0.1163 0.6377 0.972 0.000 0.028
#> SRR1077159 3 0.9553 0.4770 0.272 0.244 0.484
#> SRR1330082 1 0.6192 0.5583 0.580 0.000 0.420
#> SRR1079874 3 0.6386 0.5414 0.412 0.004 0.584
#> SRR1387132 2 0.4782 0.7568 0.016 0.820 0.164
#> SRR1095261 3 0.6204 0.5448 0.424 0.000 0.576
#> SRR818646 3 0.9515 -0.3280 0.388 0.188 0.424
#> SRR1313991 1 0.5529 0.6230 0.704 0.000 0.296
#> SRR1363718 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1381372 1 0.2165 0.6523 0.936 0.000 0.064
#> SRR1388257 3 0.9623 -0.1061 0.204 0.384 0.412
#> SRR818139 1 0.5016 0.6378 0.760 0.000 0.240
#> SRR1078188 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1080342 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1085358 2 0.1031 0.8797 0.000 0.976 0.024
#> SRR1473482 1 0.0424 0.6371 0.992 0.000 0.008
#> SRR1452674 1 0.6062 0.5865 0.616 0.000 0.384
#> SRR1395874 1 0.3116 0.5186 0.892 0.000 0.108
#> SRR1382780 1 0.2165 0.5799 0.936 0.000 0.064
#> SRR1361138 2 0.6587 0.1639 0.424 0.568 0.008
#> SRR1319242 2 0.7710 0.4859 0.144 0.680 0.176
#> SRR1084553 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1498747 1 0.5327 0.5940 0.728 0.000 0.272
#> SRR1442213 3 0.6307 0.4727 0.488 0.000 0.512
#> SRR1343943 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1458828 2 0.0592 0.8873 0.000 0.988 0.012
#> SRR1360280 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1474208 3 0.6398 0.5463 0.416 0.004 0.580
#> SRR1498726 3 0.4995 0.2708 0.092 0.068 0.840
#> SRR1099857 1 0.1289 0.6105 0.968 0.000 0.032
#> SRR1329423 1 0.6204 0.5542 0.576 0.000 0.424
#> SRR1074430 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1485848 3 0.9020 0.5058 0.220 0.220 0.560
#> SRR1471395 3 0.9569 -0.3277 0.384 0.196 0.420
#> SRR1096198 3 0.6308 0.4477 0.492 0.000 0.508
#> SRR1323234 1 0.0237 0.6311 0.996 0.000 0.004
#> SRR1073483 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR817817 3 0.8126 0.5409 0.356 0.080 0.564
#> SRR1434070 3 0.6295 0.0243 0.000 0.472 0.528
#> SRR1100941 3 0.6204 0.5448 0.424 0.000 0.576
#> SRR1336682 1 0.6204 0.5542 0.576 0.000 0.424
#> SRR1077211 2 0.5497 0.7019 0.124 0.812 0.064
#> SRR1389454 1 0.5926 0.5990 0.644 0.000 0.356
#> SRR1393004 1 0.2165 0.6541 0.936 0.000 0.064
#> SRR1086369 1 0.9364 0.1228 0.456 0.372 0.172
#> SRR1447192 1 0.6079 0.5842 0.612 0.000 0.388
#> SRR1459147 1 0.5465 0.0601 0.712 0.000 0.288
#> SRR1097929 1 0.3879 0.4964 0.848 0.000 0.152
#> SRR1075850 3 0.6565 0.5470 0.416 0.008 0.576
#> SRR1358126 1 0.6045 0.5862 0.620 0.000 0.380
#> SRR1121009 1 0.1411 0.6098 0.964 0.000 0.036
#> SRR1321720 1 0.2959 0.6561 0.900 0.000 0.100
#> SRR810105 1 0.1163 0.6163 0.972 0.000 0.028
#> SRR1489007 2 0.7091 0.4110 0.024 0.560 0.416
#> SRR1361838 3 0.5360 0.3176 0.012 0.220 0.768
#> SRR1475086 3 0.9896 -0.1068 0.264 0.360 0.376
#> SRR1468226 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1069466 2 0.0592 0.8878 0.000 0.988 0.012
#> SRR1078114 3 0.6204 0.5448 0.424 0.000 0.576
#> SRR1319991 2 0.6473 0.5492 0.016 0.652 0.332
#> SRR1374543 1 0.6215 0.5548 0.572 0.000 0.428
#> SRR1383237 2 0.0000 0.8930 0.000 1.000 0.000
#> SRR1486215 1 0.0424 0.6283 0.992 0.000 0.008
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR808704 4 0.5750 0.240 0.028 0.000 0.440 0.532
#> SRR1499584 2 0.0000 0.903 0.000 1.000 0.000 0.000
#> SRR815256 2 0.0000 0.903 0.000 1.000 0.000 0.000
#> SRR1077996 2 0.0000 0.903 0.000 1.000 0.000 0.000
#> SRR1338468 1 0.1677 0.820 0.948 0.000 0.012 0.040
#> SRR1394428 4 0.2715 0.684 0.004 0.100 0.004 0.892
#> SRR1431104 4 0.3668 0.674 0.000 0.004 0.188 0.808
#> SRR1082128 1 0.7141 0.512 0.616 0.256 0.040 0.088
#> SRR1078212 3 0.0336 0.900 0.000 0.000 0.992 0.008
#> SRR1458401 4 0.5417 0.204 0.412 0.000 0.016 0.572
#> SRR1447281 4 0.1716 0.745 0.064 0.000 0.000 0.936
#> SRR1339258 2 0.2760 0.826 0.000 0.872 0.000 0.128
#> SRR1105106 2 0.1302 0.885 0.044 0.956 0.000 0.000
#> SRR1105130 2 0.0000 0.903 0.000 1.000 0.000 0.000
#> SRR1419039 1 0.4955 0.278 0.556 0.000 0.000 0.444
#> SRR1079213 3 0.1022 0.887 0.032 0.000 0.968 0.000
#> SRR1309745 2 0.0000 0.903 0.000 1.000 0.000 0.000
#> SRR1079408 1 0.6587 0.409 0.576 0.000 0.100 0.324
#> SRR1445550 2 0.6928 0.404 0.000 0.556 0.136 0.308
#> SRR820026 3 0.5500 0.650 0.000 0.068 0.708 0.224
#> SRR1353686 3 0.4889 0.371 0.004 0.000 0.636 0.360
#> SRR1475466 4 0.5929 0.592 0.204 0.000 0.108 0.688
#> SRR1096315 3 0.0336 0.899 0.008 0.000 0.992 0.000
#> SRR1479826 1 0.3545 0.773 0.828 0.000 0.008 0.164
#> SRR1479450 4 0.0707 0.746 0.020 0.000 0.000 0.980
#> SRR1094097 4 0.2255 0.746 0.068 0.000 0.012 0.920
#> SRR1071737 2 0.0000 0.903 0.000 1.000 0.000 0.000
#> SRR1433989 4 0.6163 0.160 0.416 0.000 0.052 0.532
#> SRR1077159 2 0.7925 0.203 0.140 0.468 0.364 0.028
#> SRR1330082 4 0.2799 0.720 0.108 0.000 0.008 0.884
#> SRR1079874 3 0.1576 0.885 0.004 0.000 0.948 0.048
#> SRR1387132 2 0.2662 0.853 0.016 0.900 0.000 0.084
#> SRR1095261 3 0.0336 0.899 0.008 0.000 0.992 0.000
#> SRR818646 4 0.4955 0.323 0.008 0.344 0.000 0.648
#> SRR1313991 4 0.2919 0.747 0.044 0.000 0.060 0.896
#> SRR1363718 2 0.0000 0.903 0.000 1.000 0.000 0.000
#> SRR1381372 1 0.0000 0.806 1.000 0.000 0.000 0.000
#> SRR1388257 2 0.6146 0.566 0.056 0.632 0.008 0.304
#> SRR818139 1 0.4746 0.478 0.632 0.000 0.000 0.368
#> SRR1078188 2 0.0188 0.902 0.000 0.996 0.004 0.000
#> SRR1080342 2 0.0000 0.903 0.000 1.000 0.000 0.000
#> SRR1085358 2 0.1284 0.891 0.024 0.964 0.000 0.012
#> SRR1473482 1 0.1970 0.819 0.932 0.000 0.008 0.060
#> SRR1452674 4 0.1902 0.746 0.064 0.000 0.004 0.932
#> SRR1395874 4 0.7105 0.486 0.184 0.000 0.256 0.560
#> SRR1382780 1 0.6068 0.623 0.676 0.000 0.116 0.208
#> SRR1361138 2 0.5202 0.730 0.152 0.772 0.060 0.016
#> SRR1319242 2 0.1936 0.877 0.028 0.940 0.032 0.000
#> SRR1084553 2 0.0000 0.903 0.000 1.000 0.000 0.000
#> SRR1498747 4 0.3969 0.701 0.016 0.000 0.180 0.804
#> SRR1442213 1 0.0707 0.804 0.980 0.000 0.020 0.000
#> SRR1343943 2 0.0469 0.900 0.000 0.988 0.000 0.012
#> SRR1458828 2 0.0188 0.903 0.000 0.996 0.000 0.004
#> SRR1360280 2 0.0000 0.903 0.000 1.000 0.000 0.000
#> SRR1474208 3 0.0469 0.899 0.000 0.000 0.988 0.012
#> SRR1498726 3 0.4679 0.491 0.000 0.000 0.648 0.352
#> SRR1099857 1 0.1151 0.817 0.968 0.000 0.008 0.024
#> SRR1329423 4 0.0000 0.741 0.000 0.000 0.000 1.000
#> SRR1074430 2 0.0000 0.903 0.000 1.000 0.000 0.000
#> SRR1485848 3 0.0657 0.899 0.000 0.004 0.984 0.012
#> SRR1471395 4 0.2610 0.730 0.000 0.012 0.088 0.900
#> SRR1096198 3 0.1474 0.882 0.000 0.000 0.948 0.052
#> SRR1323234 1 0.1489 0.820 0.952 0.000 0.004 0.044
#> SRR1073483 2 0.0000 0.903 0.000 1.000 0.000 0.000
#> SRR817817 3 0.0188 0.899 0.000 0.004 0.996 0.000
#> SRR1434070 3 0.2198 0.853 0.000 0.072 0.920 0.008
#> SRR1100941 3 0.0188 0.899 0.004 0.000 0.996 0.000
#> SRR1336682 4 0.2345 0.733 0.100 0.000 0.000 0.900
#> SRR1077211 2 0.3215 0.828 0.092 0.876 0.032 0.000
#> SRR1389454 1 0.4250 0.630 0.724 0.000 0.000 0.276
#> SRR1393004 4 0.5478 0.395 0.344 0.000 0.028 0.628
#> SRR1086369 2 0.5527 0.449 0.356 0.616 0.000 0.028
#> SRR1447192 4 0.1557 0.746 0.056 0.000 0.000 0.944
#> SRR1459147 1 0.0336 0.804 0.992 0.000 0.008 0.000
#> SRR1097929 4 0.6031 0.628 0.144 0.000 0.168 0.688
#> SRR1075850 3 0.1661 0.872 0.052 0.004 0.944 0.000
#> SRR1358126 4 0.4781 0.423 0.336 0.000 0.004 0.660
#> SRR1121009 1 0.3009 0.808 0.892 0.000 0.056 0.052
#> SRR1321720 1 0.3443 0.790 0.848 0.000 0.016 0.136
#> SRR810105 1 0.2739 0.814 0.904 0.000 0.036 0.060
#> SRR1489007 4 0.4193 0.498 0.000 0.268 0.000 0.732
#> SRR1361838 3 0.3271 0.817 0.000 0.012 0.856 0.132
#> SRR1475086 4 0.3818 0.708 0.000 0.108 0.048 0.844
#> SRR1468226 2 0.0000 0.903 0.000 1.000 0.000 0.000
#> SRR1069466 2 0.0336 0.902 0.000 0.992 0.000 0.008
#> SRR1078114 3 0.0524 0.900 0.008 0.000 0.988 0.004
#> SRR1319991 2 0.4697 0.537 0.000 0.644 0.000 0.356
#> SRR1374543 4 0.0000 0.741 0.000 0.000 0.000 1.000
#> SRR1383237 2 0.1635 0.883 0.044 0.948 0.008 0.000
#> SRR1486215 1 0.0779 0.813 0.980 0.000 0.004 0.016
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR808704 1 0.6753 0.2205 0.456 0.000 0.280 0.004 0.260
#> SRR1499584 2 0.0000 0.9009 0.000 1.000 0.000 0.000 0.000
#> SRR815256 2 0.0324 0.9009 0.000 0.992 0.004 0.000 0.004
#> SRR1077996 2 0.0000 0.9009 0.000 1.000 0.000 0.000 0.000
#> SRR1338468 5 0.3741 0.3822 0.004 0.000 0.000 0.264 0.732
#> SRR1394428 1 0.4000 0.4926 0.784 0.020 0.000 0.180 0.016
#> SRR1431104 1 0.5814 0.2557 0.584 0.000 0.288 0.128 0.000
#> SRR1082128 5 0.3090 0.5539 0.020 0.112 0.004 0.004 0.860
#> SRR1078212 3 0.0727 0.8406 0.012 0.000 0.980 0.004 0.004
#> SRR1458401 5 0.2930 0.5992 0.164 0.000 0.004 0.000 0.832
#> SRR1447281 1 0.3649 0.5976 0.808 0.000 0.000 0.040 0.152
#> SRR1339258 2 0.5025 0.6150 0.124 0.704 0.000 0.172 0.000
#> SRR1105106 2 0.1764 0.8673 0.000 0.928 0.008 0.064 0.000
#> SRR1105130 2 0.1357 0.8878 0.000 0.948 0.000 0.004 0.048
#> SRR1419039 4 0.6298 0.4234 0.292 0.000 0.000 0.520 0.188
#> SRR1079213 3 0.1041 0.8379 0.000 0.000 0.964 0.032 0.004
#> SRR1309745 2 0.0162 0.9008 0.000 0.996 0.000 0.000 0.004
#> SRR1079408 5 0.4956 0.5877 0.164 0.000 0.056 0.036 0.744
#> SRR1445550 3 0.8020 0.2812 0.264 0.160 0.428 0.148 0.000
#> SRR820026 3 0.5953 0.6246 0.168 0.032 0.684 0.104 0.012
#> SRR1353686 3 0.6546 -0.0745 0.384 0.000 0.440 0.004 0.172
#> SRR1475466 1 0.5164 0.1766 0.572 0.000 0.020 0.016 0.392
#> SRR1096315 3 0.0727 0.8386 0.004 0.000 0.980 0.004 0.012
#> SRR1479826 5 0.4904 0.5003 0.240 0.000 0.000 0.072 0.688
#> SRR1479450 1 0.2852 0.6071 0.828 0.000 0.000 0.000 0.172
#> SRR1094097 1 0.3618 0.5735 0.788 0.000 0.004 0.012 0.196
#> SRR1071737 2 0.0000 0.9009 0.000 1.000 0.000 0.000 0.000
#> SRR1433989 5 0.5508 0.2158 0.416 0.000 0.016 0.036 0.532
#> SRR1077159 5 0.6705 0.3337 0.020 0.228 0.140 0.020 0.592
#> SRR1330082 4 0.3596 0.5124 0.212 0.000 0.000 0.776 0.012
#> SRR1079874 3 0.3823 0.7418 0.140 0.000 0.808 0.004 0.048
#> SRR1387132 2 0.3795 0.8298 0.036 0.840 0.000 0.064 0.060
#> SRR1095261 3 0.0451 0.8407 0.000 0.000 0.988 0.008 0.004
#> SRR818646 1 0.6893 0.2986 0.540 0.288 0.000 0.104 0.068
#> SRR1313991 1 0.2927 0.6263 0.880 0.000 0.020 0.020 0.080
#> SRR1363718 2 0.0000 0.9009 0.000 1.000 0.000 0.000 0.000
#> SRR1381372 4 0.4415 0.3403 0.004 0.000 0.000 0.552 0.444
#> SRR1388257 4 0.4038 0.4845 0.132 0.028 0.032 0.808 0.000
#> SRR818139 5 0.6796 -0.0373 0.352 0.000 0.000 0.288 0.360
#> SRR1078188 2 0.0290 0.8987 0.000 0.992 0.008 0.000 0.000
#> SRR1080342 2 0.0000 0.9009 0.000 1.000 0.000 0.000 0.000
#> SRR1085358 2 0.3928 0.7838 0.008 0.788 0.000 0.028 0.176
#> SRR1473482 5 0.2707 0.5402 0.008 0.000 0.000 0.132 0.860
#> SRR1452674 1 0.3455 0.5621 0.784 0.000 0.000 0.008 0.208
#> SRR1395874 5 0.5188 0.5381 0.168 0.000 0.108 0.012 0.712
#> SRR1382780 5 0.4355 0.5966 0.108 0.000 0.072 0.024 0.796
#> SRR1361138 5 0.5284 0.0736 0.032 0.416 0.004 0.004 0.544
#> SRR1319242 2 0.4252 0.7540 0.000 0.768 0.052 0.004 0.176
#> SRR1084553 2 0.0000 0.9009 0.000 1.000 0.000 0.000 0.000
#> SRR1498747 1 0.5415 0.4543 0.648 0.000 0.092 0.004 0.256
#> SRR1442213 4 0.4817 0.4966 0.000 0.000 0.044 0.656 0.300
#> SRR1343943 2 0.0290 0.9006 0.000 0.992 0.000 0.000 0.008
#> SRR1458828 2 0.1095 0.8946 0.012 0.968 0.000 0.008 0.012
#> SRR1360280 2 0.1768 0.8722 0.000 0.924 0.000 0.004 0.072
#> SRR1474208 3 0.0451 0.8415 0.008 0.000 0.988 0.004 0.000
#> SRR1498726 3 0.4807 0.7011 0.132 0.000 0.728 0.140 0.000
#> SRR1099857 5 0.2674 0.5223 0.000 0.000 0.004 0.140 0.856
#> SRR1329423 1 0.2873 0.5506 0.860 0.000 0.000 0.120 0.020
#> SRR1074430 2 0.0162 0.9010 0.000 0.996 0.000 0.000 0.004
#> SRR1485848 3 0.1285 0.8349 0.004 0.004 0.956 0.036 0.000
#> SRR1471395 1 0.2933 0.5821 0.872 0.004 0.100 0.004 0.020
#> SRR1096198 3 0.3387 0.7742 0.128 0.000 0.836 0.004 0.032
#> SRR1323234 5 0.4090 0.3889 0.016 0.000 0.000 0.268 0.716
#> SRR1073483 2 0.2548 0.8476 0.004 0.876 0.000 0.004 0.116
#> SRR817817 3 0.1197 0.8318 0.000 0.000 0.952 0.048 0.000
#> SRR1434070 3 0.2611 0.8008 0.016 0.072 0.896 0.016 0.000
#> SRR1100941 3 0.0404 0.8401 0.000 0.000 0.988 0.012 0.000
#> SRR1336682 1 0.4591 0.5542 0.748 0.000 0.000 0.120 0.132
#> SRR1077211 2 0.4553 0.5558 0.000 0.652 0.016 0.004 0.328
#> SRR1389454 4 0.5862 0.5002 0.176 0.000 0.000 0.604 0.220
#> SRR1393004 5 0.4967 0.1181 0.464 0.000 0.004 0.020 0.512
#> SRR1086369 2 0.5549 0.4952 0.020 0.592 0.000 0.044 0.344
#> SRR1447192 1 0.3454 0.5998 0.816 0.000 0.000 0.028 0.156
#> SRR1459147 4 0.2970 0.5676 0.000 0.000 0.004 0.828 0.168
#> SRR1097929 5 0.5292 0.4380 0.252 0.000 0.084 0.004 0.660
#> SRR1075850 3 0.1697 0.8143 0.000 0.000 0.932 0.008 0.060
#> SRR1358126 4 0.6098 0.3102 0.384 0.000 0.004 0.500 0.112
#> SRR1121009 5 0.3874 0.4768 0.016 0.000 0.008 0.200 0.776
#> SRR1321720 5 0.1403 0.5966 0.024 0.000 0.000 0.024 0.952
#> SRR810105 5 0.0932 0.5910 0.004 0.000 0.004 0.020 0.972
#> SRR1489007 1 0.5136 0.4807 0.736 0.148 0.000 0.084 0.032
#> SRR1361838 3 0.3446 0.7882 0.144 0.016 0.828 0.012 0.000
#> SRR1475086 1 0.5653 0.3895 0.584 0.328 0.004 0.000 0.084
#> SRR1468226 2 0.2900 0.8107 0.000 0.864 0.028 0.108 0.000
#> SRR1069466 2 0.0727 0.8981 0.004 0.980 0.000 0.012 0.004
#> SRR1078114 3 0.0960 0.8377 0.008 0.000 0.972 0.004 0.016
#> SRR1319991 1 0.6636 0.1091 0.440 0.364 0.000 0.192 0.004
#> SRR1374543 1 0.1907 0.6089 0.928 0.000 0.000 0.044 0.028
#> SRR1383237 4 0.6213 0.0836 0.020 0.372 0.088 0.520 0.000
#> SRR1486215 4 0.4401 0.4869 0.016 0.000 0.000 0.656 0.328
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR808704 1 0.4507 0.6073 0.724 0.000 0.156 0.008 0.112 0.000
#> SRR1499584 2 0.0000 0.8769 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR815256 2 0.0405 0.8757 0.000 0.988 0.000 0.004 0.008 0.000
#> SRR1077996 2 0.0000 0.8769 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1338468 6 0.4925 0.6008 0.088 0.000 0.000 0.008 0.256 0.648
#> SRR1394428 4 0.2976 0.6644 0.120 0.008 0.000 0.848 0.020 0.004
#> SRR1431104 3 0.6300 0.1028 0.292 0.000 0.408 0.292 0.004 0.004
#> SRR1082128 5 0.1802 0.6246 0.012 0.000 0.000 0.072 0.916 0.000
#> SRR1078212 3 0.0520 0.8520 0.008 0.000 0.984 0.008 0.000 0.000
#> SRR1458401 5 0.5041 0.2342 0.420 0.000 0.000 0.012 0.520 0.048
#> SRR1447281 1 0.1636 0.7094 0.936 0.000 0.000 0.024 0.004 0.036
#> SRR1339258 2 0.3568 0.7214 0.012 0.780 0.000 0.188 0.000 0.020
#> SRR1105106 2 0.1622 0.8565 0.000 0.940 0.016 0.028 0.000 0.016
#> SRR1105130 2 0.5358 0.2533 0.000 0.544 0.000 0.328 0.128 0.000
#> SRR1419039 6 0.3911 0.3861 0.368 0.000 0.000 0.008 0.000 0.624
#> SRR1079213 3 0.1086 0.8495 0.000 0.000 0.964 0.012 0.012 0.012
#> SRR1309745 2 0.0260 0.8755 0.000 0.992 0.000 0.008 0.000 0.000
#> SRR1079408 5 0.5883 0.2149 0.280 0.000 0.004 0.008 0.536 0.172
#> SRR1445550 3 0.5898 0.2338 0.072 0.044 0.520 0.360 0.000 0.004
#> SRR820026 4 0.4588 0.6153 0.008 0.000 0.156 0.716 0.120 0.000
#> SRR1353686 1 0.3593 0.6214 0.764 0.000 0.208 0.004 0.024 0.000
#> SRR1475466 1 0.3092 0.6916 0.864 0.000 0.024 0.008 0.072 0.032
#> SRR1096315 3 0.1321 0.8431 0.020 0.000 0.952 0.004 0.024 0.000
#> SRR1479826 1 0.5879 -0.1076 0.460 0.000 0.000 0.008 0.156 0.376
#> SRR1479450 1 0.1845 0.7057 0.920 0.000 0.000 0.052 0.028 0.000
#> SRR1094097 1 0.1458 0.7134 0.948 0.000 0.000 0.016 0.020 0.016
#> SRR1071737 2 0.0000 0.8769 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433989 1 0.4215 0.5991 0.752 0.000 0.000 0.008 0.092 0.148
#> SRR1077159 5 0.4241 0.0567 0.000 0.000 0.024 0.368 0.608 0.000
#> SRR1330082 6 0.4624 0.5480 0.184 0.000 0.000 0.112 0.004 0.700
#> SRR1079874 1 0.4371 0.3222 0.576 0.008 0.404 0.004 0.008 0.000
#> SRR1387132 4 0.5126 0.5981 0.008 0.160 0.000 0.688 0.128 0.016
#> SRR1095261 3 0.0767 0.8524 0.000 0.000 0.976 0.008 0.012 0.004
#> SRR818646 4 0.4196 0.6488 0.056 0.028 0.000 0.776 0.136 0.004
#> SRR1313991 1 0.1821 0.7089 0.928 0.000 0.040 0.024 0.000 0.008
#> SRR1363718 2 0.0000 0.8769 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1381372 6 0.2624 0.6285 0.004 0.000 0.000 0.004 0.148 0.844
#> SRR1388257 4 0.3009 0.6541 0.004 0.000 0.052 0.856 0.004 0.084
#> SRR818139 1 0.4262 0.1222 0.560 0.000 0.000 0.004 0.012 0.424
#> SRR1078188 2 0.0000 0.8769 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1080342 2 0.0000 0.8769 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1085358 4 0.4555 0.3336 0.000 0.028 0.004 0.548 0.420 0.000
#> SRR1473482 6 0.5991 0.4238 0.216 0.000 0.000 0.004 0.316 0.464
#> SRR1452674 1 0.1405 0.7112 0.948 0.000 0.000 0.024 0.024 0.004
#> SRR1395874 5 0.5334 0.3843 0.320 0.000 0.064 0.008 0.592 0.016
#> SRR1382780 5 0.5617 0.2970 0.232 0.000 0.004 0.008 0.592 0.164
#> SRR1361138 5 0.2462 0.6126 0.012 0.032 0.000 0.064 0.892 0.000
#> SRR1319242 5 0.4901 0.4122 0.000 0.152 0.036 0.100 0.712 0.000
#> SRR1084553 2 0.0146 0.8764 0.004 0.996 0.000 0.000 0.000 0.000
#> SRR1498747 5 0.7013 0.2880 0.284 0.000 0.088 0.200 0.428 0.000
#> SRR1442213 6 0.5027 0.4805 0.000 0.000 0.012 0.108 0.220 0.660
#> SRR1343943 2 0.0260 0.8756 0.008 0.992 0.000 0.000 0.000 0.000
#> SRR1458828 2 0.3161 0.7616 0.008 0.820 0.012 0.156 0.004 0.000
#> SRR1360280 2 0.1387 0.8492 0.000 0.932 0.000 0.000 0.068 0.000
#> SRR1474208 3 0.0777 0.8498 0.004 0.000 0.972 0.024 0.000 0.000
#> SRR1498726 4 0.3984 0.4181 0.008 0.000 0.320 0.664 0.008 0.000
#> SRR1099857 5 0.2308 0.6086 0.000 0.000 0.000 0.040 0.892 0.068
#> SRR1329423 4 0.3789 0.5029 0.332 0.000 0.000 0.660 0.008 0.000
#> SRR1074430 2 0.0458 0.8741 0.000 0.984 0.000 0.000 0.016 0.000
#> SRR1485848 3 0.0935 0.8457 0.032 0.000 0.964 0.000 0.000 0.004
#> SRR1471395 1 0.2675 0.6921 0.876 0.008 0.076 0.040 0.000 0.000
#> SRR1096198 1 0.4355 0.3559 0.584 0.000 0.396 0.008 0.008 0.004
#> SRR1323234 6 0.4902 0.5398 0.076 0.000 0.000 0.004 0.304 0.616
#> SRR1073483 2 0.3261 0.7483 0.012 0.804 0.000 0.012 0.172 0.000
#> SRR817817 3 0.1053 0.8500 0.000 0.000 0.964 0.020 0.004 0.012
#> SRR1434070 3 0.1401 0.8401 0.004 0.020 0.948 0.028 0.000 0.000
#> SRR1100941 3 0.0862 0.8502 0.000 0.000 0.972 0.016 0.008 0.004
#> SRR1336682 1 0.3900 0.5481 0.728 0.000 0.000 0.040 0.000 0.232
#> SRR1077211 2 0.4063 0.3594 0.004 0.572 0.004 0.000 0.420 0.000
#> SRR1389454 6 0.3695 0.3666 0.376 0.000 0.000 0.000 0.000 0.624
#> SRR1393004 1 0.3213 0.6639 0.836 0.000 0.000 0.004 0.084 0.076
#> SRR1086369 4 0.4587 0.4204 0.000 0.036 0.000 0.588 0.372 0.004
#> SRR1447192 1 0.2084 0.7113 0.916 0.000 0.000 0.044 0.024 0.016
#> SRR1459147 6 0.1265 0.6063 0.000 0.000 0.008 0.044 0.000 0.948
#> SRR1097929 5 0.2620 0.6377 0.040 0.000 0.024 0.048 0.888 0.000
#> SRR1075850 3 0.2794 0.7600 0.000 0.000 0.840 0.012 0.144 0.004
#> SRR1358126 1 0.4370 0.1685 0.552 0.000 0.008 0.012 0.000 0.428
#> SRR1121009 6 0.5906 0.5539 0.244 0.000 0.016 0.004 0.172 0.564
#> SRR1321720 5 0.1777 0.6391 0.032 0.000 0.000 0.024 0.932 0.012
#> SRR810105 5 0.0870 0.6372 0.012 0.000 0.000 0.004 0.972 0.012
#> SRR1489007 4 0.4729 0.5918 0.248 0.036 0.000 0.680 0.036 0.000
#> SRR1361838 3 0.3788 0.5818 0.280 0.012 0.704 0.004 0.000 0.000
#> SRR1475086 1 0.3441 0.5741 0.784 0.188 0.024 0.004 0.000 0.000
#> SRR1468226 2 0.4117 0.6676 0.000 0.740 0.044 0.204 0.000 0.012
#> SRR1069466 2 0.3163 0.6626 0.000 0.764 0.000 0.232 0.004 0.000
#> SRR1078114 3 0.1605 0.8312 0.044 0.000 0.936 0.004 0.016 0.000
#> SRR1319991 4 0.2432 0.6817 0.020 0.036 0.024 0.908 0.008 0.004
#> SRR1374543 1 0.3298 0.5665 0.756 0.000 0.000 0.236 0.008 0.000
#> SRR1383237 4 0.7129 0.4125 0.000 0.212 0.132 0.476 0.004 0.176
#> SRR1486215 6 0.1867 0.6530 0.020 0.000 0.000 0.000 0.064 0.916
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
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:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
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.
sessionInfo()
#> R version 3.6.0 (2019-04-26)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: CentOS Linux 7 (Core)
#>
#> Matrix products: default
#> BLAS: /usr/lib64/libblas.so.3.4.2
#> LAPACK: /usr/lib64/liblapack.so.3.4.2
#>
#> locale:
#> [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C LC_TIME=en_GB.UTF-8
#> [4] LC_COLLATE=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8
#> [7] LC_PAPER=en_GB.UTF-8 LC_NAME=C LC_ADDRESS=C
#> [10] LC_TELEPHONE=C LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
#>
#> attached base packages:
#> [1] grid stats graphics grDevices utils datasets methods base
#>
#> other attached packages:
#> [1] genefilter_1.66.0 ComplexHeatmap_2.3.1 markdown_1.1 knitr_1.26
#> [5] GetoptLong_0.1.7 cola_1.3.2
#>
#> loaded via a namespace (and not attached):
#> [1] circlize_0.4.8 shape_1.4.4 xfun_0.11 slam_0.1-46
#> [5] lattice_0.20-38 splines_3.6.0 colorspace_1.4-1 vctrs_0.2.0
#> [9] stats4_3.6.0 blob_1.2.0 XML_3.98-1.20 survival_2.44-1.1
#> [13] rlang_0.4.2 pillar_1.4.2 DBI_1.0.0 BiocGenerics_0.30.0
#> [17] bit64_0.9-7 RColorBrewer_1.1-2 matrixStats_0.55.0 stringr_1.4.0
#> [21] GlobalOptions_0.1.1 evaluate_0.14 memoise_1.1.0 Biobase_2.44.0
#> [25] IRanges_2.18.3 parallel_3.6.0 AnnotationDbi_1.46.1 highr_0.8
#> [29] Rcpp_1.0.3 xtable_1.8-4 backports_1.1.5 S4Vectors_0.22.1
#> [33] annotate_1.62.0 skmeans_0.2-11 bit_1.1-14 microbenchmark_1.4-7
#> [37] brew_1.0-6 impute_1.58.0 rjson_0.2.20 png_0.1-7
#> [41] digest_0.6.23 stringi_1.4.3 polyclip_1.10-0 clue_0.3-57
#> [45] tools_3.6.0 bitops_1.0-6 magrittr_1.5 eulerr_6.0.0
#> [49] RCurl_1.95-4.12 RSQLite_2.1.4 tibble_2.1.3 cluster_2.1.0
#> [53] crayon_1.3.4 pkgconfig_2.0.3 zeallot_0.1.0 Matrix_1.2-17
#> [57] xml2_1.2.2 httr_1.4.1 R6_2.4.1 mclust_5.4.5
#> [61] compiler_3.6.0