Date: 2019-12-25 22:49:38 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 17697 rows and 104 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] 17697 104
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 | ||
---|---|---|---|---|---|---|
SD:kmeans | 3 | 1.000 | 0.937 | 0.977 | ** | 2 |
CV:kmeans | 3 | 1.000 | 0.954 | 0.973 | ** | 2 |
ATC:kmeans | 3 | 1.000 | 0.976 | 0.990 | ** | 2 |
MAD:kmeans | 3 | 0.988 | 0.942 | 0.976 | ** | 2 |
ATC:skmeans | 5 | 0.985 | 0.944 | 0.974 | ** | 2,3,4 |
MAD:skmeans | 5 | 0.980 | 0.914 | 0.963 | ** | 2,3,4 |
CV:skmeans | 5 | 0.980 | 0.930 | 0.974 | ** | 2,3,4 |
ATC:pam | 6 | 0.971 | 0.950 | 0.975 | ** | 2,3 |
SD:NMF | 2 | 0.960 | 0.947 | 0.978 | ** | |
ATC:NMF | 3 | 0.950 | 0.925 | 0.969 | ** | 2 |
MAD:pam | 6 | 0.945 | 0.893 | 0.952 | * | 2,3 |
CV:NMF | 4 | 0.940 | 0.919 | 0.961 | * | 2,3 |
MAD:NMF | 2 | 0.940 | 0.944 | 0.975 | * | |
SD:pam | 6 | 0.936 | 0.910 | 0.944 | * | 2,3,5 |
CV:pam | 6 | 0.926 | 0.884 | 0.950 | * | 2,3,5 |
ATC:mclust | 6 | 0.914 | 0.899 | 0.913 | * | |
SD:skmeans | 6 | 0.912 | 0.854 | 0.934 | * | 2,3,4,5 |
SD:mclust | 2 | 0.904 | 0.963 | 0.980 | * | |
CV:mclust | 2 | 0.831 | 0.907 | 0.959 | ||
CV:hclust | 5 | 0.800 | 0.726 | 0.889 | ||
ATC:hclust | 3 | 0.782 | 0.829 | 0.920 | ||
MAD:hclust | 6 | 0.747 | 0.735 | 0.781 | ||
MAD:mclust | 2 | 0.669 | 0.898 | 0.941 | ||
SD:hclust | 3 | 0.599 | 0.791 | 0.892 |
**: 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.960 0.947 0.978 0.434 0.563 0.563
#> CV:NMF 2 1.000 0.949 0.980 0.412 0.586 0.586
#> MAD:NMF 2 0.940 0.944 0.975 0.473 0.522 0.522
#> ATC:NMF 2 1.000 0.956 0.982 0.490 0.514 0.514
#> SD:skmeans 2 1.000 0.983 0.994 0.480 0.522 0.522
#> CV:skmeans 2 1.000 0.987 0.995 0.480 0.522 0.522
#> MAD:skmeans 2 1.000 0.976 0.990 0.487 0.514 0.514
#> ATC:skmeans 2 1.000 0.991 0.996 0.488 0.514 0.514
#> SD:mclust 2 0.904 0.963 0.980 0.483 0.510 0.510
#> CV:mclust 2 0.831 0.907 0.959 0.454 0.570 0.570
#> MAD:mclust 2 0.669 0.898 0.941 0.453 0.514 0.514
#> ATC:mclust 2 0.541 0.846 0.908 0.477 0.510 0.510
#> SD:kmeans 2 0.978 0.932 0.966 0.424 0.586 0.586
#> CV:kmeans 2 1.000 0.990 0.995 0.362 0.642 0.642
#> MAD:kmeans 2 1.000 0.955 0.972 0.449 0.556 0.556
#> ATC:kmeans 2 1.000 0.989 0.995 0.457 0.543 0.543
#> SD:pam 2 1.000 0.987 0.994 0.359 0.642 0.642
#> CV:pam 2 1.000 0.988 0.995 0.360 0.642 0.642
#> MAD:pam 2 1.000 0.977 0.990 0.359 0.652 0.652
#> ATC:pam 2 1.000 0.993 0.997 0.459 0.543 0.543
#> SD:hclust 2 0.512 0.780 0.891 0.458 0.549 0.549
#> CV:hclust 2 0.681 0.816 0.926 0.405 0.621 0.621
#> MAD:hclust 2 0.625 0.712 0.888 0.474 0.498 0.498
#> ATC:hclust 2 0.554 0.693 0.879 0.450 0.532 0.532
get_stats(res_list, k = 3)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> SD:NMF 3 0.898 0.902 0.961 0.467 0.736 0.553
#> CV:NMF 3 1.000 0.959 0.985 0.573 0.737 0.562
#> MAD:NMF 3 0.873 0.890 0.956 0.347 0.758 0.566
#> ATC:NMF 3 0.950 0.925 0.969 0.314 0.776 0.589
#> SD:skmeans 3 0.967 0.948 0.977 0.369 0.749 0.550
#> CV:skmeans 3 1.000 0.970 0.988 0.371 0.736 0.532
#> MAD:skmeans 3 0.954 0.952 0.978 0.349 0.752 0.550
#> ATC:skmeans 3 0.960 0.970 0.985 0.283 0.854 0.719
#> SD:mclust 3 0.693 0.758 0.857 0.273 0.753 0.551
#> CV:mclust 3 0.428 0.732 0.836 0.317 0.617 0.423
#> MAD:mclust 3 0.643 0.877 0.916 0.412 0.759 0.559
#> ATC:mclust 3 0.526 0.712 0.855 0.296 0.742 0.540
#> SD:kmeans 3 1.000 0.937 0.977 0.530 0.698 0.513
#> CV:kmeans 3 1.000 0.954 0.973 0.746 0.714 0.558
#> MAD:kmeans 3 0.988 0.942 0.976 0.445 0.704 0.509
#> ATC:kmeans 3 1.000 0.976 0.990 0.423 0.695 0.491
#> SD:pam 3 1.000 0.972 0.988 0.779 0.710 0.552
#> CV:pam 3 1.000 0.981 0.992 0.773 0.710 0.552
#> MAD:pam 3 1.000 0.978 0.991 0.786 0.684 0.523
#> ATC:pam 3 1.000 0.963 0.981 0.414 0.695 0.491
#> SD:hclust 3 0.599 0.791 0.892 0.239 0.769 0.604
#> CV:hclust 3 0.591 0.702 0.848 0.445 0.728 0.562
#> MAD:hclust 3 0.542 0.713 0.832 0.284 0.808 0.636
#> ATC:hclust 3 0.782 0.829 0.920 0.435 0.700 0.493
get_stats(res_list, k = 4)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> SD:NMF 4 0.883 0.876 0.949 0.1322 0.888 0.696
#> CV:NMF 4 0.940 0.919 0.961 0.1398 0.876 0.663
#> MAD:NMF 4 0.869 0.840 0.938 0.1398 0.878 0.671
#> ATC:NMF 4 0.871 0.872 0.944 0.0948 0.922 0.784
#> SD:skmeans 4 0.932 0.907 0.958 0.0821 0.932 0.806
#> CV:skmeans 4 0.924 0.918 0.958 0.0833 0.913 0.755
#> MAD:skmeans 4 0.904 0.886 0.942 0.0783 0.945 0.843
#> ATC:skmeans 4 0.927 0.884 0.936 0.0880 0.919 0.789
#> SD:mclust 4 0.843 0.857 0.934 0.1588 0.856 0.625
#> CV:mclust 4 0.778 0.827 0.903 0.2098 0.813 0.548
#> MAD:mclust 4 0.780 0.860 0.929 0.1277 0.884 0.684
#> ATC:mclust 4 0.709 0.727 0.763 0.1540 0.848 0.621
#> SD:kmeans 4 0.751 0.770 0.887 0.1119 0.898 0.722
#> CV:kmeans 4 0.863 0.869 0.933 0.1274 0.886 0.701
#> MAD:kmeans 4 0.738 0.716 0.846 0.1240 0.882 0.681
#> ATC:kmeans 4 0.807 0.836 0.897 0.1214 0.877 0.669
#> SD:pam 4 0.862 0.904 0.947 0.1490 0.867 0.652
#> CV:pam 4 0.892 0.895 0.951 0.1525 0.862 0.637
#> MAD:pam 4 0.856 0.887 0.943 0.1730 0.837 0.574
#> ATC:pam 4 0.803 0.834 0.915 0.1226 0.898 0.720
#> SD:hclust 4 0.618 0.648 0.781 0.2282 0.838 0.613
#> CV:hclust 4 0.649 0.722 0.839 0.1246 0.905 0.749
#> MAD:hclust 4 0.625 0.577 0.790 0.1657 0.854 0.627
#> ATC:hclust 4 0.838 0.831 0.919 0.0786 0.967 0.905
get_stats(res_list, k = 5)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> SD:NMF 5 0.784 0.741 0.882 0.0327 0.975 0.912
#> CV:NMF 5 0.855 0.715 0.889 0.0376 0.987 0.951
#> MAD:NMF 5 0.782 0.769 0.877 0.0388 0.966 0.880
#> ATC:NMF 5 0.884 0.796 0.920 0.0375 0.970 0.898
#> SD:skmeans 5 1.000 0.936 0.975 0.0406 0.969 0.893
#> CV:skmeans 5 0.980 0.930 0.974 0.0447 0.962 0.868
#> MAD:skmeans 5 0.980 0.914 0.963 0.0485 0.964 0.880
#> ATC:skmeans 5 0.985 0.944 0.974 0.0410 0.981 0.937
#> SD:mclust 5 0.702 0.615 0.770 0.0893 0.922 0.727
#> CV:mclust 5 0.874 0.898 0.936 0.0794 0.894 0.641
#> MAD:mclust 5 0.683 0.631 0.780 0.0899 0.927 0.741
#> ATC:mclust 5 0.842 0.911 0.912 0.1119 0.820 0.466
#> SD:kmeans 5 0.833 0.834 0.882 0.0592 0.963 0.871
#> CV:kmeans 5 0.823 0.820 0.872 0.0666 0.955 0.843
#> MAD:kmeans 5 0.849 0.847 0.882 0.0543 0.949 0.818
#> ATC:kmeans 5 0.807 0.830 0.847 0.0727 0.891 0.619
#> SD:pam 5 0.940 0.916 0.947 0.0483 0.953 0.829
#> CV:pam 5 0.951 0.915 0.966 0.0408 0.963 0.860
#> MAD:pam 5 0.799 0.764 0.838 0.0550 0.896 0.619
#> ATC:pam 5 0.862 0.819 0.914 0.0973 0.891 0.627
#> SD:hclust 5 0.736 0.774 0.871 0.0815 0.919 0.732
#> CV:hclust 5 0.800 0.726 0.889 0.0941 0.957 0.867
#> MAD:hclust 5 0.693 0.636 0.796 0.0789 0.941 0.792
#> ATC:hclust 5 0.844 0.808 0.913 0.0293 0.964 0.888
get_stats(res_list, k = 6)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> SD:NMF 6 0.773 0.703 0.859 0.0334 0.935 0.770
#> CV:NMF 6 0.801 0.732 0.875 0.0296 0.940 0.774
#> MAD:NMF 6 0.749 0.617 0.838 0.0294 0.958 0.849
#> ATC:NMF 6 0.860 0.794 0.902 0.0177 0.989 0.961
#> SD:skmeans 6 0.912 0.854 0.934 0.0834 0.927 0.727
#> CV:skmeans 6 0.887 0.802 0.918 0.0700 0.931 0.738
#> MAD:skmeans 6 0.883 0.857 0.936 0.0799 0.923 0.715
#> ATC:skmeans 6 0.899 0.830 0.915 0.0443 0.997 0.990
#> SD:mclust 6 0.696 0.542 0.744 0.0502 0.904 0.608
#> CV:mclust 6 0.852 0.813 0.881 0.0287 0.983 0.922
#> MAD:mclust 6 0.736 0.600 0.783 0.0437 0.888 0.552
#> ATC:mclust 6 0.914 0.899 0.913 0.0365 0.966 0.834
#> SD:kmeans 6 0.854 0.852 0.870 0.0609 0.918 0.675
#> CV:kmeans 6 0.809 0.780 0.845 0.0634 0.904 0.634
#> MAD:kmeans 6 0.823 0.848 0.870 0.0589 0.913 0.653
#> ATC:kmeans 6 0.803 0.862 0.864 0.0379 0.967 0.835
#> SD:pam 6 0.936 0.910 0.944 0.0725 0.910 0.640
#> CV:pam 6 0.926 0.884 0.950 0.0757 0.918 0.662
#> MAD:pam 6 0.945 0.893 0.952 0.0458 0.967 0.836
#> ATC:pam 6 0.971 0.950 0.975 0.0377 0.889 0.537
#> SD:hclust 6 0.765 0.742 0.862 0.0260 0.996 0.983
#> CV:hclust 6 0.815 0.764 0.886 0.0242 0.959 0.859
#> MAD:hclust 6 0.747 0.735 0.781 0.0436 0.891 0.585
#> ATC:hclust 6 0.827 0.787 0.910 0.0133 0.999 0.997
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 17697 rows and 104 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 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.512 0.780 0.891 0.4584 0.549 0.549
#> 3 3 0.599 0.791 0.892 0.2387 0.769 0.604
#> 4 4 0.618 0.648 0.781 0.2282 0.838 0.613
#> 5 5 0.736 0.774 0.871 0.0815 0.919 0.732
#> 6 6 0.765 0.742 0.862 0.0260 0.996 0.983
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
#> SRR1313664 1 0.0000 0.839 1.000 0.000
#> SRR1375371 2 0.0000 0.935 0.000 1.000
#> SRR1416819 1 0.7219 0.752 0.800 0.200
#> SRR1351907 1 0.8608 0.673 0.716 0.284
#> SRR1330371 2 0.4022 0.902 0.080 0.920
#> SRR1340782 1 0.0000 0.839 1.000 0.000
#> SRR1094531 2 0.4022 0.902 0.080 0.920
#> SRR1436262 1 0.0000 0.839 1.000 0.000
#> SRR1093314 1 0.8267 0.701 0.740 0.260
#> SRR1435460 2 0.4161 0.899 0.084 0.916
#> SRR1485587 1 0.6247 0.783 0.844 0.156
#> SRR1470834 1 0.0376 0.840 0.996 0.004
#> SRR1442966 2 0.4022 0.902 0.080 0.920
#> SRR1410979 2 0.0000 0.935 0.000 1.000
#> SRR1326449 2 0.0000 0.935 0.000 1.000
#> SRR1367520 1 0.0672 0.840 0.992 0.008
#> SRR1360321 1 0.9922 0.390 0.552 0.448
#> SRR1445170 1 0.8267 0.701 0.740 0.260
#> SRR1440663 1 0.9922 0.390 0.552 0.448
#> SRR1489839 1 0.0672 0.840 0.992 0.008
#> SRR1409772 1 0.0376 0.840 0.996 0.004
#> SRR1092591 1 0.5294 0.801 0.880 0.120
#> SRR1338402 2 0.9393 0.325 0.356 0.644
#> SRR1337930 1 0.0000 0.839 1.000 0.000
#> SRR1337749 1 0.0000 0.839 1.000 0.000
#> SRR1401341 1 0.0000 0.839 1.000 0.000
#> SRR1396901 1 0.0000 0.839 1.000 0.000
#> SRR1354400 1 0.9922 0.390 0.552 0.448
#> SRR1416538 1 0.0672 0.840 0.992 0.008
#> SRR1340762 1 0.2423 0.833 0.960 0.040
#> SRR1460095 2 0.4022 0.902 0.080 0.920
#> SRR1071181 1 0.9922 0.390 0.552 0.448
#> SRR1380436 2 0.0000 0.935 0.000 1.000
#> SRR1079973 2 0.0000 0.935 0.000 1.000
#> SRR1473611 1 0.5294 0.802 0.880 0.120
#> SRR1074934 1 0.7219 0.752 0.800 0.200
#> SRR1311731 2 0.0000 0.935 0.000 1.000
#> SRR1452957 2 0.0000 0.935 0.000 1.000
#> SRR1429144 1 0.0000 0.839 1.000 0.000
#> SRR1448203 1 0.0000 0.839 1.000 0.000
#> SRR1366102 1 0.0000 0.839 1.000 0.000
#> SRR1434845 1 0.1184 0.839 0.984 0.016
#> SRR1472171 1 0.0000 0.839 1.000 0.000
#> SRR1441075 2 0.0000 0.935 0.000 1.000
#> SRR1321483 1 0.9922 0.390 0.552 0.448
#> SRR1418105 1 0.9922 0.390 0.552 0.448
#> SRR1090022 2 0.0000 0.935 0.000 1.000
#> SRR1077728 1 0.0000 0.839 1.000 0.000
#> SRR1365767 2 0.4022 0.902 0.080 0.920
#> SRR1489670 2 0.4690 0.850 0.100 0.900
#> SRR1343136 1 0.9922 0.390 0.552 0.448
#> SRR1359587 2 0.9393 0.325 0.356 0.644
#> SRR1465782 1 0.0376 0.840 0.996 0.004
#> SRR1434460 1 0.0672 0.840 0.992 0.008
#> SRR1415751 1 0.0376 0.840 0.996 0.004
#> SRR1359027 1 0.0000 0.839 1.000 0.000
#> SRR1408303 1 0.9922 0.390 0.552 0.448
#> SRR1456469 2 0.0000 0.935 0.000 1.000
#> SRR1436717 2 0.0000 0.935 0.000 1.000
#> SRR1480287 1 0.0000 0.839 1.000 0.000
#> SRR1326845 2 0.0000 0.935 0.000 1.000
#> SRR1070133 2 0.0000 0.935 0.000 1.000
#> SRR1387745 2 0.0000 0.935 0.000 1.000
#> SRR1436904 1 0.9922 0.390 0.552 0.448
#> SRR1076465 2 0.0000 0.935 0.000 1.000
#> SRR1433215 1 0.6247 0.783 0.844 0.156
#> SRR1076046 1 0.0672 0.840 0.992 0.008
#> SRR1406643 2 0.0000 0.935 0.000 1.000
#> SRR1499460 2 0.4022 0.902 0.080 0.920
#> SRR1475147 2 0.0000 0.935 0.000 1.000
#> SRR1319301 1 0.0000 0.839 1.000 0.000
#> SRR1486117 1 0.0000 0.839 1.000 0.000
#> SRR1087680 2 0.4022 0.902 0.080 0.920
#> SRR1361391 2 0.4022 0.902 0.080 0.920
#> SRR1365655 1 0.2603 0.832 0.956 0.044
#> SRR1090457 1 0.9922 0.390 0.552 0.448
#> SRR1084154 1 0.8327 0.696 0.736 0.264
#> SRR1380358 1 0.0000 0.839 1.000 0.000
#> SRR1398430 1 0.8327 0.696 0.736 0.264
#> SRR1444242 1 0.0000 0.839 1.000 0.000
#> SRR1440832 2 0.4022 0.902 0.080 0.920
#> SRR1358803 1 0.6148 0.785 0.848 0.152
#> SRR1344079 1 0.6247 0.783 0.844 0.156
#> SRR1072602 1 0.0938 0.839 0.988 0.012
#> SRR1421399 1 0.9996 0.270 0.512 0.488
#> SRR1339086 1 0.0000 0.839 1.000 0.000
#> SRR1099881 1 0.0000 0.839 1.000 0.000
#> SRR1384312 1 0.9922 0.390 0.552 0.448
#> SRR1329508 1 0.9922 0.390 0.552 0.448
#> SRR1440200 2 0.0000 0.935 0.000 1.000
#> SRR1397558 2 0.0000 0.935 0.000 1.000
#> SRR1344364 2 0.0000 0.935 0.000 1.000
#> SRR1387787 1 0.5408 0.799 0.876 0.124
#> SRR1378199 1 0.0672 0.840 0.992 0.008
#> SRR1413119 2 0.4022 0.902 0.080 0.920
#> SRR1310497 1 0.1414 0.838 0.980 0.020
#> SRR1356327 1 0.0000 0.839 1.000 0.000
#> SRR1319059 1 0.1633 0.837 0.976 0.024
#> SRR1085378 1 0.6148 0.785 0.848 0.152
#> SRR1379036 1 0.9922 0.390 0.552 0.448
#> SRR1417656 1 0.0000 0.839 1.000 0.000
#> SRR1454225 1 0.0000 0.839 1.000 0.000
#> SRR1455346 1 0.8267 0.700 0.740 0.260
#> SRR1366412 2 0.0000 0.935 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1375371 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1416819 1 0.4555 0.705 0.800 0.000 0.200
#> SRR1351907 1 0.7001 0.595 0.716 0.084 0.200
#> SRR1330371 3 0.1964 0.555 0.000 0.056 0.944
#> SRR1340782 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1094531 3 0.0000 0.591 0.000 0.000 1.000
#> SRR1436262 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1093314 1 0.6449 0.636 0.740 0.056 0.204
#> SRR1435460 3 0.2096 0.559 0.004 0.052 0.944
#> SRR1485587 1 0.3941 0.772 0.844 0.000 0.156
#> SRR1470834 1 0.0237 0.904 0.996 0.000 0.004
#> SRR1442966 3 0.1964 0.555 0.000 0.056 0.944
#> SRR1410979 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1326449 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1367520 1 0.0424 0.903 0.992 0.000 0.008
#> SRR1360321 3 0.6295 0.492 0.472 0.000 0.528
#> SRR1445170 1 0.6449 0.636 0.740 0.056 0.204
#> SRR1440663 3 0.6295 0.492 0.472 0.000 0.528
#> SRR1489839 1 0.0424 0.903 0.992 0.000 0.008
#> SRR1409772 1 0.0237 0.904 0.996 0.000 0.004
#> SRR1092591 1 0.3340 0.813 0.880 0.000 0.120
#> SRR1338402 3 0.5363 0.606 0.276 0.000 0.724
#> SRR1337930 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1401341 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1396901 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1354400 3 0.6295 0.492 0.472 0.000 0.528
#> SRR1416538 1 0.0424 0.903 0.992 0.000 0.008
#> SRR1340762 1 0.3340 0.795 0.880 0.000 0.120
#> SRR1460095 3 0.1964 0.555 0.000 0.056 0.944
#> SRR1071181 3 0.6295 0.492 0.472 0.000 0.528
#> SRR1380436 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1473611 1 0.3340 0.814 0.880 0.000 0.120
#> SRR1074934 1 0.4555 0.705 0.800 0.000 0.200
#> SRR1311731 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1434845 1 0.0747 0.899 0.984 0.000 0.016
#> SRR1472171 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1321483 3 0.6295 0.492 0.472 0.000 0.528
#> SRR1418105 3 0.6295 0.492 0.472 0.000 0.528
#> SRR1090022 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1077728 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1365767 3 0.0000 0.591 0.000 0.000 1.000
#> SRR1489670 2 0.2959 0.843 0.100 0.900 0.000
#> SRR1343136 3 0.6295 0.492 0.472 0.000 0.528
#> SRR1359587 3 0.5363 0.606 0.276 0.000 0.724
#> SRR1465782 1 0.0237 0.904 0.996 0.000 0.004
#> SRR1434460 1 0.0424 0.903 0.992 0.000 0.008
#> SRR1415751 1 0.0237 0.904 0.996 0.000 0.004
#> SRR1359027 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1408303 3 0.6295 0.492 0.472 0.000 0.528
#> SRR1456469 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1436717 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1436904 3 0.6295 0.492 0.472 0.000 0.528
#> SRR1076465 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1433215 1 0.3941 0.772 0.844 0.000 0.156
#> SRR1076046 1 0.0424 0.903 0.992 0.000 0.008
#> SRR1406643 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1499460 3 0.0000 0.591 0.000 0.000 1.000
#> SRR1475147 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1319301 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1486117 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1087680 3 0.0000 0.591 0.000 0.000 1.000
#> SRR1361391 3 0.0000 0.591 0.000 0.000 1.000
#> SRR1365655 1 0.3412 0.788 0.876 0.000 0.124
#> SRR1090457 3 0.6295 0.492 0.472 0.000 0.528
#> SRR1084154 1 0.6542 0.628 0.736 0.060 0.204
#> SRR1380358 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1398430 1 0.6542 0.628 0.736 0.060 0.204
#> SRR1444242 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1440832 3 0.0000 0.591 0.000 0.000 1.000
#> SRR1358803 1 0.3879 0.777 0.848 0.000 0.152
#> SRR1344079 1 0.3941 0.772 0.844 0.000 0.156
#> SRR1072602 1 0.1031 0.895 0.976 0.000 0.024
#> SRR1421399 3 0.7997 0.301 0.468 0.060 0.472
#> SRR1339086 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1384312 3 0.6295 0.492 0.472 0.000 0.528
#> SRR1329508 3 0.6295 0.492 0.472 0.000 0.528
#> SRR1440200 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1344364 2 0.2066 0.938 0.000 0.940 0.060
#> SRR1387787 1 0.3412 0.809 0.876 0.000 0.124
#> SRR1378199 1 0.0424 0.903 0.992 0.000 0.008
#> SRR1413119 3 0.0000 0.591 0.000 0.000 1.000
#> SRR1310497 1 0.1031 0.895 0.976 0.000 0.024
#> SRR1356327 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1319059 1 0.3038 0.814 0.896 0.000 0.104
#> SRR1085378 1 0.3879 0.777 0.848 0.000 0.152
#> SRR1379036 3 0.6295 0.492 0.472 0.000 0.528
#> SRR1417656 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.904 1.000 0.000 0.000
#> SRR1455346 1 0.6449 0.634 0.740 0.056 0.204
#> SRR1366412 2 0.0000 0.991 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.2345 0.7940 0.900 0.000 0.100 0.000
#> SRR1375371 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1416819 3 0.7268 0.2207 0.372 0.000 0.476 0.152
#> SRR1351907 3 0.6894 0.2450 0.360 0.028 0.556 0.056
#> SRR1330371 4 0.3668 0.7181 0.000 0.004 0.188 0.808
#> SRR1340782 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1094531 4 0.0000 0.8147 0.000 0.000 0.000 1.000
#> SRR1436262 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1093314 3 0.6123 0.2464 0.372 0.000 0.572 0.056
#> SRR1435460 4 0.3528 0.7169 0.000 0.000 0.192 0.808
#> SRR1485587 3 0.4898 0.0732 0.416 0.000 0.584 0.000
#> SRR1470834 1 0.3837 0.7041 0.776 0.000 0.224 0.000
#> SRR1442966 4 0.3668 0.7181 0.000 0.004 0.188 0.808
#> SRR1410979 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.2647 0.7805 0.880 0.000 0.120 0.000
#> SRR1360321 3 0.6878 0.2864 0.104 0.000 0.472 0.424
#> SRR1445170 3 0.6123 0.2464 0.372 0.000 0.572 0.056
#> SRR1440663 3 0.6878 0.2864 0.104 0.000 0.472 0.424
#> SRR1489839 1 0.4222 0.6512 0.728 0.000 0.272 0.000
#> SRR1409772 1 0.2760 0.7790 0.872 0.000 0.128 0.000
#> SRR1092591 1 0.3444 0.6722 0.816 0.000 0.184 0.000
#> SRR1338402 4 0.4790 0.2599 0.000 0.000 0.380 0.620
#> SRR1337930 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0817 0.8153 0.976 0.000 0.024 0.000
#> SRR1396901 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.6878 0.2864 0.104 0.000 0.472 0.424
#> SRR1416538 1 0.4222 0.6512 0.728 0.000 0.272 0.000
#> SRR1340762 1 0.5506 0.2322 0.512 0.000 0.472 0.016
#> SRR1460095 4 0.3668 0.7181 0.000 0.004 0.188 0.808
#> SRR1071181 3 0.6878 0.2864 0.104 0.000 0.472 0.424
#> SRR1380436 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1473611 1 0.4382 0.5813 0.704 0.000 0.296 0.000
#> SRR1074934 3 0.7268 0.2207 0.372 0.000 0.476 0.152
#> SRR1311731 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0188 0.8179 0.996 0.000 0.004 0.000
#> SRR1434845 1 0.4522 0.5797 0.680 0.000 0.320 0.000
#> SRR1472171 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.6878 0.2864 0.104 0.000 0.472 0.424
#> SRR1418105 3 0.6878 0.2864 0.104 0.000 0.472 0.424
#> SRR1090022 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1077728 1 0.1637 0.8072 0.940 0.000 0.060 0.000
#> SRR1365767 4 0.0000 0.8147 0.000 0.000 0.000 1.000
#> SRR1489670 2 0.2408 0.8969 0.000 0.896 0.104 0.000
#> SRR1343136 3 0.6878 0.2864 0.104 0.000 0.472 0.424
#> SRR1359587 4 0.4790 0.2599 0.000 0.000 0.380 0.620
#> SRR1465782 1 0.2760 0.7790 0.872 0.000 0.128 0.000
#> SRR1434460 1 0.3610 0.7323 0.800 0.000 0.200 0.000
#> SRR1415751 1 0.3975 0.6880 0.760 0.000 0.240 0.000
#> SRR1359027 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.6878 0.2864 0.104 0.000 0.472 0.424
#> SRR1456469 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.6878 0.2864 0.104 0.000 0.472 0.424
#> SRR1076465 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1433215 3 0.4916 0.0524 0.424 0.000 0.576 0.000
#> SRR1076046 1 0.3610 0.7323 0.800 0.000 0.200 0.000
#> SRR1406643 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1499460 4 0.0000 0.8147 0.000 0.000 0.000 1.000
#> SRR1475147 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1319301 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0188 0.8179 0.996 0.000 0.004 0.000
#> SRR1087680 4 0.0000 0.8147 0.000 0.000 0.000 1.000
#> SRR1361391 4 0.0000 0.8147 0.000 0.000 0.000 1.000
#> SRR1365655 1 0.5602 0.2213 0.508 0.000 0.472 0.020
#> SRR1090457 3 0.6878 0.2864 0.104 0.000 0.472 0.424
#> SRR1084154 3 0.6414 0.2486 0.368 0.008 0.568 0.056
#> SRR1380358 1 0.1211 0.8117 0.960 0.000 0.040 0.000
#> SRR1398430 3 0.6414 0.2486 0.368 0.008 0.568 0.056
#> SRR1444242 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1440832 4 0.0000 0.8147 0.000 0.000 0.000 1.000
#> SRR1358803 3 0.4877 0.1377 0.408 0.000 0.592 0.000
#> SRR1344079 3 0.4804 0.1653 0.384 0.000 0.616 0.000
#> SRR1072602 1 0.4164 0.6636 0.736 0.000 0.264 0.000
#> SRR1421399 3 0.8162 0.0594 0.288 0.008 0.368 0.336
#> SRR1339086 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.6878 0.2864 0.104 0.000 0.472 0.424
#> SRR1329508 3 0.6878 0.2864 0.104 0.000 0.472 0.424
#> SRR1440200 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9900 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.3088 0.8793 0.000 0.888 0.052 0.060
#> SRR1387787 1 0.4072 0.6478 0.748 0.000 0.252 0.000
#> SRR1378199 1 0.2149 0.7941 0.912 0.000 0.088 0.000
#> SRR1413119 4 0.0592 0.8070 0.000 0.000 0.016 0.984
#> SRR1310497 1 0.4564 0.5685 0.672 0.000 0.328 0.000
#> SRR1356327 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1319059 1 0.4989 0.2711 0.528 0.000 0.472 0.000
#> SRR1085378 1 0.4996 0.0628 0.516 0.000 0.484 0.000
#> SRR1379036 3 0.6878 0.2864 0.104 0.000 0.472 0.424
#> SRR1417656 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.8181 1.000 0.000 0.000 0.000
#> SRR1455346 3 0.6282 0.2497 0.368 0.004 0.572 0.056
#> SRR1366412 2 0.0000 0.9900 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.2722 0.8179 0.872 0.000 0.108 0.020 0.000
#> SRR1375371 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1416819 4 0.4798 0.3868 0.020 0.000 0.440 0.540 0.000
#> SRR1351907 4 0.1372 0.7053 0.000 0.016 0.004 0.956 0.024
#> SRR1330371 5 0.5638 0.7688 0.000 0.000 0.172 0.192 0.636
#> SRR1340782 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.3242 0.8495 0.000 0.000 0.216 0.000 0.784
#> SRR1436262 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.1299 0.7211 0.012 0.000 0.008 0.960 0.020
#> SRR1435460 5 0.5668 0.7675 0.000 0.000 0.172 0.196 0.632
#> SRR1485587 4 0.5010 0.6290 0.076 0.000 0.248 0.676 0.000
#> SRR1470834 1 0.4491 0.5930 0.652 0.000 0.328 0.020 0.000
#> SRR1442966 5 0.5638 0.7688 0.000 0.000 0.172 0.192 0.636
#> SRR1410979 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 1 0.3861 0.7814 0.804 0.000 0.128 0.068 0.000
#> SRR1360321 3 0.0000 0.8243 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 4 0.1299 0.7211 0.012 0.000 0.008 0.960 0.020
#> SRR1440663 3 0.0000 0.8243 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 1 0.4570 0.5622 0.632 0.000 0.348 0.020 0.000
#> SRR1409772 1 0.4069 0.7738 0.788 0.000 0.136 0.076 0.000
#> SRR1092591 1 0.3723 0.7160 0.804 0.000 0.044 0.152 0.000
#> SRR1338402 3 0.3074 0.4749 0.000 0.000 0.804 0.000 0.196
#> SRR1337930 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0963 0.8453 0.964 0.000 0.036 0.000 0.000
#> SRR1396901 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.8243 0.000 0.000 1.000 0.000 0.000
#> SRR1416538 1 0.4570 0.5622 0.632 0.000 0.348 0.020 0.000
#> SRR1340762 3 0.4697 0.1458 0.388 0.000 0.592 0.020 0.000
#> SRR1460095 5 0.5638 0.7688 0.000 0.000 0.172 0.192 0.636
#> SRR1071181 3 0.0000 0.8243 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 1 0.5678 0.5261 0.612 0.000 0.128 0.260 0.000
#> SRR1074934 4 0.4798 0.3868 0.020 0.000 0.440 0.540 0.000
#> SRR1311731 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0162 0.8504 0.996 0.000 0.004 0.000 0.000
#> SRR1434845 1 0.4717 0.4664 0.584 0.000 0.396 0.020 0.000
#> SRR1472171 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.8243 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0000 0.8243 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1077728 1 0.2144 0.8329 0.912 0.000 0.068 0.020 0.000
#> SRR1365767 5 0.4339 0.8184 0.000 0.000 0.296 0.020 0.684
#> SRR1489670 2 0.2179 0.8759 0.000 0.888 0.000 0.112 0.000
#> SRR1343136 3 0.0000 0.8243 0.000 0.000 1.000 0.000 0.000
#> SRR1359587 3 0.3074 0.4749 0.000 0.000 0.804 0.000 0.196
#> SRR1465782 1 0.4113 0.7715 0.784 0.000 0.140 0.076 0.000
#> SRR1434460 1 0.4042 0.7390 0.756 0.000 0.212 0.032 0.000
#> SRR1415751 1 0.4437 0.6136 0.664 0.000 0.316 0.020 0.000
#> SRR1359027 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.8243 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.8243 0.000 0.000 1.000 0.000 0.000
#> SRR1076465 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 4 0.5116 0.6221 0.084 0.000 0.248 0.668 0.000
#> SRR1076046 1 0.4010 0.7429 0.760 0.000 0.208 0.032 0.000
#> SRR1406643 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 5 0.3242 0.8495 0.000 0.000 0.216 0.000 0.784
#> SRR1475147 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0162 0.8504 0.996 0.000 0.004 0.000 0.000
#> SRR1087680 5 0.3242 0.8495 0.000 0.000 0.216 0.000 0.784
#> SRR1361391 5 0.3242 0.8495 0.000 0.000 0.216 0.000 0.784
#> SRR1365655 3 0.4686 0.1597 0.384 0.000 0.596 0.020 0.000
#> SRR1090457 3 0.0000 0.8243 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 4 0.1153 0.7176 0.008 0.000 0.004 0.964 0.024
#> SRR1380358 1 0.1205 0.8429 0.956 0.000 0.040 0.004 0.000
#> SRR1398430 4 0.1153 0.7176 0.008 0.000 0.004 0.964 0.024
#> SRR1444242 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.3242 0.8495 0.000 0.000 0.216 0.000 0.784
#> SRR1358803 4 0.3590 0.7128 0.080 0.000 0.092 0.828 0.000
#> SRR1344079 4 0.3427 0.7171 0.056 0.000 0.108 0.836 0.000
#> SRR1072602 1 0.5519 0.5195 0.584 0.000 0.332 0.084 0.000
#> SRR1421399 4 0.5682 0.2776 0.008 0.000 0.172 0.656 0.164
#> SRR1339086 1 0.0162 0.8502 0.996 0.000 0.004 0.000 0.000
#> SRR1099881 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.8243 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.0000 0.8243 0.000 0.000 1.000 0.000 0.000
#> SRR1440200 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9819 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 2 0.4958 0.6693 0.000 0.692 0.000 0.084 0.224
#> SRR1387787 1 0.5197 0.6389 0.680 0.000 0.116 0.204 0.000
#> SRR1378199 1 0.2903 0.8144 0.872 0.000 0.080 0.048 0.000
#> SRR1413119 5 0.4709 0.7555 0.000 0.000 0.364 0.024 0.612
#> SRR1310497 1 0.4736 0.4499 0.576 0.000 0.404 0.020 0.000
#> SRR1356327 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1319059 3 0.4736 0.0862 0.404 0.000 0.576 0.020 0.000
#> SRR1085378 4 0.5373 0.5470 0.276 0.000 0.092 0.632 0.000
#> SRR1379036 3 0.0000 0.8243 0.000 0.000 1.000 0.000 0.000
#> SRR1417656 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.8505 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.1280 0.7196 0.008 0.000 0.008 0.960 0.024
#> SRR1366412 2 0.0162 0.9790 0.000 0.996 0.000 0.004 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1313664 1 0.2954 0.808 0.852 0.000 0.048 0.096 0.000 0.004
#> SRR1375371 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1416819 4 0.3979 0.466 0.000 0.000 0.360 0.628 0.000 0.012
#> SRR1351907 4 0.3168 0.658 0.000 0.016 0.000 0.792 0.000 0.192
#> SRR1330371 5 0.6796 0.619 0.000 0.000 0.172 0.140 0.520 0.168
#> SRR1340782 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.0146 0.629 0.000 0.000 0.004 0.000 0.996 0.000
#> SRR1436262 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.2631 0.677 0.000 0.000 0.000 0.820 0.000 0.180
#> SRR1435460 5 0.6800 0.618 0.000 0.000 0.172 0.144 0.520 0.164
#> SRR1485587 4 0.3447 0.603 0.024 0.000 0.164 0.800 0.000 0.012
#> SRR1470834 1 0.5512 0.576 0.596 0.000 0.272 0.116 0.004 0.012
#> SRR1442966 5 0.6796 0.619 0.000 0.000 0.172 0.140 0.520 0.168
#> SRR1410979 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1367520 1 0.4199 0.752 0.748 0.000 0.048 0.188 0.004 0.012
#> SRR1360321 3 0.0000 0.838 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 4 0.2631 0.677 0.000 0.000 0.000 0.820 0.000 0.180
#> SRR1440663 3 0.0000 0.838 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 1 0.5307 0.538 0.592 0.000 0.312 0.080 0.004 0.012
#> SRR1409772 1 0.4404 0.745 0.732 0.000 0.060 0.192 0.004 0.012
#> SRR1092591 1 0.3692 0.676 0.736 0.000 0.008 0.244 0.000 0.012
#> SRR1338402 3 0.2762 0.568 0.000 0.000 0.804 0.000 0.196 0.000
#> SRR1337930 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.1167 0.832 0.960 0.000 0.020 0.012 0.000 0.008
#> SRR1396901 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.838 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1416538 1 0.5307 0.538 0.592 0.000 0.312 0.080 0.004 0.012
#> SRR1340762 3 0.5340 0.172 0.352 0.000 0.560 0.072 0.004 0.012
#> SRR1460095 5 0.6796 0.619 0.000 0.000 0.172 0.140 0.520 0.168
#> SRR1071181 3 0.0000 0.838 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1473611 1 0.5106 0.484 0.556 0.000 0.048 0.380 0.004 0.012
#> SRR1074934 4 0.3979 0.466 0.000 0.000 0.360 0.628 0.000 0.012
#> SRR1311731 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0632 0.833 0.976 0.000 0.000 0.024 0.000 0.000
#> SRR1434845 1 0.5448 0.441 0.544 0.000 0.360 0.080 0.004 0.012
#> SRR1472171 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.838 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.838 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1077728 1 0.2288 0.820 0.896 0.000 0.028 0.072 0.000 0.004
#> SRR1365767 5 0.5072 0.637 0.000 0.000 0.160 0.008 0.660 0.172
#> SRR1489670 2 0.2282 0.801 0.000 0.888 0.000 0.088 0.000 0.024
#> SRR1343136 3 0.0000 0.838 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1359587 3 0.2762 0.568 0.000 0.000 0.804 0.000 0.196 0.000
#> SRR1465782 1 0.4460 0.743 0.728 0.000 0.064 0.192 0.004 0.012
#> SRR1434460 1 0.4753 0.729 0.716 0.000 0.148 0.120 0.004 0.012
#> SRR1415751 1 0.5302 0.606 0.624 0.000 0.260 0.100 0.004 0.012
#> SRR1359027 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.838 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1456469 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.838 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1076465 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 4 0.3596 0.597 0.032 0.000 0.164 0.792 0.000 0.012
#> SRR1076046 1 0.4717 0.733 0.720 0.000 0.144 0.120 0.004 0.012
#> SRR1406643 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1499460 5 0.1700 0.607 0.000 0.000 0.004 0.000 0.916 0.080
#> SRR1475147 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0458 0.834 0.984 0.000 0.000 0.016 0.000 0.000
#> SRR1087680 5 0.1700 0.607 0.000 0.000 0.004 0.000 0.916 0.080
#> SRR1361391 5 0.0146 0.629 0.000 0.000 0.004 0.000 0.996 0.000
#> SRR1365655 3 0.5330 0.185 0.348 0.000 0.564 0.072 0.004 0.012
#> SRR1090457 3 0.0000 0.838 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.2631 0.673 0.000 0.000 0.000 0.820 0.000 0.180
#> SRR1380358 1 0.1757 0.822 0.916 0.000 0.008 0.076 0.000 0.000
#> SRR1398430 4 0.2631 0.673 0.000 0.000 0.000 0.820 0.000 0.180
#> SRR1444242 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.1700 0.607 0.000 0.000 0.004 0.000 0.916 0.080
#> SRR1358803 4 0.1743 0.668 0.008 0.000 0.028 0.936 0.004 0.024
#> SRR1344079 4 0.1010 0.672 0.000 0.000 0.036 0.960 0.000 0.004
#> SRR1072602 1 0.6256 0.508 0.520 0.000 0.252 0.200 0.004 0.024
#> SRR1421399 4 0.6371 0.292 0.000 0.000 0.172 0.516 0.048 0.264
#> SRR1339086 1 0.0146 0.835 0.996 0.000 0.004 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.838 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.0000 0.838 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1440200 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.991 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1344364 6 0.3819 0.000 0.000 0.280 0.000 0.020 0.000 0.700
#> SRR1387787 1 0.4694 0.600 0.624 0.000 0.044 0.324 0.004 0.004
#> SRR1378199 1 0.3168 0.788 0.820 0.000 0.028 0.148 0.004 0.000
#> SRR1413119 5 0.5561 0.507 0.000 0.000 0.364 0.012 0.520 0.104
#> SRR1310497 1 0.5466 0.424 0.536 0.000 0.368 0.080 0.004 0.012
#> SRR1356327 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1319059 3 0.5378 0.114 0.368 0.000 0.544 0.072 0.004 0.012
#> SRR1085378 4 0.3984 0.486 0.204 0.000 0.028 0.752 0.004 0.012
#> SRR1379036 3 0.0000 0.838 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1417656 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.836 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.2527 0.675 0.000 0.000 0.000 0.832 0.000 0.168
#> SRR1366412 2 0.0146 0.986 0.000 0.996 0.000 0.000 0.000 0.004
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 17697 rows and 104 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 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.978 0.932 0.966 0.4238 0.586 0.586
#> 3 3 1.000 0.937 0.977 0.5299 0.698 0.513
#> 4 4 0.751 0.770 0.887 0.1119 0.898 0.722
#> 5 5 0.833 0.834 0.882 0.0592 0.963 0.871
#> 6 6 0.854 0.852 0.870 0.0609 0.918 0.675
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
#> SRR1313664 1 0.1843 0.9644 0.972 0.028
#> SRR1375371 2 0.0000 0.9770 0.000 1.000
#> SRR1416819 1 0.0000 0.9591 1.000 0.000
#> SRR1351907 2 0.0000 0.9770 0.000 1.000
#> SRR1330371 2 0.7453 0.7689 0.212 0.788
#> SRR1340782 1 0.1843 0.9644 0.972 0.028
#> SRR1094531 1 0.9866 0.1942 0.568 0.432
#> SRR1436262 1 0.1843 0.9644 0.972 0.028
#> SRR1093314 1 0.1843 0.9644 0.972 0.028
#> SRR1435460 1 0.0000 0.9591 1.000 0.000
#> SRR1485587 1 0.1843 0.9644 0.972 0.028
#> SRR1470834 1 0.0000 0.9591 1.000 0.000
#> SRR1442966 2 0.7453 0.7689 0.212 0.788
#> SRR1410979 2 0.0000 0.9770 0.000 1.000
#> SRR1326449 2 0.0000 0.9770 0.000 1.000
#> SRR1367520 1 0.1843 0.9644 0.972 0.028
#> SRR1360321 1 0.0000 0.9591 1.000 0.000
#> SRR1445170 1 0.1843 0.9644 0.972 0.028
#> SRR1440663 1 0.0000 0.9591 1.000 0.000
#> SRR1489839 1 0.0000 0.9591 1.000 0.000
#> SRR1409772 1 0.1843 0.9644 0.972 0.028
#> SRR1092591 1 0.1843 0.9644 0.972 0.028
#> SRR1338402 1 0.0000 0.9591 1.000 0.000
#> SRR1337930 1 0.1843 0.9644 0.972 0.028
#> SRR1337749 1 0.1843 0.9644 0.972 0.028
#> SRR1401341 1 0.1843 0.9644 0.972 0.028
#> SRR1396901 1 0.1843 0.9644 0.972 0.028
#> SRR1354400 1 0.0000 0.9591 1.000 0.000
#> SRR1416538 1 0.0000 0.9591 1.000 0.000
#> SRR1340762 1 0.0000 0.9591 1.000 0.000
#> SRR1460095 2 0.0376 0.9743 0.004 0.996
#> SRR1071181 1 0.0000 0.9591 1.000 0.000
#> SRR1380436 2 0.0000 0.9770 0.000 1.000
#> SRR1079973 2 0.0000 0.9770 0.000 1.000
#> SRR1473611 1 0.1843 0.9644 0.972 0.028
#> SRR1074934 1 0.0000 0.9591 1.000 0.000
#> SRR1311731 2 0.0000 0.9770 0.000 1.000
#> SRR1452957 2 0.0000 0.9770 0.000 1.000
#> SRR1429144 1 0.1843 0.9644 0.972 0.028
#> SRR1448203 1 0.1843 0.9644 0.972 0.028
#> SRR1366102 1 0.1843 0.9644 0.972 0.028
#> SRR1434845 1 0.0000 0.9591 1.000 0.000
#> SRR1472171 1 0.1843 0.9644 0.972 0.028
#> SRR1441075 2 0.0000 0.9770 0.000 1.000
#> SRR1321483 1 0.0000 0.9591 1.000 0.000
#> SRR1418105 1 0.0000 0.9591 1.000 0.000
#> SRR1090022 2 0.0000 0.9770 0.000 1.000
#> SRR1077728 1 0.1843 0.9644 0.972 0.028
#> SRR1365767 2 0.2043 0.9550 0.032 0.968
#> SRR1489670 2 0.0000 0.9770 0.000 1.000
#> SRR1343136 1 0.0000 0.9591 1.000 0.000
#> SRR1359587 1 0.0000 0.9591 1.000 0.000
#> SRR1465782 1 0.1633 0.9640 0.976 0.024
#> SRR1434460 1 0.1633 0.9640 0.976 0.024
#> SRR1415751 1 0.1633 0.9640 0.976 0.024
#> SRR1359027 1 0.1843 0.9644 0.972 0.028
#> SRR1408303 1 0.0000 0.9591 1.000 0.000
#> SRR1456469 2 0.0000 0.9770 0.000 1.000
#> SRR1436717 2 0.0000 0.9770 0.000 1.000
#> SRR1480287 1 0.1843 0.9644 0.972 0.028
#> SRR1326845 2 0.0000 0.9770 0.000 1.000
#> SRR1070133 2 0.0000 0.9770 0.000 1.000
#> SRR1387745 2 0.0000 0.9770 0.000 1.000
#> SRR1436904 1 0.0000 0.9591 1.000 0.000
#> SRR1076465 2 0.0000 0.9770 0.000 1.000
#> SRR1433215 1 0.1843 0.9644 0.972 0.028
#> SRR1076046 1 0.1633 0.9640 0.976 0.024
#> SRR1406643 2 0.0000 0.9770 0.000 1.000
#> SRR1499460 2 0.5059 0.8962 0.112 0.888
#> SRR1475147 2 0.0000 0.9770 0.000 1.000
#> SRR1319301 1 0.1843 0.9644 0.972 0.028
#> SRR1486117 1 0.1843 0.9644 0.972 0.028
#> SRR1087680 2 0.5059 0.8962 0.112 0.888
#> SRR1361391 1 0.0000 0.9591 1.000 0.000
#> SRR1365655 1 0.0000 0.9591 1.000 0.000
#> SRR1090457 1 0.0000 0.9591 1.000 0.000
#> SRR1084154 1 1.0000 0.0592 0.504 0.496
#> SRR1380358 1 0.1843 0.9644 0.972 0.028
#> SRR1398430 1 0.8813 0.5958 0.700 0.300
#> SRR1444242 1 0.1843 0.9644 0.972 0.028
#> SRR1440832 2 0.1843 0.9552 0.028 0.972
#> SRR1358803 1 0.1843 0.9644 0.972 0.028
#> SRR1344079 1 0.1843 0.9644 0.972 0.028
#> SRR1072602 1 0.1633 0.9640 0.976 0.024
#> SRR1421399 1 0.9998 0.0738 0.508 0.492
#> SRR1339086 1 0.1843 0.9644 0.972 0.028
#> SRR1099881 1 0.1843 0.9644 0.972 0.028
#> SRR1384312 1 0.0000 0.9591 1.000 0.000
#> SRR1329508 1 0.0000 0.9591 1.000 0.000
#> SRR1440200 2 0.0000 0.9770 0.000 1.000
#> SRR1397558 2 0.0000 0.9770 0.000 1.000
#> SRR1344364 2 0.0000 0.9770 0.000 1.000
#> SRR1387787 1 0.1843 0.9644 0.972 0.028
#> SRR1378199 1 0.1843 0.9644 0.972 0.028
#> SRR1413119 1 0.0000 0.9591 1.000 0.000
#> SRR1310497 1 0.0000 0.9591 1.000 0.000
#> SRR1356327 1 0.1843 0.9644 0.972 0.028
#> SRR1319059 1 0.0000 0.9591 1.000 0.000
#> SRR1085378 1 0.1843 0.9644 0.972 0.028
#> SRR1379036 1 0.0000 0.9591 1.000 0.000
#> SRR1417656 1 0.1843 0.9644 0.972 0.028
#> SRR1454225 1 0.1843 0.9644 0.972 0.028
#> SRR1455346 1 0.1843 0.9644 0.972 0.028
#> SRR1366412 2 0.0000 0.9770 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1375371 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1416819 3 0.0592 0.96482 0.012 0.000 0.988
#> SRR1351907 2 0.0237 0.99582 0.000 0.996 0.004
#> SRR1330371 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1340782 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1094531 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1436262 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1093314 3 0.1289 0.94658 0.032 0.000 0.968
#> SRR1435460 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1485587 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1470834 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1442966 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1410979 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1326449 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1367520 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1360321 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1445170 3 0.1289 0.94658 0.032 0.000 0.968
#> SRR1440663 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1489839 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1409772 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1092591 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1338402 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1337930 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1401341 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1396901 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1354400 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1416538 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1340762 1 0.4702 0.71576 0.788 0.000 0.212
#> SRR1460095 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1071181 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1380436 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1473611 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1074934 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1311731 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1434845 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1472171 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1321483 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1418105 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1090022 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1077728 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1365767 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1489670 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1343136 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1359587 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1465782 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1434460 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1415751 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1359027 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1408303 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1456469 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1436717 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1436904 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1076465 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1433215 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1076046 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1406643 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1499460 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1475147 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1319301 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1486117 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1087680 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1361391 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1365655 3 0.4346 0.76229 0.184 0.000 0.816
#> SRR1090457 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1084154 1 0.9620 0.00347 0.416 0.204 0.380
#> SRR1380358 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1398430 3 0.0592 0.96482 0.012 0.000 0.988
#> SRR1444242 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1440832 3 0.1860 0.92830 0.000 0.052 0.948
#> SRR1358803 1 0.6168 0.28932 0.588 0.000 0.412
#> SRR1344079 3 0.6154 0.28327 0.408 0.000 0.592
#> SRR1072602 1 0.0237 0.95790 0.996 0.000 0.004
#> SRR1421399 3 0.0237 0.97104 0.004 0.000 0.996
#> SRR1339086 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1384312 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1329508 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1440200 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1344364 2 0.0000 0.99981 0.000 1.000 0.000
#> SRR1387787 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1378199 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1413119 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1310497 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1356327 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1319059 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1085378 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1379036 3 0.0000 0.97387 0.000 0.000 1.000
#> SRR1417656 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.96156 1.000 0.000 0.000
#> SRR1455346 1 0.6307 0.03736 0.512 0.000 0.488
#> SRR1366412 2 0.0000 0.99981 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.961 0.000 1.000 0.000 0.000
#> SRR1416819 4 0.4992 0.370 0.000 0.000 0.476 0.524
#> SRR1351907 2 0.4999 0.206 0.000 0.508 0.000 0.492
#> SRR1330371 4 0.4477 0.391 0.000 0.000 0.312 0.688
#> SRR1340782 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1094531 3 0.4981 0.242 0.000 0.000 0.536 0.464
#> SRR1436262 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.3498 0.727 0.008 0.000 0.160 0.832
#> SRR1435460 4 0.4804 0.446 0.000 0.000 0.384 0.616
#> SRR1485587 1 0.5772 0.608 0.672 0.000 0.068 0.260
#> SRR1470834 1 0.3266 0.870 0.868 0.000 0.024 0.108
#> SRR1442966 4 0.3801 0.535 0.000 0.000 0.220 0.780
#> SRR1410979 2 0.0188 0.961 0.000 0.996 0.000 0.004
#> SRR1326449 2 0.1118 0.960 0.000 0.964 0.000 0.036
#> SRR1367520 1 0.1389 0.915 0.952 0.000 0.000 0.048
#> SRR1360321 3 0.0000 0.737 0.000 0.000 1.000 0.000
#> SRR1445170 4 0.3498 0.727 0.008 0.000 0.160 0.832
#> SRR1440663 3 0.0000 0.737 0.000 0.000 1.000 0.000
#> SRR1489839 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1409772 1 0.2469 0.888 0.892 0.000 0.000 0.108
#> SRR1092591 1 0.2469 0.888 0.892 0.000 0.000 0.108
#> SRR1338402 3 0.0817 0.722 0.000 0.000 0.976 0.024
#> SRR1337930 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.737 0.000 0.000 1.000 0.000
#> SRR1416538 1 0.4274 0.833 0.820 0.000 0.072 0.108
#> SRR1340762 3 0.4411 0.482 0.080 0.000 0.812 0.108
#> SRR1460095 4 0.3024 0.590 0.000 0.000 0.148 0.852
#> SRR1071181 3 0.0000 0.737 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.961 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.1211 0.960 0.000 0.960 0.000 0.040
#> SRR1473611 1 0.2469 0.888 0.892 0.000 0.000 0.108
#> SRR1074934 4 0.4998 0.341 0.000 0.000 0.488 0.512
#> SRR1311731 2 0.0000 0.961 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.1211 0.960 0.000 0.960 0.000 0.040
#> SRR1429144 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.4274 0.833 0.820 0.000 0.072 0.108
#> SRR1472171 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.961 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.0000 0.737 0.000 0.000 1.000 0.000
#> SRR1418105 3 0.0000 0.737 0.000 0.000 1.000 0.000
#> SRR1090022 2 0.0592 0.961 0.000 0.984 0.000 0.016
#> SRR1077728 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1365767 3 0.5000 0.154 0.000 0.000 0.504 0.496
#> SRR1489670 2 0.2589 0.885 0.000 0.884 0.000 0.116
#> SRR1343136 3 0.0000 0.737 0.000 0.000 1.000 0.000
#> SRR1359587 3 0.0817 0.722 0.000 0.000 0.976 0.024
#> SRR1465782 1 0.2469 0.888 0.892 0.000 0.000 0.108
#> SRR1434460 1 0.2469 0.888 0.892 0.000 0.000 0.108
#> SRR1415751 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.737 0.000 0.000 1.000 0.000
#> SRR1456469 2 0.1211 0.960 0.000 0.960 0.000 0.040
#> SRR1436717 2 0.0000 0.961 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0707 0.960 0.000 0.980 0.000 0.020
#> SRR1070133 2 0.0707 0.960 0.000 0.980 0.000 0.020
#> SRR1387745 2 0.1211 0.960 0.000 0.960 0.000 0.040
#> SRR1436904 3 0.0000 0.737 0.000 0.000 1.000 0.000
#> SRR1076465 2 0.0188 0.961 0.000 0.996 0.000 0.004
#> SRR1433215 1 0.6701 0.417 0.584 0.000 0.120 0.296
#> SRR1076046 1 0.2469 0.888 0.892 0.000 0.000 0.108
#> SRR1406643 2 0.1211 0.960 0.000 0.960 0.000 0.040
#> SRR1499460 3 0.4981 0.242 0.000 0.000 0.536 0.464
#> SRR1475147 2 0.0707 0.960 0.000 0.980 0.000 0.020
#> SRR1319301 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1087680 3 0.4981 0.242 0.000 0.000 0.536 0.464
#> SRR1361391 3 0.4981 0.242 0.000 0.000 0.536 0.464
#> SRR1365655 3 0.3899 0.521 0.052 0.000 0.840 0.108
#> SRR1090457 3 0.0000 0.737 0.000 0.000 1.000 0.000
#> SRR1084154 4 0.5366 0.647 0.140 0.028 0.060 0.772
#> SRR1380358 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1398430 4 0.3498 0.727 0.008 0.000 0.160 0.832
#> SRR1444242 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1440832 3 0.5402 0.204 0.000 0.012 0.516 0.472
#> SRR1358803 4 0.5968 0.559 0.236 0.000 0.092 0.672
#> SRR1344079 4 0.5383 0.690 0.100 0.000 0.160 0.740
#> SRR1072602 1 0.4901 0.778 0.780 0.000 0.112 0.108
#> SRR1421399 4 0.3351 0.725 0.008 0.000 0.148 0.844
#> SRR1339086 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.737 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.0000 0.737 0.000 0.000 1.000 0.000
#> SRR1440200 2 0.0000 0.961 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0707 0.960 0.000 0.980 0.000 0.020
#> SRR1344364 2 0.1211 0.950 0.000 0.960 0.000 0.040
#> SRR1387787 1 0.2469 0.888 0.892 0.000 0.000 0.108
#> SRR1378199 1 0.0817 0.924 0.976 0.000 0.000 0.024
#> SRR1413119 3 0.4981 0.242 0.000 0.000 0.536 0.464
#> SRR1310497 1 0.5964 0.643 0.684 0.000 0.208 0.108
#> SRR1356327 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1319059 3 0.6926 -0.131 0.432 0.000 0.460 0.108
#> SRR1085378 1 0.2469 0.888 0.892 0.000 0.000 0.108
#> SRR1379036 3 0.0000 0.737 0.000 0.000 1.000 0.000
#> SRR1417656 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.931 1.000 0.000 0.000 0.000
#> SRR1455346 4 0.5204 0.699 0.088 0.000 0.160 0.752
#> SRR1366412 2 0.0817 0.960 0.000 0.976 0.000 0.024
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.0290 0.850 0.992 0.000 0.000 0.000 0.008
#> SRR1375371 2 0.0162 0.953 0.000 0.996 0.000 0.000 0.004
#> SRR1416819 4 0.4727 0.468 0.012 0.000 0.340 0.636 0.012
#> SRR1351907 4 0.3579 0.688 0.000 0.072 0.000 0.828 0.100
#> SRR1330371 5 0.4987 0.680 0.000 0.000 0.080 0.236 0.684
#> SRR1340782 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1094531 5 0.4793 0.915 0.000 0.000 0.260 0.056 0.684
#> SRR1436262 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1093314 4 0.0324 0.826 0.004 0.000 0.004 0.992 0.000
#> SRR1435460 4 0.5043 0.277 0.000 0.000 0.044 0.600 0.356
#> SRR1485587 1 0.4937 0.101 0.544 0.000 0.000 0.428 0.028
#> SRR1470834 1 0.2351 0.814 0.916 0.000 0.036 0.020 0.028
#> SRR1442966 5 0.4404 0.562 0.000 0.000 0.024 0.292 0.684
#> SRR1410979 2 0.0290 0.954 0.000 0.992 0.000 0.000 0.008
#> SRR1326449 2 0.2286 0.941 0.000 0.888 0.000 0.004 0.108
#> SRR1367520 1 0.0898 0.846 0.972 0.000 0.000 0.020 0.008
#> SRR1360321 3 0.0000 0.931 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 4 0.0324 0.826 0.004 0.000 0.004 0.992 0.000
#> SRR1440663 3 0.0000 0.931 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 1 0.0955 0.843 0.968 0.000 0.000 0.004 0.028
#> SRR1409772 1 0.1300 0.837 0.956 0.000 0.000 0.016 0.028
#> SRR1092591 1 0.0898 0.850 0.972 0.000 0.000 0.020 0.008
#> SRR1338402 3 0.0703 0.905 0.000 0.000 0.976 0.000 0.024
#> SRR1337930 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1337749 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1401341 1 0.2561 0.871 0.856 0.000 0.000 0.000 0.144
#> SRR1396901 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1354400 3 0.0000 0.931 0.000 0.000 1.000 0.000 0.000
#> SRR1416538 1 0.3333 0.763 0.856 0.000 0.096 0.020 0.028
#> SRR1340762 3 0.3997 0.712 0.152 0.000 0.800 0.020 0.028
#> SRR1460095 4 0.4014 0.546 0.000 0.000 0.016 0.728 0.256
#> SRR1071181 3 0.0000 0.931 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.954 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.2338 0.940 0.000 0.884 0.000 0.004 0.112
#> SRR1473611 1 0.1399 0.838 0.952 0.000 0.000 0.020 0.028
#> SRR1074934 4 0.4227 0.332 0.000 0.000 0.420 0.580 0.000
#> SRR1311731 2 0.0000 0.954 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.2338 0.940 0.000 0.884 0.000 0.004 0.112
#> SRR1429144 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1448203 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1366102 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1434845 1 0.3333 0.763 0.856 0.000 0.096 0.020 0.028
#> SRR1472171 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1441075 2 0.0162 0.953 0.000 0.996 0.000 0.000 0.004
#> SRR1321483 3 0.0000 0.931 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0000 0.931 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 2 0.0703 0.954 0.000 0.976 0.000 0.000 0.024
#> SRR1077728 1 0.2230 0.869 0.884 0.000 0.000 0.000 0.116
#> SRR1365767 5 0.4898 0.908 0.000 0.000 0.248 0.068 0.684
#> SRR1489670 2 0.3983 0.784 0.000 0.784 0.000 0.164 0.052
#> SRR1343136 3 0.0404 0.922 0.000 0.000 0.988 0.000 0.012
#> SRR1359587 3 0.0703 0.905 0.000 0.000 0.976 0.000 0.024
#> SRR1465782 1 0.1399 0.836 0.952 0.000 0.000 0.020 0.028
#> SRR1434460 1 0.1399 0.836 0.952 0.000 0.000 0.020 0.028
#> SRR1415751 1 0.0955 0.843 0.968 0.000 0.000 0.004 0.028
#> SRR1359027 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1408303 3 0.0000 0.931 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.2338 0.940 0.000 0.884 0.000 0.004 0.112
#> SRR1436717 2 0.0000 0.954 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1326845 2 0.1638 0.947 0.000 0.932 0.000 0.004 0.064
#> SRR1070133 2 0.1041 0.953 0.000 0.964 0.000 0.004 0.032
#> SRR1387745 2 0.2338 0.940 0.000 0.884 0.000 0.004 0.112
#> SRR1436904 3 0.0000 0.931 0.000 0.000 1.000 0.000 0.000
#> SRR1076465 2 0.0162 0.954 0.000 0.996 0.000 0.000 0.004
#> SRR1433215 1 0.6512 -0.137 0.448 0.000 0.096 0.428 0.028
#> SRR1076046 1 0.1399 0.836 0.952 0.000 0.000 0.020 0.028
#> SRR1406643 2 0.2338 0.940 0.000 0.884 0.000 0.004 0.112
#> SRR1499460 5 0.4793 0.915 0.000 0.000 0.260 0.056 0.684
#> SRR1475147 2 0.1341 0.950 0.000 0.944 0.000 0.000 0.056
#> SRR1319301 1 0.2732 0.871 0.840 0.000 0.000 0.000 0.160
#> SRR1486117 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1087680 5 0.4793 0.915 0.000 0.000 0.260 0.056 0.684
#> SRR1361391 5 0.4793 0.915 0.000 0.000 0.260 0.056 0.684
#> SRR1365655 3 0.3997 0.712 0.152 0.000 0.800 0.020 0.028
#> SRR1090457 3 0.0000 0.931 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 4 0.0613 0.823 0.004 0.004 0.000 0.984 0.008
#> SRR1380358 1 0.2719 0.871 0.852 0.000 0.000 0.004 0.144
#> SRR1398430 4 0.0613 0.825 0.004 0.000 0.004 0.984 0.008
#> SRR1444242 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1440832 5 0.4830 0.913 0.000 0.000 0.256 0.060 0.684
#> SRR1358803 4 0.0451 0.824 0.008 0.000 0.004 0.988 0.000
#> SRR1344079 4 0.0324 0.826 0.004 0.000 0.004 0.992 0.000
#> SRR1072602 1 0.3910 0.723 0.816 0.000 0.128 0.028 0.028
#> SRR1421399 4 0.0566 0.823 0.004 0.000 0.000 0.984 0.012
#> SRR1339086 1 0.2732 0.871 0.840 0.000 0.000 0.000 0.160
#> SRR1099881 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1384312 3 0.0000 0.931 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.0000 0.931 0.000 0.000 1.000 0.000 0.000
#> SRR1440200 2 0.0000 0.954 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.1638 0.947 0.000 0.932 0.000 0.004 0.064
#> SRR1344364 2 0.1549 0.947 0.000 0.944 0.000 0.016 0.040
#> SRR1387787 1 0.1300 0.837 0.956 0.000 0.000 0.016 0.028
#> SRR1378199 1 0.1211 0.854 0.960 0.000 0.000 0.016 0.024
#> SRR1413119 5 0.4793 0.915 0.000 0.000 0.260 0.056 0.684
#> SRR1310497 1 0.5158 0.394 0.636 0.000 0.316 0.020 0.028
#> SRR1356327 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1319059 3 0.4597 0.614 0.220 0.000 0.732 0.020 0.028
#> SRR1085378 1 0.1399 0.838 0.952 0.000 0.000 0.020 0.028
#> SRR1379036 3 0.0290 0.925 0.000 0.000 0.992 0.000 0.008
#> SRR1417656 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1454225 1 0.2890 0.871 0.836 0.000 0.000 0.004 0.160
#> SRR1455346 4 0.0324 0.826 0.004 0.000 0.004 0.992 0.000
#> SRR1366412 2 0.1043 0.952 0.000 0.960 0.000 0.000 0.040
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1313664 6 0.3547 0.860 0.332 0.000 0.000 0.000 0.000 0.668
#> SRR1375371 2 0.0000 0.922 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1416819 4 0.4692 0.276 0.000 0.000 0.428 0.532 0.004 0.036
#> SRR1351907 4 0.2395 0.774 0.000 0.012 0.000 0.892 0.020 0.076
#> SRR1330371 5 0.2535 0.925 0.000 0.000 0.012 0.064 0.888 0.036
#> SRR1340782 1 0.0458 0.929 0.984 0.000 0.000 0.000 0.016 0.000
#> SRR1094531 5 0.1745 0.967 0.000 0.000 0.056 0.020 0.924 0.000
#> SRR1436262 1 0.0000 0.928 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.0260 0.832 0.000 0.000 0.000 0.992 0.000 0.008
#> SRR1435460 4 0.4835 0.360 0.000 0.000 0.016 0.604 0.340 0.040
#> SRR1485587 6 0.4603 0.687 0.116 0.000 0.000 0.176 0.004 0.704
#> SRR1470834 6 0.3855 0.868 0.272 0.000 0.024 0.000 0.000 0.704
#> SRR1442966 5 0.2457 0.904 0.000 0.000 0.000 0.084 0.880 0.036
#> SRR1410979 2 0.0547 0.923 0.000 0.980 0.000 0.000 0.000 0.020
#> SRR1326449 2 0.2887 0.910 0.000 0.844 0.000 0.000 0.036 0.120
#> SRR1367520 6 0.3810 0.745 0.428 0.000 0.000 0.000 0.000 0.572
#> SRR1360321 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 4 0.0260 0.832 0.000 0.000 0.000 0.992 0.000 0.008
#> SRR1440663 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 6 0.3409 0.878 0.300 0.000 0.000 0.000 0.000 0.700
#> SRR1409772 6 0.3409 0.878 0.300 0.000 0.000 0.000 0.000 0.700
#> SRR1092591 6 0.3961 0.731 0.440 0.000 0.000 0.000 0.004 0.556
#> SRR1338402 3 0.0717 0.958 0.000 0.000 0.976 0.000 0.008 0.016
#> SRR1337930 1 0.0458 0.929 0.984 0.000 0.000 0.000 0.016 0.000
#> SRR1337749 1 0.0000 0.928 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.3810 -0.394 0.572 0.000 0.000 0.000 0.000 0.428
#> SRR1396901 1 0.0458 0.929 0.984 0.000 0.000 0.000 0.016 0.000
#> SRR1354400 3 0.0291 0.970 0.000 0.000 0.992 0.000 0.004 0.004
#> SRR1416538 6 0.4067 0.860 0.260 0.000 0.040 0.000 0.000 0.700
#> SRR1340762 3 0.1327 0.919 0.000 0.000 0.936 0.000 0.000 0.064
#> SRR1460095 4 0.4059 0.667 0.000 0.000 0.000 0.752 0.148 0.100
#> SRR1071181 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 0.922 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.3062 0.906 0.000 0.824 0.000 0.000 0.032 0.144
#> SRR1473611 6 0.3772 0.863 0.320 0.000 0.000 0.004 0.004 0.672
#> SRR1074934 4 0.4381 0.231 0.000 0.000 0.456 0.524 0.004 0.016
#> SRR1311731 2 0.0000 0.922 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.3062 0.906 0.000 0.824 0.000 0.000 0.032 0.144
#> SRR1429144 1 0.0458 0.929 0.984 0.000 0.000 0.000 0.016 0.000
#> SRR1448203 1 0.0000 0.928 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.928 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1434845 6 0.4067 0.860 0.260 0.000 0.040 0.000 0.000 0.700
#> SRR1472171 1 0.0458 0.929 0.984 0.000 0.000 0.000 0.016 0.000
#> SRR1441075 2 0.0000 0.922 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.2070 0.897 0.000 0.892 0.000 0.000 0.008 0.100
#> SRR1077728 6 0.3868 0.579 0.496 0.000 0.000 0.000 0.000 0.504
#> SRR1365767 5 0.2103 0.967 0.000 0.000 0.056 0.020 0.912 0.012
#> SRR1489670 2 0.4582 0.720 0.000 0.716 0.000 0.160 0.008 0.116
#> SRR1343136 3 0.0260 0.970 0.000 0.000 0.992 0.000 0.000 0.008
#> SRR1359587 3 0.0717 0.958 0.000 0.000 0.976 0.000 0.008 0.016
#> SRR1465782 6 0.3409 0.878 0.300 0.000 0.000 0.000 0.000 0.700
#> SRR1434460 6 0.3409 0.878 0.300 0.000 0.000 0.000 0.000 0.700
#> SRR1415751 6 0.3409 0.878 0.300 0.000 0.000 0.000 0.000 0.700
#> SRR1359027 1 0.0458 0.929 0.984 0.000 0.000 0.000 0.016 0.000
#> SRR1408303 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1456469 2 0.3094 0.906 0.000 0.824 0.000 0.000 0.036 0.140
#> SRR1436717 2 0.0000 0.922 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0458 0.929 0.984 0.000 0.000 0.000 0.016 0.000
#> SRR1326845 2 0.2384 0.913 0.000 0.884 0.000 0.000 0.032 0.084
#> SRR1070133 2 0.1926 0.918 0.000 0.912 0.000 0.000 0.020 0.068
#> SRR1387745 2 0.3062 0.906 0.000 0.824 0.000 0.000 0.032 0.144
#> SRR1436904 3 0.0146 0.973 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1076465 2 0.0547 0.923 0.000 0.980 0.000 0.000 0.000 0.020
#> SRR1433215 6 0.4961 0.659 0.088 0.000 0.028 0.176 0.004 0.704
#> SRR1076046 6 0.3409 0.878 0.300 0.000 0.000 0.000 0.000 0.700
#> SRR1406643 2 0.2983 0.907 0.000 0.832 0.000 0.000 0.032 0.136
#> SRR1499460 5 0.2002 0.967 0.000 0.000 0.056 0.020 0.916 0.008
#> SRR1475147 2 0.2257 0.900 0.000 0.876 0.000 0.000 0.008 0.116
#> SRR1319301 1 0.0458 0.929 0.984 0.000 0.000 0.000 0.016 0.000
#> SRR1486117 1 0.0632 0.900 0.976 0.000 0.000 0.000 0.000 0.024
#> SRR1087680 5 0.2002 0.967 0.000 0.000 0.056 0.020 0.916 0.008
#> SRR1361391 5 0.2445 0.961 0.000 0.000 0.056 0.020 0.896 0.028
#> SRR1365655 3 0.1141 0.929 0.000 0.000 0.948 0.000 0.000 0.052
#> SRR1090457 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.0547 0.829 0.000 0.000 0.000 0.980 0.000 0.020
#> SRR1380358 1 0.3634 -0.121 0.644 0.000 0.000 0.000 0.000 0.356
#> SRR1398430 4 0.0547 0.829 0.000 0.000 0.000 0.980 0.000 0.020
#> SRR1444242 1 0.0458 0.929 0.984 0.000 0.000 0.000 0.016 0.000
#> SRR1440832 5 0.2002 0.967 0.000 0.000 0.056 0.020 0.916 0.008
#> SRR1358803 4 0.0405 0.831 0.000 0.000 0.000 0.988 0.004 0.008
#> SRR1344079 4 0.0405 0.831 0.000 0.000 0.000 0.988 0.004 0.008
#> SRR1072602 6 0.4022 0.855 0.252 0.000 0.040 0.000 0.000 0.708
#> SRR1421399 4 0.0632 0.828 0.000 0.000 0.000 0.976 0.000 0.024
#> SRR1339086 1 0.0000 0.928 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.928 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1440200 2 0.0000 0.922 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.2384 0.913 0.000 0.884 0.000 0.000 0.032 0.084
#> SRR1344364 2 0.3391 0.846 0.000 0.812 0.000 0.016 0.024 0.148
#> SRR1387787 6 0.3565 0.876 0.304 0.000 0.000 0.000 0.004 0.692
#> SRR1378199 6 0.3866 0.635 0.484 0.000 0.000 0.000 0.000 0.516
#> SRR1413119 5 0.2594 0.959 0.000 0.000 0.056 0.020 0.888 0.036
#> SRR1310497 6 0.4459 0.794 0.204 0.000 0.096 0.000 0.000 0.700
#> SRR1356327 1 0.0000 0.928 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1319059 3 0.2706 0.790 0.008 0.000 0.832 0.000 0.000 0.160
#> SRR1085378 6 0.3872 0.792 0.392 0.000 0.000 0.000 0.004 0.604
#> SRR1379036 3 0.0260 0.970 0.000 0.000 0.992 0.000 0.000 0.008
#> SRR1417656 1 0.0458 0.929 0.984 0.000 0.000 0.000 0.016 0.000
#> SRR1454225 1 0.0000 0.928 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.0000 0.832 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1366412 2 0.1333 0.920 0.000 0.944 0.000 0.000 0.008 0.048
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 17697 rows and 104 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 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 1.000 0.983 0.994 0.4804 0.522 0.522
#> 3 3 0.967 0.948 0.977 0.3690 0.749 0.550
#> 4 4 0.932 0.907 0.958 0.0821 0.932 0.806
#> 5 5 1.000 0.936 0.975 0.0406 0.969 0.893
#> 6 6 0.912 0.854 0.934 0.0834 0.927 0.727
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 6
#> attr(,"optional")
#> [1] 2 3 4 5
There is also optional best \(k\) = 2 3 4 5 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
#> SRR1313664 1 0.0000 0.991 1.000 0.000
#> SRR1375371 2 0.0000 0.997 0.000 1.000
#> SRR1416819 1 0.0000 0.991 1.000 0.000
#> SRR1351907 2 0.0000 0.997 0.000 1.000
#> SRR1330371 2 0.0000 0.997 0.000 1.000
#> SRR1340782 1 0.0000 0.991 1.000 0.000
#> SRR1094531 2 0.0000 0.997 0.000 1.000
#> SRR1436262 1 0.0000 0.991 1.000 0.000
#> SRR1093314 2 0.0000 0.997 0.000 1.000
#> SRR1435460 2 0.0000 0.997 0.000 1.000
#> SRR1485587 1 0.0000 0.991 1.000 0.000
#> SRR1470834 1 0.0000 0.991 1.000 0.000
#> SRR1442966 2 0.0000 0.997 0.000 1.000
#> SRR1410979 2 0.0000 0.997 0.000 1.000
#> SRR1326449 2 0.0000 0.997 0.000 1.000
#> SRR1367520 1 0.0000 0.991 1.000 0.000
#> SRR1360321 1 0.0000 0.991 1.000 0.000
#> SRR1445170 2 0.0000 0.997 0.000 1.000
#> SRR1440663 1 0.0000 0.991 1.000 0.000
#> SRR1489839 1 0.0000 0.991 1.000 0.000
#> SRR1409772 1 0.0000 0.991 1.000 0.000
#> SRR1092591 1 0.0000 0.991 1.000 0.000
#> SRR1338402 1 0.0376 0.987 0.996 0.004
#> SRR1337930 1 0.0000 0.991 1.000 0.000
#> SRR1337749 1 0.0000 0.991 1.000 0.000
#> SRR1401341 1 0.0000 0.991 1.000 0.000
#> SRR1396901 1 0.0000 0.991 1.000 0.000
#> SRR1354400 1 0.0000 0.991 1.000 0.000
#> SRR1416538 1 0.0000 0.991 1.000 0.000
#> SRR1340762 1 0.0000 0.991 1.000 0.000
#> SRR1460095 2 0.0000 0.997 0.000 1.000
#> SRR1071181 1 0.0000 0.991 1.000 0.000
#> SRR1380436 2 0.0000 0.997 0.000 1.000
#> SRR1079973 2 0.0000 0.997 0.000 1.000
#> SRR1473611 1 0.0000 0.991 1.000 0.000
#> SRR1074934 1 0.0000 0.991 1.000 0.000
#> SRR1311731 2 0.0000 0.997 0.000 1.000
#> SRR1452957 2 0.0000 0.997 0.000 1.000
#> SRR1429144 1 0.0000 0.991 1.000 0.000
#> SRR1448203 1 0.0000 0.991 1.000 0.000
#> SRR1366102 1 0.0000 0.991 1.000 0.000
#> SRR1434845 1 0.0000 0.991 1.000 0.000
#> SRR1472171 1 0.0000 0.991 1.000 0.000
#> SRR1441075 2 0.0000 0.997 0.000 1.000
#> SRR1321483 1 0.0000 0.991 1.000 0.000
#> SRR1418105 1 0.0000 0.991 1.000 0.000
#> SRR1090022 2 0.0000 0.997 0.000 1.000
#> SRR1077728 1 0.0000 0.991 1.000 0.000
#> SRR1365767 2 0.0000 0.997 0.000 1.000
#> SRR1489670 2 0.0000 0.997 0.000 1.000
#> SRR1343136 1 0.0000 0.991 1.000 0.000
#> SRR1359587 1 0.0000 0.991 1.000 0.000
#> SRR1465782 1 0.0000 0.991 1.000 0.000
#> SRR1434460 1 0.0000 0.991 1.000 0.000
#> SRR1415751 1 0.0000 0.991 1.000 0.000
#> SRR1359027 1 0.0000 0.991 1.000 0.000
#> SRR1408303 1 0.0000 0.991 1.000 0.000
#> SRR1456469 2 0.0000 0.997 0.000 1.000
#> SRR1436717 2 0.0000 0.997 0.000 1.000
#> SRR1480287 1 0.0000 0.991 1.000 0.000
#> SRR1326845 2 0.0000 0.997 0.000 1.000
#> SRR1070133 2 0.0000 0.997 0.000 1.000
#> SRR1387745 2 0.0000 0.997 0.000 1.000
#> SRR1436904 1 0.0000 0.991 1.000 0.000
#> SRR1076465 2 0.0000 0.997 0.000 1.000
#> SRR1433215 1 0.0000 0.991 1.000 0.000
#> SRR1076046 1 0.0000 0.991 1.000 0.000
#> SRR1406643 2 0.0000 0.997 0.000 1.000
#> SRR1499460 2 0.0000 0.997 0.000 1.000
#> SRR1475147 2 0.0000 0.997 0.000 1.000
#> SRR1319301 1 0.0000 0.991 1.000 0.000
#> SRR1486117 1 0.0000 0.991 1.000 0.000
#> SRR1087680 2 0.0000 0.997 0.000 1.000
#> SRR1361391 2 0.0000 0.997 0.000 1.000
#> SRR1365655 1 0.0000 0.991 1.000 0.000
#> SRR1090457 1 0.0000 0.991 1.000 0.000
#> SRR1084154 2 0.0000 0.997 0.000 1.000
#> SRR1380358 1 0.0000 0.991 1.000 0.000
#> SRR1398430 2 0.0000 0.997 0.000 1.000
#> SRR1444242 1 0.0000 0.991 1.000 0.000
#> SRR1440832 2 0.0000 0.997 0.000 1.000
#> SRR1358803 1 0.9977 0.104 0.528 0.472
#> SRR1344079 1 0.4431 0.893 0.908 0.092
#> SRR1072602 1 0.0000 0.991 1.000 0.000
#> SRR1421399 2 0.0000 0.997 0.000 1.000
#> SRR1339086 1 0.0000 0.991 1.000 0.000
#> SRR1099881 1 0.0000 0.991 1.000 0.000
#> SRR1384312 1 0.0000 0.991 1.000 0.000
#> SRR1329508 1 0.0000 0.991 1.000 0.000
#> SRR1440200 2 0.0000 0.997 0.000 1.000
#> SRR1397558 2 0.0000 0.997 0.000 1.000
#> SRR1344364 2 0.0000 0.997 0.000 1.000
#> SRR1387787 1 0.0000 0.991 1.000 0.000
#> SRR1378199 1 0.0000 0.991 1.000 0.000
#> SRR1413119 2 0.0000 0.997 0.000 1.000
#> SRR1310497 1 0.0000 0.991 1.000 0.000
#> SRR1356327 1 0.0000 0.991 1.000 0.000
#> SRR1319059 1 0.0000 0.991 1.000 0.000
#> SRR1085378 1 0.0000 0.991 1.000 0.000
#> SRR1379036 1 0.0000 0.991 1.000 0.000
#> SRR1417656 1 0.0000 0.991 1.000 0.000
#> SRR1454225 1 0.0000 0.991 1.000 0.000
#> SRR1455346 2 0.4939 0.877 0.108 0.892
#> SRR1366412 2 0.0000 0.997 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.000 0.989 1.000 0.000 0.000
#> SRR1375371 2 0.000 0.991 0.000 1.000 0.000
#> SRR1416819 3 0.000 0.936 0.000 0.000 1.000
#> SRR1351907 2 0.000 0.991 0.000 1.000 0.000
#> SRR1330371 3 0.460 0.760 0.000 0.204 0.796
#> SRR1340782 1 0.000 0.989 1.000 0.000 0.000
#> SRR1094531 3 0.000 0.936 0.000 0.000 1.000
#> SRR1436262 1 0.000 0.989 1.000 0.000 0.000
#> SRR1093314 2 0.000 0.991 0.000 1.000 0.000
#> SRR1435460 3 0.000 0.936 0.000 0.000 1.000
#> SRR1485587 1 0.000 0.989 1.000 0.000 0.000
#> SRR1470834 1 0.000 0.989 1.000 0.000 0.000
#> SRR1442966 3 0.618 0.389 0.000 0.416 0.584
#> SRR1410979 2 0.000 0.991 0.000 1.000 0.000
#> SRR1326449 2 0.000 0.991 0.000 1.000 0.000
#> SRR1367520 1 0.000 0.989 1.000 0.000 0.000
#> SRR1360321 3 0.000 0.936 0.000 0.000 1.000
#> SRR1445170 2 0.000 0.991 0.000 1.000 0.000
#> SRR1440663 3 0.000 0.936 0.000 0.000 1.000
#> SRR1489839 1 0.000 0.989 1.000 0.000 0.000
#> SRR1409772 1 0.000 0.989 1.000 0.000 0.000
#> SRR1092591 1 0.000 0.989 1.000 0.000 0.000
#> SRR1338402 3 0.000 0.936 0.000 0.000 1.000
#> SRR1337930 1 0.000 0.989 1.000 0.000 0.000
#> SRR1337749 1 0.000 0.989 1.000 0.000 0.000
#> SRR1401341 1 0.000 0.989 1.000 0.000 0.000
#> SRR1396901 1 0.000 0.989 1.000 0.000 0.000
#> SRR1354400 3 0.000 0.936 0.000 0.000 1.000
#> SRR1416538 1 0.000 0.989 1.000 0.000 0.000
#> SRR1340762 3 0.000 0.936 0.000 0.000 1.000
#> SRR1460095 2 0.000 0.991 0.000 1.000 0.000
#> SRR1071181 3 0.000 0.936 0.000 0.000 1.000
#> SRR1380436 2 0.000 0.991 0.000 1.000 0.000
#> SRR1079973 2 0.000 0.991 0.000 1.000 0.000
#> SRR1473611 1 0.000 0.989 1.000 0.000 0.000
#> SRR1074934 3 0.000 0.936 0.000 0.000 1.000
#> SRR1311731 2 0.000 0.991 0.000 1.000 0.000
#> SRR1452957 2 0.000 0.991 0.000 1.000 0.000
#> SRR1429144 1 0.000 0.989 1.000 0.000 0.000
#> SRR1448203 1 0.000 0.989 1.000 0.000 0.000
#> SRR1366102 1 0.000 0.989 1.000 0.000 0.000
#> SRR1434845 1 0.000 0.989 1.000 0.000 0.000
#> SRR1472171 1 0.000 0.989 1.000 0.000 0.000
#> SRR1441075 2 0.000 0.991 0.000 1.000 0.000
#> SRR1321483 3 0.000 0.936 0.000 0.000 1.000
#> SRR1418105 3 0.000 0.936 0.000 0.000 1.000
#> SRR1090022 2 0.000 0.991 0.000 1.000 0.000
#> SRR1077728 1 0.000 0.989 1.000 0.000 0.000
#> SRR1365767 3 0.568 0.598 0.000 0.316 0.684
#> SRR1489670 2 0.000 0.991 0.000 1.000 0.000
#> SRR1343136 3 0.000 0.936 0.000 0.000 1.000
#> SRR1359587 3 0.000 0.936 0.000 0.000 1.000
#> SRR1465782 1 0.000 0.989 1.000 0.000 0.000
#> SRR1434460 1 0.000 0.989 1.000 0.000 0.000
#> SRR1415751 1 0.000 0.989 1.000 0.000 0.000
#> SRR1359027 1 0.000 0.989 1.000 0.000 0.000
#> SRR1408303 3 0.000 0.936 0.000 0.000 1.000
#> SRR1456469 2 0.000 0.991 0.000 1.000 0.000
#> SRR1436717 2 0.000 0.991 0.000 1.000 0.000
#> SRR1480287 1 0.000 0.989 1.000 0.000 0.000
#> SRR1326845 2 0.000 0.991 0.000 1.000 0.000
#> SRR1070133 2 0.000 0.991 0.000 1.000 0.000
#> SRR1387745 2 0.000 0.991 0.000 1.000 0.000
#> SRR1436904 3 0.000 0.936 0.000 0.000 1.000
#> SRR1076465 2 0.000 0.991 0.000 1.000 0.000
#> SRR1433215 1 0.000 0.989 1.000 0.000 0.000
#> SRR1076046 1 0.000 0.989 1.000 0.000 0.000
#> SRR1406643 2 0.000 0.991 0.000 1.000 0.000
#> SRR1499460 3 0.450 0.770 0.000 0.196 0.804
#> SRR1475147 2 0.000 0.991 0.000 1.000 0.000
#> SRR1319301 1 0.000 0.989 1.000 0.000 0.000
#> SRR1486117 1 0.000 0.989 1.000 0.000 0.000
#> SRR1087680 3 0.450 0.770 0.000 0.196 0.804
#> SRR1361391 3 0.000 0.936 0.000 0.000 1.000
#> SRR1365655 3 0.000 0.936 0.000 0.000 1.000
#> SRR1090457 3 0.000 0.936 0.000 0.000 1.000
#> SRR1084154 2 0.000 0.991 0.000 1.000 0.000
#> SRR1380358 1 0.000 0.989 1.000 0.000 0.000
#> SRR1398430 2 0.000 0.991 0.000 1.000 0.000
#> SRR1444242 1 0.000 0.989 1.000 0.000 0.000
#> SRR1440832 3 0.622 0.348 0.000 0.432 0.568
#> SRR1358803 1 0.525 0.639 0.736 0.264 0.000
#> SRR1344079 1 0.000 0.989 1.000 0.000 0.000
#> SRR1072602 1 0.000 0.989 1.000 0.000 0.000
#> SRR1421399 2 0.000 0.991 0.000 1.000 0.000
#> SRR1339086 1 0.000 0.989 1.000 0.000 0.000
#> SRR1099881 1 0.000 0.989 1.000 0.000 0.000
#> SRR1384312 3 0.000 0.936 0.000 0.000 1.000
#> SRR1329508 3 0.000 0.936 0.000 0.000 1.000
#> SRR1440200 2 0.000 0.991 0.000 1.000 0.000
#> SRR1397558 2 0.000 0.991 0.000 1.000 0.000
#> SRR1344364 2 0.000 0.991 0.000 1.000 0.000
#> SRR1387787 1 0.000 0.989 1.000 0.000 0.000
#> SRR1378199 1 0.000 0.989 1.000 0.000 0.000
#> SRR1413119 3 0.000 0.936 0.000 0.000 1.000
#> SRR1310497 1 0.000 0.989 1.000 0.000 0.000
#> SRR1356327 1 0.000 0.989 1.000 0.000 0.000
#> SRR1319059 1 0.450 0.759 0.804 0.000 0.196
#> SRR1085378 1 0.000 0.989 1.000 0.000 0.000
#> SRR1379036 3 0.000 0.936 0.000 0.000 1.000
#> SRR1417656 1 0.000 0.989 1.000 0.000 0.000
#> SRR1454225 1 0.000 0.989 1.000 0.000 0.000
#> SRR1455346 2 0.455 0.724 0.200 0.800 0.000
#> SRR1366412 2 0.000 0.991 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1416819 3 0.1940 0.887 0.000 0.000 0.924 0.076
#> SRR1351907 2 0.0188 0.975 0.000 0.996 0.000 0.004
#> SRR1330371 4 0.1004 0.858 0.000 0.004 0.024 0.972
#> SRR1340782 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1094531 4 0.2081 0.855 0.000 0.000 0.084 0.916
#> SRR1436262 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.4888 0.337 0.000 0.412 0.000 0.588
#> SRR1435460 4 0.0921 0.857 0.000 0.000 0.028 0.972
#> SRR1485587 1 0.0592 0.954 0.984 0.000 0.000 0.016
#> SRR1470834 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1442966 4 0.1059 0.858 0.000 0.012 0.016 0.972
#> SRR1410979 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1360321 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1445170 4 0.4866 0.357 0.000 0.404 0.000 0.596
#> SRR1440663 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1489839 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1409772 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1092591 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1338402 3 0.3400 0.764 0.000 0.000 0.820 0.180
#> SRR1337930 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1416538 1 0.3400 0.779 0.820 0.000 0.180 0.000
#> SRR1340762 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1460095 4 0.3528 0.734 0.000 0.192 0.000 0.808
#> SRR1071181 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1473611 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1074934 3 0.4790 0.358 0.000 0.000 0.620 0.380
#> SRR1311731 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.3400 0.779 0.820 0.000 0.180 0.000
#> SRR1472171 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1418105 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1090022 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1077728 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1365767 4 0.1059 0.858 0.000 0.012 0.016 0.972
#> SRR1489670 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1343136 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1359587 3 0.3400 0.764 0.000 0.000 0.820 0.180
#> SRR1465782 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1434460 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1415751 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1456469 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1076465 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1433215 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1076046 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1406643 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1499460 4 0.2197 0.857 0.000 0.004 0.080 0.916
#> SRR1475147 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1319301 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1087680 4 0.2197 0.857 0.000 0.004 0.080 0.916
#> SRR1361391 4 0.2081 0.855 0.000 0.000 0.084 0.916
#> SRR1365655 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1090457 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1084154 2 0.0469 0.968 0.000 0.988 0.000 0.012
#> SRR1380358 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1398430 2 0.0188 0.975 0.000 0.996 0.000 0.004
#> SRR1444242 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1440832 4 0.2413 0.858 0.000 0.020 0.064 0.916
#> SRR1358803 1 0.4679 0.473 0.648 0.000 0.000 0.352
#> SRR1344079 1 0.4898 0.315 0.584 0.000 0.000 0.416
#> SRR1072602 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1421399 2 0.4304 0.549 0.000 0.716 0.000 0.284
#> SRR1339086 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1440200 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.0000 0.978 0.000 1.000 0.000 0.000
#> SRR1387787 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1378199 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1413119 4 0.2011 0.857 0.000 0.000 0.080 0.920
#> SRR1310497 1 0.3688 0.740 0.792 0.000 0.208 0.000
#> SRR1356327 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1319059 3 0.1867 0.856 0.072 0.000 0.928 0.000
#> SRR1085378 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1379036 3 0.0000 0.946 0.000 0.000 1.000 0.000
#> SRR1417656 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.967 1.000 0.000 0.000 0.000
#> SRR1455346 2 0.3907 0.740 0.140 0.828 0.000 0.032
#> SRR1366412 2 0.0000 0.978 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1416819 3 0.4201 0.388 0.000 0.000 0.592 0.000 0.408
#> SRR1351907 2 0.1478 0.913 0.000 0.936 0.000 0.000 0.064
#> SRR1330371 4 0.0162 0.993 0.000 0.000 0.004 0.996 0.000
#> SRR1340782 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1094531 4 0.0162 0.993 0.000 0.000 0.004 0.996 0.000
#> SRR1436262 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 5 0.0324 0.877 0.000 0.004 0.000 0.004 0.992
#> SRR1435460 4 0.0162 0.993 0.000 0.000 0.004 0.996 0.000
#> SRR1485587 1 0.4201 0.335 0.592 0.000 0.000 0.000 0.408
#> SRR1470834 1 0.0451 0.978 0.988 0.000 0.000 0.004 0.008
#> SRR1442966 4 0.0162 0.993 0.000 0.000 0.004 0.996 0.000
#> SRR1410979 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1360321 3 0.0000 0.949 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 5 0.0324 0.877 0.000 0.004 0.000 0.004 0.992
#> SRR1440663 3 0.0000 0.949 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 1 0.0451 0.978 0.988 0.000 0.000 0.004 0.008
#> SRR1409772 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1092591 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1338402 3 0.1341 0.903 0.000 0.000 0.944 0.056 0.000
#> SRR1337930 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.949 0.000 0.000 1.000 0.000 0.000
#> SRR1416538 1 0.0854 0.968 0.976 0.000 0.012 0.004 0.008
#> SRR1340762 3 0.0451 0.943 0.000 0.000 0.988 0.004 0.008
#> SRR1460095 4 0.1197 0.928 0.000 0.048 0.000 0.952 0.000
#> SRR1071181 3 0.0000 0.949 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1074934 3 0.5099 0.447 0.000 0.000 0.612 0.052 0.336
#> SRR1311731 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1434845 1 0.1243 0.952 0.960 0.000 0.028 0.004 0.008
#> SRR1472171 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.949 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0000 0.949 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1077728 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1365767 4 0.0162 0.993 0.000 0.000 0.004 0.996 0.000
#> SRR1489670 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1343136 3 0.0000 0.949 0.000 0.000 1.000 0.000 0.000
#> SRR1359587 3 0.1197 0.910 0.000 0.000 0.952 0.048 0.000
#> SRR1465782 1 0.0290 0.981 0.992 0.000 0.000 0.000 0.008
#> SRR1434460 1 0.0290 0.981 0.992 0.000 0.000 0.000 0.008
#> SRR1415751 1 0.0290 0.981 0.992 0.000 0.000 0.000 0.008
#> SRR1359027 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.949 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.949 0.000 0.000 1.000 0.000 0.000
#> SRR1076465 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 1 0.0290 0.981 0.992 0.000 0.000 0.000 0.008
#> SRR1076046 1 0.0290 0.981 0.992 0.000 0.000 0.000 0.008
#> SRR1406643 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 4 0.0162 0.993 0.000 0.000 0.004 0.996 0.000
#> SRR1475147 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1087680 4 0.0162 0.993 0.000 0.000 0.004 0.996 0.000
#> SRR1361391 4 0.0162 0.993 0.000 0.000 0.004 0.996 0.000
#> SRR1365655 3 0.0451 0.943 0.000 0.000 0.988 0.004 0.008
#> SRR1090457 3 0.0000 0.949 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 5 0.4201 0.238 0.000 0.408 0.000 0.000 0.592
#> SRR1380358 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1398430 2 0.1732 0.896 0.000 0.920 0.000 0.000 0.080
#> SRR1444242 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1440832 4 0.0162 0.993 0.000 0.000 0.004 0.996 0.000
#> SRR1358803 5 0.0290 0.879 0.008 0.000 0.000 0.000 0.992
#> SRR1344079 5 0.0290 0.879 0.008 0.000 0.000 0.000 0.992
#> SRR1072602 1 0.0451 0.978 0.988 0.000 0.000 0.004 0.008
#> SRR1421399 2 0.4171 0.263 0.000 0.604 0.000 0.000 0.396
#> SRR1339086 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.949 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.0000 0.949 0.000 0.000 1.000 0.000 0.000
#> SRR1440200 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 2 0.0000 0.975 0.000 1.000 0.000 0.000 0.000
#> SRR1387787 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1378199 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1413119 4 0.0162 0.993 0.000 0.000 0.004 0.996 0.000
#> SRR1310497 1 0.1857 0.916 0.928 0.000 0.060 0.004 0.008
#> SRR1356327 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1319059 3 0.0451 0.943 0.000 0.000 0.988 0.004 0.008
#> SRR1085378 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1379036 3 0.0162 0.947 0.000 0.000 0.996 0.004 0.000
#> SRR1417656 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.985 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 5 0.0290 0.879 0.008 0.000 0.000 0.000 0.992
#> SRR1366412 2 0.0000 0.975 0.000 1.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
#> SRR1313664 1 0.0790 0.9181 0.968 0.000 0.000 0.000 0.000 0.032
#> SRR1375371 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1416819 3 0.5743 0.0752 0.000 0.000 0.428 0.404 0.000 0.168
#> SRR1351907 2 0.1700 0.9066 0.000 0.928 0.000 0.048 0.000 0.024
#> SRR1330371 5 0.0000 0.9988 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1340782 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.0000 0.9988 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1436262 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.0000 0.8718 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1435460 5 0.0000 0.9988 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1485587 6 0.5821 0.1692 0.184 0.000 0.000 0.404 0.000 0.412
#> SRR1470834 6 0.2730 0.7878 0.192 0.000 0.000 0.000 0.000 0.808
#> SRR1442966 5 0.0000 0.9988 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1410979 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1367520 1 0.2762 0.7458 0.804 0.000 0.000 0.000 0.000 0.196
#> SRR1360321 3 0.0000 0.9050 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 4 0.0000 0.8718 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1440663 3 0.0000 0.9050 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 6 0.2762 0.7867 0.196 0.000 0.000 0.000 0.000 0.804
#> SRR1409772 6 0.3823 0.2074 0.436 0.000 0.000 0.000 0.000 0.564
#> SRR1092591 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1338402 3 0.0363 0.8966 0.000 0.000 0.988 0.000 0.012 0.000
#> SRR1337930 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0146 0.9395 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1396901 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.9050 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1416538 6 0.2762 0.7867 0.196 0.000 0.000 0.000 0.000 0.804
#> SRR1340762 3 0.3862 0.1231 0.000 0.000 0.524 0.000 0.000 0.476
#> SRR1460095 5 0.0260 0.9883 0.000 0.008 0.000 0.000 0.992 0.000
#> SRR1071181 3 0.0000 0.9050 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1473611 1 0.2793 0.7410 0.800 0.000 0.000 0.000 0.000 0.200
#> SRR1074934 3 0.4688 0.4652 0.000 0.000 0.636 0.300 0.060 0.004
#> SRR1311731 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1434845 6 0.2838 0.7873 0.188 0.000 0.004 0.000 0.000 0.808
#> SRR1472171 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.9050 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.9050 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1077728 1 0.0865 0.9139 0.964 0.000 0.000 0.000 0.000 0.036
#> SRR1365767 5 0.0000 0.9988 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1489670 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1343136 3 0.0000 0.9050 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1359587 3 0.0363 0.8966 0.000 0.000 0.988 0.000 0.012 0.000
#> SRR1465782 6 0.1327 0.7286 0.064 0.000 0.000 0.000 0.000 0.936
#> SRR1434460 6 0.1267 0.7279 0.060 0.000 0.000 0.000 0.000 0.940
#> SRR1415751 6 0.2823 0.7825 0.204 0.000 0.000 0.000 0.000 0.796
#> SRR1359027 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.9050 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1456469 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.9050 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1076465 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 1 0.3986 -0.1989 0.532 0.000 0.000 0.004 0.000 0.464
#> SRR1076046 6 0.1204 0.7260 0.056 0.000 0.000 0.000 0.000 0.944
#> SRR1406643 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1499460 5 0.0000 0.9988 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1475147 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087680 5 0.0000 0.9988 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1361391 5 0.0000 0.9988 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1365655 3 0.2664 0.7290 0.000 0.000 0.816 0.000 0.000 0.184
#> SRR1090457 3 0.0000 0.9050 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.4445 0.2584 0.000 0.396 0.000 0.572 0.000 0.032
#> SRR1380358 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1398430 2 0.2106 0.8813 0.000 0.904 0.000 0.064 0.000 0.032
#> SRR1444242 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.0000 0.9988 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1358803 4 0.0547 0.8691 0.000 0.000 0.000 0.980 0.000 0.020
#> SRR1344079 4 0.0000 0.8718 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1072602 6 0.2883 0.6548 0.212 0.000 0.000 0.000 0.000 0.788
#> SRR1421399 2 0.4037 0.2840 0.000 0.608 0.000 0.380 0.000 0.012
#> SRR1339086 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.9050 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.0000 0.9050 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1440200 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1344364 2 0.0000 0.9746 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387787 1 0.0713 0.9216 0.972 0.000 0.000 0.000 0.000 0.028
#> SRR1378199 1 0.2762 0.7458 0.804 0.000 0.000 0.000 0.000 0.196
#> SRR1413119 5 0.0000 0.9988 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1310497 6 0.3037 0.7818 0.176 0.000 0.016 0.000 0.000 0.808
#> SRR1356327 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1319059 6 0.3023 0.5505 0.000 0.000 0.232 0.000 0.000 0.768
#> SRR1085378 1 0.2664 0.7551 0.816 0.000 0.000 0.000 0.000 0.184
#> SRR1379036 3 0.0000 0.9050 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1417656 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9426 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.0713 0.8668 0.000 0.000 0.000 0.972 0.000 0.028
#> SRR1366412 2 0.0000 0.9746 0.000 1.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", "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 17697 rows and 104 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 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 1.000 0.987 0.994 0.3592 0.642 0.642
#> 3 3 1.000 0.972 0.988 0.7794 0.710 0.552
#> 4 4 0.862 0.904 0.947 0.1490 0.867 0.652
#> 5 5 0.940 0.916 0.947 0.0483 0.953 0.829
#> 6 6 0.936 0.910 0.944 0.0725 0.910 0.640
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 6
#> attr(,"optional")
#> [1] 2 3 5
There is also optional best \(k\) = 2 3 5 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
#> SRR1313664 1 0.000 0.996 1.000 0.000
#> SRR1375371 2 0.000 0.987 0.000 1.000
#> SRR1416819 1 0.000 0.996 1.000 0.000
#> SRR1351907 2 0.745 0.736 0.212 0.788
#> SRR1330371 1 0.000 0.996 1.000 0.000
#> SRR1340782 1 0.000 0.996 1.000 0.000
#> SRR1094531 1 0.000 0.996 1.000 0.000
#> SRR1436262 1 0.000 0.996 1.000 0.000
#> SRR1093314 1 0.000 0.996 1.000 0.000
#> SRR1435460 1 0.000 0.996 1.000 0.000
#> SRR1485587 1 0.000 0.996 1.000 0.000
#> SRR1470834 1 0.000 0.996 1.000 0.000
#> SRR1442966 1 0.000 0.996 1.000 0.000
#> SRR1410979 2 0.000 0.987 0.000 1.000
#> SRR1326449 2 0.000 0.987 0.000 1.000
#> SRR1367520 1 0.000 0.996 1.000 0.000
#> SRR1360321 1 0.000 0.996 1.000 0.000
#> SRR1445170 1 0.000 0.996 1.000 0.000
#> SRR1440663 1 0.000 0.996 1.000 0.000
#> SRR1489839 1 0.000 0.996 1.000 0.000
#> SRR1409772 1 0.000 0.996 1.000 0.000
#> SRR1092591 1 0.000 0.996 1.000 0.000
#> SRR1338402 1 0.000 0.996 1.000 0.000
#> SRR1337930 1 0.000 0.996 1.000 0.000
#> SRR1337749 1 0.000 0.996 1.000 0.000
#> SRR1401341 1 0.000 0.996 1.000 0.000
#> SRR1396901 1 0.000 0.996 1.000 0.000
#> SRR1354400 1 0.000 0.996 1.000 0.000
#> SRR1416538 1 0.000 0.996 1.000 0.000
#> SRR1340762 1 0.000 0.996 1.000 0.000
#> SRR1460095 1 0.000 0.996 1.000 0.000
#> SRR1071181 1 0.000 0.996 1.000 0.000
#> SRR1380436 2 0.000 0.987 0.000 1.000
#> SRR1079973 2 0.000 0.987 0.000 1.000
#> SRR1473611 1 0.000 0.996 1.000 0.000
#> SRR1074934 1 0.000 0.996 1.000 0.000
#> SRR1311731 2 0.000 0.987 0.000 1.000
#> SRR1452957 2 0.000 0.987 0.000 1.000
#> SRR1429144 1 0.000 0.996 1.000 0.000
#> SRR1448203 1 0.000 0.996 1.000 0.000
#> SRR1366102 1 0.000 0.996 1.000 0.000
#> SRR1434845 1 0.000 0.996 1.000 0.000
#> SRR1472171 1 0.000 0.996 1.000 0.000
#> SRR1441075 2 0.000 0.987 0.000 1.000
#> SRR1321483 1 0.000 0.996 1.000 0.000
#> SRR1418105 1 0.000 0.996 1.000 0.000
#> SRR1090022 2 0.000 0.987 0.000 1.000
#> SRR1077728 1 0.000 0.996 1.000 0.000
#> SRR1365767 1 0.000 0.996 1.000 0.000
#> SRR1489670 2 0.000 0.987 0.000 1.000
#> SRR1343136 1 0.000 0.996 1.000 0.000
#> SRR1359587 1 0.000 0.996 1.000 0.000
#> SRR1465782 1 0.000 0.996 1.000 0.000
#> SRR1434460 1 0.000 0.996 1.000 0.000
#> SRR1415751 1 0.000 0.996 1.000 0.000
#> SRR1359027 1 0.000 0.996 1.000 0.000
#> SRR1408303 1 0.000 0.996 1.000 0.000
#> SRR1456469 2 0.000 0.987 0.000 1.000
#> SRR1436717 2 0.000 0.987 0.000 1.000
#> SRR1480287 1 0.000 0.996 1.000 0.000
#> SRR1326845 2 0.000 0.987 0.000 1.000
#> SRR1070133 2 0.000 0.987 0.000 1.000
#> SRR1387745 2 0.000 0.987 0.000 1.000
#> SRR1436904 1 0.000 0.996 1.000 0.000
#> SRR1076465 2 0.000 0.987 0.000 1.000
#> SRR1433215 1 0.000 0.996 1.000 0.000
#> SRR1076046 1 0.000 0.996 1.000 0.000
#> SRR1406643 2 0.000 0.987 0.000 1.000
#> SRR1499460 1 0.595 0.831 0.856 0.144
#> SRR1475147 2 0.000 0.987 0.000 1.000
#> SRR1319301 1 0.000 0.996 1.000 0.000
#> SRR1486117 1 0.000 0.996 1.000 0.000
#> SRR1087680 1 0.634 0.809 0.840 0.160
#> SRR1361391 1 0.000 0.996 1.000 0.000
#> SRR1365655 1 0.000 0.996 1.000 0.000
#> SRR1090457 1 0.000 0.996 1.000 0.000
#> SRR1084154 1 0.000 0.996 1.000 0.000
#> SRR1380358 1 0.000 0.996 1.000 0.000
#> SRR1398430 1 0.000 0.996 1.000 0.000
#> SRR1444242 1 0.000 0.996 1.000 0.000
#> SRR1440832 2 0.416 0.905 0.084 0.916
#> SRR1358803 1 0.000 0.996 1.000 0.000
#> SRR1344079 1 0.000 0.996 1.000 0.000
#> SRR1072602 1 0.000 0.996 1.000 0.000
#> SRR1421399 1 0.000 0.996 1.000 0.000
#> SRR1339086 1 0.000 0.996 1.000 0.000
#> SRR1099881 1 0.000 0.996 1.000 0.000
#> SRR1384312 1 0.000 0.996 1.000 0.000
#> SRR1329508 1 0.000 0.996 1.000 0.000
#> SRR1440200 2 0.000 0.987 0.000 1.000
#> SRR1397558 2 0.000 0.987 0.000 1.000
#> SRR1344364 2 0.000 0.987 0.000 1.000
#> SRR1387787 1 0.000 0.996 1.000 0.000
#> SRR1378199 1 0.000 0.996 1.000 0.000
#> SRR1413119 1 0.000 0.996 1.000 0.000
#> SRR1310497 1 0.000 0.996 1.000 0.000
#> SRR1356327 1 0.000 0.996 1.000 0.000
#> SRR1319059 1 0.000 0.996 1.000 0.000
#> SRR1085378 1 0.000 0.996 1.000 0.000
#> SRR1379036 1 0.000 0.996 1.000 0.000
#> SRR1417656 1 0.000 0.996 1.000 0.000
#> SRR1454225 1 0.000 0.996 1.000 0.000
#> SRR1455346 1 0.000 0.996 1.000 0.000
#> SRR1366412 2 0.000 0.987 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1375371 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1416819 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1351907 2 0.1163 0.967 0.028 0.972 0.000
#> SRR1330371 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1340782 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1094531 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1436262 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1093314 1 0.5706 0.540 0.680 0.000 0.320
#> SRR1435460 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1485587 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1470834 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1442966 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1410979 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1326449 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1367520 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1360321 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1445170 1 0.4452 0.767 0.808 0.000 0.192
#> SRR1440663 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1489839 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1409772 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1092591 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1338402 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1337930 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1401341 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1396901 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1354400 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1416538 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1340762 3 0.2625 0.897 0.084 0.000 0.916
#> SRR1460095 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1071181 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1380436 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1473611 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1074934 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1311731 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1434845 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1472171 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1321483 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1418105 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1090022 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1077728 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1365767 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1489670 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1343136 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1359587 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1465782 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1434460 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1415751 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1359027 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1408303 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1456469 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1436717 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1436904 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1076465 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1433215 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1076046 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1406643 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1499460 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1475147 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1319301 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1486117 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1087680 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1361391 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1365655 3 0.2959 0.879 0.100 0.000 0.900
#> SRR1090457 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1084154 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1380358 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1398430 1 0.3340 0.858 0.880 0.000 0.120
#> SRR1444242 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1440832 3 0.1289 0.956 0.000 0.032 0.968
#> SRR1358803 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1344079 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1072602 1 0.0237 0.978 0.996 0.000 0.004
#> SRR1421399 3 0.4002 0.802 0.160 0.000 0.840
#> SRR1339086 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1384312 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1329508 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1440200 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1344364 2 0.0000 0.999 0.000 1.000 0.000
#> SRR1387787 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1378199 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1413119 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1310497 1 0.0237 0.978 0.996 0.000 0.004
#> SRR1356327 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1319059 1 0.4796 0.720 0.780 0.000 0.220
#> SRR1085378 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1379036 3 0.0000 0.985 0.000 0.000 1.000
#> SRR1417656 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1455346 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1366412 2 0.0000 0.999 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1416819 4 0.1022 0.8925 0.000 0.000 0.032 0.968
#> SRR1351907 4 0.0000 0.9019 0.000 0.000 0.000 1.000
#> SRR1330371 3 0.3123 0.8072 0.000 0.000 0.844 0.156
#> SRR1340782 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1094531 3 0.1022 0.9226 0.000 0.000 0.968 0.032
#> SRR1436262 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.0000 0.9019 0.000 0.000 0.000 1.000
#> SRR1435460 4 0.3356 0.7402 0.000 0.000 0.176 0.824
#> SRR1485587 4 0.1022 0.9021 0.032 0.000 0.000 0.968
#> SRR1470834 1 0.3266 0.8352 0.832 0.000 0.000 0.168
#> SRR1442966 4 0.3356 0.7402 0.000 0.000 0.176 0.824
#> SRR1410979 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1360321 3 0.0000 0.9309 0.000 0.000 1.000 0.000
#> SRR1445170 4 0.0000 0.9019 0.000 0.000 0.000 1.000
#> SRR1440663 3 0.0000 0.9309 0.000 0.000 1.000 0.000
#> SRR1489839 1 0.3266 0.8352 0.832 0.000 0.000 0.168
#> SRR1409772 1 0.3266 0.8352 0.832 0.000 0.000 0.168
#> SRR1092591 1 0.3486 0.8175 0.812 0.000 0.000 0.188
#> SRR1338402 3 0.0000 0.9309 0.000 0.000 1.000 0.000
#> SRR1337930 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.9309 0.000 0.000 1.000 0.000
#> SRR1416538 1 0.3266 0.8352 0.832 0.000 0.000 0.168
#> SRR1340762 3 0.3266 0.8009 0.000 0.000 0.832 0.168
#> SRR1460095 4 0.3266 0.7465 0.000 0.000 0.168 0.832
#> SRR1071181 3 0.0000 0.9309 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1473611 4 0.4972 0.0247 0.456 0.000 0.000 0.544
#> SRR1074934 4 0.1211 0.8896 0.000 0.000 0.040 0.960
#> SRR1311731 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.4149 0.8146 0.804 0.000 0.028 0.168
#> SRR1472171 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.0000 0.9309 0.000 0.000 1.000 0.000
#> SRR1418105 3 0.0000 0.9309 0.000 0.000 1.000 0.000
#> SRR1090022 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1077728 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1365767 3 0.1022 0.9226 0.000 0.000 0.968 0.032
#> SRR1489670 2 0.1022 0.9681 0.000 0.968 0.000 0.032
#> SRR1343136 3 0.3172 0.8091 0.000 0.000 0.840 0.160
#> SRR1359587 3 0.0000 0.9309 0.000 0.000 1.000 0.000
#> SRR1465782 1 0.3266 0.8352 0.832 0.000 0.000 0.168
#> SRR1434460 1 0.3266 0.8352 0.832 0.000 0.000 0.168
#> SRR1415751 1 0.0188 0.9342 0.996 0.000 0.000 0.004
#> SRR1359027 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.9309 0.000 0.000 1.000 0.000
#> SRR1456469 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.0000 0.9309 0.000 0.000 1.000 0.000
#> SRR1076465 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1433215 4 0.1022 0.9021 0.032 0.000 0.000 0.968
#> SRR1076046 1 0.2011 0.8949 0.920 0.000 0.000 0.080
#> SRR1406643 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1499460 3 0.1022 0.9226 0.000 0.000 0.968 0.032
#> SRR1475147 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1319301 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1087680 3 0.1022 0.9226 0.000 0.000 0.968 0.032
#> SRR1361391 3 0.1022 0.9226 0.000 0.000 0.968 0.032
#> SRR1365655 3 0.3266 0.8009 0.000 0.000 0.832 0.168
#> SRR1090457 3 0.0000 0.9309 0.000 0.000 1.000 0.000
#> SRR1084154 4 0.1022 0.9021 0.032 0.000 0.000 0.968
#> SRR1380358 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1398430 4 0.0000 0.9019 0.000 0.000 0.000 1.000
#> SRR1444242 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1440832 3 0.1022 0.9226 0.000 0.000 0.968 0.032
#> SRR1358803 4 0.1022 0.9021 0.032 0.000 0.000 0.968
#> SRR1344079 4 0.1022 0.9021 0.032 0.000 0.000 0.968
#> SRR1072602 1 0.4406 0.6563 0.700 0.000 0.000 0.300
#> SRR1421399 4 0.0000 0.9019 0.000 0.000 0.000 1.000
#> SRR1339086 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.9309 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.3266 0.8009 0.000 0.000 0.832 0.168
#> SRR1440200 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9975 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.0707 0.9798 0.000 0.980 0.000 0.020
#> SRR1387787 1 0.3219 0.8384 0.836 0.000 0.000 0.164
#> SRR1378199 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1413119 3 0.1022 0.9226 0.000 0.000 0.968 0.032
#> SRR1310497 1 0.5033 0.7679 0.760 0.000 0.072 0.168
#> SRR1356327 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1319059 3 0.5165 0.7027 0.080 0.000 0.752 0.168
#> SRR1085378 1 0.1118 0.9191 0.964 0.000 0.000 0.036
#> SRR1379036 3 0.3266 0.8009 0.000 0.000 0.832 0.168
#> SRR1417656 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9358 1.000 0.000 0.000 0.000
#> SRR1455346 4 0.1022 0.9021 0.032 0.000 0.000 0.968
#> SRR1366412 2 0.0000 0.9975 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.1270 0.910 0.948 0.000 0.000 0.000 0.052
#> SRR1375371 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1416819 4 0.0000 0.909 0.000 0.000 0.000 1.000 0.000
#> SRR1351907 4 0.1792 0.828 0.000 0.084 0.000 0.916 0.000
#> SRR1330371 5 0.1638 0.994 0.000 0.000 0.064 0.004 0.932
#> SRR1340782 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1094531 5 0.1544 0.999 0.000 0.000 0.068 0.000 0.932
#> SRR1436262 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1093314 4 0.0000 0.909 0.000 0.000 0.000 1.000 0.000
#> SRR1435460 4 0.4306 0.562 0.000 0.000 0.012 0.660 0.328
#> SRR1485587 4 0.0000 0.909 0.000 0.000 0.000 1.000 0.000
#> SRR1470834 1 0.3413 0.869 0.844 0.000 0.004 0.100 0.052
#> SRR1442966 4 0.4323 0.555 0.000 0.000 0.012 0.656 0.332
#> SRR1410979 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 1 0.2344 0.897 0.904 0.000 0.000 0.064 0.032
#> SRR1360321 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 4 0.0000 0.909 0.000 0.000 0.000 1.000 0.000
#> SRR1440663 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 1 0.1270 0.910 0.948 0.000 0.000 0.000 0.052
#> SRR1409772 1 0.3201 0.873 0.852 0.000 0.000 0.096 0.052
#> SRR1092591 1 0.3764 0.826 0.800 0.000 0.000 0.156 0.044
#> SRR1338402 3 0.0510 0.960 0.000 0.000 0.984 0.000 0.016
#> SRR1337930 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1337749 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1401341 1 0.1043 0.913 0.960 0.000 0.000 0.000 0.040
#> SRR1396901 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1354400 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000
#> SRR1416538 1 0.3426 0.874 0.852 0.000 0.012 0.084 0.052
#> SRR1340762 3 0.1597 0.921 0.012 0.000 0.940 0.000 0.048
#> SRR1460095 4 0.3932 0.580 0.000 0.000 0.000 0.672 0.328
#> SRR1071181 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 1 0.4273 0.321 0.552 0.000 0.000 0.448 0.000
#> SRR1074934 4 0.0880 0.885 0.000 0.000 0.032 0.968 0.000
#> SRR1311731 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1448203 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1366102 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1434845 1 0.5845 0.682 0.676 0.000 0.188 0.084 0.052
#> SRR1472171 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1441075 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 2 0.0162 0.993 0.000 0.996 0.000 0.000 0.004
#> SRR1077728 1 0.1270 0.910 0.948 0.000 0.000 0.000 0.052
#> SRR1365767 5 0.1544 0.999 0.000 0.000 0.068 0.000 0.932
#> SRR1489670 2 0.1544 0.924 0.000 0.932 0.000 0.000 0.068
#> SRR1343136 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000
#> SRR1359587 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000
#> SRR1465782 1 0.2974 0.883 0.868 0.000 0.000 0.080 0.052
#> SRR1434460 1 0.3033 0.880 0.864 0.000 0.000 0.084 0.052
#> SRR1415751 1 0.1270 0.910 0.948 0.000 0.000 0.000 0.052
#> SRR1359027 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1408303 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1326845 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000
#> SRR1076465 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 4 0.0000 0.909 0.000 0.000 0.000 1.000 0.000
#> SRR1076046 1 0.2914 0.885 0.872 0.000 0.000 0.076 0.052
#> SRR1406643 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 5 0.1544 0.999 0.000 0.000 0.068 0.000 0.932
#> SRR1475147 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1319301 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1486117 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1087680 5 0.1544 0.999 0.000 0.000 0.068 0.000 0.932
#> SRR1361391 5 0.1544 0.999 0.000 0.000 0.068 0.000 0.932
#> SRR1365655 3 0.1168 0.940 0.008 0.000 0.960 0.000 0.032
#> SRR1090457 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 4 0.0000 0.909 0.000 0.000 0.000 1.000 0.000
#> SRR1380358 1 0.0000 0.919 1.000 0.000 0.000 0.000 0.000
#> SRR1398430 4 0.0000 0.909 0.000 0.000 0.000 1.000 0.000
#> SRR1444242 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1440832 5 0.1544 0.999 0.000 0.000 0.068 0.000 0.932
#> SRR1358803 4 0.0000 0.909 0.000 0.000 0.000 1.000 0.000
#> SRR1344079 4 0.0000 0.909 0.000 0.000 0.000 1.000 0.000
#> SRR1072602 1 0.5329 0.326 0.516 0.000 0.000 0.432 0.052
#> SRR1421399 4 0.1792 0.847 0.000 0.000 0.000 0.916 0.084
#> SRR1339086 1 0.0000 0.919 1.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.919 1.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000
#> SRR1440200 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 2 0.0000 0.996 0.000 1.000 0.000 0.000 0.000
#> SRR1387787 1 0.3033 0.880 0.864 0.000 0.000 0.084 0.052
#> SRR1378199 1 0.2344 0.897 0.904 0.000 0.000 0.064 0.032
#> SRR1413119 5 0.1544 0.999 0.000 0.000 0.068 0.000 0.932
#> SRR1310497 3 0.4321 0.762 0.056 0.000 0.808 0.084 0.052
#> SRR1356327 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1319059 3 0.1774 0.912 0.016 0.000 0.932 0.000 0.052
#> SRR1085378 1 0.2889 0.883 0.872 0.000 0.000 0.084 0.044
#> SRR1379036 3 0.0000 0.974 0.000 0.000 1.000 0.000 0.000
#> SRR1417656 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1454225 1 0.0510 0.919 0.984 0.000 0.000 0.000 0.016
#> SRR1455346 4 0.0000 0.909 0.000 0.000 0.000 1.000 0.000
#> SRR1366412 2 0.0000 0.996 0.000 1.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
#> SRR1313664 6 0.2135 0.859 0.128 0.000 0.000 0.000 0.000 0.872
#> SRR1375371 2 0.0000 0.993 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1416819 4 0.0000 0.942 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1351907 4 0.0260 0.936 0.000 0.000 0.000 0.992 0.000 0.008
#> SRR1330371 5 0.1204 0.952 0.000 0.000 0.056 0.000 0.944 0.000
#> SRR1340782 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.0790 0.967 0.000 0.000 0.000 0.000 0.968 0.032
#> SRR1436262 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.0000 0.942 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1435460 4 0.3865 0.723 0.000 0.000 0.056 0.752 0.192 0.000
#> SRR1485587 4 0.0000 0.942 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1470834 6 0.0937 0.843 0.040 0.000 0.000 0.000 0.000 0.960
#> SRR1442966 4 0.3865 0.723 0.000 0.000 0.056 0.752 0.192 0.000
#> SRR1410979 2 0.0000 0.993 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.993 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1367520 6 0.3847 0.360 0.456 0.000 0.000 0.000 0.000 0.544
#> SRR1360321 3 0.1204 0.959 0.000 0.000 0.944 0.000 0.000 0.056
#> SRR1445170 4 0.0000 0.942 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1440663 3 0.0146 0.963 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1489839 6 0.1141 0.850 0.052 0.000 0.000 0.000 0.000 0.948
#> SRR1409772 6 0.2595 0.854 0.084 0.000 0.000 0.044 0.000 0.872
#> SRR1092591 6 0.3655 0.818 0.136 0.000 0.000 0.076 0.000 0.788
#> SRR1338402 3 0.0146 0.960 0.000 0.000 0.996 0.000 0.004 0.000
#> SRR1337930 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1401341 6 0.3634 0.583 0.356 0.000 0.000 0.000 0.000 0.644
#> SRR1396901 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.962 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1416538 6 0.0937 0.843 0.040 0.000 0.000 0.000 0.000 0.960
#> SRR1340762 3 0.2300 0.882 0.000 0.000 0.856 0.000 0.000 0.144
#> SRR1460095 4 0.2730 0.779 0.000 0.000 0.000 0.808 0.192 0.000
#> SRR1071181 3 0.0000 0.962 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 0.993 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0260 0.991 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1473611 4 0.3327 0.744 0.092 0.000 0.000 0.820 0.000 0.088
#> SRR1074934 4 0.0000 0.942 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1311731 2 0.0000 0.993 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.0260 0.991 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1429144 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0363 0.947 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1366102 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1434845 6 0.1088 0.823 0.016 0.000 0.024 0.000 0.000 0.960
#> SRR1472171 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.993 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1321483 3 0.0547 0.963 0.000 0.000 0.980 0.000 0.000 0.020
#> SRR1418105 3 0.0000 0.962 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.0146 0.990 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1077728 6 0.2135 0.859 0.128 0.000 0.000 0.000 0.000 0.872
#> SRR1365767 5 0.0000 0.963 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1489670 2 0.1757 0.917 0.000 0.916 0.000 0.000 0.076 0.008
#> SRR1343136 3 0.1204 0.959 0.000 0.000 0.944 0.000 0.000 0.056
#> SRR1359587 3 0.0000 0.962 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1465782 6 0.1765 0.865 0.096 0.000 0.000 0.000 0.000 0.904
#> SRR1434460 6 0.1765 0.865 0.096 0.000 0.000 0.000 0.000 0.904
#> SRR1415751 6 0.1765 0.865 0.096 0.000 0.000 0.000 0.000 0.904
#> SRR1359027 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.1204 0.959 0.000 0.000 0.944 0.000 0.000 0.056
#> SRR1456469 2 0.0260 0.991 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1436717 2 0.0000 0.993 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0260 0.991 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1070133 2 0.0000 0.993 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0260 0.991 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1436904 3 0.0000 0.962 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1076465 2 0.0000 0.993 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 4 0.0000 0.942 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1076046 6 0.1765 0.865 0.096 0.000 0.000 0.000 0.000 0.904
#> SRR1406643 2 0.0260 0.991 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1499460 5 0.0790 0.967 0.000 0.000 0.000 0.000 0.968 0.032
#> SRR1475147 2 0.0000 0.993 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.1387 0.895 0.932 0.000 0.000 0.000 0.000 0.068
#> SRR1087680 5 0.0790 0.967 0.000 0.000 0.000 0.000 0.968 0.032
#> SRR1361391 5 0.1204 0.952 0.000 0.000 0.056 0.000 0.944 0.000
#> SRR1365655 3 0.1663 0.938 0.000 0.000 0.912 0.000 0.000 0.088
#> SRR1090457 3 0.1204 0.959 0.000 0.000 0.944 0.000 0.000 0.056
#> SRR1084154 4 0.0000 0.942 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1380358 1 0.2664 0.746 0.816 0.000 0.000 0.000 0.000 0.184
#> SRR1398430 4 0.0000 0.942 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1444242 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.0790 0.967 0.000 0.000 0.000 0.000 0.968 0.032
#> SRR1358803 4 0.0000 0.942 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1344079 4 0.0000 0.942 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1072602 6 0.3012 0.729 0.008 0.000 0.000 0.196 0.000 0.796
#> SRR1421399 4 0.0000 0.942 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1339086 1 0.2823 0.713 0.796 0.000 0.000 0.000 0.000 0.204
#> SRR1099881 1 0.2793 0.720 0.800 0.000 0.000 0.000 0.000 0.200
#> SRR1384312 3 0.0000 0.962 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.1204 0.959 0.000 0.000 0.944 0.000 0.000 0.056
#> SRR1440200 2 0.0000 0.993 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0260 0.991 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1344364 2 0.0632 0.974 0.000 0.976 0.000 0.000 0.024 0.000
#> SRR1387787 6 0.2178 0.857 0.132 0.000 0.000 0.000 0.000 0.868
#> SRR1378199 6 0.3833 0.393 0.444 0.000 0.000 0.000 0.000 0.556
#> SRR1413119 5 0.1204 0.952 0.000 0.000 0.056 0.000 0.944 0.000
#> SRR1310497 6 0.0937 0.805 0.000 0.000 0.040 0.000 0.000 0.960
#> SRR1356327 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1319059 6 0.2378 0.695 0.000 0.000 0.152 0.000 0.000 0.848
#> SRR1085378 6 0.3101 0.760 0.244 0.000 0.000 0.000 0.000 0.756
#> SRR1379036 3 0.1204 0.959 0.000 0.000 0.944 0.000 0.000 0.056
#> SRR1417656 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.956 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.0000 0.942 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1366412 2 0.0000 0.993 0.000 1.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", "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 17697 rows and 104 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 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.904 0.963 0.980 0.4829 0.510 0.510
#> 3 3 0.693 0.758 0.857 0.2726 0.753 0.551
#> 4 4 0.843 0.857 0.934 0.1588 0.856 0.625
#> 5 5 0.702 0.615 0.770 0.0893 0.922 0.727
#> 6 6 0.696 0.542 0.744 0.0502 0.904 0.608
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
#> SRR1313664 1 0.0000 0.994 1.000 0.000
#> SRR1375371 2 0.0000 0.958 0.000 1.000
#> SRR1416819 1 0.7950 0.661 0.760 0.240
#> SRR1351907 2 0.0000 0.958 0.000 1.000
#> SRR1330371 2 0.1633 0.951 0.024 0.976
#> SRR1340782 1 0.0000 0.994 1.000 0.000
#> SRR1094531 2 0.1633 0.951 0.024 0.976
#> SRR1436262 1 0.0000 0.994 1.000 0.000
#> SRR1093314 2 0.6438 0.834 0.164 0.836
#> SRR1435460 2 0.6973 0.810 0.188 0.812
#> SRR1485587 1 0.0000 0.994 1.000 0.000
#> SRR1470834 1 0.0000 0.994 1.000 0.000
#> SRR1442966 2 0.1633 0.951 0.024 0.976
#> SRR1410979 2 0.0000 0.958 0.000 1.000
#> SRR1326449 2 0.0000 0.958 0.000 1.000
#> SRR1367520 1 0.0000 0.994 1.000 0.000
#> SRR1360321 1 0.0000 0.994 1.000 0.000
#> SRR1445170 2 0.6438 0.834 0.164 0.836
#> SRR1440663 1 0.0000 0.994 1.000 0.000
#> SRR1489839 1 0.0000 0.994 1.000 0.000
#> SRR1409772 1 0.0000 0.994 1.000 0.000
#> SRR1092591 1 0.0000 0.994 1.000 0.000
#> SRR1338402 1 0.2423 0.953 0.960 0.040
#> SRR1337930 1 0.0000 0.994 1.000 0.000
#> SRR1337749 1 0.0000 0.994 1.000 0.000
#> SRR1401341 1 0.0000 0.994 1.000 0.000
#> SRR1396901 1 0.0000 0.994 1.000 0.000
#> SRR1354400 1 0.2603 0.949 0.956 0.044
#> SRR1416538 1 0.0000 0.994 1.000 0.000
#> SRR1340762 1 0.0000 0.994 1.000 0.000
#> SRR1460095 2 0.0000 0.958 0.000 1.000
#> SRR1071181 1 0.0000 0.994 1.000 0.000
#> SRR1380436 2 0.0000 0.958 0.000 1.000
#> SRR1079973 2 0.0000 0.958 0.000 1.000
#> SRR1473611 1 0.0000 0.994 1.000 0.000
#> SRR1074934 2 0.8555 0.669 0.280 0.720
#> SRR1311731 2 0.0000 0.958 0.000 1.000
#> SRR1452957 2 0.0000 0.958 0.000 1.000
#> SRR1429144 1 0.0000 0.994 1.000 0.000
#> SRR1448203 1 0.0000 0.994 1.000 0.000
#> SRR1366102 1 0.0000 0.994 1.000 0.000
#> SRR1434845 1 0.0000 0.994 1.000 0.000
#> SRR1472171 1 0.0000 0.994 1.000 0.000
#> SRR1441075 2 0.0000 0.958 0.000 1.000
#> SRR1321483 1 0.0000 0.994 1.000 0.000
#> SRR1418105 1 0.0000 0.994 1.000 0.000
#> SRR1090022 2 0.0000 0.958 0.000 1.000
#> SRR1077728 1 0.0000 0.994 1.000 0.000
#> SRR1365767 2 0.1633 0.951 0.024 0.976
#> SRR1489670 2 0.0000 0.958 0.000 1.000
#> SRR1343136 1 0.0000 0.994 1.000 0.000
#> SRR1359587 1 0.0000 0.994 1.000 0.000
#> SRR1465782 1 0.0000 0.994 1.000 0.000
#> SRR1434460 1 0.0000 0.994 1.000 0.000
#> SRR1415751 1 0.0000 0.994 1.000 0.000
#> SRR1359027 1 0.0000 0.994 1.000 0.000
#> SRR1408303 1 0.0000 0.994 1.000 0.000
#> SRR1456469 2 0.0000 0.958 0.000 1.000
#> SRR1436717 2 0.0000 0.958 0.000 1.000
#> SRR1480287 1 0.0000 0.994 1.000 0.000
#> SRR1326845 2 0.0000 0.958 0.000 1.000
#> SRR1070133 2 0.0000 0.958 0.000 1.000
#> SRR1387745 2 0.0000 0.958 0.000 1.000
#> SRR1436904 1 0.0672 0.986 0.992 0.008
#> SRR1076465 2 0.0000 0.958 0.000 1.000
#> SRR1433215 1 0.0000 0.994 1.000 0.000
#> SRR1076046 1 0.0000 0.994 1.000 0.000
#> SRR1406643 2 0.0000 0.958 0.000 1.000
#> SRR1499460 2 0.1633 0.951 0.024 0.976
#> SRR1475147 2 0.0000 0.958 0.000 1.000
#> SRR1319301 1 0.0000 0.994 1.000 0.000
#> SRR1486117 1 0.0000 0.994 1.000 0.000
#> SRR1087680 2 0.1633 0.951 0.024 0.976
#> SRR1361391 2 0.2043 0.947 0.032 0.968
#> SRR1365655 1 0.0000 0.994 1.000 0.000
#> SRR1090457 1 0.0000 0.994 1.000 0.000
#> SRR1084154 2 0.0938 0.955 0.012 0.988
#> SRR1380358 1 0.0000 0.994 1.000 0.000
#> SRR1398430 2 0.0938 0.955 0.012 0.988
#> SRR1444242 1 0.0000 0.994 1.000 0.000
#> SRR1440832 2 0.1633 0.951 0.024 0.976
#> SRR1358803 2 0.6438 0.834 0.164 0.836
#> SRR1344079 2 0.6438 0.834 0.164 0.836
#> SRR1072602 1 0.0000 0.994 1.000 0.000
#> SRR1421399 2 0.0938 0.955 0.012 0.988
#> SRR1339086 1 0.0000 0.994 1.000 0.000
#> SRR1099881 1 0.0000 0.994 1.000 0.000
#> SRR1384312 1 0.0000 0.994 1.000 0.000
#> SRR1329508 1 0.0000 0.994 1.000 0.000
#> SRR1440200 2 0.0000 0.958 0.000 1.000
#> SRR1397558 2 0.0000 0.958 0.000 1.000
#> SRR1344364 2 0.0000 0.958 0.000 1.000
#> SRR1387787 1 0.0000 0.994 1.000 0.000
#> SRR1378199 1 0.0000 0.994 1.000 0.000
#> SRR1413119 2 0.6973 0.810 0.188 0.812
#> SRR1310497 1 0.0000 0.994 1.000 0.000
#> SRR1356327 1 0.0000 0.994 1.000 0.000
#> SRR1319059 1 0.0000 0.994 1.000 0.000
#> SRR1085378 1 0.0000 0.994 1.000 0.000
#> SRR1379036 1 0.0000 0.994 1.000 0.000
#> SRR1417656 1 0.0000 0.994 1.000 0.000
#> SRR1454225 1 0.0000 0.994 1.000 0.000
#> SRR1455346 2 0.6343 0.839 0.160 0.840
#> SRR1366412 2 0.0000 0.958 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1375371 2 0.0424 0.8790 0.000 0.992 0.008
#> SRR1416819 1 0.4342 0.7648 0.856 0.024 0.120
#> SRR1351907 2 0.3267 0.8475 0.000 0.884 0.116
#> SRR1330371 3 0.5327 0.0629 0.000 0.272 0.728
#> SRR1340782 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1094531 3 0.1289 0.4581 0.000 0.032 0.968
#> SRR1436262 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1093314 2 0.6804 0.5288 0.012 0.528 0.460
#> SRR1435460 3 0.5327 0.0629 0.000 0.272 0.728
#> SRR1485587 1 0.2796 0.8391 0.908 0.000 0.092
#> SRR1470834 1 0.1163 0.9211 0.972 0.000 0.028
#> SRR1442966 3 0.5363 0.0512 0.000 0.276 0.724
#> SRR1410979 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1326449 2 0.0237 0.8791 0.000 0.996 0.004
#> SRR1367520 1 0.0892 0.9294 0.980 0.000 0.020
#> SRR1360321 3 0.6168 0.6169 0.412 0.000 0.588
#> SRR1445170 2 0.6804 0.5288 0.012 0.528 0.460
#> SRR1440663 3 0.6168 0.6169 0.412 0.000 0.588
#> SRR1489839 1 0.1031 0.9283 0.976 0.000 0.024
#> SRR1409772 1 0.2796 0.8391 0.908 0.000 0.092
#> SRR1092591 1 0.2165 0.8779 0.936 0.000 0.064
#> SRR1338402 3 0.7069 0.6137 0.408 0.024 0.568
#> SRR1337930 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1401341 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1396901 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1354400 3 0.7080 0.6126 0.412 0.024 0.564
#> SRR1416538 1 0.1031 0.9283 0.976 0.000 0.024
#> SRR1340762 3 0.6309 0.4114 0.500 0.000 0.500
#> SRR1460095 2 0.6309 0.5026 0.000 0.504 0.496
#> SRR1071181 3 0.6168 0.6169 0.412 0.000 0.588
#> SRR1380436 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1473611 1 0.2796 0.8391 0.908 0.000 0.092
#> SRR1074934 1 0.6449 0.5548 0.740 0.056 0.204
#> SRR1311731 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1434845 1 0.1031 0.9283 0.976 0.000 0.024
#> SRR1472171 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1321483 3 0.6168 0.6169 0.412 0.000 0.588
#> SRR1418105 3 0.6168 0.6169 0.412 0.000 0.588
#> SRR1090022 2 0.5835 0.6821 0.000 0.660 0.340
#> SRR1077728 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1365767 3 0.5327 0.0629 0.000 0.272 0.728
#> SRR1489670 2 0.3267 0.8475 0.000 0.884 0.116
#> SRR1343136 3 0.6168 0.6169 0.412 0.000 0.588
#> SRR1359587 3 0.6168 0.6169 0.412 0.000 0.588
#> SRR1465782 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1434460 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1415751 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1359027 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1408303 3 0.6168 0.6169 0.412 0.000 0.588
#> SRR1456469 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1436717 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1436904 3 0.7080 0.6126 0.412 0.024 0.564
#> SRR1076465 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1433215 1 0.2878 0.8328 0.904 0.000 0.096
#> SRR1076046 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1406643 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1499460 3 0.1289 0.4581 0.000 0.032 0.968
#> SRR1475147 2 0.5835 0.6821 0.000 0.660 0.340
#> SRR1319301 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1087680 3 0.1289 0.4581 0.000 0.032 0.968
#> SRR1361391 3 0.1289 0.4581 0.000 0.032 0.968
#> SRR1365655 3 0.6180 0.6100 0.416 0.000 0.584
#> SRR1090457 3 0.6168 0.6169 0.412 0.000 0.588
#> SRR1084154 2 0.4121 0.8298 0.000 0.832 0.168
#> SRR1380358 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1398430 2 0.4121 0.8298 0.000 0.832 0.168
#> SRR1444242 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1440832 3 0.1964 0.4339 0.000 0.056 0.944
#> SRR1358803 2 0.5737 0.7612 0.012 0.732 0.256
#> SRR1344079 2 0.5884 0.7471 0.012 0.716 0.272
#> SRR1072602 1 0.2878 0.8328 0.904 0.000 0.096
#> SRR1421399 2 0.3752 0.8394 0.000 0.856 0.144
#> SRR1339086 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1384312 3 0.6168 0.6169 0.412 0.000 0.588
#> SRR1329508 3 0.7080 0.6126 0.412 0.024 0.564
#> SRR1440200 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.8800 0.000 1.000 0.000
#> SRR1344364 2 0.3267 0.8475 0.000 0.884 0.116
#> SRR1387787 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1378199 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1413119 3 0.5291 0.0726 0.000 0.268 0.732
#> SRR1310497 1 0.1031 0.9283 0.976 0.000 0.024
#> SRR1356327 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1319059 1 0.6308 -0.4247 0.508 0.000 0.492
#> SRR1085378 1 0.0237 0.9432 0.996 0.000 0.004
#> SRR1379036 3 0.6168 0.6169 0.412 0.000 0.588
#> SRR1417656 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9460 1.000 0.000 0.000
#> SRR1455346 2 0.4121 0.8298 0.000 0.832 0.168
#> SRR1366412 2 0.3192 0.8485 0.000 0.888 0.112
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.4193 0.630 0.000 0.732 0.000 0.268
#> SRR1416819 4 0.4877 0.321 0.408 0.000 0.000 0.592
#> SRR1351907 4 0.2011 0.849 0.000 0.080 0.000 0.920
#> SRR1330371 4 0.1867 0.841 0.000 0.000 0.072 0.928
#> SRR1340782 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1094531 4 0.4103 0.659 0.000 0.000 0.256 0.744
#> SRR1436262 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.0000 0.860 0.000 0.000 0.000 1.000
#> SRR1435460 4 0.1716 0.845 0.000 0.000 0.064 0.936
#> SRR1485587 1 0.4164 0.626 0.736 0.000 0.000 0.264
#> SRR1470834 1 0.1209 0.943 0.964 0.000 0.032 0.004
#> SRR1442966 4 0.0336 0.860 0.000 0.000 0.008 0.992
#> SRR1410979 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.3486 0.743 0.000 0.812 0.000 0.188
#> SRR1367520 1 0.0188 0.965 0.996 0.000 0.000 0.004
#> SRR1360321 3 0.0000 0.836 0.000 0.000 1.000 0.000
#> SRR1445170 4 0.0000 0.860 0.000 0.000 0.000 1.000
#> SRR1440663 3 0.0000 0.836 0.000 0.000 1.000 0.000
#> SRR1489839 1 0.1389 0.930 0.952 0.000 0.048 0.000
#> SRR1409772 1 0.0336 0.963 0.992 0.000 0.000 0.008
#> SRR1092591 1 0.0336 0.963 0.992 0.000 0.000 0.008
#> SRR1338402 3 0.4193 0.567 0.000 0.000 0.732 0.268
#> SRR1337930 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.3311 0.719 0.000 0.000 0.828 0.172
#> SRR1416538 1 0.1474 0.926 0.948 0.000 0.052 0.000
#> SRR1340762 3 0.4776 0.455 0.376 0.000 0.624 0.000
#> SRR1460095 4 0.0188 0.860 0.000 0.000 0.004 0.996
#> SRR1071181 3 0.0000 0.836 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1473611 1 0.3356 0.765 0.824 0.000 0.000 0.176
#> SRR1074934 4 0.3763 0.745 0.144 0.000 0.024 0.832
#> SRR1311731 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.1474 0.926 0.948 0.000 0.052 0.000
#> SRR1472171 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.0000 0.836 0.000 0.000 1.000 0.000
#> SRR1418105 3 0.0000 0.836 0.000 0.000 1.000 0.000
#> SRR1090022 4 0.2197 0.850 0.000 0.080 0.004 0.916
#> SRR1077728 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1365767 4 0.1867 0.841 0.000 0.000 0.072 0.928
#> SRR1489670 4 0.2081 0.847 0.000 0.084 0.000 0.916
#> SRR1343136 3 0.0000 0.836 0.000 0.000 1.000 0.000
#> SRR1359587 3 0.2814 0.756 0.000 0.000 0.868 0.132
#> SRR1465782 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1434460 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1415751 1 0.0707 0.953 0.980 0.000 0.020 0.000
#> SRR1359027 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.836 0.000 0.000 1.000 0.000
#> SRR1456469 2 0.1211 0.937 0.000 0.960 0.000 0.040
#> SRR1436717 2 0.1211 0.937 0.000 0.960 0.000 0.040
#> SRR1480287 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.3311 0.719 0.000 0.000 0.828 0.172
#> SRR1076465 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1433215 1 0.3726 0.714 0.788 0.000 0.000 0.212
#> SRR1076046 1 0.0336 0.962 0.992 0.000 0.008 0.000
#> SRR1406643 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1499460 4 0.4103 0.659 0.000 0.000 0.256 0.744
#> SRR1475147 4 0.2334 0.846 0.000 0.088 0.004 0.908
#> SRR1319301 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1087680 4 0.4103 0.659 0.000 0.000 0.256 0.744
#> SRR1361391 4 0.3907 0.692 0.000 0.000 0.232 0.768
#> SRR1365655 3 0.4776 0.441 0.376 0.000 0.624 0.000
#> SRR1090457 3 0.0000 0.836 0.000 0.000 1.000 0.000
#> SRR1084154 4 0.2011 0.849 0.000 0.080 0.000 0.920
#> SRR1380358 1 0.0188 0.965 0.996 0.000 0.000 0.004
#> SRR1398430 4 0.2011 0.849 0.000 0.080 0.000 0.920
#> SRR1444242 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1440832 4 0.2081 0.835 0.000 0.000 0.084 0.916
#> SRR1358803 4 0.0000 0.860 0.000 0.000 0.000 1.000
#> SRR1344079 4 0.0000 0.860 0.000 0.000 0.000 1.000
#> SRR1072602 1 0.3400 0.760 0.820 0.000 0.000 0.180
#> SRR1421399 4 0.0000 0.860 0.000 0.000 0.000 1.000
#> SRR1339086 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.836 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.3311 0.719 0.000 0.000 0.828 0.172
#> SRR1440200 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1344364 4 0.2197 0.850 0.000 0.080 0.004 0.916
#> SRR1387787 1 0.0336 0.963 0.992 0.000 0.000 0.008
#> SRR1378199 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1413119 4 0.3123 0.779 0.000 0.000 0.156 0.844
#> SRR1310497 1 0.1474 0.926 0.948 0.000 0.052 0.000
#> SRR1356327 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1319059 3 0.4989 0.216 0.472 0.000 0.528 0.000
#> SRR1085378 1 0.0336 0.963 0.992 0.000 0.000 0.008
#> SRR1379036 3 0.0000 0.836 0.000 0.000 1.000 0.000
#> SRR1417656 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.966 1.000 0.000 0.000 0.000
#> SRR1455346 4 0.2011 0.849 0.000 0.080 0.000 0.920
#> SRR1366412 4 0.4843 0.348 0.000 0.396 0.000 0.604
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.5673 0.0528 0.500 0.000 0.080 0.000 0.420
#> SRR1375371 2 0.4545 0.7032 0.000 0.752 0.000 0.116 0.132
#> SRR1416819 4 0.4558 0.4245 0.324 0.000 0.000 0.652 0.024
#> SRR1351907 4 0.0693 0.7456 0.000 0.012 0.000 0.980 0.008
#> SRR1330371 4 0.4235 0.7277 0.000 0.000 0.008 0.656 0.336
#> SRR1340782 1 0.0404 0.7165 0.988 0.000 0.000 0.000 0.012
#> SRR1094531 4 0.5559 0.6820 0.000 0.000 0.084 0.572 0.344
#> SRR1436262 1 0.0000 0.7164 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.3143 0.7552 0.000 0.000 0.000 0.796 0.204
#> SRR1435460 4 0.3895 0.7361 0.000 0.000 0.000 0.680 0.320
#> SRR1485587 1 0.5291 0.2904 0.496 0.000 0.000 0.048 0.456
#> SRR1470834 5 0.6829 0.4843 0.248 0.000 0.284 0.008 0.460
#> SRR1442966 4 0.3895 0.7361 0.000 0.000 0.000 0.680 0.320
#> SRR1410979 2 0.0162 0.9515 0.000 0.996 0.000 0.000 0.004
#> SRR1326449 2 0.4046 0.4680 0.000 0.696 0.000 0.296 0.008
#> SRR1367520 1 0.4807 0.3426 0.532 0.000 0.000 0.020 0.448
#> SRR1360321 3 0.0000 0.8405 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 4 0.3143 0.7552 0.000 0.000 0.000 0.796 0.204
#> SRR1440663 3 0.0000 0.8405 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 5 0.6712 0.5214 0.260 0.000 0.324 0.000 0.416
#> SRR1409772 5 0.6090 -0.0233 0.400 0.000 0.080 0.016 0.504
#> SRR1092591 1 0.4897 0.3265 0.516 0.000 0.000 0.024 0.460
#> SRR1338402 3 0.4603 0.5684 0.000 0.000 0.668 0.300 0.032
#> SRR1337930 1 0.0404 0.7165 0.988 0.000 0.000 0.000 0.012
#> SRR1337749 1 0.0000 0.7164 1.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.3969 0.4915 0.692 0.000 0.004 0.000 0.304
#> SRR1396901 1 0.0404 0.7165 0.988 0.000 0.000 0.000 0.012
#> SRR1354400 3 0.3805 0.7387 0.000 0.000 0.784 0.184 0.032
#> SRR1416538 5 0.6712 0.5214 0.260 0.000 0.324 0.000 0.416
#> SRR1340762 3 0.5983 0.0521 0.252 0.000 0.580 0.000 0.168
#> SRR1460095 4 0.4045 0.7351 0.000 0.000 0.000 0.644 0.356
#> SRR1071181 3 0.0000 0.8405 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0162 0.9515 0.000 0.996 0.000 0.000 0.004
#> SRR1079973 2 0.0579 0.9450 0.000 0.984 0.000 0.008 0.008
#> SRR1473611 1 0.4897 0.3265 0.516 0.000 0.000 0.024 0.460
#> SRR1074934 4 0.4400 0.4646 0.308 0.000 0.000 0.672 0.020
#> SRR1311731 2 0.0000 0.9515 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9515 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0404 0.7165 0.988 0.000 0.000 0.000 0.012
#> SRR1448203 1 0.0404 0.7159 0.988 0.000 0.000 0.000 0.012
#> SRR1366102 1 0.0963 0.7054 0.964 0.000 0.000 0.000 0.036
#> SRR1434845 5 0.6712 0.5214 0.260 0.000 0.324 0.000 0.416
#> SRR1472171 1 0.0404 0.7165 0.988 0.000 0.000 0.000 0.012
#> SRR1441075 2 0.0000 0.9515 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.8405 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0000 0.8405 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 4 0.6071 0.5126 0.000 0.284 0.000 0.556 0.160
#> SRR1077728 1 0.5880 -0.0263 0.484 0.000 0.100 0.000 0.416
#> SRR1365767 4 0.4549 0.6890 0.000 0.000 0.008 0.528 0.464
#> SRR1489670 4 0.3551 0.7059 0.000 0.044 0.000 0.820 0.136
#> SRR1343136 3 0.0880 0.8221 0.000 0.000 0.968 0.000 0.032
#> SRR1359587 3 0.3876 0.7312 0.000 0.000 0.776 0.192 0.032
#> SRR1465782 5 0.6132 0.0762 0.432 0.000 0.128 0.000 0.440
#> SRR1434460 1 0.4803 0.2580 0.536 0.000 0.020 0.000 0.444
#> SRR1415751 5 0.6721 0.4687 0.304 0.000 0.276 0.000 0.420
#> SRR1359027 1 0.0404 0.7165 0.988 0.000 0.000 0.000 0.012
#> SRR1408303 3 0.0000 0.8405 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.2416 0.8720 0.000 0.888 0.000 0.012 0.100
#> SRR1436717 2 0.0693 0.9434 0.000 0.980 0.000 0.012 0.008
#> SRR1480287 1 0.0162 0.7163 0.996 0.000 0.000 0.000 0.004
#> SRR1326845 2 0.0162 0.9515 0.000 0.996 0.000 0.000 0.004
#> SRR1070133 2 0.0162 0.9515 0.000 0.996 0.000 0.000 0.004
#> SRR1387745 2 0.0000 0.9515 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.3724 0.7407 0.000 0.000 0.788 0.184 0.028
#> SRR1076465 2 0.0162 0.9515 0.000 0.996 0.000 0.000 0.004
#> SRR1433215 5 0.6020 -0.1865 0.412 0.000 0.004 0.100 0.484
#> SRR1076046 1 0.4696 0.3119 0.556 0.000 0.016 0.000 0.428
#> SRR1406643 2 0.0000 0.9515 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 5 0.5737 -0.6768 0.000 0.000 0.084 0.452 0.464
#> SRR1475147 4 0.6050 0.4734 0.000 0.312 0.000 0.544 0.144
#> SRR1319301 1 0.0992 0.6974 0.968 0.000 0.024 0.000 0.008
#> SRR1486117 1 0.1270 0.6981 0.948 0.000 0.000 0.000 0.052
#> SRR1087680 5 0.5737 -0.6768 0.000 0.000 0.084 0.452 0.464
#> SRR1361391 4 0.5533 0.6821 0.000 0.000 0.084 0.580 0.336
#> SRR1365655 3 0.5002 0.4231 0.132 0.000 0.708 0.000 0.160
#> SRR1090457 3 0.0000 0.8405 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 4 0.0693 0.7456 0.000 0.012 0.000 0.980 0.008
#> SRR1380358 1 0.4252 0.4826 0.652 0.000 0.000 0.008 0.340
#> SRR1398430 4 0.0807 0.7448 0.000 0.012 0.000 0.976 0.012
#> SRR1444242 1 0.0404 0.7165 0.988 0.000 0.000 0.000 0.012
#> SRR1440832 4 0.5440 0.6652 0.000 0.004 0.048 0.476 0.472
#> SRR1358803 4 0.0771 0.7424 0.000 0.004 0.000 0.976 0.020
#> SRR1344079 4 0.0771 0.7424 0.000 0.004 0.000 0.976 0.020
#> SRR1072602 5 0.7875 0.3020 0.208 0.000 0.136 0.188 0.468
#> SRR1421399 4 0.0451 0.7496 0.000 0.004 0.000 0.988 0.008
#> SRR1339086 1 0.0404 0.7173 0.988 0.000 0.000 0.000 0.012
#> SRR1099881 1 0.3003 0.6095 0.812 0.000 0.000 0.000 0.188
#> SRR1384312 3 0.0000 0.8405 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.3810 0.7458 0.000 0.000 0.788 0.176 0.036
#> SRR1440200 2 0.0000 0.9515 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0162 0.9515 0.000 0.996 0.000 0.000 0.004
#> SRR1344364 4 0.3400 0.7072 0.000 0.036 0.000 0.828 0.136
#> SRR1387787 1 0.4783 0.3366 0.532 0.000 0.004 0.012 0.452
#> SRR1378199 1 0.3949 0.4921 0.668 0.000 0.000 0.000 0.332
#> SRR1413119 4 0.4435 0.7248 0.000 0.000 0.016 0.648 0.336
#> SRR1310497 5 0.6712 0.5214 0.260 0.000 0.324 0.000 0.416
#> SRR1356327 1 0.0290 0.7161 0.992 0.000 0.000 0.000 0.008
#> SRR1319059 5 0.6727 0.4966 0.252 0.000 0.364 0.000 0.384
#> SRR1085378 1 0.4897 0.3265 0.516 0.000 0.000 0.024 0.460
#> SRR1379036 3 0.0794 0.8249 0.000 0.000 0.972 0.000 0.028
#> SRR1417656 1 0.0404 0.7165 0.988 0.000 0.000 0.000 0.012
#> SRR1454225 1 0.0000 0.7164 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.0912 0.7436 0.000 0.012 0.000 0.972 0.016
#> SRR1366412 4 0.6146 0.0566 0.000 0.376 0.000 0.488 0.136
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1313664 6 0.4774 0.52371 0.288 0.000 0.044 0.000 0.020 0.648
#> SRR1375371 2 0.4543 0.73680 0.000 0.740 0.000 0.136 0.100 0.024
#> SRR1416819 4 0.5633 0.30753 0.008 0.000 0.032 0.572 0.064 0.324
#> SRR1351907 4 0.0508 0.55337 0.000 0.000 0.000 0.984 0.004 0.012
#> SRR1330371 4 0.4057 0.08726 0.000 0.000 0.008 0.556 0.436 0.000
#> SRR1340782 1 0.0547 0.73697 0.980 0.000 0.000 0.000 0.000 0.020
#> SRR1094531 4 0.4941 -0.10838 0.000 0.000 0.064 0.492 0.444 0.000
#> SRR1436262 1 0.2605 0.72638 0.864 0.000 0.000 0.000 0.028 0.108
#> SRR1093314 4 0.3311 0.48819 0.004 0.000 0.000 0.780 0.204 0.012
#> SRR1435460 4 0.3774 0.18075 0.000 0.000 0.000 0.592 0.408 0.000
#> SRR1485587 6 0.3932 0.48427 0.184 0.000 0.000 0.048 0.008 0.760
#> SRR1470834 6 0.6684 0.43907 0.188 0.000 0.064 0.000 0.272 0.476
#> SRR1442966 4 0.3804 0.14153 0.000 0.000 0.000 0.576 0.424 0.000
#> SRR1410979 2 0.0146 0.91767 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1326449 2 0.4660 0.44654 0.000 0.644 0.000 0.304 0.028 0.024
#> SRR1367520 6 0.3710 0.50164 0.292 0.000 0.000 0.000 0.012 0.696
#> SRR1360321 3 0.0146 0.85368 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1445170 4 0.3311 0.48819 0.004 0.000 0.000 0.780 0.204 0.012
#> SRR1440663 3 0.0000 0.85341 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 6 0.7517 0.38421 0.244 0.000 0.144 0.000 0.288 0.324
#> SRR1409772 6 0.3820 0.57427 0.128 0.000 0.056 0.000 0.020 0.796
#> SRR1092591 6 0.2902 0.50608 0.196 0.000 0.000 0.000 0.004 0.800
#> SRR1338402 3 0.4273 0.64453 0.000 0.000 0.716 0.204 0.080 0.000
#> SRR1337930 1 0.1387 0.66533 0.932 0.000 0.000 0.000 0.000 0.068
#> SRR1337749 1 0.3150 0.71547 0.832 0.000 0.000 0.000 0.064 0.104
#> SRR1401341 6 0.4683 0.35492 0.320 0.000 0.000 0.000 0.064 0.616
#> SRR1396901 1 0.0000 0.73071 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.3587 0.74810 0.000 0.000 0.792 0.140 0.068 0.000
#> SRR1416538 6 0.7517 0.38421 0.244 0.000 0.144 0.000 0.288 0.324
#> SRR1340762 3 0.7278 0.03420 0.136 0.000 0.400 0.000 0.284 0.180
#> SRR1460095 4 0.3841 0.21029 0.000 0.004 0.000 0.616 0.380 0.000
#> SRR1071181 3 0.0000 0.85341 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0146 0.91767 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1079973 2 0.1966 0.89867 0.000 0.924 0.000 0.024 0.028 0.024
#> SRR1473611 6 0.3262 0.49917 0.196 0.000 0.000 0.008 0.008 0.788
#> SRR1074934 4 0.5675 0.32213 0.008 0.000 0.040 0.588 0.064 0.300
#> SRR1311731 2 0.0717 0.91710 0.000 0.976 0.000 0.000 0.016 0.008
#> SRR1452957 2 0.0964 0.91536 0.000 0.968 0.000 0.012 0.016 0.004
#> SRR1429144 1 0.0000 0.73071 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.5160 0.42112 0.564 0.000 0.000 0.000 0.104 0.332
#> SRR1366102 1 0.5271 0.33757 0.516 0.000 0.000 0.000 0.104 0.380
#> SRR1434845 6 0.7539 0.38215 0.236 0.000 0.152 0.000 0.288 0.324
#> SRR1472171 1 0.0146 0.73206 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1441075 2 0.0717 0.91656 0.000 0.976 0.000 0.008 0.016 0.000
#> SRR1321483 3 0.0363 0.85169 0.000 0.000 0.988 0.000 0.000 0.012
#> SRR1418105 3 0.0000 0.85341 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 4 0.6104 0.26261 0.000 0.232 0.000 0.540 0.200 0.028
#> SRR1077728 6 0.5113 0.49525 0.332 0.000 0.056 0.000 0.020 0.592
#> SRR1365767 5 0.4089 0.00414 0.000 0.000 0.008 0.468 0.524 0.000
#> SRR1489670 4 0.4311 0.41301 0.000 0.108 0.000 0.760 0.112 0.020
#> SRR1343136 3 0.0363 0.85169 0.000 0.000 0.988 0.000 0.000 0.012
#> SRR1359587 3 0.3163 0.76914 0.000 0.000 0.820 0.140 0.040 0.000
#> SRR1465782 6 0.5339 0.53064 0.288 0.000 0.060 0.000 0.040 0.612
#> SRR1434460 6 0.3245 0.53675 0.228 0.000 0.000 0.000 0.008 0.764
#> SRR1415751 6 0.5520 0.52116 0.300 0.000 0.076 0.000 0.036 0.588
#> SRR1359027 1 0.0000 0.73071 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0146 0.85368 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1456469 2 0.2195 0.88716 0.000 0.912 0.000 0.028 0.036 0.024
#> SRR1436717 2 0.1599 0.90199 0.000 0.940 0.000 0.028 0.008 0.024
#> SRR1480287 1 0.2432 0.72879 0.876 0.000 0.000 0.000 0.024 0.100
#> SRR1326845 2 0.0146 0.91767 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1070133 2 0.0146 0.91767 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1387745 2 0.0717 0.91656 0.000 0.976 0.000 0.008 0.016 0.000
#> SRR1436904 3 0.3457 0.76160 0.000 0.000 0.808 0.136 0.052 0.004
#> SRR1076465 2 0.0146 0.91767 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1433215 6 0.2903 0.50227 0.016 0.000 0.028 0.076 0.008 0.872
#> SRR1076046 6 0.3841 0.51831 0.208 0.000 0.004 0.008 0.024 0.756
#> SRR1406643 2 0.0717 0.91656 0.000 0.976 0.000 0.008 0.016 0.000
#> SRR1499460 5 0.4726 0.13819 0.000 0.000 0.048 0.424 0.528 0.000
#> SRR1475147 4 0.6149 0.25224 0.000 0.264 0.000 0.524 0.184 0.028
#> SRR1319301 1 0.2378 0.70833 0.848 0.000 0.000 0.000 0.000 0.152
#> SRR1486117 6 0.5327 -0.15113 0.436 0.000 0.000 0.000 0.104 0.460
#> SRR1087680 5 0.4726 0.13819 0.000 0.000 0.048 0.424 0.528 0.000
#> SRR1361391 4 0.4620 0.01374 0.000 0.000 0.040 0.532 0.428 0.000
#> SRR1365655 3 0.6912 0.21398 0.116 0.000 0.468 0.000 0.272 0.144
#> SRR1090457 3 0.0146 0.85368 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1084154 4 0.0405 0.55379 0.000 0.000 0.000 0.988 0.004 0.008
#> SRR1380358 6 0.4665 0.13722 0.412 0.000 0.000 0.012 0.024 0.552
#> SRR1398430 4 0.0622 0.55247 0.000 0.000 0.000 0.980 0.012 0.008
#> SRR1444242 1 0.0713 0.73255 0.972 0.000 0.000 0.000 0.000 0.028
#> SRR1440832 5 0.4517 0.07853 0.000 0.004 0.024 0.444 0.528 0.000
#> SRR1358803 4 0.2007 0.55072 0.012 0.000 0.000 0.920 0.036 0.032
#> SRR1344079 4 0.2390 0.54319 0.008 0.000 0.000 0.896 0.052 0.044
#> SRR1072602 6 0.5425 0.50609 0.044 0.000 0.064 0.128 0.052 0.712
#> SRR1421399 4 0.1398 0.55300 0.000 0.000 0.000 0.940 0.052 0.008
#> SRR1339086 1 0.4873 0.46889 0.600 0.000 0.000 0.000 0.080 0.320
#> SRR1099881 1 0.5257 0.25620 0.524 0.000 0.000 0.000 0.104 0.372
#> SRR1384312 3 0.0000 0.85341 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.3155 0.77448 0.000 0.000 0.828 0.132 0.036 0.004
#> SRR1440200 2 0.0000 0.91717 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0146 0.91767 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1344364 4 0.4151 0.42798 0.000 0.100 0.000 0.780 0.092 0.028
#> SRR1387787 6 0.2416 0.55607 0.156 0.000 0.000 0.000 0.000 0.844
#> SRR1378199 6 0.4538 0.29504 0.340 0.000 0.000 0.000 0.048 0.612
#> SRR1413119 4 0.4475 0.08099 0.000 0.000 0.032 0.556 0.412 0.000
#> SRR1310497 6 0.7517 0.38421 0.244 0.000 0.144 0.000 0.288 0.324
#> SRR1356327 1 0.5056 0.46733 0.588 0.000 0.000 0.000 0.100 0.312
#> SRR1319059 5 0.7657 -0.51384 0.180 0.000 0.264 0.000 0.284 0.272
#> SRR1085378 6 0.3183 0.50193 0.200 0.000 0.000 0.004 0.008 0.788
#> SRR1379036 3 0.0363 0.85169 0.000 0.000 0.988 0.000 0.000 0.012
#> SRR1417656 1 0.0363 0.73427 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1454225 1 0.5056 0.46904 0.588 0.000 0.000 0.000 0.100 0.312
#> SRR1455346 4 0.0520 0.55346 0.000 0.000 0.000 0.984 0.008 0.008
#> SRR1366412 2 0.5870 0.27938 0.000 0.468 0.000 0.400 0.108 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", "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 17697 rows and 104 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.960 0.947 0.978 0.4341 0.563 0.563
#> 3 3 0.898 0.902 0.961 0.4671 0.736 0.553
#> 4 4 0.883 0.876 0.949 0.1322 0.888 0.696
#> 5 5 0.784 0.741 0.882 0.0327 0.975 0.912
#> 6 6 0.773 0.703 0.859 0.0334 0.935 0.770
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
#> SRR1313664 1 0.0000 0.985 1.000 0.000
#> SRR1375371 2 0.0000 0.957 0.000 1.000
#> SRR1416819 1 0.0000 0.985 1.000 0.000
#> SRR1351907 2 0.0376 0.954 0.004 0.996
#> SRR1330371 2 0.6712 0.789 0.176 0.824
#> SRR1340782 1 0.0000 0.985 1.000 0.000
#> SRR1094531 1 0.9710 0.297 0.600 0.400
#> SRR1436262 1 0.0000 0.985 1.000 0.000
#> SRR1093314 1 0.8713 0.567 0.708 0.292
#> SRR1435460 1 0.0000 0.985 1.000 0.000
#> SRR1485587 1 0.0000 0.985 1.000 0.000
#> SRR1470834 1 0.0000 0.985 1.000 0.000
#> SRR1442966 2 0.7299 0.754 0.204 0.796
#> SRR1410979 2 0.0000 0.957 0.000 1.000
#> SRR1326449 2 0.0000 0.957 0.000 1.000
#> SRR1367520 1 0.0000 0.985 1.000 0.000
#> SRR1360321 1 0.0000 0.985 1.000 0.000
#> SRR1445170 1 0.0938 0.974 0.988 0.012
#> SRR1440663 1 0.0000 0.985 1.000 0.000
#> SRR1489839 1 0.0000 0.985 1.000 0.000
#> SRR1409772 1 0.0000 0.985 1.000 0.000
#> SRR1092591 1 0.0000 0.985 1.000 0.000
#> SRR1338402 1 0.0000 0.985 1.000 0.000
#> SRR1337930 1 0.0000 0.985 1.000 0.000
#> SRR1337749 1 0.0000 0.985 1.000 0.000
#> SRR1401341 1 0.0000 0.985 1.000 0.000
#> SRR1396901 1 0.0000 0.985 1.000 0.000
#> SRR1354400 1 0.0000 0.985 1.000 0.000
#> SRR1416538 1 0.0000 0.985 1.000 0.000
#> SRR1340762 1 0.0000 0.985 1.000 0.000
#> SRR1460095 2 0.0000 0.957 0.000 1.000
#> SRR1071181 1 0.0000 0.985 1.000 0.000
#> SRR1380436 2 0.0000 0.957 0.000 1.000
#> SRR1079973 2 0.0000 0.957 0.000 1.000
#> SRR1473611 1 0.0000 0.985 1.000 0.000
#> SRR1074934 1 0.0000 0.985 1.000 0.000
#> SRR1311731 2 0.0000 0.957 0.000 1.000
#> SRR1452957 2 0.0000 0.957 0.000 1.000
#> SRR1429144 1 0.0000 0.985 1.000 0.000
#> SRR1448203 1 0.0000 0.985 1.000 0.000
#> SRR1366102 1 0.0000 0.985 1.000 0.000
#> SRR1434845 1 0.0000 0.985 1.000 0.000
#> SRR1472171 1 0.0000 0.985 1.000 0.000
#> SRR1441075 2 0.0000 0.957 0.000 1.000
#> SRR1321483 1 0.0000 0.985 1.000 0.000
#> SRR1418105 1 0.0000 0.985 1.000 0.000
#> SRR1090022 2 0.0000 0.957 0.000 1.000
#> SRR1077728 1 0.0000 0.985 1.000 0.000
#> SRR1365767 2 0.0000 0.957 0.000 1.000
#> SRR1489670 2 0.0000 0.957 0.000 1.000
#> SRR1343136 1 0.0000 0.985 1.000 0.000
#> SRR1359587 1 0.0000 0.985 1.000 0.000
#> SRR1465782 1 0.0000 0.985 1.000 0.000
#> SRR1434460 1 0.0000 0.985 1.000 0.000
#> SRR1415751 1 0.0000 0.985 1.000 0.000
#> SRR1359027 1 0.0000 0.985 1.000 0.000
#> SRR1408303 1 0.0000 0.985 1.000 0.000
#> SRR1456469 2 0.0000 0.957 0.000 1.000
#> SRR1436717 2 0.0000 0.957 0.000 1.000
#> SRR1480287 1 0.0000 0.985 1.000 0.000
#> SRR1326845 2 0.0000 0.957 0.000 1.000
#> SRR1070133 2 0.0000 0.957 0.000 1.000
#> SRR1387745 2 0.0000 0.957 0.000 1.000
#> SRR1436904 1 0.0000 0.985 1.000 0.000
#> SRR1076465 2 0.0000 0.957 0.000 1.000
#> SRR1433215 1 0.0000 0.985 1.000 0.000
#> SRR1076046 1 0.0000 0.985 1.000 0.000
#> SRR1406643 2 0.0000 0.957 0.000 1.000
#> SRR1499460 2 0.0000 0.957 0.000 1.000
#> SRR1475147 2 0.0000 0.957 0.000 1.000
#> SRR1319301 1 0.0000 0.985 1.000 0.000
#> SRR1486117 1 0.0000 0.985 1.000 0.000
#> SRR1087680 2 0.0000 0.957 0.000 1.000
#> SRR1361391 1 0.7056 0.752 0.808 0.192
#> SRR1365655 1 0.0000 0.985 1.000 0.000
#> SRR1090457 1 0.0000 0.985 1.000 0.000
#> SRR1084154 2 0.7376 0.749 0.208 0.792
#> SRR1380358 1 0.0000 0.985 1.000 0.000
#> SRR1398430 2 0.9427 0.473 0.360 0.640
#> SRR1444242 1 0.0000 0.985 1.000 0.000
#> SRR1440832 2 0.0000 0.957 0.000 1.000
#> SRR1358803 1 0.0000 0.985 1.000 0.000
#> SRR1344079 1 0.0000 0.985 1.000 0.000
#> SRR1072602 1 0.0000 0.985 1.000 0.000
#> SRR1421399 2 0.9522 0.444 0.372 0.628
#> SRR1339086 1 0.0000 0.985 1.000 0.000
#> SRR1099881 1 0.0000 0.985 1.000 0.000
#> SRR1384312 1 0.0000 0.985 1.000 0.000
#> SRR1329508 1 0.0000 0.985 1.000 0.000
#> SRR1440200 2 0.0000 0.957 0.000 1.000
#> SRR1397558 2 0.0000 0.957 0.000 1.000
#> SRR1344364 2 0.0000 0.957 0.000 1.000
#> SRR1387787 1 0.0000 0.985 1.000 0.000
#> SRR1378199 1 0.0000 0.985 1.000 0.000
#> SRR1413119 1 0.0000 0.985 1.000 0.000
#> SRR1310497 1 0.0000 0.985 1.000 0.000
#> SRR1356327 1 0.0000 0.985 1.000 0.000
#> SRR1319059 1 0.0000 0.985 1.000 0.000
#> SRR1085378 1 0.0000 0.985 1.000 0.000
#> SRR1379036 1 0.0000 0.985 1.000 0.000
#> SRR1417656 1 0.0000 0.985 1.000 0.000
#> SRR1454225 1 0.0000 0.985 1.000 0.000
#> SRR1455346 1 0.4298 0.891 0.912 0.088
#> SRR1366412 2 0.0000 0.957 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1375371 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1416819 1 0.6095 0.301 0.608 0.000 0.392
#> SRR1351907 2 0.0592 0.936 0.012 0.988 0.000
#> SRR1330371 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1340782 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1094531 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1436262 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1093314 2 0.6280 0.157 0.460 0.540 0.000
#> SRR1435460 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1485587 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1470834 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1442966 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1410979 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1326449 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1367520 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1360321 3 0.0892 0.924 0.020 0.000 0.980
#> SRR1445170 1 0.5098 0.644 0.752 0.248 0.000
#> SRR1440663 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1489839 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1409772 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1092591 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1338402 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1337930 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1401341 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1396901 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1354400 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1416538 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1340762 1 0.6225 0.175 0.568 0.000 0.432
#> SRR1460095 2 0.2165 0.893 0.000 0.936 0.064
#> SRR1071181 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1380436 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1473611 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1074934 3 0.5254 0.671 0.264 0.000 0.736
#> SRR1311731 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1434845 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1472171 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1321483 3 0.4062 0.807 0.164 0.000 0.836
#> SRR1418105 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1090022 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1077728 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1365767 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1489670 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1343136 3 0.4399 0.783 0.188 0.000 0.812
#> SRR1359587 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1465782 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1434460 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1415751 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1359027 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1408303 3 0.2711 0.875 0.088 0.000 0.912
#> SRR1456469 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1436717 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1436904 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1076465 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1433215 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1076046 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1406643 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1499460 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1475147 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1319301 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1486117 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1087680 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1361391 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1365655 3 0.6062 0.417 0.384 0.000 0.616
#> SRR1090457 3 0.0237 0.933 0.004 0.000 0.996
#> SRR1084154 2 0.4555 0.738 0.200 0.800 0.000
#> SRR1380358 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1398430 2 0.4750 0.720 0.216 0.784 0.000
#> SRR1444242 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1440832 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1358803 1 0.0237 0.963 0.996 0.004 0.000
#> SRR1344079 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1072602 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1421399 2 0.4887 0.705 0.228 0.772 0.000
#> SRR1339086 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1384312 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1329508 3 0.2165 0.894 0.064 0.000 0.936
#> SRR1440200 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1344364 2 0.0000 0.946 0.000 1.000 0.000
#> SRR1387787 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1378199 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1413119 3 0.0000 0.935 0.000 0.000 1.000
#> SRR1310497 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1356327 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1319059 1 0.0237 0.963 0.996 0.000 0.004
#> SRR1085378 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1379036 3 0.4555 0.769 0.200 0.000 0.800
#> SRR1417656 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.967 1.000 0.000 0.000
#> SRR1455346 1 0.6095 0.319 0.608 0.392 0.000
#> SRR1366412 2 0.0000 0.946 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1416819 4 0.0336 0.8655 0.008 0.000 0.000 0.992
#> SRR1351907 2 0.0336 0.9556 0.008 0.992 0.000 0.000
#> SRR1330371 3 0.0921 0.9098 0.000 0.000 0.972 0.028
#> SRR1340782 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1094531 3 0.0921 0.9095 0.000 0.000 0.972 0.028
#> SRR1436262 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.0707 0.8688 0.020 0.000 0.000 0.980
#> SRR1435460 4 0.0000 0.8617 0.000 0.000 0.000 1.000
#> SRR1485587 4 0.0817 0.8687 0.024 0.000 0.000 0.976
#> SRR1470834 1 0.0336 0.9518 0.992 0.000 0.000 0.008
#> SRR1442966 4 0.0000 0.8617 0.000 0.000 0.000 1.000
#> SRR1410979 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1360321 3 0.1302 0.8945 0.044 0.000 0.956 0.000
#> SRR1445170 4 0.0707 0.8688 0.020 0.000 0.000 0.980
#> SRR1440663 3 0.0592 0.9131 0.016 0.000 0.984 0.000
#> SRR1489839 1 0.0921 0.9373 0.972 0.000 0.028 0.000
#> SRR1409772 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1092591 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1338402 3 0.0000 0.9160 0.000 0.000 1.000 0.000
#> SRR1337930 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.0336 0.9152 0.000 0.000 0.992 0.008
#> SRR1416538 1 0.0921 0.9373 0.972 0.000 0.028 0.000
#> SRR1340762 1 0.4888 0.2365 0.588 0.000 0.412 0.000
#> SRR1460095 4 0.0188 0.8615 0.000 0.004 0.000 0.996
#> SRR1071181 3 0.0000 0.9160 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1473611 4 0.1557 0.8576 0.056 0.000 0.000 0.944
#> SRR1074934 4 0.0000 0.8617 0.000 0.000 0.000 1.000
#> SRR1311731 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.0921 0.9373 0.972 0.000 0.028 0.000
#> SRR1472171 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.3444 0.7620 0.184 0.000 0.816 0.000
#> SRR1418105 3 0.0000 0.9160 0.000 0.000 1.000 0.000
#> SRR1090022 2 0.0336 0.9576 0.000 0.992 0.000 0.008
#> SRR1077728 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1365767 3 0.1389 0.8978 0.000 0.000 0.952 0.048
#> SRR1489670 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1343136 3 0.3486 0.7573 0.188 0.000 0.812 0.000
#> SRR1359587 3 0.0000 0.9160 0.000 0.000 1.000 0.000
#> SRR1465782 1 0.0188 0.9553 0.996 0.000 0.004 0.000
#> SRR1434460 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1415751 1 0.0469 0.9496 0.988 0.000 0.012 0.000
#> SRR1359027 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.3024 0.8003 0.148 0.000 0.852 0.000
#> SRR1456469 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.0188 0.9158 0.000 0.000 0.996 0.004
#> SRR1076465 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1433215 4 0.4989 0.2001 0.472 0.000 0.000 0.528
#> SRR1076046 1 0.1867 0.8909 0.928 0.000 0.000 0.072
#> SRR1406643 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1499460 3 0.1022 0.9078 0.000 0.000 0.968 0.032
#> SRR1475147 2 0.0188 0.9604 0.000 0.996 0.000 0.004
#> SRR1319301 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1087680 3 0.1022 0.9078 0.000 0.000 0.968 0.032
#> SRR1361391 3 0.0469 0.9144 0.000 0.000 0.988 0.012
#> SRR1365655 3 0.4804 0.4182 0.384 0.000 0.616 0.000
#> SRR1090457 3 0.0592 0.9130 0.016 0.000 0.984 0.000
#> SRR1084154 2 0.2647 0.8135 0.120 0.880 0.000 0.000
#> SRR1380358 4 0.4985 0.2085 0.468 0.000 0.000 0.532
#> SRR1398430 2 0.4194 0.6389 0.228 0.764 0.008 0.000
#> SRR1444242 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1440832 3 0.0921 0.9095 0.000 0.000 0.972 0.028
#> SRR1358803 4 0.1389 0.8610 0.048 0.000 0.000 0.952
#> SRR1344079 4 0.0817 0.8687 0.024 0.000 0.000 0.976
#> SRR1072602 1 0.3219 0.7742 0.836 0.000 0.000 0.164
#> SRR1421399 4 0.4137 0.7100 0.208 0.012 0.000 0.780
#> SRR1339086 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.9160 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.0592 0.9130 0.016 0.000 0.984 0.000
#> SRR1440200 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9633 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.4746 0.4378 0.000 0.632 0.000 0.368
#> SRR1387787 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1378199 1 0.2216 0.8683 0.908 0.000 0.000 0.092
#> SRR1413119 4 0.3486 0.6693 0.000 0.000 0.188 0.812
#> SRR1310497 1 0.0921 0.9373 0.972 0.000 0.028 0.000
#> SRR1356327 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1319059 1 0.1637 0.9062 0.940 0.000 0.060 0.000
#> SRR1085378 1 0.4992 -0.0468 0.524 0.000 0.000 0.476
#> SRR1379036 3 0.3569 0.7472 0.196 0.000 0.804 0.000
#> SRR1417656 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9579 1.000 0.000 0.000 0.000
#> SRR1455346 4 0.4245 0.7922 0.116 0.064 0.000 0.820
#> SRR1366412 2 0.0000 0.9633 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.0794 0.8757 0.972 0.000 0.000 0.000 0.028
#> SRR1375371 2 0.2813 0.6357 0.000 0.832 0.000 0.000 0.168
#> SRR1416819 4 0.4384 0.4929 0.016 0.000 0.000 0.660 0.324
#> SRR1351907 2 0.2395 0.8014 0.012 0.912 0.000 0.036 0.040
#> SRR1330371 3 0.1549 0.8367 0.000 0.000 0.944 0.040 0.016
#> SRR1340782 1 0.0290 0.8826 0.992 0.000 0.000 0.000 0.008
#> SRR1094531 3 0.3550 0.7471 0.000 0.000 0.760 0.004 0.236
#> SRR1436262 1 0.0290 0.8826 0.992 0.000 0.000 0.000 0.008
#> SRR1093314 4 0.1732 0.6876 0.000 0.000 0.000 0.920 0.080
#> SRR1435460 4 0.0963 0.6957 0.000 0.000 0.000 0.964 0.036
#> SRR1485587 4 0.1943 0.6975 0.056 0.000 0.000 0.924 0.020
#> SRR1470834 1 0.3191 0.7713 0.860 0.000 0.004 0.084 0.052
#> SRR1442966 4 0.4276 0.5407 0.000 0.000 0.032 0.724 0.244
#> SRR1410979 2 0.0000 0.9216 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.1197 0.8760 0.000 0.952 0.000 0.000 0.048
#> SRR1367520 1 0.5255 0.2439 0.560 0.000 0.000 0.388 0.052
#> SRR1360321 3 0.1697 0.8363 0.060 0.000 0.932 0.000 0.008
#> SRR1445170 4 0.0880 0.6954 0.000 0.000 0.000 0.968 0.032
#> SRR1440663 3 0.0703 0.8495 0.024 0.000 0.976 0.000 0.000
#> SRR1489839 1 0.0290 0.8826 0.992 0.000 0.000 0.000 0.008
#> SRR1409772 1 0.5399 0.0433 0.496 0.000 0.000 0.448 0.056
#> SRR1092591 1 0.0671 0.8776 0.980 0.000 0.000 0.004 0.016
#> SRR1338402 3 0.0000 0.8467 0.000 0.000 1.000 0.000 0.000
#> SRR1337930 1 0.0000 0.8833 1.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0162 0.8830 0.996 0.000 0.000 0.000 0.004
#> SRR1401341 1 0.0290 0.8821 0.992 0.000 0.000 0.000 0.008
#> SRR1396901 1 0.0162 0.8830 0.996 0.000 0.000 0.000 0.004
#> SRR1354400 3 0.0290 0.8468 0.000 0.000 0.992 0.008 0.000
#> SRR1416538 1 0.0324 0.8822 0.992 0.000 0.004 0.000 0.004
#> SRR1340762 1 0.4557 -0.0269 0.516 0.000 0.476 0.000 0.008
#> SRR1460095 4 0.1082 0.6928 0.000 0.008 0.000 0.964 0.028
#> SRR1071181 3 0.0000 0.8467 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9216 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0162 0.9208 0.000 0.996 0.000 0.000 0.004
#> SRR1473611 4 0.5342 0.5467 0.172 0.000 0.000 0.672 0.156
#> SRR1074934 4 0.1845 0.6965 0.016 0.000 0.000 0.928 0.056
#> SRR1311731 2 0.0000 0.9216 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0404 0.9156 0.000 0.988 0.000 0.000 0.012
#> SRR1429144 1 0.0162 0.8830 0.996 0.000 0.000 0.000 0.004
#> SRR1448203 1 0.0162 0.8830 0.996 0.000 0.000 0.000 0.004
#> SRR1366102 1 0.1357 0.8557 0.948 0.000 0.000 0.048 0.004
#> SRR1434845 1 0.0324 0.8823 0.992 0.000 0.004 0.000 0.004
#> SRR1472171 1 0.0000 0.8833 1.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.2891 0.6057 0.000 0.824 0.000 0.000 0.176
#> SRR1321483 3 0.2561 0.7729 0.144 0.000 0.856 0.000 0.000
#> SRR1418105 3 0.0000 0.8467 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 2 0.0404 0.9130 0.000 0.988 0.000 0.000 0.012
#> SRR1077728 1 0.0609 0.8791 0.980 0.000 0.000 0.000 0.020
#> SRR1365767 3 0.4497 0.6293 0.000 0.000 0.632 0.016 0.352
#> SRR1489670 2 0.0000 0.9216 0.000 1.000 0.000 0.000 0.000
#> SRR1343136 3 0.5752 0.6563 0.192 0.000 0.664 0.020 0.124
#> SRR1359587 3 0.0000 0.8467 0.000 0.000 1.000 0.000 0.000
#> SRR1465782 1 0.2153 0.8386 0.916 0.000 0.000 0.040 0.044
#> SRR1434460 1 0.2677 0.7871 0.872 0.000 0.000 0.112 0.016
#> SRR1415751 1 0.0290 0.8826 0.992 0.000 0.000 0.000 0.008
#> SRR1359027 1 0.0290 0.8826 0.992 0.000 0.000 0.000 0.008
#> SRR1408303 3 0.2753 0.7783 0.136 0.000 0.856 0.000 0.008
#> SRR1456469 2 0.0162 0.9208 0.000 0.996 0.000 0.000 0.004
#> SRR1436717 2 0.0000 0.9216 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0162 0.8830 0.996 0.000 0.000 0.000 0.004
#> SRR1326845 2 0.0000 0.9216 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9216 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0162 0.9208 0.000 0.996 0.000 0.000 0.004
#> SRR1436904 3 0.1282 0.8377 0.000 0.000 0.952 0.044 0.004
#> SRR1076465 2 0.0000 0.9216 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 1 0.4341 0.2271 0.592 0.000 0.000 0.404 0.004
#> SRR1076046 1 0.4734 0.3407 0.604 0.000 0.000 0.372 0.024
#> SRR1406643 2 0.0162 0.9208 0.000 0.996 0.000 0.000 0.004
#> SRR1499460 3 0.2966 0.7913 0.000 0.000 0.816 0.000 0.184
#> SRR1475147 2 0.1121 0.8750 0.000 0.956 0.000 0.000 0.044
#> SRR1319301 1 0.0404 0.8807 0.988 0.000 0.000 0.000 0.012
#> SRR1486117 1 0.1282 0.8617 0.952 0.000 0.000 0.044 0.004
#> SRR1087680 3 0.3074 0.7813 0.000 0.000 0.804 0.000 0.196
#> SRR1361391 3 0.0880 0.8433 0.000 0.000 0.968 0.000 0.032
#> SRR1365655 3 0.4397 0.2789 0.432 0.000 0.564 0.000 0.004
#> SRR1090457 3 0.0703 0.8489 0.024 0.000 0.976 0.000 0.000
#> SRR1084154 2 0.1478 0.7979 0.064 0.936 0.000 0.000 0.000
#> SRR1380358 4 0.4863 0.5095 0.272 0.000 0.000 0.672 0.056
#> SRR1398430 2 0.3534 0.2493 0.256 0.744 0.000 0.000 0.000
#> SRR1444242 1 0.0162 0.8830 0.996 0.000 0.000 0.000 0.004
#> SRR1440832 3 0.3366 0.7484 0.000 0.000 0.768 0.000 0.232
#> SRR1358803 4 0.5699 0.5186 0.128 0.000 0.000 0.608 0.264
#> SRR1344079 4 0.0324 0.6992 0.004 0.000 0.000 0.992 0.004
#> SRR1072602 4 0.5906 0.1720 0.404 0.000 0.000 0.492 0.104
#> SRR1421399 4 0.4254 0.6407 0.080 0.000 0.000 0.772 0.148
#> SRR1339086 1 0.0290 0.8826 0.992 0.000 0.000 0.000 0.008
#> SRR1099881 1 0.0510 0.8807 0.984 0.000 0.000 0.000 0.016
#> SRR1384312 3 0.2520 0.8292 0.012 0.000 0.888 0.004 0.096
#> SRR1329508 3 0.2988 0.8172 0.072 0.000 0.880 0.024 0.024
#> SRR1440200 2 0.0000 0.9216 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0162 0.9208 0.000 0.996 0.000 0.000 0.004
#> SRR1344364 5 0.5596 0.0000 0.000 0.376 0.004 0.068 0.552
#> SRR1387787 1 0.0865 0.8762 0.972 0.000 0.000 0.004 0.024
#> SRR1378199 1 0.4610 0.1969 0.556 0.000 0.000 0.432 0.012
#> SRR1413119 4 0.4878 0.0129 0.000 0.000 0.440 0.536 0.024
#> SRR1310497 1 0.0451 0.8818 0.988 0.000 0.008 0.000 0.004
#> SRR1356327 1 0.0162 0.8830 0.996 0.000 0.000 0.000 0.004
#> SRR1319059 1 0.2573 0.7870 0.880 0.000 0.104 0.000 0.016
#> SRR1085378 1 0.6175 0.1531 0.516 0.000 0.000 0.332 0.152
#> SRR1379036 3 0.3132 0.7368 0.172 0.000 0.820 0.000 0.008
#> SRR1417656 1 0.0290 0.8826 0.992 0.000 0.000 0.000 0.008
#> SRR1454225 1 0.0000 0.8833 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.5987 0.4924 0.164 0.092 0.000 0.676 0.068
#> SRR1366412 2 0.0290 0.9172 0.000 0.992 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
#> SRR1313664 1 0.1010 0.919 0.960 0.000 0.000 0.000 0.004 0.036
#> SRR1375371 2 0.2092 0.840 0.000 0.876 0.000 0.000 0.124 0.000
#> SRR1416819 4 0.4078 0.424 0.008 0.000 0.060 0.804 0.080 0.048
#> SRR1351907 2 0.2941 0.793 0.012 0.848 0.000 0.012 0.004 0.124
#> SRR1330371 3 0.1966 0.730 0.000 0.000 0.924 0.028 0.024 0.024
#> SRR1340782 1 0.0260 0.927 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1094531 3 0.4004 0.254 0.000 0.000 0.620 0.000 0.012 0.368
#> SRR1436262 1 0.0363 0.926 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1093314 4 0.2376 0.501 0.000 0.000 0.000 0.888 0.068 0.044
#> SRR1435460 4 0.3834 0.465 0.000 0.000 0.024 0.792 0.044 0.140
#> SRR1485587 4 0.1605 0.559 0.044 0.000 0.000 0.936 0.016 0.004
#> SRR1470834 1 0.3708 0.689 0.752 0.000 0.008 0.220 0.000 0.020
#> SRR1442966 5 0.7211 0.353 0.000 0.000 0.188 0.272 0.416 0.124
#> SRR1410979 2 0.0146 0.919 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1326449 2 0.5001 0.300 0.000 0.540 0.000 0.000 0.076 0.384
#> SRR1367520 1 0.4622 0.448 0.608 0.000 0.000 0.036 0.008 0.348
#> SRR1360321 3 0.1340 0.748 0.040 0.000 0.948 0.004 0.000 0.008
#> SRR1445170 4 0.3307 0.474 0.000 0.000 0.000 0.808 0.044 0.148
#> SRR1440663 3 0.0291 0.752 0.004 0.000 0.992 0.000 0.000 0.004
#> SRR1489839 1 0.0146 0.927 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1409772 4 0.6322 0.198 0.340 0.000 0.000 0.360 0.008 0.292
#> SRR1092591 1 0.2588 0.852 0.876 0.000 0.000 0.092 0.008 0.024
#> SRR1338402 3 0.0000 0.750 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1337930 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0291 0.926 0.992 0.000 0.000 0.004 0.000 0.004
#> SRR1401341 1 0.1088 0.918 0.960 0.000 0.000 0.024 0.000 0.016
#> SRR1396901 1 0.0146 0.926 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1354400 3 0.1462 0.741 0.000 0.000 0.936 0.056 0.000 0.008
#> SRR1416538 1 0.0291 0.926 0.992 0.000 0.004 0.000 0.000 0.004
#> SRR1340762 3 0.4703 0.235 0.376 0.000 0.584 0.008 0.004 0.028
#> SRR1460095 4 0.4053 0.451 0.000 0.036 0.000 0.780 0.044 0.140
#> SRR1071181 3 0.0000 0.750 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0260 0.918 0.000 0.992 0.000 0.000 0.008 0.000
#> SRR1079973 2 0.0363 0.917 0.000 0.988 0.000 0.000 0.000 0.012
#> SRR1473611 4 0.4999 0.409 0.052 0.000 0.000 0.628 0.024 0.296
#> SRR1074934 4 0.2085 0.530 0.008 0.000 0.000 0.912 0.024 0.056
#> SRR1311731 2 0.0260 0.918 0.000 0.992 0.000 0.000 0.008 0.000
#> SRR1452957 2 0.0632 0.913 0.000 0.976 0.000 0.000 0.000 0.024
#> SRR1429144 1 0.0260 0.927 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1448203 1 0.1341 0.915 0.948 0.000 0.000 0.028 0.000 0.024
#> SRR1366102 1 0.3240 0.797 0.820 0.000 0.000 0.144 0.008 0.028
#> SRR1434845 1 0.0622 0.924 0.980 0.000 0.008 0.000 0.000 0.012
#> SRR1472171 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.4872 0.301 0.000 0.548 0.000 0.000 0.388 0.064
#> SRR1321483 3 0.1910 0.702 0.108 0.000 0.892 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.750 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.0291 0.919 0.000 0.992 0.000 0.000 0.004 0.004
#> SRR1077728 1 0.0790 0.920 0.968 0.000 0.000 0.000 0.000 0.032
#> SRR1365767 6 0.5363 -0.108 0.000 0.000 0.404 0.004 0.096 0.496
#> SRR1489670 2 0.1458 0.893 0.000 0.948 0.000 0.016 0.020 0.016
#> SRR1343136 3 0.5523 0.350 0.140 0.000 0.580 0.004 0.004 0.272
#> SRR1359587 3 0.0000 0.750 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1465782 1 0.3254 0.776 0.804 0.000 0.000 0.016 0.008 0.172
#> SRR1434460 1 0.2263 0.855 0.884 0.000 0.000 0.016 0.000 0.100
#> SRR1415751 1 0.0146 0.927 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1359027 1 0.0458 0.925 0.984 0.000 0.000 0.000 0.000 0.016
#> SRR1408303 3 0.2309 0.715 0.084 0.000 0.888 0.000 0.000 0.028
#> SRR1456469 2 0.0260 0.918 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1436717 2 0.0146 0.919 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1480287 1 0.0146 0.926 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1326845 2 0.0000 0.919 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.919 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0363 0.917 0.000 0.988 0.000 0.000 0.000 0.012
#> SRR1436904 3 0.2006 0.711 0.000 0.000 0.892 0.104 0.000 0.004
#> SRR1076465 2 0.0146 0.919 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1433215 4 0.5000 0.283 0.400 0.000 0.008 0.544 0.004 0.044
#> SRR1076046 4 0.5540 0.331 0.348 0.000 0.000 0.520 0.004 0.128
#> SRR1406643 2 0.0458 0.916 0.000 0.984 0.000 0.000 0.000 0.016
#> SRR1499460 3 0.3630 0.587 0.000 0.000 0.756 0.000 0.032 0.212
#> SRR1475147 2 0.1124 0.900 0.000 0.956 0.000 0.000 0.008 0.036
#> SRR1319301 1 0.1401 0.909 0.948 0.000 0.000 0.028 0.004 0.020
#> SRR1486117 1 0.3221 0.753 0.792 0.000 0.000 0.188 0.000 0.020
#> SRR1087680 3 0.3221 0.619 0.000 0.000 0.792 0.000 0.020 0.188
#> SRR1361391 3 0.1075 0.735 0.000 0.000 0.952 0.000 0.000 0.048
#> SRR1365655 3 0.4070 0.195 0.424 0.000 0.568 0.000 0.004 0.004
#> SRR1090457 3 0.0520 0.753 0.008 0.000 0.984 0.000 0.000 0.008
#> SRR1084154 2 0.1615 0.853 0.064 0.928 0.000 0.000 0.004 0.004
#> SRR1380358 4 0.2959 0.537 0.104 0.000 0.000 0.852 0.008 0.036
#> SRR1398430 2 0.3074 0.645 0.200 0.792 0.000 0.000 0.004 0.004
#> SRR1444242 1 0.0891 0.924 0.968 0.000 0.000 0.008 0.000 0.024
#> SRR1440832 3 0.3774 0.372 0.000 0.000 0.664 0.000 0.008 0.328
#> SRR1358803 6 0.5119 -0.252 0.128 0.000 0.000 0.264 0.000 0.608
#> SRR1344079 4 0.1434 0.536 0.000 0.000 0.000 0.940 0.012 0.048
#> SRR1072602 4 0.5215 0.398 0.096 0.000 0.000 0.568 0.004 0.332
#> SRR1421399 5 0.6656 0.346 0.036 0.004 0.000 0.320 0.436 0.204
#> SRR1339086 1 0.0146 0.927 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1099881 1 0.0603 0.924 0.980 0.000 0.000 0.000 0.004 0.016
#> SRR1384312 3 0.3341 0.617 0.012 0.000 0.776 0.004 0.000 0.208
#> SRR1329508 3 0.3771 0.664 0.024 0.000 0.808 0.120 0.004 0.044
#> SRR1440200 2 0.0260 0.918 0.000 0.992 0.000 0.000 0.008 0.000
#> SRR1397558 2 0.0260 0.918 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1344364 5 0.2307 0.300 0.000 0.048 0.000 0.016 0.904 0.032
#> SRR1387787 1 0.1843 0.884 0.912 0.000 0.000 0.004 0.004 0.080
#> SRR1378199 4 0.5349 0.423 0.256 0.000 0.000 0.596 0.004 0.144
#> SRR1413119 3 0.4116 0.464 0.000 0.000 0.684 0.288 0.012 0.016
#> SRR1310497 1 0.0603 0.921 0.980 0.000 0.016 0.000 0.000 0.004
#> SRR1356327 1 0.0914 0.924 0.968 0.000 0.000 0.016 0.000 0.016
#> SRR1319059 1 0.2932 0.782 0.840 0.000 0.132 0.000 0.004 0.024
#> SRR1085378 1 0.3507 0.735 0.764 0.000 0.000 0.008 0.012 0.216
#> SRR1379036 3 0.2048 0.687 0.120 0.000 0.880 0.000 0.000 0.000
#> SRR1417656 1 0.0146 0.927 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1454225 1 0.0146 0.927 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1455346 4 0.4221 0.479 0.080 0.060 0.000 0.800 0.020 0.040
#> SRR1366412 2 0.0717 0.914 0.000 0.976 0.000 0.000 0.016 0.008
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 17697 rows and 104 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 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.681 0.816 0.926 0.4054 0.621 0.621
#> 3 3 0.591 0.702 0.848 0.4453 0.728 0.562
#> 4 4 0.649 0.722 0.839 0.1246 0.905 0.749
#> 5 5 0.800 0.726 0.889 0.0941 0.957 0.867
#> 6 6 0.815 0.764 0.886 0.0242 0.959 0.859
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
#> SRR1313664 1 0.0000 0.913794 1.000 0.000
#> SRR1375371 2 0.0000 0.922976 0.000 1.000
#> SRR1416819 1 0.3274 0.874778 0.940 0.060
#> SRR1351907 2 0.6438 0.763028 0.164 0.836
#> SRR1330371 1 0.9635 0.404150 0.612 0.388
#> SRR1340782 1 0.0000 0.913794 1.000 0.000
#> SRR1094531 1 0.9970 0.189200 0.532 0.468
#> SRR1436262 1 0.0000 0.913794 1.000 0.000
#> SRR1093314 1 0.6801 0.754596 0.820 0.180
#> SRR1435460 1 0.9635 0.404150 0.612 0.388
#> SRR1485587 1 0.2948 0.881042 0.948 0.052
#> SRR1470834 1 0.0000 0.913794 1.000 0.000
#> SRR1442966 1 0.9635 0.404150 0.612 0.388
#> SRR1410979 2 0.0000 0.922976 0.000 1.000
#> SRR1326449 2 0.0000 0.922976 0.000 1.000
#> SRR1367520 1 0.0000 0.913794 1.000 0.000
#> SRR1360321 1 0.0672 0.911794 0.992 0.008
#> SRR1445170 1 0.6801 0.754596 0.820 0.180
#> SRR1440663 1 0.0672 0.911794 0.992 0.008
#> SRR1489839 1 0.0000 0.913794 1.000 0.000
#> SRR1409772 1 0.0000 0.913794 1.000 0.000
#> SRR1092591 1 0.0000 0.913794 1.000 0.000
#> SRR1338402 1 0.0672 0.911794 0.992 0.008
#> SRR1337930 1 0.0000 0.913794 1.000 0.000
#> SRR1337749 1 0.0000 0.913794 1.000 0.000
#> SRR1401341 1 0.0000 0.913794 1.000 0.000
#> SRR1396901 1 0.0000 0.913794 1.000 0.000
#> SRR1354400 1 0.0672 0.911794 0.992 0.008
#> SRR1416538 1 0.0000 0.913794 1.000 0.000
#> SRR1340762 1 0.0000 0.913794 1.000 0.000
#> SRR1460095 1 0.9635 0.404150 0.612 0.388
#> SRR1071181 1 0.0672 0.911794 0.992 0.008
#> SRR1380436 2 0.0000 0.922976 0.000 1.000
#> SRR1079973 2 0.0000 0.922976 0.000 1.000
#> SRR1473611 1 0.0000 0.913794 1.000 0.000
#> SRR1074934 1 0.3274 0.874778 0.940 0.060
#> SRR1311731 2 0.0000 0.922976 0.000 1.000
#> SRR1452957 2 0.0000 0.922976 0.000 1.000
#> SRR1429144 1 0.0000 0.913794 1.000 0.000
#> SRR1448203 1 0.0000 0.913794 1.000 0.000
#> SRR1366102 1 0.0000 0.913794 1.000 0.000
#> SRR1434845 1 0.0000 0.913794 1.000 0.000
#> SRR1472171 1 0.0000 0.913794 1.000 0.000
#> SRR1441075 2 0.0000 0.922976 0.000 1.000
#> SRR1321483 1 0.0672 0.911794 0.992 0.008
#> SRR1418105 1 0.0672 0.911794 0.992 0.008
#> SRR1090022 2 0.0000 0.922976 0.000 1.000
#> SRR1077728 1 0.0000 0.913794 1.000 0.000
#> SRR1365767 1 0.9970 0.189200 0.532 0.468
#> SRR1489670 2 0.1184 0.912157 0.016 0.984
#> SRR1343136 1 0.0672 0.911794 0.992 0.008
#> SRR1359587 1 0.0672 0.911794 0.992 0.008
#> SRR1465782 1 0.0000 0.913794 1.000 0.000
#> SRR1434460 1 0.0000 0.913794 1.000 0.000
#> SRR1415751 1 0.0000 0.913794 1.000 0.000
#> SRR1359027 1 0.0000 0.913794 1.000 0.000
#> SRR1408303 1 0.0672 0.911794 0.992 0.008
#> SRR1456469 2 0.0000 0.922976 0.000 1.000
#> SRR1436717 2 0.0000 0.922976 0.000 1.000
#> SRR1480287 1 0.0000 0.913794 1.000 0.000
#> SRR1326845 2 0.0000 0.922976 0.000 1.000
#> SRR1070133 2 0.0000 0.922976 0.000 1.000
#> SRR1387745 2 0.0000 0.922976 0.000 1.000
#> SRR1436904 1 0.0672 0.911794 0.992 0.008
#> SRR1076465 2 0.0000 0.922976 0.000 1.000
#> SRR1433215 1 0.1414 0.903107 0.980 0.020
#> SRR1076046 1 0.0000 0.913794 1.000 0.000
#> SRR1406643 2 0.0000 0.922976 0.000 1.000
#> SRR1499460 1 0.9970 0.189200 0.532 0.468
#> SRR1475147 2 0.0000 0.922976 0.000 1.000
#> SRR1319301 1 0.0000 0.913794 1.000 0.000
#> SRR1486117 1 0.0000 0.913794 1.000 0.000
#> SRR1087680 1 0.9970 0.189200 0.532 0.468
#> SRR1361391 1 0.9970 0.189200 0.532 0.468
#> SRR1365655 1 0.0376 0.912844 0.996 0.004
#> SRR1090457 1 0.0672 0.911794 0.992 0.008
#> SRR1084154 2 0.9427 0.415515 0.360 0.640
#> SRR1380358 1 0.0000 0.913794 1.000 0.000
#> SRR1398430 2 0.9552 0.373102 0.376 0.624
#> SRR1444242 1 0.0000 0.913794 1.000 0.000
#> SRR1440832 1 0.9977 0.175776 0.528 0.472
#> SRR1358803 1 0.6438 0.773284 0.836 0.164
#> SRR1344079 1 0.3879 0.861563 0.924 0.076
#> SRR1072602 1 0.0000 0.913794 1.000 0.000
#> SRR1421399 1 0.9552 0.431259 0.624 0.376
#> SRR1339086 1 0.0000 0.913794 1.000 0.000
#> SRR1099881 1 0.0000 0.913794 1.000 0.000
#> SRR1384312 1 0.0672 0.911794 0.992 0.008
#> SRR1329508 1 0.0672 0.911794 0.992 0.008
#> SRR1440200 2 0.0000 0.922976 0.000 1.000
#> SRR1397558 2 0.0000 0.922976 0.000 1.000
#> SRR1344364 2 0.8555 0.585267 0.280 0.720
#> SRR1387787 1 0.0000 0.913794 1.000 0.000
#> SRR1378199 1 0.0000 0.913794 1.000 0.000
#> SRR1413119 1 0.8813 0.577757 0.700 0.300
#> SRR1310497 1 0.0000 0.913794 1.000 0.000
#> SRR1356327 1 0.0000 0.913794 1.000 0.000
#> SRR1319059 1 0.0000 0.913794 1.000 0.000
#> SRR1085378 1 0.0672 0.910844 0.992 0.008
#> SRR1379036 1 0.0672 0.911794 0.992 0.008
#> SRR1417656 1 0.0000 0.913794 1.000 0.000
#> SRR1454225 1 0.0000 0.913794 1.000 0.000
#> SRR1455346 2 0.9996 -0.000314 0.488 0.512
#> SRR1366412 2 0.1184 0.912157 0.016 0.984
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1375371 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1416819 1 0.6286 -0.4089 0.536 0.000 0.464
#> SRR1351907 2 0.7107 0.6494 0.092 0.712 0.196
#> SRR1330371 3 0.5174 0.6030 0.128 0.048 0.824
#> SRR1340782 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1094531 3 0.0000 0.5168 0.000 0.000 1.000
#> SRR1436262 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1093314 3 0.8280 0.5495 0.404 0.080 0.516
#> SRR1435460 3 0.5174 0.6030 0.128 0.048 0.824
#> SRR1485587 1 0.5835 0.0966 0.660 0.000 0.340
#> SRR1470834 1 0.0237 0.8949 0.996 0.000 0.004
#> SRR1442966 3 0.5174 0.6030 0.128 0.048 0.824
#> SRR1410979 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1326449 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1367520 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1360321 3 0.6286 0.6055 0.464 0.000 0.536
#> SRR1445170 3 0.8280 0.5495 0.404 0.080 0.516
#> SRR1440663 3 0.6286 0.6055 0.464 0.000 0.536
#> SRR1489839 1 0.1753 0.8464 0.952 0.000 0.048
#> SRR1409772 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1092591 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1338402 3 0.6280 0.6081 0.460 0.000 0.540
#> SRR1337930 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1401341 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1396901 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1354400 3 0.6280 0.6081 0.460 0.000 0.540
#> SRR1416538 1 0.1860 0.8418 0.948 0.000 0.052
#> SRR1340762 1 0.6267 -0.4103 0.548 0.000 0.452
#> SRR1460095 3 0.5375 0.5996 0.128 0.056 0.816
#> SRR1071181 3 0.6286 0.6055 0.464 0.000 0.536
#> SRR1380436 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1473611 1 0.0237 0.8947 0.996 0.000 0.004
#> SRR1074934 3 0.6308 0.5028 0.492 0.000 0.508
#> SRR1311731 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1434845 1 0.4291 0.6238 0.820 0.000 0.180
#> SRR1472171 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1321483 3 0.6295 0.5903 0.472 0.000 0.528
#> SRR1418105 3 0.6286 0.6055 0.464 0.000 0.536
#> SRR1090022 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1077728 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1365767 3 0.0000 0.5168 0.000 0.000 1.000
#> SRR1489670 2 0.3091 0.8489 0.016 0.912 0.072
#> SRR1343136 3 0.6286 0.6055 0.464 0.000 0.536
#> SRR1359587 3 0.6286 0.6055 0.464 0.000 0.536
#> SRR1465782 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1434460 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1415751 1 0.0237 0.8950 0.996 0.000 0.004
#> SRR1359027 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1408303 3 0.6286 0.6055 0.464 0.000 0.536
#> SRR1456469 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1436717 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1436904 3 0.6280 0.6081 0.460 0.000 0.540
#> SRR1076465 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1433215 1 0.3340 0.7459 0.880 0.000 0.120
#> SRR1076046 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1406643 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1499460 3 0.0000 0.5168 0.000 0.000 1.000
#> SRR1475147 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1319301 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1486117 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1087680 3 0.0000 0.5168 0.000 0.000 1.000
#> SRR1361391 3 0.0000 0.5168 0.000 0.000 1.000
#> SRR1365655 1 0.5988 -0.0611 0.632 0.000 0.368
#> SRR1090457 3 0.6286 0.6055 0.464 0.000 0.536
#> SRR1084154 2 0.9106 0.2515 0.156 0.508 0.336
#> SRR1380358 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1398430 2 0.9256 0.2021 0.168 0.488 0.344
#> SRR1444242 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1440832 3 0.0237 0.5130 0.000 0.004 0.996
#> SRR1358803 3 0.8316 0.5327 0.424 0.080 0.496
#> SRR1344079 1 0.6917 -0.1042 0.608 0.024 0.368
#> SRR1072602 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1421399 3 0.8760 0.4790 0.176 0.240 0.584
#> SRR1339086 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1384312 3 0.6286 0.6055 0.464 0.000 0.536
#> SRR1329508 3 0.6291 0.5984 0.468 0.000 0.532
#> SRR1440200 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.8980 0.000 1.000 0.000
#> SRR1344364 2 0.8693 0.3388 0.108 0.496 0.396
#> SRR1387787 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1378199 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1413119 3 0.4121 0.6356 0.168 0.000 0.832
#> SRR1310497 1 0.4291 0.6238 0.820 0.000 0.180
#> SRR1356327 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1319059 1 0.5835 0.0784 0.660 0.000 0.340
#> SRR1085378 1 0.0747 0.8834 0.984 0.000 0.016
#> SRR1379036 3 0.6299 0.5817 0.476 0.000 0.524
#> SRR1417656 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.8986 1.000 0.000 0.000
#> SRR1455346 2 0.9930 -0.1639 0.280 0.380 0.340
#> SRR1366412 2 0.3091 0.8489 0.016 0.912 0.072
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1416819 4 0.6510 0.4964 0.380 0.000 0.080 0.540
#> SRR1351907 2 0.7329 0.4462 0.012 0.548 0.136 0.304
#> SRR1330371 4 0.5159 0.1041 0.012 0.000 0.364 0.624
#> SRR1340782 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1094531 3 0.3311 0.9495 0.000 0.000 0.828 0.172
#> SRR1436262 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.6764 0.4594 0.260 0.000 0.144 0.596
#> SRR1435460 4 0.5110 0.1024 0.012 0.000 0.352 0.636
#> SRR1485587 1 0.6426 -0.0278 0.568 0.000 0.080 0.352
#> SRR1470834 1 0.0921 0.8960 0.972 0.000 0.000 0.028
#> SRR1442966 4 0.5159 0.1041 0.012 0.000 0.364 0.624
#> SRR1410979 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1360321 4 0.4477 0.6741 0.312 0.000 0.000 0.688
#> SRR1445170 4 0.6764 0.4594 0.260 0.000 0.144 0.596
#> SRR1440663 4 0.4477 0.6741 0.312 0.000 0.000 0.688
#> SRR1489839 1 0.2216 0.8203 0.908 0.000 0.000 0.092
#> SRR1409772 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1092591 1 0.0188 0.9190 0.996 0.000 0.000 0.004
#> SRR1338402 4 0.4632 0.6714 0.308 0.000 0.004 0.688
#> SRR1337930 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1354400 4 0.4632 0.6714 0.308 0.000 0.004 0.688
#> SRR1416538 1 0.2345 0.8097 0.900 0.000 0.000 0.100
#> SRR1340762 4 0.4843 0.5617 0.396 0.000 0.000 0.604
#> SRR1460095 4 0.5302 0.1096 0.012 0.004 0.356 0.628
#> SRR1071181 4 0.4477 0.6741 0.312 0.000 0.000 0.688
#> SRR1380436 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1473611 1 0.0188 0.9192 0.996 0.000 0.004 0.000
#> SRR1074934 4 0.6351 0.5692 0.332 0.000 0.080 0.588
#> SRR1311731 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.4331 0.4325 0.712 0.000 0.000 0.288
#> SRR1472171 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1321483 4 0.4522 0.6715 0.320 0.000 0.000 0.680
#> SRR1418105 4 0.4477 0.6741 0.312 0.000 0.000 0.688
#> SRR1090022 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1077728 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1365767 3 0.4304 0.8368 0.000 0.000 0.716 0.284
#> SRR1489670 2 0.5152 0.7101 0.012 0.748 0.036 0.204
#> SRR1343136 4 0.4477 0.6741 0.312 0.000 0.000 0.688
#> SRR1359587 4 0.4477 0.6741 0.312 0.000 0.000 0.688
#> SRR1465782 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1434460 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1415751 1 0.0707 0.9050 0.980 0.000 0.000 0.020
#> SRR1359027 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1408303 4 0.4477 0.6741 0.312 0.000 0.000 0.688
#> SRR1456469 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1436904 4 0.4632 0.6714 0.308 0.000 0.004 0.688
#> SRR1076465 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1433215 1 0.3591 0.6974 0.824 0.000 0.008 0.168
#> SRR1076046 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1406643 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1499460 3 0.3123 0.9515 0.000 0.000 0.844 0.156
#> SRR1475147 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1319301 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1087680 3 0.3123 0.9515 0.000 0.000 0.844 0.156
#> SRR1361391 3 0.3688 0.9283 0.000 0.000 0.792 0.208
#> SRR1365655 4 0.5000 0.3294 0.496 0.000 0.000 0.504
#> SRR1090457 4 0.4477 0.6741 0.312 0.000 0.000 0.688
#> SRR1084154 4 0.8181 -0.1415 0.044 0.344 0.140 0.472
#> SRR1380358 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1398430 4 0.8265 -0.1028 0.044 0.324 0.156 0.476
#> SRR1444242 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1440832 3 0.3257 0.9482 0.000 0.004 0.844 0.152
#> SRR1358803 4 0.6897 0.4752 0.284 0.000 0.144 0.572
#> SRR1344079 1 0.6882 -0.2206 0.500 0.000 0.108 0.392
#> SRR1072602 1 0.0188 0.9192 0.996 0.000 0.000 0.004
#> SRR1421399 4 0.6255 0.2407 0.060 0.076 0.136 0.728
#> SRR1339086 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1384312 4 0.4477 0.6741 0.312 0.000 0.000 0.688
#> SRR1329508 4 0.4500 0.6731 0.316 0.000 0.000 0.684
#> SRR1440200 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9265 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.8296 0.0323 0.012 0.340 0.320 0.328
#> SRR1387787 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1378199 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1413119 4 0.6681 0.2303 0.120 0.000 0.292 0.588
#> SRR1310497 1 0.4304 0.4429 0.716 0.000 0.000 0.284
#> SRR1356327 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1319059 1 0.4992 -0.2771 0.524 0.000 0.000 0.476
#> SRR1085378 1 0.0779 0.9051 0.980 0.000 0.004 0.016
#> SRR1379036 4 0.4543 0.6689 0.324 0.000 0.000 0.676
#> SRR1417656 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9225 1.000 0.000 0.000 0.000
#> SRR1455346 4 0.9146 0.0755 0.156 0.232 0.148 0.464
#> SRR1366412 2 0.5152 0.7101 0.012 0.748 0.036 0.204
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1416819 3 0.6183 0.24619 0.276 0.000 0.544 0.000 0.180
#> SRR1351907 5 0.3752 0.47224 0.000 0.292 0.000 0.000 0.708
#> SRR1330371 3 0.6548 -0.08200 0.000 0.000 0.420 0.200 0.380
#> SRR1340782 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1094531 4 0.0963 0.92304 0.000 0.000 0.036 0.964 0.000
#> SRR1436262 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 3 0.6691 -0.08861 0.240 0.000 0.400 0.000 0.360
#> SRR1435460 3 0.6539 -0.05749 0.000 0.000 0.432 0.200 0.368
#> SRR1485587 1 0.6085 0.19857 0.556 0.000 0.280 0.000 0.164
#> SRR1470834 1 0.1478 0.88061 0.936 0.000 0.064 0.000 0.000
#> SRR1442966 3 0.6548 -0.08200 0.000 0.000 0.420 0.200 0.380
#> SRR1410979 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 1 0.0404 0.92163 0.988 0.000 0.012 0.000 0.000
#> SRR1360321 3 0.0000 0.70284 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 3 0.6691 -0.08861 0.240 0.000 0.400 0.000 0.360
#> SRR1440663 3 0.0000 0.70284 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 1 0.2929 0.74689 0.820 0.000 0.180 0.000 0.000
#> SRR1409772 1 0.0404 0.92163 0.988 0.000 0.012 0.000 0.000
#> SRR1092591 1 0.0290 0.92259 0.992 0.000 0.008 0.000 0.000
#> SRR1338402 3 0.0162 0.70168 0.000 0.000 0.996 0.004 0.000
#> SRR1337930 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0290 0.70019 0.000 0.000 0.992 0.008 0.000
#> SRR1416538 1 0.3039 0.73126 0.808 0.000 0.192 0.000 0.000
#> SRR1340762 3 0.1792 0.64035 0.084 0.000 0.916 0.000 0.000
#> SRR1460095 3 0.6653 -0.09141 0.000 0.004 0.420 0.192 0.384
#> SRR1071181 3 0.0000 0.70284 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 1 0.0566 0.92035 0.984 0.000 0.012 0.000 0.004
#> SRR1074934 3 0.5941 0.31041 0.228 0.000 0.592 0.000 0.180
#> SRR1311731 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1434845 1 0.4297 0.11726 0.528 0.000 0.472 0.000 0.000
#> SRR1472171 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0290 0.70035 0.008 0.000 0.992 0.000 0.000
#> SRR1418105 3 0.0000 0.70284 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1077728 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1365767 4 0.3321 0.76845 0.000 0.000 0.136 0.832 0.032
#> SRR1489670 2 0.4242 0.26280 0.000 0.572 0.000 0.000 0.428
#> SRR1343136 3 0.0000 0.70284 0.000 0.000 1.000 0.000 0.000
#> SRR1359587 3 0.0000 0.70284 0.000 0.000 1.000 0.000 0.000
#> SRR1465782 1 0.0404 0.92163 0.988 0.000 0.012 0.000 0.000
#> SRR1434460 1 0.0404 0.92163 0.988 0.000 0.012 0.000 0.000
#> SRR1415751 1 0.0880 0.90423 0.968 0.000 0.032 0.000 0.000
#> SRR1359027 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.70284 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0290 0.70019 0.000 0.000 0.992 0.008 0.000
#> SRR1076465 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 1 0.3759 0.72944 0.808 0.000 0.136 0.000 0.056
#> SRR1076046 1 0.0404 0.92163 0.988 0.000 0.012 0.000 0.000
#> SRR1406643 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 4 0.0404 0.92565 0.000 0.000 0.012 0.988 0.000
#> SRR1475147 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0290 0.92274 0.992 0.000 0.008 0.000 0.000
#> SRR1087680 4 0.0404 0.92565 0.000 0.000 0.012 0.988 0.000
#> SRR1361391 4 0.1851 0.88743 0.000 0.000 0.088 0.912 0.000
#> SRR1365655 3 0.3274 0.50122 0.220 0.000 0.780 0.000 0.000
#> SRR1090457 3 0.0000 0.70284 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 5 0.5305 0.70342 0.032 0.088 0.160 0.000 0.720
#> SRR1380358 1 0.0404 0.92163 0.988 0.000 0.012 0.000 0.000
#> SRR1398430 5 0.5026 0.70456 0.032 0.068 0.160 0.000 0.740
#> SRR1444242 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1440832 4 0.0566 0.92377 0.000 0.004 0.012 0.984 0.000
#> SRR1358803 3 0.6743 -0.07182 0.264 0.000 0.396 0.000 0.340
#> SRR1344079 1 0.6475 -0.00359 0.484 0.000 0.304 0.000 0.212
#> SRR1072602 1 0.0609 0.91786 0.980 0.000 0.020 0.000 0.000
#> SRR1421399 5 0.6249 0.22049 0.048 0.048 0.412 0.000 0.492
#> SRR1339086 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.70284 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.0162 0.70198 0.004 0.000 0.996 0.000 0.000
#> SRR1440200 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.95308 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 5 0.0794 0.49924 0.000 0.000 0.000 0.028 0.972
#> SRR1387787 1 0.0404 0.92163 0.988 0.000 0.012 0.000 0.000
#> SRR1378199 1 0.0404 0.92163 0.988 0.000 0.012 0.000 0.000
#> SRR1413119 3 0.5026 0.38563 0.000 0.000 0.656 0.280 0.064
#> SRR1310497 1 0.4291 0.14328 0.536 0.000 0.464 0.000 0.000
#> SRR1356327 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1319059 3 0.3480 0.46524 0.248 0.000 0.752 0.000 0.000
#> SRR1085378 1 0.1012 0.90934 0.968 0.000 0.020 0.000 0.012
#> SRR1379036 3 0.0404 0.69800 0.012 0.000 0.988 0.000 0.000
#> SRR1417656 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.92423 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 5 0.5162 0.59113 0.148 0.000 0.160 0.000 0.692
#> SRR1366412 2 0.4242 0.26280 0.000 0.572 0.000 0.000 0.428
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1313664 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1416819 4 0.6071 0.3646 0.268 0.000 0.348 0.384 0.000 0.000
#> SRR1351907 4 0.4454 -0.0524 0.000 0.224 0.000 0.692 0.000 0.084
#> SRR1330371 4 0.7091 0.4033 0.000 0.000 0.180 0.472 0.188 0.160
#> SRR1340782 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.0632 0.8967 0.000 0.000 0.024 0.000 0.976 0.000
#> SRR1436262 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.5379 0.5081 0.208 0.000 0.156 0.624 0.000 0.012
#> SRR1435460 4 0.7257 0.3810 0.000 0.000 0.216 0.436 0.188 0.160
#> SRR1485587 1 0.5268 0.0858 0.552 0.000 0.116 0.332 0.000 0.000
#> SRR1470834 1 0.1471 0.8721 0.932 0.000 0.064 0.004 0.000 0.000
#> SRR1442966 4 0.7132 0.3994 0.000 0.000 0.188 0.464 0.188 0.160
#> SRR1410979 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1367520 1 0.0363 0.9178 0.988 0.000 0.012 0.000 0.000 0.000
#> SRR1360321 3 0.0000 0.9113 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 4 0.5379 0.5081 0.208 0.000 0.156 0.624 0.000 0.012
#> SRR1440663 3 0.0000 0.9113 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 1 0.2631 0.7289 0.820 0.000 0.180 0.000 0.000 0.000
#> SRR1409772 1 0.0363 0.9178 0.988 0.000 0.012 0.000 0.000 0.000
#> SRR1092591 1 0.0405 0.9177 0.988 0.000 0.004 0.008 0.000 0.000
#> SRR1338402 3 0.0146 0.9094 0.000 0.000 0.996 0.000 0.004 0.000
#> SRR1337930 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0260 0.9069 0.000 0.000 0.992 0.000 0.008 0.000
#> SRR1416538 1 0.2730 0.7118 0.808 0.000 0.192 0.000 0.000 0.000
#> SRR1340762 3 0.1610 0.8056 0.084 0.000 0.916 0.000 0.000 0.000
#> SRR1460095 4 0.7048 0.4066 0.000 0.000 0.180 0.480 0.180 0.160
#> SRR1071181 3 0.0000 0.9113 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1473611 1 0.0508 0.9166 0.984 0.000 0.012 0.004 0.000 0.000
#> SRR1074934 4 0.5970 0.3525 0.224 0.000 0.380 0.396 0.000 0.000
#> SRR1311731 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0146 0.9193 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1434845 1 0.3860 0.1313 0.528 0.000 0.472 0.000 0.000 0.000
#> SRR1472171 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1321483 3 0.0260 0.9056 0.008 0.000 0.992 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.9113 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.0146 0.9416 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1077728 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1365767 5 0.3000 0.7000 0.000 0.000 0.124 0.004 0.840 0.032
#> SRR1489670 2 0.4469 0.1955 0.000 0.504 0.000 0.468 0.000 0.028
#> SRR1343136 3 0.0000 0.9113 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1359587 3 0.0000 0.9113 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1465782 1 0.0363 0.9178 0.988 0.000 0.012 0.000 0.000 0.000
#> SRR1434460 1 0.0363 0.9178 0.988 0.000 0.012 0.000 0.000 0.000
#> SRR1415751 1 0.0790 0.8995 0.968 0.000 0.032 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.9113 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1456469 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436904 3 0.0260 0.9069 0.000 0.000 0.992 0.000 0.008 0.000
#> SRR1076465 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 1 0.3566 0.7065 0.800 0.000 0.096 0.104 0.000 0.000
#> SRR1076046 1 0.0363 0.9178 0.988 0.000 0.012 0.000 0.000 0.000
#> SRR1406643 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1499460 5 0.0000 0.8995 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1475147 2 0.0146 0.9416 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1319301 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0405 0.9183 0.988 0.000 0.008 0.004 0.000 0.000
#> SRR1087680 5 0.0000 0.8995 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1361391 5 0.1501 0.8468 0.000 0.000 0.076 0.000 0.924 0.000
#> SRR1365655 3 0.2941 0.5762 0.220 0.000 0.780 0.000 0.000 0.000
#> SRR1090457 3 0.0000 0.9113 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.2290 0.2139 0.004 0.020 0.000 0.892 0.000 0.084
#> SRR1380358 1 0.0508 0.9164 0.984 0.000 0.012 0.004 0.000 0.000
#> SRR1398430 4 0.1806 0.2263 0.004 0.000 0.000 0.908 0.000 0.088
#> SRR1444242 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.0260 0.8960 0.000 0.000 0.000 0.000 0.992 0.008
#> SRR1358803 4 0.5186 0.4924 0.232 0.000 0.156 0.612 0.000 0.000
#> SRR1344079 1 0.5680 -0.2341 0.456 0.000 0.136 0.404 0.000 0.004
#> SRR1072602 1 0.0547 0.9138 0.980 0.000 0.020 0.000 0.000 0.000
#> SRR1421399 4 0.4041 0.4504 0.020 0.000 0.172 0.764 0.000 0.044
#> SRR1339086 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.9113 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.0146 0.9090 0.004 0.000 0.996 0.000 0.000 0.000
#> SRR1440200 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9447 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1344364 6 0.0260 0.0000 0.000 0.000 0.000 0.008 0.000 0.992
#> SRR1387787 1 0.0363 0.9178 0.988 0.000 0.012 0.000 0.000 0.000
#> SRR1378199 1 0.0363 0.9178 0.988 0.000 0.012 0.000 0.000 0.000
#> SRR1413119 3 0.5932 0.1836 0.000 0.000 0.552 0.132 0.284 0.032
#> SRR1310497 1 0.3854 0.1589 0.536 0.000 0.464 0.000 0.000 0.000
#> SRR1356327 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1319059 3 0.3126 0.5234 0.248 0.000 0.752 0.000 0.000 0.000
#> SRR1085378 1 0.0914 0.9059 0.968 0.000 0.016 0.016 0.000 0.000
#> SRR1379036 3 0.0363 0.9016 0.012 0.000 0.988 0.000 0.000 0.000
#> SRR1417656 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9205 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.3552 0.3145 0.116 0.000 0.000 0.800 0.000 0.084
#> SRR1366412 2 0.4469 0.1955 0.000 0.504 0.000 0.468 0.000 0.028
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 17697 rows and 104 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 1.000 0.990 0.995 0.3624 0.642 0.642
#> 3 3 1.000 0.954 0.973 0.7462 0.714 0.558
#> 4 4 0.863 0.869 0.933 0.1274 0.886 0.701
#> 5 5 0.823 0.820 0.872 0.0666 0.955 0.843
#> 6 6 0.809 0.780 0.845 0.0634 0.904 0.634
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
#> SRR1313664 1 0.000 0.995 1.00 0.00
#> SRR1375371 2 0.000 0.996 0.00 1.00
#> SRR1416819 1 0.000 0.995 1.00 0.00
#> SRR1351907 2 0.000 0.996 0.00 1.00
#> SRR1330371 1 0.000 0.995 1.00 0.00
#> SRR1340782 1 0.000 0.995 1.00 0.00
#> SRR1094531 1 0.000 0.995 1.00 0.00
#> SRR1436262 1 0.000 0.995 1.00 0.00
#> SRR1093314 1 0.000 0.995 1.00 0.00
#> SRR1435460 1 0.000 0.995 1.00 0.00
#> SRR1485587 1 0.000 0.995 1.00 0.00
#> SRR1470834 1 0.000 0.995 1.00 0.00
#> SRR1442966 1 0.000 0.995 1.00 0.00
#> SRR1410979 2 0.000 0.996 0.00 1.00
#> SRR1326449 2 0.000 0.996 0.00 1.00
#> SRR1367520 1 0.000 0.995 1.00 0.00
#> SRR1360321 1 0.000 0.995 1.00 0.00
#> SRR1445170 1 0.000 0.995 1.00 0.00
#> SRR1440663 1 0.000 0.995 1.00 0.00
#> SRR1489839 1 0.000 0.995 1.00 0.00
#> SRR1409772 1 0.000 0.995 1.00 0.00
#> SRR1092591 1 0.000 0.995 1.00 0.00
#> SRR1338402 1 0.000 0.995 1.00 0.00
#> SRR1337930 1 0.000 0.995 1.00 0.00
#> SRR1337749 1 0.000 0.995 1.00 0.00
#> SRR1401341 1 0.000 0.995 1.00 0.00
#> SRR1396901 1 0.000 0.995 1.00 0.00
#> SRR1354400 1 0.000 0.995 1.00 0.00
#> SRR1416538 1 0.000 0.995 1.00 0.00
#> SRR1340762 1 0.000 0.995 1.00 0.00
#> SRR1460095 1 0.722 0.753 0.80 0.20
#> SRR1071181 1 0.000 0.995 1.00 0.00
#> SRR1380436 2 0.000 0.996 0.00 1.00
#> SRR1079973 2 0.000 0.996 0.00 1.00
#> SRR1473611 1 0.000 0.995 1.00 0.00
#> SRR1074934 1 0.000 0.995 1.00 0.00
#> SRR1311731 2 0.000 0.996 0.00 1.00
#> SRR1452957 2 0.000 0.996 0.00 1.00
#> SRR1429144 1 0.000 0.995 1.00 0.00
#> SRR1448203 1 0.000 0.995 1.00 0.00
#> SRR1366102 1 0.000 0.995 1.00 0.00
#> SRR1434845 1 0.000 0.995 1.00 0.00
#> SRR1472171 1 0.000 0.995 1.00 0.00
#> SRR1441075 2 0.000 0.996 0.00 1.00
#> SRR1321483 1 0.000 0.995 1.00 0.00
#> SRR1418105 1 0.000 0.995 1.00 0.00
#> SRR1090022 2 0.000 0.996 0.00 1.00
#> SRR1077728 1 0.000 0.995 1.00 0.00
#> SRR1365767 1 0.000 0.995 1.00 0.00
#> SRR1489670 2 0.000 0.996 0.00 1.00
#> SRR1343136 1 0.000 0.995 1.00 0.00
#> SRR1359587 1 0.000 0.995 1.00 0.00
#> SRR1465782 1 0.000 0.995 1.00 0.00
#> SRR1434460 1 0.000 0.995 1.00 0.00
#> SRR1415751 1 0.000 0.995 1.00 0.00
#> SRR1359027 1 0.000 0.995 1.00 0.00
#> SRR1408303 1 0.000 0.995 1.00 0.00
#> SRR1456469 2 0.000 0.996 0.00 1.00
#> SRR1436717 2 0.000 0.996 0.00 1.00
#> SRR1480287 1 0.000 0.995 1.00 0.00
#> SRR1326845 2 0.000 0.996 0.00 1.00
#> SRR1070133 2 0.000 0.996 0.00 1.00
#> SRR1387745 2 0.000 0.996 0.00 1.00
#> SRR1436904 1 0.000 0.995 1.00 0.00
#> SRR1076465 2 0.000 0.996 0.00 1.00
#> SRR1433215 1 0.000 0.995 1.00 0.00
#> SRR1076046 1 0.000 0.995 1.00 0.00
#> SRR1406643 2 0.000 0.996 0.00 1.00
#> SRR1499460 1 0.000 0.995 1.00 0.00
#> SRR1475147 2 0.000 0.996 0.00 1.00
#> SRR1319301 1 0.000 0.995 1.00 0.00
#> SRR1486117 1 0.000 0.995 1.00 0.00
#> SRR1087680 1 0.000 0.995 1.00 0.00
#> SRR1361391 1 0.000 0.995 1.00 0.00
#> SRR1365655 1 0.000 0.995 1.00 0.00
#> SRR1090457 1 0.000 0.995 1.00 0.00
#> SRR1084154 1 0.722 0.753 0.80 0.20
#> SRR1380358 1 0.000 0.995 1.00 0.00
#> SRR1398430 1 0.000 0.995 1.00 0.00
#> SRR1444242 1 0.000 0.995 1.00 0.00
#> SRR1440832 2 0.000 0.996 0.00 1.00
#> SRR1358803 1 0.000 0.995 1.00 0.00
#> SRR1344079 1 0.000 0.995 1.00 0.00
#> SRR1072602 1 0.000 0.995 1.00 0.00
#> SRR1421399 1 0.000 0.995 1.00 0.00
#> SRR1339086 1 0.000 0.995 1.00 0.00
#> SRR1099881 1 0.000 0.995 1.00 0.00
#> SRR1384312 1 0.000 0.995 1.00 0.00
#> SRR1329508 1 0.000 0.995 1.00 0.00
#> SRR1440200 2 0.000 0.996 0.00 1.00
#> SRR1397558 2 0.000 0.996 0.00 1.00
#> SRR1344364 2 0.402 0.912 0.08 0.92
#> SRR1387787 1 0.000 0.995 1.00 0.00
#> SRR1378199 1 0.000 0.995 1.00 0.00
#> SRR1413119 1 0.000 0.995 1.00 0.00
#> SRR1310497 1 0.000 0.995 1.00 0.00
#> SRR1356327 1 0.000 0.995 1.00 0.00
#> SRR1319059 1 0.000 0.995 1.00 0.00
#> SRR1085378 1 0.000 0.995 1.00 0.00
#> SRR1379036 1 0.000 0.995 1.00 0.00
#> SRR1417656 1 0.000 0.995 1.00 0.00
#> SRR1454225 1 0.000 0.995 1.00 0.00
#> SRR1455346 1 0.000 0.995 1.00 0.00
#> SRR1366412 2 0.000 0.996 0.00 1.00
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1375371 2 0.0000 0.987 0.000 1.000 0.000
#> SRR1416819 3 0.1411 0.982 0.036 0.000 0.964
#> SRR1351907 2 0.1031 0.985 0.000 0.976 0.024
#> SRR1330371 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1340782 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1094531 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1436262 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1093314 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1435460 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1485587 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1470834 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1442966 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1410979 2 0.0000 0.987 0.000 1.000 0.000
#> SRR1326449 2 0.1163 0.984 0.000 0.972 0.028
#> SRR1367520 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1360321 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1445170 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1440663 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1489839 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1409772 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1092591 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1338402 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1337930 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1401341 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1396901 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1354400 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1416538 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1340762 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1460095 3 0.5536 0.748 0.024 0.200 0.776
#> SRR1071181 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1380436 2 0.0000 0.987 0.000 1.000 0.000
#> SRR1079973 2 0.1163 0.984 0.000 0.972 0.028
#> SRR1473611 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1074934 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1311731 2 0.0000 0.987 0.000 1.000 0.000
#> SRR1452957 2 0.1163 0.984 0.000 0.972 0.028
#> SRR1429144 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1434845 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1472171 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.987 0.000 1.000 0.000
#> SRR1321483 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1418105 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1090022 2 0.1031 0.985 0.000 0.976 0.024
#> SRR1077728 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1365767 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1489670 2 0.0000 0.987 0.000 1.000 0.000
#> SRR1343136 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1359587 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1465782 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1434460 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1415751 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1359027 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1408303 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1456469 2 0.1163 0.984 0.000 0.972 0.028
#> SRR1436717 2 0.0000 0.987 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1326845 2 0.0424 0.987 0.000 0.992 0.008
#> SRR1070133 2 0.0000 0.987 0.000 1.000 0.000
#> SRR1387745 2 0.1163 0.984 0.000 0.972 0.028
#> SRR1436904 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1076465 2 0.0000 0.987 0.000 1.000 0.000
#> SRR1433215 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1076046 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1406643 2 0.1163 0.984 0.000 0.972 0.028
#> SRR1499460 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1475147 2 0.1163 0.984 0.000 0.972 0.028
#> SRR1319301 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1486117 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1087680 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1361391 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1365655 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1090457 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1084154 1 0.4842 0.701 0.776 0.224 0.000
#> SRR1380358 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1398430 1 0.6045 0.368 0.620 0.000 0.380
#> SRR1444242 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1440832 3 0.0000 0.957 0.000 0.000 1.000
#> SRR1358803 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1344079 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1072602 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1421399 1 0.6260 0.163 0.552 0.000 0.448
#> SRR1339086 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1384312 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1329508 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1440200 2 0.0000 0.987 0.000 1.000 0.000
#> SRR1397558 2 0.0424 0.987 0.000 0.992 0.008
#> SRR1344364 2 0.3116 0.876 0.000 0.892 0.108
#> SRR1387787 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1378199 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1413119 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1310497 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1356327 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1319059 1 0.6045 0.373 0.620 0.000 0.380
#> SRR1085378 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1379036 3 0.1163 0.991 0.028 0.000 0.972
#> SRR1417656 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1455346 1 0.0000 0.970 1.000 0.000 0.000
#> SRR1366412 2 0.0000 0.987 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.9804 0.000 1.000 0.000 0.000
#> SRR1416819 4 0.4967 0.2147 0.000 0.000 0.452 0.548
#> SRR1351907 2 0.2760 0.8881 0.000 0.872 0.000 0.128
#> SRR1330371 4 0.3764 0.5846 0.000 0.000 0.216 0.784
#> SRR1340782 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1094531 3 0.4500 0.6105 0.000 0.000 0.684 0.316
#> SRR1436262 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.3539 0.7895 0.176 0.000 0.004 0.820
#> SRR1435460 4 0.3764 0.5845 0.000 0.000 0.216 0.784
#> SRR1485587 1 0.1489 0.9357 0.952 0.000 0.004 0.044
#> SRR1470834 1 0.0376 0.9776 0.992 0.000 0.004 0.004
#> SRR1442966 4 0.2973 0.6720 0.000 0.000 0.144 0.856
#> SRR1410979 2 0.0000 0.9804 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.1389 0.9715 0.000 0.952 0.000 0.048
#> SRR1367520 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1360321 3 0.0000 0.8423 0.000 0.000 1.000 0.000
#> SRR1445170 4 0.3539 0.7895 0.176 0.000 0.004 0.820
#> SRR1440663 3 0.0000 0.8423 0.000 0.000 1.000 0.000
#> SRR1489839 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1409772 1 0.0188 0.9808 0.996 0.000 0.000 0.004
#> SRR1092591 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1338402 3 0.0188 0.8411 0.000 0.000 0.996 0.004
#> SRR1337930 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.0188 0.8411 0.000 0.000 0.996 0.004
#> SRR1416538 1 0.1305 0.9440 0.960 0.000 0.036 0.004
#> SRR1340762 3 0.0188 0.8394 0.000 0.000 0.996 0.004
#> SRR1460095 4 0.1474 0.7314 0.000 0.000 0.052 0.948
#> SRR1071181 3 0.0000 0.8423 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.9804 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.1389 0.9715 0.000 0.952 0.000 0.048
#> SRR1473611 1 0.0188 0.9808 0.996 0.000 0.000 0.004
#> SRR1074934 3 0.4961 0.0639 0.000 0.000 0.552 0.448
#> SRR1311731 2 0.0000 0.9804 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.1389 0.9715 0.000 0.952 0.000 0.048
#> SRR1429144 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.3710 0.7335 0.804 0.000 0.192 0.004
#> SRR1472171 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9804 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.0000 0.8423 0.000 0.000 1.000 0.000
#> SRR1418105 3 0.0000 0.8423 0.000 0.000 1.000 0.000
#> SRR1090022 2 0.0817 0.9773 0.000 0.976 0.000 0.024
#> SRR1077728 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1365767 3 0.4746 0.5272 0.000 0.000 0.632 0.368
#> SRR1489670 2 0.0000 0.9804 0.000 1.000 0.000 0.000
#> SRR1343136 3 0.0000 0.8423 0.000 0.000 1.000 0.000
#> SRR1359587 3 0.0188 0.8411 0.000 0.000 0.996 0.004
#> SRR1465782 1 0.0188 0.9808 0.996 0.000 0.000 0.004
#> SRR1434460 1 0.0188 0.9808 0.996 0.000 0.000 0.004
#> SRR1415751 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.8423 0.000 0.000 1.000 0.000
#> SRR1456469 2 0.1389 0.9715 0.000 0.952 0.000 0.048
#> SRR1436717 2 0.0000 0.9804 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0469 0.9793 0.000 0.988 0.000 0.012
#> SRR1070133 2 0.0188 0.9800 0.000 0.996 0.000 0.004
#> SRR1387745 2 0.1389 0.9715 0.000 0.952 0.000 0.048
#> SRR1436904 3 0.0000 0.8423 0.000 0.000 1.000 0.000
#> SRR1076465 2 0.0000 0.9804 0.000 1.000 0.000 0.000
#> SRR1433215 1 0.0376 0.9776 0.992 0.000 0.004 0.004
#> SRR1076046 1 0.0188 0.9808 0.996 0.000 0.000 0.004
#> SRR1406643 2 0.1389 0.9715 0.000 0.952 0.000 0.048
#> SRR1499460 3 0.4500 0.6105 0.000 0.000 0.684 0.316
#> SRR1475147 2 0.1302 0.9721 0.000 0.956 0.000 0.044
#> SRR1319301 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1087680 3 0.4500 0.6105 0.000 0.000 0.684 0.316
#> SRR1361391 3 0.4500 0.6105 0.000 0.000 0.684 0.316
#> SRR1365655 3 0.0188 0.8394 0.000 0.000 0.996 0.004
#> SRR1090457 3 0.0000 0.8423 0.000 0.000 1.000 0.000
#> SRR1084154 4 0.4665 0.7630 0.088 0.104 0.004 0.804
#> SRR1380358 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1398430 4 0.3497 0.7980 0.124 0.000 0.024 0.852
#> SRR1444242 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1440832 3 0.4830 0.5020 0.000 0.000 0.608 0.392
#> SRR1358803 4 0.4155 0.7350 0.240 0.000 0.004 0.756
#> SRR1344079 4 0.4053 0.7475 0.228 0.000 0.004 0.768
#> SRR1072602 1 0.0376 0.9776 0.992 0.000 0.004 0.004
#> SRR1421399 4 0.3384 0.7972 0.116 0.000 0.024 0.860
#> SRR1339086 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0188 0.8411 0.000 0.000 0.996 0.004
#> SRR1329508 3 0.0000 0.8423 0.000 0.000 1.000 0.000
#> SRR1440200 2 0.0000 0.9804 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0469 0.9793 0.000 0.988 0.000 0.012
#> SRR1344364 4 0.1716 0.7343 0.000 0.064 0.000 0.936
#> SRR1387787 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1378199 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1413119 3 0.4500 0.6105 0.000 0.000 0.684 0.316
#> SRR1310497 1 0.4283 0.6346 0.740 0.000 0.256 0.004
#> SRR1356327 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1319059 3 0.5050 0.2080 0.408 0.000 0.588 0.004
#> SRR1085378 1 0.0188 0.9808 0.996 0.000 0.000 0.004
#> SRR1379036 3 0.0000 0.8423 0.000 0.000 1.000 0.000
#> SRR1417656 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9829 1.000 0.000 0.000 0.000
#> SRR1455346 4 0.3668 0.7820 0.188 0.000 0.004 0.808
#> SRR1366412 2 0.0000 0.9804 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.2074 0.8789 0.896 0.000 0.000 0.000 0.104
#> SRR1375371 2 0.0162 0.9333 0.000 0.996 0.000 0.000 0.004
#> SRR1416819 4 0.6210 0.2725 0.000 0.000 0.360 0.492 0.148
#> SRR1351907 2 0.5405 0.6043 0.000 0.640 0.000 0.256 0.104
#> SRR1330371 5 0.5701 0.4734 0.000 0.000 0.124 0.272 0.604
#> SRR1340782 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1094531 5 0.4620 0.8919 0.000 0.000 0.392 0.016 0.592
#> SRR1436262 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1093314 4 0.1828 0.8021 0.032 0.000 0.004 0.936 0.028
#> SRR1435460 4 0.5435 0.4560 0.000 0.000 0.152 0.660 0.188
#> SRR1485587 1 0.5949 0.6388 0.588 0.000 0.000 0.172 0.240
#> SRR1470834 1 0.3424 0.8311 0.760 0.000 0.000 0.000 0.240
#> SRR1442966 4 0.5158 0.4844 0.000 0.000 0.080 0.656 0.264
#> SRR1410979 2 0.0404 0.9346 0.000 0.988 0.000 0.012 0.000
#> SRR1326449 2 0.3099 0.9130 0.000 0.848 0.000 0.028 0.124
#> SRR1367520 1 0.3194 0.8635 0.832 0.000 0.000 0.020 0.148
#> SRR1360321 3 0.0000 0.8525 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 4 0.1828 0.8021 0.032 0.000 0.004 0.936 0.028
#> SRR1440663 3 0.0000 0.8525 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 1 0.3333 0.8426 0.788 0.000 0.000 0.004 0.208
#> SRR1409772 1 0.3912 0.8274 0.752 0.000 0.000 0.020 0.228
#> SRR1092591 1 0.1197 0.8882 0.952 0.000 0.000 0.000 0.048
#> SRR1338402 3 0.0162 0.8508 0.000 0.000 0.996 0.004 0.000
#> SRR1337930 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1337749 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1401341 1 0.1410 0.8866 0.940 0.000 0.000 0.000 0.060
#> SRR1396901 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1354400 3 0.0162 0.8508 0.000 0.000 0.996 0.004 0.000
#> SRR1416538 1 0.3764 0.8349 0.772 0.000 0.008 0.008 0.212
#> SRR1340762 3 0.3209 0.6899 0.000 0.000 0.812 0.008 0.180
#> SRR1460095 4 0.1831 0.7636 0.000 0.000 0.004 0.920 0.076
#> SRR1071181 3 0.0000 0.8525 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0162 0.9333 0.000 0.996 0.000 0.000 0.004
#> SRR1079973 2 0.3099 0.9130 0.000 0.848 0.000 0.028 0.124
#> SRR1473611 1 0.3810 0.8485 0.792 0.000 0.000 0.040 0.168
#> SRR1074934 4 0.6064 0.1463 0.000 0.000 0.420 0.460 0.120
#> SRR1311731 2 0.0000 0.9339 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.3099 0.9130 0.000 0.848 0.000 0.028 0.124
#> SRR1429144 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1448203 1 0.0000 0.8890 1.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1434845 1 0.6823 0.2794 0.448 0.000 0.320 0.008 0.224
#> SRR1472171 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1441075 2 0.0162 0.9333 0.000 0.996 0.000 0.000 0.004
#> SRR1321483 3 0.0000 0.8525 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0000 0.8525 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 2 0.1357 0.9300 0.000 0.948 0.000 0.004 0.048
#> SRR1077728 1 0.1197 0.8880 0.952 0.000 0.000 0.000 0.048
#> SRR1365767 5 0.5203 0.8660 0.000 0.000 0.332 0.060 0.608
#> SRR1489670 2 0.1082 0.9225 0.000 0.964 0.000 0.008 0.028
#> SRR1343136 3 0.1270 0.8328 0.000 0.000 0.948 0.000 0.052
#> SRR1359587 3 0.0162 0.8508 0.000 0.000 0.996 0.004 0.000
#> SRR1465782 1 0.3942 0.8234 0.748 0.000 0.000 0.020 0.232
#> SRR1434460 1 0.3999 0.8190 0.740 0.000 0.000 0.020 0.240
#> SRR1415751 1 0.3333 0.8426 0.788 0.000 0.000 0.004 0.208
#> SRR1359027 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1408303 3 0.1121 0.8370 0.000 0.000 0.956 0.000 0.044
#> SRR1456469 2 0.3099 0.9130 0.000 0.848 0.000 0.028 0.124
#> SRR1436717 2 0.0000 0.9339 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1326845 2 0.2236 0.9266 0.000 0.908 0.000 0.024 0.068
#> SRR1070133 2 0.1469 0.9318 0.000 0.948 0.000 0.016 0.036
#> SRR1387745 2 0.3099 0.9130 0.000 0.848 0.000 0.028 0.124
#> SRR1436904 3 0.0162 0.8508 0.000 0.000 0.996 0.004 0.000
#> SRR1076465 2 0.0162 0.9333 0.000 0.996 0.000 0.000 0.004
#> SRR1433215 1 0.4701 0.7904 0.704 0.000 0.000 0.060 0.236
#> SRR1076046 1 0.3999 0.8190 0.740 0.000 0.000 0.020 0.240
#> SRR1406643 2 0.3099 0.9130 0.000 0.848 0.000 0.028 0.124
#> SRR1499460 5 0.4620 0.8919 0.000 0.000 0.392 0.016 0.592
#> SRR1475147 2 0.1956 0.9255 0.000 0.916 0.000 0.008 0.076
#> SRR1319301 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1486117 1 0.0290 0.8887 0.992 0.000 0.000 0.000 0.008
#> SRR1087680 5 0.4620 0.8919 0.000 0.000 0.392 0.016 0.592
#> SRR1361391 5 0.4620 0.8919 0.000 0.000 0.392 0.016 0.592
#> SRR1365655 3 0.2929 0.7248 0.000 0.000 0.840 0.008 0.152
#> SRR1090457 3 0.0000 0.8525 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 4 0.1799 0.7879 0.012 0.028 0.000 0.940 0.020
#> SRR1380358 1 0.1608 0.8858 0.928 0.000 0.000 0.000 0.072
#> SRR1398430 4 0.1646 0.7985 0.032 0.000 0.004 0.944 0.020
#> SRR1444242 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1440832 5 0.4949 0.8342 0.000 0.000 0.288 0.056 0.656
#> SRR1358803 4 0.2075 0.7949 0.040 0.000 0.004 0.924 0.032
#> SRR1344079 4 0.1901 0.7978 0.040 0.000 0.004 0.932 0.024
#> SRR1072602 1 0.4169 0.8137 0.732 0.000 0.000 0.028 0.240
#> SRR1421399 4 0.1560 0.7984 0.028 0.000 0.004 0.948 0.020
#> SRR1339086 1 0.0000 0.8890 1.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.8890 1.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.8525 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.1410 0.8272 0.000 0.000 0.940 0.000 0.060
#> SRR1440200 2 0.0000 0.9339 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.2236 0.9266 0.000 0.908 0.000 0.024 0.068
#> SRR1344364 4 0.4194 0.6709 0.000 0.132 0.000 0.780 0.088
#> SRR1387787 1 0.3236 0.8620 0.828 0.000 0.000 0.020 0.152
#> SRR1378199 1 0.3278 0.8609 0.824 0.000 0.000 0.020 0.156
#> SRR1413119 5 0.4717 0.8848 0.000 0.000 0.396 0.020 0.584
#> SRR1310497 3 0.6858 0.0416 0.340 0.000 0.428 0.008 0.224
#> SRR1356327 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1319059 3 0.4771 0.5637 0.060 0.000 0.724 0.008 0.208
#> SRR1085378 1 0.3399 0.8564 0.812 0.000 0.000 0.020 0.168
#> SRR1379036 3 0.1410 0.8272 0.000 0.000 0.940 0.000 0.060
#> SRR1417656 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1454225 1 0.0290 0.8884 0.992 0.000 0.000 0.000 0.008
#> SRR1455346 4 0.1630 0.8018 0.036 0.000 0.004 0.944 0.016
#> SRR1366412 2 0.0566 0.9320 0.000 0.984 0.000 0.004 0.012
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1313664 1 0.3843 -0.308 0.548 0.000 0.000 0.000 0.000 0.452
#> SRR1375371 2 0.0291 0.895 0.000 0.992 0.000 0.000 0.004 0.004
#> SRR1416819 6 0.5863 -0.278 0.000 0.000 0.140 0.376 0.012 0.472
#> SRR1351907 2 0.6318 0.237 0.000 0.436 0.000 0.404 0.076 0.084
#> SRR1330371 5 0.3921 0.747 0.000 0.000 0.024 0.164 0.776 0.036
#> SRR1340782 1 0.0146 0.875 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1094531 5 0.2135 0.938 0.000 0.000 0.128 0.000 0.872 0.000
#> SRR1436262 1 0.0000 0.875 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.2695 0.833 0.004 0.000 0.000 0.844 0.008 0.144
#> SRR1435460 4 0.5327 0.586 0.000 0.000 0.040 0.640 0.244 0.076
#> SRR1485587 6 0.4259 0.646 0.128 0.000 0.000 0.104 0.012 0.756
#> SRR1470834 6 0.3606 0.741 0.264 0.000 0.000 0.008 0.004 0.724
#> SRR1442966 4 0.4506 0.541 0.000 0.000 0.008 0.652 0.300 0.040
#> SRR1410979 2 0.0000 0.897 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.3900 0.863 0.000 0.788 0.000 0.012 0.084 0.116
#> SRR1367520 6 0.3937 0.600 0.424 0.000 0.000 0.000 0.004 0.572
#> SRR1360321 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 4 0.2695 0.833 0.004 0.000 0.000 0.844 0.008 0.144
#> SRR1440663 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 6 0.3838 0.526 0.448 0.000 0.000 0.000 0.000 0.552
#> SRR1409772 6 0.3565 0.741 0.276 0.000 0.000 0.004 0.004 0.716
#> SRR1092591 1 0.3713 0.385 0.704 0.000 0.000 0.008 0.004 0.284
#> SRR1338402 3 0.0458 0.968 0.000 0.000 0.984 0.000 0.000 0.016
#> SRR1337930 1 0.0146 0.875 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1337749 1 0.0000 0.875 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.3774 -0.143 0.592 0.000 0.000 0.000 0.000 0.408
#> SRR1396901 1 0.0146 0.875 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1354400 3 0.0547 0.966 0.000 0.000 0.980 0.000 0.000 0.020
#> SRR1416538 6 0.3912 0.691 0.340 0.000 0.012 0.000 0.000 0.648
#> SRR1340762 3 0.1444 0.912 0.000 0.000 0.928 0.000 0.000 0.072
#> SRR1460095 4 0.1391 0.828 0.000 0.000 0.000 0.944 0.040 0.016
#> SRR1071181 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0146 0.896 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1079973 2 0.3900 0.863 0.000 0.788 0.000 0.012 0.084 0.116
#> SRR1473611 6 0.4014 0.716 0.268 0.000 0.000 0.016 0.012 0.704
#> SRR1074934 6 0.6165 -0.335 0.000 0.000 0.196 0.372 0.012 0.420
#> SRR1311731 2 0.0000 0.897 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.3900 0.863 0.000 0.788 0.000 0.012 0.084 0.116
#> SRR1429144 1 0.0146 0.875 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1448203 1 0.1387 0.824 0.932 0.000 0.000 0.000 0.000 0.068
#> SRR1366102 1 0.0146 0.873 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1434845 6 0.4952 0.628 0.168 0.000 0.180 0.000 0.000 0.652
#> SRR1472171 1 0.0146 0.875 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1441075 2 0.0146 0.896 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1321483 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.2001 0.892 0.000 0.912 0.000 0.000 0.048 0.040
#> SRR1077728 1 0.3428 0.323 0.696 0.000 0.000 0.000 0.000 0.304
#> SRR1365767 5 0.2504 0.921 0.000 0.000 0.088 0.028 0.880 0.004
#> SRR1489670 2 0.3269 0.789 0.000 0.832 0.000 0.120 0.020 0.028
#> SRR1343136 3 0.0260 0.974 0.000 0.000 0.992 0.000 0.000 0.008
#> SRR1359587 3 0.0260 0.973 0.000 0.000 0.992 0.000 0.000 0.008
#> SRR1465782 6 0.3468 0.738 0.284 0.000 0.000 0.000 0.004 0.712
#> SRR1434460 6 0.3426 0.741 0.276 0.000 0.000 0.000 0.004 0.720
#> SRR1415751 6 0.3756 0.621 0.400 0.000 0.000 0.000 0.000 0.600
#> SRR1359027 1 0.0146 0.875 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1408303 3 0.0260 0.974 0.000 0.000 0.992 0.000 0.000 0.008
#> SRR1456469 2 0.3900 0.863 0.000 0.788 0.000 0.012 0.084 0.116
#> SRR1436717 2 0.0000 0.897 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0146 0.875 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1326845 2 0.2314 0.890 0.000 0.900 0.000 0.008 0.036 0.056
#> SRR1070133 2 0.1138 0.896 0.000 0.960 0.000 0.004 0.012 0.024
#> SRR1387745 2 0.3900 0.863 0.000 0.788 0.000 0.012 0.084 0.116
#> SRR1436904 3 0.0547 0.966 0.000 0.000 0.980 0.000 0.000 0.020
#> SRR1076465 2 0.0146 0.896 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1433215 6 0.3650 0.723 0.216 0.000 0.000 0.024 0.004 0.756
#> SRR1076046 6 0.3288 0.741 0.276 0.000 0.000 0.000 0.000 0.724
#> SRR1406643 2 0.3900 0.863 0.000 0.788 0.000 0.012 0.084 0.116
#> SRR1499460 5 0.2135 0.938 0.000 0.000 0.128 0.000 0.872 0.000
#> SRR1475147 2 0.3165 0.877 0.000 0.844 0.000 0.008 0.076 0.072
#> SRR1319301 1 0.0146 0.875 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1486117 1 0.1700 0.808 0.916 0.000 0.000 0.000 0.004 0.080
#> SRR1087680 5 0.2135 0.938 0.000 0.000 0.128 0.000 0.872 0.000
#> SRR1361391 5 0.2278 0.937 0.000 0.000 0.128 0.000 0.868 0.004
#> SRR1365655 3 0.1141 0.935 0.000 0.000 0.948 0.000 0.000 0.052
#> SRR1090457 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.1624 0.837 0.000 0.012 0.000 0.936 0.008 0.044
#> SRR1380358 6 0.4226 0.428 0.484 0.000 0.000 0.008 0.004 0.504
#> SRR1398430 4 0.1390 0.836 0.004 0.000 0.000 0.948 0.016 0.032
#> SRR1444242 1 0.0146 0.875 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1440832 5 0.1779 0.901 0.000 0.000 0.064 0.016 0.920 0.000
#> SRR1358803 4 0.3000 0.822 0.004 0.000 0.000 0.824 0.016 0.156
#> SRR1344079 4 0.2695 0.831 0.004 0.000 0.000 0.844 0.008 0.144
#> SRR1072602 6 0.3533 0.734 0.236 0.000 0.000 0.012 0.004 0.748
#> SRR1421399 4 0.0767 0.842 0.004 0.000 0.000 0.976 0.008 0.012
#> SRR1339086 1 0.1387 0.824 0.932 0.000 0.000 0.000 0.000 0.068
#> SRR1099881 1 0.1387 0.824 0.932 0.000 0.000 0.000 0.000 0.068
#> SRR1384312 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.0363 0.973 0.000 0.000 0.988 0.000 0.000 0.012
#> SRR1440200 2 0.0146 0.896 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1397558 2 0.2314 0.890 0.000 0.900 0.000 0.008 0.036 0.056
#> SRR1344364 4 0.4291 0.692 0.000 0.132 0.000 0.768 0.044 0.056
#> SRR1387787 6 0.3843 0.543 0.452 0.000 0.000 0.000 0.000 0.548
#> SRR1378199 6 0.3907 0.625 0.408 0.000 0.000 0.000 0.004 0.588
#> SRR1413119 5 0.3580 0.915 0.000 0.000 0.128 0.024 0.812 0.036
#> SRR1310497 6 0.4809 0.572 0.108 0.000 0.240 0.000 0.000 0.652
#> SRR1356327 1 0.0000 0.875 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1319059 3 0.1814 0.878 0.000 0.000 0.900 0.000 0.000 0.100
#> SRR1085378 6 0.3940 0.704 0.336 0.000 0.000 0.004 0.008 0.652
#> SRR1379036 3 0.0260 0.974 0.000 0.000 0.992 0.000 0.000 0.008
#> SRR1417656 1 0.0146 0.875 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1454225 1 0.0000 0.875 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.1411 0.846 0.004 0.000 0.000 0.936 0.000 0.060
#> SRR1366412 2 0.1405 0.881 0.000 0.948 0.000 0.024 0.004 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["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 17697 rows and 104 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 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 1.000 0.987 0.995 0.4805 0.522 0.522
#> 3 3 1.000 0.970 0.988 0.3715 0.736 0.532
#> 4 4 0.924 0.918 0.958 0.0833 0.913 0.755
#> 5 5 0.980 0.930 0.974 0.0447 0.962 0.868
#> 6 6 0.887 0.802 0.918 0.0700 0.931 0.738
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 5
#> attr(,"optional")
#> [1] 2 3 4
There is also optional best \(k\) = 2 3 4 that is worth to check.
Following 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
#> SRR1313664 1 0.0000 0.992 1.000 0.000
#> SRR1375371 2 0.0000 0.999 0.000 1.000
#> SRR1416819 1 0.0000 0.992 1.000 0.000
#> SRR1351907 2 0.0000 0.999 0.000 1.000
#> SRR1330371 2 0.0000 0.999 0.000 1.000
#> SRR1340782 1 0.0000 0.992 1.000 0.000
#> SRR1094531 2 0.0000 0.999 0.000 1.000
#> SRR1436262 1 0.0000 0.992 1.000 0.000
#> SRR1093314 2 0.0000 0.999 0.000 1.000
#> SRR1435460 2 0.0938 0.987 0.012 0.988
#> SRR1485587 1 0.0000 0.992 1.000 0.000
#> SRR1470834 1 0.0000 0.992 1.000 0.000
#> SRR1442966 2 0.0000 0.999 0.000 1.000
#> SRR1410979 2 0.0000 0.999 0.000 1.000
#> SRR1326449 2 0.0000 0.999 0.000 1.000
#> SRR1367520 1 0.0000 0.992 1.000 0.000
#> SRR1360321 1 0.0000 0.992 1.000 0.000
#> SRR1445170 2 0.2043 0.967 0.032 0.968
#> SRR1440663 1 0.0000 0.992 1.000 0.000
#> SRR1489839 1 0.0000 0.992 1.000 0.000
#> SRR1409772 1 0.0000 0.992 1.000 0.000
#> SRR1092591 1 0.0000 0.992 1.000 0.000
#> SRR1338402 1 0.0000 0.992 1.000 0.000
#> SRR1337930 1 0.0000 0.992 1.000 0.000
#> SRR1337749 1 0.0000 0.992 1.000 0.000
#> SRR1401341 1 0.0000 0.992 1.000 0.000
#> SRR1396901 1 0.0000 0.992 1.000 0.000
#> SRR1354400 1 0.0000 0.992 1.000 0.000
#> SRR1416538 1 0.0000 0.992 1.000 0.000
#> SRR1340762 1 0.0000 0.992 1.000 0.000
#> SRR1460095 2 0.0000 0.999 0.000 1.000
#> SRR1071181 1 0.0000 0.992 1.000 0.000
#> SRR1380436 2 0.0000 0.999 0.000 1.000
#> SRR1079973 2 0.0000 0.999 0.000 1.000
#> SRR1473611 1 0.0000 0.992 1.000 0.000
#> SRR1074934 1 0.0000 0.992 1.000 0.000
#> SRR1311731 2 0.0000 0.999 0.000 1.000
#> SRR1452957 2 0.0000 0.999 0.000 1.000
#> SRR1429144 1 0.0000 0.992 1.000 0.000
#> SRR1448203 1 0.0000 0.992 1.000 0.000
#> SRR1366102 1 0.0000 0.992 1.000 0.000
#> SRR1434845 1 0.0000 0.992 1.000 0.000
#> SRR1472171 1 0.0000 0.992 1.000 0.000
#> SRR1441075 2 0.0000 0.999 0.000 1.000
#> SRR1321483 1 0.0000 0.992 1.000 0.000
#> SRR1418105 1 0.0000 0.992 1.000 0.000
#> SRR1090022 2 0.0000 0.999 0.000 1.000
#> SRR1077728 1 0.0000 0.992 1.000 0.000
#> SRR1365767 2 0.0000 0.999 0.000 1.000
#> SRR1489670 2 0.0000 0.999 0.000 1.000
#> SRR1343136 1 0.0000 0.992 1.000 0.000
#> SRR1359587 1 0.0000 0.992 1.000 0.000
#> SRR1465782 1 0.0000 0.992 1.000 0.000
#> SRR1434460 1 0.0000 0.992 1.000 0.000
#> SRR1415751 1 0.0000 0.992 1.000 0.000
#> SRR1359027 1 0.0000 0.992 1.000 0.000
#> SRR1408303 1 0.0000 0.992 1.000 0.000
#> SRR1456469 2 0.0000 0.999 0.000 1.000
#> SRR1436717 2 0.0000 0.999 0.000 1.000
#> SRR1480287 1 0.0000 0.992 1.000 0.000
#> SRR1326845 2 0.0000 0.999 0.000 1.000
#> SRR1070133 2 0.0000 0.999 0.000 1.000
#> SRR1387745 2 0.0000 0.999 0.000 1.000
#> SRR1436904 1 0.0000 0.992 1.000 0.000
#> SRR1076465 2 0.0000 0.999 0.000 1.000
#> SRR1433215 1 0.0000 0.992 1.000 0.000
#> SRR1076046 1 0.0000 0.992 1.000 0.000
#> SRR1406643 2 0.0000 0.999 0.000 1.000
#> SRR1499460 2 0.0000 0.999 0.000 1.000
#> SRR1475147 2 0.0000 0.999 0.000 1.000
#> SRR1319301 1 0.0000 0.992 1.000 0.000
#> SRR1486117 1 0.0000 0.992 1.000 0.000
#> SRR1087680 2 0.0000 0.999 0.000 1.000
#> SRR1361391 2 0.0000 0.999 0.000 1.000
#> SRR1365655 1 0.0000 0.992 1.000 0.000
#> SRR1090457 1 0.0000 0.992 1.000 0.000
#> SRR1084154 2 0.0000 0.999 0.000 1.000
#> SRR1380358 1 0.0000 0.992 1.000 0.000
#> SRR1398430 2 0.0000 0.999 0.000 1.000
#> SRR1444242 1 0.0000 0.992 1.000 0.000
#> SRR1440832 2 0.0000 0.999 0.000 1.000
#> SRR1358803 1 0.9732 0.321 0.596 0.404
#> SRR1344079 1 0.4939 0.875 0.892 0.108
#> SRR1072602 1 0.0000 0.992 1.000 0.000
#> SRR1421399 2 0.0000 0.999 0.000 1.000
#> SRR1339086 1 0.0000 0.992 1.000 0.000
#> SRR1099881 1 0.0000 0.992 1.000 0.000
#> SRR1384312 1 0.0000 0.992 1.000 0.000
#> SRR1329508 1 0.0000 0.992 1.000 0.000
#> SRR1440200 2 0.0000 0.999 0.000 1.000
#> SRR1397558 2 0.0000 0.999 0.000 1.000
#> SRR1344364 2 0.0000 0.999 0.000 1.000
#> SRR1387787 1 0.0000 0.992 1.000 0.000
#> SRR1378199 1 0.0000 0.992 1.000 0.000
#> SRR1413119 2 0.0000 0.999 0.000 1.000
#> SRR1310497 1 0.0000 0.992 1.000 0.000
#> SRR1356327 1 0.0000 0.992 1.000 0.000
#> SRR1319059 1 0.0000 0.992 1.000 0.000
#> SRR1085378 1 0.0000 0.992 1.000 0.000
#> SRR1379036 1 0.0000 0.992 1.000 0.000
#> SRR1417656 1 0.0000 0.992 1.000 0.000
#> SRR1454225 1 0.0000 0.992 1.000 0.000
#> SRR1455346 2 0.0000 0.999 0.000 1.000
#> SRR1366412 2 0.0000 0.999 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.000 0.986 1.000 0.000 0.000
#> SRR1375371 2 0.000 0.987 0.000 1.000 0.000
#> SRR1416819 3 0.000 0.987 0.000 0.000 1.000
#> SRR1351907 2 0.000 0.987 0.000 1.000 0.000
#> SRR1330371 3 0.245 0.914 0.000 0.076 0.924
#> SRR1340782 1 0.000 0.986 1.000 0.000 0.000
#> SRR1094531 3 0.000 0.987 0.000 0.000 1.000
#> SRR1436262 1 0.000 0.986 1.000 0.000 0.000
#> SRR1093314 2 0.455 0.743 0.200 0.800 0.000
#> SRR1435460 3 0.000 0.987 0.000 0.000 1.000
#> SRR1485587 1 0.000 0.986 1.000 0.000 0.000
#> SRR1470834 1 0.000 0.986 1.000 0.000 0.000
#> SRR1442966 3 0.348 0.853 0.000 0.128 0.872
#> SRR1410979 2 0.000 0.987 0.000 1.000 0.000
#> SRR1326449 2 0.000 0.987 0.000 1.000 0.000
#> SRR1367520 1 0.000 0.986 1.000 0.000 0.000
#> SRR1360321 3 0.000 0.987 0.000 0.000 1.000
#> SRR1445170 1 0.619 0.276 0.580 0.420 0.000
#> SRR1440663 3 0.000 0.987 0.000 0.000 1.000
#> SRR1489839 1 0.000 0.986 1.000 0.000 0.000
#> SRR1409772 1 0.000 0.986 1.000 0.000 0.000
#> SRR1092591 1 0.000 0.986 1.000 0.000 0.000
#> SRR1338402 3 0.000 0.987 0.000 0.000 1.000
#> SRR1337930 1 0.000 0.986 1.000 0.000 0.000
#> SRR1337749 1 0.000 0.986 1.000 0.000 0.000
#> SRR1401341 1 0.000 0.986 1.000 0.000 0.000
#> SRR1396901 1 0.000 0.986 1.000 0.000 0.000
#> SRR1354400 3 0.000 0.987 0.000 0.000 1.000
#> SRR1416538 1 0.000 0.986 1.000 0.000 0.000
#> SRR1340762 3 0.000 0.987 0.000 0.000 1.000
#> SRR1460095 2 0.000 0.987 0.000 1.000 0.000
#> SRR1071181 3 0.000 0.987 0.000 0.000 1.000
#> SRR1380436 2 0.000 0.987 0.000 1.000 0.000
#> SRR1079973 2 0.000 0.987 0.000 1.000 0.000
#> SRR1473611 1 0.000 0.986 1.000 0.000 0.000
#> SRR1074934 3 0.000 0.987 0.000 0.000 1.000
#> SRR1311731 2 0.000 0.987 0.000 1.000 0.000
#> SRR1452957 2 0.000 0.987 0.000 1.000 0.000
#> SRR1429144 1 0.000 0.986 1.000 0.000 0.000
#> SRR1448203 1 0.000 0.986 1.000 0.000 0.000
#> SRR1366102 1 0.000 0.986 1.000 0.000 0.000
#> SRR1434845 1 0.000 0.986 1.000 0.000 0.000
#> SRR1472171 1 0.000 0.986 1.000 0.000 0.000
#> SRR1441075 2 0.000 0.987 0.000 1.000 0.000
#> SRR1321483 3 0.000 0.987 0.000 0.000 1.000
#> SRR1418105 3 0.000 0.987 0.000 0.000 1.000
#> SRR1090022 2 0.000 0.987 0.000 1.000 0.000
#> SRR1077728 1 0.000 0.986 1.000 0.000 0.000
#> SRR1365767 3 0.000 0.987 0.000 0.000 1.000
#> SRR1489670 2 0.000 0.987 0.000 1.000 0.000
#> SRR1343136 3 0.000 0.987 0.000 0.000 1.000
#> SRR1359587 3 0.000 0.987 0.000 0.000 1.000
#> SRR1465782 1 0.000 0.986 1.000 0.000 0.000
#> SRR1434460 1 0.000 0.986 1.000 0.000 0.000
#> SRR1415751 1 0.000 0.986 1.000 0.000 0.000
#> SRR1359027 1 0.000 0.986 1.000 0.000 0.000
#> SRR1408303 3 0.000 0.987 0.000 0.000 1.000
#> SRR1456469 2 0.000 0.987 0.000 1.000 0.000
#> SRR1436717 2 0.000 0.987 0.000 1.000 0.000
#> SRR1480287 1 0.000 0.986 1.000 0.000 0.000
#> SRR1326845 2 0.000 0.987 0.000 1.000 0.000
#> SRR1070133 2 0.000 0.987 0.000 1.000 0.000
#> SRR1387745 2 0.000 0.987 0.000 1.000 0.000
#> SRR1436904 3 0.000 0.987 0.000 0.000 1.000
#> SRR1076465 2 0.000 0.987 0.000 1.000 0.000
#> SRR1433215 1 0.000 0.986 1.000 0.000 0.000
#> SRR1076046 1 0.000 0.986 1.000 0.000 0.000
#> SRR1406643 2 0.000 0.987 0.000 1.000 0.000
#> SRR1499460 3 0.000 0.987 0.000 0.000 1.000
#> SRR1475147 2 0.000 0.987 0.000 1.000 0.000
#> SRR1319301 1 0.000 0.986 1.000 0.000 0.000
#> SRR1486117 1 0.000 0.986 1.000 0.000 0.000
#> SRR1087680 3 0.000 0.987 0.000 0.000 1.000
#> SRR1361391 3 0.000 0.987 0.000 0.000 1.000
#> SRR1365655 3 0.000 0.987 0.000 0.000 1.000
#> SRR1090457 3 0.000 0.987 0.000 0.000 1.000
#> SRR1084154 2 0.000 0.987 0.000 1.000 0.000
#> SRR1380358 1 0.000 0.986 1.000 0.000 0.000
#> SRR1398430 2 0.000 0.987 0.000 1.000 0.000
#> SRR1444242 1 0.000 0.986 1.000 0.000 0.000
#> SRR1440832 2 0.362 0.835 0.000 0.864 0.136
#> SRR1358803 1 0.455 0.745 0.800 0.200 0.000
#> SRR1344079 1 0.000 0.986 1.000 0.000 0.000
#> SRR1072602 1 0.000 0.986 1.000 0.000 0.000
#> SRR1421399 2 0.000 0.987 0.000 1.000 0.000
#> SRR1339086 1 0.000 0.986 1.000 0.000 0.000
#> SRR1099881 1 0.000 0.986 1.000 0.000 0.000
#> SRR1384312 3 0.000 0.987 0.000 0.000 1.000
#> SRR1329508 3 0.000 0.987 0.000 0.000 1.000
#> SRR1440200 2 0.000 0.987 0.000 1.000 0.000
#> SRR1397558 2 0.000 0.987 0.000 1.000 0.000
#> SRR1344364 2 0.000 0.987 0.000 1.000 0.000
#> SRR1387787 1 0.000 0.986 1.000 0.000 0.000
#> SRR1378199 1 0.000 0.986 1.000 0.000 0.000
#> SRR1413119 3 0.000 0.987 0.000 0.000 1.000
#> SRR1310497 1 0.000 0.986 1.000 0.000 0.000
#> SRR1356327 1 0.000 0.986 1.000 0.000 0.000
#> SRR1319059 3 0.362 0.837 0.136 0.000 0.864
#> SRR1085378 1 0.000 0.986 1.000 0.000 0.000
#> SRR1379036 3 0.000 0.987 0.000 0.000 1.000
#> SRR1417656 1 0.000 0.986 1.000 0.000 0.000
#> SRR1454225 1 0.000 0.986 1.000 0.000 0.000
#> SRR1455346 2 0.000 0.987 0.000 1.000 0.000
#> SRR1366412 2 0.000 0.987 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1416819 3 0.1716 0.886 0.000 0.000 0.936 0.064
#> SRR1351907 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1330371 4 0.2334 0.853 0.000 0.004 0.088 0.908
#> SRR1340782 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1094531 4 0.3356 0.836 0.000 0.000 0.176 0.824
#> SRR1436262 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.3818 0.741 0.108 0.048 0.000 0.844
#> SRR1435460 4 0.2081 0.852 0.000 0.000 0.084 0.916
#> SRR1485587 1 0.1474 0.929 0.948 0.000 0.000 0.052
#> SRR1470834 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1442966 4 0.2197 0.851 0.000 0.004 0.080 0.916
#> SRR1410979 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1360321 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1445170 4 0.4206 0.714 0.136 0.048 0.000 0.816
#> SRR1440663 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1489839 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1409772 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1092591 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1338402 3 0.1022 0.913 0.000 0.000 0.968 0.032
#> SRR1337930 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1416538 1 0.4008 0.656 0.756 0.000 0.244 0.000
#> SRR1340762 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1460095 4 0.4898 0.298 0.000 0.416 0.000 0.584
#> SRR1071181 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1473611 1 0.0188 0.972 0.996 0.000 0.000 0.004
#> SRR1074934 3 0.3219 0.744 0.000 0.000 0.836 0.164
#> SRR1311731 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1434845 3 0.4855 0.350 0.400 0.000 0.600 0.000
#> SRR1472171 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1418105 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1090022 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1077728 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1365767 4 0.2216 0.852 0.000 0.000 0.092 0.908
#> SRR1489670 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1343136 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1359587 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1465782 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1434460 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1415751 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1456469 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1076465 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1433215 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1076046 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1406643 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1499460 4 0.3356 0.836 0.000 0.000 0.176 0.824
#> SRR1475147 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1319301 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1087680 4 0.3356 0.836 0.000 0.000 0.176 0.824
#> SRR1361391 4 0.3356 0.836 0.000 0.000 0.176 0.824
#> SRR1365655 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1090457 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1084154 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1380358 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1398430 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1444242 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1440832 4 0.3494 0.755 0.000 0.172 0.004 0.824
#> SRR1358803 1 0.4543 0.551 0.676 0.000 0.000 0.324
#> SRR1344079 1 0.4543 0.551 0.676 0.000 0.000 0.324
#> SRR1072602 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1421399 2 0.3907 0.676 0.000 0.768 0.000 0.232
#> SRR1339086 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1440200 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.982 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.2589 0.853 0.000 0.884 0.000 0.116
#> SRR1387787 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1378199 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1413119 4 0.3356 0.836 0.000 0.000 0.176 0.824
#> SRR1310497 3 0.3356 0.699 0.176 0.000 0.824 0.000
#> SRR1356327 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1319059 3 0.0469 0.929 0.012 0.000 0.988 0.000
#> SRR1085378 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1379036 3 0.0000 0.941 0.000 0.000 1.000 0.000
#> SRR1417656 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.976 1.000 0.000 0.000 0.000
#> SRR1455346 2 0.2081 0.903 0.000 0.916 0.000 0.084
#> SRR1366412 2 0.0000 0.982 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1416819 5 0.3999 0.4202 0.000 0.000 0.344 0.000 0.656
#> SRR1351907 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1330371 4 0.0290 0.9273 0.000 0.000 0.000 0.992 0.008
#> SRR1340782 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1094531 4 0.0404 0.9309 0.000 0.000 0.012 0.988 0.000
#> SRR1436262 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 5 0.0162 0.8328 0.000 0.000 0.000 0.004 0.996
#> SRR1435460 4 0.0290 0.9273 0.000 0.000 0.000 0.992 0.008
#> SRR1485587 5 0.3838 0.5256 0.280 0.000 0.000 0.004 0.716
#> SRR1470834 1 0.0992 0.9663 0.968 0.000 0.000 0.008 0.024
#> SRR1442966 4 0.0290 0.9273 0.000 0.000 0.000 0.992 0.008
#> SRR1410979 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 1 0.0290 0.9839 0.992 0.000 0.000 0.000 0.008
#> SRR1360321 3 0.0000 0.9395 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 5 0.0162 0.8328 0.000 0.000 0.000 0.004 0.996
#> SRR1440663 3 0.0000 0.9395 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 1 0.0290 0.9840 0.992 0.000 0.000 0.008 0.000
#> SRR1409772 1 0.0579 0.9807 0.984 0.000 0.000 0.008 0.008
#> SRR1092591 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1338402 3 0.0963 0.9087 0.000 0.000 0.964 0.036 0.000
#> SRR1337930 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0404 0.9317 0.000 0.000 0.988 0.012 0.000
#> SRR1416538 1 0.2612 0.8307 0.868 0.000 0.124 0.008 0.000
#> SRR1340762 3 0.0162 0.9369 0.000 0.000 0.996 0.004 0.000
#> SRR1460095 4 0.4464 0.3083 0.000 0.408 0.000 0.584 0.008
#> SRR1071181 3 0.0000 0.9395 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 1 0.2583 0.8462 0.864 0.000 0.000 0.004 0.132
#> SRR1074934 3 0.4867 0.0994 0.000 0.000 0.544 0.024 0.432
#> SRR1311731 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1434845 3 0.4367 0.3029 0.372 0.000 0.620 0.008 0.000
#> SRR1472171 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.9395 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0000 0.9395 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1077728 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1365767 4 0.0290 0.9305 0.000 0.000 0.008 0.992 0.000
#> SRR1489670 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1343136 3 0.0000 0.9395 0.000 0.000 1.000 0.000 0.000
#> SRR1359587 3 0.0290 0.9347 0.000 0.000 0.992 0.008 0.000
#> SRR1465782 1 0.0451 0.9827 0.988 0.000 0.000 0.008 0.004
#> SRR1434460 1 0.0579 0.9807 0.984 0.000 0.000 0.008 0.008
#> SRR1415751 1 0.0290 0.9840 0.992 0.000 0.000 0.008 0.000
#> SRR1359027 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.9395 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0162 0.9373 0.000 0.000 0.996 0.004 0.000
#> SRR1076465 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1076046 1 0.0693 0.9783 0.980 0.000 0.000 0.008 0.012
#> SRR1406643 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 4 0.0404 0.9309 0.000 0.000 0.012 0.988 0.000
#> SRR1475147 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1087680 4 0.0404 0.9309 0.000 0.000 0.012 0.988 0.000
#> SRR1361391 4 0.0404 0.9309 0.000 0.000 0.012 0.988 0.000
#> SRR1365655 3 0.0000 0.9395 0.000 0.000 1.000 0.000 0.000
#> SRR1090457 3 0.0000 0.9395 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1380358 1 0.0703 0.9698 0.976 0.000 0.000 0.000 0.024
#> SRR1398430 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1444242 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1440832 4 0.0404 0.9223 0.000 0.012 0.000 0.988 0.000
#> SRR1358803 5 0.0000 0.8318 0.000 0.000 0.000 0.000 1.000
#> SRR1344079 5 0.0162 0.8328 0.000 0.000 0.000 0.004 0.996
#> SRR1072602 1 0.0693 0.9783 0.980 0.000 0.000 0.008 0.012
#> SRR1421399 2 0.0771 0.9740 0.000 0.976 0.000 0.004 0.020
#> SRR1339086 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.9395 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.0000 0.9395 0.000 0.000 1.000 0.000 0.000
#> SRR1440200 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9961 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 2 0.1638 0.9241 0.000 0.932 0.000 0.064 0.004
#> SRR1387787 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1378199 1 0.0566 0.9802 0.984 0.000 0.000 0.004 0.012
#> SRR1413119 4 0.0404 0.9309 0.000 0.000 0.012 0.988 0.000
#> SRR1310497 3 0.0798 0.9169 0.016 0.000 0.976 0.008 0.000
#> SRR1356327 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1319059 3 0.0290 0.9337 0.000 0.000 0.992 0.008 0.000
#> SRR1085378 1 0.0404 0.9819 0.988 0.000 0.000 0.000 0.012
#> SRR1379036 3 0.0000 0.9395 0.000 0.000 1.000 0.000 0.000
#> SRR1417656 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9876 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 5 0.1410 0.7859 0.000 0.060 0.000 0.000 0.940
#> SRR1366412 2 0.0000 0.9961 0.000 1.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
#> SRR1313664 1 0.1204 0.8407 0.944 0.000 0.000 0.000 0.000 0.056
#> SRR1375371 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1416819 3 0.5223 0.0464 0.000 0.000 0.472 0.436 0.000 0.092
#> SRR1351907 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1330371 5 0.0146 0.9313 0.000 0.000 0.000 0.000 0.996 0.004
#> SRR1340782 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.0000 0.9327 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1436262 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.0146 0.9612 0.000 0.000 0.000 0.996 0.000 0.004
#> SRR1435460 5 0.0146 0.9313 0.000 0.000 0.000 0.000 0.996 0.004
#> SRR1485587 6 0.4946 -0.0199 0.068 0.000 0.000 0.404 0.000 0.528
#> SRR1470834 6 0.3652 0.4318 0.324 0.000 0.000 0.004 0.000 0.672
#> SRR1442966 5 0.0146 0.9313 0.000 0.000 0.000 0.000 0.996 0.004
#> SRR1410979 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1367520 1 0.3860 -0.1077 0.528 0.000 0.000 0.000 0.000 0.472
#> SRR1360321 3 0.0000 0.9331 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 4 0.0146 0.9612 0.000 0.000 0.000 0.996 0.000 0.004
#> SRR1440663 3 0.0000 0.9331 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 1 0.3747 0.1721 0.604 0.000 0.000 0.000 0.000 0.396
#> SRR1409772 6 0.2996 0.5998 0.228 0.000 0.000 0.000 0.000 0.772
#> SRR1092591 1 0.0260 0.8779 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1338402 3 0.0458 0.9236 0.000 0.000 0.984 0.000 0.016 0.000
#> SRR1337930 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.1814 0.8005 0.900 0.000 0.000 0.000 0.000 0.100
#> SRR1396901 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0363 0.9265 0.000 0.000 0.988 0.000 0.012 0.000
#> SRR1416538 6 0.4797 0.1944 0.444 0.000 0.052 0.000 0.000 0.504
#> SRR1340762 3 0.0865 0.9105 0.000 0.000 0.964 0.000 0.000 0.036
#> SRR1460095 5 0.5123 0.2467 0.000 0.404 0.000 0.056 0.528 0.012
#> SRR1071181 3 0.0000 0.9331 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1473611 6 0.5015 0.4042 0.352 0.000 0.000 0.084 0.000 0.564
#> SRR1074934 3 0.5184 0.4938 0.000 0.000 0.640 0.260 0.032 0.068
#> SRR1311731 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0713 0.8652 0.972 0.000 0.000 0.000 0.000 0.028
#> SRR1366102 1 0.0458 0.8736 0.984 0.000 0.000 0.000 0.000 0.016
#> SRR1434845 6 0.5320 0.2776 0.116 0.000 0.352 0.000 0.000 0.532
#> SRR1472171 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.9331 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.9331 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1077728 1 0.0363 0.8744 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1365767 5 0.0000 0.9327 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1489670 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1343136 3 0.0000 0.9331 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1359587 3 0.0146 0.9315 0.000 0.000 0.996 0.000 0.004 0.000
#> SRR1465782 6 0.2260 0.6036 0.140 0.000 0.000 0.000 0.000 0.860
#> SRR1434460 6 0.1863 0.5881 0.104 0.000 0.000 0.000 0.000 0.896
#> SRR1415751 1 0.3838 0.0110 0.552 0.000 0.000 0.000 0.000 0.448
#> SRR1359027 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.9331 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1456469 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436904 3 0.0146 0.9315 0.000 0.000 0.996 0.000 0.004 0.000
#> SRR1076465 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 1 0.3175 0.5828 0.744 0.000 0.000 0.000 0.000 0.256
#> SRR1076046 6 0.1610 0.5720 0.084 0.000 0.000 0.000 0.000 0.916
#> SRR1406643 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1499460 5 0.0000 0.9327 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1475147 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0363 0.8755 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1087680 5 0.0000 0.9327 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1361391 5 0.0000 0.9327 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1365655 3 0.0713 0.9165 0.000 0.000 0.972 0.000 0.000 0.028
#> SRR1090457 3 0.0000 0.9331 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 2 0.0508 0.9774 0.000 0.984 0.000 0.004 0.000 0.012
#> SRR1380358 1 0.3126 0.5991 0.752 0.000 0.000 0.000 0.000 0.248
#> SRR1398430 2 0.0363 0.9805 0.000 0.988 0.000 0.000 0.000 0.012
#> SRR1444242 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.0000 0.9327 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1358803 4 0.0865 0.9435 0.000 0.000 0.000 0.964 0.000 0.036
#> SRR1344079 4 0.0146 0.9612 0.000 0.000 0.000 0.996 0.000 0.004
#> SRR1072602 6 0.2664 0.6074 0.184 0.000 0.000 0.000 0.000 0.816
#> SRR1421399 2 0.3304 0.7642 0.000 0.804 0.000 0.168 0.008 0.020
#> SRR1339086 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.9331 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.0000 0.9331 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1440200 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9894 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1344364 2 0.1010 0.9503 0.000 0.960 0.000 0.004 0.036 0.000
#> SRR1387787 1 0.2003 0.7821 0.884 0.000 0.000 0.000 0.000 0.116
#> SRR1378199 6 0.3838 0.2257 0.448 0.000 0.000 0.000 0.000 0.552
#> SRR1413119 5 0.0000 0.9327 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1310497 6 0.3866 -0.0930 0.000 0.000 0.484 0.000 0.000 0.516
#> SRR1356327 1 0.0146 0.8798 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1319059 3 0.3126 0.6475 0.000 0.000 0.752 0.000 0.000 0.248
#> SRR1085378 1 0.3727 0.1669 0.612 0.000 0.000 0.000 0.000 0.388
#> SRR1379036 3 0.0000 0.9331 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1417656 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.8816 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.1838 0.8786 0.000 0.068 0.000 0.916 0.000 0.016
#> SRR1366412 2 0.0000 0.9894 0.000 1.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", "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 17697 rows and 104 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 1.000 0.988 0.995 0.3604 0.642 0.642
#> 3 3 1.000 0.981 0.992 0.7732 0.710 0.552
#> 4 4 0.892 0.895 0.951 0.1525 0.862 0.637
#> 5 5 0.951 0.915 0.966 0.0408 0.963 0.860
#> 6 6 0.926 0.884 0.950 0.0757 0.918 0.662
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 6
#> attr(,"optional")
#> [1] 2 3 5
There is also optional best \(k\) = 2 3 5 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
#> SRR1313664 1 0.000 0.996 1.000 0.000
#> SRR1375371 2 0.000 0.991 0.000 1.000
#> SRR1416819 1 0.000 0.996 1.000 0.000
#> SRR1351907 2 0.000 0.991 0.000 1.000
#> SRR1330371 1 0.000 0.996 1.000 0.000
#> SRR1340782 1 0.000 0.996 1.000 0.000
#> SRR1094531 1 0.000 0.996 1.000 0.000
#> SRR1436262 1 0.000 0.996 1.000 0.000
#> SRR1093314 1 0.000 0.996 1.000 0.000
#> SRR1435460 1 0.000 0.996 1.000 0.000
#> SRR1485587 1 0.000 0.996 1.000 0.000
#> SRR1470834 1 0.000 0.996 1.000 0.000
#> SRR1442966 1 0.000 0.996 1.000 0.000
#> SRR1410979 2 0.000 0.991 0.000 1.000
#> SRR1326449 2 0.000 0.991 0.000 1.000
#> SRR1367520 1 0.000 0.996 1.000 0.000
#> SRR1360321 1 0.000 0.996 1.000 0.000
#> SRR1445170 1 0.000 0.996 1.000 0.000
#> SRR1440663 1 0.000 0.996 1.000 0.000
#> SRR1489839 1 0.000 0.996 1.000 0.000
#> SRR1409772 1 0.000 0.996 1.000 0.000
#> SRR1092591 1 0.000 0.996 1.000 0.000
#> SRR1338402 1 0.000 0.996 1.000 0.000
#> SRR1337930 1 0.000 0.996 1.000 0.000
#> SRR1337749 1 0.000 0.996 1.000 0.000
#> SRR1401341 1 0.000 0.996 1.000 0.000
#> SRR1396901 1 0.000 0.996 1.000 0.000
#> SRR1354400 1 0.000 0.996 1.000 0.000
#> SRR1416538 1 0.000 0.996 1.000 0.000
#> SRR1340762 1 0.000 0.996 1.000 0.000
#> SRR1460095 1 0.278 0.946 0.952 0.048
#> SRR1071181 1 0.000 0.996 1.000 0.000
#> SRR1380436 2 0.000 0.991 0.000 1.000
#> SRR1079973 2 0.000 0.991 0.000 1.000
#> SRR1473611 1 0.000 0.996 1.000 0.000
#> SRR1074934 1 0.000 0.996 1.000 0.000
#> SRR1311731 2 0.000 0.991 0.000 1.000
#> SRR1452957 2 0.000 0.991 0.000 1.000
#> SRR1429144 1 0.000 0.996 1.000 0.000
#> SRR1448203 1 0.000 0.996 1.000 0.000
#> SRR1366102 1 0.000 0.996 1.000 0.000
#> SRR1434845 1 0.000 0.996 1.000 0.000
#> SRR1472171 1 0.000 0.996 1.000 0.000
#> SRR1441075 2 0.000 0.991 0.000 1.000
#> SRR1321483 1 0.000 0.996 1.000 0.000
#> SRR1418105 1 0.000 0.996 1.000 0.000
#> SRR1090022 2 0.000 0.991 0.000 1.000
#> SRR1077728 1 0.000 0.996 1.000 0.000
#> SRR1365767 1 0.000 0.996 1.000 0.000
#> SRR1489670 2 0.000 0.991 0.000 1.000
#> SRR1343136 1 0.000 0.996 1.000 0.000
#> SRR1359587 1 0.000 0.996 1.000 0.000
#> SRR1465782 1 0.000 0.996 1.000 0.000
#> SRR1434460 1 0.000 0.996 1.000 0.000
#> SRR1415751 1 0.000 0.996 1.000 0.000
#> SRR1359027 1 0.000 0.996 1.000 0.000
#> SRR1408303 1 0.000 0.996 1.000 0.000
#> SRR1456469 2 0.000 0.991 0.000 1.000
#> SRR1436717 2 0.000 0.991 0.000 1.000
#> SRR1480287 1 0.000 0.996 1.000 0.000
#> SRR1326845 2 0.000 0.991 0.000 1.000
#> SRR1070133 2 0.000 0.991 0.000 1.000
#> SRR1387745 2 0.000 0.991 0.000 1.000
#> SRR1436904 1 0.000 0.996 1.000 0.000
#> SRR1076465 2 0.000 0.991 0.000 1.000
#> SRR1433215 1 0.000 0.996 1.000 0.000
#> SRR1076046 1 0.000 0.996 1.000 0.000
#> SRR1406643 2 0.000 0.991 0.000 1.000
#> SRR1499460 1 0.000 0.996 1.000 0.000
#> SRR1475147 2 0.000 0.991 0.000 1.000
#> SRR1319301 1 0.000 0.996 1.000 0.000
#> SRR1486117 1 0.000 0.996 1.000 0.000
#> SRR1087680 1 0.000 0.996 1.000 0.000
#> SRR1361391 1 0.000 0.996 1.000 0.000
#> SRR1365655 1 0.000 0.996 1.000 0.000
#> SRR1090457 1 0.000 0.996 1.000 0.000
#> SRR1084154 1 0.855 0.610 0.720 0.280
#> SRR1380358 1 0.000 0.996 1.000 0.000
#> SRR1398430 1 0.000 0.996 1.000 0.000
#> SRR1444242 1 0.000 0.996 1.000 0.000
#> SRR1440832 2 0.000 0.991 0.000 1.000
#> SRR1358803 1 0.000 0.996 1.000 0.000
#> SRR1344079 1 0.000 0.996 1.000 0.000
#> SRR1072602 1 0.000 0.996 1.000 0.000
#> SRR1421399 1 0.000 0.996 1.000 0.000
#> SRR1339086 1 0.000 0.996 1.000 0.000
#> SRR1099881 1 0.000 0.996 1.000 0.000
#> SRR1384312 1 0.000 0.996 1.000 0.000
#> SRR1329508 1 0.000 0.996 1.000 0.000
#> SRR1440200 2 0.000 0.991 0.000 1.000
#> SRR1397558 2 0.000 0.991 0.000 1.000
#> SRR1344364 2 0.714 0.754 0.196 0.804
#> SRR1387787 1 0.000 0.996 1.000 0.000
#> SRR1378199 1 0.000 0.996 1.000 0.000
#> SRR1413119 1 0.000 0.996 1.000 0.000
#> SRR1310497 1 0.000 0.996 1.000 0.000
#> SRR1356327 1 0.000 0.996 1.000 0.000
#> SRR1319059 1 0.000 0.996 1.000 0.000
#> SRR1085378 1 0.000 0.996 1.000 0.000
#> SRR1379036 1 0.000 0.996 1.000 0.000
#> SRR1417656 1 0.000 0.996 1.000 0.000
#> SRR1454225 1 0.000 0.996 1.000 0.000
#> SRR1455346 1 0.000 0.996 1.000 0.000
#> SRR1366412 2 0.000 0.991 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1375371 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1416819 3 0.1529 0.944 0.040 0.0 0.960
#> SRR1351907 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1330371 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1340782 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1094531 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1436262 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1093314 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1435460 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1485587 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1470834 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1442966 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1410979 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1326449 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1367520 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1360321 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1445170 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1440663 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1489839 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1409772 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1092591 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1338402 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1337930 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1337749 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1401341 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1396901 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1354400 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1416538 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1340762 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1460095 3 0.4555 0.744 0.000 0.2 0.800
#> SRR1071181 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1380436 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1079973 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1473611 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1074934 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1311731 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1452957 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1429144 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1448203 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1366102 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1434845 1 0.3752 0.834 0.856 0.0 0.144
#> SRR1472171 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1441075 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1321483 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1418105 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1090022 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1077728 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1365767 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1489670 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1343136 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1359587 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1465782 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1434460 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1415751 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1359027 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1408303 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1456469 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1436717 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1480287 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1326845 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1070133 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1387745 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1436904 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1076465 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1433215 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1076046 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1406643 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1499460 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1475147 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1319301 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1486117 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1087680 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1361391 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1365655 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1090457 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1084154 1 0.4555 0.753 0.800 0.2 0.000
#> SRR1380358 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1398430 1 0.0424 0.984 0.992 0.0 0.008
#> SRR1444242 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1440832 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1358803 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1344079 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1072602 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1421399 1 0.2066 0.931 0.940 0.0 0.060
#> SRR1339086 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1099881 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1384312 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1329508 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1440200 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1397558 2 0.0000 0.991 0.000 1.0 0.000
#> SRR1344364 2 0.4555 0.744 0.000 0.8 0.200
#> SRR1387787 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1378199 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1413119 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1310497 1 0.1031 0.969 0.976 0.0 0.024
#> SRR1356327 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1319059 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1085378 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1379036 3 0.0000 0.991 0.000 0.0 1.000
#> SRR1417656 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1454225 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1455346 1 0.0000 0.991 1.000 0.0 0.000
#> SRR1366412 2 0.0000 0.991 0.000 1.0 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0188 0.958 0.996 0.000 0.000 0.004
#> SRR1375371 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1416819 4 0.1716 0.841 0.000 0.000 0.064 0.936
#> SRR1351907 2 0.0336 0.980 0.000 0.992 0.000 0.008
#> SRR1330371 4 0.4697 0.368 0.000 0.000 0.356 0.644
#> SRR1340782 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1094531 3 0.2149 0.888 0.000 0.000 0.912 0.088
#> SRR1436262 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.0000 0.853 0.000 0.000 0.000 1.000
#> SRR1435460 4 0.3528 0.683 0.000 0.000 0.192 0.808
#> SRR1485587 4 0.2814 0.833 0.132 0.000 0.000 0.868
#> SRR1470834 1 0.4164 0.638 0.736 0.000 0.000 0.264
#> SRR1442966 4 0.3400 0.700 0.000 0.000 0.180 0.820
#> SRR1410979 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.0336 0.956 0.992 0.000 0.000 0.008
#> SRR1360321 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1445170 4 0.0000 0.853 0.000 0.000 0.000 1.000
#> SRR1440663 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1489839 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1409772 1 0.3569 0.747 0.804 0.000 0.000 0.196
#> SRR1092591 1 0.3942 0.687 0.764 0.000 0.000 0.236
#> SRR1338402 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1337930 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1416538 1 0.0524 0.954 0.988 0.000 0.004 0.008
#> SRR1340762 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1460095 4 0.0000 0.853 0.000 0.000 0.000 1.000
#> SRR1071181 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1473611 4 0.4250 0.665 0.276 0.000 0.000 0.724
#> SRR1074934 4 0.1716 0.841 0.000 0.000 0.064 0.936
#> SRR1311731 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.5172 0.313 0.588 0.000 0.404 0.008
#> SRR1472171 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1418105 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1090022 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1077728 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1365767 3 0.4843 0.395 0.000 0.000 0.604 0.396
#> SRR1489670 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1343136 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1359587 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1465782 1 0.0336 0.956 0.992 0.000 0.000 0.008
#> SRR1434460 1 0.0336 0.956 0.992 0.000 0.000 0.008
#> SRR1415751 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1456469 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1076465 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1433215 4 0.2760 0.836 0.128 0.000 0.000 0.872
#> SRR1076046 1 0.1211 0.929 0.960 0.000 0.000 0.040
#> SRR1406643 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1499460 3 0.2760 0.861 0.000 0.000 0.872 0.128
#> SRR1475147 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1319301 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1087680 3 0.2760 0.861 0.000 0.000 0.872 0.128
#> SRR1361391 3 0.1792 0.898 0.000 0.000 0.932 0.068
#> SRR1365655 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1090457 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1084154 4 0.2988 0.842 0.112 0.012 0.000 0.876
#> SRR1380358 1 0.2281 0.873 0.904 0.000 0.000 0.096
#> SRR1398430 4 0.0000 0.853 0.000 0.000 0.000 1.000
#> SRR1444242 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1440832 3 0.2760 0.861 0.000 0.000 0.872 0.128
#> SRR1358803 4 0.2647 0.840 0.120 0.000 0.000 0.880
#> SRR1344079 4 0.1716 0.859 0.064 0.000 0.000 0.936
#> SRR1072602 4 0.4477 0.580 0.312 0.000 0.000 0.688
#> SRR1421399 4 0.0000 0.853 0.000 0.000 0.000 1.000
#> SRR1339086 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1440200 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.988 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.4164 0.661 0.000 0.736 0.000 0.264
#> SRR1387787 1 0.0336 0.956 0.992 0.000 0.000 0.008
#> SRR1378199 1 0.0336 0.956 0.992 0.000 0.000 0.008
#> SRR1413119 3 0.2760 0.861 0.000 0.000 0.872 0.128
#> SRR1310497 3 0.5161 0.301 0.400 0.000 0.592 0.008
#> SRR1356327 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1319059 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1085378 1 0.0336 0.956 0.992 0.000 0.000 0.008
#> SRR1379036 3 0.0000 0.935 0.000 0.000 1.000 0.000
#> SRR1417656 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.960 1.000 0.000 0.000 0.000
#> SRR1455346 4 0.1716 0.859 0.064 0.000 0.000 0.936
#> SRR1366412 2 0.0000 0.988 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.0609 0.9620 0.980 0.000 0.000 0.020 0.000
#> SRR1375371 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1416819 4 0.0404 0.9457 0.000 0.000 0.000 0.988 0.012
#> SRR1351907 2 0.0404 0.9763 0.000 0.988 0.000 0.012 0.000
#> SRR1330371 5 0.3837 0.5572 0.000 0.000 0.000 0.308 0.692
#> SRR1340782 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.0162 0.9474 0.000 0.000 0.000 0.004 0.996
#> SRR1436262 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.0404 0.9457 0.000 0.000 0.000 0.988 0.012
#> SRR1435460 4 0.0510 0.9439 0.000 0.000 0.000 0.984 0.016
#> SRR1485587 4 0.0324 0.9354 0.004 0.000 0.000 0.992 0.004
#> SRR1470834 1 0.3814 0.6540 0.720 0.000 0.000 0.276 0.004
#> SRR1442966 4 0.0510 0.9439 0.000 0.000 0.000 0.984 0.016
#> SRR1410979 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 1 0.0609 0.9620 0.980 0.000 0.000 0.020 0.000
#> SRR1360321 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 4 0.0404 0.9457 0.000 0.000 0.000 0.988 0.012
#> SRR1440663 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 1 0.0566 0.9632 0.984 0.000 0.000 0.012 0.004
#> SRR1409772 1 0.3210 0.7597 0.788 0.000 0.000 0.212 0.000
#> SRR1092591 1 0.3424 0.7078 0.760 0.000 0.000 0.240 0.000
#> SRR1338402 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1337930 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0510 0.9637 0.984 0.000 0.000 0.016 0.000
#> SRR1396901 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1416538 1 0.0771 0.9605 0.976 0.000 0.000 0.020 0.004
#> SRR1340762 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1460095 4 0.0510 0.9439 0.000 0.000 0.000 0.984 0.016
#> SRR1071181 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 4 0.3177 0.6565 0.208 0.000 0.000 0.792 0.000
#> SRR1074934 4 0.0404 0.9457 0.000 0.000 0.000 0.988 0.012
#> SRR1311731 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1434845 3 0.4874 0.1163 0.452 0.000 0.528 0.016 0.004
#> SRR1472171 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1077728 1 0.0404 0.9641 0.988 0.000 0.000 0.012 0.000
#> SRR1365767 5 0.0162 0.9474 0.000 0.000 0.000 0.004 0.996
#> SRR1489670 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1343136 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1359587 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1465782 1 0.0865 0.9586 0.972 0.000 0.000 0.024 0.004
#> SRR1434460 1 0.0865 0.9586 0.972 0.000 0.000 0.024 0.004
#> SRR1415751 1 0.0566 0.9632 0.984 0.000 0.000 0.012 0.004
#> SRR1359027 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1076465 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 4 0.0162 0.9380 0.000 0.000 0.000 0.996 0.004
#> SRR1076046 1 0.1571 0.9300 0.936 0.000 0.000 0.060 0.004
#> SRR1406643 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 5 0.0162 0.9474 0.000 0.000 0.000 0.004 0.996
#> SRR1475147 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0162 0.9655 0.996 0.000 0.000 0.004 0.000
#> SRR1087680 5 0.0162 0.9474 0.000 0.000 0.000 0.004 0.996
#> SRR1361391 5 0.0162 0.9474 0.000 0.000 0.000 0.004 0.996
#> SRR1365655 3 0.0162 0.9177 0.000 0.000 0.996 0.000 0.004
#> SRR1090457 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 4 0.0609 0.9296 0.000 0.020 0.000 0.980 0.000
#> SRR1380358 1 0.2127 0.8777 0.892 0.000 0.000 0.108 0.000
#> SRR1398430 4 0.0510 0.9439 0.000 0.000 0.000 0.984 0.016
#> SRR1444242 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.0162 0.9474 0.000 0.000 0.000 0.004 0.996
#> SRR1358803 4 0.0162 0.9381 0.004 0.000 0.000 0.996 0.000
#> SRR1344079 4 0.0404 0.9457 0.000 0.000 0.000 0.988 0.012
#> SRR1072602 4 0.3579 0.5922 0.240 0.000 0.000 0.756 0.004
#> SRR1421399 4 0.0162 0.9426 0.000 0.000 0.000 0.996 0.004
#> SRR1339086 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1440200 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 2 0.3456 0.7286 0.000 0.800 0.000 0.184 0.016
#> SRR1387787 1 0.0609 0.9620 0.980 0.000 0.000 0.020 0.000
#> SRR1378199 1 0.0609 0.9620 0.980 0.000 0.000 0.020 0.000
#> SRR1413119 3 0.4449 0.0101 0.000 0.000 0.512 0.004 0.484
#> SRR1310497 3 0.4212 0.5689 0.236 0.000 0.736 0.024 0.004
#> SRR1356327 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1319059 3 0.0162 0.9177 0.000 0.000 0.996 0.000 0.004
#> SRR1085378 1 0.0510 0.9628 0.984 0.000 0.000 0.016 0.000
#> SRR1379036 3 0.0000 0.9206 0.000 0.000 1.000 0.000 0.000
#> SRR1417656 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9664 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.0404 0.9457 0.000 0.000 0.000 0.988 0.012
#> SRR1366412 2 0.0000 0.9887 0.000 1.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
#> SRR1313664 6 0.3050 0.7497 0.236 0.000 0.000 0.000 0.000 0.764
#> SRR1375371 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1416819 4 0.0146 0.9890 0.000 0.000 0.000 0.996 0.000 0.004
#> SRR1351907 2 0.0363 0.9765 0.000 0.988 0.000 0.012 0.000 0.000
#> SRR1330371 5 0.3464 0.5053 0.000 0.000 0.000 0.312 0.688 0.000
#> SRR1340782 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.0000 0.8763 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1436262 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.0000 0.9882 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1435460 4 0.0547 0.9707 0.000 0.000 0.020 0.980 0.000 0.000
#> SRR1485587 4 0.0146 0.9890 0.000 0.000 0.000 0.996 0.000 0.004
#> SRR1470834 6 0.0146 0.8367 0.000 0.000 0.000 0.004 0.000 0.996
#> SRR1442966 4 0.0458 0.9748 0.000 0.000 0.016 0.984 0.000 0.000
#> SRR1410979 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1367520 1 0.3823 0.0753 0.564 0.000 0.000 0.000 0.000 0.436
#> SRR1360321 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 4 0.0000 0.9882 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1440663 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 6 0.0000 0.8378 0.000 0.000 0.000 0.000 0.000 1.000
#> SRR1409772 6 0.3740 0.7976 0.120 0.000 0.000 0.096 0.000 0.784
#> SRR1092591 6 0.4281 0.6980 0.068 0.000 0.000 0.228 0.000 0.704
#> SRR1338402 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1337930 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1401341 6 0.3050 0.7497 0.236 0.000 0.000 0.000 0.000 0.764
#> SRR1396901 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1416538 6 0.0000 0.8378 0.000 0.000 0.000 0.000 0.000 1.000
#> SRR1340762 3 0.0547 0.9440 0.000 0.000 0.980 0.000 0.000 0.020
#> SRR1460095 4 0.0000 0.9882 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1071181 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1473611 4 0.1865 0.9038 0.040 0.000 0.000 0.920 0.000 0.040
#> SRR1074934 4 0.0000 0.9882 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1311731 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1434845 6 0.0260 0.8337 0.000 0.000 0.008 0.000 0.000 0.992
#> SRR1472171 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1077728 6 0.3050 0.7497 0.236 0.000 0.000 0.000 0.000 0.764
#> SRR1365767 5 0.0000 0.8763 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1489670 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1343136 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1359587 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1465782 6 0.0000 0.8378 0.000 0.000 0.000 0.000 0.000 1.000
#> SRR1434460 6 0.0000 0.8378 0.000 0.000 0.000 0.000 0.000 1.000
#> SRR1415751 6 0.0146 0.8376 0.004 0.000 0.000 0.000 0.000 0.996
#> SRR1359027 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1456469 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1076465 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 4 0.0146 0.9890 0.000 0.000 0.000 0.996 0.000 0.004
#> SRR1076046 6 0.0937 0.8372 0.040 0.000 0.000 0.000 0.000 0.960
#> SRR1406643 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1499460 5 0.0000 0.8763 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1475147 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087680 5 0.0000 0.8763 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1361391 5 0.0000 0.8763 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1365655 3 0.3023 0.7111 0.000 0.000 0.768 0.000 0.000 0.232
#> SRR1090457 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.0146 0.9890 0.000 0.000 0.000 0.996 0.000 0.004
#> SRR1380358 6 0.4336 0.7640 0.160 0.000 0.000 0.116 0.000 0.724
#> SRR1398430 4 0.0146 0.9890 0.000 0.000 0.000 0.996 0.000 0.004
#> SRR1444242 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.0000 0.8763 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1358803 4 0.0146 0.9890 0.000 0.000 0.000 0.996 0.000 0.004
#> SRR1344079 4 0.0146 0.9890 0.000 0.000 0.000 0.996 0.000 0.004
#> SRR1072602 6 0.2527 0.7590 0.000 0.000 0.000 0.168 0.000 0.832
#> SRR1421399 4 0.0000 0.9882 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1339086 1 0.3351 0.5041 0.712 0.000 0.000 0.000 0.000 0.288
#> SRR1099881 1 0.0146 0.9246 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1384312 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1440200 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9887 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1344364 2 0.2793 0.7311 0.000 0.800 0.000 0.200 0.000 0.000
#> SRR1387787 6 0.2941 0.7637 0.220 0.000 0.000 0.000 0.000 0.780
#> SRR1378199 6 0.3695 0.4997 0.376 0.000 0.000 0.000 0.000 0.624
#> SRR1413119 5 0.3998 -0.0124 0.000 0.000 0.492 0.004 0.504 0.000
#> SRR1310497 6 0.0000 0.8378 0.000 0.000 0.000 0.000 0.000 1.000
#> SRR1356327 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1319059 3 0.3499 0.5859 0.000 0.000 0.680 0.000 0.000 0.320
#> SRR1085378 1 0.3847 -0.0162 0.544 0.000 0.000 0.000 0.000 0.456
#> SRR1379036 3 0.0000 0.9617 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1417656 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9283 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.0146 0.9890 0.000 0.000 0.000 0.996 0.000 0.004
#> SRR1366412 2 0.0000 0.9887 0.000 1.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 17697 rows and 104 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 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.831 0.907 0.959 0.4543 0.570 0.570
#> 3 3 0.428 0.732 0.836 0.3168 0.617 0.423
#> 4 4 0.778 0.827 0.903 0.2098 0.813 0.548
#> 5 5 0.874 0.898 0.936 0.0794 0.894 0.641
#> 6 6 0.852 0.813 0.881 0.0287 0.983 0.922
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
#> SRR1313664 1 0.0000 0.940 1.000 0.000
#> SRR1375371 2 0.0000 0.998 0.000 1.000
#> SRR1416819 1 0.5178 0.851 0.884 0.116
#> SRR1351907 2 0.0000 0.998 0.000 1.000
#> SRR1330371 2 0.0376 0.994 0.004 0.996
#> SRR1340782 1 0.0000 0.940 1.000 0.000
#> SRR1094531 1 0.9922 0.293 0.552 0.448
#> SRR1436262 1 0.0000 0.940 1.000 0.000
#> SRR1093314 1 0.9393 0.516 0.644 0.356
#> SRR1435460 1 0.6148 0.815 0.848 0.152
#> SRR1485587 1 0.0000 0.940 1.000 0.000
#> SRR1470834 1 0.1414 0.926 0.980 0.020
#> SRR1442966 2 0.0376 0.994 0.004 0.996
#> SRR1410979 2 0.0000 0.998 0.000 1.000
#> SRR1326449 2 0.0000 0.998 0.000 1.000
#> SRR1367520 1 0.0000 0.940 1.000 0.000
#> SRR1360321 1 0.0000 0.940 1.000 0.000
#> SRR1445170 1 0.9358 0.524 0.648 0.352
#> SRR1440663 1 0.0000 0.940 1.000 0.000
#> SRR1489839 1 0.0000 0.940 1.000 0.000
#> SRR1409772 1 0.0000 0.940 1.000 0.000
#> SRR1092591 1 0.0000 0.940 1.000 0.000
#> SRR1338402 1 0.0000 0.940 1.000 0.000
#> SRR1337930 1 0.0000 0.940 1.000 0.000
#> SRR1337749 1 0.0000 0.940 1.000 0.000
#> SRR1401341 1 0.0000 0.940 1.000 0.000
#> SRR1396901 1 0.0000 0.940 1.000 0.000
#> SRR1354400 1 0.5178 0.851 0.884 0.116
#> SRR1416538 1 0.0000 0.940 1.000 0.000
#> SRR1340762 1 0.0000 0.940 1.000 0.000
#> SRR1460095 2 0.0000 0.998 0.000 1.000
#> SRR1071181 1 0.0000 0.940 1.000 0.000
#> SRR1380436 2 0.0000 0.998 0.000 1.000
#> SRR1079973 2 0.0000 0.998 0.000 1.000
#> SRR1473611 1 0.0000 0.940 1.000 0.000
#> SRR1074934 1 0.5737 0.832 0.864 0.136
#> SRR1311731 2 0.0000 0.998 0.000 1.000
#> SRR1452957 2 0.0000 0.998 0.000 1.000
#> SRR1429144 1 0.0000 0.940 1.000 0.000
#> SRR1448203 1 0.0000 0.940 1.000 0.000
#> SRR1366102 1 0.0000 0.940 1.000 0.000
#> SRR1434845 1 0.0000 0.940 1.000 0.000
#> SRR1472171 1 0.0000 0.940 1.000 0.000
#> SRR1441075 2 0.0000 0.998 0.000 1.000
#> SRR1321483 1 0.0000 0.940 1.000 0.000
#> SRR1418105 1 0.0000 0.940 1.000 0.000
#> SRR1090022 2 0.0000 0.998 0.000 1.000
#> SRR1077728 1 0.0000 0.940 1.000 0.000
#> SRR1365767 2 0.2423 0.955 0.040 0.960
#> SRR1489670 2 0.0000 0.998 0.000 1.000
#> SRR1343136 1 0.0000 0.940 1.000 0.000
#> SRR1359587 1 0.0000 0.940 1.000 0.000
#> SRR1465782 1 0.0000 0.940 1.000 0.000
#> SRR1434460 1 0.0000 0.940 1.000 0.000
#> SRR1415751 1 0.0000 0.940 1.000 0.000
#> SRR1359027 1 0.0000 0.940 1.000 0.000
#> SRR1408303 1 0.0000 0.940 1.000 0.000
#> SRR1456469 2 0.0000 0.998 0.000 1.000
#> SRR1436717 2 0.0000 0.998 0.000 1.000
#> SRR1480287 1 0.0000 0.940 1.000 0.000
#> SRR1326845 2 0.0000 0.998 0.000 1.000
#> SRR1070133 2 0.0000 0.998 0.000 1.000
#> SRR1387745 2 0.0000 0.998 0.000 1.000
#> SRR1436904 1 0.5178 0.851 0.884 0.116
#> SRR1076465 2 0.0000 0.998 0.000 1.000
#> SRR1433215 1 0.0000 0.940 1.000 0.000
#> SRR1076046 1 0.0000 0.940 1.000 0.000
#> SRR1406643 2 0.0000 0.998 0.000 1.000
#> SRR1499460 1 0.9922 0.293 0.552 0.448
#> SRR1475147 2 0.0000 0.998 0.000 1.000
#> SRR1319301 1 0.0000 0.940 1.000 0.000
#> SRR1486117 1 0.0000 0.940 1.000 0.000
#> SRR1087680 1 0.9922 0.293 0.552 0.448
#> SRR1361391 1 0.9922 0.293 0.552 0.448
#> SRR1365655 1 0.0000 0.940 1.000 0.000
#> SRR1090457 1 0.0000 0.940 1.000 0.000
#> SRR1084154 2 0.0000 0.998 0.000 1.000
#> SRR1380358 1 0.4431 0.871 0.908 0.092
#> SRR1398430 2 0.0000 0.998 0.000 1.000
#> SRR1444242 1 0.0000 0.940 1.000 0.000
#> SRR1440832 2 0.0000 0.998 0.000 1.000
#> SRR1358803 1 0.9393 0.516 0.644 0.356
#> SRR1344079 1 0.6712 0.790 0.824 0.176
#> SRR1072602 1 0.0000 0.940 1.000 0.000
#> SRR1421399 2 0.0000 0.998 0.000 1.000
#> SRR1339086 1 0.0000 0.940 1.000 0.000
#> SRR1099881 1 0.0000 0.940 1.000 0.000
#> SRR1384312 1 0.0000 0.940 1.000 0.000
#> SRR1329508 1 0.0938 0.932 0.988 0.012
#> SRR1440200 2 0.0000 0.998 0.000 1.000
#> SRR1397558 2 0.0000 0.998 0.000 1.000
#> SRR1344364 2 0.0376 0.994 0.004 0.996
#> SRR1387787 1 0.0000 0.940 1.000 0.000
#> SRR1378199 1 0.0000 0.940 1.000 0.000
#> SRR1413119 1 0.9850 0.347 0.572 0.428
#> SRR1310497 1 0.0000 0.940 1.000 0.000
#> SRR1356327 1 0.0000 0.940 1.000 0.000
#> SRR1319059 1 0.0000 0.940 1.000 0.000
#> SRR1085378 1 0.0000 0.940 1.000 0.000
#> SRR1379036 1 0.0000 0.940 1.000 0.000
#> SRR1417656 1 0.0000 0.940 1.000 0.000
#> SRR1454225 1 0.0000 0.940 1.000 0.000
#> SRR1455346 2 0.1184 0.982 0.016 0.984
#> SRR1366412 2 0.0000 0.998 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.5058 0.6837 0.756 0.000 0.244
#> SRR1375371 2 0.1643 0.9323 0.000 0.956 0.044
#> SRR1416819 3 0.5938 0.6763 0.248 0.020 0.732
#> SRR1351907 3 0.5560 0.6890 0.000 0.300 0.700
#> SRR1330371 3 0.3482 0.7772 0.000 0.128 0.872
#> SRR1340782 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1094531 3 0.3412 0.7780 0.000 0.124 0.876
#> SRR1436262 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1093314 3 0.3551 0.7767 0.000 0.132 0.868
#> SRR1435460 3 0.3482 0.7772 0.000 0.128 0.872
#> SRR1485587 3 0.6308 0.0148 0.492 0.000 0.508
#> SRR1470834 1 0.6783 0.3662 0.588 0.016 0.396
#> SRR1442966 3 0.3482 0.7772 0.000 0.128 0.872
#> SRR1410979 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1326449 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1367520 1 0.5650 0.5776 0.688 0.000 0.312
#> SRR1360321 3 0.4121 0.7278 0.168 0.000 0.832
#> SRR1445170 3 0.3551 0.7767 0.000 0.132 0.868
#> SRR1440663 3 0.4121 0.7278 0.168 0.000 0.832
#> SRR1489839 1 0.6267 0.3427 0.548 0.000 0.452
#> SRR1409772 1 0.5882 0.5017 0.652 0.000 0.348
#> SRR1092591 1 0.5810 0.5415 0.664 0.000 0.336
#> SRR1338402 3 0.4172 0.7338 0.156 0.004 0.840
#> SRR1337930 1 0.0592 0.8096 0.988 0.000 0.012
#> SRR1337749 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1401341 1 0.4931 0.6931 0.768 0.000 0.232
#> SRR1396901 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1354400 3 0.6573 0.7604 0.140 0.104 0.756
#> SRR1416538 1 0.6299 0.2659 0.524 0.000 0.476
#> SRR1340762 3 0.4121 0.7278 0.168 0.000 0.832
#> SRR1460095 3 0.3551 0.7750 0.000 0.132 0.868
#> SRR1071181 3 0.4121 0.7278 0.168 0.000 0.832
#> SRR1380436 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1473611 3 0.6267 0.1868 0.452 0.000 0.548
#> SRR1074934 3 0.4249 0.7396 0.108 0.028 0.864
#> SRR1311731 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1366102 1 0.0747 0.8040 0.984 0.000 0.016
#> SRR1434845 3 0.5948 0.3543 0.360 0.000 0.640
#> SRR1472171 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1441075 2 0.0237 0.9754 0.000 0.996 0.004
#> SRR1321483 3 0.4121 0.7278 0.168 0.000 0.832
#> SRR1418105 3 0.4121 0.7278 0.168 0.000 0.832
#> SRR1090022 3 0.5497 0.6963 0.000 0.292 0.708
#> SRR1077728 1 0.5058 0.6837 0.756 0.000 0.244
#> SRR1365767 3 0.3482 0.7772 0.000 0.128 0.872
#> SRR1489670 3 0.5560 0.6890 0.000 0.300 0.700
#> SRR1343136 3 0.4121 0.7278 0.168 0.000 0.832
#> SRR1359587 3 0.4121 0.7278 0.168 0.000 0.832
#> SRR1465782 1 0.5098 0.6798 0.752 0.000 0.248
#> SRR1434460 1 0.5098 0.6798 0.752 0.000 0.248
#> SRR1415751 1 0.5098 0.6797 0.752 0.000 0.248
#> SRR1359027 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1408303 3 0.4121 0.7278 0.168 0.000 0.832
#> SRR1456469 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1436717 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1436904 3 0.6208 0.7611 0.136 0.088 0.776
#> SRR1076465 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1433215 3 0.6026 0.4436 0.376 0.000 0.624
#> SRR1076046 1 0.5216 0.6655 0.740 0.000 0.260
#> SRR1406643 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1499460 3 0.3412 0.7780 0.000 0.124 0.876
#> SRR1475147 3 0.5560 0.6890 0.000 0.300 0.700
#> SRR1319301 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1486117 1 0.1163 0.8027 0.972 0.000 0.028
#> SRR1087680 3 0.3412 0.7780 0.000 0.124 0.876
#> SRR1361391 3 0.3412 0.7780 0.000 0.124 0.876
#> SRR1365655 3 0.4121 0.7278 0.168 0.000 0.832
#> SRR1090457 3 0.4121 0.7278 0.168 0.000 0.832
#> SRR1084154 3 0.5363 0.7151 0.000 0.276 0.724
#> SRR1380358 1 0.3532 0.7530 0.884 0.008 0.108
#> SRR1398430 3 0.5363 0.7151 0.000 0.276 0.724
#> SRR1444242 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1440832 3 0.3482 0.7772 0.000 0.128 0.872
#> SRR1358803 3 0.3551 0.7767 0.000 0.132 0.868
#> SRR1344079 3 0.3551 0.7767 0.000 0.132 0.868
#> SRR1072602 3 0.6260 0.2093 0.448 0.000 0.552
#> SRR1421399 3 0.3686 0.7712 0.000 0.140 0.860
#> SRR1339086 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1384312 3 0.4121 0.7278 0.168 0.000 0.832
#> SRR1329508 3 0.6393 0.7563 0.148 0.088 0.764
#> SRR1440200 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.9789 0.000 1.000 0.000
#> SRR1344364 3 0.5363 0.7151 0.000 0.276 0.724
#> SRR1387787 1 0.5178 0.6702 0.744 0.000 0.256
#> SRR1378199 1 0.3192 0.7761 0.888 0.000 0.112
#> SRR1413119 3 0.3482 0.7772 0.000 0.128 0.872
#> SRR1310497 3 0.6305 -0.1500 0.484 0.000 0.516
#> SRR1356327 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1319059 3 0.4178 0.7239 0.172 0.000 0.828
#> SRR1085378 1 0.6225 0.2599 0.568 0.000 0.432
#> SRR1379036 3 0.4121 0.7278 0.168 0.000 0.832
#> SRR1417656 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.8123 1.000 0.000 0.000
#> SRR1455346 3 0.5363 0.7151 0.000 0.276 0.724
#> SRR1366412 2 0.5098 0.5921 0.000 0.752 0.248
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.1940 0.899 0.924 0.000 0.076 0.000
#> SRR1375371 2 0.3528 0.713 0.000 0.808 0.000 0.192
#> SRR1416819 1 0.5530 0.510 0.632 0.000 0.032 0.336
#> SRR1351907 4 0.2654 0.871 0.000 0.108 0.004 0.888
#> SRR1330371 4 0.0188 0.902 0.000 0.000 0.004 0.996
#> SRR1340782 1 0.0336 0.916 0.992 0.000 0.008 0.000
#> SRR1094531 4 0.3801 0.705 0.000 0.000 0.220 0.780
#> SRR1436262 1 0.0188 0.916 0.996 0.000 0.004 0.000
#> SRR1093314 4 0.0188 0.902 0.000 0.000 0.004 0.996
#> SRR1435460 4 0.0188 0.902 0.000 0.000 0.004 0.996
#> SRR1485587 1 0.4638 0.768 0.776 0.000 0.044 0.180
#> SRR1470834 1 0.6363 0.616 0.656 0.000 0.172 0.172
#> SRR1442966 4 0.0188 0.902 0.000 0.000 0.004 0.996
#> SRR1410979 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.2443 0.900 0.916 0.000 0.060 0.024
#> SRR1360321 3 0.1978 0.808 0.004 0.000 0.928 0.068
#> SRR1445170 4 0.0188 0.902 0.000 0.000 0.004 0.996
#> SRR1440663 3 0.1978 0.808 0.004 0.000 0.928 0.068
#> SRR1489839 3 0.4925 0.183 0.428 0.000 0.572 0.000
#> SRR1409772 1 0.2521 0.899 0.912 0.000 0.064 0.024
#> SRR1092591 1 0.2546 0.899 0.912 0.000 0.060 0.028
#> SRR1338402 3 0.4220 0.639 0.004 0.000 0.748 0.248
#> SRR1337930 1 0.0707 0.914 0.980 0.000 0.020 0.000
#> SRR1337749 1 0.0188 0.916 0.996 0.000 0.004 0.000
#> SRR1401341 1 0.0817 0.914 0.976 0.000 0.024 0.000
#> SRR1396901 1 0.0336 0.916 0.992 0.000 0.008 0.000
#> SRR1354400 3 0.4560 0.563 0.004 0.000 0.700 0.296
#> SRR1416538 3 0.4916 0.193 0.424 0.000 0.576 0.000
#> SRR1340762 3 0.3168 0.779 0.060 0.000 0.884 0.056
#> SRR1460095 4 0.0188 0.902 0.000 0.000 0.004 0.996
#> SRR1071181 3 0.1978 0.808 0.004 0.000 0.928 0.068
#> SRR1380436 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1473611 1 0.5717 0.572 0.632 0.000 0.044 0.324
#> SRR1074934 4 0.2271 0.838 0.076 0.000 0.008 0.916
#> SRR1311731 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0336 0.916 0.992 0.000 0.008 0.000
#> SRR1448203 1 0.0000 0.916 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0188 0.916 0.996 0.000 0.000 0.004
#> SRR1434845 3 0.5080 0.203 0.420 0.000 0.576 0.004
#> SRR1472171 1 0.0336 0.916 0.992 0.000 0.008 0.000
#> SRR1441075 2 0.0469 0.951 0.000 0.988 0.000 0.012
#> SRR1321483 3 0.1978 0.808 0.004 0.000 0.928 0.068
#> SRR1418105 3 0.1978 0.808 0.004 0.000 0.928 0.068
#> SRR1090022 4 0.2654 0.873 0.000 0.108 0.004 0.888
#> SRR1077728 1 0.1867 0.901 0.928 0.000 0.072 0.000
#> SRR1365767 4 0.0188 0.902 0.000 0.000 0.004 0.996
#> SRR1489670 4 0.2530 0.869 0.000 0.112 0.000 0.888
#> SRR1343136 3 0.1978 0.808 0.004 0.000 0.928 0.068
#> SRR1359587 3 0.3052 0.760 0.004 0.000 0.860 0.136
#> SRR1465782 1 0.1940 0.899 0.924 0.000 0.076 0.000
#> SRR1434460 1 0.2255 0.901 0.920 0.000 0.068 0.012
#> SRR1415751 1 0.3123 0.830 0.844 0.000 0.156 0.000
#> SRR1359027 1 0.0336 0.916 0.992 0.000 0.008 0.000
#> SRR1408303 3 0.1978 0.808 0.004 0.000 0.928 0.068
#> SRR1456469 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0188 0.916 0.996 0.000 0.004 0.000
#> SRR1326845 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.4509 0.577 0.004 0.000 0.708 0.288
#> SRR1076465 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1433215 1 0.4842 0.752 0.760 0.000 0.048 0.192
#> SRR1076046 1 0.2408 0.900 0.920 0.000 0.044 0.036
#> SRR1406643 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1499460 4 0.3801 0.705 0.000 0.000 0.220 0.780
#> SRR1475147 4 0.2714 0.870 0.000 0.112 0.004 0.884
#> SRR1319301 1 0.0336 0.916 0.992 0.000 0.008 0.000
#> SRR1486117 1 0.0707 0.914 0.980 0.000 0.000 0.020
#> SRR1087680 4 0.3801 0.705 0.000 0.000 0.220 0.780
#> SRR1361391 4 0.3801 0.705 0.000 0.000 0.220 0.780
#> SRR1365655 3 0.1978 0.808 0.004 0.000 0.928 0.068
#> SRR1090457 3 0.1978 0.808 0.004 0.000 0.928 0.068
#> SRR1084154 4 0.2466 0.878 0.000 0.096 0.004 0.900
#> SRR1380358 1 0.3400 0.772 0.820 0.000 0.000 0.180
#> SRR1398430 4 0.2466 0.878 0.000 0.096 0.004 0.900
#> SRR1444242 1 0.0336 0.916 0.992 0.000 0.008 0.000
#> SRR1440832 4 0.0188 0.902 0.000 0.000 0.004 0.996
#> SRR1358803 4 0.0188 0.902 0.000 0.000 0.004 0.996
#> SRR1344079 4 0.0188 0.902 0.000 0.000 0.004 0.996
#> SRR1072602 1 0.4755 0.746 0.760 0.000 0.040 0.200
#> SRR1421399 4 0.0000 0.902 0.000 0.000 0.000 1.000
#> SRR1339086 1 0.0000 0.916 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.916 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.1978 0.808 0.004 0.000 0.928 0.068
#> SRR1329508 3 0.4372 0.608 0.004 0.000 0.728 0.268
#> SRR1440200 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.962 0.000 1.000 0.000 0.000
#> SRR1344364 4 0.2530 0.877 0.000 0.100 0.004 0.896
#> SRR1387787 1 0.2125 0.899 0.920 0.000 0.076 0.004
#> SRR1378199 1 0.0707 0.914 0.980 0.000 0.000 0.020
#> SRR1413119 4 0.2469 0.830 0.000 0.000 0.108 0.892
#> SRR1310497 3 0.5080 0.203 0.420 0.000 0.576 0.004
#> SRR1356327 1 0.0188 0.916 0.996 0.000 0.004 0.000
#> SRR1319059 3 0.3840 0.751 0.104 0.000 0.844 0.052
#> SRR1085378 1 0.2623 0.898 0.908 0.000 0.064 0.028
#> SRR1379036 3 0.1978 0.808 0.004 0.000 0.928 0.068
#> SRR1417656 1 0.0336 0.916 0.992 0.000 0.008 0.000
#> SRR1454225 1 0.0188 0.916 0.996 0.000 0.004 0.000
#> SRR1455346 4 0.2466 0.878 0.000 0.096 0.004 0.900
#> SRR1366412 2 0.4624 0.417 0.000 0.660 0.000 0.340
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.1106 0.9111 0.964 0.000 0.012 0.000 0.024
#> SRR1375371 2 0.2971 0.7882 0.000 0.836 0.000 0.156 0.008
#> SRR1416819 4 0.0880 0.9262 0.032 0.000 0.000 0.968 0.000
#> SRR1351907 4 0.1697 0.9101 0.000 0.060 0.000 0.932 0.008
#> SRR1330371 4 0.1270 0.9290 0.000 0.000 0.000 0.948 0.052
#> SRR1340782 5 0.1792 0.9537 0.084 0.000 0.000 0.000 0.916
#> SRR1094531 4 0.1270 0.9290 0.000 0.000 0.000 0.948 0.052
#> SRR1436262 1 0.3508 0.6888 0.748 0.000 0.000 0.000 0.252
#> SRR1093314 4 0.1750 0.9234 0.036 0.000 0.000 0.936 0.028
#> SRR1435460 4 0.1270 0.9290 0.000 0.000 0.000 0.948 0.052
#> SRR1485587 1 0.0807 0.9099 0.976 0.000 0.000 0.012 0.012
#> SRR1470834 1 0.1869 0.8887 0.936 0.000 0.016 0.036 0.012
#> SRR1442966 4 0.1270 0.9290 0.000 0.000 0.000 0.948 0.052
#> SRR1410979 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 1 0.0000 0.9171 1.000 0.000 0.000 0.000 0.000
#> SRR1360321 3 0.0000 0.9189 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 4 0.1750 0.9234 0.036 0.000 0.000 0.936 0.028
#> SRR1440663 3 0.0000 0.9189 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 1 0.2966 0.7878 0.816 0.000 0.184 0.000 0.000
#> SRR1409772 1 0.0162 0.9168 0.996 0.000 0.000 0.004 0.000
#> SRR1092591 1 0.0162 0.9167 0.996 0.000 0.000 0.000 0.004
#> SRR1338402 3 0.2909 0.8252 0.000 0.000 0.848 0.140 0.012
#> SRR1337930 5 0.3462 0.8645 0.196 0.000 0.012 0.000 0.792
#> SRR1337749 1 0.3508 0.6888 0.748 0.000 0.000 0.000 0.252
#> SRR1401341 1 0.0703 0.9132 0.976 0.000 0.000 0.000 0.024
#> SRR1396901 5 0.2516 0.9211 0.140 0.000 0.000 0.000 0.860
#> SRR1354400 3 0.3810 0.7787 0.000 0.000 0.792 0.168 0.040
#> SRR1416538 1 0.3143 0.7669 0.796 0.000 0.204 0.000 0.000
#> SRR1340762 3 0.0000 0.9189 0.000 0.000 1.000 0.000 0.000
#> SRR1460095 4 0.0162 0.9335 0.004 0.000 0.000 0.996 0.000
#> SRR1071181 3 0.0000 0.9189 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 1 0.1750 0.8823 0.936 0.000 0.000 0.036 0.028
#> SRR1074934 4 0.1168 0.9264 0.032 0.000 0.000 0.960 0.008
#> SRR1311731 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 5 0.1792 0.9537 0.084 0.000 0.000 0.000 0.916
#> SRR1448203 1 0.0963 0.9084 0.964 0.000 0.000 0.000 0.036
#> SRR1366102 1 0.0609 0.9165 0.980 0.000 0.000 0.000 0.020
#> SRR1434845 1 0.3143 0.7669 0.796 0.000 0.204 0.000 0.000
#> SRR1472171 5 0.1792 0.9537 0.084 0.000 0.000 0.000 0.916
#> SRR1441075 2 0.0703 0.9634 0.000 0.976 0.000 0.024 0.000
#> SRR1321483 3 0.0000 0.9189 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0000 0.9189 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 4 0.1901 0.9317 0.004 0.012 0.000 0.928 0.056
#> SRR1077728 1 0.1106 0.9111 0.964 0.000 0.012 0.000 0.024
#> SRR1365767 4 0.1270 0.9290 0.000 0.000 0.000 0.948 0.052
#> SRR1489670 4 0.1764 0.9081 0.000 0.064 0.000 0.928 0.008
#> SRR1343136 3 0.0000 0.9189 0.000 0.000 1.000 0.000 0.000
#> SRR1359587 3 0.1571 0.8853 0.000 0.000 0.936 0.060 0.004
#> SRR1465782 1 0.0693 0.9158 0.980 0.000 0.012 0.000 0.008
#> SRR1434460 1 0.0290 0.9169 0.992 0.000 0.000 0.000 0.008
#> SRR1415751 1 0.1331 0.9048 0.952 0.000 0.040 0.000 0.008
#> SRR1359027 5 0.1792 0.9537 0.084 0.000 0.000 0.000 0.916
#> SRR1408303 3 0.0000 0.9189 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 5 0.1792 0.9537 0.084 0.000 0.000 0.000 0.916
#> SRR1326845 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.3731 0.7872 0.000 0.000 0.800 0.160 0.040
#> SRR1076465 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 1 0.0566 0.9129 0.984 0.000 0.000 0.004 0.012
#> SRR1076046 1 0.0451 0.9171 0.988 0.000 0.000 0.004 0.008
#> SRR1406643 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 4 0.1270 0.9290 0.000 0.000 0.000 0.948 0.052
#> SRR1475147 4 0.1179 0.9313 0.004 0.016 0.000 0.964 0.016
#> SRR1319301 5 0.3586 0.7827 0.264 0.000 0.000 0.000 0.736
#> SRR1486117 1 0.0290 0.9170 0.992 0.000 0.000 0.000 0.008
#> SRR1087680 4 0.1270 0.9290 0.000 0.000 0.000 0.948 0.052
#> SRR1361391 4 0.1270 0.9290 0.000 0.000 0.000 0.948 0.052
#> SRR1365655 3 0.0000 0.9189 0.000 0.000 1.000 0.000 0.000
#> SRR1090457 3 0.0000 0.9189 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 4 0.1865 0.9217 0.032 0.024 0.000 0.936 0.008
#> SRR1380358 1 0.1549 0.8906 0.944 0.000 0.000 0.040 0.016
#> SRR1398430 4 0.1822 0.9236 0.036 0.004 0.000 0.936 0.024
#> SRR1444242 5 0.1792 0.9537 0.084 0.000 0.000 0.000 0.916
#> SRR1440832 4 0.1043 0.9303 0.000 0.000 0.000 0.960 0.040
#> SRR1358803 4 0.1750 0.9234 0.036 0.000 0.000 0.936 0.028
#> SRR1344079 4 0.1750 0.9234 0.036 0.000 0.000 0.936 0.028
#> SRR1072602 1 0.0798 0.9097 0.976 0.000 0.000 0.016 0.008
#> SRR1421399 4 0.1661 0.9241 0.036 0.000 0.000 0.940 0.024
#> SRR1339086 1 0.1043 0.9063 0.960 0.000 0.000 0.000 0.040
#> SRR1099881 1 0.1043 0.9063 0.960 0.000 0.000 0.000 0.040
#> SRR1384312 3 0.0000 0.9189 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.3477 0.8089 0.000 0.000 0.824 0.136 0.040
#> SRR1440200 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9859 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 4 0.0833 0.9322 0.004 0.004 0.000 0.976 0.016
#> SRR1387787 1 0.0162 0.9171 0.996 0.000 0.000 0.000 0.004
#> SRR1378199 1 0.0451 0.9165 0.988 0.000 0.000 0.004 0.008
#> SRR1413119 4 0.1270 0.9290 0.000 0.000 0.000 0.948 0.052
#> SRR1310497 1 0.3143 0.7669 0.796 0.000 0.204 0.000 0.000
#> SRR1356327 1 0.2648 0.8215 0.848 0.000 0.000 0.000 0.152
#> SRR1319059 3 0.4009 0.5348 0.004 0.000 0.684 0.312 0.000
#> SRR1085378 1 0.0162 0.9167 0.996 0.000 0.000 0.000 0.004
#> SRR1379036 3 0.0000 0.9189 0.000 0.000 1.000 0.000 0.000
#> SRR1417656 5 0.1792 0.9537 0.084 0.000 0.000 0.000 0.916
#> SRR1454225 1 0.3480 0.6953 0.752 0.000 0.000 0.000 0.248
#> SRR1455346 4 0.1822 0.9236 0.036 0.004 0.000 0.936 0.024
#> SRR1366412 4 0.4560 0.0511 0.000 0.484 0.000 0.508 0.008
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1313664 6 0.0806 0.8720 0.020 0.000 0.000 0.000 0.008 0.972
#> SRR1375371 2 0.2902 0.7224 0.000 0.800 0.000 0.196 0.004 0.000
#> SRR1416819 4 0.4216 0.3463 0.004 0.000 0.000 0.676 0.032 0.288
#> SRR1351907 4 0.1152 0.7560 0.000 0.044 0.000 0.952 0.004 0.000
#> SRR1330371 4 0.2793 0.6081 0.000 0.000 0.000 0.800 0.200 0.000
#> SRR1340782 1 0.0713 0.9018 0.972 0.000 0.000 0.000 0.000 0.028
#> SRR1094531 5 0.3565 1.0000 0.000 0.000 0.004 0.304 0.692 0.000
#> SRR1436262 6 0.3531 0.5477 0.328 0.000 0.000 0.000 0.000 0.672
#> SRR1093314 4 0.2709 0.6981 0.000 0.000 0.000 0.848 0.132 0.020
#> SRR1435460 4 0.2697 0.6212 0.000 0.000 0.000 0.812 0.188 0.000
#> SRR1485587 6 0.1340 0.8601 0.004 0.000 0.000 0.040 0.008 0.948
#> SRR1470834 6 0.0909 0.8711 0.012 0.000 0.000 0.020 0.000 0.968
#> SRR1442966 4 0.2762 0.6133 0.000 0.000 0.000 0.804 0.196 0.000
#> SRR1410979 2 0.0000 0.9796 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.0291 0.9739 0.000 0.992 0.000 0.004 0.004 0.000
#> SRR1367520 6 0.0146 0.8731 0.004 0.000 0.000 0.000 0.000 0.996
#> SRR1360321 3 0.0000 0.9108 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 4 0.2709 0.6981 0.000 0.000 0.000 0.848 0.132 0.020
#> SRR1440663 3 0.0000 0.9108 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 6 0.5574 0.5502 0.032 0.000 0.180 0.000 0.156 0.632
#> SRR1409772 6 0.0291 0.8724 0.004 0.000 0.000 0.004 0.000 0.992
#> SRR1092591 6 0.0146 0.8731 0.004 0.000 0.000 0.000 0.000 0.996
#> SRR1338402 3 0.3563 0.7593 0.000 0.000 0.800 0.092 0.108 0.000
#> SRR1337930 1 0.3314 0.6932 0.740 0.000 0.000 0.000 0.004 0.256
#> SRR1337749 6 0.3515 0.5549 0.324 0.000 0.000 0.000 0.000 0.676
#> SRR1401341 6 0.1075 0.8657 0.048 0.000 0.000 0.000 0.000 0.952
#> SRR1396901 1 0.1387 0.8807 0.932 0.000 0.000 0.000 0.000 0.068
#> SRR1354400 3 0.3782 0.7324 0.000 0.000 0.780 0.124 0.096 0.000
#> SRR1416538 6 0.5937 0.4789 0.032 0.000 0.220 0.000 0.172 0.576
#> SRR1340762 3 0.3919 0.7757 0.032 0.000 0.772 0.000 0.172 0.024
#> SRR1460095 4 0.0632 0.7634 0.000 0.000 0.000 0.976 0.024 0.000
#> SRR1071181 3 0.0000 0.9108 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9796 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0146 0.9770 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1473611 6 0.1442 0.8583 0.004 0.000 0.000 0.040 0.012 0.944
#> SRR1074934 4 0.4085 0.5669 0.000 0.000 0.000 0.752 0.128 0.120
#> SRR1311731 2 0.0000 0.9796 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9796 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1429144 1 0.0713 0.9018 0.972 0.000 0.000 0.000 0.000 0.028
#> SRR1448203 6 0.1204 0.8642 0.056 0.000 0.000 0.000 0.000 0.944
#> SRR1366102 6 0.1462 0.8665 0.056 0.000 0.000 0.008 0.000 0.936
#> SRR1434845 6 0.5937 0.4789 0.032 0.000 0.220 0.000 0.172 0.576
#> SRR1472171 1 0.0713 0.9018 0.972 0.000 0.000 0.000 0.000 0.028
#> SRR1441075 2 0.1471 0.9138 0.000 0.932 0.000 0.064 0.004 0.000
#> SRR1321483 3 0.0000 0.9108 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.9108 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 4 0.0806 0.7659 0.000 0.020 0.000 0.972 0.008 0.000
#> SRR1077728 6 0.0806 0.8720 0.020 0.000 0.000 0.000 0.008 0.972
#> SRR1365767 4 0.2793 0.6081 0.000 0.000 0.000 0.800 0.200 0.000
#> SRR1489670 4 0.1152 0.7560 0.000 0.044 0.000 0.952 0.004 0.000
#> SRR1343136 3 0.0000 0.9108 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1359587 3 0.0717 0.8999 0.000 0.000 0.976 0.016 0.008 0.000
#> SRR1465782 6 0.0405 0.8732 0.004 0.000 0.000 0.000 0.008 0.988
#> SRR1434460 6 0.0291 0.8739 0.004 0.000 0.000 0.000 0.004 0.992
#> SRR1415751 6 0.0820 0.8721 0.016 0.000 0.000 0.000 0.012 0.972
#> SRR1359027 1 0.0713 0.9018 0.972 0.000 0.000 0.000 0.000 0.028
#> SRR1408303 3 0.0000 0.9108 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1456469 2 0.0000 0.9796 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9796 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.1714 0.8621 0.908 0.000 0.000 0.000 0.000 0.092
#> SRR1326845 2 0.0000 0.9796 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9796 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9796 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436904 3 0.3740 0.7389 0.000 0.000 0.784 0.120 0.096 0.000
#> SRR1076465 2 0.0000 0.9796 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 6 0.0777 0.8658 0.004 0.000 0.000 0.024 0.000 0.972
#> SRR1076046 6 0.1003 0.8735 0.016 0.000 0.000 0.020 0.000 0.964
#> SRR1406643 2 0.0000 0.9796 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1499460 5 0.3565 1.0000 0.000 0.000 0.004 0.304 0.692 0.000
#> SRR1475147 4 0.0692 0.7665 0.000 0.020 0.000 0.976 0.004 0.000
#> SRR1319301 1 0.3409 0.6259 0.700 0.000 0.000 0.000 0.000 0.300
#> SRR1486117 6 0.1367 0.8698 0.044 0.000 0.000 0.012 0.000 0.944
#> SRR1087680 5 0.3565 1.0000 0.000 0.000 0.004 0.304 0.692 0.000
#> SRR1361391 5 0.3565 1.0000 0.000 0.000 0.004 0.304 0.692 0.000
#> SRR1365655 3 0.3550 0.7964 0.020 0.000 0.800 0.000 0.156 0.024
#> SRR1090457 3 0.0000 0.9108 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.0692 0.7706 0.000 0.000 0.000 0.976 0.004 0.020
#> SRR1380358 6 0.1480 0.8694 0.040 0.000 0.000 0.020 0.000 0.940
#> SRR1398430 4 0.0909 0.7699 0.000 0.000 0.000 0.968 0.012 0.020
#> SRR1444242 1 0.0713 0.9018 0.972 0.000 0.000 0.000 0.000 0.028
#> SRR1440832 4 0.1007 0.7534 0.000 0.000 0.000 0.956 0.044 0.000
#> SRR1358803 4 0.3792 0.6378 0.000 0.000 0.000 0.780 0.108 0.112
#> SRR1344079 4 0.3782 0.6465 0.000 0.000 0.000 0.780 0.124 0.096
#> SRR1072602 6 0.0692 0.8663 0.004 0.000 0.000 0.020 0.000 0.976
#> SRR1421399 4 0.1176 0.7677 0.000 0.000 0.000 0.956 0.024 0.020
#> SRR1339086 6 0.1643 0.8569 0.068 0.000 0.000 0.000 0.008 0.924
#> SRR1099881 6 0.1918 0.8426 0.088 0.000 0.000 0.000 0.008 0.904
#> SRR1384312 3 0.0000 0.9108 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.1958 0.8445 0.000 0.000 0.896 0.100 0.004 0.000
#> SRR1440200 2 0.0000 0.9796 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9796 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1344364 4 0.0146 0.7686 0.000 0.000 0.000 0.996 0.004 0.000
#> SRR1387787 6 0.0291 0.8739 0.004 0.000 0.000 0.000 0.004 0.992
#> SRR1378199 6 0.1391 0.8699 0.040 0.000 0.000 0.016 0.000 0.944
#> SRR1413119 4 0.2793 0.6081 0.000 0.000 0.000 0.800 0.200 0.000
#> SRR1310497 6 0.5937 0.4789 0.032 0.000 0.220 0.000 0.172 0.576
#> SRR1356327 6 0.2996 0.7073 0.228 0.000 0.000 0.000 0.000 0.772
#> SRR1319059 3 0.4136 0.7649 0.032 0.000 0.760 0.000 0.172 0.036
#> SRR1085378 6 0.0291 0.8726 0.004 0.000 0.000 0.004 0.000 0.992
#> SRR1379036 3 0.0000 0.9108 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1417656 1 0.0713 0.9018 0.972 0.000 0.000 0.000 0.000 0.028
#> SRR1454225 6 0.3499 0.5626 0.320 0.000 0.000 0.000 0.000 0.680
#> SRR1455346 4 0.1616 0.7604 0.000 0.000 0.000 0.932 0.048 0.020
#> SRR1366412 4 0.3966 0.0963 0.000 0.444 0.000 0.552 0.004 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", "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 17697 rows and 104 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 4.
#>
#> 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.949 0.980 0.4115 0.586 0.586
#> 3 3 1.000 0.959 0.985 0.5733 0.737 0.562
#> 4 4 0.940 0.919 0.961 0.1398 0.876 0.663
#> 5 5 0.855 0.715 0.889 0.0376 0.987 0.951
#> 6 6 0.801 0.732 0.875 0.0296 0.940 0.774
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 4
#> attr(,"optional")
#> [1] 2 3
There is also optional best \(k\) = 2 3 that is worth to check.
Following 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
#> SRR1313664 1 0.000 0.9875 1.000 0.000
#> SRR1375371 2 0.000 0.9580 0.000 1.000
#> SRR1416819 1 0.000 0.9875 1.000 0.000
#> SRR1351907 2 0.000 0.9580 0.000 1.000
#> SRR1330371 2 0.983 0.2949 0.424 0.576
#> SRR1340782 1 0.000 0.9875 1.000 0.000
#> SRR1094531 1 0.000 0.9875 1.000 0.000
#> SRR1436262 1 0.000 0.9875 1.000 0.000
#> SRR1093314 1 0.000 0.9875 1.000 0.000
#> SRR1435460 1 0.000 0.9875 1.000 0.000
#> SRR1485587 1 0.000 0.9875 1.000 0.000
#> SRR1470834 1 0.000 0.9875 1.000 0.000
#> SRR1442966 1 0.998 0.0384 0.528 0.472
#> SRR1410979 2 0.000 0.9580 0.000 1.000
#> SRR1326449 2 0.000 0.9580 0.000 1.000
#> SRR1367520 1 0.000 0.9875 1.000 0.000
#> SRR1360321 1 0.000 0.9875 1.000 0.000
#> SRR1445170 1 0.000 0.9875 1.000 0.000
#> SRR1440663 1 0.000 0.9875 1.000 0.000
#> SRR1489839 1 0.000 0.9875 1.000 0.000
#> SRR1409772 1 0.000 0.9875 1.000 0.000
#> SRR1092591 1 0.000 0.9875 1.000 0.000
#> SRR1338402 1 0.000 0.9875 1.000 0.000
#> SRR1337930 1 0.000 0.9875 1.000 0.000
#> SRR1337749 1 0.000 0.9875 1.000 0.000
#> SRR1401341 1 0.000 0.9875 1.000 0.000
#> SRR1396901 1 0.000 0.9875 1.000 0.000
#> SRR1354400 1 0.000 0.9875 1.000 0.000
#> SRR1416538 1 0.000 0.9875 1.000 0.000
#> SRR1340762 1 0.000 0.9875 1.000 0.000
#> SRR1460095 2 0.000 0.9580 0.000 1.000
#> SRR1071181 1 0.000 0.9875 1.000 0.000
#> SRR1380436 2 0.000 0.9580 0.000 1.000
#> SRR1079973 2 0.000 0.9580 0.000 1.000
#> SRR1473611 1 0.000 0.9875 1.000 0.000
#> SRR1074934 1 0.000 0.9875 1.000 0.000
#> SRR1311731 2 0.000 0.9580 0.000 1.000
#> SRR1452957 2 0.000 0.9580 0.000 1.000
#> SRR1429144 1 0.000 0.9875 1.000 0.000
#> SRR1448203 1 0.000 0.9875 1.000 0.000
#> SRR1366102 1 0.000 0.9875 1.000 0.000
#> SRR1434845 1 0.000 0.9875 1.000 0.000
#> SRR1472171 1 0.000 0.9875 1.000 0.000
#> SRR1441075 2 0.000 0.9580 0.000 1.000
#> SRR1321483 1 0.000 0.9875 1.000 0.000
#> SRR1418105 1 0.000 0.9875 1.000 0.000
#> SRR1090022 2 0.000 0.9580 0.000 1.000
#> SRR1077728 1 0.000 0.9875 1.000 0.000
#> SRR1365767 2 0.866 0.6049 0.288 0.712
#> SRR1489670 2 0.000 0.9580 0.000 1.000
#> SRR1343136 1 0.000 0.9875 1.000 0.000
#> SRR1359587 1 0.000 0.9875 1.000 0.000
#> SRR1465782 1 0.000 0.9875 1.000 0.000
#> SRR1434460 1 0.000 0.9875 1.000 0.000
#> SRR1415751 1 0.000 0.9875 1.000 0.000
#> SRR1359027 1 0.000 0.9875 1.000 0.000
#> SRR1408303 1 0.000 0.9875 1.000 0.000
#> SRR1456469 2 0.000 0.9580 0.000 1.000
#> SRR1436717 2 0.000 0.9580 0.000 1.000
#> SRR1480287 1 0.000 0.9875 1.000 0.000
#> SRR1326845 2 0.000 0.9580 0.000 1.000
#> SRR1070133 2 0.000 0.9580 0.000 1.000
#> SRR1387745 2 0.000 0.9580 0.000 1.000
#> SRR1436904 1 0.000 0.9875 1.000 0.000
#> SRR1076465 2 0.000 0.9580 0.000 1.000
#> SRR1433215 1 0.000 0.9875 1.000 0.000
#> SRR1076046 1 0.000 0.9875 1.000 0.000
#> SRR1406643 2 0.000 0.9580 0.000 1.000
#> SRR1499460 1 0.224 0.9509 0.964 0.036
#> SRR1475147 2 0.000 0.9580 0.000 1.000
#> SRR1319301 1 0.000 0.9875 1.000 0.000
#> SRR1486117 1 0.000 0.9875 1.000 0.000
#> SRR1087680 1 0.506 0.8620 0.888 0.112
#> SRR1361391 1 0.000 0.9875 1.000 0.000
#> SRR1365655 1 0.000 0.9875 1.000 0.000
#> SRR1090457 1 0.000 0.9875 1.000 0.000
#> SRR1084154 2 0.000 0.9580 0.000 1.000
#> SRR1380358 1 0.000 0.9875 1.000 0.000
#> SRR1398430 2 0.388 0.8898 0.076 0.924
#> SRR1444242 1 0.000 0.9875 1.000 0.000
#> SRR1440832 2 0.000 0.9580 0.000 1.000
#> SRR1358803 1 0.000 0.9875 1.000 0.000
#> SRR1344079 1 0.000 0.9875 1.000 0.000
#> SRR1072602 1 0.000 0.9875 1.000 0.000
#> SRR1421399 2 0.969 0.3715 0.396 0.604
#> SRR1339086 1 0.000 0.9875 1.000 0.000
#> SRR1099881 1 0.000 0.9875 1.000 0.000
#> SRR1384312 1 0.000 0.9875 1.000 0.000
#> SRR1329508 1 0.000 0.9875 1.000 0.000
#> SRR1440200 2 0.000 0.9580 0.000 1.000
#> SRR1397558 2 0.000 0.9580 0.000 1.000
#> SRR1344364 2 0.000 0.9580 0.000 1.000
#> SRR1387787 1 0.000 0.9875 1.000 0.000
#> SRR1378199 1 0.000 0.9875 1.000 0.000
#> SRR1413119 1 0.000 0.9875 1.000 0.000
#> SRR1310497 1 0.000 0.9875 1.000 0.000
#> SRR1356327 1 0.000 0.9875 1.000 0.000
#> SRR1319059 1 0.000 0.9875 1.000 0.000
#> SRR1085378 1 0.000 0.9875 1.000 0.000
#> SRR1379036 1 0.000 0.9875 1.000 0.000
#> SRR1417656 1 0.000 0.9875 1.000 0.000
#> SRR1454225 1 0.000 0.9875 1.000 0.000
#> SRR1455346 1 0.808 0.6556 0.752 0.248
#> SRR1366412 2 0.000 0.9580 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1375371 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1416819 3 0.6302 0.0835 0.480 0.000 0.520
#> SRR1351907 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1330371 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1340782 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1094531 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1436262 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1093314 1 0.2261 0.9179 0.932 0.068 0.000
#> SRR1435460 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1485587 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1470834 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1442966 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1410979 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1326449 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1367520 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1360321 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1445170 1 0.0237 0.9815 0.996 0.004 0.000
#> SRR1440663 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1489839 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1409772 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1092591 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1338402 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1337930 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1401341 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1396901 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1354400 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1416538 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1340762 3 0.4452 0.7552 0.192 0.000 0.808
#> SRR1460095 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1071181 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1380436 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1473611 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1074934 3 0.0424 0.9619 0.008 0.000 0.992
#> SRR1311731 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1434845 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1472171 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1321483 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1418105 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1090022 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1077728 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1365767 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1489670 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1343136 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1359587 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1465782 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1434460 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1415751 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1359027 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1408303 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1456469 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1436717 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1436904 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1076465 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1433215 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1076046 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1406643 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1499460 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1475147 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1319301 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1087680 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1361391 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1365655 3 0.1860 0.9173 0.052 0.000 0.948
#> SRR1090457 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1084154 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1380358 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1398430 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1444242 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1440832 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1358803 1 0.0237 0.9815 0.996 0.004 0.000
#> SRR1344079 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1072602 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1421399 2 0.3551 0.8345 0.132 0.868 0.000
#> SRR1339086 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1384312 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1329508 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1440200 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1344364 2 0.0000 0.9940 0.000 1.000 0.000
#> SRR1387787 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1378199 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1413119 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1310497 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1356327 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1319059 1 0.3340 0.8518 0.880 0.000 0.120
#> SRR1085378 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1379036 3 0.0000 0.9692 0.000 0.000 1.000
#> SRR1417656 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1455346 1 0.6308 0.0338 0.508 0.492 0.000
#> SRR1366412 2 0.0000 0.9940 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1416819 4 0.0000 0.852 0.000 0.000 0.000 1.000
#> SRR1351907 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1330371 3 0.0921 0.951 0.000 0.000 0.972 0.028
#> SRR1340782 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1094531 3 0.0817 0.954 0.000 0.000 0.976 0.024
#> SRR1436262 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.0000 0.852 0.000 0.000 0.000 1.000
#> SRR1435460 4 0.0592 0.847 0.000 0.000 0.016 0.984
#> SRR1485587 4 0.0817 0.860 0.024 0.000 0.000 0.976
#> SRR1470834 1 0.2281 0.881 0.904 0.000 0.000 0.096
#> SRR1442966 4 0.3764 0.665 0.000 0.000 0.216 0.784
#> SRR1410979 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.0336 0.967 0.992 0.000 0.000 0.008
#> SRR1360321 3 0.0000 0.960 0.000 0.000 1.000 0.000
#> SRR1445170 4 0.0592 0.858 0.016 0.000 0.000 0.984
#> SRR1440663 3 0.0000 0.960 0.000 0.000 1.000 0.000
#> SRR1489839 1 0.0707 0.958 0.980 0.000 0.020 0.000
#> SRR1409772 1 0.4222 0.589 0.728 0.000 0.000 0.272
#> SRR1092591 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1338402 3 0.0000 0.960 0.000 0.000 1.000 0.000
#> SRR1337930 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.0469 0.957 0.000 0.000 0.988 0.012
#> SRR1416538 1 0.0817 0.954 0.976 0.000 0.024 0.000
#> SRR1340762 3 0.4072 0.627 0.252 0.000 0.748 0.000
#> SRR1460095 4 0.3311 0.744 0.000 0.172 0.000 0.828
#> SRR1071181 3 0.0000 0.960 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1473611 4 0.0817 0.860 0.024 0.000 0.000 0.976
#> SRR1074934 4 0.0000 0.852 0.000 0.000 0.000 1.000
#> SRR1311731 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0336 0.967 0.992 0.000 0.000 0.008
#> SRR1434845 1 0.0817 0.954 0.976 0.000 0.024 0.000
#> SRR1472171 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.0000 0.960 0.000 0.000 1.000 0.000
#> SRR1418105 3 0.0000 0.960 0.000 0.000 1.000 0.000
#> SRR1090022 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1077728 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1365767 3 0.0817 0.954 0.000 0.000 0.976 0.024
#> SRR1489670 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1343136 3 0.0000 0.960 0.000 0.000 1.000 0.000
#> SRR1359587 3 0.0000 0.960 0.000 0.000 1.000 0.000
#> SRR1465782 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1434460 1 0.0817 0.955 0.976 0.000 0.000 0.024
#> SRR1415751 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.960 0.000 0.000 1.000 0.000
#> SRR1456469 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.0336 0.958 0.000 0.000 0.992 0.008
#> SRR1076465 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1433215 1 0.3219 0.788 0.836 0.000 0.000 0.164
#> SRR1076046 4 0.4277 0.651 0.280 0.000 0.000 0.720
#> SRR1406643 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1499460 3 0.0817 0.954 0.000 0.000 0.976 0.024
#> SRR1475147 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1319301 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.1792 0.914 0.932 0.000 0.000 0.068
#> SRR1087680 3 0.0817 0.954 0.000 0.000 0.976 0.024
#> SRR1361391 3 0.0817 0.954 0.000 0.000 0.976 0.024
#> SRR1365655 3 0.1792 0.889 0.068 0.000 0.932 0.000
#> SRR1090457 3 0.0000 0.960 0.000 0.000 1.000 0.000
#> SRR1084154 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1380358 4 0.1474 0.852 0.052 0.000 0.000 0.948
#> SRR1398430 2 0.0188 0.994 0.004 0.996 0.000 0.000
#> SRR1444242 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1440832 3 0.0817 0.954 0.000 0.000 0.976 0.024
#> SRR1358803 4 0.0817 0.860 0.024 0.000 0.000 0.976
#> SRR1344079 4 0.0817 0.860 0.024 0.000 0.000 0.976
#> SRR1072602 4 0.4331 0.638 0.288 0.000 0.000 0.712
#> SRR1421399 4 0.6101 0.387 0.052 0.388 0.000 0.560
#> SRR1339086 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.960 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.0000 0.960 0.000 0.000 1.000 0.000
#> SRR1440200 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.0469 0.987 0.000 0.988 0.000 0.012
#> SRR1387787 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1378199 4 0.1389 0.854 0.048 0.000 0.000 0.952
#> SRR1413119 3 0.4746 0.477 0.000 0.000 0.632 0.368
#> SRR1310497 1 0.0817 0.954 0.976 0.000 0.024 0.000
#> SRR1356327 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1319059 1 0.2760 0.840 0.872 0.000 0.128 0.000
#> SRR1085378 4 0.4431 0.609 0.304 0.000 0.000 0.696
#> SRR1379036 3 0.0000 0.960 0.000 0.000 1.000 0.000
#> SRR1417656 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.972 1.000 0.000 0.000 0.000
#> SRR1455346 4 0.5523 0.371 0.024 0.380 0.000 0.596
#> SRR1366412 2 0.0000 0.999 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.0404 0.8691 0.988 0.000 0.000 0.000 0.012
#> SRR1375371 2 0.4088 0.5708 0.000 0.632 0.000 0.000 0.368
#> SRR1416819 4 0.2806 0.5466 0.000 0.000 0.004 0.844 0.152
#> SRR1351907 2 0.0290 0.9607 0.000 0.992 0.000 0.000 0.008
#> SRR1330371 3 0.1012 0.8525 0.000 0.000 0.968 0.012 0.020
#> SRR1340782 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1094531 3 0.4434 0.4790 0.000 0.000 0.536 0.004 0.460
#> SRR1436262 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.0404 0.6310 0.000 0.000 0.000 0.988 0.012
#> SRR1435460 4 0.2012 0.5845 0.000 0.000 0.060 0.920 0.020
#> SRR1485587 4 0.0771 0.6250 0.020 0.000 0.000 0.976 0.004
#> SRR1470834 1 0.3990 0.5792 0.740 0.000 0.004 0.244 0.012
#> SRR1442966 4 0.6753 0.0547 0.000 0.000 0.340 0.392 0.268
#> SRR1410979 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 1 0.5952 -0.0137 0.548 0.000 0.000 0.324 0.128
#> SRR1360321 3 0.0162 0.8568 0.000 0.000 0.996 0.000 0.004
#> SRR1445170 4 0.0162 0.6303 0.000 0.000 0.000 0.996 0.004
#> SRR1440663 3 0.0162 0.8565 0.000 0.000 0.996 0.000 0.004
#> SRR1489839 1 0.0162 0.8732 0.996 0.000 0.000 0.000 0.004
#> SRR1409772 1 0.6809 -0.5756 0.364 0.000 0.000 0.332 0.304
#> SRR1092591 1 0.0290 0.8717 0.992 0.000 0.000 0.000 0.008
#> SRR1338402 3 0.0290 0.8563 0.000 0.000 0.992 0.000 0.008
#> SRR1337930 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0162 0.8732 0.996 0.000 0.000 0.000 0.004
#> SRR1401341 1 0.0162 0.8732 0.996 0.000 0.000 0.000 0.004
#> SRR1396901 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0451 0.8553 0.000 0.000 0.988 0.004 0.008
#> SRR1416538 1 0.0404 0.8682 0.988 0.000 0.012 0.000 0.000
#> SRR1340762 3 0.2389 0.7433 0.116 0.000 0.880 0.000 0.004
#> SRR1460095 4 0.3391 0.4158 0.000 0.188 0.000 0.800 0.012
#> SRR1071181 3 0.0000 0.8570 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 4 0.3779 0.2817 0.012 0.000 0.000 0.752 0.236
#> SRR1074934 4 0.0963 0.6239 0.000 0.000 0.000 0.964 0.036
#> SRR1311731 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0162 0.8731 0.996 0.000 0.000 0.004 0.000
#> SRR1366102 1 0.1357 0.8356 0.948 0.000 0.000 0.048 0.004
#> SRR1434845 1 0.0566 0.8665 0.984 0.000 0.012 0.000 0.004
#> SRR1472171 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0162 0.8568 0.000 0.000 0.996 0.000 0.004
#> SRR1418105 3 0.0162 0.8568 0.000 0.000 0.996 0.000 0.004
#> SRR1090022 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1077728 1 0.0963 0.8537 0.964 0.000 0.000 0.000 0.036
#> SRR1365767 3 0.4437 0.4717 0.000 0.000 0.532 0.004 0.464
#> SRR1489670 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1343136 3 0.4455 0.5384 0.000 0.000 0.588 0.008 0.404
#> SRR1359587 3 0.0000 0.8570 0.000 0.000 1.000 0.000 0.000
#> SRR1465782 1 0.3269 0.7330 0.848 0.000 0.000 0.056 0.096
#> SRR1434460 1 0.5492 0.1965 0.608 0.000 0.004 0.312 0.076
#> SRR1415751 1 0.0162 0.8731 0.996 0.000 0.000 0.000 0.004
#> SRR1359027 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0404 0.8561 0.000 0.000 0.988 0.000 0.012
#> SRR1456469 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0693 0.8544 0.000 0.000 0.980 0.012 0.008
#> SRR1076465 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 1 0.4575 0.2339 0.596 0.000 0.004 0.392 0.008
#> SRR1076046 4 0.5624 -0.1811 0.308 0.000 0.004 0.600 0.088
#> SRR1406643 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 3 0.4151 0.6403 0.000 0.000 0.652 0.004 0.344
#> SRR1475147 2 0.0290 0.9612 0.000 0.992 0.000 0.000 0.008
#> SRR1319301 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.3430 0.6325 0.776 0.000 0.000 0.220 0.004
#> SRR1087680 3 0.4299 0.5852 0.000 0.000 0.608 0.004 0.388
#> SRR1361391 3 0.2011 0.8262 0.000 0.000 0.908 0.004 0.088
#> SRR1365655 3 0.1764 0.8062 0.064 0.000 0.928 0.000 0.008
#> SRR1090457 3 0.0162 0.8565 0.000 0.000 0.996 0.000 0.004
#> SRR1084154 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1380358 4 0.0807 0.6304 0.012 0.000 0.000 0.976 0.012
#> SRR1398430 2 0.0703 0.9400 0.024 0.976 0.000 0.000 0.000
#> SRR1444242 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1440832 3 0.4238 0.6084 0.000 0.000 0.628 0.004 0.368
#> SRR1358803 4 0.4196 -0.1744 0.004 0.000 0.000 0.640 0.356
#> SRR1344079 4 0.0162 0.6305 0.004 0.000 0.000 0.996 0.000
#> SRR1072602 5 0.6031 0.0000 0.128 0.000 0.000 0.352 0.520
#> SRR1421399 4 0.8157 -0.3269 0.128 0.248 0.000 0.396 0.228
#> SRR1339086 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.3003 0.7695 0.000 0.000 0.812 0.000 0.188
#> SRR1329508 3 0.0404 0.8551 0.000 0.000 0.988 0.000 0.012
#> SRR1440200 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9674 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 2 0.4666 0.4780 0.000 0.572 0.000 0.016 0.412
#> SRR1387787 1 0.1502 0.8329 0.940 0.000 0.000 0.004 0.056
#> SRR1378199 4 0.2450 0.5516 0.052 0.000 0.000 0.900 0.048
#> SRR1413119 3 0.4435 0.4874 0.000 0.000 0.648 0.336 0.016
#> SRR1310497 1 0.0671 0.8640 0.980 0.000 0.016 0.000 0.004
#> SRR1356327 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1319059 1 0.3980 0.4886 0.708 0.000 0.284 0.000 0.008
#> SRR1085378 1 0.6685 -0.4389 0.416 0.000 0.000 0.244 0.340
#> SRR1379036 3 0.0000 0.8570 0.000 0.000 1.000 0.000 0.000
#> SRR1417656 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.8744 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.5078 0.4534 0.048 0.060 0.000 0.744 0.148
#> SRR1366412 2 0.0000 0.9674 0.000 1.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
#> SRR1313664 1 0.1141 0.8639 0.948 0.000 0.000 0.000 0.000 0.052
#> SRR1375371 5 0.3728 0.4062 0.000 0.344 0.000 0.000 0.652 0.004
#> SRR1416819 4 0.2808 0.6921 0.000 0.000 0.076 0.868 0.048 0.008
#> SRR1351907 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1330371 3 0.3795 0.6735 0.000 0.000 0.784 0.004 0.076 0.136
#> SRR1340782 1 0.0000 0.8795 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1094531 6 0.4787 0.3463 0.000 0.000 0.336 0.000 0.068 0.596
#> SRR1436262 1 0.0000 0.8795 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.0790 0.7566 0.000 0.000 0.000 0.968 0.032 0.000
#> SRR1435460 4 0.3447 0.6659 0.000 0.000 0.108 0.820 0.008 0.064
#> SRR1485587 4 0.0767 0.7614 0.012 0.000 0.000 0.976 0.004 0.008
#> SRR1470834 4 0.4407 0.3689 0.344 0.000 0.008 0.628 0.008 0.012
#> SRR1442966 5 0.6131 0.0421 0.000 0.000 0.388 0.112 0.460 0.040
#> SRR1410979 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.1625 0.9084 0.000 0.928 0.000 0.000 0.012 0.060
#> SRR1367520 1 0.4780 0.1616 0.480 0.000 0.000 0.040 0.004 0.476
#> SRR1360321 3 0.0458 0.8493 0.000 0.000 0.984 0.000 0.000 0.016
#> SRR1445170 4 0.1333 0.7485 0.000 0.000 0.000 0.944 0.008 0.048
#> SRR1440663 3 0.0458 0.8487 0.000 0.000 0.984 0.000 0.000 0.016
#> SRR1489839 1 0.0000 0.8795 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1409772 6 0.5597 0.2143 0.204 0.000 0.000 0.224 0.004 0.568
#> SRR1092591 1 0.0881 0.8766 0.972 0.000 0.000 0.008 0.008 0.012
#> SRR1338402 3 0.0405 0.8445 0.000 0.000 0.988 0.000 0.004 0.008
#> SRR1337930 1 0.0000 0.8795 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0603 0.8747 0.980 0.000 0.000 0.000 0.016 0.004
#> SRR1401341 1 0.1327 0.8535 0.936 0.000 0.000 0.064 0.000 0.000
#> SRR1396901 1 0.0146 0.8795 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1354400 3 0.0508 0.8451 0.000 0.000 0.984 0.000 0.004 0.012
#> SRR1416538 1 0.0260 0.8785 0.992 0.000 0.008 0.000 0.000 0.000
#> SRR1340762 3 0.2226 0.7792 0.060 0.000 0.904 0.000 0.008 0.028
#> SRR1460095 4 0.4563 0.5486 0.000 0.184 0.000 0.716 0.012 0.088
#> SRR1071181 3 0.0458 0.8487 0.000 0.000 0.984 0.000 0.000 0.016
#> SRR1380436 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1473611 4 0.4602 0.4520 0.012 0.000 0.000 0.636 0.036 0.316
#> SRR1074934 4 0.0622 0.7576 0.000 0.000 0.000 0.980 0.012 0.008
#> SRR1311731 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.0146 0.9874 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1429144 1 0.0000 0.8795 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.2805 0.7543 0.828 0.000 0.000 0.160 0.000 0.012
#> SRR1366102 1 0.2048 0.8065 0.880 0.000 0.000 0.120 0.000 0.000
#> SRR1434845 1 0.2113 0.8425 0.912 0.000 0.048 0.000 0.008 0.032
#> SRR1472171 1 0.0260 0.8793 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1441075 2 0.0717 0.9700 0.000 0.976 0.000 0.000 0.016 0.008
#> SRR1321483 3 0.0146 0.8470 0.000 0.000 0.996 0.000 0.004 0.000
#> SRR1418105 3 0.0260 0.8494 0.000 0.000 0.992 0.000 0.000 0.008
#> SRR1090022 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1077728 1 0.2389 0.8129 0.864 0.000 0.000 0.000 0.008 0.128
#> SRR1365767 6 0.4957 0.3533 0.000 0.000 0.204 0.000 0.148 0.648
#> SRR1489670 2 0.0405 0.9808 0.000 0.988 0.000 0.000 0.004 0.008
#> SRR1343136 6 0.4045 0.0576 0.000 0.000 0.428 0.000 0.008 0.564
#> SRR1359587 3 0.0291 0.8470 0.000 0.000 0.992 0.000 0.004 0.004
#> SRR1465782 1 0.3508 0.6210 0.704 0.000 0.000 0.004 0.000 0.292
#> SRR1434460 1 0.4685 0.5697 0.664 0.000 0.000 0.096 0.000 0.240
#> SRR1415751 1 0.1296 0.8670 0.948 0.000 0.004 0.000 0.004 0.044
#> SRR1359027 1 0.0000 0.8795 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0717 0.8469 0.000 0.000 0.976 0.000 0.008 0.016
#> SRR1456469 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0260 0.8793 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1326845 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436904 3 0.1268 0.8300 0.000 0.000 0.952 0.036 0.004 0.008
#> SRR1076465 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 1 0.4631 0.0809 0.516 0.000 0.008 0.456 0.008 0.012
#> SRR1076046 4 0.4693 0.5323 0.116 0.000 0.000 0.692 0.004 0.188
#> SRR1406643 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1499460 3 0.5166 0.2321 0.000 0.000 0.552 0.000 0.100 0.348
#> SRR1475147 2 0.1196 0.9388 0.000 0.952 0.000 0.000 0.008 0.040
#> SRR1319301 1 0.0520 0.8781 0.984 0.000 0.000 0.000 0.008 0.008
#> SRR1486117 4 0.3426 0.5035 0.276 0.000 0.000 0.720 0.000 0.004
#> SRR1087680 3 0.5108 0.2101 0.000 0.000 0.552 0.000 0.092 0.356
#> SRR1361391 3 0.2730 0.7126 0.000 0.000 0.836 0.000 0.012 0.152
#> SRR1365655 3 0.2946 0.6124 0.184 0.000 0.808 0.000 0.004 0.004
#> SRR1090457 3 0.0458 0.8487 0.000 0.000 0.984 0.000 0.000 0.016
#> SRR1084154 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1380358 4 0.0622 0.7580 0.008 0.000 0.000 0.980 0.012 0.000
#> SRR1398430 2 0.0363 0.9765 0.012 0.988 0.000 0.000 0.000 0.000
#> SRR1444242 1 0.0405 0.8790 0.988 0.000 0.000 0.000 0.004 0.008
#> SRR1440832 6 0.5020 0.2809 0.000 0.000 0.372 0.000 0.080 0.548
#> SRR1358803 6 0.4856 0.1662 0.008 0.000 0.000 0.368 0.048 0.576
#> SRR1344079 4 0.0777 0.7581 0.000 0.000 0.000 0.972 0.004 0.024
#> SRR1072602 6 0.4488 0.1580 0.020 0.000 0.004 0.324 0.012 0.640
#> SRR1421399 6 0.6668 0.2312 0.100 0.064 0.000 0.096 0.128 0.612
#> SRR1339086 1 0.0146 0.8795 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1099881 1 0.0000 0.8795 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.3620 0.4485 0.000 0.000 0.648 0.000 0.000 0.352
#> SRR1329508 3 0.1232 0.8381 0.000 0.000 0.956 0.016 0.004 0.024
#> SRR1440200 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9900 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1344364 5 0.2600 0.4226 0.000 0.124 0.008 0.008 0.860 0.000
#> SRR1387787 1 0.2094 0.8423 0.908 0.000 0.000 0.004 0.024 0.064
#> SRR1378199 4 0.3006 0.7275 0.056 0.000 0.000 0.864 0.024 0.056
#> SRR1413119 3 0.3539 0.6176 0.000 0.000 0.768 0.208 0.016 0.008
#> SRR1310497 1 0.2510 0.8160 0.884 0.000 0.080 0.000 0.008 0.028
#> SRR1356327 1 0.2165 0.8122 0.884 0.000 0.000 0.108 0.000 0.008
#> SRR1319059 1 0.4442 0.1785 0.536 0.000 0.440 0.000 0.004 0.020
#> SRR1085378 1 0.4467 0.3682 0.564 0.000 0.000 0.004 0.024 0.408
#> SRR1379036 3 0.0146 0.8489 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1417656 1 0.0405 0.8790 0.988 0.000 0.000 0.000 0.004 0.008
#> SRR1454225 1 0.0000 0.8795 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.3943 0.5319 0.004 0.184 0.000 0.756 0.056 0.000
#> SRR1366412 2 0.0146 0.9874 0.000 0.996 0.000 0.000 0.004 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", "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 17697 rows and 104 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 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.625 0.712 0.888 0.4742 0.498 0.498
#> 3 3 0.542 0.713 0.832 0.2842 0.808 0.636
#> 4 4 0.625 0.577 0.790 0.1657 0.854 0.627
#> 5 5 0.693 0.636 0.796 0.0789 0.941 0.792
#> 6 6 0.747 0.735 0.781 0.0436 0.891 0.585
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
#> SRR1313664 1 0.0000 0.8845 1.000 0.000
#> SRR1375371 2 0.0000 0.8319 0.000 1.000
#> SRR1416819 1 0.8608 0.5545 0.716 0.284
#> SRR1351907 1 0.9996 0.0149 0.512 0.488
#> SRR1330371 2 0.2043 0.8180 0.032 0.968
#> SRR1340782 1 0.0000 0.8845 1.000 0.000
#> SRR1094531 2 0.0000 0.8319 0.000 1.000
#> SRR1436262 1 0.0000 0.8845 1.000 0.000
#> SRR1093314 1 0.9996 0.0149 0.512 0.488
#> SRR1435460 2 0.2043 0.8180 0.032 0.968
#> SRR1485587 1 0.8144 0.6139 0.748 0.252
#> SRR1470834 1 0.1414 0.8844 0.980 0.020
#> SRR1442966 2 0.2043 0.8180 0.032 0.968
#> SRR1410979 2 0.0000 0.8319 0.000 1.000
#> SRR1326449 2 0.0000 0.8319 0.000 1.000
#> SRR1367520 1 0.1414 0.8844 0.980 0.020
#> SRR1360321 2 0.9983 0.1979 0.476 0.524
#> SRR1445170 1 0.9996 0.0149 0.512 0.488
#> SRR1440663 2 0.9983 0.1979 0.476 0.524
#> SRR1489839 1 0.1414 0.8844 0.980 0.020
#> SRR1409772 1 0.1414 0.8844 0.980 0.020
#> SRR1092591 1 0.0376 0.8844 0.996 0.004
#> SRR1338402 2 0.7299 0.6750 0.204 0.796
#> SRR1337930 1 0.0000 0.8845 1.000 0.000
#> SRR1337749 1 0.0000 0.8845 1.000 0.000
#> SRR1401341 1 0.0000 0.8845 1.000 0.000
#> SRR1396901 1 0.0000 0.8845 1.000 0.000
#> SRR1354400 2 0.9358 0.4664 0.352 0.648
#> SRR1416538 1 0.1414 0.8844 0.980 0.020
#> SRR1340762 1 0.1843 0.8808 0.972 0.028
#> SRR1460095 2 0.2043 0.8180 0.032 0.968
#> SRR1071181 2 0.9983 0.1979 0.476 0.524
#> SRR1380436 2 0.0000 0.8319 0.000 1.000
#> SRR1079973 2 0.0000 0.8319 0.000 1.000
#> SRR1473611 1 0.3114 0.8595 0.944 0.056
#> SRR1074934 1 0.8608 0.5545 0.716 0.284
#> SRR1311731 2 0.0000 0.8319 0.000 1.000
#> SRR1452957 2 0.0000 0.8319 0.000 1.000
#> SRR1429144 1 0.0000 0.8845 1.000 0.000
#> SRR1448203 1 0.0000 0.8845 1.000 0.000
#> SRR1366102 1 0.0000 0.8845 1.000 0.000
#> SRR1434845 1 0.1414 0.8844 0.980 0.020
#> SRR1472171 1 0.0000 0.8845 1.000 0.000
#> SRR1441075 2 0.0000 0.8319 0.000 1.000
#> SRR1321483 2 0.9983 0.1979 0.476 0.524
#> SRR1418105 2 0.9983 0.1979 0.476 0.524
#> SRR1090022 2 0.0000 0.8319 0.000 1.000
#> SRR1077728 1 0.0000 0.8845 1.000 0.000
#> SRR1365767 2 0.0000 0.8319 0.000 1.000
#> SRR1489670 2 0.4298 0.7771 0.088 0.912
#> SRR1343136 2 0.9983 0.1979 0.476 0.524
#> SRR1359587 2 0.7299 0.6750 0.204 0.796
#> SRR1465782 1 0.1414 0.8844 0.980 0.020
#> SRR1434460 1 0.1414 0.8844 0.980 0.020
#> SRR1415751 1 0.1414 0.8844 0.980 0.020
#> SRR1359027 1 0.0000 0.8845 1.000 0.000
#> SRR1408303 2 0.9983 0.1979 0.476 0.524
#> SRR1456469 2 0.0000 0.8319 0.000 1.000
#> SRR1436717 2 0.0000 0.8319 0.000 1.000
#> SRR1480287 1 0.0000 0.8845 1.000 0.000
#> SRR1326845 2 0.0000 0.8319 0.000 1.000
#> SRR1070133 2 0.0000 0.8319 0.000 1.000
#> SRR1387745 2 0.0000 0.8319 0.000 1.000
#> SRR1436904 2 0.9983 0.1979 0.476 0.524
#> SRR1076465 2 0.0000 0.8319 0.000 1.000
#> SRR1433215 1 0.8144 0.6139 0.748 0.252
#> SRR1076046 1 0.1414 0.8844 0.980 0.020
#> SRR1406643 2 0.0000 0.8319 0.000 1.000
#> SRR1499460 2 0.0000 0.8319 0.000 1.000
#> SRR1475147 2 0.0000 0.8319 0.000 1.000
#> SRR1319301 1 0.0000 0.8845 1.000 0.000
#> SRR1486117 1 0.0000 0.8845 1.000 0.000
#> SRR1087680 2 0.0000 0.8319 0.000 1.000
#> SRR1361391 2 0.0000 0.8319 0.000 1.000
#> SRR1365655 1 0.1843 0.8808 0.972 0.028
#> SRR1090457 2 0.9983 0.1979 0.476 0.524
#> SRR1084154 1 0.9983 0.0589 0.524 0.476
#> SRR1380358 1 0.0000 0.8845 1.000 0.000
#> SRR1398430 1 0.9983 0.0589 0.524 0.476
#> SRR1444242 1 0.0000 0.8845 1.000 0.000
#> SRR1440832 2 0.0000 0.8319 0.000 1.000
#> SRR1358803 1 0.3274 0.8561 0.940 0.060
#> SRR1344079 1 0.8144 0.6139 0.748 0.252
#> SRR1072602 1 0.1414 0.8844 0.980 0.020
#> SRR1421399 2 0.8813 0.5445 0.300 0.700
#> SRR1339086 1 0.0000 0.8845 1.000 0.000
#> SRR1099881 1 0.0000 0.8845 1.000 0.000
#> SRR1384312 2 0.9983 0.1979 0.476 0.524
#> SRR1329508 2 0.9983 0.1979 0.476 0.524
#> SRR1440200 2 0.0000 0.8319 0.000 1.000
#> SRR1397558 2 0.0000 0.8319 0.000 1.000
#> SRR1344364 2 0.0000 0.8319 0.000 1.000
#> SRR1387787 1 0.1633 0.8826 0.976 0.024
#> SRR1378199 1 0.1414 0.8844 0.980 0.020
#> SRR1413119 2 0.0376 0.8304 0.004 0.996
#> SRR1310497 1 0.1843 0.8808 0.972 0.028
#> SRR1356327 1 0.0000 0.8845 1.000 0.000
#> SRR1319059 1 0.1843 0.8808 0.972 0.028
#> SRR1085378 1 0.3274 0.8561 0.940 0.060
#> SRR1379036 1 0.9988 -0.0590 0.520 0.480
#> SRR1417656 1 0.0000 0.8845 1.000 0.000
#> SRR1454225 1 0.0000 0.8845 1.000 0.000
#> SRR1455346 1 0.9580 0.3446 0.620 0.380
#> SRR1366412 2 0.0000 0.8319 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.2066 0.829 0.940 0.000 0.060
#> SRR1375371 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1416819 1 0.6305 0.155 0.516 0.000 0.484
#> SRR1351907 3 0.9579 0.320 0.340 0.208 0.452
#> SRR1330371 3 0.4504 0.529 0.000 0.196 0.804
#> SRR1340782 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1094531 3 0.4605 0.506 0.000 0.204 0.796
#> SRR1436262 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1093314 3 0.9579 0.320 0.340 0.208 0.452
#> SRR1435460 3 0.4504 0.529 0.000 0.196 0.804
#> SRR1485587 1 0.6267 0.269 0.548 0.000 0.452
#> SRR1470834 1 0.4178 0.804 0.828 0.000 0.172
#> SRR1442966 3 0.4504 0.529 0.000 0.196 0.804
#> SRR1410979 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1326449 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1367520 1 0.3752 0.817 0.856 0.000 0.144
#> SRR1360321 3 0.5327 0.580 0.272 0.000 0.728
#> SRR1445170 3 0.9579 0.320 0.340 0.208 0.452
#> SRR1440663 3 0.5327 0.580 0.272 0.000 0.728
#> SRR1489839 1 0.4178 0.804 0.828 0.000 0.172
#> SRR1409772 1 0.3619 0.819 0.864 0.000 0.136
#> SRR1092591 1 0.2066 0.829 0.940 0.000 0.060
#> SRR1338402 3 0.0000 0.634 0.000 0.000 1.000
#> SRR1337930 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1401341 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1396901 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1354400 3 0.3816 0.629 0.148 0.000 0.852
#> SRR1416538 1 0.4178 0.804 0.828 0.000 0.172
#> SRR1340762 1 0.4887 0.758 0.772 0.000 0.228
#> SRR1460095 3 0.4504 0.529 0.000 0.196 0.804
#> SRR1071181 3 0.5327 0.580 0.272 0.000 0.728
#> SRR1380436 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1473611 1 0.4346 0.792 0.816 0.000 0.184
#> SRR1074934 1 0.6305 0.155 0.516 0.000 0.484
#> SRR1311731 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1366102 1 0.0424 0.824 0.992 0.000 0.008
#> SRR1434845 1 0.4178 0.804 0.828 0.000 0.172
#> SRR1472171 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1321483 3 0.5327 0.580 0.272 0.000 0.728
#> SRR1418105 3 0.5327 0.580 0.272 0.000 0.728
#> SRR1090022 2 0.4178 0.815 0.000 0.828 0.172
#> SRR1077728 1 0.2066 0.829 0.940 0.000 0.060
#> SRR1365767 3 0.4842 0.486 0.000 0.224 0.776
#> SRR1489670 2 0.3502 0.828 0.084 0.896 0.020
#> SRR1343136 3 0.5327 0.580 0.272 0.000 0.728
#> SRR1359587 3 0.0000 0.634 0.000 0.000 1.000
#> SRR1465782 1 0.3619 0.819 0.864 0.000 0.136
#> SRR1434460 1 0.3879 0.814 0.848 0.000 0.152
#> SRR1415751 1 0.4178 0.804 0.828 0.000 0.172
#> SRR1359027 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1408303 3 0.5327 0.580 0.272 0.000 0.728
#> SRR1456469 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1436717 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1436904 3 0.5327 0.580 0.272 0.000 0.728
#> SRR1076465 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1433215 1 0.6267 0.269 0.548 0.000 0.452
#> SRR1076046 1 0.3879 0.814 0.848 0.000 0.152
#> SRR1406643 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1499460 3 0.4842 0.486 0.000 0.224 0.776
#> SRR1475147 2 0.4178 0.815 0.000 0.828 0.172
#> SRR1319301 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1486117 1 0.0747 0.826 0.984 0.000 0.016
#> SRR1087680 3 0.4842 0.486 0.000 0.224 0.776
#> SRR1361391 3 0.4605 0.506 0.000 0.204 0.796
#> SRR1365655 1 0.4887 0.758 0.772 0.000 0.228
#> SRR1090457 3 0.5327 0.580 0.272 0.000 0.728
#> SRR1084154 3 0.9541 0.302 0.348 0.200 0.452
#> SRR1380358 1 0.1860 0.828 0.948 0.000 0.052
#> SRR1398430 3 0.9541 0.302 0.348 0.200 0.452
#> SRR1444242 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1440832 3 0.4842 0.486 0.000 0.224 0.776
#> SRR1358803 1 0.5216 0.715 0.740 0.000 0.260
#> SRR1344079 1 0.6267 0.269 0.548 0.000 0.452
#> SRR1072602 1 0.4796 0.766 0.780 0.000 0.220
#> SRR1421399 3 0.8675 0.603 0.184 0.220 0.596
#> SRR1339086 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1384312 3 0.5327 0.580 0.272 0.000 0.728
#> SRR1329508 3 0.5363 0.574 0.276 0.000 0.724
#> SRR1440200 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1344364 2 0.0000 0.976 0.000 1.000 0.000
#> SRR1387787 1 0.3879 0.814 0.848 0.000 0.152
#> SRR1378199 1 0.3686 0.818 0.860 0.000 0.140
#> SRR1413119 3 0.4555 0.511 0.000 0.200 0.800
#> SRR1310497 1 0.4399 0.792 0.812 0.000 0.188
#> SRR1356327 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1319059 1 0.4887 0.758 0.772 0.000 0.228
#> SRR1085378 1 0.5138 0.725 0.748 0.000 0.252
#> SRR1379036 3 0.5678 0.498 0.316 0.000 0.684
#> SRR1417656 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.823 1.000 0.000 0.000
#> SRR1455346 1 0.8843 -0.102 0.448 0.116 0.436
#> SRR1366412 2 0.0000 0.976 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.2773 0.8055 0.880 0.000 0.116 0.004
#> SRR1375371 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1416819 3 0.6542 -0.1700 0.076 0.000 0.496 0.428
#> SRR1351907 4 0.7110 0.2939 0.004 0.120 0.360 0.516
#> SRR1330371 4 0.4564 0.2147 0.000 0.000 0.328 0.672
#> SRR1340782 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1094531 3 0.4996 -0.0963 0.000 0.000 0.516 0.484
#> SRR1436262 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.7110 0.2939 0.004 0.120 0.360 0.516
#> SRR1435460 4 0.4564 0.2147 0.000 0.000 0.328 0.672
#> SRR1485587 4 0.7523 0.1414 0.184 0.000 0.400 0.416
#> SRR1470834 1 0.5911 0.5468 0.584 0.000 0.372 0.044
#> SRR1442966 4 0.4564 0.2147 0.000 0.000 0.328 0.672
#> SRR1410979 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.4839 0.7514 0.756 0.000 0.200 0.044
#> SRR1360321 3 0.0000 0.5376 0.000 0.000 1.000 0.000
#> SRR1445170 4 0.7110 0.2939 0.004 0.120 0.360 0.516
#> SRR1440663 3 0.0000 0.5376 0.000 0.000 1.000 0.000
#> SRR1489839 1 0.5592 0.6523 0.656 0.000 0.300 0.044
#> SRR1409772 1 0.4839 0.7521 0.756 0.000 0.200 0.044
#> SRR1092591 1 0.2928 0.8066 0.880 0.000 0.108 0.012
#> SRR1338402 3 0.4222 0.2231 0.000 0.000 0.728 0.272
#> SRR1337930 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0188 0.8200 0.996 0.000 0.004 0.000
#> SRR1396901 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.2704 0.4049 0.000 0.000 0.876 0.124
#> SRR1416538 1 0.5592 0.6523 0.656 0.000 0.300 0.044
#> SRR1340762 3 0.6082 -0.3470 0.476 0.000 0.480 0.044
#> SRR1460095 4 0.4564 0.2147 0.000 0.000 0.328 0.672
#> SRR1071181 3 0.0000 0.5376 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1473611 1 0.5628 0.7133 0.704 0.000 0.216 0.080
#> SRR1074934 3 0.6542 -0.1700 0.076 0.000 0.496 0.428
#> SRR1311731 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0921 0.8200 0.972 0.000 0.028 0.000
#> SRR1434845 1 0.5592 0.6523 0.656 0.000 0.300 0.044
#> SRR1472171 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.0000 0.5376 0.000 0.000 1.000 0.000
#> SRR1418105 3 0.0000 0.5376 0.000 0.000 1.000 0.000
#> SRR1090022 2 0.3649 0.7740 0.000 0.796 0.000 0.204
#> SRR1077728 1 0.2773 0.8055 0.880 0.000 0.116 0.004
#> SRR1365767 4 0.5000 0.0222 0.000 0.000 0.496 0.504
#> SRR1489670 2 0.2408 0.8579 0.000 0.896 0.104 0.000
#> SRR1343136 3 0.0000 0.5376 0.000 0.000 1.000 0.000
#> SRR1359587 3 0.4222 0.2231 0.000 0.000 0.728 0.272
#> SRR1465782 1 0.4839 0.7521 0.756 0.000 0.200 0.044
#> SRR1434460 1 0.5365 0.6952 0.692 0.000 0.264 0.044
#> SRR1415751 1 0.5592 0.6523 0.656 0.000 0.300 0.044
#> SRR1359027 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.5376 0.000 0.000 1.000 0.000
#> SRR1456469 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.0000 0.5376 0.000 0.000 1.000 0.000
#> SRR1076465 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1433215 4 0.7523 0.1414 0.184 0.000 0.400 0.416
#> SRR1076046 1 0.5365 0.6952 0.692 0.000 0.264 0.044
#> SRR1406643 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1499460 4 0.5000 0.0222 0.000 0.000 0.496 0.504
#> SRR1475147 2 0.3649 0.7740 0.000 0.796 0.000 0.204
#> SRR1319301 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.1305 0.8191 0.960 0.000 0.036 0.004
#> SRR1087680 4 0.5000 0.0222 0.000 0.000 0.496 0.504
#> SRR1361391 3 0.4996 -0.0963 0.000 0.000 0.516 0.484
#> SRR1365655 3 0.6082 -0.3470 0.476 0.000 0.480 0.044
#> SRR1090457 3 0.0000 0.5376 0.000 0.000 1.000 0.000
#> SRR1084154 4 0.7267 0.2924 0.012 0.112 0.360 0.516
#> SRR1380358 1 0.2805 0.8080 0.888 0.000 0.100 0.012
#> SRR1398430 4 0.7267 0.2924 0.012 0.112 0.360 0.516
#> SRR1444242 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1440832 4 0.5000 0.0222 0.000 0.000 0.496 0.504
#> SRR1358803 1 0.7179 0.3588 0.480 0.000 0.380 0.140
#> SRR1344079 4 0.7523 0.1414 0.184 0.000 0.400 0.416
#> SRR1072602 1 0.5969 0.5015 0.564 0.000 0.392 0.044
#> SRR1421399 3 0.7136 -0.0959 0.012 0.112 0.556 0.320
#> SRR1339086 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.5376 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.0188 0.5342 0.004 0.000 0.996 0.000
#> SRR1440200 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9730 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.0921 0.9524 0.000 0.972 0.000 0.028
#> SRR1387787 1 0.4720 0.7589 0.768 0.000 0.188 0.044
#> SRR1378199 1 0.4462 0.7713 0.792 0.000 0.164 0.044
#> SRR1413119 3 0.4989 -0.0861 0.000 0.000 0.528 0.472
#> SRR1310497 1 0.5678 0.6292 0.640 0.000 0.316 0.044
#> SRR1356327 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1319059 3 0.6082 -0.3470 0.476 0.000 0.480 0.044
#> SRR1085378 1 0.7108 0.4302 0.512 0.000 0.348 0.140
#> SRR1379036 3 0.1610 0.4858 0.032 0.000 0.952 0.016
#> SRR1417656 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.8199 1.000 0.000 0.000 0.000
#> SRR1455346 4 0.7534 0.2351 0.104 0.028 0.352 0.516
#> SRR1366412 2 0.0000 0.9730 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.3937 0.6733 0.832 0.000 0.072 0.044 0.052
#> SRR1375371 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1416819 4 0.5925 0.5889 0.024 0.000 0.260 0.624 0.092
#> SRR1351907 4 0.0162 0.5883 0.000 0.000 0.004 0.996 0.000
#> SRR1330371 5 0.6695 0.6733 0.000 0.000 0.284 0.284 0.432
#> SRR1340782 1 0.0290 0.7176 0.992 0.000 0.000 0.000 0.008
#> SRR1094531 5 0.3966 0.7335 0.000 0.000 0.336 0.000 0.664
#> SRR1436262 1 0.0000 0.7201 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.0162 0.5883 0.000 0.000 0.004 0.996 0.000
#> SRR1435460 5 0.6695 0.6733 0.000 0.000 0.284 0.284 0.432
#> SRR1485587 4 0.6655 0.6380 0.112 0.000 0.152 0.624 0.112
#> SRR1470834 1 0.7418 0.2832 0.368 0.000 0.344 0.032 0.256
#> SRR1442966 5 0.6695 0.6733 0.000 0.000 0.284 0.284 0.432
#> SRR1410979 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 1 0.7247 0.4593 0.508 0.000 0.116 0.088 0.288
#> SRR1360321 3 0.0000 0.7023 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 4 0.0162 0.5883 0.000 0.000 0.004 0.996 0.000
#> SRR1440663 3 0.0000 0.7023 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 1 0.7393 0.3649 0.404 0.000 0.272 0.032 0.292
#> SRR1409772 1 0.7229 0.4613 0.508 0.000 0.124 0.080 0.288
#> SRR1092591 1 0.4462 0.6582 0.796 0.000 0.068 0.040 0.096
#> SRR1338402 3 0.3636 0.0494 0.000 0.000 0.728 0.000 0.272
#> SRR1337930 1 0.0290 0.7176 0.992 0.000 0.000 0.000 0.008
#> SRR1337749 1 0.0000 0.7201 1.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0162 0.7199 0.996 0.000 0.004 0.000 0.000
#> SRR1396901 1 0.0290 0.7176 0.992 0.000 0.000 0.000 0.008
#> SRR1354400 3 0.2329 0.4903 0.000 0.000 0.876 0.000 0.124
#> SRR1416538 1 0.7393 0.3649 0.404 0.000 0.272 0.032 0.292
#> SRR1340762 3 0.6642 0.0413 0.224 0.000 0.480 0.004 0.292
#> SRR1460095 5 0.6695 0.6733 0.000 0.000 0.284 0.284 0.432
#> SRR1071181 3 0.0000 0.7023 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 1 0.7721 0.3761 0.456 0.000 0.124 0.132 0.288
#> SRR1074934 4 0.5925 0.5889 0.024 0.000 0.260 0.624 0.092
#> SRR1311731 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0290 0.7176 0.992 0.000 0.000 0.000 0.008
#> SRR1448203 1 0.0000 0.7201 1.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0912 0.7153 0.972 0.000 0.012 0.016 0.000
#> SRR1434845 1 0.7393 0.3649 0.404 0.000 0.272 0.032 0.292
#> SRR1472171 1 0.0290 0.7176 0.992 0.000 0.000 0.000 0.008
#> SRR1441075 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.7023 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0000 0.7023 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 2 0.3143 0.7597 0.000 0.796 0.000 0.000 0.204
#> SRR1077728 1 0.3480 0.6805 0.856 0.000 0.072 0.044 0.028
#> SRR1365767 5 0.4807 0.6355 0.000 0.000 0.448 0.020 0.532
#> SRR1489670 2 0.3196 0.7958 0.000 0.804 0.004 0.192 0.000
#> SRR1343136 3 0.0000 0.7023 0.000 0.000 1.000 0.000 0.000
#> SRR1359587 3 0.3636 0.0494 0.000 0.000 0.728 0.000 0.272
#> SRR1465782 1 0.7229 0.4613 0.508 0.000 0.124 0.080 0.288
#> SRR1434460 1 0.7629 0.4035 0.444 0.000 0.196 0.072 0.288
#> SRR1415751 1 0.7393 0.3649 0.404 0.000 0.272 0.032 0.292
#> SRR1359027 1 0.0290 0.7176 0.992 0.000 0.000 0.000 0.008
#> SRR1408303 3 0.0000 0.7023 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0290 0.7176 0.992 0.000 0.000 0.000 0.008
#> SRR1326845 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.7023 0.000 0.000 1.000 0.000 0.000
#> SRR1076465 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 4 0.6655 0.6380 0.112 0.000 0.152 0.624 0.112
#> SRR1076046 1 0.7629 0.4035 0.444 0.000 0.196 0.072 0.288
#> SRR1406643 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 5 0.3876 0.7360 0.000 0.000 0.316 0.000 0.684
#> SRR1475147 2 0.3143 0.7597 0.000 0.796 0.000 0.000 0.204
#> SRR1319301 1 0.0000 0.7201 1.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.1721 0.7103 0.944 0.000 0.020 0.016 0.020
#> SRR1087680 5 0.3876 0.7360 0.000 0.000 0.316 0.000 0.684
#> SRR1361391 5 0.3966 0.7335 0.000 0.000 0.336 0.000 0.664
#> SRR1365655 3 0.6642 0.0413 0.224 0.000 0.480 0.004 0.292
#> SRR1090457 3 0.0000 0.7023 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 4 0.0579 0.5966 0.008 0.000 0.008 0.984 0.000
#> SRR1380358 1 0.3501 0.6823 0.856 0.000 0.068 0.032 0.044
#> SRR1398430 4 0.0579 0.5966 0.008 0.000 0.008 0.984 0.000
#> SRR1444242 1 0.0290 0.7176 0.992 0.000 0.000 0.000 0.008
#> SRR1440832 5 0.3876 0.7360 0.000 0.000 0.316 0.000 0.684
#> SRR1358803 4 0.8390 0.1736 0.236 0.000 0.152 0.328 0.284
#> SRR1344079 4 0.6655 0.6380 0.112 0.000 0.152 0.624 0.112
#> SRR1072602 1 0.8187 0.1933 0.312 0.000 0.292 0.104 0.292
#> SRR1421399 4 0.5171 0.0721 0.008 0.000 0.268 0.664 0.060
#> SRR1339086 1 0.0000 0.7201 1.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.7201 1.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.7023 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.0162 0.6989 0.000 0.000 0.996 0.004 0.000
#> SRR1440200 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9693 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 2 0.1300 0.9385 0.000 0.956 0.000 0.028 0.016
#> SRR1387787 1 0.6629 0.5367 0.612 0.000 0.096 0.092 0.200
#> SRR1378199 1 0.6821 0.4937 0.548 0.000 0.088 0.076 0.288
#> SRR1413119 3 0.4824 -0.6038 0.000 0.000 0.512 0.020 0.468
#> SRR1310497 1 0.7428 0.3412 0.388 0.000 0.288 0.032 0.292
#> SRR1356327 1 0.0000 0.7201 1.000 0.000 0.000 0.000 0.000
#> SRR1319059 3 0.6642 0.0413 0.224 0.000 0.480 0.004 0.292
#> SRR1085378 4 0.8415 0.0846 0.268 0.000 0.148 0.300 0.284
#> SRR1379036 3 0.1197 0.6566 0.000 0.000 0.952 0.000 0.048
#> SRR1417656 1 0.0290 0.7176 0.992 0.000 0.000 0.000 0.008
#> SRR1454225 1 0.0000 0.7201 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.3390 0.6260 0.100 0.000 0.060 0.840 0.000
#> SRR1366412 2 0.0000 0.9693 0.000 1.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
#> SRR1313664 1 0.3023 0.6475 0.768 0.000 0.000 0.000 0.000 0.232
#> SRR1375371 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1416819 4 0.5481 0.4049 0.000 0.000 0.140 0.520 0.000 0.340
#> SRR1351907 4 0.0937 0.5400 0.000 0.000 0.000 0.960 0.000 0.040
#> SRR1330371 4 0.7592 -0.0479 0.000 0.000 0.276 0.324 0.228 0.172
#> SRR1340782 1 0.0000 0.9320 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.3563 0.8106 0.000 0.000 0.072 0.000 0.796 0.132
#> SRR1436262 1 0.0363 0.9341 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1093314 4 0.1075 0.5413 0.000 0.000 0.000 0.952 0.000 0.048
#> SRR1435460 4 0.7592 -0.0479 0.000 0.000 0.276 0.324 0.228 0.172
#> SRR1485587 4 0.5712 0.3064 0.076 0.000 0.036 0.520 0.000 0.368
#> SRR1470834 6 0.5437 0.7113 0.196 0.000 0.228 0.000 0.000 0.576
#> SRR1442966 4 0.7592 -0.0479 0.000 0.000 0.276 0.324 0.228 0.172
#> SRR1410979 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1367520 6 0.3874 0.6413 0.356 0.000 0.008 0.000 0.000 0.636
#> SRR1360321 3 0.0000 0.8907 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 4 0.1075 0.5413 0.000 0.000 0.000 0.952 0.000 0.048
#> SRR1440663 3 0.0000 0.8907 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 6 0.5458 0.7495 0.232 0.000 0.196 0.000 0.000 0.572
#> SRR1409772 6 0.3998 0.6612 0.340 0.000 0.016 0.000 0.000 0.644
#> SRR1092591 1 0.3421 0.5595 0.736 0.000 0.000 0.008 0.000 0.256
#> SRR1338402 3 0.4313 0.5730 0.000 0.000 0.728 0.000 0.124 0.148
#> SRR1337930 1 0.0000 0.9320 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0363 0.9341 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1401341 1 0.0458 0.9317 0.984 0.000 0.000 0.000 0.000 0.016
#> SRR1396901 1 0.0000 0.9320 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.2432 0.7718 0.000 0.000 0.876 0.000 0.100 0.024
#> SRR1416538 6 0.5458 0.7495 0.232 0.000 0.196 0.000 0.000 0.572
#> SRR1340762 6 0.4844 0.4517 0.056 0.000 0.440 0.000 0.000 0.504
#> SRR1460095 4 0.7592 -0.0479 0.000 0.000 0.276 0.324 0.228 0.172
#> SRR1071181 3 0.0000 0.8907 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1473611 6 0.4675 0.6767 0.284 0.000 0.016 0.044 0.000 0.656
#> SRR1074934 4 0.5481 0.4049 0.000 0.000 0.140 0.520 0.000 0.340
#> SRR1311731 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.9320 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0363 0.9341 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1366102 1 0.1141 0.9021 0.948 0.000 0.000 0.000 0.000 0.052
#> SRR1434845 6 0.5458 0.7495 0.232 0.000 0.196 0.000 0.000 0.572
#> SRR1472171 1 0.0000 0.9320 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.8907 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.8907 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.2823 0.7751 0.000 0.796 0.000 0.000 0.204 0.000
#> SRR1077728 1 0.2823 0.7032 0.796 0.000 0.000 0.000 0.000 0.204
#> SRR1365767 5 0.5212 0.5198 0.000 0.000 0.288 0.060 0.620 0.032
#> SRR1489670 2 0.2762 0.7833 0.000 0.804 0.000 0.196 0.000 0.000
#> SRR1343136 3 0.0000 0.8907 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1359587 3 0.4313 0.5730 0.000 0.000 0.728 0.000 0.124 0.148
#> SRR1465782 6 0.3998 0.6612 0.340 0.000 0.016 0.000 0.000 0.644
#> SRR1434460 6 0.4827 0.7388 0.276 0.000 0.092 0.000 0.000 0.632
#> SRR1415751 6 0.5434 0.7503 0.232 0.000 0.192 0.000 0.000 0.576
#> SRR1359027 1 0.0000 0.9320 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.8907 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1456469 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.9320 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.8907 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1076465 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 4 0.5712 0.3064 0.076 0.000 0.036 0.520 0.000 0.368
#> SRR1076046 6 0.4827 0.7388 0.276 0.000 0.092 0.000 0.000 0.632
#> SRR1406643 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1499460 5 0.1141 0.8417 0.000 0.000 0.052 0.000 0.948 0.000
#> SRR1475147 2 0.2823 0.7751 0.000 0.796 0.000 0.000 0.204 0.000
#> SRR1319301 1 0.0363 0.9341 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1486117 1 0.1714 0.8589 0.908 0.000 0.000 0.000 0.000 0.092
#> SRR1087680 5 0.1141 0.8417 0.000 0.000 0.052 0.000 0.948 0.000
#> SRR1361391 5 0.3821 0.7978 0.000 0.000 0.080 0.000 0.772 0.148
#> SRR1365655 6 0.4844 0.4517 0.056 0.000 0.440 0.000 0.000 0.504
#> SRR1090457 3 0.0000 0.8907 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.1141 0.5455 0.000 0.000 0.000 0.948 0.000 0.052
#> SRR1380358 1 0.2762 0.7051 0.804 0.000 0.000 0.000 0.000 0.196
#> SRR1398430 4 0.1141 0.5455 0.000 0.000 0.000 0.948 0.000 0.052
#> SRR1444242 1 0.0000 0.9320 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.1141 0.8417 0.000 0.000 0.052 0.000 0.948 0.000
#> SRR1358803 6 0.5332 0.4346 0.092 0.000 0.036 0.224 0.000 0.648
#> SRR1344079 4 0.5712 0.3064 0.076 0.000 0.036 0.520 0.000 0.368
#> SRR1072602 6 0.4956 0.6993 0.136 0.000 0.160 0.016 0.000 0.688
#> SRR1421399 4 0.3979 0.3488 0.000 0.000 0.256 0.708 0.000 0.036
#> SRR1339086 1 0.0363 0.9341 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1099881 1 0.0363 0.9341 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1384312 3 0.0000 0.8907 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.0146 0.8870 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1440200 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9624 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1344364 2 0.3875 0.7829 0.000 0.796 0.000 0.028 0.052 0.124
#> SRR1387787 6 0.4072 0.4497 0.448 0.000 0.000 0.008 0.000 0.544
#> SRR1378199 6 0.3765 0.5772 0.404 0.000 0.000 0.000 0.000 0.596
#> SRR1413119 3 0.6659 -0.1243 0.000 0.000 0.456 0.060 0.312 0.172
#> SRR1310497 6 0.5466 0.7412 0.216 0.000 0.212 0.000 0.000 0.572
#> SRR1356327 1 0.0363 0.9341 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1319059 6 0.4844 0.4517 0.056 0.000 0.440 0.000 0.000 0.504
#> SRR1085378 6 0.5477 0.4921 0.124 0.000 0.036 0.196 0.000 0.644
#> SRR1379036 3 0.1075 0.8317 0.000 0.000 0.952 0.000 0.000 0.048
#> SRR1417656 1 0.0000 0.9320 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0363 0.9341 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1455346 4 0.4000 0.5437 0.076 0.000 0.036 0.796 0.000 0.092
#> SRR1366412 2 0.0000 0.9624 0.000 1.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", "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 17697 rows and 104 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 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.955 0.972 0.4494 0.556 0.556
#> 3 3 0.988 0.942 0.976 0.4453 0.704 0.509
#> 4 4 0.738 0.716 0.846 0.1240 0.882 0.681
#> 5 5 0.849 0.847 0.882 0.0543 0.949 0.818
#> 6 6 0.823 0.848 0.870 0.0589 0.913 0.653
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
#> SRR1313664 1 0.0376 0.972 0.996 0.004
#> SRR1375371 2 0.2043 0.979 0.032 0.968
#> SRR1416819 1 0.2043 0.960 0.968 0.032
#> SRR1351907 2 0.2603 0.971 0.044 0.956
#> SRR1330371 2 0.0376 0.967 0.004 0.996
#> SRR1340782 1 0.0376 0.972 0.996 0.004
#> SRR1094531 2 0.0376 0.967 0.004 0.996
#> SRR1436262 1 0.0376 0.972 0.996 0.004
#> SRR1093314 1 0.6531 0.799 0.832 0.168
#> SRR1435460 1 0.6973 0.803 0.812 0.188
#> SRR1485587 1 0.0376 0.972 0.996 0.004
#> SRR1470834 1 0.0000 0.972 1.000 0.000
#> SRR1442966 2 0.0376 0.967 0.004 0.996
#> SRR1410979 2 0.2043 0.979 0.032 0.968
#> SRR1326449 2 0.2043 0.979 0.032 0.968
#> SRR1367520 1 0.0376 0.972 0.996 0.004
#> SRR1360321 1 0.2043 0.960 0.968 0.032
#> SRR1445170 1 0.6247 0.815 0.844 0.156
#> SRR1440663 1 0.2043 0.960 0.968 0.032
#> SRR1489839 1 0.0000 0.972 1.000 0.000
#> SRR1409772 1 0.0376 0.972 0.996 0.004
#> SRR1092591 1 0.0376 0.972 0.996 0.004
#> SRR1338402 1 0.2043 0.960 0.968 0.032
#> SRR1337930 1 0.0376 0.972 0.996 0.004
#> SRR1337749 1 0.0376 0.972 0.996 0.004
#> SRR1401341 1 0.0376 0.972 0.996 0.004
#> SRR1396901 1 0.0376 0.972 0.996 0.004
#> SRR1354400 1 0.2043 0.960 0.968 0.032
#> SRR1416538 1 0.0376 0.970 0.996 0.004
#> SRR1340762 1 0.2043 0.960 0.968 0.032
#> SRR1460095 2 0.0000 0.968 0.000 1.000
#> SRR1071181 1 0.2043 0.960 0.968 0.032
#> SRR1380436 2 0.2043 0.979 0.032 0.968
#> SRR1079973 2 0.2043 0.979 0.032 0.968
#> SRR1473611 1 0.0376 0.972 0.996 0.004
#> SRR1074934 1 0.2043 0.960 0.968 0.032
#> SRR1311731 2 0.2043 0.979 0.032 0.968
#> SRR1452957 2 0.2043 0.979 0.032 0.968
#> SRR1429144 1 0.0376 0.972 0.996 0.004
#> SRR1448203 1 0.0376 0.972 0.996 0.004
#> SRR1366102 1 0.0376 0.972 0.996 0.004
#> SRR1434845 1 0.0376 0.970 0.996 0.004
#> SRR1472171 1 0.0376 0.972 0.996 0.004
#> SRR1441075 2 0.2043 0.979 0.032 0.968
#> SRR1321483 1 0.2043 0.960 0.968 0.032
#> SRR1418105 1 0.2043 0.960 0.968 0.032
#> SRR1090022 2 0.0000 0.968 0.000 1.000
#> SRR1077728 1 0.0376 0.972 0.996 0.004
#> SRR1365767 2 0.0376 0.967 0.004 0.996
#> SRR1489670 2 0.2043 0.979 0.032 0.968
#> SRR1343136 1 0.2043 0.960 0.968 0.032
#> SRR1359587 1 0.2043 0.960 0.968 0.032
#> SRR1465782 1 0.0000 0.972 1.000 0.000
#> SRR1434460 1 0.0000 0.972 1.000 0.000
#> SRR1415751 1 0.0000 0.972 1.000 0.000
#> SRR1359027 1 0.0376 0.972 0.996 0.004
#> SRR1408303 1 0.2043 0.960 0.968 0.032
#> SRR1456469 2 0.2043 0.979 0.032 0.968
#> SRR1436717 2 0.2043 0.979 0.032 0.968
#> SRR1480287 1 0.0376 0.972 0.996 0.004
#> SRR1326845 2 0.2043 0.979 0.032 0.968
#> SRR1070133 2 0.2043 0.979 0.032 0.968
#> SRR1387745 2 0.2043 0.979 0.032 0.968
#> SRR1436904 1 0.2043 0.960 0.968 0.032
#> SRR1076465 2 0.2043 0.979 0.032 0.968
#> SRR1433215 1 0.0000 0.972 1.000 0.000
#> SRR1076046 1 0.0000 0.972 1.000 0.000
#> SRR1406643 2 0.2043 0.979 0.032 0.968
#> SRR1499460 2 0.0376 0.967 0.004 0.996
#> SRR1475147 2 0.0938 0.973 0.012 0.988
#> SRR1319301 1 0.0376 0.972 0.996 0.004
#> SRR1486117 1 0.0376 0.972 0.996 0.004
#> SRR1087680 2 0.0376 0.967 0.004 0.996
#> SRR1361391 2 0.0376 0.967 0.004 0.996
#> SRR1365655 1 0.2043 0.960 0.968 0.032
#> SRR1090457 1 0.2043 0.960 0.968 0.032
#> SRR1084154 1 0.9170 0.500 0.668 0.332
#> SRR1380358 1 0.0376 0.972 0.996 0.004
#> SRR1398430 1 0.8443 0.627 0.728 0.272
#> SRR1444242 1 0.0376 0.972 0.996 0.004
#> SRR1440832 2 0.0376 0.967 0.004 0.996
#> SRR1358803 1 0.0376 0.972 0.996 0.004
#> SRR1344079 1 0.0376 0.972 0.996 0.004
#> SRR1072602 1 0.0000 0.972 1.000 0.000
#> SRR1421399 2 0.7815 0.727 0.232 0.768
#> SRR1339086 1 0.0376 0.972 0.996 0.004
#> SRR1099881 1 0.0376 0.972 0.996 0.004
#> SRR1384312 1 0.2043 0.960 0.968 0.032
#> SRR1329508 1 0.2043 0.960 0.968 0.032
#> SRR1440200 2 0.2043 0.979 0.032 0.968
#> SRR1397558 2 0.2043 0.979 0.032 0.968
#> SRR1344364 2 0.2043 0.979 0.032 0.968
#> SRR1387787 1 0.0376 0.972 0.996 0.004
#> SRR1378199 1 0.0376 0.972 0.996 0.004
#> SRR1413119 2 0.3274 0.928 0.060 0.940
#> SRR1310497 1 0.0376 0.970 0.996 0.004
#> SRR1356327 1 0.0376 0.972 0.996 0.004
#> SRR1319059 1 0.2043 0.960 0.968 0.032
#> SRR1085378 1 0.0376 0.972 0.996 0.004
#> SRR1379036 1 0.2043 0.960 0.968 0.032
#> SRR1417656 1 0.0376 0.972 0.996 0.004
#> SRR1454225 1 0.0376 0.972 0.996 0.004
#> SRR1455346 1 0.0376 0.972 0.996 0.004
#> SRR1366412 2 0.2043 0.979 0.032 0.968
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1375371 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1416819 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1351907 2 0.3532 0.873 0.008 0.884 0.108
#> SRR1330371 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1340782 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1094531 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1436262 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1093314 3 0.0237 0.974 0.004 0.000 0.996
#> SRR1435460 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1485587 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1470834 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1442966 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1410979 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1326449 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1367520 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1360321 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1445170 3 0.0237 0.974 0.004 0.000 0.996
#> SRR1440663 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1489839 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1409772 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1092591 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1338402 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1337930 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1401341 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1396901 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1354400 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1416538 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1340762 1 0.6286 0.163 0.536 0.000 0.464
#> SRR1460095 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1071181 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1380436 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1473611 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1074934 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1311731 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1434845 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1472171 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1321483 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1418105 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1090022 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1077728 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1365767 3 0.2261 0.921 0.000 0.068 0.932
#> SRR1489670 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1343136 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1359587 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1465782 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1434460 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1415751 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1359027 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1408303 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1456469 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1436717 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1436904 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1076465 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1433215 1 0.2165 0.904 0.936 0.000 0.064
#> SRR1076046 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1406643 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1499460 3 0.2625 0.906 0.000 0.084 0.916
#> SRR1475147 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1319301 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1486117 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1087680 3 0.2625 0.906 0.000 0.084 0.916
#> SRR1361391 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1365655 3 0.2261 0.909 0.068 0.000 0.932
#> SRR1090457 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1084154 1 0.8546 0.445 0.588 0.136 0.276
#> SRR1380358 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1398430 3 0.0592 0.967 0.012 0.000 0.988
#> SRR1444242 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1440832 3 0.2625 0.906 0.000 0.084 0.916
#> SRR1358803 1 0.4504 0.746 0.804 0.000 0.196
#> SRR1344079 3 0.5254 0.620 0.264 0.000 0.736
#> SRR1072602 1 0.2959 0.871 0.900 0.000 0.100
#> SRR1421399 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1339086 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1384312 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1329508 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1440200 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1344364 2 0.0000 0.995 0.000 1.000 0.000
#> SRR1387787 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1378199 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1413119 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1310497 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1356327 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1319059 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1085378 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1379036 3 0.0000 0.977 0.000 0.000 1.000
#> SRR1417656 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.961 1.000 0.000 0.000
#> SRR1455346 1 0.6280 0.178 0.540 0.000 0.460
#> SRR1366412 2 0.0000 0.995 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.0188 0.9646 0.000 0.996 0.000 0.004
#> SRR1416819 4 0.3266 0.5604 0.000 0.000 0.168 0.832
#> SRR1351907 2 0.5203 0.4202 0.008 0.576 0.000 0.416
#> SRR1330371 3 0.4543 0.5161 0.000 0.000 0.676 0.324
#> SRR1340782 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1094531 3 0.4250 0.5691 0.000 0.000 0.724 0.276
#> SRR1436262 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.1356 0.6012 0.008 0.000 0.032 0.960
#> SRR1435460 4 0.4961 -0.3176 0.000 0.000 0.448 0.552
#> SRR1485587 4 0.4643 0.3968 0.344 0.000 0.000 0.656
#> SRR1470834 1 0.5492 0.5187 0.640 0.000 0.032 0.328
#> SRR1442966 3 0.4985 0.2557 0.000 0.000 0.532 0.468
#> SRR1410979 2 0.0188 0.9646 0.000 0.996 0.000 0.004
#> SRR1326449 2 0.0817 0.9631 0.000 0.976 0.000 0.024
#> SRR1367520 1 0.2921 0.7810 0.860 0.000 0.000 0.140
#> SRR1360321 3 0.3123 0.7277 0.000 0.000 0.844 0.156
#> SRR1445170 4 0.1356 0.6012 0.008 0.000 0.032 0.960
#> SRR1440663 3 0.3123 0.7277 0.000 0.000 0.844 0.156
#> SRR1489839 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1409772 1 0.4277 0.6548 0.720 0.000 0.000 0.280
#> SRR1092591 1 0.4072 0.6842 0.748 0.000 0.000 0.252
#> SRR1338402 3 0.2149 0.6868 0.000 0.000 0.912 0.088
#> SRR1337930 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.3123 0.7277 0.000 0.000 0.844 0.156
#> SRR1416538 1 0.5442 0.5897 0.672 0.000 0.040 0.288
#> SRR1340762 3 0.6438 -0.0393 0.068 0.000 0.496 0.436
#> SRR1460095 4 0.4996 -0.2329 0.000 0.000 0.484 0.516
#> SRR1071181 3 0.3123 0.7277 0.000 0.000 0.844 0.156
#> SRR1380436 2 0.0188 0.9646 0.000 0.996 0.000 0.004
#> SRR1079973 2 0.0817 0.9631 0.000 0.976 0.000 0.024
#> SRR1473611 1 0.4304 0.6497 0.716 0.000 0.000 0.284
#> SRR1074934 4 0.3528 0.5368 0.000 0.000 0.192 0.808
#> SRR1311731 2 0.0188 0.9646 0.000 0.996 0.000 0.004
#> SRR1452957 2 0.0817 0.9631 0.000 0.976 0.000 0.024
#> SRR1429144 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.5442 0.5897 0.672 0.000 0.040 0.288
#> SRR1472171 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0188 0.9646 0.000 0.996 0.000 0.004
#> SRR1321483 3 0.3123 0.7277 0.000 0.000 0.844 0.156
#> SRR1418105 3 0.3123 0.7277 0.000 0.000 0.844 0.156
#> SRR1090022 2 0.4362 0.8123 0.000 0.816 0.088 0.096
#> SRR1077728 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1365767 3 0.5010 0.5562 0.000 0.024 0.700 0.276
#> SRR1489670 2 0.1474 0.9371 0.000 0.948 0.000 0.052
#> SRR1343136 3 0.3219 0.7218 0.000 0.000 0.836 0.164
#> SRR1359587 3 0.2149 0.6868 0.000 0.000 0.912 0.088
#> SRR1465782 1 0.4277 0.6548 0.720 0.000 0.000 0.280
#> SRR1434460 1 0.4277 0.6548 0.720 0.000 0.000 0.280
#> SRR1415751 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.3219 0.7218 0.000 0.000 0.836 0.164
#> SRR1456469 2 0.0817 0.9631 0.000 0.976 0.000 0.024
#> SRR1436717 2 0.0188 0.9646 0.000 0.996 0.000 0.004
#> SRR1480287 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0469 0.9638 0.000 0.988 0.000 0.012
#> SRR1070133 2 0.0000 0.9648 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0817 0.9631 0.000 0.976 0.000 0.024
#> SRR1436904 3 0.3123 0.7277 0.000 0.000 0.844 0.156
#> SRR1076465 2 0.0188 0.9646 0.000 0.996 0.000 0.004
#> SRR1433215 4 0.5337 0.5459 0.260 0.000 0.044 0.696
#> SRR1076046 1 0.4277 0.6548 0.720 0.000 0.000 0.280
#> SRR1406643 2 0.0817 0.9631 0.000 0.976 0.000 0.024
#> SRR1499460 3 0.5010 0.5562 0.000 0.024 0.700 0.276
#> SRR1475147 2 0.0592 0.9641 0.000 0.984 0.000 0.016
#> SRR1319301 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1087680 3 0.5010 0.5562 0.000 0.024 0.700 0.276
#> SRR1361391 3 0.4250 0.5691 0.000 0.000 0.724 0.276
#> SRR1365655 3 0.5244 0.1250 0.008 0.000 0.556 0.436
#> SRR1090457 3 0.3123 0.7277 0.000 0.000 0.844 0.156
#> SRR1084154 4 0.4132 0.6433 0.176 0.008 0.012 0.804
#> SRR1380358 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1398430 4 0.2973 0.6123 0.020 0.000 0.096 0.884
#> SRR1444242 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1440832 3 0.5010 0.5562 0.000 0.024 0.700 0.276
#> SRR1358803 4 0.4262 0.6040 0.236 0.000 0.008 0.756
#> SRR1344079 4 0.3674 0.6540 0.104 0.000 0.044 0.852
#> SRR1072602 4 0.6451 -0.0052 0.456 0.000 0.068 0.476
#> SRR1421399 4 0.1356 0.6012 0.008 0.000 0.032 0.960
#> SRR1339086 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.3123 0.7277 0.000 0.000 0.844 0.156
#> SRR1329508 3 0.3219 0.7218 0.000 0.000 0.836 0.164
#> SRR1440200 2 0.0188 0.9646 0.000 0.996 0.000 0.004
#> SRR1397558 2 0.0469 0.9638 0.000 0.988 0.000 0.012
#> SRR1344364 2 0.0592 0.9642 0.000 0.984 0.000 0.016
#> SRR1387787 1 0.4277 0.6548 0.720 0.000 0.000 0.280
#> SRR1378199 1 0.1474 0.8404 0.948 0.000 0.000 0.052
#> SRR1413119 3 0.4250 0.5691 0.000 0.000 0.724 0.276
#> SRR1310497 1 0.6061 0.2733 0.552 0.000 0.048 0.400
#> SRR1356327 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1319059 4 0.7760 0.3483 0.288 0.000 0.276 0.436
#> SRR1085378 1 0.4277 0.6548 0.720 0.000 0.000 0.280
#> SRR1379036 3 0.3219 0.7218 0.000 0.000 0.836 0.164
#> SRR1417656 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.8689 1.000 0.000 0.000 0.000
#> SRR1455346 4 0.3497 0.6567 0.124 0.000 0.024 0.852
#> SRR1366412 2 0.0469 0.9642 0.000 0.988 0.000 0.012
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.3336 0.835 0.772 0.000 0.000 0.000 0.228
#> SRR1375371 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1416819 4 0.2017 0.806 0.000 0.000 0.080 0.912 0.008
#> SRR1351907 4 0.1648 0.804 0.000 0.020 0.000 0.940 0.040
#> SRR1330371 5 0.5215 0.855 0.000 0.000 0.240 0.096 0.664
#> SRR1340782 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.4437 0.929 0.000 0.000 0.316 0.020 0.664
#> SRR1436262 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.0451 0.848 0.000 0.000 0.008 0.988 0.004
#> SRR1435460 4 0.5097 0.386 0.000 0.000 0.056 0.624 0.320
#> SRR1485587 4 0.4714 0.613 0.044 0.000 0.008 0.712 0.236
#> SRR1470834 1 0.5259 0.791 0.688 0.000 0.040 0.036 0.236
#> SRR1442966 5 0.4866 0.492 0.000 0.000 0.052 0.284 0.664
#> SRR1410979 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.2305 0.944 0.000 0.896 0.000 0.012 0.092
#> SRR1367520 1 0.3970 0.830 0.752 0.000 0.000 0.024 0.224
#> SRR1360321 3 0.0162 0.901 0.000 0.000 0.996 0.004 0.000
#> SRR1445170 4 0.0451 0.848 0.000 0.000 0.008 0.988 0.004
#> SRR1440663 3 0.0162 0.901 0.000 0.000 0.996 0.004 0.000
#> SRR1489839 1 0.3395 0.833 0.764 0.000 0.000 0.000 0.236
#> SRR1409772 1 0.4441 0.814 0.720 0.000 0.000 0.044 0.236
#> SRR1092591 1 0.4104 0.828 0.748 0.000 0.000 0.032 0.220
#> SRR1338402 3 0.1197 0.838 0.000 0.000 0.952 0.000 0.048
#> SRR1337930 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.899 0.000 0.000 1.000 0.000 0.000
#> SRR1416538 1 0.4847 0.805 0.708 0.000 0.040 0.016 0.236
#> SRR1340762 3 0.4033 0.607 0.004 0.000 0.744 0.016 0.236
#> SRR1460095 4 0.4517 0.325 0.000 0.000 0.012 0.600 0.388
#> SRR1071181 3 0.0000 0.899 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.2305 0.944 0.000 0.896 0.000 0.012 0.092
#> SRR1473611 1 0.5329 0.757 0.656 0.000 0.000 0.108 0.236
#> SRR1074934 4 0.3508 0.622 0.000 0.000 0.252 0.748 0.000
#> SRR1311731 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.2305 0.944 0.000 0.896 0.000 0.012 0.092
#> SRR1429144 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1434845 1 0.4847 0.805 0.708 0.000 0.040 0.016 0.236
#> SRR1472171 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0162 0.901 0.000 0.000 0.996 0.004 0.000
#> SRR1418105 3 0.0162 0.901 0.000 0.000 0.996 0.004 0.000
#> SRR1090022 2 0.3835 0.692 0.000 0.732 0.000 0.008 0.260
#> SRR1077728 1 0.1965 0.859 0.904 0.000 0.000 0.000 0.096
#> SRR1365767 5 0.4437 0.929 0.000 0.000 0.316 0.020 0.664
#> SRR1489670 2 0.1741 0.950 0.000 0.936 0.000 0.024 0.040
#> SRR1343136 3 0.0451 0.895 0.000 0.000 0.988 0.004 0.008
#> SRR1359587 3 0.1197 0.838 0.000 0.000 0.952 0.000 0.048
#> SRR1465782 1 0.4221 0.820 0.732 0.000 0.000 0.032 0.236
#> SRR1434460 1 0.4221 0.820 0.732 0.000 0.000 0.032 0.236
#> SRR1415751 1 0.3395 0.833 0.764 0.000 0.000 0.000 0.236
#> SRR1359027 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0162 0.901 0.000 0.000 0.996 0.004 0.000
#> SRR1456469 2 0.2305 0.944 0.000 0.896 0.000 0.012 0.092
#> SRR1436717 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.1124 0.952 0.000 0.960 0.000 0.004 0.036
#> SRR1070133 2 0.0404 0.955 0.000 0.988 0.000 0.000 0.012
#> SRR1387745 2 0.2305 0.944 0.000 0.896 0.000 0.012 0.092
#> SRR1436904 3 0.0000 0.899 0.000 0.000 1.000 0.000 0.000
#> SRR1076465 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 4 0.4791 0.617 0.032 0.000 0.020 0.712 0.236
#> SRR1076046 1 0.4221 0.820 0.732 0.000 0.000 0.032 0.236
#> SRR1406643 2 0.2193 0.945 0.000 0.900 0.000 0.008 0.092
#> SRR1499460 5 0.4437 0.929 0.000 0.000 0.316 0.020 0.664
#> SRR1475147 2 0.1628 0.950 0.000 0.936 0.000 0.008 0.056
#> SRR1319301 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1087680 5 0.4437 0.929 0.000 0.000 0.316 0.020 0.664
#> SRR1361391 5 0.4437 0.929 0.000 0.000 0.316 0.020 0.664
#> SRR1365655 3 0.3878 0.612 0.000 0.000 0.748 0.016 0.236
#> SRR1090457 3 0.0162 0.901 0.000 0.000 0.996 0.004 0.000
#> SRR1084154 4 0.0451 0.849 0.004 0.000 0.008 0.988 0.000
#> SRR1380358 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1398430 4 0.0451 0.848 0.000 0.000 0.008 0.988 0.004
#> SRR1444242 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.4437 0.929 0.000 0.000 0.316 0.020 0.664
#> SRR1358803 4 0.0579 0.846 0.008 0.000 0.008 0.984 0.000
#> SRR1344079 4 0.0451 0.849 0.004 0.000 0.008 0.988 0.000
#> SRR1072602 1 0.6819 0.555 0.516 0.000 0.020 0.228 0.236
#> SRR1421399 4 0.0579 0.846 0.000 0.000 0.008 0.984 0.008
#> SRR1339086 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.899 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.0162 0.901 0.000 0.000 0.996 0.004 0.000
#> SRR1440200 2 0.0000 0.955 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.1124 0.952 0.000 0.960 0.000 0.004 0.036
#> SRR1344364 2 0.1408 0.953 0.000 0.948 0.000 0.008 0.044
#> SRR1387787 1 0.4221 0.820 0.732 0.000 0.000 0.032 0.236
#> SRR1378199 1 0.3724 0.837 0.776 0.000 0.000 0.020 0.204
#> SRR1413119 5 0.4437 0.929 0.000 0.000 0.316 0.020 0.664
#> SRR1310497 1 0.5461 0.780 0.676 0.000 0.052 0.036 0.236
#> SRR1356327 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1319059 3 0.5236 0.524 0.064 0.000 0.684 0.016 0.236
#> SRR1085378 1 0.4297 0.819 0.728 0.000 0.000 0.036 0.236
#> SRR1379036 3 0.0451 0.895 0.000 0.000 0.988 0.004 0.008
#> SRR1417656 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.870 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.0451 0.849 0.004 0.000 0.008 0.988 0.000
#> SRR1366412 2 0.1331 0.954 0.000 0.952 0.000 0.008 0.040
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1313664 6 0.1327 0.814 0.064 0.000 0.000 0.000 0.000 0.936
#> SRR1375371 2 0.0858 0.914 0.028 0.968 0.000 0.000 0.004 0.000
#> SRR1416819 4 0.3678 0.685 0.000 0.000 0.220 0.752 0.004 0.024
#> SRR1351907 4 0.1485 0.848 0.024 0.000 0.000 0.944 0.028 0.004
#> SRR1330371 5 0.3219 0.893 0.032 0.000 0.060 0.056 0.852 0.000
#> SRR1340782 1 0.3925 0.975 0.724 0.000 0.000 0.000 0.040 0.236
#> SRR1094531 5 0.2092 0.957 0.000 0.000 0.124 0.000 0.876 0.000
#> SRR1436262 1 0.3050 0.972 0.764 0.000 0.000 0.000 0.000 0.236
#> SRR1093314 4 0.0291 0.868 0.004 0.000 0.000 0.992 0.004 0.000
#> SRR1435460 4 0.4553 0.510 0.036 0.000 0.012 0.648 0.304 0.000
#> SRR1485587 6 0.3390 0.460 0.000 0.000 0.000 0.296 0.000 0.704
#> SRR1470834 6 0.0653 0.836 0.004 0.000 0.012 0.004 0.000 0.980
#> SRR1442966 5 0.3351 0.813 0.048 0.000 0.016 0.104 0.832 0.000
#> SRR1410979 2 0.0000 0.919 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.3168 0.902 0.116 0.828 0.000 0.000 0.056 0.000
#> SRR1367520 6 0.2300 0.734 0.144 0.000 0.000 0.000 0.000 0.856
#> SRR1360321 3 0.0000 0.944 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 4 0.0291 0.868 0.004 0.000 0.000 0.992 0.004 0.000
#> SRR1440663 3 0.0000 0.944 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 6 0.0260 0.841 0.008 0.000 0.000 0.000 0.000 0.992
#> SRR1409772 6 0.0405 0.841 0.008 0.000 0.000 0.004 0.000 0.988
#> SRR1092591 6 0.2454 0.721 0.160 0.000 0.000 0.000 0.000 0.840
#> SRR1338402 3 0.0820 0.924 0.016 0.000 0.972 0.000 0.012 0.000
#> SRR1337930 1 0.3925 0.975 0.724 0.000 0.000 0.000 0.040 0.236
#> SRR1337749 1 0.3050 0.972 0.764 0.000 0.000 0.000 0.000 0.236
#> SRR1401341 6 0.3868 -0.338 0.492 0.000 0.000 0.000 0.000 0.508
#> SRR1396901 1 0.3925 0.975 0.724 0.000 0.000 0.000 0.040 0.236
#> SRR1354400 3 0.0363 0.936 0.012 0.000 0.988 0.000 0.000 0.000
#> SRR1416538 6 0.0603 0.836 0.004 0.000 0.016 0.000 0.000 0.980
#> SRR1340762 3 0.2178 0.817 0.000 0.000 0.868 0.000 0.000 0.132
#> SRR1460095 4 0.4725 0.457 0.064 0.000 0.000 0.604 0.332 0.000
#> SRR1071181 3 0.0000 0.944 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 0.919 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.3062 0.902 0.112 0.836 0.000 0.000 0.052 0.000
#> SRR1473611 6 0.1524 0.818 0.008 0.000 0.000 0.060 0.000 0.932
#> SRR1074934 4 0.4092 0.565 0.012 0.000 0.316 0.664 0.004 0.004
#> SRR1311731 2 0.0000 0.919 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.3062 0.902 0.112 0.836 0.000 0.000 0.052 0.000
#> SRR1429144 1 0.3925 0.975 0.724 0.000 0.000 0.000 0.040 0.236
#> SRR1448203 1 0.3050 0.972 0.764 0.000 0.000 0.000 0.000 0.236
#> SRR1366102 1 0.3050 0.972 0.764 0.000 0.000 0.000 0.000 0.236
#> SRR1434845 6 0.0603 0.836 0.004 0.000 0.016 0.000 0.000 0.980
#> SRR1472171 1 0.3925 0.975 0.724 0.000 0.000 0.000 0.040 0.236
#> SRR1441075 2 0.0291 0.919 0.004 0.992 0.000 0.000 0.004 0.000
#> SRR1321483 3 0.0000 0.944 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.944 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.4459 0.700 0.096 0.700 0.000 0.000 0.204 0.000
#> SRR1077728 6 0.3076 0.560 0.240 0.000 0.000 0.000 0.000 0.760
#> SRR1365767 5 0.2048 0.956 0.000 0.000 0.120 0.000 0.880 0.000
#> SRR1489670 2 0.4752 0.792 0.124 0.732 0.000 0.104 0.040 0.000
#> SRR1343136 3 0.0146 0.943 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1359587 3 0.0725 0.926 0.012 0.000 0.976 0.000 0.012 0.000
#> SRR1465782 6 0.0260 0.841 0.008 0.000 0.000 0.000 0.000 0.992
#> SRR1434460 6 0.0260 0.841 0.008 0.000 0.000 0.000 0.000 0.992
#> SRR1415751 6 0.0260 0.841 0.008 0.000 0.000 0.000 0.000 0.992
#> SRR1359027 1 0.3925 0.975 0.724 0.000 0.000 0.000 0.040 0.236
#> SRR1408303 3 0.0146 0.943 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1456469 2 0.3276 0.900 0.132 0.816 0.000 0.000 0.052 0.000
#> SRR1436717 2 0.0547 0.917 0.020 0.980 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.3925 0.975 0.724 0.000 0.000 0.000 0.040 0.236
#> SRR1326845 2 0.1829 0.912 0.056 0.920 0.000 0.000 0.024 0.000
#> SRR1070133 2 0.0891 0.919 0.024 0.968 0.000 0.000 0.008 0.000
#> SRR1387745 2 0.3062 0.902 0.112 0.836 0.000 0.000 0.052 0.000
#> SRR1436904 3 0.0000 0.944 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1076465 2 0.0000 0.919 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 6 0.3528 0.454 0.000 0.000 0.004 0.296 0.000 0.700
#> SRR1076046 6 0.0260 0.841 0.008 0.000 0.000 0.000 0.000 0.992
#> SRR1406643 2 0.3062 0.902 0.112 0.836 0.000 0.000 0.052 0.000
#> SRR1499460 5 0.2092 0.957 0.000 0.000 0.124 0.000 0.876 0.000
#> SRR1475147 2 0.2983 0.889 0.136 0.832 0.000 0.000 0.032 0.000
#> SRR1319301 1 0.3925 0.975 0.724 0.000 0.000 0.000 0.040 0.236
#> SRR1486117 1 0.3175 0.949 0.744 0.000 0.000 0.000 0.000 0.256
#> SRR1087680 5 0.2092 0.957 0.000 0.000 0.124 0.000 0.876 0.000
#> SRR1361391 5 0.2624 0.952 0.020 0.000 0.124 0.000 0.856 0.000
#> SRR1365655 3 0.2178 0.817 0.000 0.000 0.868 0.000 0.000 0.132
#> SRR1090457 3 0.0000 0.944 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.0665 0.867 0.004 0.000 0.000 0.980 0.008 0.008
#> SRR1380358 6 0.3854 -0.227 0.464 0.000 0.000 0.000 0.000 0.536
#> SRR1398430 4 0.0665 0.867 0.004 0.000 0.000 0.980 0.008 0.008
#> SRR1444242 1 0.3925 0.975 0.724 0.000 0.000 0.000 0.040 0.236
#> SRR1440832 5 0.2092 0.957 0.000 0.000 0.124 0.000 0.876 0.000
#> SRR1358803 4 0.0363 0.867 0.000 0.000 0.000 0.988 0.000 0.012
#> SRR1344079 4 0.0405 0.867 0.000 0.000 0.000 0.988 0.004 0.008
#> SRR1072602 6 0.1700 0.793 0.000 0.000 0.004 0.080 0.000 0.916
#> SRR1421399 4 0.0909 0.863 0.020 0.000 0.000 0.968 0.012 0.000
#> SRR1339086 1 0.3050 0.972 0.764 0.000 0.000 0.000 0.000 0.236
#> SRR1099881 1 0.3050 0.972 0.764 0.000 0.000 0.000 0.000 0.236
#> SRR1384312 3 0.0000 0.944 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.0146 0.943 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1440200 2 0.0000 0.919 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.1829 0.912 0.056 0.920 0.000 0.000 0.024 0.000
#> SRR1344364 2 0.3066 0.879 0.124 0.832 0.000 0.000 0.044 0.000
#> SRR1387787 6 0.0260 0.840 0.008 0.000 0.000 0.000 0.000 0.992
#> SRR1378199 6 0.2793 0.658 0.200 0.000 0.000 0.000 0.000 0.800
#> SRR1413119 5 0.2957 0.946 0.032 0.000 0.120 0.004 0.844 0.000
#> SRR1310497 6 0.0777 0.831 0.004 0.000 0.024 0.000 0.000 0.972
#> SRR1356327 1 0.3050 0.972 0.764 0.000 0.000 0.000 0.000 0.236
#> SRR1319059 3 0.3727 0.436 0.000 0.000 0.612 0.000 0.000 0.388
#> SRR1085378 6 0.1082 0.827 0.040 0.000 0.000 0.004 0.000 0.956
#> SRR1379036 3 0.0146 0.943 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1417656 1 0.3925 0.975 0.724 0.000 0.000 0.000 0.040 0.236
#> SRR1454225 1 0.3050 0.972 0.764 0.000 0.000 0.000 0.000 0.236
#> SRR1455346 4 0.0508 0.868 0.004 0.000 0.000 0.984 0.000 0.012
#> SRR1366412 2 0.2046 0.913 0.060 0.908 0.000 0.000 0.032 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", "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 17697 rows and 104 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 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 1.000 0.976 0.990 0.4866 0.514 0.514
#> 3 3 0.954 0.952 0.978 0.3494 0.752 0.550
#> 4 4 0.904 0.886 0.942 0.0783 0.945 0.843
#> 5 5 0.980 0.914 0.963 0.0485 0.964 0.880
#> 6 6 0.883 0.857 0.936 0.0799 0.923 0.715
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 5
#> attr(,"optional")
#> [1] 2 3 4
There is also optional best \(k\) = 2 3 4 that is worth to check.
Following 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
#> SRR1313664 1 0.000 0.991 1.000 0.000
#> SRR1375371 2 0.000 0.987 0.000 1.000
#> SRR1416819 1 0.000 0.991 1.000 0.000
#> SRR1351907 2 0.000 0.987 0.000 1.000
#> SRR1330371 2 0.000 0.987 0.000 1.000
#> SRR1340782 1 0.000 0.991 1.000 0.000
#> SRR1094531 2 0.000 0.987 0.000 1.000
#> SRR1436262 1 0.000 0.991 1.000 0.000
#> SRR1093314 2 0.000 0.987 0.000 1.000
#> SRR1435460 2 0.000 0.987 0.000 1.000
#> SRR1485587 1 0.000 0.991 1.000 0.000
#> SRR1470834 1 0.000 0.991 1.000 0.000
#> SRR1442966 2 0.000 0.987 0.000 1.000
#> SRR1410979 2 0.000 0.987 0.000 1.000
#> SRR1326449 2 0.000 0.987 0.000 1.000
#> SRR1367520 1 0.000 0.991 1.000 0.000
#> SRR1360321 1 0.000 0.991 1.000 0.000
#> SRR1445170 2 0.000 0.987 0.000 1.000
#> SRR1440663 1 0.000 0.991 1.000 0.000
#> SRR1489839 1 0.000 0.991 1.000 0.000
#> SRR1409772 1 0.000 0.991 1.000 0.000
#> SRR1092591 1 0.000 0.991 1.000 0.000
#> SRR1338402 2 0.000 0.987 0.000 1.000
#> SRR1337930 1 0.000 0.991 1.000 0.000
#> SRR1337749 1 0.000 0.991 1.000 0.000
#> SRR1401341 1 0.000 0.991 1.000 0.000
#> SRR1396901 1 0.000 0.991 1.000 0.000
#> SRR1354400 1 0.722 0.748 0.800 0.200
#> SRR1416538 1 0.000 0.991 1.000 0.000
#> SRR1340762 1 0.000 0.991 1.000 0.000
#> SRR1460095 2 0.000 0.987 0.000 1.000
#> SRR1071181 1 0.000 0.991 1.000 0.000
#> SRR1380436 2 0.000 0.987 0.000 1.000
#> SRR1079973 2 0.000 0.987 0.000 1.000
#> SRR1473611 1 0.000 0.991 1.000 0.000
#> SRR1074934 1 0.000 0.991 1.000 0.000
#> SRR1311731 2 0.000 0.987 0.000 1.000
#> SRR1452957 2 0.000 0.987 0.000 1.000
#> SRR1429144 1 0.000 0.991 1.000 0.000
#> SRR1448203 1 0.000 0.991 1.000 0.000
#> SRR1366102 1 0.000 0.991 1.000 0.000
#> SRR1434845 1 0.000 0.991 1.000 0.000
#> SRR1472171 1 0.000 0.991 1.000 0.000
#> SRR1441075 2 0.000 0.987 0.000 1.000
#> SRR1321483 1 0.000 0.991 1.000 0.000
#> SRR1418105 1 0.000 0.991 1.000 0.000
#> SRR1090022 2 0.000 0.987 0.000 1.000
#> SRR1077728 1 0.000 0.991 1.000 0.000
#> SRR1365767 2 0.000 0.987 0.000 1.000
#> SRR1489670 2 0.000 0.987 0.000 1.000
#> SRR1343136 1 0.000 0.991 1.000 0.000
#> SRR1359587 2 0.141 0.969 0.020 0.980
#> SRR1465782 1 0.000 0.991 1.000 0.000
#> SRR1434460 1 0.000 0.991 1.000 0.000
#> SRR1415751 1 0.000 0.991 1.000 0.000
#> SRR1359027 1 0.000 0.991 1.000 0.000
#> SRR1408303 1 0.000 0.991 1.000 0.000
#> SRR1456469 2 0.000 0.987 0.000 1.000
#> SRR1436717 2 0.000 0.987 0.000 1.000
#> SRR1480287 1 0.000 0.991 1.000 0.000
#> SRR1326845 2 0.000 0.987 0.000 1.000
#> SRR1070133 2 0.000 0.987 0.000 1.000
#> SRR1387745 2 0.000 0.987 0.000 1.000
#> SRR1436904 1 0.000 0.991 1.000 0.000
#> SRR1076465 2 0.000 0.987 0.000 1.000
#> SRR1433215 1 0.000 0.991 1.000 0.000
#> SRR1076046 1 0.000 0.991 1.000 0.000
#> SRR1406643 2 0.000 0.987 0.000 1.000
#> SRR1499460 2 0.000 0.987 0.000 1.000
#> SRR1475147 2 0.000 0.987 0.000 1.000
#> SRR1319301 1 0.000 0.991 1.000 0.000
#> SRR1486117 1 0.000 0.991 1.000 0.000
#> SRR1087680 2 0.000 0.987 0.000 1.000
#> SRR1361391 2 0.000 0.987 0.000 1.000
#> SRR1365655 1 0.000 0.991 1.000 0.000
#> SRR1090457 1 0.000 0.991 1.000 0.000
#> SRR1084154 2 0.722 0.757 0.200 0.800
#> SRR1380358 1 0.000 0.991 1.000 0.000
#> SRR1398430 2 0.518 0.868 0.116 0.884
#> SRR1444242 1 0.000 0.991 1.000 0.000
#> SRR1440832 2 0.000 0.987 0.000 1.000
#> SRR1358803 1 0.871 0.581 0.708 0.292
#> SRR1344079 1 0.327 0.930 0.940 0.060
#> SRR1072602 1 0.000 0.991 1.000 0.000
#> SRR1421399 2 0.000 0.987 0.000 1.000
#> SRR1339086 1 0.000 0.991 1.000 0.000
#> SRR1099881 1 0.000 0.991 1.000 0.000
#> SRR1384312 1 0.000 0.991 1.000 0.000
#> SRR1329508 1 0.000 0.991 1.000 0.000
#> SRR1440200 2 0.000 0.987 0.000 1.000
#> SRR1397558 2 0.000 0.987 0.000 1.000
#> SRR1344364 2 0.000 0.987 0.000 1.000
#> SRR1387787 1 0.000 0.991 1.000 0.000
#> SRR1378199 1 0.000 0.991 1.000 0.000
#> SRR1413119 2 0.000 0.987 0.000 1.000
#> SRR1310497 1 0.000 0.991 1.000 0.000
#> SRR1356327 1 0.000 0.991 1.000 0.000
#> SRR1319059 1 0.000 0.991 1.000 0.000
#> SRR1085378 1 0.000 0.991 1.000 0.000
#> SRR1379036 1 0.000 0.991 1.000 0.000
#> SRR1417656 1 0.000 0.991 1.000 0.000
#> SRR1454225 1 0.000 0.991 1.000 0.000
#> SRR1455346 2 0.722 0.757 0.200 0.800
#> SRR1366412 2 0.000 0.987 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.000 0.995 1.000 0.000 0.000
#> SRR1375371 2 0.000 0.980 0.000 1.000 0.000
#> SRR1416819 3 0.000 0.941 0.000 0.000 1.000
#> SRR1351907 2 0.000 0.980 0.000 1.000 0.000
#> SRR1330371 3 0.429 0.794 0.000 0.180 0.820
#> SRR1340782 1 0.000 0.995 1.000 0.000 0.000
#> SRR1094531 3 0.000 0.941 0.000 0.000 1.000
#> SRR1436262 1 0.000 0.995 1.000 0.000 0.000
#> SRR1093314 2 0.000 0.980 0.000 1.000 0.000
#> SRR1435460 3 0.000 0.941 0.000 0.000 1.000
#> SRR1485587 1 0.000 0.995 1.000 0.000 0.000
#> SRR1470834 1 0.000 0.995 1.000 0.000 0.000
#> SRR1442966 3 0.593 0.535 0.000 0.356 0.644
#> SRR1410979 2 0.000 0.980 0.000 1.000 0.000
#> SRR1326449 2 0.000 0.980 0.000 1.000 0.000
#> SRR1367520 1 0.000 0.995 1.000 0.000 0.000
#> SRR1360321 3 0.000 0.941 0.000 0.000 1.000
#> SRR1445170 2 0.000 0.980 0.000 1.000 0.000
#> SRR1440663 3 0.000 0.941 0.000 0.000 1.000
#> SRR1489839 1 0.000 0.995 1.000 0.000 0.000
#> SRR1409772 1 0.000 0.995 1.000 0.000 0.000
#> SRR1092591 1 0.000 0.995 1.000 0.000 0.000
#> SRR1338402 3 0.000 0.941 0.000 0.000 1.000
#> SRR1337930 1 0.000 0.995 1.000 0.000 0.000
#> SRR1337749 1 0.000 0.995 1.000 0.000 0.000
#> SRR1401341 1 0.000 0.995 1.000 0.000 0.000
#> SRR1396901 1 0.000 0.995 1.000 0.000 0.000
#> SRR1354400 3 0.000 0.941 0.000 0.000 1.000
#> SRR1416538 1 0.000 0.995 1.000 0.000 0.000
#> SRR1340762 3 0.000 0.941 0.000 0.000 1.000
#> SRR1460095 2 0.000 0.980 0.000 1.000 0.000
#> SRR1071181 3 0.000 0.941 0.000 0.000 1.000
#> SRR1380436 2 0.000 0.980 0.000 1.000 0.000
#> SRR1079973 2 0.000 0.980 0.000 1.000 0.000
#> SRR1473611 1 0.000 0.995 1.000 0.000 0.000
#> SRR1074934 3 0.000 0.941 0.000 0.000 1.000
#> SRR1311731 2 0.000 0.980 0.000 1.000 0.000
#> SRR1452957 2 0.000 0.980 0.000 1.000 0.000
#> SRR1429144 1 0.000 0.995 1.000 0.000 0.000
#> SRR1448203 1 0.000 0.995 1.000 0.000 0.000
#> SRR1366102 1 0.000 0.995 1.000 0.000 0.000
#> SRR1434845 1 0.000 0.995 1.000 0.000 0.000
#> SRR1472171 1 0.000 0.995 1.000 0.000 0.000
#> SRR1441075 2 0.000 0.980 0.000 1.000 0.000
#> SRR1321483 3 0.000 0.941 0.000 0.000 1.000
#> SRR1418105 3 0.000 0.941 0.000 0.000 1.000
#> SRR1090022 2 0.000 0.980 0.000 1.000 0.000
#> SRR1077728 1 0.000 0.995 1.000 0.000 0.000
#> SRR1365767 3 0.586 0.560 0.000 0.344 0.656
#> SRR1489670 2 0.000 0.980 0.000 1.000 0.000
#> SRR1343136 3 0.000 0.941 0.000 0.000 1.000
#> SRR1359587 3 0.000 0.941 0.000 0.000 1.000
#> SRR1465782 1 0.000 0.995 1.000 0.000 0.000
#> SRR1434460 1 0.000 0.995 1.000 0.000 0.000
#> SRR1415751 1 0.000 0.995 1.000 0.000 0.000
#> SRR1359027 1 0.000 0.995 1.000 0.000 0.000
#> SRR1408303 3 0.000 0.941 0.000 0.000 1.000
#> SRR1456469 2 0.000 0.980 0.000 1.000 0.000
#> SRR1436717 2 0.000 0.980 0.000 1.000 0.000
#> SRR1480287 1 0.000 0.995 1.000 0.000 0.000
#> SRR1326845 2 0.000 0.980 0.000 1.000 0.000
#> SRR1070133 2 0.000 0.980 0.000 1.000 0.000
#> SRR1387745 2 0.000 0.980 0.000 1.000 0.000
#> SRR1436904 3 0.000 0.941 0.000 0.000 1.000
#> SRR1076465 2 0.000 0.980 0.000 1.000 0.000
#> SRR1433215 1 0.000 0.995 1.000 0.000 0.000
#> SRR1076046 1 0.000 0.995 1.000 0.000 0.000
#> SRR1406643 2 0.000 0.980 0.000 1.000 0.000
#> SRR1499460 3 0.455 0.773 0.000 0.200 0.800
#> SRR1475147 2 0.000 0.980 0.000 1.000 0.000
#> SRR1319301 1 0.000 0.995 1.000 0.000 0.000
#> SRR1486117 1 0.000 0.995 1.000 0.000 0.000
#> SRR1087680 3 0.455 0.773 0.000 0.200 0.800
#> SRR1361391 3 0.000 0.941 0.000 0.000 1.000
#> SRR1365655 3 0.000 0.941 0.000 0.000 1.000
#> SRR1090457 3 0.000 0.941 0.000 0.000 1.000
#> SRR1084154 2 0.455 0.741 0.200 0.800 0.000
#> SRR1380358 1 0.000 0.995 1.000 0.000 0.000
#> SRR1398430 2 0.186 0.923 0.052 0.948 0.000
#> SRR1444242 1 0.000 0.995 1.000 0.000 0.000
#> SRR1440832 3 0.586 0.560 0.000 0.344 0.656
#> SRR1358803 1 0.196 0.937 0.944 0.056 0.000
#> SRR1344079 1 0.000 0.995 1.000 0.000 0.000
#> SRR1072602 1 0.000 0.995 1.000 0.000 0.000
#> SRR1421399 2 0.000 0.980 0.000 1.000 0.000
#> SRR1339086 1 0.000 0.995 1.000 0.000 0.000
#> SRR1099881 1 0.000 0.995 1.000 0.000 0.000
#> SRR1384312 3 0.000 0.941 0.000 0.000 1.000
#> SRR1329508 3 0.000 0.941 0.000 0.000 1.000
#> SRR1440200 2 0.000 0.980 0.000 1.000 0.000
#> SRR1397558 2 0.000 0.980 0.000 1.000 0.000
#> SRR1344364 2 0.000 0.980 0.000 1.000 0.000
#> SRR1387787 1 0.000 0.995 1.000 0.000 0.000
#> SRR1378199 1 0.000 0.995 1.000 0.000 0.000
#> SRR1413119 3 0.000 0.941 0.000 0.000 1.000
#> SRR1310497 1 0.000 0.995 1.000 0.000 0.000
#> SRR1356327 1 0.000 0.995 1.000 0.000 0.000
#> SRR1319059 1 0.429 0.783 0.820 0.000 0.180
#> SRR1085378 1 0.000 0.995 1.000 0.000 0.000
#> SRR1379036 3 0.000 0.941 0.000 0.000 1.000
#> SRR1417656 1 0.000 0.995 1.000 0.000 0.000
#> SRR1454225 1 0.000 0.995 1.000 0.000 0.000
#> SRR1455346 2 0.455 0.741 0.200 0.800 0.000
#> SRR1366412 2 0.000 0.980 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1416819 3 0.3610 0.727 0.000 0.000 0.800 0.200
#> SRR1351907 2 0.0336 0.913 0.000 0.992 0.000 0.008
#> SRR1330371 4 0.2480 0.907 0.000 0.008 0.088 0.904
#> SRR1340782 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1094531 4 0.3486 0.917 0.000 0.000 0.188 0.812
#> SRR1436262 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1093314 2 0.4996 0.256 0.000 0.516 0.000 0.484
#> SRR1435460 4 0.2281 0.907 0.000 0.000 0.096 0.904
#> SRR1485587 1 0.1474 0.932 0.948 0.000 0.000 0.052
#> SRR1470834 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1442966 4 0.2542 0.905 0.000 0.012 0.084 0.904
#> SRR1410979 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1360321 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1445170 2 0.4996 0.256 0.000 0.516 0.000 0.484
#> SRR1440663 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1489839 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1409772 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1092591 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1338402 3 0.4661 0.338 0.000 0.000 0.652 0.348
#> SRR1337930 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1416538 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1340762 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1460095 4 0.2281 0.809 0.000 0.096 0.000 0.904
#> SRR1071181 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1473611 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1074934 3 0.4643 0.395 0.000 0.000 0.656 0.344
#> SRR1311731 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1472171 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1418105 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1090022 2 0.3726 0.695 0.000 0.788 0.000 0.212
#> SRR1077728 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1365767 4 0.2867 0.915 0.000 0.012 0.104 0.884
#> SRR1489670 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1343136 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1359587 3 0.3528 0.683 0.000 0.000 0.808 0.192
#> SRR1465782 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1434460 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1415751 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1456469 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1076465 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1433215 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1076046 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1406643 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1499460 4 0.3725 0.922 0.000 0.008 0.180 0.812
#> SRR1475147 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1319301 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1087680 4 0.3725 0.922 0.000 0.008 0.180 0.812
#> SRR1361391 4 0.3486 0.917 0.000 0.000 0.188 0.812
#> SRR1365655 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1090457 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1084154 2 0.4638 0.677 0.180 0.776 0.000 0.044
#> SRR1380358 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1398430 2 0.0672 0.908 0.008 0.984 0.000 0.008
#> SRR1444242 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1440832 4 0.3808 0.921 0.000 0.012 0.176 0.812
#> SRR1358803 1 0.4746 0.475 0.632 0.000 0.000 0.368
#> SRR1344079 1 0.4996 0.173 0.516 0.000 0.000 0.484
#> SRR1072602 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1421399 2 0.4855 0.401 0.000 0.600 0.000 0.400
#> SRR1339086 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1440200 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.0000 0.919 0.000 1.000 0.000 0.000
#> SRR1387787 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1378199 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1413119 4 0.3486 0.917 0.000 0.000 0.188 0.812
#> SRR1310497 1 0.1118 0.942 0.964 0.000 0.036 0.000
#> SRR1356327 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1319059 3 0.3486 0.641 0.188 0.000 0.812 0.000
#> SRR1085378 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1379036 3 0.0000 0.914 0.000 0.000 1.000 0.000
#> SRR1417656 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.978 1.000 0.000 0.000 0.000
#> SRR1455346 2 0.6075 0.590 0.192 0.680 0.000 0.128
#> SRR1366412 2 0.0000 0.919 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.0162 0.980 0.996 0.000 0.000 0.000 0.004
#> SRR1375371 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1416819 3 0.4210 0.355 0.000 0.000 0.588 0.000 0.412
#> SRR1351907 2 0.0404 0.947 0.000 0.988 0.000 0.000 0.012
#> SRR1330371 4 0.0510 0.997 0.000 0.000 0.016 0.984 0.000
#> SRR1340782 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1094531 4 0.0510 0.997 0.000 0.000 0.016 0.984 0.000
#> SRR1436262 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 5 0.0510 0.873 0.000 0.016 0.000 0.000 0.984
#> SRR1435460 4 0.0510 0.997 0.000 0.000 0.016 0.984 0.000
#> SRR1485587 1 0.4227 0.298 0.580 0.000 0.000 0.000 0.420
#> SRR1470834 1 0.1179 0.964 0.964 0.000 0.004 0.016 0.016
#> SRR1442966 4 0.0510 0.997 0.000 0.000 0.016 0.984 0.000
#> SRR1410979 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1360321 3 0.0162 0.918 0.000 0.000 0.996 0.004 0.000
#> SRR1445170 5 0.0510 0.873 0.000 0.016 0.000 0.000 0.984
#> SRR1440663 3 0.0162 0.918 0.000 0.000 0.996 0.004 0.000
#> SRR1489839 1 0.1179 0.964 0.964 0.000 0.004 0.016 0.016
#> SRR1409772 1 0.0510 0.975 0.984 0.000 0.000 0.000 0.016
#> SRR1092591 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1338402 3 0.4088 0.426 0.000 0.000 0.632 0.368 0.000
#> SRR1337930 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0162 0.918 0.000 0.000 0.996 0.004 0.000
#> SRR1416538 1 0.1179 0.964 0.964 0.000 0.004 0.016 0.016
#> SRR1340762 3 0.0912 0.898 0.000 0.000 0.972 0.016 0.012
#> SRR1460095 4 0.0609 0.965 0.000 0.020 0.000 0.980 0.000
#> SRR1071181 3 0.0162 0.918 0.000 0.000 0.996 0.004 0.000
#> SRR1380436 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1074934 3 0.5716 0.503 0.000 0.000 0.616 0.240 0.144
#> SRR1311731 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1434845 1 0.1179 0.964 0.964 0.000 0.004 0.016 0.016
#> SRR1472171 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0162 0.918 0.000 0.000 0.996 0.004 0.000
#> SRR1418105 3 0.0162 0.918 0.000 0.000 0.996 0.004 0.000
#> SRR1090022 2 0.3039 0.718 0.000 0.808 0.000 0.192 0.000
#> SRR1077728 1 0.0162 0.980 0.996 0.000 0.000 0.000 0.004
#> SRR1365767 4 0.0510 0.997 0.000 0.000 0.016 0.984 0.000
#> SRR1489670 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1343136 3 0.0162 0.918 0.000 0.000 0.996 0.004 0.000
#> SRR1359587 3 0.3143 0.720 0.000 0.000 0.796 0.204 0.000
#> SRR1465782 1 0.0798 0.971 0.976 0.000 0.000 0.008 0.016
#> SRR1434460 1 0.0912 0.969 0.972 0.000 0.000 0.012 0.016
#> SRR1415751 1 0.1018 0.966 0.968 0.000 0.000 0.016 0.016
#> SRR1359027 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0162 0.918 0.000 0.000 0.996 0.004 0.000
#> SRR1456469 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0162 0.918 0.000 0.000 0.996 0.004 0.000
#> SRR1076465 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 1 0.0290 0.979 0.992 0.000 0.000 0.000 0.008
#> SRR1076046 1 0.0912 0.969 0.972 0.000 0.000 0.012 0.016
#> SRR1406643 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 4 0.0510 0.997 0.000 0.000 0.016 0.984 0.000
#> SRR1475147 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1087680 4 0.0510 0.997 0.000 0.000 0.016 0.984 0.000
#> SRR1361391 4 0.0510 0.997 0.000 0.000 0.016 0.984 0.000
#> SRR1365655 3 0.0510 0.904 0.000 0.000 0.984 0.016 0.000
#> SRR1090457 3 0.0162 0.918 0.000 0.000 0.996 0.004 0.000
#> SRR1084154 5 0.4383 0.177 0.004 0.424 0.000 0.000 0.572
#> SRR1380358 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1398430 2 0.4101 0.458 0.004 0.664 0.000 0.000 0.332
#> SRR1444242 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1440832 4 0.0510 0.997 0.000 0.000 0.016 0.984 0.000
#> SRR1358803 5 0.0510 0.866 0.016 0.000 0.000 0.000 0.984
#> SRR1344079 5 0.0510 0.866 0.016 0.000 0.000 0.000 0.984
#> SRR1072602 1 0.0798 0.971 0.976 0.000 0.000 0.008 0.016
#> SRR1421399 2 0.4060 0.377 0.000 0.640 0.000 0.000 0.360
#> SRR1339086 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0162 0.918 0.000 0.000 0.996 0.004 0.000
#> SRR1329508 3 0.0162 0.918 0.000 0.000 0.996 0.004 0.000
#> SRR1440200 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 2 0.0000 0.957 0.000 1.000 0.000 0.000 0.000
#> SRR1387787 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1378199 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1413119 4 0.0510 0.997 0.000 0.000 0.016 0.984 0.000
#> SRR1310497 1 0.1524 0.954 0.952 0.000 0.016 0.016 0.016
#> SRR1356327 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1319059 3 0.1018 0.895 0.000 0.000 0.968 0.016 0.016
#> SRR1085378 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1379036 3 0.0000 0.915 0.000 0.000 1.000 0.000 0.000
#> SRR1417656 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.982 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 5 0.0566 0.873 0.004 0.012 0.000 0.000 0.984
#> SRR1366412 2 0.0000 0.957 0.000 1.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
#> SRR1313664 1 0.0363 0.9350 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1375371 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1416819 3 0.5608 0.0766 0.000 0.000 0.444 0.412 0.000 0.144
#> SRR1351907 2 0.0692 0.9413 0.000 0.976 0.000 0.020 0.000 0.004
#> SRR1330371 5 0.0000 1.0000 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1340782 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.0000 1.0000 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1436262 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.0000 0.7879 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1435460 5 0.0000 1.0000 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1485587 4 0.6024 0.0206 0.308 0.000 0.000 0.424 0.000 0.268
#> SRR1470834 6 0.2300 0.8205 0.144 0.000 0.000 0.000 0.000 0.856
#> SRR1442966 5 0.0000 1.0000 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1410979 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1367520 1 0.2219 0.8240 0.864 0.000 0.000 0.000 0.000 0.136
#> SRR1360321 3 0.0000 0.9252 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 4 0.0000 0.7879 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1440663 3 0.0000 0.9252 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 6 0.2340 0.8187 0.148 0.000 0.000 0.000 0.000 0.852
#> SRR1409772 1 0.3857 0.0983 0.532 0.000 0.000 0.000 0.000 0.468
#> SRR1092591 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1338402 3 0.1765 0.8503 0.000 0.000 0.904 0.000 0.096 0.000
#> SRR1337930 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.9252 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1416538 6 0.2300 0.8206 0.144 0.000 0.000 0.000 0.000 0.856
#> SRR1340762 6 0.3620 0.4022 0.000 0.000 0.352 0.000 0.000 0.648
#> SRR1460095 5 0.0000 1.0000 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1071181 3 0.0000 0.9252 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1473611 1 0.2416 0.8076 0.844 0.000 0.000 0.000 0.000 0.156
#> SRR1074934 3 0.4491 0.5955 0.000 0.000 0.688 0.068 0.240 0.004
#> SRR1311731 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1434845 6 0.2260 0.8204 0.140 0.000 0.000 0.000 0.000 0.860
#> SRR1472171 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.9252 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.9252 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.2664 0.7465 0.000 0.816 0.000 0.000 0.184 0.000
#> SRR1077728 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1365767 5 0.0000 1.0000 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1489670 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1343136 3 0.0000 0.9252 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1359587 3 0.1267 0.8813 0.000 0.000 0.940 0.000 0.060 0.000
#> SRR1465782 6 0.2631 0.7165 0.180 0.000 0.000 0.000 0.000 0.820
#> SRR1434460 6 0.1910 0.7622 0.108 0.000 0.000 0.000 0.000 0.892
#> SRR1415751 6 0.2631 0.8045 0.180 0.000 0.000 0.000 0.000 0.820
#> SRR1359027 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.9252 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1456469 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.9252 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1076465 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 1 0.3819 0.2527 0.624 0.000 0.000 0.004 0.000 0.372
#> SRR1076046 6 0.1910 0.7622 0.108 0.000 0.000 0.000 0.000 0.892
#> SRR1406643 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1499460 5 0.0000 1.0000 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1475147 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087680 5 0.0000 1.0000 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1361391 5 0.0000 1.0000 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1365655 3 0.2823 0.7203 0.000 0.000 0.796 0.000 0.000 0.204
#> SRR1090457 3 0.0000 0.9252 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.4093 0.1664 0.000 0.404 0.000 0.584 0.000 0.012
#> SRR1380358 1 0.0146 0.9409 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1398430 2 0.3608 0.6003 0.000 0.716 0.000 0.272 0.000 0.012
#> SRR1444242 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.0000 1.0000 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1358803 4 0.0405 0.7835 0.008 0.000 0.000 0.988 0.000 0.004
#> SRR1344079 4 0.0146 0.7872 0.000 0.000 0.000 0.996 0.000 0.004
#> SRR1072602 6 0.3221 0.6095 0.264 0.000 0.000 0.000 0.000 0.736
#> SRR1421399 2 0.3887 0.3981 0.000 0.632 0.000 0.360 0.000 0.008
#> SRR1339086 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.9252 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.0000 0.9252 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1440200 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1344364 2 0.0000 0.9607 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387787 1 0.0632 0.9280 0.976 0.000 0.000 0.000 0.000 0.024
#> SRR1378199 1 0.2378 0.8113 0.848 0.000 0.000 0.000 0.000 0.152
#> SRR1413119 5 0.0000 1.0000 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1310497 6 0.2362 0.8195 0.136 0.000 0.004 0.000 0.000 0.860
#> SRR1356327 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1319059 6 0.2378 0.6743 0.000 0.000 0.152 0.000 0.000 0.848
#> SRR1085378 1 0.2219 0.8240 0.864 0.000 0.000 0.000 0.000 0.136
#> SRR1379036 3 0.0000 0.9252 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1417656 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9439 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.0363 0.7866 0.000 0.000 0.000 0.988 0.000 0.012
#> SRR1366412 2 0.0000 0.9607 0.000 1.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", "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 17697 rows and 104 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 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 1.000 0.977 0.990 0.3590 0.652 0.652
#> 3 3 1.000 0.978 0.991 0.7864 0.684 0.523
#> 4 4 0.856 0.887 0.943 0.1730 0.837 0.574
#> 5 5 0.799 0.764 0.838 0.0550 0.896 0.619
#> 6 6 0.945 0.893 0.952 0.0458 0.967 0.836
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 6
#> attr(,"optional")
#> [1] 2 3
There is also optional best \(k\) = 2 3 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
#> SRR1313664 1 0.000 0.987 1.000 0.000
#> SRR1375371 2 0.000 1.000 0.000 1.000
#> SRR1416819 1 0.000 0.987 1.000 0.000
#> SRR1351907 1 0.966 0.358 0.608 0.392
#> SRR1330371 1 0.000 0.987 1.000 0.000
#> SRR1340782 1 0.000 0.987 1.000 0.000
#> SRR1094531 1 0.000 0.987 1.000 0.000
#> SRR1436262 1 0.000 0.987 1.000 0.000
#> SRR1093314 1 0.000 0.987 1.000 0.000
#> SRR1435460 1 0.000 0.987 1.000 0.000
#> SRR1485587 1 0.000 0.987 1.000 0.000
#> SRR1470834 1 0.000 0.987 1.000 0.000
#> SRR1442966 1 0.000 0.987 1.000 0.000
#> SRR1410979 2 0.000 1.000 0.000 1.000
#> SRR1326449 2 0.000 1.000 0.000 1.000
#> SRR1367520 1 0.000 0.987 1.000 0.000
#> SRR1360321 1 0.000 0.987 1.000 0.000
#> SRR1445170 1 0.000 0.987 1.000 0.000
#> SRR1440663 1 0.000 0.987 1.000 0.000
#> SRR1489839 1 0.000 0.987 1.000 0.000
#> SRR1409772 1 0.000 0.987 1.000 0.000
#> SRR1092591 1 0.000 0.987 1.000 0.000
#> SRR1338402 1 0.000 0.987 1.000 0.000
#> SRR1337930 1 0.000 0.987 1.000 0.000
#> SRR1337749 1 0.000 0.987 1.000 0.000
#> SRR1401341 1 0.000 0.987 1.000 0.000
#> SRR1396901 1 0.000 0.987 1.000 0.000
#> SRR1354400 1 0.000 0.987 1.000 0.000
#> SRR1416538 1 0.000 0.987 1.000 0.000
#> SRR1340762 1 0.000 0.987 1.000 0.000
#> SRR1460095 1 0.000 0.987 1.000 0.000
#> SRR1071181 1 0.000 0.987 1.000 0.000
#> SRR1380436 2 0.000 1.000 0.000 1.000
#> SRR1079973 2 0.000 1.000 0.000 1.000
#> SRR1473611 1 0.000 0.987 1.000 0.000
#> SRR1074934 1 0.000 0.987 1.000 0.000
#> SRR1311731 2 0.000 1.000 0.000 1.000
#> SRR1452957 2 0.000 1.000 0.000 1.000
#> SRR1429144 1 0.000 0.987 1.000 0.000
#> SRR1448203 1 0.000 0.987 1.000 0.000
#> SRR1366102 1 0.000 0.987 1.000 0.000
#> SRR1434845 1 0.000 0.987 1.000 0.000
#> SRR1472171 1 0.000 0.987 1.000 0.000
#> SRR1441075 2 0.000 1.000 0.000 1.000
#> SRR1321483 1 0.000 0.987 1.000 0.000
#> SRR1418105 1 0.000 0.987 1.000 0.000
#> SRR1090022 2 0.000 1.000 0.000 1.000
#> SRR1077728 1 0.000 0.987 1.000 0.000
#> SRR1365767 1 0.722 0.754 0.800 0.200
#> SRR1489670 2 0.000 1.000 0.000 1.000
#> SRR1343136 1 0.000 0.987 1.000 0.000
#> SRR1359587 1 0.000 0.987 1.000 0.000
#> SRR1465782 1 0.000 0.987 1.000 0.000
#> SRR1434460 1 0.000 0.987 1.000 0.000
#> SRR1415751 1 0.000 0.987 1.000 0.000
#> SRR1359027 1 0.000 0.987 1.000 0.000
#> SRR1408303 1 0.000 0.987 1.000 0.000
#> SRR1456469 2 0.000 1.000 0.000 1.000
#> SRR1436717 2 0.000 1.000 0.000 1.000
#> SRR1480287 1 0.000 0.987 1.000 0.000
#> SRR1326845 2 0.000 1.000 0.000 1.000
#> SRR1070133 2 0.000 1.000 0.000 1.000
#> SRR1387745 2 0.000 1.000 0.000 1.000
#> SRR1436904 1 0.000 0.987 1.000 0.000
#> SRR1076465 2 0.000 1.000 0.000 1.000
#> SRR1433215 1 0.000 0.987 1.000 0.000
#> SRR1076046 1 0.000 0.987 1.000 0.000
#> SRR1406643 2 0.000 1.000 0.000 1.000
#> SRR1499460 1 0.753 0.730 0.784 0.216
#> SRR1475147 2 0.000 1.000 0.000 1.000
#> SRR1319301 1 0.000 0.987 1.000 0.000
#> SRR1486117 1 0.000 0.987 1.000 0.000
#> SRR1087680 1 0.738 0.742 0.792 0.208
#> SRR1361391 1 0.000 0.987 1.000 0.000
#> SRR1365655 1 0.000 0.987 1.000 0.000
#> SRR1090457 1 0.000 0.987 1.000 0.000
#> SRR1084154 1 0.000 0.987 1.000 0.000
#> SRR1380358 1 0.000 0.987 1.000 0.000
#> SRR1398430 1 0.000 0.987 1.000 0.000
#> SRR1444242 1 0.000 0.987 1.000 0.000
#> SRR1440832 2 0.000 1.000 0.000 1.000
#> SRR1358803 1 0.000 0.987 1.000 0.000
#> SRR1344079 1 0.000 0.987 1.000 0.000
#> SRR1072602 1 0.000 0.987 1.000 0.000
#> SRR1421399 1 0.000 0.987 1.000 0.000
#> SRR1339086 1 0.000 0.987 1.000 0.000
#> SRR1099881 1 0.000 0.987 1.000 0.000
#> SRR1384312 1 0.000 0.987 1.000 0.000
#> SRR1329508 1 0.000 0.987 1.000 0.000
#> SRR1440200 2 0.000 1.000 0.000 1.000
#> SRR1397558 2 0.000 1.000 0.000 1.000
#> SRR1344364 2 0.000 1.000 0.000 1.000
#> SRR1387787 1 0.000 0.987 1.000 0.000
#> SRR1378199 1 0.000 0.987 1.000 0.000
#> SRR1413119 1 0.000 0.987 1.000 0.000
#> SRR1310497 1 0.000 0.987 1.000 0.000
#> SRR1356327 1 0.000 0.987 1.000 0.000
#> SRR1319059 1 0.000 0.987 1.000 0.000
#> SRR1085378 1 0.000 0.987 1.000 0.000
#> SRR1379036 1 0.000 0.987 1.000 0.000
#> SRR1417656 1 0.000 0.987 1.000 0.000
#> SRR1454225 1 0.000 0.987 1.000 0.000
#> SRR1455346 1 0.000 0.987 1.000 0.000
#> SRR1366412 2 0.000 1.000 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1375371 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1416819 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1351907 2 0.4555 0.751 0.200 0.8 0.000
#> SRR1330371 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1340782 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1094531 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1436262 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1093314 3 0.4887 0.709 0.228 0.0 0.772
#> SRR1435460 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1485587 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1470834 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1442966 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1410979 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1326449 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1367520 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1360321 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1445170 3 0.5216 0.662 0.260 0.0 0.740
#> SRR1440663 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1489839 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1409772 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1092591 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1338402 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1337930 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1337749 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1401341 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1396901 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1354400 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1416538 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1340762 3 0.1529 0.939 0.040 0.0 0.960
#> SRR1460095 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1071181 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1380436 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1079973 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1473611 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1074934 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1311731 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1452957 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1429144 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1448203 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1366102 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1434845 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1472171 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1441075 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1321483 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1418105 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1090022 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1077728 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1365767 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1489670 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1343136 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1359587 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1465782 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1434460 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1415751 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1359027 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1408303 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1456469 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1436717 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1480287 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1326845 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1070133 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1387745 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1436904 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1076465 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1433215 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1076046 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1406643 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1499460 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1475147 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1319301 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1486117 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1087680 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1361391 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1365655 3 0.2165 0.913 0.064 0.0 0.936
#> SRR1090457 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1084154 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1380358 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1398430 1 0.0747 0.981 0.984 0.0 0.016
#> SRR1444242 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1440832 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1358803 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1344079 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1072602 1 0.3340 0.859 0.880 0.0 0.120
#> SRR1421399 3 0.1529 0.939 0.040 0.0 0.960
#> SRR1339086 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1099881 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1384312 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1329508 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1440200 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1397558 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1344364 2 0.0000 0.990 0.000 1.0 0.000
#> SRR1387787 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1378199 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1413119 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1310497 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1356327 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1319059 1 0.0892 0.977 0.980 0.0 0.020
#> SRR1085378 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1379036 3 0.0000 0.976 0.000 0.0 1.000
#> SRR1417656 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1454225 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1455346 1 0.0000 0.996 1.000 0.0 0.000
#> SRR1366412 2 0.0000 0.990 0.000 1.0 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.3610 0.707 0.800 0.000 0.000 0.200
#> SRR1375371 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1416819 4 0.0469 0.875 0.000 0.000 0.012 0.988
#> SRR1351907 4 0.4730 0.372 0.000 0.364 0.000 0.636
#> SRR1330371 3 0.0469 0.932 0.000 0.000 0.988 0.012
#> SRR1340782 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1094531 3 0.0469 0.932 0.000 0.000 0.988 0.012
#> SRR1436262 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.0000 0.876 0.000 0.000 0.000 1.000
#> SRR1435460 3 0.4222 0.668 0.000 0.000 0.728 0.272
#> SRR1485587 4 0.0469 0.881 0.012 0.000 0.000 0.988
#> SRR1470834 4 0.2342 0.874 0.080 0.000 0.008 0.912
#> SRR1442966 3 0.1637 0.905 0.000 0.000 0.940 0.060
#> SRR1410979 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.4746 0.354 0.632 0.000 0.000 0.368
#> SRR1360321 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1445170 4 0.0000 0.876 0.000 0.000 0.000 1.000
#> SRR1440663 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1489839 4 0.4998 0.171 0.488 0.000 0.000 0.512
#> SRR1409772 4 0.2469 0.864 0.108 0.000 0.000 0.892
#> SRR1092591 4 0.2868 0.846 0.136 0.000 0.000 0.864
#> SRR1338402 3 0.0469 0.932 0.000 0.000 0.988 0.012
#> SRR1337930 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1416538 4 0.2469 0.864 0.108 0.000 0.000 0.892
#> SRR1340762 3 0.3486 0.776 0.000 0.000 0.812 0.188
#> SRR1460095 3 0.4277 0.658 0.000 0.000 0.720 0.280
#> SRR1071181 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1473611 4 0.2408 0.864 0.104 0.000 0.000 0.896
#> SRR1074934 3 0.4877 0.431 0.000 0.000 0.592 0.408
#> SRR1311731 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1434845 4 0.2149 0.872 0.088 0.000 0.000 0.912
#> SRR1472171 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1418105 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1090022 2 0.0469 0.989 0.000 0.988 0.000 0.012
#> SRR1077728 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1365767 3 0.0469 0.932 0.000 0.000 0.988 0.012
#> SRR1489670 2 0.0469 0.989 0.000 0.988 0.000 0.012
#> SRR1343136 3 0.2973 0.827 0.000 0.000 0.856 0.144
#> SRR1359587 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1465782 4 0.2469 0.864 0.108 0.000 0.000 0.892
#> SRR1434460 4 0.2589 0.860 0.116 0.000 0.000 0.884
#> SRR1415751 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.0188 0.932 0.000 0.000 0.996 0.004
#> SRR1456469 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1076465 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1433215 4 0.0469 0.881 0.012 0.000 0.000 0.988
#> SRR1076046 4 0.3837 0.752 0.224 0.000 0.000 0.776
#> SRR1406643 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1499460 3 0.0469 0.932 0.000 0.000 0.988 0.012
#> SRR1475147 2 0.0188 0.996 0.000 0.996 0.000 0.004
#> SRR1319301 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1087680 3 0.0469 0.932 0.000 0.000 0.988 0.012
#> SRR1361391 3 0.0469 0.932 0.000 0.000 0.988 0.012
#> SRR1365655 4 0.4277 0.589 0.000 0.000 0.280 0.720
#> SRR1090457 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1084154 4 0.0469 0.881 0.012 0.000 0.000 0.988
#> SRR1380358 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1398430 4 0.0000 0.876 0.000 0.000 0.000 1.000
#> SRR1444242 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1440832 3 0.0469 0.932 0.000 0.000 0.988 0.012
#> SRR1358803 4 0.0469 0.881 0.012 0.000 0.000 0.988
#> SRR1344079 4 0.0469 0.881 0.012 0.000 0.000 0.988
#> SRR1072602 4 0.0921 0.881 0.028 0.000 0.000 0.972
#> SRR1421399 4 0.0000 0.876 0.000 0.000 0.000 1.000
#> SRR1339086 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.933 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.2973 0.827 0.000 0.000 0.856 0.144
#> SRR1440200 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.0000 0.999 0.000 1.000 0.000 0.000
#> SRR1387787 4 0.3975 0.729 0.240 0.000 0.000 0.760
#> SRR1378199 1 0.4643 0.419 0.656 0.000 0.000 0.344
#> SRR1413119 3 0.0469 0.932 0.000 0.000 0.988 0.012
#> SRR1310497 4 0.2402 0.874 0.076 0.000 0.012 0.912
#> SRR1356327 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1319059 4 0.4635 0.608 0.012 0.000 0.268 0.720
#> SRR1085378 4 0.4008 0.723 0.244 0.000 0.000 0.756
#> SRR1379036 3 0.3024 0.823 0.000 0.000 0.852 0.148
#> SRR1417656 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1455346 4 0.0469 0.881 0.012 0.000 0.000 0.988
#> SRR1366412 2 0.0000 0.999 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 5 0.4029 0.773 0.316 0.000 0.000 0.004 0.680
#> SRR1375371 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1416819 4 0.2852 0.819 0.000 0.000 0.000 0.828 0.172
#> SRR1351907 4 0.3055 0.711 0.000 0.144 0.000 0.840 0.016
#> SRR1330371 3 0.6160 0.620 0.000 0.000 0.544 0.172 0.284
#> SRR1340782 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1094531 3 0.6160 0.620 0.000 0.000 0.544 0.172 0.284
#> SRR1436262 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.2690 0.816 0.000 0.000 0.000 0.844 0.156
#> SRR1435460 4 0.6224 0.121 0.000 0.000 0.232 0.548 0.220
#> SRR1485587 4 0.2852 0.819 0.000 0.000 0.000 0.828 0.172
#> SRR1470834 5 0.4836 0.599 0.096 0.000 0.000 0.188 0.716
#> SRR1442966 4 0.6250 0.135 0.000 0.000 0.204 0.540 0.256
#> SRR1410979 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 5 0.4276 0.703 0.380 0.000 0.000 0.004 0.616
#> SRR1360321 3 0.0000 0.787 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 4 0.2690 0.816 0.000 0.000 0.000 0.844 0.156
#> SRR1440663 3 0.0000 0.787 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 5 0.4192 0.641 0.404 0.000 0.000 0.000 0.596
#> SRR1409772 5 0.4425 0.781 0.244 0.000 0.000 0.040 0.716
#> SRR1092591 5 0.3884 0.796 0.288 0.000 0.000 0.004 0.708
#> SRR1338402 3 0.3456 0.728 0.000 0.000 0.800 0.016 0.184
#> SRR1337930 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.4306 -0.455 0.508 0.000 0.000 0.000 0.492
#> SRR1396901 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.787 0.000 0.000 1.000 0.000 0.000
#> SRR1416538 5 0.4219 0.795 0.264 0.000 0.016 0.004 0.716
#> SRR1340762 3 0.4192 0.137 0.000 0.000 0.596 0.000 0.404
#> SRR1460095 4 0.3274 0.555 0.000 0.000 0.000 0.780 0.220
#> SRR1071181 3 0.0000 0.787 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 4 0.4541 0.716 0.084 0.000 0.000 0.744 0.172
#> SRR1074934 4 0.6326 0.428 0.000 0.000 0.336 0.492 0.172
#> SRR1311731 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1434845 5 0.4506 0.785 0.244 0.000 0.036 0.004 0.716
#> SRR1472171 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.787 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0000 0.787 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 2 0.4104 0.702 0.000 0.748 0.000 0.032 0.220
#> SRR1077728 5 0.4283 0.531 0.456 0.000 0.000 0.000 0.544
#> SRR1365767 3 0.6160 0.620 0.000 0.000 0.544 0.172 0.284
#> SRR1489670 2 0.1018 0.957 0.000 0.968 0.000 0.016 0.016
#> SRR1343136 3 0.0000 0.787 0.000 0.000 1.000 0.000 0.000
#> SRR1359587 3 0.2690 0.744 0.000 0.000 0.844 0.000 0.156
#> SRR1465782 5 0.3838 0.798 0.280 0.000 0.000 0.004 0.716
#> SRR1434460 5 0.3838 0.798 0.280 0.000 0.000 0.004 0.716
#> SRR1415751 5 0.4283 0.531 0.456 0.000 0.000 0.000 0.544
#> SRR1359027 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.787 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.787 0.000 0.000 1.000 0.000 0.000
#> SRR1076465 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 4 0.2852 0.819 0.000 0.000 0.000 0.828 0.172
#> SRR1076046 5 0.3838 0.798 0.280 0.000 0.000 0.004 0.716
#> SRR1406643 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 3 0.6160 0.620 0.000 0.000 0.544 0.172 0.284
#> SRR1475147 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0404 0.907 0.988 0.000 0.000 0.000 0.012
#> SRR1087680 3 0.6160 0.620 0.000 0.000 0.544 0.172 0.284
#> SRR1361391 3 0.6160 0.620 0.000 0.000 0.544 0.172 0.284
#> SRR1365655 3 0.4126 0.205 0.000 0.000 0.620 0.000 0.380
#> SRR1090457 3 0.0000 0.787 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 4 0.2852 0.819 0.000 0.000 0.000 0.828 0.172
#> SRR1380358 1 0.3452 0.506 0.756 0.000 0.000 0.000 0.244
#> SRR1398430 4 0.2852 0.819 0.000 0.000 0.000 0.828 0.172
#> SRR1444242 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1440832 3 0.6160 0.620 0.000 0.000 0.544 0.172 0.284
#> SRR1358803 4 0.2852 0.819 0.000 0.000 0.000 0.828 0.172
#> SRR1344079 4 0.2852 0.819 0.000 0.000 0.000 0.828 0.172
#> SRR1072602 5 0.4482 0.172 0.012 0.000 0.000 0.376 0.612
#> SRR1421399 4 0.0000 0.737 0.000 0.000 0.000 1.000 0.000
#> SRR1339086 1 0.3109 0.623 0.800 0.000 0.000 0.000 0.200
#> SRR1099881 1 0.2648 0.715 0.848 0.000 0.000 0.000 0.152
#> SRR1384312 3 0.0000 0.787 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.0000 0.787 0.000 0.000 1.000 0.000 0.000
#> SRR1440200 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 2 0.0000 0.986 0.000 1.000 0.000 0.000 0.000
#> SRR1387787 5 0.3861 0.797 0.284 0.000 0.000 0.004 0.712
#> SRR1378199 5 0.4390 0.630 0.428 0.000 0.000 0.004 0.568
#> SRR1413119 3 0.6160 0.620 0.000 0.000 0.544 0.172 0.284
#> SRR1310497 5 0.4286 0.537 0.020 0.000 0.260 0.004 0.716
#> SRR1356327 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1319059 5 0.4283 0.223 0.000 0.000 0.456 0.000 0.544
#> SRR1085378 5 0.3884 0.796 0.288 0.000 0.000 0.004 0.708
#> SRR1379036 3 0.0000 0.787 0.000 0.000 1.000 0.000 0.000
#> SRR1417656 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.918 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.2852 0.819 0.000 0.000 0.000 0.828 0.172
#> SRR1366412 2 0.0000 0.986 0.000 1.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
#> SRR1313664 6 0.0790 0.897 0.032 0.000 0.000 0.000 0.000 0.968
#> SRR1375371 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1416819 4 0.0000 0.925 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1351907 4 0.0000 0.925 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1330371 5 0.0000 0.992 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1340782 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.0458 0.992 0.000 0.000 0.000 0.000 0.984 0.016
#> SRR1436262 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.0000 0.925 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1435460 4 0.3515 0.555 0.000 0.000 0.000 0.676 0.324 0.000
#> SRR1485587 4 0.0000 0.925 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1470834 6 0.0547 0.888 0.000 0.000 0.000 0.020 0.000 0.980
#> SRR1442966 4 0.3789 0.362 0.000 0.000 0.000 0.584 0.416 0.000
#> SRR1410979 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1367520 6 0.3547 0.562 0.332 0.000 0.000 0.000 0.000 0.668
#> SRR1360321 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 4 0.0000 0.925 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1440663 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 6 0.0458 0.901 0.016 0.000 0.000 0.000 0.000 0.984
#> SRR1409772 6 0.0914 0.897 0.016 0.000 0.000 0.016 0.000 0.968
#> SRR1092591 6 0.2597 0.796 0.176 0.000 0.000 0.000 0.000 0.824
#> SRR1338402 3 0.2664 0.776 0.000 0.000 0.816 0.000 0.184 0.000
#> SRR1337930 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1401341 6 0.2340 0.821 0.148 0.000 0.000 0.000 0.000 0.852
#> SRR1396901 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1416538 6 0.0458 0.901 0.016 0.000 0.000 0.000 0.000 0.984
#> SRR1340762 3 0.0458 0.965 0.000 0.000 0.984 0.000 0.000 0.016
#> SRR1460095 4 0.3515 0.555 0.000 0.000 0.000 0.676 0.324 0.000
#> SRR1071181 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1473611 4 0.1124 0.883 0.008 0.000 0.000 0.956 0.000 0.036
#> SRR1074934 4 0.0000 0.925 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1311731 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0146 0.924 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1366102 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1434845 6 0.0458 0.901 0.016 0.000 0.000 0.000 0.000 0.984
#> SRR1472171 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.3871 0.503 0.000 0.676 0.000 0.000 0.308 0.016
#> SRR1077728 6 0.0458 0.901 0.016 0.000 0.000 0.000 0.000 0.984
#> SRR1365767 5 0.0000 0.992 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1489670 2 0.0790 0.953 0.000 0.968 0.000 0.000 0.032 0.000
#> SRR1343136 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1359587 3 0.2219 0.838 0.000 0.000 0.864 0.000 0.136 0.000
#> SRR1465782 6 0.0458 0.901 0.016 0.000 0.000 0.000 0.000 0.984
#> SRR1434460 6 0.0458 0.901 0.016 0.000 0.000 0.000 0.000 0.984
#> SRR1415751 6 0.0458 0.901 0.016 0.000 0.000 0.000 0.000 0.984
#> SRR1359027 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1456469 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1076465 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 4 0.0000 0.925 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1076046 6 0.0458 0.901 0.016 0.000 0.000 0.000 0.000 0.984
#> SRR1406643 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1499460 5 0.0458 0.992 0.000 0.000 0.000 0.000 0.984 0.016
#> SRR1475147 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.1501 0.864 0.924 0.000 0.000 0.000 0.000 0.076
#> SRR1087680 5 0.0458 0.992 0.000 0.000 0.000 0.000 0.984 0.016
#> SRR1361391 5 0.0000 0.992 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1365655 3 0.0458 0.965 0.000 0.000 0.984 0.000 0.000 0.016
#> SRR1090457 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.0000 0.925 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1380358 1 0.3789 0.240 0.584 0.000 0.000 0.000 0.000 0.416
#> SRR1398430 4 0.0000 0.925 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1444242 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.0458 0.992 0.000 0.000 0.000 0.000 0.984 0.016
#> SRR1358803 4 0.0000 0.925 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1344079 4 0.0000 0.925 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1072602 6 0.3634 0.500 0.000 0.000 0.000 0.356 0.000 0.644
#> SRR1421399 4 0.0000 0.925 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1339086 1 0.3797 0.225 0.580 0.000 0.000 0.000 0.000 0.420
#> SRR1099881 1 0.3244 0.594 0.732 0.000 0.000 0.000 0.000 0.268
#> SRR1384312 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1440200 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1344364 2 0.0000 0.982 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387787 6 0.1765 0.866 0.096 0.000 0.000 0.000 0.000 0.904
#> SRR1378199 6 0.3659 0.501 0.364 0.000 0.000 0.000 0.000 0.636
#> SRR1413119 5 0.0000 0.992 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1310497 6 0.0458 0.889 0.000 0.000 0.016 0.000 0.000 0.984
#> SRR1356327 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1319059 6 0.1141 0.862 0.000 0.000 0.052 0.000 0.000 0.948
#> SRR1085378 6 0.2340 0.824 0.148 0.000 0.000 0.000 0.000 0.852
#> SRR1379036 3 0.0000 0.976 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1417656 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.927 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.0000 0.925 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1366412 2 0.0000 0.982 0.000 1.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", "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 17697 rows and 104 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 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.898 0.941 0.4529 0.514 0.514
#> 3 3 0.643 0.877 0.916 0.4119 0.759 0.559
#> 4 4 0.780 0.860 0.929 0.1277 0.884 0.684
#> 5 5 0.683 0.631 0.780 0.0899 0.927 0.741
#> 6 6 0.736 0.600 0.783 0.0437 0.888 0.552
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
#> SRR1313664 1 0.0000 0.990 1.000 0.000
#> SRR1375371 2 0.0000 0.858 0.000 1.000
#> SRR1416819 1 0.6148 0.770 0.848 0.152
#> SRR1351907 2 0.4690 0.840 0.100 0.900
#> SRR1330371 2 0.8144 0.760 0.252 0.748
#> SRR1340782 1 0.0000 0.990 1.000 0.000
#> SRR1094531 2 0.8144 0.760 0.252 0.748
#> SRR1436262 1 0.0000 0.990 1.000 0.000
#> SRR1093314 2 0.9209 0.648 0.336 0.664
#> SRR1435460 2 0.9988 0.352 0.480 0.520
#> SRR1485587 1 0.0938 0.976 0.988 0.012
#> SRR1470834 1 0.0000 0.990 1.000 0.000
#> SRR1442966 2 0.8144 0.760 0.252 0.748
#> SRR1410979 2 0.0000 0.858 0.000 1.000
#> SRR1326449 2 0.0000 0.858 0.000 1.000
#> SRR1367520 1 0.0000 0.990 1.000 0.000
#> SRR1360321 1 0.0000 0.990 1.000 0.000
#> SRR1445170 2 0.9209 0.648 0.336 0.664
#> SRR1440663 1 0.0000 0.990 1.000 0.000
#> SRR1489839 1 0.0000 0.990 1.000 0.000
#> SRR1409772 1 0.0000 0.990 1.000 0.000
#> SRR1092591 1 0.0000 0.990 1.000 0.000
#> SRR1338402 1 0.0000 0.990 1.000 0.000
#> SRR1337930 1 0.0000 0.990 1.000 0.000
#> SRR1337749 1 0.0000 0.990 1.000 0.000
#> SRR1401341 1 0.0000 0.990 1.000 0.000
#> SRR1396901 1 0.0000 0.990 1.000 0.000
#> SRR1354400 1 0.0000 0.990 1.000 0.000
#> SRR1416538 1 0.0000 0.990 1.000 0.000
#> SRR1340762 1 0.0000 0.990 1.000 0.000
#> SRR1460095 2 0.4939 0.837 0.108 0.892
#> SRR1071181 1 0.0000 0.990 1.000 0.000
#> SRR1380436 2 0.0000 0.858 0.000 1.000
#> SRR1079973 2 0.0000 0.858 0.000 1.000
#> SRR1473611 1 0.0000 0.990 1.000 0.000
#> SRR1074934 1 0.9358 0.265 0.648 0.352
#> SRR1311731 2 0.0000 0.858 0.000 1.000
#> SRR1452957 2 0.0000 0.858 0.000 1.000
#> SRR1429144 1 0.0000 0.990 1.000 0.000
#> SRR1448203 1 0.0000 0.990 1.000 0.000
#> SRR1366102 1 0.0000 0.990 1.000 0.000
#> SRR1434845 1 0.0000 0.990 1.000 0.000
#> SRR1472171 1 0.0000 0.990 1.000 0.000
#> SRR1441075 2 0.0000 0.858 0.000 1.000
#> SRR1321483 1 0.0000 0.990 1.000 0.000
#> SRR1418105 1 0.0000 0.990 1.000 0.000
#> SRR1090022 2 0.4022 0.845 0.080 0.920
#> SRR1077728 1 0.0000 0.990 1.000 0.000
#> SRR1365767 2 0.8144 0.760 0.252 0.748
#> SRR1489670 2 0.1414 0.856 0.020 0.980
#> SRR1343136 1 0.0000 0.990 1.000 0.000
#> SRR1359587 1 0.0000 0.990 1.000 0.000
#> SRR1465782 1 0.0000 0.990 1.000 0.000
#> SRR1434460 1 0.0000 0.990 1.000 0.000
#> SRR1415751 1 0.0000 0.990 1.000 0.000
#> SRR1359027 1 0.0000 0.990 1.000 0.000
#> SRR1408303 1 0.0000 0.990 1.000 0.000
#> SRR1456469 2 0.0000 0.858 0.000 1.000
#> SRR1436717 2 0.0000 0.858 0.000 1.000
#> SRR1480287 1 0.0000 0.990 1.000 0.000
#> SRR1326845 2 0.0000 0.858 0.000 1.000
#> SRR1070133 2 0.0000 0.858 0.000 1.000
#> SRR1387745 2 0.0000 0.858 0.000 1.000
#> SRR1436904 1 0.0000 0.990 1.000 0.000
#> SRR1076465 2 0.0000 0.858 0.000 1.000
#> SRR1433215 1 0.0000 0.990 1.000 0.000
#> SRR1076046 1 0.0000 0.990 1.000 0.000
#> SRR1406643 2 0.0000 0.858 0.000 1.000
#> SRR1499460 2 0.8144 0.760 0.252 0.748
#> SRR1475147 2 0.1414 0.856 0.020 0.980
#> SRR1319301 1 0.0000 0.990 1.000 0.000
#> SRR1486117 1 0.0000 0.990 1.000 0.000
#> SRR1087680 2 0.8144 0.760 0.252 0.748
#> SRR1361391 2 0.8267 0.752 0.260 0.740
#> SRR1365655 1 0.0000 0.990 1.000 0.000
#> SRR1090457 1 0.0000 0.990 1.000 0.000
#> SRR1084154 2 0.8713 0.708 0.292 0.708
#> SRR1380358 1 0.0000 0.990 1.000 0.000
#> SRR1398430 2 0.8713 0.708 0.292 0.708
#> SRR1444242 1 0.0000 0.990 1.000 0.000
#> SRR1440832 2 0.8144 0.760 0.252 0.748
#> SRR1358803 2 0.9209 0.648 0.336 0.664
#> SRR1344079 2 0.9209 0.648 0.336 0.664
#> SRR1072602 1 0.0000 0.990 1.000 0.000
#> SRR1421399 2 0.5946 0.824 0.144 0.856
#> SRR1339086 1 0.0000 0.990 1.000 0.000
#> SRR1099881 1 0.0000 0.990 1.000 0.000
#> SRR1384312 1 0.0000 0.990 1.000 0.000
#> SRR1329508 1 0.0000 0.990 1.000 0.000
#> SRR1440200 2 0.0000 0.858 0.000 1.000
#> SRR1397558 2 0.0000 0.858 0.000 1.000
#> SRR1344364 2 0.0000 0.858 0.000 1.000
#> SRR1387787 1 0.0000 0.990 1.000 0.000
#> SRR1378199 1 0.0000 0.990 1.000 0.000
#> SRR1413119 2 0.9580 0.586 0.380 0.620
#> SRR1310497 1 0.0000 0.990 1.000 0.000
#> SRR1356327 1 0.0000 0.990 1.000 0.000
#> SRR1319059 1 0.0000 0.990 1.000 0.000
#> SRR1085378 1 0.0000 0.990 1.000 0.000
#> SRR1379036 1 0.0000 0.990 1.000 0.000
#> SRR1417656 1 0.0000 0.990 1.000 0.000
#> SRR1454225 1 0.0000 0.990 1.000 0.000
#> SRR1455346 2 0.9209 0.648 0.336 0.664
#> SRR1366412 2 0.0000 0.858 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.2066 0.910 0.940 0.000 0.060
#> SRR1375371 2 0.0237 0.887 0.000 0.996 0.004
#> SRR1416819 1 0.4912 0.819 0.796 0.008 0.196
#> SRR1351907 2 0.4963 0.801 0.008 0.792 0.200
#> SRR1330371 3 0.2878 0.825 0.000 0.096 0.904
#> SRR1340782 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1094531 3 0.0000 0.891 0.000 0.000 1.000
#> SRR1436262 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1093314 2 0.7180 0.715 0.060 0.672 0.268
#> SRR1435460 3 0.3116 0.811 0.000 0.108 0.892
#> SRR1485587 1 0.6354 0.781 0.748 0.056 0.196
#> SRR1470834 1 0.4121 0.848 0.832 0.000 0.168
#> SRR1442966 3 0.3340 0.797 0.000 0.120 0.880
#> SRR1410979 2 0.0000 0.887 0.000 1.000 0.000
#> SRR1326449 2 0.0424 0.885 0.000 0.992 0.008
#> SRR1367520 1 0.2356 0.902 0.928 0.000 0.072
#> SRR1360321 3 0.2878 0.932 0.096 0.000 0.904
#> SRR1445170 2 0.7180 0.715 0.060 0.672 0.268
#> SRR1440663 3 0.2878 0.932 0.096 0.000 0.904
#> SRR1489839 1 0.3941 0.862 0.844 0.000 0.156
#> SRR1409772 1 0.4178 0.844 0.828 0.000 0.172
#> SRR1092591 1 0.0892 0.914 0.980 0.000 0.020
#> SRR1338402 3 0.2448 0.929 0.076 0.000 0.924
#> SRR1337930 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1401341 1 0.2066 0.910 0.940 0.000 0.060
#> SRR1396901 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1354400 3 0.2537 0.930 0.080 0.000 0.920
#> SRR1416538 1 0.3941 0.862 0.844 0.000 0.156
#> SRR1340762 3 0.2959 0.929 0.100 0.000 0.900
#> SRR1460095 2 0.5588 0.754 0.004 0.720 0.276
#> SRR1071181 3 0.2878 0.932 0.096 0.000 0.904
#> SRR1380436 2 0.0000 0.887 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.887 0.000 1.000 0.000
#> SRR1473611 1 0.4291 0.838 0.820 0.000 0.180
#> SRR1074934 1 0.6541 0.744 0.732 0.056 0.212
#> SRR1311731 2 0.0000 0.887 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.887 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1434845 1 0.3941 0.862 0.844 0.000 0.156
#> SRR1472171 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.887 0.000 1.000 0.000
#> SRR1321483 3 0.2878 0.932 0.096 0.000 0.904
#> SRR1418105 3 0.2878 0.932 0.096 0.000 0.904
#> SRR1090022 2 0.5363 0.754 0.000 0.724 0.276
#> SRR1077728 1 0.2066 0.910 0.940 0.000 0.060
#> SRR1365767 3 0.2878 0.825 0.000 0.096 0.904
#> SRR1489670 2 0.3500 0.849 0.004 0.880 0.116
#> SRR1343136 3 0.2878 0.932 0.096 0.000 0.904
#> SRR1359587 3 0.2537 0.930 0.080 0.000 0.920
#> SRR1465782 1 0.3816 0.867 0.852 0.000 0.148
#> SRR1434460 1 0.2261 0.908 0.932 0.000 0.068
#> SRR1415751 1 0.3752 0.869 0.856 0.000 0.144
#> SRR1359027 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1408303 3 0.2878 0.932 0.096 0.000 0.904
#> SRR1456469 2 0.0237 0.887 0.000 0.996 0.004
#> SRR1436717 2 0.0237 0.887 0.000 0.996 0.004
#> SRR1480287 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.887 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.887 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.887 0.000 1.000 0.000
#> SRR1436904 3 0.2537 0.930 0.080 0.000 0.920
#> SRR1076465 2 0.0000 0.887 0.000 1.000 0.000
#> SRR1433215 1 0.4178 0.844 0.828 0.000 0.172
#> SRR1076046 1 0.3412 0.881 0.876 0.000 0.124
#> SRR1406643 2 0.0000 0.887 0.000 1.000 0.000
#> SRR1499460 3 0.0000 0.891 0.000 0.000 1.000
#> SRR1475147 2 0.5365 0.772 0.004 0.744 0.252
#> SRR1319301 1 0.1964 0.911 0.944 0.000 0.056
#> SRR1486117 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1087680 3 0.0000 0.891 0.000 0.000 1.000
#> SRR1361391 3 0.0000 0.891 0.000 0.000 1.000
#> SRR1365655 3 0.3412 0.907 0.124 0.000 0.876
#> SRR1090457 3 0.2878 0.932 0.096 0.000 0.904
#> SRR1084154 2 0.5269 0.798 0.016 0.784 0.200
#> SRR1380358 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1398430 2 0.5061 0.795 0.008 0.784 0.208
#> SRR1444242 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1440832 3 0.0000 0.891 0.000 0.000 1.000
#> SRR1358803 2 0.6495 0.766 0.060 0.740 0.200
#> SRR1344079 2 0.6495 0.766 0.060 0.740 0.200
#> SRR1072602 1 0.4452 0.827 0.808 0.000 0.192
#> SRR1421399 2 0.5061 0.795 0.008 0.784 0.208
#> SRR1339086 1 0.0237 0.915 0.996 0.000 0.004
#> SRR1099881 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1384312 3 0.2878 0.932 0.096 0.000 0.904
#> SRR1329508 3 0.2878 0.932 0.096 0.000 0.904
#> SRR1440200 2 0.0000 0.887 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.887 0.000 1.000 0.000
#> SRR1344364 2 0.0747 0.886 0.000 0.984 0.016
#> SRR1387787 1 0.2165 0.909 0.936 0.000 0.064
#> SRR1378199 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1413119 3 0.2878 0.825 0.000 0.096 0.904
#> SRR1310497 1 0.3941 0.862 0.844 0.000 0.156
#> SRR1356327 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1319059 3 0.3816 0.881 0.148 0.000 0.852
#> SRR1085378 1 0.1860 0.910 0.948 0.000 0.052
#> SRR1379036 3 0.2878 0.932 0.096 0.000 0.904
#> SRR1417656 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.915 1.000 0.000 0.000
#> SRR1455346 2 0.6000 0.783 0.040 0.760 0.200
#> SRR1366412 2 0.1289 0.881 0.000 0.968 0.032
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0188 0.931 0.996 0.000 0.000 0.004
#> SRR1375371 2 0.2281 0.861 0.000 0.904 0.000 0.096
#> SRR1416819 1 0.4454 0.580 0.692 0.000 0.000 0.308
#> SRR1351907 4 0.3610 0.768 0.000 0.200 0.000 0.800
#> SRR1330371 4 0.1474 0.857 0.000 0.000 0.052 0.948
#> SRR1340782 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1094531 4 0.2149 0.839 0.000 0.000 0.088 0.912
#> SRR1436262 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.0000 0.864 0.000 0.000 0.000 1.000
#> SRR1435460 4 0.0336 0.865 0.000 0.000 0.008 0.992
#> SRR1485587 1 0.3569 0.761 0.804 0.000 0.000 0.196
#> SRR1470834 1 0.5172 0.718 0.744 0.000 0.188 0.068
#> SRR1442966 4 0.0524 0.866 0.000 0.004 0.008 0.988
#> SRR1410979 2 0.0000 0.948 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0469 0.942 0.000 0.988 0.000 0.012
#> SRR1367520 1 0.0469 0.928 0.988 0.000 0.000 0.012
#> SRR1360321 3 0.0000 0.921 0.000 0.000 1.000 0.000
#> SRR1445170 4 0.0000 0.864 0.000 0.000 0.000 1.000
#> SRR1440663 3 0.0000 0.921 0.000 0.000 1.000 0.000
#> SRR1489839 1 0.4220 0.688 0.748 0.000 0.248 0.004
#> SRR1409772 1 0.1792 0.891 0.932 0.000 0.000 0.068
#> SRR1092591 1 0.0592 0.926 0.984 0.000 0.000 0.016
#> SRR1338402 3 0.3311 0.803 0.000 0.000 0.828 0.172
#> SRR1337930 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.3266 0.808 0.000 0.000 0.832 0.168
#> SRR1416538 1 0.4220 0.688 0.748 0.000 0.248 0.004
#> SRR1340762 3 0.2408 0.856 0.104 0.000 0.896 0.000
#> SRR1460095 4 0.0188 0.865 0.000 0.004 0.000 0.996
#> SRR1071181 3 0.0000 0.921 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.948 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0188 0.947 0.000 0.996 0.000 0.004
#> SRR1473611 1 0.3024 0.816 0.852 0.000 0.000 0.148
#> SRR1074934 4 0.4040 0.638 0.248 0.000 0.000 0.752
#> SRR1311731 2 0.0000 0.948 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0188 0.947 0.000 0.996 0.000 0.004
#> SRR1429144 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.4220 0.688 0.748 0.000 0.248 0.004
#> SRR1472171 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.948 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.0000 0.921 0.000 0.000 1.000 0.000
#> SRR1418105 3 0.0000 0.921 0.000 0.000 1.000 0.000
#> SRR1090022 4 0.4323 0.766 0.000 0.204 0.020 0.776
#> SRR1077728 1 0.0188 0.931 0.996 0.000 0.000 0.004
#> SRR1365767 4 0.1716 0.852 0.000 0.000 0.064 0.936
#> SRR1489670 4 0.4916 0.347 0.000 0.424 0.000 0.576
#> SRR1343136 3 0.0000 0.921 0.000 0.000 1.000 0.000
#> SRR1359587 3 0.2589 0.859 0.000 0.000 0.884 0.116
#> SRR1465782 1 0.0188 0.931 0.996 0.000 0.000 0.004
#> SRR1434460 1 0.0188 0.931 0.996 0.000 0.000 0.004
#> SRR1415751 1 0.3945 0.730 0.780 0.000 0.216 0.004
#> SRR1359027 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.921 0.000 0.000 1.000 0.000
#> SRR1456469 2 0.0592 0.940 0.000 0.984 0.000 0.016
#> SRR1436717 2 0.0592 0.940 0.000 0.984 0.000 0.016
#> SRR1480287 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.948 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.948 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.948 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.2973 0.835 0.000 0.000 0.856 0.144
#> SRR1076465 2 0.0000 0.948 0.000 1.000 0.000 0.000
#> SRR1433215 1 0.3486 0.770 0.812 0.000 0.000 0.188
#> SRR1076046 1 0.0336 0.930 0.992 0.000 0.000 0.008
#> SRR1406643 2 0.0000 0.948 0.000 1.000 0.000 0.000
#> SRR1499460 4 0.2149 0.839 0.000 0.000 0.088 0.912
#> SRR1475147 4 0.4522 0.591 0.000 0.320 0.000 0.680
#> SRR1319301 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1087680 4 0.2149 0.839 0.000 0.000 0.088 0.912
#> SRR1361391 4 0.2149 0.839 0.000 0.000 0.088 0.912
#> SRR1365655 3 0.2408 0.855 0.104 0.000 0.896 0.000
#> SRR1090457 3 0.0000 0.921 0.000 0.000 1.000 0.000
#> SRR1084154 4 0.3610 0.768 0.000 0.200 0.000 0.800
#> SRR1380358 1 0.0592 0.925 0.984 0.000 0.000 0.016
#> SRR1398430 4 0.3610 0.768 0.000 0.200 0.000 0.800
#> SRR1444242 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1440832 4 0.1940 0.846 0.000 0.000 0.076 0.924
#> SRR1358803 4 0.1474 0.859 0.000 0.052 0.000 0.948
#> SRR1344079 4 0.1474 0.859 0.000 0.052 0.000 0.948
#> SRR1072602 1 0.3444 0.777 0.816 0.000 0.000 0.184
#> SRR1421399 4 0.1474 0.859 0.000 0.052 0.000 0.948
#> SRR1339086 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.921 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.2921 0.839 0.000 0.000 0.860 0.140
#> SRR1440200 2 0.0000 0.948 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.948 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.4888 0.194 0.000 0.588 0.000 0.412
#> SRR1387787 1 0.0188 0.931 0.996 0.000 0.000 0.004
#> SRR1378199 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1413119 4 0.1474 0.857 0.000 0.000 0.052 0.948
#> SRR1310497 1 0.4220 0.688 0.748 0.000 0.248 0.004
#> SRR1356327 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1319059 3 0.3494 0.782 0.172 0.000 0.824 0.004
#> SRR1085378 1 0.0817 0.921 0.976 0.000 0.000 0.024
#> SRR1379036 3 0.0000 0.921 0.000 0.000 1.000 0.000
#> SRR1417656 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.932 1.000 0.000 0.000 0.000
#> SRR1455346 4 0.3610 0.768 0.000 0.200 0.000 0.800
#> SRR1366412 2 0.4040 0.627 0.000 0.752 0.000 0.248
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.3719 0.346 0.776 0.000 0.012 0.004 0.208
#> SRR1375371 2 0.1408 0.913 0.000 0.948 0.000 0.044 0.008
#> SRR1416819 1 0.4649 0.250 0.580 0.000 0.000 0.404 0.016
#> SRR1351907 4 0.5765 0.701 0.012 0.144 0.000 0.652 0.192
#> SRR1330371 4 0.0579 0.758 0.000 0.000 0.008 0.984 0.008
#> SRR1340782 5 0.4101 0.237 0.372 0.000 0.000 0.000 0.628
#> SRR1094531 4 0.2574 0.703 0.000 0.000 0.112 0.876 0.012
#> SRR1436262 1 0.3983 0.446 0.660 0.000 0.000 0.000 0.340
#> SRR1093314 4 0.3696 0.753 0.016 0.000 0.000 0.772 0.212
#> SRR1435460 4 0.0290 0.763 0.000 0.000 0.000 0.992 0.008
#> SRR1485587 1 0.3141 0.516 0.832 0.000 0.000 0.152 0.016
#> SRR1470834 1 0.6689 -0.367 0.416 0.000 0.160 0.012 0.412
#> SRR1442966 4 0.0000 0.762 0.000 0.000 0.000 1.000 0.000
#> SRR1410979 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.1628 0.897 0.000 0.936 0.000 0.056 0.008
#> SRR1367520 1 0.0290 0.591 0.992 0.000 0.000 0.000 0.008
#> SRR1360321 3 0.0000 0.895 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 4 0.3696 0.753 0.016 0.000 0.000 0.772 0.212
#> SRR1440663 3 0.0000 0.895 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 5 0.6909 0.364 0.360 0.000 0.232 0.008 0.400
#> SRR1409772 1 0.3430 0.459 0.824 0.000 0.012 0.012 0.152
#> SRR1092591 1 0.0898 0.591 0.972 0.000 0.000 0.008 0.020
#> SRR1338402 3 0.3421 0.744 0.000 0.000 0.788 0.204 0.008
#> SRR1337930 5 0.3661 0.496 0.276 0.000 0.000 0.000 0.724
#> SRR1337749 1 0.4045 0.433 0.644 0.000 0.000 0.000 0.356
#> SRR1401341 1 0.2942 0.588 0.856 0.000 0.008 0.008 0.128
#> SRR1396901 5 0.3661 0.496 0.276 0.000 0.000 0.000 0.724
#> SRR1354400 3 0.2971 0.805 0.000 0.000 0.836 0.156 0.008
#> SRR1416538 5 0.6827 0.367 0.356 0.000 0.240 0.004 0.400
#> SRR1340762 3 0.3745 0.700 0.196 0.000 0.780 0.000 0.024
#> SRR1460095 4 0.0771 0.765 0.000 0.004 0.000 0.976 0.020
#> SRR1071181 3 0.0000 0.895 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0451 0.945 0.000 0.988 0.000 0.004 0.008
#> SRR1473611 1 0.1568 0.582 0.944 0.000 0.000 0.036 0.020
#> SRR1074934 4 0.4590 0.224 0.420 0.000 0.000 0.568 0.012
#> SRR1311731 2 0.0290 0.946 0.000 0.992 0.000 0.000 0.008
#> SRR1452957 2 0.0451 0.945 0.000 0.988 0.000 0.008 0.004
#> SRR1429144 5 0.3684 0.491 0.280 0.000 0.000 0.000 0.720
#> SRR1448203 1 0.3730 0.499 0.712 0.000 0.000 0.000 0.288
#> SRR1366102 1 0.3424 0.539 0.760 0.000 0.000 0.000 0.240
#> SRR1434845 5 0.6929 0.367 0.352 0.000 0.240 0.008 0.400
#> SRR1472171 5 0.3661 0.496 0.276 0.000 0.000 0.000 0.724
#> SRR1441075 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.895 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0000 0.895 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 4 0.4141 0.658 0.000 0.236 0.000 0.736 0.028
#> SRR1077728 1 0.4791 -0.119 0.588 0.000 0.012 0.008 0.392
#> SRR1365767 4 0.1195 0.751 0.000 0.000 0.028 0.960 0.012
#> SRR1489670 4 0.6092 0.398 0.000 0.364 0.000 0.504 0.132
#> SRR1343136 3 0.0290 0.892 0.000 0.000 0.992 0.000 0.008
#> SRR1359587 3 0.2971 0.805 0.000 0.000 0.836 0.156 0.008
#> SRR1465782 1 0.5033 -0.174 0.568 0.000 0.028 0.004 0.400
#> SRR1434460 1 0.2050 0.558 0.920 0.000 0.008 0.008 0.064
#> SRR1415751 5 0.6658 0.339 0.396 0.000 0.192 0.004 0.408
#> SRR1359027 5 0.3661 0.496 0.276 0.000 0.000 0.000 0.724
#> SRR1408303 3 0.0000 0.895 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.0451 0.945 0.000 0.988 0.000 0.008 0.004
#> SRR1436717 2 0.0566 0.943 0.000 0.984 0.000 0.012 0.004
#> SRR1480287 1 0.4182 0.369 0.600 0.000 0.000 0.000 0.400
#> SRR1326845 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0162 0.947 0.000 0.996 0.000 0.000 0.004
#> SRR1436904 3 0.2660 0.828 0.000 0.000 0.864 0.128 0.008
#> SRR1076465 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 1 0.2615 0.559 0.892 0.000 0.008 0.080 0.020
#> SRR1076046 1 0.2341 0.569 0.912 0.000 0.012 0.020 0.056
#> SRR1406643 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 4 0.2361 0.711 0.000 0.000 0.096 0.892 0.012
#> SRR1475147 4 0.4882 0.294 0.000 0.444 0.000 0.532 0.024
#> SRR1319301 1 0.4659 0.165 0.500 0.000 0.012 0.000 0.488
#> SRR1486117 1 0.3242 0.549 0.784 0.000 0.000 0.000 0.216
#> SRR1087680 4 0.2470 0.707 0.000 0.000 0.104 0.884 0.012
#> SRR1361391 4 0.2462 0.703 0.000 0.000 0.112 0.880 0.008
#> SRR1365655 3 0.3935 0.688 0.200 0.000 0.772 0.004 0.024
#> SRR1090457 3 0.0000 0.895 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 4 0.7184 0.675 0.112 0.116 0.000 0.552 0.220
#> SRR1380358 1 0.3238 0.594 0.836 0.000 0.000 0.028 0.136
#> SRR1398430 4 0.6986 0.685 0.100 0.100 0.000 0.564 0.236
#> SRR1444242 5 0.3707 0.486 0.284 0.000 0.000 0.000 0.716
#> SRR1440832 4 0.2464 0.711 0.000 0.000 0.096 0.888 0.016
#> SRR1358803 4 0.7184 0.675 0.116 0.112 0.000 0.552 0.220
#> SRR1344079 4 0.7184 0.675 0.116 0.112 0.000 0.552 0.220
#> SRR1072602 1 0.4964 0.388 0.740 0.000 0.036 0.052 0.172
#> SRR1421399 4 0.5641 0.712 0.012 0.112 0.000 0.656 0.220
#> SRR1339086 1 0.4029 0.464 0.680 0.000 0.004 0.000 0.316
#> SRR1099881 1 0.3857 0.470 0.688 0.000 0.000 0.000 0.312
#> SRR1384312 3 0.0000 0.895 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.1124 0.883 0.004 0.000 0.960 0.036 0.000
#> SRR1440200 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.948 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 2 0.6002 -0.103 0.000 0.492 0.000 0.392 0.116
#> SRR1387787 1 0.0693 0.584 0.980 0.000 0.012 0.008 0.000
#> SRR1378199 1 0.2017 0.598 0.912 0.000 0.000 0.008 0.080
#> SRR1413119 4 0.1082 0.751 0.000 0.000 0.028 0.964 0.008
#> SRR1310497 5 0.6929 0.367 0.352 0.000 0.240 0.008 0.400
#> SRR1356327 1 0.3966 0.455 0.664 0.000 0.000 0.000 0.336
#> SRR1319059 3 0.4759 0.460 0.336 0.000 0.636 0.004 0.024
#> SRR1085378 1 0.0798 0.591 0.976 0.000 0.000 0.008 0.016
#> SRR1379036 3 0.0162 0.894 0.000 0.000 0.996 0.000 0.004
#> SRR1417656 5 0.3684 0.491 0.280 0.000 0.000 0.000 0.720
#> SRR1454225 1 0.3949 0.453 0.668 0.000 0.000 0.000 0.332
#> SRR1455346 4 0.7184 0.675 0.112 0.116 0.000 0.552 0.220
#> SRR1366412 2 0.3354 0.807 0.000 0.844 0.000 0.068 0.088
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1313664 6 0.2492 0.7857 0.100 0.000 0.020 0.004 0.000 0.876
#> SRR1375371 2 0.4092 0.7516 0.012 0.768 0.000 0.140 0.080 0.000
#> SRR1416819 5 0.6456 -0.3624 0.044 0.000 0.032 0.288 0.544 0.092
#> SRR1351907 4 0.4798 0.9194 0.000 0.024 0.000 0.496 0.464 0.016
#> SRR1330371 5 0.0000 0.4500 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1340782 1 0.4386 0.7017 0.652 0.000 0.000 0.300 0.000 0.048
#> SRR1094531 5 0.2462 0.4407 0.004 0.000 0.132 0.004 0.860 0.000
#> SRR1436262 1 0.2201 0.7114 0.900 0.000 0.000 0.048 0.000 0.052
#> SRR1093314 5 0.4591 -0.6722 0.000 0.000 0.000 0.408 0.552 0.040
#> SRR1435460 5 0.1610 0.3830 0.000 0.000 0.000 0.084 0.916 0.000
#> SRR1485587 6 0.5610 0.6375 0.080 0.000 0.000 0.144 0.116 0.660
#> SRR1470834 6 0.3181 0.7766 0.028 0.000 0.020 0.112 0.000 0.840
#> SRR1442966 5 0.0458 0.4422 0.000 0.000 0.000 0.016 0.984 0.000
#> SRR1410979 2 0.0000 0.9184 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.3194 0.8087 0.012 0.840 0.000 0.044 0.104 0.000
#> SRR1367520 6 0.2442 0.7726 0.144 0.000 0.000 0.004 0.000 0.852
#> SRR1360321 3 0.0000 0.8939 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 5 0.4591 -0.6722 0.000 0.000 0.000 0.408 0.552 0.040
#> SRR1440663 3 0.0000 0.8939 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 6 0.3282 0.7586 0.020 0.000 0.036 0.108 0.000 0.836
#> SRR1409772 6 0.2582 0.8000 0.060 0.000 0.020 0.032 0.000 0.888
#> SRR1092591 6 0.2520 0.7668 0.152 0.000 0.000 0.004 0.000 0.844
#> SRR1338402 3 0.3922 0.5446 0.000 0.000 0.664 0.016 0.320 0.000
#> SRR1337930 1 0.4887 0.6941 0.612 0.000 0.000 0.300 0.000 0.088
#> SRR1337749 1 0.1845 0.7082 0.920 0.000 0.000 0.028 0.000 0.052
#> SRR1401341 1 0.4260 -0.0613 0.512 0.000 0.000 0.016 0.000 0.472
#> SRR1396901 1 0.4887 0.6941 0.612 0.000 0.000 0.300 0.000 0.088
#> SRR1354400 3 0.3320 0.7250 0.000 0.000 0.772 0.016 0.212 0.000
#> SRR1416538 6 0.3282 0.7586 0.020 0.000 0.036 0.108 0.000 0.836
#> SRR1340762 3 0.4905 0.5524 0.004 0.000 0.652 0.104 0.000 0.240
#> SRR1460095 5 0.2178 0.3139 0.000 0.000 0.000 0.132 0.868 0.000
#> SRR1071181 3 0.0000 0.8939 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9184 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.1296 0.9087 0.012 0.952 0.000 0.032 0.004 0.000
#> SRR1473611 6 0.4133 0.7361 0.120 0.000 0.000 0.100 0.012 0.768
#> SRR1074934 5 0.6386 -0.2630 0.044 0.000 0.048 0.236 0.588 0.084
#> SRR1311731 2 0.0725 0.9142 0.012 0.976 0.000 0.012 0.000 0.000
#> SRR1452957 2 0.0909 0.9130 0.000 0.968 0.000 0.020 0.012 0.000
#> SRR1429144 1 0.4887 0.6941 0.612 0.000 0.000 0.300 0.000 0.088
#> SRR1448203 1 0.2389 0.6557 0.864 0.000 0.000 0.008 0.000 0.128
#> SRR1366102 1 0.3141 0.5706 0.788 0.000 0.000 0.012 0.000 0.200
#> SRR1434845 6 0.3282 0.7586 0.020 0.000 0.036 0.108 0.000 0.836
#> SRR1472171 1 0.4887 0.6941 0.612 0.000 0.000 0.300 0.000 0.088
#> SRR1441075 2 0.0146 0.9183 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1321483 3 0.0000 0.8939 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.8939 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 5 0.5237 0.0973 0.004 0.228 0.000 0.148 0.620 0.000
#> SRR1077728 6 0.2492 0.7728 0.100 0.000 0.020 0.004 0.000 0.876
#> SRR1365767 5 0.0146 0.4502 0.004 0.000 0.000 0.000 0.996 0.000
#> SRR1489670 5 0.5661 0.0116 0.004 0.252 0.000 0.192 0.552 0.000
#> SRR1343136 3 0.0000 0.8939 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1359587 3 0.3509 0.6902 0.000 0.000 0.744 0.016 0.240 0.000
#> SRR1465782 6 0.2183 0.7936 0.040 0.000 0.020 0.028 0.000 0.912
#> SRR1434460 6 0.2704 0.7755 0.140 0.000 0.000 0.016 0.000 0.844
#> SRR1415751 6 0.2112 0.7904 0.028 0.000 0.020 0.036 0.000 0.916
#> SRR1359027 1 0.4887 0.6941 0.612 0.000 0.000 0.300 0.000 0.088
#> SRR1408303 3 0.0000 0.8939 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1456469 2 0.1511 0.9029 0.012 0.940 0.000 0.044 0.004 0.000
#> SRR1436717 2 0.1578 0.9007 0.012 0.936 0.000 0.048 0.004 0.000
#> SRR1480287 1 0.2786 0.7151 0.860 0.000 0.000 0.084 0.000 0.056
#> SRR1326845 2 0.0000 0.9184 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9184 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0291 0.9179 0.000 0.992 0.000 0.004 0.004 0.000
#> SRR1436904 3 0.1657 0.8620 0.000 0.000 0.928 0.016 0.056 0.000
#> SRR1076465 2 0.0000 0.9184 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 6 0.5243 0.6898 0.092 0.000 0.004 0.112 0.084 0.708
#> SRR1076046 6 0.3950 0.6119 0.276 0.000 0.000 0.028 0.000 0.696
#> SRR1406643 2 0.0146 0.9183 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1499460 5 0.2633 0.4472 0.004 0.000 0.112 0.020 0.864 0.000
#> SRR1475147 5 0.5621 0.0741 0.016 0.236 0.000 0.156 0.592 0.000
#> SRR1319301 1 0.4683 0.7033 0.652 0.000 0.004 0.276 0.000 0.068
#> SRR1486117 1 0.3670 0.4446 0.704 0.000 0.000 0.012 0.000 0.284
#> SRR1087680 5 0.2971 0.4270 0.004 0.000 0.144 0.020 0.832 0.000
#> SRR1361391 5 0.2191 0.4458 0.000 0.000 0.120 0.004 0.876 0.000
#> SRR1365655 3 0.4537 0.5426 0.000 0.000 0.664 0.072 0.000 0.264
#> SRR1090457 3 0.0000 0.8939 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.4559 0.9555 0.000 0.008 0.000 0.512 0.460 0.020
#> SRR1380358 1 0.4553 -0.0269 0.520 0.000 0.000 0.008 0.020 0.452
#> SRR1398430 4 0.4328 0.9530 0.000 0.000 0.000 0.520 0.460 0.020
#> SRR1444242 1 0.4986 0.6990 0.612 0.000 0.000 0.284 0.000 0.104
#> SRR1440832 5 0.2633 0.4470 0.004 0.000 0.112 0.020 0.864 0.000
#> SRR1358803 5 0.4847 -0.7882 0.000 0.000 0.000 0.444 0.500 0.056
#> SRR1344079 5 0.4753 -0.8007 0.000 0.000 0.000 0.456 0.496 0.048
#> SRR1072602 6 0.5369 0.7094 0.048 0.000 0.020 0.136 0.092 0.704
#> SRR1421399 5 0.4246 -0.7883 0.000 0.000 0.000 0.452 0.532 0.016
#> SRR1339086 1 0.2613 0.6539 0.848 0.000 0.000 0.012 0.000 0.140
#> SRR1099881 1 0.2841 0.6298 0.824 0.000 0.000 0.012 0.000 0.164
#> SRR1384312 3 0.0000 0.8939 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.1536 0.8693 0.000 0.000 0.940 0.016 0.040 0.004
#> SRR1440200 2 0.0000 0.9184 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9184 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1344364 2 0.6122 -0.2538 0.012 0.412 0.000 0.184 0.392 0.000
#> SRR1387787 6 0.2402 0.7745 0.140 0.000 0.000 0.004 0.000 0.856
#> SRR1378199 6 0.4379 0.4017 0.396 0.000 0.000 0.028 0.000 0.576
#> SRR1413119 5 0.0622 0.4504 0.000 0.000 0.008 0.012 0.980 0.000
#> SRR1310497 6 0.3282 0.7586 0.020 0.000 0.036 0.108 0.000 0.836
#> SRR1356327 1 0.1444 0.6964 0.928 0.000 0.000 0.000 0.000 0.072
#> SRR1319059 6 0.4941 0.5971 0.008 0.000 0.228 0.104 0.000 0.660
#> SRR1085378 6 0.2553 0.7698 0.144 0.000 0.000 0.008 0.000 0.848
#> SRR1379036 3 0.0000 0.8939 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1417656 1 0.4887 0.6941 0.612 0.000 0.000 0.300 0.000 0.088
#> SRR1454225 1 0.1387 0.6967 0.932 0.000 0.000 0.000 0.000 0.068
#> SRR1455346 4 0.4396 0.9419 0.000 0.000 0.000 0.520 0.456 0.024
#> SRR1366412 2 0.4322 0.7219 0.012 0.744 0.000 0.160 0.084 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 17697 rows and 104 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.940 0.944 0.975 0.4728 0.522 0.522
#> 3 3 0.873 0.890 0.956 0.3473 0.758 0.566
#> 4 4 0.869 0.840 0.938 0.1398 0.878 0.671
#> 5 5 0.782 0.769 0.877 0.0388 0.966 0.880
#> 6 6 0.749 0.617 0.838 0.0294 0.958 0.849
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
#> SRR1313664 1 0.000 0.987 1.000 0.000
#> SRR1375371 2 0.000 0.952 0.000 1.000
#> SRR1416819 1 0.000 0.987 1.000 0.000
#> SRR1351907 2 0.722 0.759 0.200 0.800
#> SRR1330371 2 0.000 0.952 0.000 1.000
#> SRR1340782 1 0.000 0.987 1.000 0.000
#> SRR1094531 2 0.000 0.952 0.000 1.000
#> SRR1436262 1 0.000 0.987 1.000 0.000
#> SRR1093314 2 0.814 0.688 0.252 0.748
#> SRR1435460 2 0.000 0.952 0.000 1.000
#> SRR1485587 1 0.000 0.987 1.000 0.000
#> SRR1470834 1 0.000 0.987 1.000 0.000
#> SRR1442966 2 0.000 0.952 0.000 1.000
#> SRR1410979 2 0.000 0.952 0.000 1.000
#> SRR1326449 2 0.000 0.952 0.000 1.000
#> SRR1367520 1 0.000 0.987 1.000 0.000
#> SRR1360321 1 0.000 0.987 1.000 0.000
#> SRR1445170 2 0.971 0.398 0.400 0.600
#> SRR1440663 1 0.000 0.987 1.000 0.000
#> SRR1489839 1 0.000 0.987 1.000 0.000
#> SRR1409772 1 0.000 0.987 1.000 0.000
#> SRR1092591 1 0.000 0.987 1.000 0.000
#> SRR1338402 2 0.224 0.924 0.036 0.964
#> SRR1337930 1 0.000 0.987 1.000 0.000
#> SRR1337749 1 0.000 0.987 1.000 0.000
#> SRR1401341 1 0.000 0.987 1.000 0.000
#> SRR1396901 1 0.000 0.987 1.000 0.000
#> SRR1354400 1 0.697 0.759 0.812 0.188
#> SRR1416538 1 0.000 0.987 1.000 0.000
#> SRR1340762 1 0.000 0.987 1.000 0.000
#> SRR1460095 2 0.000 0.952 0.000 1.000
#> SRR1071181 1 0.163 0.965 0.976 0.024
#> SRR1380436 2 0.000 0.952 0.000 1.000
#> SRR1079973 2 0.000 0.952 0.000 1.000
#> SRR1473611 1 0.000 0.987 1.000 0.000
#> SRR1074934 1 0.000 0.987 1.000 0.000
#> SRR1311731 2 0.000 0.952 0.000 1.000
#> SRR1452957 2 0.000 0.952 0.000 1.000
#> SRR1429144 1 0.000 0.987 1.000 0.000
#> SRR1448203 1 0.000 0.987 1.000 0.000
#> SRR1366102 1 0.000 0.987 1.000 0.000
#> SRR1434845 1 0.000 0.987 1.000 0.000
#> SRR1472171 1 0.000 0.987 1.000 0.000
#> SRR1441075 2 0.000 0.952 0.000 1.000
#> SRR1321483 1 0.000 0.987 1.000 0.000
#> SRR1418105 1 0.000 0.987 1.000 0.000
#> SRR1090022 2 0.000 0.952 0.000 1.000
#> SRR1077728 1 0.000 0.987 1.000 0.000
#> SRR1365767 2 0.000 0.952 0.000 1.000
#> SRR1489670 2 0.000 0.952 0.000 1.000
#> SRR1343136 1 0.000 0.987 1.000 0.000
#> SRR1359587 1 0.904 0.524 0.680 0.320
#> SRR1465782 1 0.000 0.987 1.000 0.000
#> SRR1434460 1 0.000 0.987 1.000 0.000
#> SRR1415751 1 0.000 0.987 1.000 0.000
#> SRR1359027 1 0.000 0.987 1.000 0.000
#> SRR1408303 1 0.000 0.987 1.000 0.000
#> SRR1456469 2 0.000 0.952 0.000 1.000
#> SRR1436717 2 0.000 0.952 0.000 1.000
#> SRR1480287 1 0.000 0.987 1.000 0.000
#> SRR1326845 2 0.000 0.952 0.000 1.000
#> SRR1070133 2 0.000 0.952 0.000 1.000
#> SRR1387745 2 0.000 0.952 0.000 1.000
#> SRR1436904 1 0.278 0.940 0.952 0.048
#> SRR1076465 2 0.000 0.952 0.000 1.000
#> SRR1433215 1 0.000 0.987 1.000 0.000
#> SRR1076046 1 0.000 0.987 1.000 0.000
#> SRR1406643 2 0.000 0.952 0.000 1.000
#> SRR1499460 2 0.000 0.952 0.000 1.000
#> SRR1475147 2 0.000 0.952 0.000 1.000
#> SRR1319301 1 0.000 0.987 1.000 0.000
#> SRR1486117 1 0.000 0.987 1.000 0.000
#> SRR1087680 2 0.000 0.952 0.000 1.000
#> SRR1361391 2 0.000 0.952 0.000 1.000
#> SRR1365655 1 0.000 0.987 1.000 0.000
#> SRR1090457 1 0.000 0.987 1.000 0.000
#> SRR1084154 2 0.966 0.418 0.392 0.608
#> SRR1380358 1 0.000 0.987 1.000 0.000
#> SRR1398430 2 0.921 0.542 0.336 0.664
#> SRR1444242 1 0.000 0.987 1.000 0.000
#> SRR1440832 2 0.000 0.952 0.000 1.000
#> SRR1358803 1 0.118 0.973 0.984 0.016
#> SRR1344079 1 0.000 0.987 1.000 0.000
#> SRR1072602 1 0.000 0.987 1.000 0.000
#> SRR1421399 2 0.722 0.759 0.200 0.800
#> SRR1339086 1 0.000 0.987 1.000 0.000
#> SRR1099881 1 0.000 0.987 1.000 0.000
#> SRR1384312 1 0.118 0.973 0.984 0.016
#> SRR1329508 1 0.000 0.987 1.000 0.000
#> SRR1440200 2 0.000 0.952 0.000 1.000
#> SRR1397558 2 0.000 0.952 0.000 1.000
#> SRR1344364 2 0.000 0.952 0.000 1.000
#> SRR1387787 1 0.000 0.987 1.000 0.000
#> SRR1378199 1 0.000 0.987 1.000 0.000
#> SRR1413119 2 0.000 0.952 0.000 1.000
#> SRR1310497 1 0.000 0.987 1.000 0.000
#> SRR1356327 1 0.000 0.987 1.000 0.000
#> SRR1319059 1 0.000 0.987 1.000 0.000
#> SRR1085378 1 0.000 0.987 1.000 0.000
#> SRR1379036 1 0.000 0.987 1.000 0.000
#> SRR1417656 1 0.000 0.987 1.000 0.000
#> SRR1454225 1 0.000 0.987 1.000 0.000
#> SRR1455346 1 0.605 0.813 0.852 0.148
#> SRR1366412 2 0.000 0.952 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1375371 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1416819 1 0.5678 0.5058 0.684 0.000 0.316
#> SRR1351907 2 0.4504 0.7475 0.196 0.804 0.000
#> SRR1330371 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1340782 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1094531 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1436262 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1093314 2 0.5098 0.6920 0.248 0.752 0.000
#> SRR1435460 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1485587 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1470834 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1442966 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1410979 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1326449 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1367520 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1360321 3 0.0237 0.9283 0.004 0.000 0.996
#> SRR1445170 2 0.6204 0.3460 0.424 0.576 0.000
#> SRR1440663 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1489839 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1409772 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1092591 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1338402 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1337930 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1401341 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1396901 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1354400 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1416538 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1340762 1 0.6307 -0.0209 0.512 0.000 0.488
#> SRR1460095 3 0.5733 0.4625 0.000 0.324 0.676
#> SRR1071181 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1380436 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1473611 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1074934 3 0.5098 0.6797 0.248 0.000 0.752
#> SRR1311731 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1434845 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1472171 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1321483 3 0.2625 0.8678 0.084 0.000 0.916
#> SRR1418105 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1090022 2 0.4452 0.7319 0.000 0.808 0.192
#> SRR1077728 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1365767 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1489670 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1343136 3 0.4235 0.7729 0.176 0.000 0.824
#> SRR1359587 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1465782 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1434460 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1415751 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1359027 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1408303 3 0.1529 0.9039 0.040 0.000 0.960
#> SRR1456469 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1436717 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1436904 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1076465 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1433215 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1076046 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1406643 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1499460 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1475147 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1319301 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1087680 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1361391 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1365655 3 0.6111 0.3628 0.396 0.000 0.604
#> SRR1090457 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1084154 2 0.5835 0.5393 0.340 0.660 0.000
#> SRR1380358 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1398430 2 0.6140 0.3981 0.404 0.596 0.000
#> SRR1444242 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1440832 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1358803 1 0.0592 0.9633 0.988 0.012 0.000
#> SRR1344079 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1072602 1 0.0237 0.9712 0.996 0.000 0.004
#> SRR1421399 2 0.4605 0.7402 0.204 0.796 0.000
#> SRR1339086 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1384312 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1329508 3 0.2261 0.8820 0.068 0.000 0.932
#> SRR1440200 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1344364 2 0.0000 0.9086 0.000 1.000 0.000
#> SRR1387787 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1378199 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1413119 3 0.0000 0.9305 0.000 0.000 1.000
#> SRR1310497 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1356327 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1319059 1 0.0747 0.9597 0.984 0.000 0.016
#> SRR1085378 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1379036 3 0.4235 0.7729 0.176 0.000 0.824
#> SRR1417656 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9748 1.000 0.000 0.000
#> SRR1455346 1 0.4974 0.6473 0.764 0.236 0.000
#> SRR1366412 2 0.0000 0.9086 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1416819 4 0.0336 0.8624 0.008 0.000 0.000 0.992
#> SRR1351907 2 0.0927 0.9209 0.008 0.976 0.000 0.016
#> SRR1330371 3 0.0469 0.9011 0.000 0.000 0.988 0.012
#> SRR1340782 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1094531 3 0.0817 0.8967 0.000 0.000 0.976 0.024
#> SRR1436262 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.0592 0.8645 0.016 0.000 0.000 0.984
#> SRR1435460 4 0.0000 0.8583 0.000 0.000 0.000 1.000
#> SRR1485587 4 0.0817 0.8647 0.024 0.000 0.000 0.976
#> SRR1470834 1 0.2345 0.8387 0.900 0.000 0.000 0.100
#> SRR1442966 4 0.1940 0.8080 0.000 0.000 0.076 0.924
#> SRR1410979 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1360321 3 0.0336 0.9010 0.008 0.000 0.992 0.000
#> SRR1445170 4 0.0469 0.8637 0.012 0.000 0.000 0.988
#> SRR1440663 3 0.0336 0.9010 0.008 0.000 0.992 0.000
#> SRR1489839 1 0.0592 0.9383 0.984 0.000 0.016 0.000
#> SRR1409772 1 0.0188 0.9482 0.996 0.000 0.000 0.004
#> SRR1092591 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1338402 3 0.0000 0.9030 0.000 0.000 1.000 0.000
#> SRR1337930 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.0188 0.9026 0.000 0.000 0.996 0.004
#> SRR1416538 1 0.0817 0.9308 0.976 0.000 0.024 0.000
#> SRR1340762 3 0.4998 0.1077 0.488 0.000 0.512 0.000
#> SRR1460095 4 0.0000 0.8583 0.000 0.000 0.000 1.000
#> SRR1071181 3 0.0000 0.9030 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1473611 4 0.1302 0.8600 0.044 0.000 0.000 0.956
#> SRR1074934 4 0.0188 0.8578 0.000 0.000 0.004 0.996
#> SRR1311731 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0188 0.9480 0.996 0.000 0.000 0.004
#> SRR1434845 1 0.0336 0.9452 0.992 0.000 0.008 0.000
#> SRR1472171 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.2868 0.7828 0.136 0.000 0.864 0.000
#> SRR1418105 3 0.0000 0.9030 0.000 0.000 1.000 0.000
#> SRR1090022 2 0.3895 0.7478 0.000 0.804 0.184 0.012
#> SRR1077728 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1365767 3 0.0817 0.8967 0.000 0.000 0.976 0.024
#> SRR1489670 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1343136 3 0.3528 0.7149 0.192 0.000 0.808 0.000
#> SRR1359587 3 0.0000 0.9030 0.000 0.000 1.000 0.000
#> SRR1465782 1 0.0188 0.9483 0.996 0.000 0.004 0.000
#> SRR1434460 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1415751 1 0.0188 0.9483 0.996 0.000 0.004 0.000
#> SRR1359027 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.1557 0.8635 0.056 0.000 0.944 0.000
#> SRR1456469 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.0188 0.9026 0.000 0.000 0.996 0.004
#> SRR1076465 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1433215 4 0.4855 0.3809 0.400 0.000 0.000 0.600
#> SRR1076046 1 0.4996 -0.0352 0.516 0.000 0.000 0.484
#> SRR1406643 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1499460 3 0.0817 0.8967 0.000 0.000 0.976 0.024
#> SRR1475147 2 0.0707 0.9237 0.000 0.980 0.000 0.020
#> SRR1319301 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1087680 3 0.0921 0.8945 0.000 0.000 0.972 0.028
#> SRR1361391 3 0.0469 0.9010 0.000 0.000 0.988 0.012
#> SRR1365655 3 0.4925 0.2982 0.428 0.000 0.572 0.000
#> SRR1090457 3 0.0000 0.9030 0.000 0.000 1.000 0.000
#> SRR1084154 2 0.3764 0.6707 0.216 0.784 0.000 0.000
#> SRR1380358 4 0.2589 0.8194 0.116 0.000 0.000 0.884
#> SRR1398430 2 0.5039 0.3157 0.404 0.592 0.004 0.000
#> SRR1444242 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1440832 3 0.0817 0.8967 0.000 0.000 0.976 0.024
#> SRR1358803 4 0.3528 0.7380 0.192 0.000 0.000 0.808
#> SRR1344079 4 0.0817 0.8647 0.024 0.000 0.000 0.976
#> SRR1072602 4 0.4697 0.4652 0.356 0.000 0.000 0.644
#> SRR1421399 2 0.7380 0.2216 0.200 0.512 0.000 0.288
#> SRR1339086 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.9030 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.0524 0.9018 0.008 0.000 0.988 0.004
#> SRR1440200 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9364 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.0707 0.9232 0.000 0.980 0.000 0.020
#> SRR1387787 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1378199 1 0.4999 -0.0620 0.508 0.000 0.000 0.492
#> SRR1413119 4 0.4977 0.0189 0.000 0.000 0.460 0.540
#> SRR1310497 1 0.0817 0.9308 0.976 0.000 0.024 0.000
#> SRR1356327 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1319059 1 0.1867 0.8810 0.928 0.000 0.072 0.000
#> SRR1085378 1 0.4661 0.4035 0.652 0.000 0.000 0.348
#> SRR1379036 3 0.3311 0.7411 0.172 0.000 0.828 0.000
#> SRR1417656 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9509 1.000 0.000 0.000 0.000
#> SRR1455346 4 0.2174 0.8531 0.052 0.020 0.000 0.928
#> SRR1366412 2 0.0000 0.9364 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.1608 0.8638 0.928 0.000 0.000 0.000 NA
#> SRR1375371 2 0.3366 0.7526 0.000 0.768 0.000 0.000 NA
#> SRR1416819 4 0.3913 0.6877 0.000 0.000 0.000 0.676 NA
#> SRR1351907 2 0.4740 0.6845 0.008 0.728 0.000 0.060 NA
#> SRR1330371 3 0.0290 0.8680 0.000 0.000 0.992 0.000 NA
#> SRR1340782 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1094531 3 0.2891 0.8020 0.000 0.000 0.824 0.000 NA
#> SRR1436262 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1093314 4 0.0880 0.7965 0.000 0.000 0.000 0.968 NA
#> SRR1435460 4 0.1671 0.7943 0.000 0.000 0.000 0.924 NA
#> SRR1485587 4 0.1211 0.7981 0.016 0.000 0.000 0.960 NA
#> SRR1470834 1 0.3242 0.7751 0.844 0.000 0.000 0.116 NA
#> SRR1442966 4 0.5476 0.6101 0.000 0.000 0.184 0.656 NA
#> SRR1410979 2 0.0000 0.8905 0.000 1.000 0.000 0.000 NA
#> SRR1326449 2 0.2891 0.7944 0.000 0.824 0.000 0.000 NA
#> SRR1367520 1 0.6225 0.2927 0.544 0.000 0.000 0.256 NA
#> SRR1360321 3 0.0290 0.8684 0.008 0.000 0.992 0.000 NA
#> SRR1445170 4 0.1043 0.7980 0.000 0.000 0.000 0.960 NA
#> SRR1440663 3 0.0162 0.8688 0.004 0.000 0.996 0.000 NA
#> SRR1489839 1 0.0703 0.8892 0.976 0.000 0.000 0.000 NA
#> SRR1409772 1 0.6606 -0.1249 0.420 0.000 0.000 0.364 NA
#> SRR1092591 1 0.1830 0.8566 0.932 0.000 0.000 0.040 NA
#> SRR1338402 3 0.0000 0.8687 0.000 0.000 1.000 0.000 NA
#> SRR1337930 1 0.0162 0.8956 0.996 0.000 0.000 0.000 NA
#> SRR1337749 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1401341 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1396901 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1354400 3 0.0000 0.8687 0.000 0.000 1.000 0.000 NA
#> SRR1416538 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1340762 3 0.4242 0.3077 0.428 0.000 0.572 0.000 NA
#> SRR1460095 4 0.1671 0.7943 0.000 0.000 0.000 0.924 NA
#> SRR1071181 3 0.0000 0.8687 0.000 0.000 1.000 0.000 NA
#> SRR1380436 2 0.0000 0.8905 0.000 1.000 0.000 0.000 NA
#> SRR1079973 2 0.0162 0.8901 0.000 0.996 0.000 0.000 NA
#> SRR1473611 4 0.3388 0.7570 0.008 0.000 0.000 0.792 NA
#> SRR1074934 4 0.1197 0.7945 0.000 0.000 0.000 0.952 NA
#> SRR1311731 2 0.0000 0.8905 0.000 1.000 0.000 0.000 NA
#> SRR1452957 2 0.3242 0.7608 0.000 0.784 0.000 0.000 NA
#> SRR1429144 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1448203 1 0.0162 0.8956 0.996 0.000 0.000 0.004 NA
#> SRR1366102 1 0.2450 0.8272 0.896 0.000 0.000 0.076 NA
#> SRR1434845 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1472171 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1441075 2 0.2852 0.8013 0.000 0.828 0.000 0.000 NA
#> SRR1321483 3 0.1952 0.8239 0.084 0.000 0.912 0.000 NA
#> SRR1418105 3 0.0000 0.8687 0.000 0.000 1.000 0.000 NA
#> SRR1090022 2 0.2798 0.7870 0.000 0.852 0.140 0.000 NA
#> SRR1077728 1 0.0963 0.8852 0.964 0.000 0.000 0.000 NA
#> SRR1365767 3 0.2732 0.8133 0.000 0.000 0.840 0.000 NA
#> SRR1489670 2 0.2574 0.8241 0.000 0.876 0.000 0.012 NA
#> SRR1343136 3 0.5279 0.6828 0.096 0.000 0.696 0.012 NA
#> SRR1359587 3 0.0000 0.8687 0.000 0.000 1.000 0.000 NA
#> SRR1465782 1 0.3194 0.7876 0.832 0.000 0.000 0.020 NA
#> SRR1434460 1 0.2922 0.8080 0.872 0.000 0.000 0.072 NA
#> SRR1415751 1 0.0162 0.8957 0.996 0.000 0.000 0.000 NA
#> SRR1359027 1 0.0794 0.8877 0.972 0.000 0.000 0.000 NA
#> SRR1408303 3 0.1484 0.8525 0.048 0.000 0.944 0.000 NA
#> SRR1456469 2 0.0162 0.8901 0.000 0.996 0.000 0.000 NA
#> SRR1436717 2 0.0000 0.8905 0.000 1.000 0.000 0.000 NA
#> SRR1480287 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1326845 2 0.0000 0.8905 0.000 1.000 0.000 0.000 NA
#> SRR1070133 2 0.0000 0.8905 0.000 1.000 0.000 0.000 NA
#> SRR1387745 2 0.0510 0.8875 0.000 0.984 0.000 0.000 NA
#> SRR1436904 3 0.0566 0.8663 0.000 0.000 0.984 0.012 NA
#> SRR1076465 2 0.0000 0.8905 0.000 1.000 0.000 0.000 NA
#> SRR1433215 1 0.5296 -0.0545 0.484 0.000 0.000 0.468 NA
#> SRR1076046 4 0.5591 0.1715 0.432 0.000 0.000 0.496 NA
#> SRR1406643 2 0.0703 0.8852 0.000 0.976 0.000 0.000 NA
#> SRR1499460 3 0.1792 0.8506 0.000 0.000 0.916 0.000 NA
#> SRR1475147 2 0.0794 0.8819 0.000 0.972 0.000 0.000 NA
#> SRR1319301 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1486117 1 0.1774 0.8600 0.932 0.000 0.000 0.052 NA
#> SRR1087680 3 0.2127 0.8405 0.000 0.000 0.892 0.000 NA
#> SRR1361391 3 0.0880 0.8633 0.000 0.000 0.968 0.000 NA
#> SRR1365655 3 0.4658 0.3317 0.408 0.000 0.576 0.000 NA
#> SRR1090457 3 0.0000 0.8687 0.000 0.000 1.000 0.000 NA
#> SRR1084154 2 0.3888 0.7074 0.148 0.796 0.000 0.000 NA
#> SRR1380358 4 0.3543 0.7548 0.112 0.000 0.000 0.828 NA
#> SRR1398430 2 0.5223 0.1409 0.444 0.512 0.000 0.000 NA
#> SRR1444242 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1440832 3 0.3612 0.7239 0.000 0.000 0.732 0.000 NA
#> SRR1358803 4 0.6101 0.6166 0.144 0.000 0.000 0.528 NA
#> SRR1344079 4 0.0000 0.7982 0.000 0.000 0.000 1.000 NA
#> SRR1072602 4 0.6458 0.4692 0.260 0.000 0.000 0.500 NA
#> SRR1421399 4 0.6696 0.5645 0.036 0.204 0.000 0.572 NA
#> SRR1339086 1 0.0290 0.8945 0.992 0.000 0.000 0.000 NA
#> SRR1099881 1 0.0880 0.8865 0.968 0.000 0.000 0.000 NA
#> SRR1384312 3 0.2020 0.8424 0.000 0.000 0.900 0.000 NA
#> SRR1329508 3 0.2987 0.8230 0.056 0.000 0.884 0.032 NA
#> SRR1440200 2 0.0000 0.8905 0.000 1.000 0.000 0.000 NA
#> SRR1397558 2 0.0162 0.8901 0.000 0.996 0.000 0.000 NA
#> SRR1344364 2 0.4582 0.5359 0.000 0.572 0.000 0.012 NA
#> SRR1387787 1 0.2439 0.8285 0.876 0.000 0.000 0.004 NA
#> SRR1378199 1 0.5708 0.0534 0.504 0.000 0.000 0.412 NA
#> SRR1413119 3 0.4510 0.3212 0.000 0.000 0.560 0.432 NA
#> SRR1310497 1 0.0324 0.8950 0.992 0.000 0.004 0.000 NA
#> SRR1356327 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1319059 1 0.1732 0.8369 0.920 0.000 0.080 0.000 NA
#> SRR1085378 1 0.5847 0.4307 0.608 0.000 0.000 0.204 NA
#> SRR1379036 3 0.2193 0.8148 0.092 0.000 0.900 0.000 NA
#> SRR1417656 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1454225 1 0.0000 0.8964 1.000 0.000 0.000 0.000 NA
#> SRR1455346 4 0.5108 0.7301 0.108 0.028 0.000 0.740 NA
#> SRR1366412 2 0.0000 0.8905 0.000 1.000 0.000 0.000 NA
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1313664 1 0.1951 0.8616 0.908 0.000 0.000 0.000 0.016 0.076
#> SRR1375371 2 0.3653 0.4229 0.000 0.692 0.000 0.000 0.300 0.008
#> SRR1416819 4 0.5492 0.2846 0.008 0.000 0.104 0.692 0.096 0.100
#> SRR1351907 2 0.4565 0.3422 0.016 0.620 0.000 0.004 0.016 0.344
#> SRR1330371 3 0.0993 0.7909 0.000 0.000 0.964 0.000 0.012 0.024
#> SRR1340782 1 0.0146 0.9032 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1094531 3 0.4408 0.6302 0.000 0.000 0.664 0.000 0.056 0.280
#> SRR1436262 1 0.0000 0.9032 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.2350 0.4218 0.000 0.000 0.000 0.880 0.100 0.020
#> SRR1435460 4 0.4203 0.3626 0.000 0.000 0.040 0.756 0.032 0.172
#> SRR1485587 4 0.0000 0.4461 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1470834 1 0.4268 0.6062 0.728 0.000 0.004 0.220 0.020 0.028
#> SRR1442966 3 0.7302 0.0338 0.000 0.000 0.424 0.228 0.188 0.160
#> SRR1410979 2 0.0000 0.8073 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.5481 0.0400 0.000 0.552 0.000 0.000 0.164 0.284
#> SRR1367520 1 0.4410 0.1885 0.560 0.000 0.000 0.028 0.000 0.412
#> SRR1360321 3 0.0291 0.7978 0.004 0.000 0.992 0.000 0.000 0.004
#> SRR1445170 4 0.3134 0.3981 0.000 0.000 0.000 0.820 0.036 0.144
#> SRR1440663 3 0.0260 0.7972 0.008 0.000 0.992 0.000 0.000 0.000
#> SRR1489839 1 0.1003 0.8975 0.964 0.000 0.000 0.000 0.016 0.020
#> SRR1409772 4 0.5826 -0.3561 0.188 0.000 0.000 0.436 0.000 0.376
#> SRR1092591 1 0.2790 0.8188 0.872 0.000 0.000 0.080 0.020 0.028
#> SRR1338402 3 0.0000 0.7970 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1337930 1 0.0520 0.9024 0.984 0.000 0.000 0.000 0.008 0.008
#> SRR1337749 1 0.0436 0.9025 0.988 0.000 0.000 0.004 0.004 0.004
#> SRR1401341 1 0.0767 0.8990 0.976 0.000 0.000 0.012 0.004 0.008
#> SRR1396901 1 0.0146 0.9033 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1354400 3 0.0146 0.7971 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1416538 1 0.0508 0.9030 0.984 0.000 0.000 0.000 0.012 0.004
#> SRR1340762 3 0.3482 0.4131 0.316 0.000 0.684 0.000 0.000 0.000
#> SRR1460095 4 0.4922 0.3338 0.000 0.084 0.004 0.712 0.032 0.168
#> SRR1071181 3 0.0000 0.7970 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 0.8073 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0363 0.8063 0.000 0.988 0.000 0.000 0.012 0.000
#> SRR1473611 4 0.4426 0.0339 0.020 0.000 0.000 0.596 0.008 0.376
#> SRR1074934 4 0.1749 0.4355 0.004 0.000 0.016 0.936 0.012 0.032
#> SRR1311731 2 0.0547 0.8036 0.000 0.980 0.000 0.000 0.020 0.000
#> SRR1452957 2 0.3532 0.6423 0.000 0.796 0.000 0.000 0.064 0.140
#> SRR1429144 1 0.0146 0.9033 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1448203 1 0.0891 0.8988 0.968 0.000 0.000 0.024 0.000 0.008
#> SRR1366102 1 0.3226 0.7757 0.836 0.000 0.000 0.116 0.020 0.028
#> SRR1434845 1 0.0508 0.9028 0.984 0.000 0.000 0.000 0.012 0.004
#> SRR1472171 1 0.0146 0.9032 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1441075 2 0.4534 -0.3930 0.000 0.492 0.000 0.000 0.476 0.032
#> SRR1321483 3 0.1410 0.7851 0.044 0.000 0.944 0.000 0.004 0.008
#> SRR1418105 3 0.0000 0.7970 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.3339 0.6337 0.000 0.816 0.144 0.000 0.028 0.012
#> SRR1077728 1 0.1814 0.8469 0.900 0.000 0.000 0.000 0.000 0.100
#> SRR1365767 3 0.5438 0.4829 0.000 0.000 0.548 0.000 0.148 0.304
#> SRR1489670 2 0.2897 0.7256 0.000 0.852 0.000 0.000 0.088 0.060
#> SRR1343136 3 0.5917 0.2639 0.128 0.000 0.472 0.004 0.012 0.384
#> SRR1359587 3 0.0260 0.7966 0.000 0.000 0.992 0.000 0.000 0.008
#> SRR1465782 1 0.3468 0.6199 0.728 0.000 0.000 0.008 0.000 0.264
#> SRR1434460 1 0.2494 0.8120 0.864 0.000 0.000 0.016 0.000 0.120
#> SRR1415751 1 0.0405 0.9040 0.988 0.000 0.000 0.000 0.004 0.008
#> SRR1359027 1 0.0692 0.8995 0.976 0.000 0.000 0.000 0.004 0.020
#> SRR1408303 3 0.1921 0.7750 0.052 0.000 0.916 0.000 0.000 0.032
#> SRR1456469 2 0.0260 0.8070 0.000 0.992 0.000 0.000 0.008 0.000
#> SRR1436717 2 0.0458 0.8053 0.000 0.984 0.000 0.000 0.016 0.000
#> SRR1480287 1 0.0291 0.9026 0.992 0.000 0.000 0.000 0.004 0.004
#> SRR1326845 2 0.0146 0.8074 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1070133 2 0.0260 0.8066 0.000 0.992 0.000 0.000 0.008 0.000
#> SRR1387745 2 0.1341 0.7899 0.000 0.948 0.000 0.000 0.028 0.024
#> SRR1436904 3 0.0914 0.7945 0.000 0.000 0.968 0.016 0.000 0.016
#> SRR1076465 2 0.0000 0.8073 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 4 0.6225 -0.0763 0.364 0.000 0.036 0.496 0.016 0.088
#> SRR1076046 4 0.5569 -0.2403 0.320 0.000 0.000 0.520 0.000 0.160
#> SRR1406643 2 0.2003 0.7667 0.000 0.912 0.000 0.000 0.044 0.044
#> SRR1499460 3 0.3948 0.6999 0.000 0.000 0.748 0.000 0.064 0.188
#> SRR1475147 2 0.2563 0.7243 0.000 0.876 0.000 0.000 0.052 0.072
#> SRR1319301 1 0.1262 0.8896 0.956 0.000 0.000 0.020 0.008 0.016
#> SRR1486117 1 0.2890 0.8000 0.848 0.000 0.000 0.124 0.012 0.016
#> SRR1087680 3 0.3896 0.6977 0.000 0.000 0.748 0.000 0.056 0.196
#> SRR1361391 3 0.2070 0.7689 0.000 0.000 0.896 0.000 0.012 0.092
#> SRR1365655 3 0.4693 0.2467 0.384 0.000 0.576 0.000 0.016 0.024
#> SRR1090457 3 0.0000 0.7970 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 2 0.3578 0.5950 0.140 0.804 0.000 0.000 0.012 0.044
#> SRR1380358 4 0.2797 0.3973 0.064 0.000 0.000 0.876 0.024 0.036
#> SRR1398430 2 0.4512 0.3412 0.272 0.676 0.000 0.000 0.028 0.024
#> SRR1444242 1 0.0767 0.8994 0.976 0.000 0.000 0.008 0.004 0.012
#> SRR1440832 3 0.4382 0.6413 0.000 0.000 0.676 0.000 0.060 0.264
#> SRR1358803 6 0.6384 0.0000 0.136 0.000 0.000 0.312 0.056 0.496
#> SRR1344079 4 0.1219 0.4421 0.000 0.000 0.000 0.948 0.004 0.048
#> SRR1072602 4 0.5062 -0.0672 0.052 0.000 0.008 0.560 0.004 0.376
#> SRR1421399 4 0.8160 -0.1619 0.024 0.260 0.000 0.272 0.224 0.220
#> SRR1339086 1 0.0717 0.9006 0.976 0.000 0.000 0.000 0.008 0.016
#> SRR1099881 1 0.0790 0.8958 0.968 0.000 0.000 0.000 0.000 0.032
#> SRR1384312 3 0.3787 0.6716 0.008 0.000 0.720 0.000 0.012 0.260
#> SRR1329508 3 0.3214 0.7440 0.020 0.000 0.856 0.084 0.020 0.020
#> SRR1440200 2 0.0000 0.8073 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0260 0.8070 0.000 0.992 0.000 0.000 0.008 0.000
#> SRR1344364 5 0.2964 0.0000 0.000 0.204 0.000 0.004 0.792 0.000
#> SRR1387787 1 0.2886 0.7912 0.836 0.000 0.000 0.004 0.016 0.144
#> SRR1378199 4 0.5658 -0.2599 0.292 0.000 0.000 0.520 0.000 0.188
#> SRR1413119 3 0.4270 0.5204 0.000 0.000 0.652 0.316 0.004 0.028
#> SRR1310497 1 0.1262 0.8935 0.956 0.000 0.020 0.000 0.008 0.016
#> SRR1356327 1 0.0665 0.9013 0.980 0.000 0.000 0.008 0.008 0.004
#> SRR1319059 1 0.3281 0.6535 0.784 0.000 0.200 0.000 0.012 0.004
#> SRR1085378 1 0.4459 0.5862 0.708 0.000 0.000 0.004 0.084 0.204
#> SRR1379036 3 0.1524 0.7732 0.060 0.000 0.932 0.000 0.000 0.008
#> SRR1417656 1 0.0508 0.9035 0.984 0.000 0.000 0.000 0.004 0.012
#> SRR1454225 1 0.0146 0.9032 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1455346 4 0.4388 0.3689 0.036 0.076 0.000 0.792 0.032 0.064
#> SRR1366412 2 0.1858 0.7676 0.000 0.904 0.000 0.000 0.092 0.004
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 17697 rows and 104 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 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.554 0.693 0.879 0.4499 0.532 0.532
#> 3 3 0.782 0.829 0.920 0.4351 0.700 0.493
#> 4 4 0.838 0.831 0.919 0.0786 0.967 0.905
#> 5 5 0.844 0.808 0.913 0.0293 0.964 0.888
#> 6 6 0.827 0.787 0.910 0.0133 0.999 0.997
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
#> SRR1313664 1 0.0000 0.8377 1.000 0.000
#> SRR1375371 2 0.0000 0.8435 0.000 1.000
#> SRR1416819 1 0.6247 0.7184 0.844 0.156
#> SRR1351907 2 0.9522 0.3983 0.372 0.628
#> SRR1330371 2 0.9427 0.4269 0.360 0.640
#> SRR1340782 1 0.0000 0.8377 1.000 0.000
#> SRR1094531 2 0.5178 0.7650 0.116 0.884
#> SRR1436262 1 0.0000 0.8377 1.000 0.000
#> SRR1093314 1 0.9983 0.1302 0.524 0.476
#> SRR1435460 2 0.9996 -0.0159 0.488 0.512
#> SRR1485587 1 0.1414 0.8268 0.980 0.020
#> SRR1470834 1 0.0000 0.8377 1.000 0.000
#> SRR1442966 2 0.9427 0.4269 0.360 0.640
#> SRR1410979 2 0.0000 0.8435 0.000 1.000
#> SRR1326449 2 0.0000 0.8435 0.000 1.000
#> SRR1367520 1 0.0000 0.8377 1.000 0.000
#> SRR1360321 1 0.9661 0.3937 0.608 0.392
#> SRR1445170 1 0.9983 0.1302 0.524 0.476
#> SRR1440663 1 0.9661 0.3937 0.608 0.392
#> SRR1489839 1 0.0000 0.8377 1.000 0.000
#> SRR1409772 1 0.0000 0.8377 1.000 0.000
#> SRR1092591 1 0.0000 0.8377 1.000 0.000
#> SRR1338402 1 0.9754 0.3557 0.592 0.408
#> SRR1337930 1 0.0000 0.8377 1.000 0.000
#> SRR1337749 1 0.0000 0.8377 1.000 0.000
#> SRR1401341 1 0.0000 0.8377 1.000 0.000
#> SRR1396901 1 0.0000 0.8377 1.000 0.000
#> SRR1354400 1 0.9732 0.3661 0.596 0.404
#> SRR1416538 1 0.0000 0.8377 1.000 0.000
#> SRR1340762 1 0.0000 0.8377 1.000 0.000
#> SRR1460095 2 0.9427 0.4269 0.360 0.640
#> SRR1071181 1 0.9732 0.3661 0.596 0.404
#> SRR1380436 2 0.0000 0.8435 0.000 1.000
#> SRR1079973 2 0.0000 0.8435 0.000 1.000
#> SRR1473611 1 0.1414 0.8268 0.980 0.020
#> SRR1074934 1 0.9775 0.3387 0.588 0.412
#> SRR1311731 2 0.0000 0.8435 0.000 1.000
#> SRR1452957 2 0.0000 0.8435 0.000 1.000
#> SRR1429144 1 0.0000 0.8377 1.000 0.000
#> SRR1448203 1 0.0000 0.8377 1.000 0.000
#> SRR1366102 1 0.0000 0.8377 1.000 0.000
#> SRR1434845 1 0.0000 0.8377 1.000 0.000
#> SRR1472171 1 0.0000 0.8377 1.000 0.000
#> SRR1441075 2 0.0000 0.8435 0.000 1.000
#> SRR1321483 1 0.9661 0.3937 0.608 0.392
#> SRR1418105 1 0.9661 0.3937 0.608 0.392
#> SRR1090022 2 0.0000 0.8435 0.000 1.000
#> SRR1077728 1 0.0000 0.8377 1.000 0.000
#> SRR1365767 2 0.2236 0.8280 0.036 0.964
#> SRR1489670 2 0.0000 0.8435 0.000 1.000
#> SRR1343136 1 0.9661 0.3937 0.608 0.392
#> SRR1359587 1 0.9754 0.3557 0.592 0.408
#> SRR1465782 1 0.0000 0.8377 1.000 0.000
#> SRR1434460 1 0.0000 0.8377 1.000 0.000
#> SRR1415751 1 0.0000 0.8377 1.000 0.000
#> SRR1359027 1 0.0000 0.8377 1.000 0.000
#> SRR1408303 1 0.9661 0.3937 0.608 0.392
#> SRR1456469 2 0.0000 0.8435 0.000 1.000
#> SRR1436717 2 0.0000 0.8435 0.000 1.000
#> SRR1480287 1 0.0000 0.8377 1.000 0.000
#> SRR1326845 2 0.0000 0.8435 0.000 1.000
#> SRR1070133 2 0.0000 0.8435 0.000 1.000
#> SRR1387745 2 0.0000 0.8435 0.000 1.000
#> SRR1436904 1 0.9732 0.3661 0.596 0.404
#> SRR1076465 2 0.0000 0.8435 0.000 1.000
#> SRR1433215 1 0.3274 0.8000 0.940 0.060
#> SRR1076046 1 0.0000 0.8377 1.000 0.000
#> SRR1406643 2 0.0000 0.8435 0.000 1.000
#> SRR1499460 2 0.2236 0.8280 0.036 0.964
#> SRR1475147 2 0.0000 0.8435 0.000 1.000
#> SRR1319301 1 0.0000 0.8377 1.000 0.000
#> SRR1486117 1 0.0000 0.8377 1.000 0.000
#> SRR1087680 2 0.2236 0.8280 0.036 0.964
#> SRR1361391 2 0.8016 0.6216 0.244 0.756
#> SRR1365655 1 0.0938 0.8314 0.988 0.012
#> SRR1090457 1 0.9661 0.3937 0.608 0.392
#> SRR1084154 2 0.9580 0.3777 0.380 0.620
#> SRR1380358 1 0.0000 0.8377 1.000 0.000
#> SRR1398430 2 0.9580 0.3777 0.380 0.620
#> SRR1444242 1 0.0000 0.8377 1.000 0.000
#> SRR1440832 2 0.0000 0.8435 0.000 1.000
#> SRR1358803 1 0.9795 0.3275 0.584 0.416
#> SRR1344079 1 0.9775 0.3387 0.588 0.412
#> SRR1072602 1 0.0000 0.8377 1.000 0.000
#> SRR1421399 2 0.9427 0.4269 0.360 0.640
#> SRR1339086 1 0.0000 0.8377 1.000 0.000
#> SRR1099881 1 0.0000 0.8377 1.000 0.000
#> SRR1384312 1 0.9710 0.3757 0.600 0.400
#> SRR1329508 1 0.5629 0.7401 0.868 0.132
#> SRR1440200 2 0.0000 0.8435 0.000 1.000
#> SRR1397558 2 0.0000 0.8435 0.000 1.000
#> SRR1344364 2 0.2236 0.8280 0.036 0.964
#> SRR1387787 1 0.0000 0.8377 1.000 0.000
#> SRR1378199 1 0.0000 0.8377 1.000 0.000
#> SRR1413119 2 0.9996 -0.0159 0.488 0.512
#> SRR1310497 1 0.0000 0.8377 1.000 0.000
#> SRR1356327 1 0.0000 0.8377 1.000 0.000
#> SRR1319059 1 0.0000 0.8377 1.000 0.000
#> SRR1085378 1 0.0000 0.8377 1.000 0.000
#> SRR1379036 1 0.9522 0.4283 0.628 0.372
#> SRR1417656 1 0.0000 0.8377 1.000 0.000
#> SRR1454225 1 0.0000 0.8377 1.000 0.000
#> SRR1455346 2 0.9850 0.2277 0.428 0.572
#> SRR1366412 2 0.0000 0.8435 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1375371 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1416819 3 0.6126 0.3077 0.400 0.000 0.600
#> SRR1351907 3 0.3879 0.7415 0.000 0.152 0.848
#> SRR1330371 3 0.4002 0.7346 0.000 0.160 0.840
#> SRR1340782 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1094531 3 0.6168 0.3285 0.000 0.412 0.588
#> SRR1436262 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1093314 3 0.1636 0.8106 0.020 0.016 0.964
#> SRR1435460 3 0.1289 0.8002 0.000 0.032 0.968
#> SRR1485587 1 0.4605 0.7594 0.796 0.000 0.204
#> SRR1470834 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1442966 3 0.4002 0.7346 0.000 0.160 0.840
#> SRR1410979 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1326449 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1367520 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1360321 3 0.2796 0.8185 0.092 0.000 0.908
#> SRR1445170 3 0.1636 0.8106 0.020 0.016 0.964
#> SRR1440663 3 0.2711 0.8199 0.088 0.000 0.912
#> SRR1489839 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1409772 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1092591 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1338402 3 0.2356 0.8230 0.072 0.000 0.928
#> SRR1337930 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1401341 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1396901 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1354400 3 0.2448 0.8228 0.076 0.000 0.924
#> SRR1416538 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1340762 1 0.2537 0.9024 0.920 0.000 0.080
#> SRR1460095 3 0.4002 0.7346 0.000 0.160 0.840
#> SRR1071181 3 0.2448 0.8228 0.076 0.000 0.924
#> SRR1380436 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1473611 1 0.4605 0.7594 0.796 0.000 0.204
#> SRR1074934 3 0.2261 0.8198 0.068 0.000 0.932
#> SRR1311731 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1434845 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1472171 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1321483 3 0.2796 0.8185 0.092 0.000 0.908
#> SRR1418105 3 0.2711 0.8199 0.088 0.000 0.912
#> SRR1090022 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1077728 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1365767 2 0.6309 -0.1089 0.000 0.504 0.496
#> SRR1489670 2 0.0237 0.9529 0.000 0.996 0.004
#> SRR1343136 3 0.2796 0.8185 0.092 0.000 0.908
#> SRR1359587 3 0.2356 0.8230 0.072 0.000 0.928
#> SRR1465782 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1434460 1 0.2537 0.9024 0.920 0.000 0.080
#> SRR1415751 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1359027 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1408303 3 0.2959 0.8143 0.100 0.000 0.900
#> SRR1456469 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1436717 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1436904 3 0.2448 0.8228 0.076 0.000 0.924
#> SRR1076465 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1433215 1 0.5948 0.4171 0.640 0.000 0.360
#> SRR1076046 1 0.2066 0.9182 0.940 0.000 0.060
#> SRR1406643 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1499460 3 0.6308 0.0880 0.000 0.492 0.508
#> SRR1475147 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1319301 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1087680 3 0.6308 0.0880 0.000 0.492 0.508
#> SRR1361391 3 0.5397 0.5721 0.000 0.280 0.720
#> SRR1365655 1 0.6008 0.4276 0.628 0.000 0.372
#> SRR1090457 3 0.2711 0.8199 0.088 0.000 0.912
#> SRR1084154 3 0.3686 0.7477 0.000 0.140 0.860
#> SRR1380358 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1398430 3 0.3686 0.7477 0.000 0.140 0.860
#> SRR1444242 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1440832 2 0.5733 0.4372 0.000 0.676 0.324
#> SRR1358803 3 0.2165 0.8196 0.064 0.000 0.936
#> SRR1344079 3 0.2261 0.8198 0.068 0.000 0.932
#> SRR1072602 1 0.2959 0.8759 0.900 0.000 0.100
#> SRR1421399 3 0.4002 0.7346 0.000 0.160 0.840
#> SRR1339086 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1384312 3 0.2537 0.8221 0.080 0.000 0.920
#> SRR1329508 3 0.6309 -0.0145 0.496 0.000 0.504
#> SRR1440200 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.9558 0.000 1.000 0.000
#> SRR1344364 3 0.6307 0.0982 0.000 0.488 0.512
#> SRR1387787 1 0.0237 0.9567 0.996 0.000 0.004
#> SRR1378199 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1413119 3 0.1289 0.8002 0.000 0.032 0.968
#> SRR1310497 1 0.2448 0.9054 0.924 0.000 0.076
#> SRR1356327 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1319059 1 0.2448 0.9054 0.924 0.000 0.076
#> SRR1085378 1 0.1964 0.9190 0.944 0.000 0.056
#> SRR1379036 3 0.3879 0.7733 0.152 0.000 0.848
#> SRR1417656 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9591 1.000 0.000 0.000
#> SRR1455346 3 0.3375 0.7755 0.008 0.100 0.892
#> SRR1366412 2 0.0237 0.9529 0.000 0.996 0.004
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1416819 4 0.4699 0.395 0.320 0.000 0.004 0.676
#> SRR1351907 4 0.5408 0.273 0.000 0.012 0.488 0.500
#> SRR1330371 4 0.4431 0.613 0.000 0.000 0.304 0.696
#> SRR1340782 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1094531 3 0.2867 0.804 0.000 0.012 0.884 0.104
#> SRR1436262 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.2281 0.777 0.000 0.000 0.096 0.904
#> SRR1435460 4 0.3400 0.735 0.000 0.000 0.180 0.820
#> SRR1485587 1 0.4331 0.661 0.712 0.000 0.000 0.288
#> SRR1470834 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1442966 4 0.4431 0.613 0.000 0.000 0.304 0.696
#> SRR1410979 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.0188 0.939 0.996 0.000 0.000 0.004
#> SRR1360321 4 0.0336 0.796 0.008 0.000 0.000 0.992
#> SRR1445170 4 0.2281 0.777 0.000 0.000 0.096 0.904
#> SRR1440663 4 0.0188 0.797 0.004 0.000 0.000 0.996
#> SRR1489839 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1409772 1 0.0188 0.939 0.996 0.000 0.000 0.004
#> SRR1092591 1 0.0188 0.939 0.996 0.000 0.000 0.004
#> SRR1338402 4 0.0592 0.799 0.000 0.000 0.016 0.984
#> SRR1337930 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1354400 4 0.0336 0.799 0.000 0.000 0.008 0.992
#> SRR1416538 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1340762 1 0.2921 0.839 0.860 0.000 0.000 0.140
#> SRR1460095 4 0.4431 0.613 0.000 0.000 0.304 0.696
#> SRR1071181 4 0.0336 0.799 0.000 0.000 0.008 0.992
#> SRR1380436 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1473611 1 0.4331 0.661 0.712 0.000 0.000 0.288
#> SRR1074934 4 0.2197 0.791 0.024 0.000 0.048 0.928
#> SRR1311731 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1472171 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1321483 4 0.0336 0.796 0.008 0.000 0.000 0.992
#> SRR1418105 4 0.0188 0.797 0.004 0.000 0.000 0.996
#> SRR1090022 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1077728 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1365767 3 0.2984 0.860 0.000 0.084 0.888 0.028
#> SRR1489670 2 0.1716 0.928 0.000 0.936 0.064 0.000
#> SRR1343136 4 0.0336 0.797 0.008 0.000 0.000 0.992
#> SRR1359587 4 0.0592 0.799 0.000 0.000 0.016 0.984
#> SRR1465782 1 0.0188 0.939 0.996 0.000 0.000 0.004
#> SRR1434460 1 0.2814 0.846 0.868 0.000 0.000 0.132
#> SRR1415751 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1408303 4 0.0592 0.793 0.016 0.000 0.000 0.984
#> SRR1456469 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1436904 4 0.0336 0.799 0.000 0.000 0.008 0.992
#> SRR1076465 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1433215 1 0.5097 0.293 0.568 0.000 0.004 0.428
#> SRR1076046 1 0.1716 0.898 0.936 0.000 0.000 0.064
#> SRR1406643 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1499460 3 0.1510 0.877 0.000 0.016 0.956 0.028
#> SRR1475147 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1319301 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1087680 3 0.1510 0.877 0.000 0.016 0.956 0.028
#> SRR1361391 4 0.5250 0.332 0.000 0.008 0.440 0.552
#> SRR1365655 1 0.4967 0.278 0.548 0.000 0.000 0.452
#> SRR1090457 4 0.0188 0.797 0.004 0.000 0.000 0.996
#> SRR1084154 4 0.4998 0.297 0.000 0.000 0.488 0.512
#> SRR1380358 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1398430 4 0.4998 0.297 0.000 0.000 0.488 0.512
#> SRR1444242 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1440832 3 0.5289 0.520 0.000 0.344 0.636 0.020
#> SRR1358803 4 0.2282 0.790 0.024 0.000 0.052 0.924
#> SRR1344079 4 0.2197 0.791 0.024 0.000 0.048 0.928
#> SRR1072602 1 0.3219 0.811 0.836 0.000 0.000 0.164
#> SRR1421399 4 0.4431 0.613 0.000 0.000 0.304 0.696
#> SRR1339086 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1384312 4 0.0188 0.798 0.000 0.000 0.004 0.996
#> SRR1329508 4 0.4898 0.152 0.416 0.000 0.000 0.584
#> SRR1440200 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.993 0.000 1.000 0.000 0.000
#> SRR1344364 3 0.0469 0.867 0.000 0.012 0.988 0.000
#> SRR1387787 1 0.1389 0.912 0.952 0.000 0.000 0.048
#> SRR1378199 1 0.0188 0.939 0.996 0.000 0.000 0.004
#> SRR1413119 4 0.3486 0.730 0.000 0.000 0.188 0.812
#> SRR1310497 1 0.2760 0.849 0.872 0.000 0.000 0.128
#> SRR1356327 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1319059 1 0.2868 0.843 0.864 0.000 0.000 0.136
#> SRR1085378 1 0.2081 0.882 0.916 0.000 0.000 0.084
#> SRR1379036 4 0.1792 0.745 0.068 0.000 0.000 0.932
#> SRR1417656 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.940 1.000 0.000 0.000 0.000
#> SRR1455346 4 0.4925 0.418 0.000 0.000 0.428 0.572
#> SRR1366412 2 0.1716 0.928 0.000 0.936 0.064 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1416819 3 0.4029 0.344 0.316 0.000 0.680 0.004 0.000
#> SRR1351907 4 0.2470 0.697 0.000 0.012 0.104 0.884 0.000
#> SRR1330371 4 0.4540 0.769 0.000 0.000 0.320 0.656 0.024
#> SRR1340782 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.2077 0.750 0.000 0.000 0.008 0.084 0.908
#> SRR1436262 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 3 0.3480 0.516 0.000 0.000 0.752 0.248 0.000
#> SRR1435460 3 0.5006 0.181 0.000 0.000 0.624 0.328 0.048
#> SRR1485587 1 0.3752 0.634 0.708 0.000 0.292 0.000 0.000
#> SRR1470834 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1442966 4 0.4540 0.769 0.000 0.000 0.320 0.656 0.024
#> SRR1410979 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 1 0.0162 0.937 0.996 0.000 0.004 0.000 0.000
#> SRR1360321 3 0.0162 0.763 0.004 0.000 0.996 0.000 0.000
#> SRR1445170 3 0.3480 0.516 0.000 0.000 0.752 0.248 0.000
#> SRR1440663 3 0.0000 0.763 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1409772 1 0.0162 0.937 0.996 0.000 0.004 0.000 0.000
#> SRR1092591 1 0.0162 0.937 0.996 0.000 0.004 0.000 0.000
#> SRR1338402 3 0.0798 0.760 0.000 0.000 0.976 0.016 0.008
#> SRR1337930 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0510 0.763 0.000 0.000 0.984 0.016 0.000
#> SRR1416538 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1340762 1 0.2516 0.835 0.860 0.000 0.140 0.000 0.000
#> SRR1460095 4 0.4540 0.769 0.000 0.000 0.320 0.656 0.024
#> SRR1071181 3 0.0510 0.763 0.000 0.000 0.984 0.016 0.000
#> SRR1380436 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 1 0.3752 0.634 0.708 0.000 0.292 0.000 0.000
#> SRR1074934 3 0.3602 0.620 0.024 0.000 0.796 0.180 0.000
#> SRR1311731 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1434845 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1472171 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0162 0.763 0.004 0.000 0.996 0.000 0.000
#> SRR1418105 3 0.0000 0.763 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1077728 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1365767 5 0.1990 0.774 0.000 0.068 0.008 0.004 0.920
#> SRR1489670 2 0.1638 0.921 0.000 0.932 0.000 0.004 0.064
#> SRR1343136 3 0.0162 0.763 0.004 0.000 0.996 0.000 0.000
#> SRR1359587 3 0.0798 0.760 0.000 0.000 0.976 0.016 0.008
#> SRR1465782 1 0.0162 0.937 0.996 0.000 0.004 0.000 0.000
#> SRR1434460 1 0.2424 0.843 0.868 0.000 0.132 0.000 0.000
#> SRR1415751 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0404 0.759 0.012 0.000 0.988 0.000 0.000
#> SRR1456469 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0510 0.763 0.000 0.000 0.984 0.016 0.000
#> SRR1076465 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 1 0.4397 0.271 0.564 0.000 0.432 0.004 0.000
#> SRR1076046 1 0.1478 0.895 0.936 0.000 0.064 0.000 0.000
#> SRR1406643 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 5 0.0290 0.787 0.000 0.000 0.008 0.000 0.992
#> SRR1475147 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1087680 5 0.0290 0.787 0.000 0.000 0.008 0.000 0.992
#> SRR1361391 3 0.6786 -0.408 0.000 0.000 0.384 0.292 0.324
#> SRR1365655 1 0.4283 0.244 0.544 0.000 0.456 0.000 0.000
#> SRR1090457 3 0.0000 0.763 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 4 0.2179 0.714 0.000 0.000 0.112 0.888 0.000
#> SRR1380358 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1398430 4 0.2179 0.714 0.000 0.000 0.112 0.888 0.000
#> SRR1444242 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.4118 0.482 0.000 0.336 0.000 0.004 0.660
#> SRR1358803 3 0.3639 0.617 0.024 0.000 0.792 0.184 0.000
#> SRR1344079 3 0.3602 0.620 0.024 0.000 0.796 0.180 0.000
#> SRR1072602 1 0.2813 0.802 0.832 0.000 0.168 0.000 0.000
#> SRR1421399 4 0.4540 0.769 0.000 0.000 0.320 0.656 0.024
#> SRR1339086 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0404 0.763 0.000 0.000 0.988 0.012 0.000
#> SRR1329508 3 0.4210 0.203 0.412 0.000 0.588 0.000 0.000
#> SRR1440200 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.992 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 5 0.4262 0.458 0.000 0.000 0.000 0.440 0.560
#> SRR1387787 1 0.1197 0.910 0.952 0.000 0.048 0.000 0.000
#> SRR1378199 1 0.0162 0.937 0.996 0.000 0.004 0.000 0.000
#> SRR1413119 3 0.5129 0.159 0.000 0.000 0.616 0.328 0.056
#> SRR1310497 1 0.2377 0.846 0.872 0.000 0.128 0.000 0.000
#> SRR1356327 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1319059 1 0.2471 0.839 0.864 0.000 0.136 0.000 0.000
#> SRR1085378 1 0.1851 0.876 0.912 0.000 0.088 0.000 0.000
#> SRR1379036 3 0.1478 0.695 0.064 0.000 0.936 0.000 0.000
#> SRR1417656 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.4138 0.472 0.000 0.000 0.384 0.616 0.000
#> SRR1366412 2 0.1638 0.921 0.000 0.932 0.000 0.004 0.064
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1313664 1 0.0146 0.924 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1375371 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1416819 3 0.4035 0.380 0.296 0.000 0.680 0.004 0.000 0.020
#> SRR1351907 4 0.0363 0.548 0.000 0.012 0.000 0.988 0.000 0.000
#> SRR1330371 4 0.4552 0.712 0.000 0.000 0.280 0.668 0.024 0.028
#> SRR1340782 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1094531 5 0.2442 0.698 0.000 0.000 0.000 0.048 0.884 0.068
#> SRR1436262 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1093314 3 0.3490 0.538 0.000 0.000 0.724 0.268 0.000 0.008
#> SRR1435460 3 0.5398 0.203 0.000 0.000 0.580 0.324 0.032 0.064
#> SRR1485587 1 0.4098 0.611 0.676 0.000 0.292 0.000 0.000 0.032
#> SRR1470834 1 0.0632 0.919 0.976 0.000 0.000 0.000 0.000 0.024
#> SRR1442966 4 0.4552 0.712 0.000 0.000 0.280 0.668 0.024 0.028
#> SRR1410979 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1367520 1 0.0935 0.914 0.964 0.000 0.004 0.000 0.000 0.032
#> SRR1360321 3 0.0146 0.773 0.004 0.000 0.996 0.000 0.000 0.000
#> SRR1445170 3 0.3490 0.538 0.000 0.000 0.724 0.268 0.000 0.008
#> SRR1440663 3 0.0000 0.773 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 1 0.0363 0.923 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1409772 1 0.0935 0.914 0.964 0.000 0.004 0.000 0.000 0.032
#> SRR1092591 1 0.0935 0.914 0.964 0.000 0.004 0.000 0.000 0.032
#> SRR1338402 3 0.0951 0.768 0.000 0.000 0.968 0.004 0.008 0.020
#> SRR1337930 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1337749 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1401341 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1396901 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1354400 3 0.0603 0.772 0.000 0.000 0.980 0.004 0.000 0.016
#> SRR1416538 1 0.0363 0.923 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1340762 1 0.3023 0.810 0.828 0.000 0.140 0.000 0.000 0.032
#> SRR1460095 4 0.4552 0.712 0.000 0.000 0.280 0.668 0.024 0.028
#> SRR1071181 3 0.0603 0.772 0.000 0.000 0.980 0.004 0.000 0.016
#> SRR1380436 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1473611 1 0.4098 0.611 0.676 0.000 0.292 0.000 0.000 0.032
#> SRR1074934 3 0.3564 0.626 0.004 0.000 0.768 0.204 0.000 0.024
#> SRR1311731 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1429144 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1448203 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1366102 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1434845 1 0.0363 0.923 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1472171 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1441075 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1321483 3 0.0146 0.773 0.004 0.000 0.996 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.773 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1077728 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1365767 5 0.0260 0.733 0.000 0.008 0.000 0.000 0.992 0.000
#> SRR1489670 2 0.2135 0.856 0.000 0.872 0.000 0.000 0.128 0.000
#> SRR1343136 3 0.0146 0.773 0.004 0.000 0.996 0.000 0.000 0.000
#> SRR1359587 3 0.0951 0.768 0.000 0.000 0.968 0.004 0.008 0.020
#> SRR1465782 1 0.0935 0.914 0.964 0.000 0.004 0.000 0.000 0.032
#> SRR1434460 1 0.2942 0.818 0.836 0.000 0.132 0.000 0.000 0.032
#> SRR1415751 1 0.0363 0.923 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1359027 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1408303 3 0.0363 0.769 0.012 0.000 0.988 0.000 0.000 0.000
#> SRR1456469 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1326845 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436904 3 0.0692 0.771 0.000 0.000 0.976 0.004 0.000 0.020
#> SRR1076465 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 1 0.4432 0.254 0.544 0.000 0.432 0.004 0.000 0.020
#> SRR1076046 1 0.1779 0.882 0.920 0.000 0.064 0.000 0.000 0.016
#> SRR1406643 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1499460 5 0.1610 0.745 0.000 0.000 0.000 0.000 0.916 0.084
#> SRR1475147 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1319301 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1486117 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1087680 5 0.1610 0.745 0.000 0.000 0.000 0.000 0.916 0.084
#> SRR1361391 3 0.7078 -0.353 0.000 0.000 0.352 0.288 0.292 0.068
#> SRR1365655 1 0.4526 0.203 0.512 0.000 0.456 0.000 0.000 0.032
#> SRR1090457 3 0.0000 0.773 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.0000 0.562 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1380358 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1398430 4 0.0000 0.562 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1444242 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1440832 5 0.3288 0.356 0.000 0.276 0.000 0.000 0.724 0.000
#> SRR1358803 3 0.3593 0.623 0.004 0.000 0.764 0.208 0.000 0.024
#> SRR1344079 3 0.3564 0.626 0.004 0.000 0.768 0.204 0.000 0.024
#> SRR1072602 1 0.3284 0.776 0.800 0.000 0.168 0.000 0.000 0.032
#> SRR1421399 4 0.4552 0.712 0.000 0.000 0.280 0.668 0.024 0.028
#> SRR1339086 1 0.0000 0.925 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0146 0.924 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1384312 3 0.0508 0.773 0.000 0.000 0.984 0.004 0.000 0.012
#> SRR1329508 3 0.4228 0.225 0.392 0.000 0.588 0.000 0.000 0.020
#> SRR1440200 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.987 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1344364 6 0.1890 0.000 0.000 0.000 0.000 0.024 0.060 0.916
#> SRR1387787 1 0.1856 0.888 0.920 0.000 0.048 0.000 0.000 0.032
#> SRR1378199 1 0.0508 0.922 0.984 0.000 0.004 0.000 0.000 0.012
#> SRR1413119 3 0.5522 0.183 0.000 0.000 0.572 0.324 0.040 0.064
#> SRR1310497 1 0.2901 0.821 0.840 0.000 0.128 0.000 0.000 0.032
#> SRR1356327 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1319059 1 0.2983 0.814 0.832 0.000 0.136 0.000 0.000 0.032
#> SRR1085378 1 0.2436 0.855 0.880 0.000 0.088 0.000 0.000 0.032
#> SRR1379036 3 0.1500 0.716 0.052 0.000 0.936 0.000 0.000 0.012
#> SRR1417656 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1454225 1 0.0146 0.925 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1455346 4 0.3383 0.454 0.000 0.000 0.268 0.728 0.000 0.004
#> SRR1366412 2 0.2135 0.856 0.000 0.872 0.000 0.000 0.128 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["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 17697 rows and 104 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 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.989 0.995 0.4572 0.543 0.543
#> 3 3 1.000 0.976 0.990 0.4227 0.695 0.491
#> 4 4 0.807 0.836 0.897 0.1214 0.877 0.669
#> 5 5 0.807 0.830 0.847 0.0727 0.891 0.619
#> 6 6 0.803 0.862 0.864 0.0379 0.967 0.835
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
#> SRR1313664 1 0.000 0.997 1.000 0.000
#> SRR1375371 2 0.000 0.992 0.000 1.000
#> SRR1416819 1 0.000 0.997 1.000 0.000
#> SRR1351907 2 0.000 0.992 0.000 1.000
#> SRR1330371 2 0.000 0.992 0.000 1.000
#> SRR1340782 1 0.000 0.997 1.000 0.000
#> SRR1094531 2 0.000 0.992 0.000 1.000
#> SRR1436262 1 0.000 0.997 1.000 0.000
#> SRR1093314 1 0.000 0.997 1.000 0.000
#> SRR1435460 1 0.745 0.727 0.788 0.212
#> SRR1485587 1 0.000 0.997 1.000 0.000
#> SRR1470834 1 0.000 0.997 1.000 0.000
#> SRR1442966 2 0.000 0.992 0.000 1.000
#> SRR1410979 2 0.000 0.992 0.000 1.000
#> SRR1326449 2 0.000 0.992 0.000 1.000
#> SRR1367520 1 0.000 0.997 1.000 0.000
#> SRR1360321 1 0.000 0.997 1.000 0.000
#> SRR1445170 1 0.000 0.997 1.000 0.000
#> SRR1440663 1 0.000 0.997 1.000 0.000
#> SRR1489839 1 0.000 0.997 1.000 0.000
#> SRR1409772 1 0.000 0.997 1.000 0.000
#> SRR1092591 1 0.000 0.997 1.000 0.000
#> SRR1338402 1 0.000 0.997 1.000 0.000
#> SRR1337930 1 0.000 0.997 1.000 0.000
#> SRR1337749 1 0.000 0.997 1.000 0.000
#> SRR1401341 1 0.000 0.997 1.000 0.000
#> SRR1396901 1 0.000 0.997 1.000 0.000
#> SRR1354400 1 0.000 0.997 1.000 0.000
#> SRR1416538 1 0.000 0.997 1.000 0.000
#> SRR1340762 1 0.000 0.997 1.000 0.000
#> SRR1460095 2 0.000 0.992 0.000 1.000
#> SRR1071181 1 0.000 0.997 1.000 0.000
#> SRR1380436 2 0.000 0.992 0.000 1.000
#> SRR1079973 2 0.000 0.992 0.000 1.000
#> SRR1473611 1 0.000 0.997 1.000 0.000
#> SRR1074934 1 0.000 0.997 1.000 0.000
#> SRR1311731 2 0.000 0.992 0.000 1.000
#> SRR1452957 2 0.000 0.992 0.000 1.000
#> SRR1429144 1 0.000 0.997 1.000 0.000
#> SRR1448203 1 0.000 0.997 1.000 0.000
#> SRR1366102 1 0.000 0.997 1.000 0.000
#> SRR1434845 1 0.000 0.997 1.000 0.000
#> SRR1472171 1 0.000 0.997 1.000 0.000
#> SRR1441075 2 0.000 0.992 0.000 1.000
#> SRR1321483 1 0.000 0.997 1.000 0.000
#> SRR1418105 1 0.000 0.997 1.000 0.000
#> SRR1090022 2 0.000 0.992 0.000 1.000
#> SRR1077728 1 0.000 0.997 1.000 0.000
#> SRR1365767 2 0.000 0.992 0.000 1.000
#> SRR1489670 2 0.000 0.992 0.000 1.000
#> SRR1343136 1 0.000 0.997 1.000 0.000
#> SRR1359587 1 0.000 0.997 1.000 0.000
#> SRR1465782 1 0.000 0.997 1.000 0.000
#> SRR1434460 1 0.000 0.997 1.000 0.000
#> SRR1415751 1 0.000 0.997 1.000 0.000
#> SRR1359027 1 0.000 0.997 1.000 0.000
#> SRR1408303 1 0.000 0.997 1.000 0.000
#> SRR1456469 2 0.000 0.992 0.000 1.000
#> SRR1436717 2 0.000 0.992 0.000 1.000
#> SRR1480287 1 0.000 0.997 1.000 0.000
#> SRR1326845 2 0.000 0.992 0.000 1.000
#> SRR1070133 2 0.000 0.992 0.000 1.000
#> SRR1387745 2 0.000 0.992 0.000 1.000
#> SRR1436904 1 0.000 0.997 1.000 0.000
#> SRR1076465 2 0.000 0.992 0.000 1.000
#> SRR1433215 1 0.000 0.997 1.000 0.000
#> SRR1076046 1 0.000 0.997 1.000 0.000
#> SRR1406643 2 0.000 0.992 0.000 1.000
#> SRR1499460 2 0.000 0.992 0.000 1.000
#> SRR1475147 2 0.000 0.992 0.000 1.000
#> SRR1319301 1 0.000 0.997 1.000 0.000
#> SRR1486117 1 0.000 0.997 1.000 0.000
#> SRR1087680 2 0.000 0.992 0.000 1.000
#> SRR1361391 2 0.000 0.992 0.000 1.000
#> SRR1365655 1 0.000 0.997 1.000 0.000
#> SRR1090457 1 0.000 0.997 1.000 0.000
#> SRR1084154 2 0.000 0.992 0.000 1.000
#> SRR1380358 1 0.000 0.997 1.000 0.000
#> SRR1398430 2 0.827 0.646 0.260 0.740
#> SRR1444242 1 0.000 0.997 1.000 0.000
#> SRR1440832 2 0.000 0.992 0.000 1.000
#> SRR1358803 1 0.000 0.997 1.000 0.000
#> SRR1344079 1 0.000 0.997 1.000 0.000
#> SRR1072602 1 0.000 0.997 1.000 0.000
#> SRR1421399 2 0.000 0.992 0.000 1.000
#> SRR1339086 1 0.000 0.997 1.000 0.000
#> SRR1099881 1 0.000 0.997 1.000 0.000
#> SRR1384312 1 0.000 0.997 1.000 0.000
#> SRR1329508 1 0.000 0.997 1.000 0.000
#> SRR1440200 2 0.000 0.992 0.000 1.000
#> SRR1397558 2 0.000 0.992 0.000 1.000
#> SRR1344364 2 0.000 0.992 0.000 1.000
#> SRR1387787 1 0.000 0.997 1.000 0.000
#> SRR1378199 1 0.000 0.997 1.000 0.000
#> SRR1413119 2 0.000 0.992 0.000 1.000
#> SRR1310497 1 0.000 0.997 1.000 0.000
#> SRR1356327 1 0.000 0.997 1.000 0.000
#> SRR1319059 1 0.000 0.997 1.000 0.000
#> SRR1085378 1 0.000 0.997 1.000 0.000
#> SRR1379036 1 0.000 0.997 1.000 0.000
#> SRR1417656 1 0.000 0.997 1.000 0.000
#> SRR1454225 1 0.000 0.997 1.000 0.000
#> SRR1455346 1 0.000 0.997 1.000 0.000
#> SRR1366412 2 0.000 0.992 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.000 1.000 1.00 0.000 0.000
#> SRR1375371 2 0.000 0.983 0.00 1.000 0.000
#> SRR1416819 3 0.000 0.978 0.00 0.000 1.000
#> SRR1351907 2 0.604 0.398 0.00 0.620 0.380
#> SRR1330371 3 0.000 0.978 0.00 0.000 1.000
#> SRR1340782 1 0.000 1.000 1.00 0.000 0.000
#> SRR1094531 3 0.000 0.978 0.00 0.000 1.000
#> SRR1436262 1 0.000 1.000 1.00 0.000 0.000
#> SRR1093314 3 0.000 0.978 0.00 0.000 1.000
#> SRR1435460 3 0.000 0.978 0.00 0.000 1.000
#> SRR1485587 1 0.000 1.000 1.00 0.000 0.000
#> SRR1470834 1 0.000 1.000 1.00 0.000 0.000
#> SRR1442966 3 0.000 0.978 0.00 0.000 1.000
#> SRR1410979 2 0.000 0.983 0.00 1.000 0.000
#> SRR1326449 2 0.000 0.983 0.00 1.000 0.000
#> SRR1367520 1 0.000 1.000 1.00 0.000 0.000
#> SRR1360321 3 0.000 0.978 0.00 0.000 1.000
#> SRR1445170 3 0.000 0.978 0.00 0.000 1.000
#> SRR1440663 3 0.000 0.978 0.00 0.000 1.000
#> SRR1489839 1 0.000 1.000 1.00 0.000 0.000
#> SRR1409772 1 0.000 1.000 1.00 0.000 0.000
#> SRR1092591 1 0.000 1.000 1.00 0.000 0.000
#> SRR1338402 3 0.000 0.978 0.00 0.000 1.000
#> SRR1337930 1 0.000 1.000 1.00 0.000 0.000
#> SRR1337749 1 0.000 1.000 1.00 0.000 0.000
#> SRR1401341 1 0.000 1.000 1.00 0.000 0.000
#> SRR1396901 1 0.000 1.000 1.00 0.000 0.000
#> SRR1354400 3 0.000 0.978 0.00 0.000 1.000
#> SRR1416538 1 0.000 1.000 1.00 0.000 0.000
#> SRR1340762 1 0.000 1.000 1.00 0.000 0.000
#> SRR1460095 3 0.186 0.937 0.00 0.052 0.948
#> SRR1071181 3 0.000 0.978 0.00 0.000 1.000
#> SRR1380436 2 0.000 0.983 0.00 1.000 0.000
#> SRR1079973 2 0.000 0.983 0.00 1.000 0.000
#> SRR1473611 1 0.000 1.000 1.00 0.000 0.000
#> SRR1074934 3 0.000 0.978 0.00 0.000 1.000
#> SRR1311731 2 0.000 0.983 0.00 1.000 0.000
#> SRR1452957 2 0.000 0.983 0.00 1.000 0.000
#> SRR1429144 1 0.000 1.000 1.00 0.000 0.000
#> SRR1448203 1 0.000 1.000 1.00 0.000 0.000
#> SRR1366102 1 0.000 1.000 1.00 0.000 0.000
#> SRR1434845 1 0.000 1.000 1.00 0.000 0.000
#> SRR1472171 1 0.000 1.000 1.00 0.000 0.000
#> SRR1441075 2 0.000 0.983 0.00 1.000 0.000
#> SRR1321483 3 0.000 0.978 0.00 0.000 1.000
#> SRR1418105 3 0.000 0.978 0.00 0.000 1.000
#> SRR1090022 2 0.000 0.983 0.00 1.000 0.000
#> SRR1077728 1 0.000 1.000 1.00 0.000 0.000
#> SRR1365767 3 0.319 0.880 0.00 0.112 0.888
#> SRR1489670 2 0.000 0.983 0.00 1.000 0.000
#> SRR1343136 3 0.000 0.978 0.00 0.000 1.000
#> SRR1359587 3 0.000 0.978 0.00 0.000 1.000
#> SRR1465782 1 0.000 1.000 1.00 0.000 0.000
#> SRR1434460 1 0.000 1.000 1.00 0.000 0.000
#> SRR1415751 1 0.000 1.000 1.00 0.000 0.000
#> SRR1359027 1 0.000 1.000 1.00 0.000 0.000
#> SRR1408303 3 0.000 0.978 0.00 0.000 1.000
#> SRR1456469 2 0.000 0.983 0.00 1.000 0.000
#> SRR1436717 2 0.000 0.983 0.00 1.000 0.000
#> SRR1480287 1 0.000 1.000 1.00 0.000 0.000
#> SRR1326845 2 0.000 0.983 0.00 1.000 0.000
#> SRR1070133 2 0.000 0.983 0.00 1.000 0.000
#> SRR1387745 2 0.000 0.983 0.00 1.000 0.000
#> SRR1436904 3 0.000 0.978 0.00 0.000 1.000
#> SRR1076465 2 0.000 0.983 0.00 1.000 0.000
#> SRR1433215 1 0.000 1.000 1.00 0.000 0.000
#> SRR1076046 1 0.000 1.000 1.00 0.000 0.000
#> SRR1406643 2 0.000 0.983 0.00 1.000 0.000
#> SRR1499460 3 0.319 0.880 0.00 0.112 0.888
#> SRR1475147 2 0.000 0.983 0.00 1.000 0.000
#> SRR1319301 1 0.000 1.000 1.00 0.000 0.000
#> SRR1486117 1 0.000 1.000 1.00 0.000 0.000
#> SRR1087680 3 0.319 0.880 0.00 0.112 0.888
#> SRR1361391 3 0.000 0.978 0.00 0.000 1.000
#> SRR1365655 1 0.000 1.000 1.00 0.000 0.000
#> SRR1090457 3 0.000 0.978 0.00 0.000 1.000
#> SRR1084154 3 0.000 0.978 0.00 0.000 1.000
#> SRR1380358 1 0.000 1.000 1.00 0.000 0.000
#> SRR1398430 3 0.000 0.978 0.00 0.000 1.000
#> SRR1444242 1 0.000 1.000 1.00 0.000 0.000
#> SRR1440832 2 0.000 0.983 0.00 1.000 0.000
#> SRR1358803 3 0.000 0.978 0.00 0.000 1.000
#> SRR1344079 3 0.000 0.978 0.00 0.000 1.000
#> SRR1072602 1 0.000 1.000 1.00 0.000 0.000
#> SRR1421399 3 0.000 0.978 0.00 0.000 1.000
#> SRR1339086 1 0.000 1.000 1.00 0.000 0.000
#> SRR1099881 1 0.000 1.000 1.00 0.000 0.000
#> SRR1384312 3 0.000 0.978 0.00 0.000 1.000
#> SRR1329508 3 0.400 0.788 0.16 0.000 0.840
#> SRR1440200 2 0.000 0.983 0.00 1.000 0.000
#> SRR1397558 2 0.000 0.983 0.00 1.000 0.000
#> SRR1344364 3 0.400 0.823 0.00 0.160 0.840
#> SRR1387787 1 0.000 1.000 1.00 0.000 0.000
#> SRR1378199 1 0.000 1.000 1.00 0.000 0.000
#> SRR1413119 3 0.000 0.978 0.00 0.000 1.000
#> SRR1310497 1 0.000 1.000 1.00 0.000 0.000
#> SRR1356327 1 0.000 1.000 1.00 0.000 0.000
#> SRR1319059 1 0.000 1.000 1.00 0.000 0.000
#> SRR1085378 1 0.000 1.000 1.00 0.000 0.000
#> SRR1379036 3 0.000 0.978 0.00 0.000 1.000
#> SRR1417656 1 0.000 1.000 1.00 0.000 0.000
#> SRR1454225 1 0.000 1.000 1.00 0.000 0.000
#> SRR1455346 3 0.000 0.978 0.00 0.000 1.000
#> SRR1366412 2 0.000 0.983 0.00 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.270 0.8914 0.876 0.000 0.124 0.000
#> SRR1375371 2 0.000 0.9696 0.000 1.000 0.000 0.000
#> SRR1416819 3 0.000 0.7377 0.000 0.000 1.000 0.000
#> SRR1351907 4 0.456 0.4059 0.000 0.328 0.000 0.672
#> SRR1330371 4 0.112 0.8751 0.000 0.000 0.036 0.964
#> SRR1340782 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1094531 4 0.156 0.8738 0.000 0.000 0.056 0.944
#> SRR1436262 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.498 -0.0364 0.000 0.000 0.464 0.536
#> SRR1435460 4 0.234 0.8385 0.000 0.000 0.100 0.900
#> SRR1485587 3 0.215 0.6685 0.088 0.000 0.912 0.000
#> SRR1470834 1 0.357 0.8715 0.804 0.000 0.196 0.000
#> SRR1442966 4 0.112 0.8751 0.000 0.000 0.036 0.964
#> SRR1410979 2 0.000 0.9696 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.112 0.9641 0.000 0.964 0.000 0.036
#> SRR1367520 1 0.357 0.8715 0.804 0.000 0.196 0.000
#> SRR1360321 3 0.270 0.8171 0.000 0.000 0.876 0.124
#> SRR1445170 4 0.498 -0.0364 0.000 0.000 0.464 0.536
#> SRR1440663 3 0.357 0.8079 0.000 0.000 0.804 0.196
#> SRR1489839 1 0.270 0.8914 0.876 0.000 0.124 0.000
#> SRR1409772 1 0.357 0.8715 0.804 0.000 0.196 0.000
#> SRR1092591 1 0.357 0.8715 0.804 0.000 0.196 0.000
#> SRR1338402 3 0.357 0.8079 0.000 0.000 0.804 0.196
#> SRR1337930 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.357 0.8079 0.000 0.000 0.804 0.196
#> SRR1416538 1 0.357 0.8715 0.804 0.000 0.196 0.000
#> SRR1340762 1 0.499 0.4415 0.532 0.000 0.468 0.000
#> SRR1460095 4 0.112 0.8751 0.000 0.000 0.036 0.964
#> SRR1071181 3 0.357 0.8079 0.000 0.000 0.804 0.196
#> SRR1380436 2 0.000 0.9696 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.112 0.9641 0.000 0.964 0.000 0.036
#> SRR1473611 3 0.292 0.6080 0.140 0.000 0.860 0.000
#> SRR1074934 3 0.357 0.8079 0.000 0.000 0.804 0.196
#> SRR1311731 2 0.000 0.9696 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.112 0.9641 0.000 0.964 0.000 0.036
#> SRR1429144 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.357 0.8715 0.804 0.000 0.196 0.000
#> SRR1472171 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.000 0.9696 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.270 0.8171 0.000 0.000 0.876 0.124
#> SRR1418105 3 0.357 0.8079 0.000 0.000 0.804 0.196
#> SRR1090022 2 0.000 0.9696 0.000 1.000 0.000 0.000
#> SRR1077728 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1365767 4 0.112 0.8751 0.000 0.000 0.036 0.964
#> SRR1489670 2 0.312 0.8113 0.000 0.844 0.000 0.156
#> SRR1343136 3 0.270 0.8171 0.000 0.000 0.876 0.124
#> SRR1359587 3 0.357 0.8079 0.000 0.000 0.804 0.196
#> SRR1465782 1 0.357 0.8715 0.804 0.000 0.196 0.000
#> SRR1434460 1 0.357 0.8715 0.804 0.000 0.196 0.000
#> SRR1415751 1 0.270 0.8914 0.876 0.000 0.124 0.000
#> SRR1359027 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.270 0.8171 0.000 0.000 0.876 0.124
#> SRR1456469 2 0.112 0.9641 0.000 0.964 0.000 0.036
#> SRR1436717 2 0.000 0.9696 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.112 0.9641 0.000 0.964 0.000 0.036
#> SRR1070133 2 0.000 0.9696 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.112 0.9641 0.000 0.964 0.000 0.036
#> SRR1436904 3 0.357 0.8079 0.000 0.000 0.804 0.196
#> SRR1076465 2 0.000 0.9696 0.000 1.000 0.000 0.000
#> SRR1433215 3 0.215 0.6685 0.088 0.000 0.912 0.000
#> SRR1076046 1 0.357 0.8715 0.804 0.000 0.196 0.000
#> SRR1406643 2 0.112 0.9641 0.000 0.964 0.000 0.036
#> SRR1499460 4 0.156 0.8738 0.000 0.000 0.056 0.944
#> SRR1475147 2 0.000 0.9696 0.000 1.000 0.000 0.000
#> SRR1319301 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1087680 4 0.156 0.8738 0.000 0.000 0.056 0.944
#> SRR1361391 4 0.156 0.8738 0.000 0.000 0.056 0.944
#> SRR1365655 3 0.112 0.7081 0.036 0.000 0.964 0.000
#> SRR1090457 3 0.270 0.8171 0.000 0.000 0.876 0.124
#> SRR1084154 4 0.247 0.8317 0.000 0.000 0.108 0.892
#> SRR1380358 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1398430 4 0.265 0.8187 0.000 0.000 0.120 0.880
#> SRR1444242 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1440832 2 0.416 0.7063 0.000 0.736 0.000 0.264
#> SRR1358803 3 0.404 0.7648 0.000 0.000 0.752 0.248
#> SRR1344079 3 0.404 0.7648 0.000 0.000 0.752 0.248
#> SRR1072602 3 0.497 -0.2122 0.452 0.000 0.548 0.000
#> SRR1421399 4 0.112 0.8751 0.000 0.000 0.036 0.964
#> SRR1339086 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.357 0.8079 0.000 0.000 0.804 0.196
#> SRR1329508 3 0.000 0.7377 0.000 0.000 1.000 0.000
#> SRR1440200 2 0.000 0.9696 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.112 0.9641 0.000 0.964 0.000 0.036
#> SRR1344364 4 0.112 0.8751 0.000 0.000 0.036 0.964
#> SRR1387787 1 0.357 0.8715 0.804 0.000 0.196 0.000
#> SRR1378199 1 0.357 0.8715 0.804 0.000 0.196 0.000
#> SRR1413119 4 0.156 0.8738 0.000 0.000 0.056 0.944
#> SRR1310497 1 0.387 0.8440 0.772 0.000 0.228 0.000
#> SRR1356327 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1319059 1 0.357 0.8715 0.804 0.000 0.196 0.000
#> SRR1085378 1 0.357 0.8715 0.804 0.000 0.196 0.000
#> SRR1379036 3 0.270 0.8171 0.000 0.000 0.876 0.124
#> SRR1417656 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.000 0.9118 1.000 0.000 0.000 0.000
#> SRR1455346 3 0.454 0.6426 0.000 0.000 0.676 0.324
#> SRR1366412 2 0.000 0.9696 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 5 0.1341 0.7975 0.056 0.000 0.000 0.000 0.944
#> SRR1375371 2 0.1197 0.9236 0.048 0.952 0.000 0.000 0.000
#> SRR1416819 3 0.3890 0.6519 0.012 0.000 0.736 0.000 0.252
#> SRR1351907 4 0.5195 0.7295 0.216 0.108 0.000 0.676 0.000
#> SRR1330371 4 0.0290 0.8205 0.000 0.000 0.008 0.992 0.000
#> SRR1340782 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1094531 4 0.1732 0.8074 0.000 0.000 0.080 0.920 0.000
#> SRR1436262 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1093314 4 0.7001 0.3504 0.184 0.000 0.340 0.452 0.024
#> SRR1435460 4 0.5444 0.7072 0.180 0.000 0.160 0.660 0.000
#> SRR1485587 5 0.3863 0.5702 0.012 0.000 0.248 0.000 0.740
#> SRR1470834 5 0.1270 0.8027 0.052 0.000 0.000 0.000 0.948
#> SRR1442966 4 0.0290 0.8205 0.000 0.000 0.008 0.992 0.000
#> SRR1410979 2 0.0000 0.9350 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.2177 0.9241 0.080 0.908 0.004 0.008 0.000
#> SRR1367520 5 0.1197 0.8060 0.048 0.000 0.000 0.000 0.952
#> SRR1360321 3 0.0794 0.8824 0.000 0.000 0.972 0.000 0.028
#> SRR1445170 4 0.7001 0.3504 0.184 0.000 0.340 0.452 0.024
#> SRR1440663 3 0.0404 0.8836 0.000 0.000 0.988 0.012 0.000
#> SRR1489839 5 0.3636 0.2469 0.272 0.000 0.000 0.000 0.728
#> SRR1409772 5 0.0162 0.8241 0.000 0.000 0.004 0.000 0.996
#> SRR1092591 5 0.0880 0.8160 0.032 0.000 0.000 0.000 0.968
#> SRR1338402 3 0.0609 0.8787 0.000 0.000 0.980 0.020 0.000
#> SRR1337930 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1337749 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1401341 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1396901 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1354400 3 0.0404 0.8836 0.000 0.000 0.988 0.012 0.000
#> SRR1416538 5 0.1270 0.8027 0.052 0.000 0.000 0.000 0.948
#> SRR1340762 5 0.3003 0.6985 0.000 0.000 0.188 0.000 0.812
#> SRR1460095 4 0.2462 0.8128 0.112 0.000 0.008 0.880 0.000
#> SRR1071181 3 0.0404 0.8836 0.000 0.000 0.988 0.012 0.000
#> SRR1380436 2 0.0609 0.9318 0.020 0.980 0.000 0.000 0.000
#> SRR1079973 2 0.2177 0.9241 0.080 0.908 0.004 0.008 0.000
#> SRR1473611 5 0.3081 0.7108 0.012 0.000 0.156 0.000 0.832
#> SRR1074934 3 0.1525 0.8692 0.012 0.000 0.948 0.004 0.036
#> SRR1311731 2 0.0000 0.9350 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.2177 0.9241 0.080 0.908 0.004 0.008 0.000
#> SRR1429144 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1448203 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1366102 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1434845 5 0.1270 0.8027 0.052 0.000 0.000 0.000 0.948
#> SRR1472171 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1441075 2 0.0609 0.9318 0.020 0.980 0.000 0.000 0.000
#> SRR1321483 3 0.0794 0.8824 0.000 0.000 0.972 0.000 0.028
#> SRR1418105 3 0.0404 0.8836 0.000 0.000 0.988 0.012 0.000
#> SRR1090022 2 0.1197 0.9236 0.048 0.952 0.000 0.000 0.000
#> SRR1077728 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1365767 4 0.0510 0.8200 0.000 0.000 0.016 0.984 0.000
#> SRR1489670 2 0.3758 0.8159 0.088 0.816 0.000 0.096 0.000
#> SRR1343136 3 0.0963 0.8788 0.000 0.000 0.964 0.000 0.036
#> SRR1359587 3 0.0404 0.8836 0.000 0.000 0.988 0.012 0.000
#> SRR1465782 5 0.0404 0.8235 0.012 0.000 0.000 0.000 0.988
#> SRR1434460 5 0.0162 0.8241 0.000 0.000 0.004 0.000 0.996
#> SRR1415751 5 0.2561 0.6452 0.144 0.000 0.000 0.000 0.856
#> SRR1359027 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1408303 3 0.0794 0.8824 0.000 0.000 0.972 0.000 0.028
#> SRR1456469 2 0.2177 0.9241 0.080 0.908 0.004 0.008 0.000
#> SRR1436717 2 0.0000 0.9350 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1326845 2 0.1991 0.9246 0.076 0.916 0.004 0.004 0.000
#> SRR1070133 2 0.0000 0.9350 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.2177 0.9241 0.080 0.908 0.004 0.008 0.000
#> SRR1436904 3 0.0404 0.8836 0.000 0.000 0.988 0.012 0.000
#> SRR1076465 2 0.0000 0.9350 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 5 0.4040 0.5123 0.012 0.000 0.276 0.000 0.712
#> SRR1076046 5 0.0771 0.8226 0.020 0.000 0.004 0.000 0.976
#> SRR1406643 2 0.2177 0.9241 0.080 0.908 0.004 0.008 0.000
#> SRR1499460 4 0.1732 0.8074 0.000 0.000 0.080 0.920 0.000
#> SRR1475147 2 0.1430 0.9237 0.052 0.944 0.000 0.004 0.000
#> SRR1319301 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1486117 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1087680 4 0.1732 0.8074 0.000 0.000 0.080 0.920 0.000
#> SRR1361391 4 0.1732 0.8074 0.000 0.000 0.080 0.920 0.000
#> SRR1365655 5 0.4138 0.2911 0.000 0.000 0.384 0.000 0.616
#> SRR1090457 3 0.0703 0.8828 0.000 0.000 0.976 0.000 0.024
#> SRR1084154 4 0.5282 0.7367 0.220 0.000 0.100 0.676 0.004
#> SRR1380358 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1398430 4 0.5629 0.7089 0.220 0.000 0.132 0.644 0.004
#> SRR1444242 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1440832 2 0.5744 0.3523 0.076 0.520 0.004 0.400 0.000
#> SRR1358803 3 0.6897 0.3703 0.184 0.000 0.564 0.200 0.052
#> SRR1344079 3 0.6897 0.3703 0.184 0.000 0.564 0.200 0.052
#> SRR1072602 5 0.2424 0.7384 0.000 0.000 0.132 0.000 0.868
#> SRR1421399 4 0.3696 0.7837 0.212 0.000 0.016 0.772 0.000
#> SRR1339086 1 0.4074 0.9803 0.636 0.000 0.000 0.000 0.364
#> SRR1099881 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1384312 3 0.0404 0.8836 0.000 0.000 0.988 0.012 0.000
#> SRR1329508 3 0.1270 0.8667 0.000 0.000 0.948 0.000 0.052
#> SRR1440200 2 0.0000 0.9350 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.1991 0.9246 0.076 0.916 0.004 0.004 0.000
#> SRR1344364 4 0.1522 0.8210 0.044 0.000 0.012 0.944 0.000
#> SRR1387787 5 0.0162 0.8241 0.000 0.000 0.004 0.000 0.996
#> SRR1378199 5 0.1197 0.8060 0.048 0.000 0.000 0.000 0.952
#> SRR1413119 4 0.1908 0.8065 0.000 0.000 0.092 0.908 0.000
#> SRR1310497 5 0.0404 0.8208 0.000 0.000 0.012 0.000 0.988
#> SRR1356327 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1319059 5 0.0609 0.8215 0.020 0.000 0.000 0.000 0.980
#> SRR1085378 5 0.0162 0.8241 0.000 0.000 0.004 0.000 0.996
#> SRR1379036 3 0.0794 0.8824 0.000 0.000 0.972 0.000 0.028
#> SRR1417656 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1454225 1 0.4030 0.9991 0.648 0.000 0.000 0.000 0.352
#> SRR1455346 3 0.7472 -0.0312 0.220 0.000 0.432 0.300 0.048
#> SRR1366412 2 0.1430 0.9237 0.052 0.944 0.000 0.004 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1313664 6 0.2886 0.840 0.016 0.000 0.000 0.144 0.004 0.836
#> SRR1375371 2 0.1856 0.903 0.048 0.920 0.000 0.032 0.000 0.000
#> SRR1416819 3 0.4368 0.435 0.012 0.000 0.640 0.020 0.000 0.328
#> SRR1351907 4 0.4830 0.661 0.048 0.048 0.000 0.700 0.204 0.000
#> SRR1330371 5 0.1950 0.830 0.024 0.000 0.000 0.064 0.912 0.000
#> SRR1340782 1 0.2883 0.975 0.788 0.000 0.000 0.000 0.000 0.212
#> SRR1094531 5 0.1074 0.851 0.012 0.000 0.028 0.000 0.960 0.000
#> SRR1436262 1 0.3320 0.973 0.772 0.000 0.000 0.016 0.000 0.212
#> SRR1093314 4 0.4975 0.782 0.020 0.000 0.192 0.692 0.092 0.004
#> SRR1435460 4 0.4747 0.773 0.008 0.000 0.108 0.692 0.192 0.000
#> SRR1485587 6 0.2798 0.767 0.012 0.000 0.108 0.020 0.000 0.860
#> SRR1470834 6 0.3073 0.840 0.016 0.000 0.000 0.152 0.008 0.824
#> SRR1442966 5 0.1950 0.830 0.024 0.000 0.000 0.064 0.912 0.000
#> SRR1410979 2 0.0000 0.925 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.2756 0.906 0.072 0.876 0.000 0.032 0.020 0.000
#> SRR1367520 6 0.1668 0.862 0.008 0.000 0.000 0.060 0.004 0.928
#> SRR1360321 3 0.0146 0.962 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1445170 4 0.4975 0.782 0.020 0.000 0.192 0.692 0.092 0.004
#> SRR1440663 3 0.0000 0.963 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 6 0.5516 0.402 0.244 0.000 0.000 0.160 0.008 0.588
#> SRR1409772 6 0.0363 0.863 0.000 0.000 0.000 0.012 0.000 0.988
#> SRR1092591 6 0.0862 0.865 0.008 0.000 0.000 0.016 0.004 0.972
#> SRR1338402 3 0.0000 0.963 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1337930 1 0.2883 0.975 0.788 0.000 0.000 0.000 0.000 0.212
#> SRR1337749 1 0.3133 0.975 0.780 0.000 0.000 0.008 0.000 0.212
#> SRR1401341 1 0.5042 0.853 0.648 0.000 0.000 0.136 0.004 0.212
#> SRR1396901 1 0.2883 0.975 0.788 0.000 0.000 0.000 0.000 0.212
#> SRR1354400 3 0.0000 0.963 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1416538 6 0.2957 0.842 0.016 0.000 0.000 0.140 0.008 0.836
#> SRR1340762 6 0.4016 0.782 0.000 0.000 0.120 0.108 0.004 0.768
#> SRR1460095 4 0.4756 0.228 0.048 0.000 0.000 0.488 0.464 0.000
#> SRR1071181 3 0.0000 0.963 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.1421 0.912 0.028 0.944 0.000 0.028 0.000 0.000
#> SRR1079973 2 0.2756 0.906 0.072 0.876 0.000 0.032 0.020 0.000
#> SRR1473611 6 0.1693 0.841 0.012 0.000 0.032 0.020 0.000 0.936
#> SRR1074934 3 0.1251 0.925 0.012 0.000 0.956 0.024 0.000 0.008
#> SRR1311731 2 0.0000 0.925 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.2756 0.906 0.072 0.876 0.000 0.032 0.020 0.000
#> SRR1429144 1 0.2883 0.975 0.788 0.000 0.000 0.000 0.000 0.212
#> SRR1448203 1 0.3403 0.971 0.768 0.000 0.000 0.020 0.000 0.212
#> SRR1366102 1 0.3133 0.975 0.780 0.000 0.000 0.008 0.000 0.212
#> SRR1434845 6 0.2865 0.845 0.012 0.000 0.000 0.140 0.008 0.840
#> SRR1472171 1 0.2883 0.975 0.788 0.000 0.000 0.000 0.000 0.212
#> SRR1441075 2 0.1421 0.912 0.028 0.944 0.000 0.028 0.000 0.000
#> SRR1321483 3 0.0146 0.962 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1418105 3 0.0000 0.963 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.1856 0.903 0.048 0.920 0.000 0.032 0.000 0.000
#> SRR1077728 1 0.3766 0.952 0.748 0.000 0.000 0.040 0.000 0.212
#> SRR1365767 5 0.1138 0.848 0.012 0.000 0.004 0.024 0.960 0.000
#> SRR1489670 2 0.4008 0.797 0.096 0.796 0.000 0.068 0.040 0.000
#> SRR1343136 3 0.0146 0.962 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1359587 3 0.0000 0.963 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1465782 6 0.0692 0.866 0.004 0.000 0.000 0.020 0.000 0.976
#> SRR1434460 6 0.0146 0.863 0.000 0.000 0.000 0.004 0.000 0.996
#> SRR1415751 6 0.4704 0.672 0.132 0.000 0.000 0.156 0.008 0.704
#> SRR1359027 1 0.2883 0.975 0.788 0.000 0.000 0.000 0.000 0.212
#> SRR1408303 3 0.0146 0.962 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1456469 2 0.2756 0.906 0.072 0.876 0.000 0.032 0.020 0.000
#> SRR1436717 2 0.0000 0.925 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.2883 0.975 0.788 0.000 0.000 0.000 0.000 0.212
#> SRR1326845 2 0.2756 0.906 0.072 0.876 0.000 0.032 0.020 0.000
#> SRR1070133 2 0.0000 0.925 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.2756 0.906 0.072 0.876 0.000 0.032 0.020 0.000
#> SRR1436904 3 0.0000 0.963 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1076465 2 0.0000 0.925 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 6 0.2933 0.752 0.012 0.000 0.120 0.020 0.000 0.848
#> SRR1076046 6 0.1908 0.860 0.004 0.000 0.000 0.096 0.000 0.900
#> SRR1406643 2 0.2756 0.906 0.072 0.876 0.000 0.032 0.020 0.000
#> SRR1499460 5 0.1074 0.851 0.012 0.000 0.028 0.000 0.960 0.000
#> SRR1475147 2 0.1856 0.903 0.048 0.920 0.000 0.032 0.000 0.000
#> SRR1319301 1 0.2883 0.975 0.788 0.000 0.000 0.000 0.000 0.212
#> SRR1486117 1 0.3133 0.975 0.780 0.000 0.000 0.008 0.000 0.212
#> SRR1087680 5 0.1074 0.851 0.012 0.000 0.028 0.000 0.960 0.000
#> SRR1361391 5 0.1874 0.849 0.016 0.000 0.028 0.028 0.928 0.000
#> SRR1365655 6 0.3852 0.626 0.000 0.000 0.224 0.032 0.004 0.740
#> SRR1090457 3 0.0000 0.963 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.4468 0.755 0.016 0.000 0.064 0.720 0.200 0.000
#> SRR1380358 1 0.3403 0.971 0.768 0.000 0.000 0.020 0.000 0.212
#> SRR1398430 4 0.4555 0.768 0.016 0.000 0.080 0.720 0.184 0.000
#> SRR1444242 1 0.2883 0.975 0.788 0.000 0.000 0.000 0.000 0.212
#> SRR1440832 5 0.5288 0.455 0.060 0.252 0.000 0.048 0.640 0.000
#> SRR1358803 4 0.4488 0.741 0.012 0.000 0.248 0.700 0.024 0.016
#> SRR1344079 4 0.4488 0.741 0.012 0.000 0.248 0.700 0.024 0.016
#> SRR1072602 6 0.2070 0.812 0.000 0.000 0.092 0.012 0.000 0.896
#> SRR1421399 4 0.4066 0.649 0.036 0.000 0.000 0.692 0.272 0.000
#> SRR1339086 1 0.5091 0.842 0.640 0.000 0.000 0.136 0.004 0.220
#> SRR1099881 1 0.4261 0.934 0.720 0.000 0.000 0.064 0.004 0.212
#> SRR1384312 3 0.0000 0.963 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.0922 0.935 0.000 0.000 0.968 0.004 0.004 0.024
#> SRR1440200 2 0.0146 0.924 0.004 0.996 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.2756 0.906 0.072 0.876 0.000 0.032 0.020 0.000
#> SRR1344364 5 0.4065 0.363 0.028 0.000 0.000 0.300 0.672 0.000
#> SRR1387787 6 0.0146 0.863 0.000 0.000 0.000 0.004 0.000 0.996
#> SRR1378199 6 0.2531 0.851 0.008 0.000 0.000 0.128 0.004 0.860
#> SRR1413119 5 0.1857 0.849 0.012 0.000 0.028 0.032 0.928 0.000
#> SRR1310497 6 0.1080 0.865 0.000 0.000 0.004 0.032 0.004 0.960
#> SRR1356327 1 0.3403 0.971 0.768 0.000 0.000 0.020 0.000 0.212
#> SRR1319059 6 0.2655 0.849 0.004 0.000 0.000 0.140 0.008 0.848
#> SRR1085378 6 0.0146 0.863 0.000 0.000 0.000 0.004 0.000 0.996
#> SRR1379036 3 0.0146 0.962 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1417656 1 0.2883 0.975 0.788 0.000 0.000 0.000 0.000 0.212
#> SRR1454225 1 0.3403 0.971 0.768 0.000 0.000 0.020 0.000 0.212
#> SRR1455346 4 0.4356 0.767 0.008 0.000 0.212 0.728 0.040 0.012
#> SRR1366412 2 0.2164 0.893 0.068 0.900 0.000 0.032 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["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 17697 rows and 104 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 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 1.000 0.991 0.996 0.4881 0.514 0.514
#> 3 3 0.960 0.970 0.985 0.2829 0.854 0.719
#> 4 4 0.927 0.884 0.936 0.0880 0.919 0.789
#> 5 5 0.985 0.944 0.974 0.0410 0.981 0.937
#> 6 6 0.899 0.830 0.915 0.0443 0.997 0.990
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 5
#> attr(,"optional")
#> [1] 2 3 4
There is also optional best \(k\) = 2 3 4 that is worth to check.
Following 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
#> SRR1313664 1 0.000 0.993 1.000 0.000
#> SRR1375371 2 0.000 1.000 0.000 1.000
#> SRR1416819 1 0.000 0.993 1.000 0.000
#> SRR1351907 2 0.000 1.000 0.000 1.000
#> SRR1330371 2 0.000 1.000 0.000 1.000
#> SRR1340782 1 0.000 0.993 1.000 0.000
#> SRR1094531 2 0.000 1.000 0.000 1.000
#> SRR1436262 1 0.000 0.993 1.000 0.000
#> SRR1093314 2 0.000 1.000 0.000 1.000
#> SRR1435460 2 0.000 1.000 0.000 1.000
#> SRR1485587 1 0.000 0.993 1.000 0.000
#> SRR1470834 1 0.000 0.993 1.000 0.000
#> SRR1442966 2 0.000 1.000 0.000 1.000
#> SRR1410979 2 0.000 1.000 0.000 1.000
#> SRR1326449 2 0.000 1.000 0.000 1.000
#> SRR1367520 1 0.000 0.993 1.000 0.000
#> SRR1360321 1 0.000 0.993 1.000 0.000
#> SRR1445170 2 0.000 1.000 0.000 1.000
#> SRR1440663 1 0.000 0.993 1.000 0.000
#> SRR1489839 1 0.000 0.993 1.000 0.000
#> SRR1409772 1 0.000 0.993 1.000 0.000
#> SRR1092591 1 0.000 0.993 1.000 0.000
#> SRR1338402 2 0.000 1.000 0.000 1.000
#> SRR1337930 1 0.000 0.993 1.000 0.000
#> SRR1337749 1 0.000 0.993 1.000 0.000
#> SRR1401341 1 0.000 0.993 1.000 0.000
#> SRR1396901 1 0.000 0.993 1.000 0.000
#> SRR1354400 1 0.000 0.993 1.000 0.000
#> SRR1416538 1 0.000 0.993 1.000 0.000
#> SRR1340762 1 0.000 0.993 1.000 0.000
#> SRR1460095 2 0.000 1.000 0.000 1.000
#> SRR1071181 1 0.000 0.993 1.000 0.000
#> SRR1380436 2 0.000 1.000 0.000 1.000
#> SRR1079973 2 0.000 1.000 0.000 1.000
#> SRR1473611 1 0.000 0.993 1.000 0.000
#> SRR1074934 1 0.000 0.993 1.000 0.000
#> SRR1311731 2 0.000 1.000 0.000 1.000
#> SRR1452957 2 0.000 1.000 0.000 1.000
#> SRR1429144 1 0.000 0.993 1.000 0.000
#> SRR1448203 1 0.000 0.993 1.000 0.000
#> SRR1366102 1 0.000 0.993 1.000 0.000
#> SRR1434845 1 0.000 0.993 1.000 0.000
#> SRR1472171 1 0.000 0.993 1.000 0.000
#> SRR1441075 2 0.000 1.000 0.000 1.000
#> SRR1321483 1 0.000 0.993 1.000 0.000
#> SRR1418105 1 0.000 0.993 1.000 0.000
#> SRR1090022 2 0.000 1.000 0.000 1.000
#> SRR1077728 1 0.000 0.993 1.000 0.000
#> SRR1365767 2 0.000 1.000 0.000 1.000
#> SRR1489670 2 0.000 1.000 0.000 1.000
#> SRR1343136 1 0.000 0.993 1.000 0.000
#> SRR1359587 2 0.000 1.000 0.000 1.000
#> SRR1465782 1 0.000 0.993 1.000 0.000
#> SRR1434460 1 0.000 0.993 1.000 0.000
#> SRR1415751 1 0.000 0.993 1.000 0.000
#> SRR1359027 1 0.000 0.993 1.000 0.000
#> SRR1408303 1 0.000 0.993 1.000 0.000
#> SRR1456469 2 0.000 1.000 0.000 1.000
#> SRR1436717 2 0.000 1.000 0.000 1.000
#> SRR1480287 1 0.000 0.993 1.000 0.000
#> SRR1326845 2 0.000 1.000 0.000 1.000
#> SRR1070133 2 0.000 1.000 0.000 1.000
#> SRR1387745 2 0.000 1.000 0.000 1.000
#> SRR1436904 1 0.000 0.993 1.000 0.000
#> SRR1076465 2 0.000 1.000 0.000 1.000
#> SRR1433215 1 0.000 0.993 1.000 0.000
#> SRR1076046 1 0.000 0.993 1.000 0.000
#> SRR1406643 2 0.000 1.000 0.000 1.000
#> SRR1499460 2 0.000 1.000 0.000 1.000
#> SRR1475147 2 0.000 1.000 0.000 1.000
#> SRR1319301 1 0.000 0.993 1.000 0.000
#> SRR1486117 1 0.000 0.993 1.000 0.000
#> SRR1087680 2 0.000 1.000 0.000 1.000
#> SRR1361391 2 0.000 1.000 0.000 1.000
#> SRR1365655 1 0.000 0.993 1.000 0.000
#> SRR1090457 1 0.000 0.993 1.000 0.000
#> SRR1084154 2 0.000 1.000 0.000 1.000
#> SRR1380358 1 0.000 0.993 1.000 0.000
#> SRR1398430 2 0.000 1.000 0.000 1.000
#> SRR1444242 1 0.000 0.993 1.000 0.000
#> SRR1440832 2 0.000 1.000 0.000 1.000
#> SRR1358803 1 0.895 0.552 0.688 0.312
#> SRR1344079 1 0.416 0.906 0.916 0.084
#> SRR1072602 1 0.000 0.993 1.000 0.000
#> SRR1421399 2 0.000 1.000 0.000 1.000
#> SRR1339086 1 0.000 0.993 1.000 0.000
#> SRR1099881 1 0.000 0.993 1.000 0.000
#> SRR1384312 1 0.184 0.966 0.972 0.028
#> SRR1329508 1 0.000 0.993 1.000 0.000
#> SRR1440200 2 0.000 1.000 0.000 1.000
#> SRR1397558 2 0.000 1.000 0.000 1.000
#> SRR1344364 2 0.000 1.000 0.000 1.000
#> SRR1387787 1 0.000 0.993 1.000 0.000
#> SRR1378199 1 0.000 0.993 1.000 0.000
#> SRR1413119 2 0.000 1.000 0.000 1.000
#> SRR1310497 1 0.000 0.993 1.000 0.000
#> SRR1356327 1 0.000 0.993 1.000 0.000
#> SRR1319059 1 0.000 0.993 1.000 0.000
#> SRR1085378 1 0.000 0.993 1.000 0.000
#> SRR1379036 1 0.000 0.993 1.000 0.000
#> SRR1417656 1 0.000 0.993 1.000 0.000
#> SRR1454225 1 0.000 0.993 1.000 0.000
#> SRR1455346 2 0.000 1.000 0.000 1.000
#> SRR1366412 2 0.000 1.000 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.000 0.994 1.000 0.000 0.000
#> SRR1375371 2 0.000 0.967 0.000 1.000 0.000
#> SRR1416819 1 0.000 0.994 1.000 0.000 0.000
#> SRR1351907 2 0.000 0.967 0.000 1.000 0.000
#> SRR1330371 2 0.000 0.967 0.000 1.000 0.000
#> SRR1340782 1 0.000 0.994 1.000 0.000 0.000
#> SRR1094531 2 0.460 0.774 0.000 0.796 0.204
#> SRR1436262 1 0.000 0.994 1.000 0.000 0.000
#> SRR1093314 2 0.000 0.967 0.000 1.000 0.000
#> SRR1435460 2 0.455 0.779 0.000 0.800 0.200
#> SRR1485587 1 0.000 0.994 1.000 0.000 0.000
#> SRR1470834 1 0.000 0.994 1.000 0.000 0.000
#> SRR1442966 2 0.000 0.967 0.000 1.000 0.000
#> SRR1410979 2 0.000 0.967 0.000 1.000 0.000
#> SRR1326449 2 0.000 0.967 0.000 1.000 0.000
#> SRR1367520 1 0.000 0.994 1.000 0.000 0.000
#> SRR1360321 3 0.000 0.998 0.000 0.000 1.000
#> SRR1445170 2 0.000 0.967 0.000 1.000 0.000
#> SRR1440663 3 0.000 0.998 0.000 0.000 1.000
#> SRR1489839 1 0.000 0.994 1.000 0.000 0.000
#> SRR1409772 1 0.000 0.994 1.000 0.000 0.000
#> SRR1092591 1 0.000 0.994 1.000 0.000 0.000
#> SRR1338402 3 0.000 0.998 0.000 0.000 1.000
#> SRR1337930 1 0.000 0.994 1.000 0.000 0.000
#> SRR1337749 1 0.000 0.994 1.000 0.000 0.000
#> SRR1401341 1 0.000 0.994 1.000 0.000 0.000
#> SRR1396901 1 0.000 0.994 1.000 0.000 0.000
#> SRR1354400 3 0.000 0.998 0.000 0.000 1.000
#> SRR1416538 1 0.000 0.994 1.000 0.000 0.000
#> SRR1340762 1 0.000 0.994 1.000 0.000 0.000
#> SRR1460095 2 0.000 0.967 0.000 1.000 0.000
#> SRR1071181 3 0.000 0.998 0.000 0.000 1.000
#> SRR1380436 2 0.000 0.967 0.000 1.000 0.000
#> SRR1079973 2 0.000 0.967 0.000 1.000 0.000
#> SRR1473611 1 0.000 0.994 1.000 0.000 0.000
#> SRR1074934 3 0.129 0.963 0.032 0.000 0.968
#> SRR1311731 2 0.000 0.967 0.000 1.000 0.000
#> SRR1452957 2 0.000 0.967 0.000 1.000 0.000
#> SRR1429144 1 0.000 0.994 1.000 0.000 0.000
#> SRR1448203 1 0.000 0.994 1.000 0.000 0.000
#> SRR1366102 1 0.000 0.994 1.000 0.000 0.000
#> SRR1434845 1 0.000 0.994 1.000 0.000 0.000
#> SRR1472171 1 0.000 0.994 1.000 0.000 0.000
#> SRR1441075 2 0.000 0.967 0.000 1.000 0.000
#> SRR1321483 3 0.000 0.998 0.000 0.000 1.000
#> SRR1418105 3 0.000 0.998 0.000 0.000 1.000
#> SRR1090022 2 0.000 0.967 0.000 1.000 0.000
#> SRR1077728 1 0.000 0.994 1.000 0.000 0.000
#> SRR1365767 2 0.000 0.967 0.000 1.000 0.000
#> SRR1489670 2 0.000 0.967 0.000 1.000 0.000
#> SRR1343136 3 0.000 0.998 0.000 0.000 1.000
#> SRR1359587 3 0.000 0.998 0.000 0.000 1.000
#> SRR1465782 1 0.000 0.994 1.000 0.000 0.000
#> SRR1434460 1 0.000 0.994 1.000 0.000 0.000
#> SRR1415751 1 0.000 0.994 1.000 0.000 0.000
#> SRR1359027 1 0.000 0.994 1.000 0.000 0.000
#> SRR1408303 3 0.000 0.998 0.000 0.000 1.000
#> SRR1456469 2 0.000 0.967 0.000 1.000 0.000
#> SRR1436717 2 0.000 0.967 0.000 1.000 0.000
#> SRR1480287 1 0.000 0.994 1.000 0.000 0.000
#> SRR1326845 2 0.000 0.967 0.000 1.000 0.000
#> SRR1070133 2 0.000 0.967 0.000 1.000 0.000
#> SRR1387745 2 0.000 0.967 0.000 1.000 0.000
#> SRR1436904 3 0.000 0.998 0.000 0.000 1.000
#> SRR1076465 2 0.000 0.967 0.000 1.000 0.000
#> SRR1433215 1 0.000 0.994 1.000 0.000 0.000
#> SRR1076046 1 0.000 0.994 1.000 0.000 0.000
#> SRR1406643 2 0.000 0.967 0.000 1.000 0.000
#> SRR1499460 2 0.455 0.779 0.000 0.800 0.200
#> SRR1475147 2 0.000 0.967 0.000 1.000 0.000
#> SRR1319301 1 0.000 0.994 1.000 0.000 0.000
#> SRR1486117 1 0.000 0.994 1.000 0.000 0.000
#> SRR1087680 2 0.455 0.779 0.000 0.800 0.200
#> SRR1361391 2 0.455 0.779 0.000 0.800 0.200
#> SRR1365655 1 0.000 0.994 1.000 0.000 0.000
#> SRR1090457 3 0.000 0.998 0.000 0.000 1.000
#> SRR1084154 2 0.000 0.967 0.000 1.000 0.000
#> SRR1380358 1 0.000 0.994 1.000 0.000 0.000
#> SRR1398430 2 0.000 0.967 0.000 1.000 0.000
#> SRR1444242 1 0.000 0.994 1.000 0.000 0.000
#> SRR1440832 2 0.000 0.967 0.000 1.000 0.000
#> SRR1358803 1 0.460 0.736 0.796 0.204 0.000
#> SRR1344079 1 0.175 0.941 0.952 0.048 0.000
#> SRR1072602 1 0.000 0.994 1.000 0.000 0.000
#> SRR1421399 2 0.000 0.967 0.000 1.000 0.000
#> SRR1339086 1 0.000 0.994 1.000 0.000 0.000
#> SRR1099881 1 0.000 0.994 1.000 0.000 0.000
#> SRR1384312 3 0.000 0.998 0.000 0.000 1.000
#> SRR1329508 3 0.000 0.998 0.000 0.000 1.000
#> SRR1440200 2 0.000 0.967 0.000 1.000 0.000
#> SRR1397558 2 0.000 0.967 0.000 1.000 0.000
#> SRR1344364 2 0.000 0.967 0.000 1.000 0.000
#> SRR1387787 1 0.000 0.994 1.000 0.000 0.000
#> SRR1378199 1 0.000 0.994 1.000 0.000 0.000
#> SRR1413119 2 0.484 0.746 0.000 0.776 0.224
#> SRR1310497 1 0.000 0.994 1.000 0.000 0.000
#> SRR1356327 1 0.000 0.994 1.000 0.000 0.000
#> SRR1319059 1 0.000 0.994 1.000 0.000 0.000
#> SRR1085378 1 0.000 0.994 1.000 0.000 0.000
#> SRR1379036 3 0.000 0.998 0.000 0.000 1.000
#> SRR1417656 1 0.000 0.994 1.000 0.000 0.000
#> SRR1454225 1 0.000 0.994 1.000 0.000 0.000
#> SRR1455346 2 0.000 0.967 0.000 1.000 0.000
#> SRR1366412 2 0.000 0.967 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1416819 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1351907 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1330371 4 0.4999 0.621 0.000 0.492 0.000 0.508
#> SRR1340782 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1094531 4 0.5404 0.646 0.000 0.476 0.012 0.512
#> SRR1436262 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.0000 0.467 0.000 0.000 0.000 1.000
#> SRR1435460 4 0.5399 0.648 0.000 0.468 0.012 0.520
#> SRR1485587 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1470834 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1442966 4 0.4998 0.629 0.000 0.488 0.000 0.512
#> SRR1410979 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1360321 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1445170 4 0.0000 0.467 0.000 0.000 0.000 1.000
#> SRR1440663 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1489839 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1409772 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1092591 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1338402 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1337930 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1416538 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1340762 1 0.0188 0.993 0.996 0.000 0.004 0.000
#> SRR1460095 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1071181 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1473611 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1074934 3 0.3400 0.825 0.000 0.000 0.820 0.180
#> SRR1311731 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1472171 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1418105 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1090022 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1077728 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1365767 4 0.4998 0.629 0.000 0.488 0.000 0.512
#> SRR1489670 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1343136 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1359587 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1465782 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1434460 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1415751 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1456469 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1076465 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1433215 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1076046 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1406643 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1499460 4 0.5404 0.646 0.000 0.476 0.012 0.512
#> SRR1475147 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1319301 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1087680 4 0.5404 0.646 0.000 0.476 0.012 0.512
#> SRR1361391 4 0.5404 0.646 0.000 0.476 0.012 0.512
#> SRR1365655 1 0.3024 0.826 0.852 0.000 0.148 0.000
#> SRR1090457 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1084154 2 0.4543 0.399 0.000 0.676 0.000 0.324
#> SRR1380358 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1398430 2 0.4454 0.427 0.000 0.692 0.000 0.308
#> SRR1444242 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1440832 2 0.4713 -0.191 0.000 0.640 0.000 0.360
#> SRR1358803 4 0.3731 0.410 0.120 0.036 0.000 0.844
#> SRR1344079 4 0.3123 0.379 0.156 0.000 0.000 0.844
#> SRR1072602 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1421399 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1339086 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1440200 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.905 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.3074 0.639 0.000 0.848 0.000 0.152
#> SRR1387787 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1378199 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1413119 4 0.5682 0.643 0.000 0.456 0.024 0.520
#> SRR1310497 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1356327 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1319059 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1085378 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1379036 3 0.0000 0.990 0.000 0.000 1.000 0.000
#> SRR1417656 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.996 1.000 0.000 0.000 0.000
#> SRR1455346 2 0.4994 0.125 0.000 0.520 0.000 0.480
#> SRR1366412 2 0.0000 0.905 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1416819 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1351907 2 0.0510 0.959 0.000 0.984 0.000 0.016 0.000
#> SRR1330371 4 0.2471 0.814 0.000 0.136 0.000 0.864 0.000
#> SRR1340782 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1094531 4 0.1043 0.921 0.000 0.040 0.000 0.960 0.000
#> SRR1436262 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 5 0.1851 0.870 0.000 0.000 0.000 0.088 0.912
#> SRR1435460 4 0.0703 0.904 0.000 0.024 0.000 0.976 0.000
#> SRR1485587 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1470834 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1442966 4 0.1197 0.915 0.000 0.048 0.000 0.952 0.000
#> SRR1410979 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1360321 3 0.0000 0.950 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 5 0.1851 0.870 0.000 0.000 0.000 0.088 0.912
#> SRR1440663 3 0.0290 0.950 0.000 0.000 0.992 0.008 0.000
#> SRR1489839 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1409772 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1092591 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1338402 3 0.3661 0.633 0.000 0.000 0.724 0.276 0.000
#> SRR1337930 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0290 0.950 0.000 0.000 0.992 0.008 0.000
#> SRR1416538 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1340762 1 0.0794 0.966 0.972 0.000 0.028 0.000 0.000
#> SRR1460095 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1071181 3 0.0290 0.950 0.000 0.000 0.992 0.008 0.000
#> SRR1380436 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1074934 3 0.4354 0.414 0.000 0.000 0.624 0.008 0.368
#> SRR1311731 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1434845 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1472171 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.950 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0290 0.950 0.000 0.000 0.992 0.008 0.000
#> SRR1090022 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1077728 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1365767 4 0.1043 0.921 0.000 0.040 0.000 0.960 0.000
#> SRR1489670 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1343136 3 0.0000 0.950 0.000 0.000 1.000 0.000 0.000
#> SRR1359587 3 0.0290 0.950 0.000 0.000 0.992 0.008 0.000
#> SRR1465782 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1434460 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1415751 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.950 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0290 0.950 0.000 0.000 0.992 0.008 0.000
#> SRR1076465 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1076046 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1406643 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 4 0.1043 0.921 0.000 0.040 0.000 0.960 0.000
#> SRR1475147 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1087680 4 0.1043 0.921 0.000 0.040 0.000 0.960 0.000
#> SRR1361391 4 0.1043 0.921 0.000 0.040 0.000 0.960 0.000
#> SRR1365655 1 0.2813 0.785 0.832 0.000 0.168 0.000 0.000
#> SRR1090457 3 0.0000 0.950 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 2 0.2464 0.864 0.000 0.888 0.000 0.016 0.096
#> SRR1380358 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1398430 2 0.2464 0.864 0.000 0.888 0.000 0.016 0.096
#> SRR1444242 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1440832 4 0.3966 0.501 0.000 0.336 0.000 0.664 0.000
#> SRR1358803 5 0.0000 0.883 0.000 0.000 0.000 0.000 1.000
#> SRR1344079 5 0.0000 0.883 0.000 0.000 0.000 0.000 1.000
#> SRR1072602 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1421399 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1339086 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0290 0.950 0.000 0.000 0.992 0.008 0.000
#> SRR1329508 3 0.0000 0.950 0.000 0.000 1.000 0.000 0.000
#> SRR1440200 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.974 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 2 0.4101 0.345 0.000 0.628 0.000 0.372 0.000
#> SRR1387787 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1378199 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1413119 4 0.0703 0.904 0.000 0.024 0.000 0.976 0.000
#> SRR1310497 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1356327 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1319059 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1085378 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1379036 3 0.0000 0.950 0.000 0.000 1.000 0.000 0.000
#> SRR1417656 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.995 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 5 0.3456 0.687 0.000 0.184 0.000 0.016 0.800
#> SRR1366412 2 0.0000 0.974 0.000 1.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
#> SRR1313664 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1416819 1 0.3797 0.547 0.580 0.000 0.000 0.000 0.000 0.420
#> SRR1351907 2 0.1204 0.903 0.000 0.944 0.000 0.056 0.000 0.000
#> SRR1330371 5 0.2772 0.695 0.000 0.180 0.000 0.000 0.816 0.004
#> SRR1340782 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.0000 0.904 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1436262 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.4471 0.725 0.000 0.000 0.000 0.500 0.028 0.472
#> SRR1435460 5 0.0146 0.902 0.000 0.000 0.000 0.000 0.996 0.004
#> SRR1485587 1 0.3482 0.679 0.684 0.000 0.000 0.000 0.000 0.316
#> SRR1470834 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1442966 5 0.0777 0.884 0.000 0.024 0.000 0.000 0.972 0.004
#> SRR1410979 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1367520 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1360321 3 0.1814 0.829 0.000 0.000 0.900 0.000 0.000 0.100
#> SRR1445170 4 0.4471 0.725 0.000 0.000 0.000 0.500 0.028 0.472
#> SRR1440663 3 0.0000 0.850 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1409772 1 0.0260 0.913 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1092591 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1338402 3 0.3337 0.180 0.000 0.000 0.736 0.000 0.260 0.004
#> SRR1337930 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0146 0.848 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1416538 1 0.0146 0.915 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1340762 1 0.3991 0.451 0.524 0.000 0.004 0.000 0.000 0.472
#> SRR1460095 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1071181 3 0.0146 0.848 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1380436 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1473611 1 0.3446 0.687 0.692 0.000 0.000 0.000 0.000 0.308
#> SRR1074934 6 0.5153 0.000 0.000 0.000 0.452 0.084 0.000 0.464
#> SRR1311731 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1434845 1 0.3409 0.694 0.700 0.000 0.000 0.000 0.000 0.300
#> SRR1472171 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1321483 3 0.1714 0.834 0.000 0.000 0.908 0.000 0.000 0.092
#> SRR1418105 3 0.0000 0.850 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1077728 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1365767 5 0.0000 0.904 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1489670 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1343136 3 0.1957 0.817 0.000 0.000 0.888 0.000 0.000 0.112
#> SRR1359587 3 0.0146 0.848 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1465782 1 0.0260 0.913 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1434460 1 0.3464 0.683 0.688 0.000 0.000 0.000 0.000 0.312
#> SRR1415751 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.1814 0.829 0.000 0.000 0.900 0.000 0.000 0.100
#> SRR1456469 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1436904 3 0.0146 0.848 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1076465 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 1 0.0937 0.894 0.960 0.000 0.000 0.000 0.000 0.040
#> SRR1076046 1 0.3446 0.687 0.692 0.000 0.000 0.000 0.000 0.308
#> SRR1406643 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1499460 5 0.0000 0.904 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1475147 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087680 5 0.0000 0.904 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1361391 5 0.0000 0.904 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1365655 1 0.4336 0.409 0.504 0.000 0.020 0.000 0.000 0.476
#> SRR1090457 3 0.1556 0.839 0.000 0.000 0.920 0.000 0.000 0.080
#> SRR1084154 2 0.3867 0.217 0.000 0.512 0.000 0.488 0.000 0.000
#> SRR1380358 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1398430 2 0.3866 0.227 0.000 0.516 0.000 0.484 0.000 0.000
#> SRR1444242 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.3482 0.488 0.000 0.316 0.000 0.000 0.684 0.000
#> SRR1358803 4 0.2969 0.669 0.000 0.000 0.000 0.776 0.000 0.224
#> SRR1344079 4 0.3828 0.729 0.000 0.000 0.000 0.560 0.000 0.440
#> SRR1072602 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1421399 2 0.0405 0.941 0.000 0.988 0.000 0.008 0.000 0.004
#> SRR1339086 1 0.0146 0.915 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1099881 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.850 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.2527 0.714 0.000 0.000 0.832 0.000 0.000 0.168
#> SRR1440200 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.950 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1344364 2 0.3133 0.693 0.000 0.780 0.000 0.000 0.212 0.008
#> SRR1387787 1 0.1501 0.872 0.924 0.000 0.000 0.000 0.000 0.076
#> SRR1378199 1 0.0146 0.915 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1413119 5 0.0000 0.904 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1310497 1 0.3659 0.623 0.636 0.000 0.000 0.000 0.000 0.364
#> SRR1356327 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1319059 1 0.3717 0.598 0.616 0.000 0.000 0.000 0.000 0.384
#> SRR1085378 1 0.0146 0.915 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1379036 3 0.1910 0.821 0.000 0.000 0.892 0.000 0.000 0.108
#> SRR1417656 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.917 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.1957 0.434 0.000 0.112 0.000 0.888 0.000 0.000
#> SRR1366412 2 0.0000 0.950 0.000 1.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["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 17697 rows and 104 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 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 1.000 0.993 0.997 0.4590 0.543 0.543
#> 3 3 1.000 0.963 0.981 0.4141 0.695 0.491
#> 4 4 0.803 0.834 0.915 0.1226 0.898 0.720
#> 5 5 0.862 0.819 0.914 0.0973 0.891 0.627
#> 6 6 0.971 0.950 0.975 0.0377 0.889 0.537
suggest_best_k()
suggests the best \(k\) based on these statistics. The rules are as follows:
suggest_best_k(res)
#> [1] 6
#> attr(,"optional")
#> [1] 2 3
There is also optional best \(k\) = 2 3 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
#> SRR1313664 1 0.000 0.996 1.000 0.000
#> SRR1375371 2 0.000 0.999 0.000 1.000
#> SRR1416819 1 0.000 0.996 1.000 0.000
#> SRR1351907 2 0.000 0.999 0.000 1.000
#> SRR1330371 2 0.000 0.999 0.000 1.000
#> SRR1340782 1 0.000 0.996 1.000 0.000
#> SRR1094531 2 0.000 0.999 0.000 1.000
#> SRR1436262 1 0.000 0.996 1.000 0.000
#> SRR1093314 1 0.000 0.996 1.000 0.000
#> SRR1435460 1 0.844 0.626 0.728 0.272
#> SRR1485587 1 0.000 0.996 1.000 0.000
#> SRR1470834 1 0.000 0.996 1.000 0.000
#> SRR1442966 2 0.000 0.999 0.000 1.000
#> SRR1410979 2 0.000 0.999 0.000 1.000
#> SRR1326449 2 0.000 0.999 0.000 1.000
#> SRR1367520 1 0.000 0.996 1.000 0.000
#> SRR1360321 1 0.000 0.996 1.000 0.000
#> SRR1445170 1 0.000 0.996 1.000 0.000
#> SRR1440663 1 0.000 0.996 1.000 0.000
#> SRR1489839 1 0.000 0.996 1.000 0.000
#> SRR1409772 1 0.000 0.996 1.000 0.000
#> SRR1092591 1 0.000 0.996 1.000 0.000
#> SRR1338402 1 0.000 0.996 1.000 0.000
#> SRR1337930 1 0.000 0.996 1.000 0.000
#> SRR1337749 1 0.000 0.996 1.000 0.000
#> SRR1401341 1 0.000 0.996 1.000 0.000
#> SRR1396901 1 0.000 0.996 1.000 0.000
#> SRR1354400 1 0.000 0.996 1.000 0.000
#> SRR1416538 1 0.000 0.996 1.000 0.000
#> SRR1340762 1 0.000 0.996 1.000 0.000
#> SRR1460095 2 0.000 0.999 0.000 1.000
#> SRR1071181 1 0.000 0.996 1.000 0.000
#> SRR1380436 2 0.000 0.999 0.000 1.000
#> SRR1079973 2 0.000 0.999 0.000 1.000
#> SRR1473611 1 0.000 0.996 1.000 0.000
#> SRR1074934 1 0.000 0.996 1.000 0.000
#> SRR1311731 2 0.000 0.999 0.000 1.000
#> SRR1452957 2 0.000 0.999 0.000 1.000
#> SRR1429144 1 0.000 0.996 1.000 0.000
#> SRR1448203 1 0.000 0.996 1.000 0.000
#> SRR1366102 1 0.000 0.996 1.000 0.000
#> SRR1434845 1 0.000 0.996 1.000 0.000
#> SRR1472171 1 0.000 0.996 1.000 0.000
#> SRR1441075 2 0.000 0.999 0.000 1.000
#> SRR1321483 1 0.000 0.996 1.000 0.000
#> SRR1418105 1 0.000 0.996 1.000 0.000
#> SRR1090022 2 0.000 0.999 0.000 1.000
#> SRR1077728 1 0.000 0.996 1.000 0.000
#> SRR1365767 2 0.000 0.999 0.000 1.000
#> SRR1489670 2 0.000 0.999 0.000 1.000
#> SRR1343136 1 0.000 0.996 1.000 0.000
#> SRR1359587 1 0.000 0.996 1.000 0.000
#> SRR1465782 1 0.000 0.996 1.000 0.000
#> SRR1434460 1 0.000 0.996 1.000 0.000
#> SRR1415751 1 0.000 0.996 1.000 0.000
#> SRR1359027 1 0.000 0.996 1.000 0.000
#> SRR1408303 1 0.000 0.996 1.000 0.000
#> SRR1456469 2 0.000 0.999 0.000 1.000
#> SRR1436717 2 0.000 0.999 0.000 1.000
#> SRR1480287 1 0.000 0.996 1.000 0.000
#> SRR1326845 2 0.000 0.999 0.000 1.000
#> SRR1070133 2 0.000 0.999 0.000 1.000
#> SRR1387745 2 0.000 0.999 0.000 1.000
#> SRR1436904 1 0.000 0.996 1.000 0.000
#> SRR1076465 2 0.000 0.999 0.000 1.000
#> SRR1433215 1 0.000 0.996 1.000 0.000
#> SRR1076046 1 0.000 0.996 1.000 0.000
#> SRR1406643 2 0.000 0.999 0.000 1.000
#> SRR1499460 2 0.000 0.999 0.000 1.000
#> SRR1475147 2 0.000 0.999 0.000 1.000
#> SRR1319301 1 0.000 0.996 1.000 0.000
#> SRR1486117 1 0.000 0.996 1.000 0.000
#> SRR1087680 2 0.000 0.999 0.000 1.000
#> SRR1361391 2 0.000 0.999 0.000 1.000
#> SRR1365655 1 0.000 0.996 1.000 0.000
#> SRR1090457 1 0.000 0.996 1.000 0.000
#> SRR1084154 2 0.000 0.999 0.000 1.000
#> SRR1380358 1 0.000 0.996 1.000 0.000
#> SRR1398430 2 0.224 0.963 0.036 0.964
#> SRR1444242 1 0.000 0.996 1.000 0.000
#> SRR1440832 2 0.000 0.999 0.000 1.000
#> SRR1358803 1 0.000 0.996 1.000 0.000
#> SRR1344079 1 0.000 0.996 1.000 0.000
#> SRR1072602 1 0.000 0.996 1.000 0.000
#> SRR1421399 2 0.000 0.999 0.000 1.000
#> SRR1339086 1 0.000 0.996 1.000 0.000
#> SRR1099881 1 0.000 0.996 1.000 0.000
#> SRR1384312 1 0.000 0.996 1.000 0.000
#> SRR1329508 1 0.000 0.996 1.000 0.000
#> SRR1440200 2 0.000 0.999 0.000 1.000
#> SRR1397558 2 0.000 0.999 0.000 1.000
#> SRR1344364 2 0.000 0.999 0.000 1.000
#> SRR1387787 1 0.000 0.996 1.000 0.000
#> SRR1378199 1 0.000 0.996 1.000 0.000
#> SRR1413119 2 0.000 0.999 0.000 1.000
#> SRR1310497 1 0.000 0.996 1.000 0.000
#> SRR1356327 1 0.000 0.996 1.000 0.000
#> SRR1319059 1 0.000 0.996 1.000 0.000
#> SRR1085378 1 0.000 0.996 1.000 0.000
#> SRR1379036 1 0.000 0.996 1.000 0.000
#> SRR1417656 1 0.000 0.996 1.000 0.000
#> SRR1454225 1 0.000 0.996 1.000 0.000
#> SRR1455346 1 0.000 0.996 1.000 0.000
#> SRR1366412 2 0.000 0.999 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1375371 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1416819 3 0.4178 0.801 0.172 0.000 0.828
#> SRR1351907 2 0.4452 0.765 0.000 0.808 0.192
#> SRR1330371 3 0.1964 0.923 0.000 0.056 0.944
#> SRR1340782 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1094531 3 0.1860 0.926 0.000 0.052 0.948
#> SRR1436262 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1093314 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1435460 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1485587 1 0.1964 0.947 0.944 0.000 0.056
#> SRR1470834 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1442966 3 0.1964 0.923 0.000 0.056 0.944
#> SRR1410979 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1326449 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1367520 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1360321 3 0.4291 0.793 0.180 0.000 0.820
#> SRR1445170 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1440663 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1489839 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1409772 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1092591 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1338402 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1337930 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1401341 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1396901 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1354400 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1416538 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1340762 1 0.1964 0.947 0.944 0.000 0.056
#> SRR1460095 3 0.1964 0.923 0.000 0.056 0.944
#> SRR1071181 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1380436 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1473611 1 0.1964 0.947 0.944 0.000 0.056
#> SRR1074934 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1311731 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1434845 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1472171 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1321483 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1418105 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1090022 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1077728 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1365767 3 0.2066 0.921 0.000 0.060 0.940
#> SRR1489670 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1343136 3 0.1289 0.932 0.032 0.000 0.968
#> SRR1359587 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1465782 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1434460 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1415751 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1359027 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1408303 3 0.4291 0.793 0.180 0.000 0.820
#> SRR1456469 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1436717 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1436904 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1076465 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1433215 1 0.1964 0.947 0.944 0.000 0.056
#> SRR1076046 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1406643 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1499460 3 0.1964 0.923 0.000 0.056 0.944
#> SRR1475147 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1319301 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1486117 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1087680 3 0.1964 0.923 0.000 0.056 0.944
#> SRR1361391 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1365655 1 0.1964 0.947 0.944 0.000 0.056
#> SRR1090457 3 0.0424 0.949 0.008 0.000 0.992
#> SRR1084154 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1380358 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1398430 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1444242 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1440832 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1358803 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1344079 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1072602 1 0.2165 0.939 0.936 0.000 0.064
#> SRR1421399 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1339086 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1384312 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1329508 3 0.4291 0.793 0.180 0.000 0.820
#> SRR1440200 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.991 0.000 1.000 0.000
#> SRR1344364 3 0.2261 0.914 0.000 0.068 0.932
#> SRR1387787 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1378199 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1413119 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1310497 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1356327 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1319059 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1085378 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1379036 3 0.4291 0.793 0.180 0.000 0.820
#> SRR1417656 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.992 1.000 0.000 0.000
#> SRR1455346 3 0.0000 0.953 0.000 0.000 1.000
#> SRR1366412 2 0.0000 0.991 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1416819 3 0.0000 0.7011 0.000 0.000 1.000 0.000
#> SRR1351907 4 0.3688 0.6919 0.000 0.208 0.000 0.792
#> SRR1330371 4 0.0000 0.8781 0.000 0.000 0.000 1.000
#> SRR1340782 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1094531 4 0.0000 0.8781 0.000 0.000 0.000 1.000
#> SRR1436262 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1093314 4 0.3172 0.7825 0.000 0.000 0.160 0.840
#> SRR1435460 4 0.0000 0.8781 0.000 0.000 0.000 1.000
#> SRR1485587 1 0.4761 0.5577 0.628 0.000 0.372 0.000
#> SRR1470834 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1442966 4 0.0000 0.8781 0.000 0.000 0.000 1.000
#> SRR1410979 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.0336 0.9293 0.992 0.000 0.008 0.000
#> SRR1360321 3 0.3172 0.8159 0.000 0.000 0.840 0.160
#> SRR1445170 4 0.3172 0.7825 0.000 0.000 0.160 0.840
#> SRR1440663 3 0.3172 0.8159 0.000 0.000 0.840 0.160
#> SRR1489839 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1409772 1 0.3172 0.8522 0.840 0.000 0.160 0.000
#> SRR1092591 1 0.3172 0.8522 0.840 0.000 0.160 0.000
#> SRR1338402 3 0.4776 0.5592 0.000 0.000 0.624 0.376
#> SRR1337930 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.3172 0.8159 0.000 0.000 0.840 0.160
#> SRR1416538 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1340762 3 0.3528 0.5189 0.192 0.000 0.808 0.000
#> SRR1460095 4 0.0000 0.8781 0.000 0.000 0.000 1.000
#> SRR1071181 3 0.3172 0.8159 0.000 0.000 0.840 0.160
#> SRR1380436 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1473611 1 0.4643 0.6109 0.656 0.000 0.344 0.000
#> SRR1074934 4 0.4985 -0.2693 0.000 0.000 0.468 0.532
#> SRR1311731 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1472171 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.3172 0.8159 0.000 0.000 0.840 0.160
#> SRR1418105 3 0.3172 0.8159 0.000 0.000 0.840 0.160
#> SRR1090022 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1077728 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1365767 4 0.0000 0.8781 0.000 0.000 0.000 1.000
#> SRR1489670 2 0.2345 0.8877 0.000 0.900 0.000 0.100
#> SRR1343136 3 0.3172 0.8159 0.000 0.000 0.840 0.160
#> SRR1359587 3 0.3172 0.8159 0.000 0.000 0.840 0.160
#> SRR1465782 1 0.3172 0.8522 0.840 0.000 0.160 0.000
#> SRR1434460 1 0.3172 0.8522 0.840 0.000 0.160 0.000
#> SRR1415751 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.3172 0.8159 0.000 0.000 0.840 0.160
#> SRR1456469 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.3172 0.8159 0.000 0.000 0.840 0.160
#> SRR1076465 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1433215 3 0.4998 -0.2539 0.488 0.000 0.512 0.000
#> SRR1076046 1 0.3172 0.8522 0.840 0.000 0.160 0.000
#> SRR1406643 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1499460 4 0.0000 0.8781 0.000 0.000 0.000 1.000
#> SRR1475147 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1319301 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1087680 4 0.0000 0.8781 0.000 0.000 0.000 1.000
#> SRR1361391 4 0.0000 0.8781 0.000 0.000 0.000 1.000
#> SRR1365655 3 0.0000 0.7011 0.000 0.000 1.000 0.000
#> SRR1090457 3 0.3172 0.8159 0.000 0.000 0.840 0.160
#> SRR1084154 4 0.3172 0.7825 0.000 0.000 0.160 0.840
#> SRR1380358 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1398430 4 0.3172 0.7825 0.000 0.000 0.160 0.840
#> SRR1444242 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1440832 2 0.2469 0.8773 0.000 0.892 0.000 0.108
#> SRR1358803 3 0.4790 0.1659 0.000 0.000 0.620 0.380
#> SRR1344079 3 0.4790 0.1659 0.000 0.000 0.620 0.380
#> SRR1072602 1 0.4955 0.3965 0.556 0.000 0.444 0.000
#> SRR1421399 4 0.2345 0.8244 0.000 0.000 0.100 0.900
#> SRR1339086 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1099881 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.3172 0.8159 0.000 0.000 0.840 0.160
#> SRR1329508 3 0.3172 0.8159 0.000 0.000 0.840 0.160
#> SRR1440200 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9897 0.000 1.000 0.000 0.000
#> SRR1344364 4 0.0000 0.8781 0.000 0.000 0.000 1.000
#> SRR1387787 1 0.3172 0.8522 0.840 0.000 0.160 0.000
#> SRR1378199 1 0.2814 0.8680 0.868 0.000 0.132 0.000
#> SRR1413119 4 0.0000 0.8781 0.000 0.000 0.000 1.000
#> SRR1310497 1 0.3172 0.8522 0.840 0.000 0.160 0.000
#> SRR1356327 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1319059 1 0.3123 0.8546 0.844 0.000 0.156 0.000
#> SRR1085378 1 0.3172 0.8522 0.840 0.000 0.160 0.000
#> SRR1379036 3 0.3172 0.8159 0.000 0.000 0.840 0.160
#> SRR1417656 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9326 1.000 0.000 0.000 0.000
#> SRR1455346 3 0.4898 0.0523 0.000 0.000 0.584 0.416
#> SRR1366412 2 0.0000 0.9897 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.4074 0.6385 0.636 0.000 0.000 0.000 0.364
#> SRR1375371 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1416819 5 0.4015 0.4755 0.000 0.000 0.348 0.000 0.652
#> SRR1351907 4 0.0609 0.9147 0.000 0.020 0.000 0.980 0.000
#> SRR1330371 4 0.0000 0.9338 0.000 0.000 0.000 1.000 0.000
#> SRR1340782 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1094531 4 0.0000 0.9338 0.000 0.000 0.000 1.000 0.000
#> SRR1436262 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.4150 0.3653 0.000 0.000 0.000 0.612 0.388
#> SRR1435460 4 0.0000 0.9338 0.000 0.000 0.000 1.000 0.000
#> SRR1485587 5 0.0000 0.8283 0.000 0.000 0.000 0.000 1.000
#> SRR1470834 1 0.4074 0.6385 0.636 0.000 0.000 0.000 0.364
#> SRR1442966 4 0.0000 0.9338 0.000 0.000 0.000 1.000 0.000
#> SRR1410979 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 5 0.3424 0.4567 0.240 0.000 0.000 0.000 0.760
#> SRR1360321 3 0.0000 0.9380 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 4 0.3895 0.5236 0.000 0.000 0.000 0.680 0.320
#> SRR1440663 3 0.0000 0.9380 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 1 0.4015 0.6587 0.652 0.000 0.000 0.000 0.348
#> SRR1409772 5 0.0000 0.8283 0.000 0.000 0.000 0.000 1.000
#> SRR1092591 5 0.0000 0.8283 0.000 0.000 0.000 0.000 1.000
#> SRR1338402 3 0.1410 0.8792 0.000 0.000 0.940 0.060 0.000
#> SRR1337930 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.4015 0.6587 0.652 0.000 0.000 0.000 0.348
#> SRR1396901 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.9380 0.000 0.000 1.000 0.000 0.000
#> SRR1416538 1 0.4015 0.6587 0.652 0.000 0.000 0.000 0.348
#> SRR1340762 3 0.3143 0.6883 0.000 0.000 0.796 0.000 0.204
#> SRR1460095 4 0.0000 0.9338 0.000 0.000 0.000 1.000 0.000
#> SRR1071181 3 0.0000 0.9380 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 5 0.0000 0.8283 0.000 0.000 0.000 0.000 1.000
#> SRR1074934 5 0.5510 0.5897 0.000 0.000 0.184 0.164 0.652
#> SRR1311731 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1434845 1 0.4074 0.6385 0.636 0.000 0.000 0.000 0.364
#> SRR1472171 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.9380 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0000 0.9380 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1077728 1 0.4015 0.6587 0.652 0.000 0.000 0.000 0.348
#> SRR1365767 4 0.0000 0.9338 0.000 0.000 0.000 1.000 0.000
#> SRR1489670 2 0.3480 0.6756 0.000 0.752 0.000 0.248 0.000
#> SRR1343136 3 0.0162 0.9357 0.000 0.000 0.996 0.000 0.004
#> SRR1359587 3 0.0000 0.9380 0.000 0.000 1.000 0.000 0.000
#> SRR1465782 5 0.0510 0.8155 0.016 0.000 0.000 0.000 0.984
#> SRR1434460 5 0.0000 0.8283 0.000 0.000 0.000 0.000 1.000
#> SRR1415751 1 0.4015 0.6587 0.652 0.000 0.000 0.000 0.348
#> SRR1359027 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.9380 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.9380 0.000 0.000 1.000 0.000 0.000
#> SRR1076465 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 5 0.2813 0.7239 0.000 0.000 0.168 0.000 0.832
#> SRR1076046 5 0.3143 0.5428 0.204 0.000 0.000 0.000 0.796
#> SRR1406643 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 4 0.0000 0.9338 0.000 0.000 0.000 1.000 0.000
#> SRR1475147 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1087680 4 0.0000 0.9338 0.000 0.000 0.000 1.000 0.000
#> SRR1361391 4 0.0000 0.9338 0.000 0.000 0.000 1.000 0.000
#> SRR1365655 3 0.0880 0.9138 0.000 0.000 0.968 0.000 0.032
#> SRR1090457 3 0.0000 0.9380 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 4 0.0000 0.9338 0.000 0.000 0.000 1.000 0.000
#> SRR1380358 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1398430 4 0.3109 0.7209 0.000 0.000 0.000 0.800 0.200
#> SRR1444242 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1440832 2 0.4287 0.2035 0.000 0.540 0.000 0.460 0.000
#> SRR1358803 5 0.5510 0.5897 0.000 0.000 0.184 0.164 0.652
#> SRR1344079 5 0.5510 0.5897 0.000 0.000 0.184 0.164 0.652
#> SRR1072602 5 0.0162 0.8276 0.000 0.000 0.004 0.000 0.996
#> SRR1421399 4 0.0000 0.9338 0.000 0.000 0.000 1.000 0.000
#> SRR1339086 1 0.4015 0.6587 0.652 0.000 0.000 0.000 0.348
#> SRR1099881 1 0.4015 0.6587 0.652 0.000 0.000 0.000 0.348
#> SRR1384312 3 0.0000 0.9380 0.000 0.000 1.000 0.000 0.000
#> SRR1329508 3 0.0510 0.9271 0.000 0.000 0.984 0.000 0.016
#> SRR1440200 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9661 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 4 0.0000 0.9338 0.000 0.000 0.000 1.000 0.000
#> SRR1387787 5 0.0000 0.8283 0.000 0.000 0.000 0.000 1.000
#> SRR1378199 1 0.4307 0.3569 0.500 0.000 0.000 0.000 0.500
#> SRR1413119 4 0.0000 0.9338 0.000 0.000 0.000 1.000 0.000
#> SRR1310497 5 0.0000 0.8283 0.000 0.000 0.000 0.000 1.000
#> SRR1356327 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1319059 3 0.6621 0.0131 0.224 0.000 0.428 0.000 0.348
#> SRR1085378 5 0.0000 0.8283 0.000 0.000 0.000 0.000 1.000
#> SRR1379036 3 0.0000 0.9380 0.000 0.000 1.000 0.000 0.000
#> SRR1417656 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.8349 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 5 0.5514 0.5846 0.000 0.000 0.176 0.172 0.652
#> SRR1366412 2 0.0000 0.9661 0.000 1.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
#> SRR1313664 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1375371 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1416819 4 0.1957 0.820 0 0.000 0.112 0.888 0.000 0.000
#> SRR1351907 5 0.1957 0.885 0 0.000 0.000 0.112 0.888 0.000
#> SRR1330371 5 0.1957 0.885 0 0.000 0.000 0.112 0.888 0.000
#> SRR1340782 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.0000 0.872 0 0.000 0.000 0.000 1.000 0.000
#> SRR1436262 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1093314 4 0.0000 0.924 0 0.000 0.000 1.000 0.000 0.000
#> SRR1435460 4 0.2631 0.726 0 0.000 0.000 0.820 0.180 0.000
#> SRR1485587 6 0.0363 0.979 0 0.000 0.000 0.012 0.000 0.988
#> SRR1470834 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1442966 5 0.1957 0.885 0 0.000 0.000 0.112 0.888 0.000
#> SRR1410979 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1367520 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1360321 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 4 0.0000 0.924 0 0.000 0.000 1.000 0.000 0.000
#> SRR1440663 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1409772 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1092591 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1338402 3 0.1957 0.843 0 0.000 0.888 0.112 0.000 0.000
#> SRR1337930 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1401341 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1396901 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1416538 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1340762 3 0.3151 0.637 0 0.000 0.748 0.000 0.000 0.252
#> SRR1460095 5 0.1957 0.885 0 0.000 0.000 0.112 0.888 0.000
#> SRR1071181 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1473611 6 0.2762 0.746 0 0.000 0.000 0.196 0.000 0.804
#> SRR1074934 4 0.0260 0.919 0 0.000 0.008 0.992 0.000 0.000
#> SRR1311731 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1434845 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1472171 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1418105 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1090022 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1077728 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1365767 5 0.0000 0.872 0 0.000 0.000 0.000 1.000 0.000
#> SRR1489670 5 0.3428 0.601 0 0.304 0.000 0.000 0.696 0.000
#> SRR1343136 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1359587 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1465782 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1434460 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1415751 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1359027 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1456469 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1076465 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1433215 4 0.4456 0.585 0 0.000 0.064 0.668 0.000 0.268
#> SRR1076046 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1406643 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1499460 5 0.0000 0.872 0 0.000 0.000 0.000 1.000 0.000
#> SRR1475147 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1087680 5 0.0000 0.872 0 0.000 0.000 0.000 1.000 0.000
#> SRR1361391 5 0.0713 0.878 0 0.000 0.000 0.028 0.972 0.000
#> SRR1365655 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1090457 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.0000 0.924 0 0.000 0.000 1.000 0.000 0.000
#> SRR1380358 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1398430 4 0.0000 0.924 0 0.000 0.000 1.000 0.000 0.000
#> SRR1444242 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.3499 0.518 0 0.320 0.000 0.000 0.680 0.000
#> SRR1358803 4 0.0000 0.924 0 0.000 0.000 1.000 0.000 0.000
#> SRR1344079 4 0.0000 0.924 0 0.000 0.000 1.000 0.000 0.000
#> SRR1072602 6 0.0146 0.986 0 0.000 0.004 0.000 0.000 0.996
#> SRR1421399 5 0.1957 0.885 0 0.000 0.000 0.112 0.888 0.000
#> SRR1339086 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1099881 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1384312 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1329508 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1440200 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 1.000 0 1.000 0.000 0.000 0.000 0.000
#> SRR1344364 5 0.1910 0.885 0 0.000 0.000 0.108 0.892 0.000
#> SRR1387787 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1378199 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1413119 5 0.1957 0.885 0 0.000 0.000 0.112 0.888 0.000
#> SRR1310497 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1356327 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1319059 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1085378 6 0.0000 0.990 0 0.000 0.000 0.000 0.000 1.000
#> SRR1379036 3 0.0000 0.972 0 0.000 1.000 0.000 0.000 0.000
#> SRR1417656 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 1.000 1 0.000 0.000 0.000 0.000 0.000
#> SRR1455346 4 0.0000 0.924 0 0.000 0.000 1.000 0.000 0.000
#> SRR1366412 2 0.0000 1.000 0 1.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["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 17697 rows and 104 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 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.541 0.846 0.908 0.4769 0.510 0.510
#> 3 3 0.526 0.712 0.855 0.2962 0.742 0.540
#> 4 4 0.709 0.727 0.763 0.1540 0.848 0.621
#> 5 5 0.842 0.911 0.912 0.1119 0.820 0.466
#> 6 6 0.914 0.899 0.913 0.0365 0.966 0.834
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
#> SRR1313664 1 0.0000 0.962 1.000 0.000
#> SRR1375371 2 0.0000 0.847 0.000 1.000
#> SRR1416819 2 0.9977 0.411 0.472 0.528
#> SRR1351907 2 0.1633 0.850 0.024 0.976
#> SRR1330371 2 0.6973 0.817 0.188 0.812
#> SRR1340782 1 0.0000 0.962 1.000 0.000
#> SRR1094531 2 0.7815 0.801 0.232 0.768
#> SRR1436262 1 0.0000 0.962 1.000 0.000
#> SRR1093314 2 0.1843 0.850 0.028 0.972
#> SRR1435460 2 0.7815 0.801 0.232 0.768
#> SRR1485587 1 0.6247 0.776 0.844 0.156
#> SRR1470834 1 0.0000 0.962 1.000 0.000
#> SRR1442966 2 0.6973 0.817 0.188 0.812
#> SRR1410979 2 0.0000 0.847 0.000 1.000
#> SRR1326449 2 0.0000 0.847 0.000 1.000
#> SRR1367520 1 0.0000 0.962 1.000 0.000
#> SRR1360321 2 0.9248 0.693 0.340 0.660
#> SRR1445170 2 0.1843 0.850 0.028 0.972
#> SRR1440663 2 0.9248 0.693 0.340 0.660
#> SRR1489839 1 0.0000 0.962 1.000 0.000
#> SRR1409772 1 0.0000 0.962 1.000 0.000
#> SRR1092591 1 0.0000 0.962 1.000 0.000
#> SRR1338402 2 0.7815 0.801 0.232 0.768
#> SRR1337930 1 0.0000 0.962 1.000 0.000
#> SRR1337749 1 0.0000 0.962 1.000 0.000
#> SRR1401341 1 0.0000 0.962 1.000 0.000
#> SRR1396901 1 0.0000 0.962 1.000 0.000
#> SRR1354400 2 0.7815 0.801 0.232 0.768
#> SRR1416538 1 0.0000 0.962 1.000 0.000
#> SRR1340762 2 0.9248 0.693 0.340 0.660
#> SRR1460095 2 0.1633 0.850 0.024 0.976
#> SRR1071181 2 0.8016 0.792 0.244 0.756
#> SRR1380436 2 0.0000 0.847 0.000 1.000
#> SRR1079973 2 0.0000 0.847 0.000 1.000
#> SRR1473611 1 0.7139 0.720 0.804 0.196
#> SRR1074934 2 0.7815 0.801 0.232 0.768
#> SRR1311731 2 0.0000 0.847 0.000 1.000
#> SRR1452957 2 0.0000 0.847 0.000 1.000
#> SRR1429144 1 0.0000 0.962 1.000 0.000
#> SRR1448203 1 0.0000 0.962 1.000 0.000
#> SRR1366102 1 0.0000 0.962 1.000 0.000
#> SRR1434845 1 0.0000 0.962 1.000 0.000
#> SRR1472171 1 0.0000 0.962 1.000 0.000
#> SRR1441075 2 0.0000 0.847 0.000 1.000
#> SRR1321483 2 0.9248 0.693 0.340 0.660
#> SRR1418105 2 0.9248 0.693 0.340 0.660
#> SRR1090022 2 0.0000 0.847 0.000 1.000
#> SRR1077728 1 0.0000 0.962 1.000 0.000
#> SRR1365767 2 0.7815 0.801 0.232 0.768
#> SRR1489670 2 0.0000 0.847 0.000 1.000
#> SRR1343136 2 0.9248 0.693 0.340 0.660
#> SRR1359587 2 0.7815 0.801 0.232 0.768
#> SRR1465782 1 0.0000 0.962 1.000 0.000
#> SRR1434460 1 0.0672 0.955 0.992 0.008
#> SRR1415751 1 0.0000 0.962 1.000 0.000
#> SRR1359027 1 0.0000 0.962 1.000 0.000
#> SRR1408303 2 0.9248 0.693 0.340 0.660
#> SRR1456469 2 0.0000 0.847 0.000 1.000
#> SRR1436717 2 0.0000 0.847 0.000 1.000
#> SRR1480287 1 0.0000 0.962 1.000 0.000
#> SRR1326845 2 0.0000 0.847 0.000 1.000
#> SRR1070133 2 0.0000 0.847 0.000 1.000
#> SRR1387745 2 0.0000 0.847 0.000 1.000
#> SRR1436904 2 0.8016 0.792 0.244 0.756
#> SRR1076465 2 0.0000 0.847 0.000 1.000
#> SRR1433215 1 0.3114 0.899 0.944 0.056
#> SRR1076046 1 0.3733 0.884 0.928 0.072
#> SRR1406643 2 0.0000 0.847 0.000 1.000
#> SRR1499460 2 0.7815 0.801 0.232 0.768
#> SRR1475147 2 0.0000 0.847 0.000 1.000
#> SRR1319301 1 0.0000 0.962 1.000 0.000
#> SRR1486117 1 0.0000 0.962 1.000 0.000
#> SRR1087680 2 0.7815 0.801 0.232 0.768
#> SRR1361391 2 0.7815 0.801 0.232 0.768
#> SRR1365655 1 0.9635 0.108 0.612 0.388
#> SRR1090457 2 0.9248 0.693 0.340 0.660
#> SRR1084154 2 0.1633 0.850 0.024 0.976
#> SRR1380358 1 0.0000 0.962 1.000 0.000
#> SRR1398430 2 0.1633 0.850 0.024 0.976
#> SRR1444242 1 0.0000 0.962 1.000 0.000
#> SRR1440832 2 0.6973 0.817 0.188 0.812
#> SRR1358803 2 0.1633 0.850 0.024 0.976
#> SRR1344079 2 0.1843 0.850 0.028 0.972
#> SRR1072602 2 0.8081 0.790 0.248 0.752
#> SRR1421399 2 0.1633 0.850 0.024 0.976
#> SRR1339086 1 0.0000 0.962 1.000 0.000
#> SRR1099881 1 0.0000 0.962 1.000 0.000
#> SRR1384312 2 0.9248 0.693 0.340 0.660
#> SRR1329508 2 0.9248 0.693 0.340 0.660
#> SRR1440200 2 0.0000 0.847 0.000 1.000
#> SRR1397558 2 0.0000 0.847 0.000 1.000
#> SRR1344364 2 0.0000 0.847 0.000 1.000
#> SRR1387787 1 0.0000 0.962 1.000 0.000
#> SRR1378199 1 0.0000 0.962 1.000 0.000
#> SRR1413119 2 0.7815 0.801 0.232 0.768
#> SRR1310497 1 0.0000 0.962 1.000 0.000
#> SRR1356327 1 0.0000 0.962 1.000 0.000
#> SRR1319059 1 0.9491 0.186 0.632 0.368
#> SRR1085378 1 0.0000 0.962 1.000 0.000
#> SRR1379036 2 0.9248 0.693 0.340 0.660
#> SRR1417656 1 0.0000 0.962 1.000 0.000
#> SRR1454225 1 0.0000 0.962 1.000 0.000
#> SRR1455346 2 0.1633 0.850 0.024 0.976
#> SRR1366412 2 0.0000 0.847 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.5216 0.6406 0.740 0.000 0.260
#> SRR1375371 2 0.1643 0.9363 0.000 0.956 0.044
#> SRR1416819 3 0.4504 0.7011 0.196 0.000 0.804
#> SRR1351907 3 0.5580 0.6100 0.008 0.256 0.736
#> SRR1330371 3 0.1643 0.7600 0.000 0.044 0.956
#> SRR1340782 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1094531 3 0.1643 0.7600 0.000 0.044 0.956
#> SRR1436262 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1093314 3 0.5202 0.6565 0.008 0.220 0.772
#> SRR1435460 3 0.1643 0.7600 0.000 0.044 0.956
#> SRR1485587 1 0.6225 0.3709 0.568 0.000 0.432
#> SRR1470834 1 0.6302 0.1339 0.520 0.000 0.480
#> SRR1442966 3 0.1643 0.7600 0.000 0.044 0.956
#> SRR1410979 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1326449 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1367520 1 0.6062 0.4983 0.616 0.000 0.384
#> SRR1360321 3 0.3941 0.7413 0.156 0.000 0.844
#> SRR1445170 3 0.5202 0.6565 0.008 0.220 0.772
#> SRR1440663 3 0.3941 0.7413 0.156 0.000 0.844
#> SRR1489839 3 0.6299 -0.1159 0.476 0.000 0.524
#> SRR1409772 1 0.6062 0.4983 0.616 0.000 0.384
#> SRR1092591 1 0.6062 0.4983 0.616 0.000 0.384
#> SRR1338402 3 0.4146 0.7662 0.080 0.044 0.876
#> SRR1337930 1 0.6045 0.5048 0.620 0.000 0.380
#> SRR1337749 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1401341 1 0.1643 0.7715 0.956 0.000 0.044
#> SRR1396901 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1354400 3 0.4786 0.7629 0.112 0.044 0.844
#> SRR1416538 3 0.6299 -0.1159 0.476 0.000 0.524
#> SRR1340762 3 0.3941 0.7413 0.156 0.000 0.844
#> SRR1460095 3 0.5216 0.6052 0.000 0.260 0.740
#> SRR1071181 3 0.5514 0.7505 0.156 0.044 0.800
#> SRR1380436 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1473611 1 0.6824 0.4116 0.576 0.016 0.408
#> SRR1074934 3 0.1905 0.7632 0.016 0.028 0.956
#> SRR1311731 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1434845 3 0.6215 0.0888 0.428 0.000 0.572
#> SRR1472171 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1321483 3 0.3941 0.7413 0.156 0.000 0.844
#> SRR1418105 3 0.3941 0.7413 0.156 0.000 0.844
#> SRR1090022 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1077728 1 0.0237 0.7804 0.996 0.000 0.004
#> SRR1365767 3 0.1643 0.7600 0.000 0.044 0.956
#> SRR1489670 2 0.4346 0.7774 0.000 0.816 0.184
#> SRR1343136 3 0.3941 0.7413 0.156 0.000 0.844
#> SRR1359587 3 0.4558 0.7647 0.100 0.044 0.856
#> SRR1465782 1 0.6095 0.4820 0.608 0.000 0.392
#> SRR1434460 1 0.6045 0.5048 0.620 0.000 0.380
#> SRR1415751 1 0.5216 0.6406 0.740 0.000 0.260
#> SRR1359027 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1408303 3 0.3941 0.7413 0.156 0.000 0.844
#> SRR1456469 2 0.1643 0.9363 0.000 0.956 0.044
#> SRR1436717 2 0.1643 0.9363 0.000 0.956 0.044
#> SRR1480287 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1436904 3 0.4172 0.7425 0.156 0.004 0.840
#> SRR1076465 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1433215 3 0.5678 0.4957 0.316 0.000 0.684
#> SRR1076046 1 0.6045 0.5048 0.620 0.000 0.380
#> SRR1406643 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1499460 3 0.1964 0.7586 0.000 0.056 0.944
#> SRR1475147 2 0.1031 0.9488 0.000 0.976 0.024
#> SRR1319301 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1486117 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1087680 3 0.1964 0.7586 0.000 0.056 0.944
#> SRR1361391 3 0.1643 0.7600 0.000 0.044 0.956
#> SRR1365655 3 0.3941 0.7413 0.156 0.000 0.844
#> SRR1090457 3 0.3941 0.7413 0.156 0.000 0.844
#> SRR1084154 3 0.5580 0.6100 0.008 0.256 0.736
#> SRR1380358 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1398430 3 0.5254 0.6020 0.000 0.264 0.736
#> SRR1444242 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1440832 3 0.1964 0.7586 0.000 0.056 0.944
#> SRR1358803 3 0.5247 0.6524 0.008 0.224 0.768
#> SRR1344079 3 0.5202 0.6574 0.008 0.220 0.772
#> SRR1072602 3 0.5992 0.6448 0.268 0.016 0.716
#> SRR1421399 3 0.5502 0.6190 0.008 0.248 0.744
#> SRR1339086 1 0.1643 0.7715 0.956 0.000 0.044
#> SRR1099881 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1384312 3 0.3941 0.7413 0.156 0.000 0.844
#> SRR1329508 3 0.3941 0.7413 0.156 0.000 0.844
#> SRR1440200 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.9610 0.000 1.000 0.000
#> SRR1344364 2 0.4974 0.6840 0.000 0.764 0.236
#> SRR1387787 1 0.6062 0.4983 0.616 0.000 0.384
#> SRR1378199 1 0.5948 0.5298 0.640 0.000 0.360
#> SRR1413119 3 0.1643 0.7600 0.000 0.044 0.956
#> SRR1310497 3 0.6062 0.2596 0.384 0.000 0.616
#> SRR1356327 1 0.1411 0.7738 0.964 0.000 0.036
#> SRR1319059 3 0.4002 0.7372 0.160 0.000 0.840
#> SRR1085378 1 0.6062 0.4983 0.616 0.000 0.384
#> SRR1379036 3 0.3941 0.7413 0.156 0.000 0.844
#> SRR1417656 1 0.0000 0.7810 1.000 0.000 0.000
#> SRR1454225 1 0.1529 0.7727 0.960 0.000 0.040
#> SRR1455346 3 0.5541 0.6164 0.008 0.252 0.740
#> SRR1366412 2 0.3752 0.8312 0.000 0.856 0.144
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.4830 0.762 0.608 0.000 0.000 0.392
#> SRR1375371 2 0.1182 0.922 0.000 0.968 0.016 0.016
#> SRR1416819 4 0.7034 0.501 0.120 0.000 0.412 0.468
#> SRR1351907 4 0.5673 0.921 0.000 0.032 0.372 0.596
#> SRR1330371 3 0.1792 0.681 0.000 0.000 0.932 0.068
#> SRR1340782 1 0.0000 0.772 1.000 0.000 0.000 0.000
#> SRR1094531 3 0.1557 0.691 0.000 0.000 0.944 0.056
#> SRR1436262 1 0.0188 0.772 0.996 0.000 0.000 0.004
#> SRR1093314 4 0.5204 0.918 0.000 0.012 0.376 0.612
#> SRR1435460 3 0.1792 0.681 0.000 0.000 0.932 0.068
#> SRR1485587 1 0.5827 0.729 0.536 0.004 0.024 0.436
#> SRR1470834 1 0.5977 0.744 0.572 0.004 0.036 0.388
#> SRR1442966 3 0.1792 0.681 0.000 0.000 0.932 0.068
#> SRR1410979 2 0.0000 0.937 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0188 0.936 0.000 0.996 0.000 0.004
#> SRR1367520 1 0.5070 0.753 0.580 0.000 0.004 0.416
#> SRR1360321 3 0.3464 0.671 0.076 0.000 0.868 0.056
#> SRR1445170 4 0.5204 0.918 0.000 0.012 0.376 0.612
#> SRR1440663 3 0.1489 0.716 0.004 0.000 0.952 0.044
#> SRR1489839 1 0.5805 0.751 0.576 0.000 0.036 0.388
#> SRR1409772 1 0.5244 0.758 0.600 0.000 0.012 0.388
#> SRR1092591 1 0.5427 0.749 0.568 0.000 0.016 0.416
#> SRR1338402 3 0.0188 0.715 0.000 0.000 0.996 0.004
#> SRR1337930 1 0.2530 0.771 0.896 0.000 0.004 0.100
#> SRR1337749 1 0.0000 0.772 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.4164 0.775 0.736 0.000 0.000 0.264
#> SRR1396901 1 0.0000 0.772 1.000 0.000 0.000 0.000
#> SRR1354400 3 0.1022 0.714 0.000 0.000 0.968 0.032
#> SRR1416538 1 0.5959 0.746 0.568 0.000 0.044 0.388
#> SRR1340762 3 0.6904 0.201 0.312 0.000 0.556 0.132
#> SRR1460095 3 0.7842 -0.429 0.000 0.360 0.376 0.264
#> SRR1071181 3 0.1211 0.718 0.000 0.000 0.960 0.040
#> SRR1380436 2 0.0000 0.937 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.937 0.000 1.000 0.000 0.000
#> SRR1473611 1 0.5861 0.697 0.500 0.004 0.024 0.472
#> SRR1074934 3 0.4905 -0.231 0.004 0.000 0.632 0.364
#> SRR1311731 2 0.0000 0.937 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.937 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0000 0.772 1.000 0.000 0.000 0.000
#> SRR1448203 1 0.0188 0.772 0.996 0.000 0.000 0.004
#> SRR1366102 1 0.0000 0.772 1.000 0.000 0.000 0.000
#> SRR1434845 1 0.5959 0.746 0.568 0.000 0.044 0.388
#> SRR1472171 1 0.0000 0.772 1.000 0.000 0.000 0.000
#> SRR1441075 2 0.1406 0.916 0.000 0.960 0.016 0.024
#> SRR1321483 3 0.3486 0.658 0.092 0.000 0.864 0.044
#> SRR1418105 3 0.2002 0.711 0.020 0.000 0.936 0.044
#> SRR1090022 2 0.0592 0.932 0.000 0.984 0.000 0.016
#> SRR1077728 1 0.1118 0.774 0.964 0.000 0.000 0.036
#> SRR1365767 3 0.1557 0.691 0.000 0.000 0.944 0.056
#> SRR1489670 2 0.7547 -0.113 0.000 0.488 0.276 0.236
#> SRR1343136 3 0.5073 0.471 0.200 0.000 0.744 0.056
#> SRR1359587 3 0.0336 0.716 0.000 0.000 0.992 0.008
#> SRR1465782 1 0.5560 0.755 0.584 0.000 0.024 0.392
#> SRR1434460 1 0.6009 0.745 0.572 0.000 0.048 0.380
#> SRR1415751 1 0.5244 0.761 0.600 0.000 0.012 0.388
#> SRR1359027 1 0.0000 0.772 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.3216 0.673 0.076 0.000 0.880 0.044
#> SRR1456469 2 0.0592 0.929 0.000 0.984 0.016 0.000
#> SRR1436717 2 0.0592 0.929 0.000 0.984 0.016 0.000
#> SRR1480287 1 0.0000 0.772 1.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.937 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.937 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.937 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.1022 0.719 0.000 0.000 0.968 0.032
#> SRR1076465 2 0.0000 0.937 0.000 1.000 0.000 0.000
#> SRR1433215 1 0.6247 0.710 0.516 0.000 0.056 0.428
#> SRR1076046 1 0.5183 0.755 0.584 0.000 0.008 0.408
#> SRR1406643 2 0.0000 0.937 0.000 1.000 0.000 0.000
#> SRR1499460 3 0.2647 0.658 0.000 0.000 0.880 0.120
#> SRR1475147 2 0.0707 0.930 0.000 0.980 0.000 0.020
#> SRR1319301 1 0.0000 0.772 1.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.772 1.000 0.000 0.000 0.000
#> SRR1087680 3 0.2647 0.658 0.000 0.000 0.880 0.120
#> SRR1361391 3 0.1557 0.691 0.000 0.000 0.944 0.056
#> SRR1365655 3 0.6844 0.092 0.396 0.000 0.500 0.104
#> SRR1090457 3 0.1489 0.716 0.004 0.000 0.952 0.044
#> SRR1084154 4 0.5673 0.921 0.000 0.032 0.372 0.596
#> SRR1380358 1 0.0000 0.772 1.000 0.000 0.000 0.000
#> SRR1398430 4 0.6489 0.856 0.000 0.080 0.372 0.548
#> SRR1444242 1 0.0707 0.771 0.980 0.000 0.000 0.020
#> SRR1440832 3 0.1792 0.681 0.000 0.000 0.932 0.068
#> SRR1358803 4 0.5189 0.917 0.000 0.012 0.372 0.616
#> SRR1344079 4 0.5189 0.917 0.000 0.012 0.372 0.616
#> SRR1072602 1 0.7787 0.187 0.464 0.004 0.296 0.236
#> SRR1421399 4 0.5686 0.917 0.000 0.032 0.376 0.592
#> SRR1339086 1 0.4193 0.776 0.732 0.000 0.000 0.268
#> SRR1099881 1 0.0188 0.772 0.996 0.000 0.000 0.004
#> SRR1384312 3 0.3421 0.661 0.088 0.000 0.868 0.044
#> SRR1329508 3 0.5417 0.488 0.180 0.000 0.732 0.088
#> SRR1440200 2 0.0000 0.937 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.937 0.000 1.000 0.000 0.000
#> SRR1344364 2 0.6868 0.224 0.000 0.584 0.264 0.152
#> SRR1387787 1 0.5329 0.748 0.568 0.000 0.012 0.420
#> SRR1378199 1 0.4776 0.764 0.624 0.000 0.000 0.376
#> SRR1413119 3 0.1557 0.691 0.000 0.000 0.944 0.056
#> SRR1310497 1 0.6386 0.731 0.552 0.000 0.072 0.376
#> SRR1356327 1 0.0336 0.773 0.992 0.000 0.000 0.008
#> SRR1319059 1 0.7729 0.493 0.400 0.000 0.228 0.372
#> SRR1085378 1 0.5329 0.748 0.568 0.000 0.012 0.420
#> SRR1379036 3 0.4259 0.594 0.128 0.000 0.816 0.056
#> SRR1417656 1 0.0000 0.772 1.000 0.000 0.000 0.000
#> SRR1454225 1 0.0188 0.772 0.996 0.000 0.000 0.004
#> SRR1455346 4 0.5673 0.921 0.000 0.032 0.372 0.596
#> SRR1366412 2 0.3168 0.843 0.000 0.884 0.056 0.060
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.2773 0.891 0.836 0.000 0.000 0.000 0.164
#> SRR1375371 2 0.0510 0.970 0.000 0.984 0.000 0.016 0.000
#> SRR1416819 1 0.4877 0.849 0.748 0.000 0.100 0.016 0.136
#> SRR1351907 4 0.3003 0.889 0.092 0.044 0.000 0.864 0.000
#> SRR1330371 4 0.0794 0.906 0.000 0.000 0.028 0.972 0.000
#> SRR1340782 5 0.0000 0.997 0.000 0.000 0.000 0.000 1.000
#> SRR1094531 4 0.1197 0.902 0.000 0.000 0.048 0.952 0.000
#> SRR1436262 5 0.0290 0.993 0.008 0.000 0.000 0.000 0.992
#> SRR1093314 4 0.3734 0.878 0.128 0.000 0.060 0.812 0.000
#> SRR1435460 4 0.1043 0.904 0.000 0.000 0.040 0.960 0.000
#> SRR1485587 1 0.3412 0.890 0.820 0.000 0.028 0.000 0.152
#> SRR1470834 1 0.3309 0.855 0.836 0.000 0.128 0.000 0.036
#> SRR1442966 4 0.0880 0.906 0.000 0.000 0.032 0.968 0.000
#> SRR1410979 2 0.0000 0.977 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.977 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 1 0.2773 0.891 0.836 0.000 0.000 0.000 0.164
#> SRR1360321 3 0.0000 0.952 0.000 0.000 1.000 0.000 0.000
#> SRR1445170 4 0.3798 0.877 0.128 0.000 0.064 0.808 0.000
#> SRR1440663 3 0.0000 0.952 0.000 0.000 1.000 0.000 0.000
#> SRR1489839 1 0.3309 0.855 0.836 0.000 0.128 0.000 0.036
#> SRR1409772 1 0.2773 0.891 0.836 0.000 0.000 0.000 0.164
#> SRR1092591 1 0.2773 0.891 0.836 0.000 0.000 0.000 0.164
#> SRR1338402 3 0.4088 0.395 0.000 0.000 0.632 0.368 0.000
#> SRR1337930 5 0.0000 0.997 0.000 0.000 0.000 0.000 1.000
#> SRR1337749 5 0.0000 0.997 0.000 0.000 0.000 0.000 1.000
#> SRR1401341 1 0.3109 0.867 0.800 0.000 0.000 0.000 0.200
#> SRR1396901 5 0.0000 0.997 0.000 0.000 0.000 0.000 1.000
#> SRR1354400 3 0.0000 0.952 0.000 0.000 1.000 0.000 0.000
#> SRR1416538 1 0.3309 0.855 0.836 0.000 0.128 0.000 0.036
#> SRR1340762 1 0.3209 0.802 0.812 0.000 0.180 0.008 0.000
#> SRR1460095 4 0.3304 0.874 0.052 0.092 0.004 0.852 0.000
#> SRR1071181 3 0.0000 0.952 0.000 0.000 1.000 0.000 0.000
#> SRR1380436 2 0.0000 0.977 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.977 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 1 0.2377 0.892 0.872 0.000 0.000 0.000 0.128
#> SRR1074934 4 0.5410 0.630 0.000 0.000 0.216 0.656 0.128
#> SRR1311731 2 0.0000 0.977 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.977 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 5 0.0000 0.997 0.000 0.000 0.000 0.000 1.000
#> SRR1448203 5 0.0290 0.993 0.008 0.000 0.000 0.000 0.992
#> SRR1366102 5 0.0000 0.997 0.000 0.000 0.000 0.000 1.000
#> SRR1434845 1 0.3151 0.842 0.836 0.000 0.144 0.000 0.020
#> SRR1472171 5 0.0000 0.997 0.000 0.000 0.000 0.000 1.000
#> SRR1441075 2 0.1121 0.950 0.044 0.956 0.000 0.000 0.000
#> SRR1321483 3 0.0000 0.952 0.000 0.000 1.000 0.000 0.000
#> SRR1418105 3 0.0000 0.952 0.000 0.000 1.000 0.000 0.000
#> SRR1090022 2 0.1121 0.950 0.044 0.956 0.000 0.000 0.000
#> SRR1077728 5 0.0000 0.997 0.000 0.000 0.000 0.000 1.000
#> SRR1365767 4 0.1043 0.904 0.000 0.000 0.040 0.960 0.000
#> SRR1489670 4 0.2929 0.845 0.008 0.152 0.000 0.840 0.000
#> SRR1343136 3 0.0000 0.952 0.000 0.000 1.000 0.000 0.000
#> SRR1359587 3 0.3366 0.669 0.000 0.000 0.768 0.232 0.000
#> SRR1465782 1 0.3365 0.899 0.836 0.000 0.044 0.000 0.120
#> SRR1434460 1 0.3151 0.898 0.836 0.000 0.020 0.000 0.144
#> SRR1415751 1 0.3365 0.899 0.836 0.000 0.044 0.000 0.120
#> SRR1359027 5 0.0000 0.997 0.000 0.000 0.000 0.000 1.000
#> SRR1408303 3 0.0000 0.952 0.000 0.000 1.000 0.000 0.000
#> SRR1456469 2 0.0510 0.970 0.000 0.984 0.000 0.016 0.000
#> SRR1436717 2 0.0510 0.970 0.000 0.984 0.000 0.016 0.000
#> SRR1480287 5 0.0000 0.997 0.000 0.000 0.000 0.000 1.000
#> SRR1326845 2 0.0000 0.977 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.977 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.977 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0000 0.952 0.000 0.000 1.000 0.000 0.000
#> SRR1076465 2 0.0000 0.977 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 1 0.3804 0.884 0.796 0.000 0.044 0.000 0.160
#> SRR1076046 1 0.3365 0.899 0.836 0.000 0.044 0.000 0.120
#> SRR1406643 2 0.0000 0.977 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 4 0.1399 0.903 0.028 0.000 0.020 0.952 0.000
#> SRR1475147 2 0.1522 0.946 0.044 0.944 0.000 0.012 0.000
#> SRR1319301 5 0.0000 0.997 0.000 0.000 0.000 0.000 1.000
#> SRR1486117 5 0.0000 0.997 0.000 0.000 0.000 0.000 1.000
#> SRR1087680 4 0.1399 0.903 0.028 0.000 0.020 0.952 0.000
#> SRR1361391 4 0.1197 0.902 0.000 0.000 0.048 0.952 0.000
#> SRR1365655 1 0.3728 0.737 0.748 0.000 0.244 0.008 0.000
#> SRR1090457 3 0.0000 0.952 0.000 0.000 1.000 0.000 0.000
#> SRR1084154 4 0.3003 0.889 0.092 0.044 0.000 0.864 0.000
#> SRR1380358 5 0.0290 0.993 0.008 0.000 0.000 0.000 0.992
#> SRR1398430 4 0.3033 0.877 0.052 0.084 0.000 0.864 0.000
#> SRR1444242 5 0.0000 0.997 0.000 0.000 0.000 0.000 1.000
#> SRR1440832 4 0.0794 0.906 0.000 0.000 0.028 0.972 0.000
#> SRR1358803 4 0.3432 0.877 0.132 0.000 0.040 0.828 0.000
#> SRR1344079 4 0.3551 0.877 0.136 0.000 0.044 0.820 0.000
#> SRR1072602 1 0.7126 0.335 0.468 0.000 0.048 0.340 0.144
#> SRR1421399 4 0.1197 0.904 0.048 0.000 0.000 0.952 0.000
#> SRR1339086 1 0.3109 0.867 0.800 0.000 0.000 0.000 0.200
#> SRR1099881 5 0.0290 0.993 0.008 0.000 0.000 0.000 0.992
#> SRR1384312 3 0.0162 0.949 0.000 0.000 0.996 0.004 0.000
#> SRR1329508 3 0.0290 0.945 0.000 0.000 0.992 0.008 0.000
#> SRR1440200 2 0.0000 0.977 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.977 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 4 0.3640 0.881 0.072 0.084 0.008 0.836 0.000
#> SRR1387787 1 0.2773 0.891 0.836 0.000 0.000 0.000 0.164
#> SRR1378199 1 0.3365 0.899 0.836 0.000 0.044 0.000 0.120
#> SRR1413119 4 0.1197 0.902 0.000 0.000 0.048 0.952 0.000
#> SRR1310497 1 0.3151 0.842 0.836 0.000 0.144 0.000 0.020
#> SRR1356327 5 0.0290 0.993 0.008 0.000 0.000 0.000 0.992
#> SRR1319059 1 0.3163 0.814 0.824 0.000 0.164 0.012 0.000
#> SRR1085378 1 0.2773 0.891 0.836 0.000 0.000 0.000 0.164
#> SRR1379036 3 0.0000 0.952 0.000 0.000 1.000 0.000 0.000
#> SRR1417656 5 0.0000 0.997 0.000 0.000 0.000 0.000 1.000
#> SRR1454225 5 0.0290 0.993 0.008 0.000 0.000 0.000 0.992
#> SRR1455346 4 0.4009 0.874 0.092 0.044 0.040 0.824 0.000
#> SRR1366412 2 0.3424 0.674 0.000 0.760 0.000 0.240 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1313664 6 0.1219 0.951 0.048 0.000 0.000 0.000 0.004 0.948
#> SRR1375371 2 0.2613 0.912 0.000 0.848 0.000 0.012 0.140 0.000
#> SRR1416819 6 0.2585 0.918 0.048 0.000 0.068 0.000 0.004 0.880
#> SRR1351907 4 0.0865 0.837 0.000 0.000 0.000 0.964 0.036 0.000
#> SRR1330371 5 0.3245 0.813 0.000 0.000 0.008 0.228 0.764 0.000
#> SRR1340782 1 0.0000 0.988 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1094531 5 0.3037 0.843 0.000 0.000 0.016 0.176 0.808 0.000
#> SRR1436262 1 0.0363 0.982 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1093314 4 0.2471 0.830 0.000 0.000 0.040 0.896 0.020 0.044
#> SRR1435460 5 0.5295 0.386 0.000 0.000 0.100 0.440 0.460 0.000
#> SRR1485587 6 0.0653 0.931 0.004 0.000 0.000 0.012 0.004 0.980
#> SRR1470834 6 0.1578 0.938 0.004 0.000 0.048 0.000 0.012 0.936
#> SRR1442966 5 0.3271 0.810 0.000 0.000 0.008 0.232 0.760 0.000
#> SRR1410979 2 0.2260 0.916 0.000 0.860 0.000 0.000 0.140 0.000
#> SRR1326449 2 0.0865 0.904 0.000 0.964 0.000 0.000 0.036 0.000
#> SRR1367520 6 0.1333 0.951 0.048 0.000 0.000 0.000 0.008 0.944
#> SRR1360321 3 0.0000 0.997 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1445170 4 0.2328 0.837 0.000 0.000 0.032 0.904 0.020 0.044
#> SRR1440663 3 0.0000 0.997 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1489839 6 0.1500 0.936 0.000 0.000 0.052 0.000 0.012 0.936
#> SRR1409772 6 0.1219 0.951 0.048 0.000 0.000 0.000 0.004 0.948
#> SRR1092591 6 0.1219 0.951 0.048 0.000 0.000 0.000 0.004 0.948
#> SRR1338402 5 0.5764 0.423 0.000 0.000 0.404 0.172 0.424 0.000
#> SRR1337930 1 0.0405 0.981 0.988 0.000 0.004 0.000 0.008 0.000
#> SRR1337749 1 0.0000 0.988 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1401341 6 0.2632 0.846 0.164 0.000 0.000 0.000 0.004 0.832
#> SRR1396901 1 0.0000 0.988 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0146 0.994 0.000 0.000 0.996 0.000 0.004 0.000
#> SRR1416538 6 0.1500 0.936 0.000 0.000 0.052 0.000 0.012 0.936
#> SRR1340762 6 0.2212 0.897 0.000 0.000 0.112 0.000 0.008 0.880
#> SRR1460095 4 0.3031 0.766 0.000 0.004 0.000 0.844 0.108 0.044
#> SRR1071181 3 0.0000 0.997 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1380436 2 0.2260 0.916 0.000 0.860 0.000 0.000 0.140 0.000
#> SRR1079973 2 0.0458 0.909 0.000 0.984 0.000 0.000 0.016 0.000
#> SRR1473611 6 0.0653 0.931 0.004 0.000 0.000 0.012 0.004 0.980
#> SRR1074934 4 0.5256 0.525 0.044 0.000 0.196 0.688 0.056 0.016
#> SRR1311731 2 0.0260 0.911 0.000 0.992 0.000 0.000 0.008 0.000
#> SRR1452957 2 0.0865 0.904 0.000 0.964 0.000 0.000 0.036 0.000
#> SRR1429144 1 0.0000 0.988 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0363 0.982 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1366102 1 0.0000 0.988 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1434845 6 0.1398 0.937 0.000 0.000 0.052 0.000 0.008 0.940
#> SRR1472171 1 0.0000 0.988 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.3416 0.892 0.000 0.804 0.000 0.056 0.140 0.000
#> SRR1321483 3 0.0000 0.997 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1418105 3 0.0146 0.995 0.000 0.000 0.996 0.000 0.004 0.000
#> SRR1090022 2 0.3416 0.892 0.000 0.804 0.000 0.056 0.140 0.000
#> SRR1077728 1 0.2531 0.822 0.860 0.000 0.004 0.000 0.008 0.128
#> SRR1365767 5 0.3037 0.843 0.000 0.000 0.016 0.176 0.808 0.000
#> SRR1489670 4 0.5221 0.274 0.000 0.328 0.000 0.560 0.112 0.000
#> SRR1343136 3 0.0146 0.995 0.000 0.000 0.996 0.000 0.004 0.000
#> SRR1359587 5 0.5600 0.569 0.000 0.000 0.304 0.172 0.524 0.000
#> SRR1465782 6 0.1219 0.951 0.048 0.000 0.000 0.000 0.004 0.948
#> SRR1434460 6 0.1410 0.951 0.044 0.000 0.004 0.008 0.000 0.944
#> SRR1415751 6 0.1333 0.951 0.048 0.000 0.000 0.000 0.008 0.944
#> SRR1359027 1 0.0000 0.988 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0000 0.997 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1456469 2 0.0865 0.904 0.000 0.964 0.000 0.000 0.036 0.000
#> SRR1436717 2 0.1863 0.918 0.000 0.896 0.000 0.000 0.104 0.000
#> SRR1480287 1 0.0000 0.988 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0865 0.904 0.000 0.964 0.000 0.000 0.036 0.000
#> SRR1070133 2 0.2260 0.916 0.000 0.860 0.000 0.000 0.140 0.000
#> SRR1387745 2 0.0865 0.904 0.000 0.964 0.000 0.000 0.036 0.000
#> SRR1436904 3 0.0000 0.997 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1076465 2 0.2260 0.916 0.000 0.860 0.000 0.000 0.140 0.000
#> SRR1433215 6 0.1219 0.951 0.048 0.000 0.000 0.000 0.004 0.948
#> SRR1076046 6 0.1554 0.951 0.044 0.000 0.004 0.008 0.004 0.940
#> SRR1406643 2 0.0865 0.904 0.000 0.964 0.000 0.000 0.036 0.000
#> SRR1499460 5 0.3178 0.842 0.000 0.000 0.016 0.176 0.804 0.004
#> SRR1475147 2 0.3416 0.892 0.000 0.804 0.000 0.056 0.140 0.000
#> SRR1319301 1 0.0000 0.988 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.988 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087680 5 0.3178 0.842 0.000 0.000 0.016 0.176 0.804 0.004
#> SRR1361391 5 0.3037 0.843 0.000 0.000 0.016 0.176 0.808 0.000
#> SRR1365655 6 0.2389 0.881 0.000 0.000 0.128 0.000 0.008 0.864
#> SRR1090457 3 0.0000 0.997 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084154 4 0.0000 0.855 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1380358 1 0.0000 0.988 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1398430 4 0.0000 0.855 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1444242 1 0.0000 0.988 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1440832 5 0.2915 0.838 0.000 0.000 0.008 0.184 0.808 0.000
#> SRR1358803 4 0.1007 0.855 0.000 0.000 0.000 0.956 0.000 0.044
#> SRR1344079 4 0.1007 0.855 0.000 0.000 0.000 0.956 0.000 0.044
#> SRR1072602 6 0.3407 0.897 0.048 0.000 0.072 0.000 0.040 0.840
#> SRR1421399 4 0.1152 0.856 0.000 0.000 0.000 0.952 0.004 0.044
#> SRR1339086 6 0.2006 0.911 0.104 0.000 0.000 0.000 0.004 0.892
#> SRR1099881 1 0.0000 0.988 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0146 0.995 0.000 0.000 0.996 0.000 0.004 0.000
#> SRR1329508 3 0.0260 0.989 0.000 0.000 0.992 0.000 0.008 0.000
#> SRR1440200 2 0.2260 0.916 0.000 0.860 0.000 0.000 0.140 0.000
#> SRR1397558 2 0.0146 0.911 0.000 0.996 0.000 0.000 0.004 0.000
#> SRR1344364 5 0.4158 0.587 0.000 0.000 0.008 0.416 0.572 0.004
#> SRR1387787 6 0.1219 0.951 0.048 0.000 0.000 0.000 0.004 0.948
#> SRR1378199 6 0.1219 0.951 0.048 0.000 0.000 0.000 0.004 0.948
#> SRR1413119 5 0.3037 0.843 0.000 0.000 0.016 0.176 0.808 0.000
#> SRR1310497 6 0.1075 0.939 0.000 0.000 0.048 0.000 0.000 0.952
#> SRR1356327 1 0.0363 0.982 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1319059 6 0.1398 0.936 0.000 0.000 0.052 0.000 0.008 0.940
#> SRR1085378 6 0.1219 0.951 0.048 0.000 0.000 0.000 0.004 0.948
#> SRR1379036 3 0.0146 0.995 0.000 0.000 0.996 0.000 0.004 0.000
#> SRR1417656 1 0.0000 0.988 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0363 0.982 0.988 0.000 0.000 0.000 0.000 0.012
#> SRR1455346 4 0.0000 0.855 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1366412 2 0.3829 0.858 0.000 0.760 0.000 0.060 0.180 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["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 17697 rows and 104 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 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.956 0.982 0.4900 0.514 0.514
#> 3 3 0.950 0.925 0.969 0.3142 0.776 0.589
#> 4 4 0.871 0.872 0.944 0.0948 0.922 0.784
#> 5 5 0.884 0.796 0.920 0.0375 0.970 0.898
#> 6 6 0.860 0.794 0.902 0.0177 0.989 0.961
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
#> SRR1313664 1 0.0000 0.974 1.000 0.000
#> SRR1375371 2 0.0000 0.992 0.000 1.000
#> SRR1416819 1 0.0000 0.974 1.000 0.000
#> SRR1351907 2 0.0000 0.992 0.000 1.000
#> SRR1330371 2 0.0000 0.992 0.000 1.000
#> SRR1340782 1 0.0000 0.974 1.000 0.000
#> SRR1094531 2 0.0000 0.992 0.000 1.000
#> SRR1436262 1 0.0000 0.974 1.000 0.000
#> SRR1093314 2 0.0000 0.992 0.000 1.000
#> SRR1435460 2 0.0000 0.992 0.000 1.000
#> SRR1485587 1 0.0000 0.974 1.000 0.000
#> SRR1470834 1 0.0000 0.974 1.000 0.000
#> SRR1442966 2 0.0000 0.992 0.000 1.000
#> SRR1410979 2 0.0000 0.992 0.000 1.000
#> SRR1326449 2 0.0000 0.992 0.000 1.000
#> SRR1367520 1 0.0000 0.974 1.000 0.000
#> SRR1360321 1 0.0000 0.974 1.000 0.000
#> SRR1445170 2 0.3274 0.933 0.060 0.940
#> SRR1440663 1 0.0000 0.974 1.000 0.000
#> SRR1489839 1 0.0000 0.974 1.000 0.000
#> SRR1409772 1 0.0000 0.974 1.000 0.000
#> SRR1092591 1 0.0000 0.974 1.000 0.000
#> SRR1338402 2 0.0672 0.984 0.008 0.992
#> SRR1337930 1 0.0000 0.974 1.000 0.000
#> SRR1337749 1 0.0000 0.974 1.000 0.000
#> SRR1401341 1 0.0000 0.974 1.000 0.000
#> SRR1396901 1 0.0000 0.974 1.000 0.000
#> SRR1354400 1 0.8267 0.654 0.740 0.260
#> SRR1416538 1 0.0000 0.974 1.000 0.000
#> SRR1340762 1 0.0000 0.974 1.000 0.000
#> SRR1460095 2 0.0000 0.992 0.000 1.000
#> SRR1071181 1 0.0376 0.971 0.996 0.004
#> SRR1380436 2 0.0000 0.992 0.000 1.000
#> SRR1079973 2 0.0000 0.992 0.000 1.000
#> SRR1473611 1 0.0000 0.974 1.000 0.000
#> SRR1074934 1 0.3274 0.919 0.940 0.060
#> SRR1311731 2 0.0000 0.992 0.000 1.000
#> SRR1452957 2 0.0000 0.992 0.000 1.000
#> SRR1429144 1 0.0000 0.974 1.000 0.000
#> SRR1448203 1 0.0000 0.974 1.000 0.000
#> SRR1366102 1 0.0000 0.974 1.000 0.000
#> SRR1434845 1 0.0000 0.974 1.000 0.000
#> SRR1472171 1 0.0000 0.974 1.000 0.000
#> SRR1441075 2 0.0000 0.992 0.000 1.000
#> SRR1321483 1 0.0000 0.974 1.000 0.000
#> SRR1418105 1 0.0938 0.964 0.988 0.012
#> SRR1090022 2 0.0000 0.992 0.000 1.000
#> SRR1077728 1 0.0000 0.974 1.000 0.000
#> SRR1365767 2 0.0000 0.992 0.000 1.000
#> SRR1489670 2 0.0000 0.992 0.000 1.000
#> SRR1343136 1 0.0000 0.974 1.000 0.000
#> SRR1359587 2 0.6623 0.788 0.172 0.828
#> SRR1465782 1 0.0000 0.974 1.000 0.000
#> SRR1434460 1 0.0000 0.974 1.000 0.000
#> SRR1415751 1 0.0000 0.974 1.000 0.000
#> SRR1359027 1 0.0000 0.974 1.000 0.000
#> SRR1408303 1 0.0000 0.974 1.000 0.000
#> SRR1456469 2 0.0000 0.992 0.000 1.000
#> SRR1436717 2 0.0000 0.992 0.000 1.000
#> SRR1480287 1 0.0000 0.974 1.000 0.000
#> SRR1326845 2 0.0000 0.992 0.000 1.000
#> SRR1070133 2 0.0000 0.992 0.000 1.000
#> SRR1387745 2 0.0000 0.992 0.000 1.000
#> SRR1436904 1 0.3114 0.923 0.944 0.056
#> SRR1076465 2 0.0000 0.992 0.000 1.000
#> SRR1433215 1 0.0000 0.974 1.000 0.000
#> SRR1076046 1 0.0000 0.974 1.000 0.000
#> SRR1406643 2 0.0000 0.992 0.000 1.000
#> SRR1499460 2 0.0000 0.992 0.000 1.000
#> SRR1475147 2 0.0000 0.992 0.000 1.000
#> SRR1319301 1 0.0000 0.974 1.000 0.000
#> SRR1486117 1 0.0000 0.974 1.000 0.000
#> SRR1087680 2 0.0000 0.992 0.000 1.000
#> SRR1361391 2 0.0000 0.992 0.000 1.000
#> SRR1365655 1 0.0000 0.974 1.000 0.000
#> SRR1090457 1 0.0000 0.974 1.000 0.000
#> SRR1084154 2 0.0000 0.992 0.000 1.000
#> SRR1380358 1 0.0000 0.974 1.000 0.000
#> SRR1398430 2 0.0000 0.992 0.000 1.000
#> SRR1444242 1 0.0000 0.974 1.000 0.000
#> SRR1440832 2 0.0000 0.992 0.000 1.000
#> SRR1358803 1 0.9970 0.148 0.532 0.468
#> SRR1344079 1 0.9460 0.447 0.636 0.364
#> SRR1072602 1 0.0000 0.974 1.000 0.000
#> SRR1421399 2 0.0000 0.992 0.000 1.000
#> SRR1339086 1 0.0000 0.974 1.000 0.000
#> SRR1099881 1 0.0000 0.974 1.000 0.000
#> SRR1384312 1 0.9248 0.501 0.660 0.340
#> SRR1329508 1 0.0000 0.974 1.000 0.000
#> SRR1440200 2 0.0000 0.992 0.000 1.000
#> SRR1397558 2 0.0000 0.992 0.000 1.000
#> SRR1344364 2 0.0000 0.992 0.000 1.000
#> SRR1387787 1 0.0000 0.974 1.000 0.000
#> SRR1378199 1 0.0000 0.974 1.000 0.000
#> SRR1413119 2 0.0000 0.992 0.000 1.000
#> SRR1310497 1 0.0000 0.974 1.000 0.000
#> SRR1356327 1 0.0000 0.974 1.000 0.000
#> SRR1319059 1 0.0000 0.974 1.000 0.000
#> SRR1085378 1 0.0000 0.974 1.000 0.000
#> SRR1379036 1 0.0000 0.974 1.000 0.000
#> SRR1417656 1 0.0000 0.974 1.000 0.000
#> SRR1454225 1 0.0000 0.974 1.000 0.000
#> SRR1455346 2 0.4431 0.896 0.092 0.908
#> SRR1366412 2 0.0000 0.992 0.000 1.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1313664 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1375371 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1416819 1 0.0592 0.969 0.988 0.000 0.012
#> SRR1351907 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1330371 3 0.5785 0.530 0.000 0.332 0.668
#> SRR1340782 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1094531 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1436262 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1093314 2 0.7482 0.594 0.204 0.688 0.108
#> SRR1435460 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1485587 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1470834 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1442966 3 0.4346 0.767 0.000 0.184 0.816
#> SRR1410979 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1326449 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1367520 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1360321 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1445170 2 0.8588 0.347 0.344 0.544 0.112
#> SRR1440663 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1489839 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1409772 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1092591 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1338402 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1337930 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1337749 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1401341 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1396901 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1354400 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1416538 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1340762 1 0.3340 0.847 0.880 0.000 0.120
#> SRR1460095 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1071181 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1380436 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1079973 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1473611 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1074934 3 0.6244 0.231 0.440 0.000 0.560
#> SRR1311731 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1452957 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1429144 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1448203 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1366102 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1434845 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1472171 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1441075 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1321483 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1418105 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1090022 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1077728 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1365767 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1489670 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1343136 3 0.5216 0.649 0.260 0.000 0.740
#> SRR1359587 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1465782 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1434460 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1415751 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1359027 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1408303 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1456469 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1436717 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1480287 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1326845 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1070133 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1387745 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1436904 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1076465 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1433215 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1076046 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1406643 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1499460 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1475147 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1319301 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1486117 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1087680 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1361391 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1365655 1 0.6192 0.227 0.580 0.000 0.420
#> SRR1090457 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1084154 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1380358 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1398430 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1444242 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1440832 3 0.4452 0.756 0.000 0.192 0.808
#> SRR1358803 1 0.5560 0.562 0.700 0.300 0.000
#> SRR1344079 1 0.1289 0.949 0.968 0.032 0.000
#> SRR1072602 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1421399 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1339086 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1099881 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1384312 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1329508 3 0.2878 0.853 0.096 0.000 0.904
#> SRR1440200 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1397558 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1344364 2 0.0000 0.970 0.000 1.000 0.000
#> SRR1387787 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1378199 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1413119 3 0.0000 0.932 0.000 0.000 1.000
#> SRR1310497 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1356327 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1319059 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1085378 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1379036 3 0.1411 0.906 0.036 0.000 0.964
#> SRR1417656 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1454225 1 0.0000 0.980 1.000 0.000 0.000
#> SRR1455346 2 0.1031 0.943 0.024 0.976 0.000
#> SRR1366412 2 0.0000 0.970 0.000 1.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1313664 1 0.0336 0.953 0.992 0.000 0.000 0.008
#> SRR1375371 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1416819 1 0.4948 0.150 0.560 0.000 0.000 0.440
#> SRR1351907 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1330371 3 0.6521 0.119 0.000 0.076 0.512 0.412
#> SRR1340782 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1094531 3 0.0469 0.899 0.000 0.000 0.988 0.012
#> SRR1436262 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1093314 4 0.0469 0.754 0.000 0.012 0.000 0.988
#> SRR1435460 4 0.1716 0.737 0.000 0.000 0.064 0.936
#> SRR1485587 4 0.2589 0.768 0.116 0.000 0.000 0.884
#> SRR1470834 1 0.0336 0.953 0.992 0.000 0.000 0.008
#> SRR1442966 4 0.4485 0.624 0.000 0.028 0.200 0.772
#> SRR1410979 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1326449 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1367520 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1360321 3 0.0000 0.904 0.000 0.000 1.000 0.000
#> SRR1445170 4 0.0188 0.755 0.004 0.000 0.000 0.996
#> SRR1440663 3 0.0000 0.904 0.000 0.000 1.000 0.000
#> SRR1489839 1 0.0000 0.955 1.000 0.000 0.000 0.000
#> SRR1409772 1 0.0336 0.953 0.992 0.000 0.000 0.008
#> SRR1092591 1 0.0000 0.955 1.000 0.000 0.000 0.000
#> SRR1338402 3 0.0000 0.904 0.000 0.000 1.000 0.000
#> SRR1337930 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1337749 1 0.0000 0.955 1.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.955 1.000 0.000 0.000 0.000
#> SRR1396901 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1354400 3 0.0000 0.904 0.000 0.000 1.000 0.000
#> SRR1416538 1 0.0000 0.955 1.000 0.000 0.000 0.000
#> SRR1340762 1 0.4535 0.547 0.704 0.000 0.292 0.004
#> SRR1460095 4 0.5000 0.135 0.000 0.496 0.000 0.504
#> SRR1071181 3 0.0000 0.904 0.000 0.000 1.000 0.000
#> SRR1380436 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1079973 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1473611 4 0.3400 0.737 0.180 0.000 0.000 0.820
#> SRR1074934 4 0.6822 0.550 0.192 0.000 0.204 0.604
#> SRR1311731 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1452957 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1429144 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1448203 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1366102 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1434845 1 0.0000 0.955 1.000 0.000 0.000 0.000
#> SRR1472171 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1441075 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1321483 3 0.0188 0.902 0.004 0.000 0.996 0.000
#> SRR1418105 3 0.0000 0.904 0.000 0.000 1.000 0.000
#> SRR1090022 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1077728 1 0.0336 0.953 0.992 0.000 0.000 0.008
#> SRR1365767 3 0.0707 0.896 0.000 0.000 0.980 0.020
#> SRR1489670 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1343136 3 0.3764 0.618 0.216 0.000 0.784 0.000
#> SRR1359587 3 0.0000 0.904 0.000 0.000 1.000 0.000
#> SRR1465782 1 0.0336 0.953 0.992 0.000 0.000 0.008
#> SRR1434460 1 0.0336 0.953 0.992 0.000 0.000 0.008
#> SRR1415751 1 0.0000 0.955 1.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.955 1.000 0.000 0.000 0.000
#> SRR1408303 3 0.0188 0.902 0.004 0.000 0.996 0.000
#> SRR1456469 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1436717 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1480287 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1326845 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1070133 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1387745 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1436904 3 0.0000 0.904 0.000 0.000 1.000 0.000
#> SRR1076465 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1433215 1 0.3311 0.767 0.828 0.000 0.000 0.172
#> SRR1076046 1 0.0921 0.936 0.972 0.000 0.000 0.028
#> SRR1406643 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1499460 3 0.0592 0.897 0.000 0.000 0.984 0.016
#> SRR1475147 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1319301 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1486117 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1087680 3 0.0592 0.897 0.000 0.000 0.984 0.016
#> SRR1361391 3 0.0000 0.904 0.000 0.000 1.000 0.000
#> SRR1365655 1 0.4907 0.253 0.580 0.000 0.420 0.000
#> SRR1090457 3 0.0000 0.904 0.000 0.000 1.000 0.000
#> SRR1084154 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1380358 1 0.0336 0.954 0.992 0.000 0.000 0.008
#> SRR1398430 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1444242 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1440832 3 0.4877 0.472 0.000 0.328 0.664 0.008
#> SRR1358803 4 0.3377 0.764 0.140 0.012 0.000 0.848
#> SRR1344079 4 0.3494 0.746 0.172 0.004 0.000 0.824
#> SRR1072602 1 0.3486 0.744 0.812 0.000 0.000 0.188
#> SRR1421399 4 0.3486 0.708 0.000 0.188 0.000 0.812
#> SRR1339086 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1099881 1 0.0000 0.955 1.000 0.000 0.000 0.000
#> SRR1384312 3 0.0000 0.904 0.000 0.000 1.000 0.000
#> SRR1329508 3 0.2704 0.766 0.124 0.000 0.876 0.000
#> SRR1440200 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1397558 2 0.0000 0.998 0.000 1.000 0.000 0.000
#> SRR1344364 4 0.4500 0.484 0.000 0.316 0.000 0.684
#> SRR1387787 1 0.0336 0.953 0.992 0.000 0.000 0.008
#> SRR1378199 1 0.0469 0.951 0.988 0.000 0.000 0.012
#> SRR1413119 3 0.4916 0.277 0.000 0.000 0.576 0.424
#> SRR1310497 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1356327 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1319059 1 0.0657 0.946 0.984 0.000 0.012 0.004
#> SRR1085378 1 0.0469 0.951 0.988 0.000 0.000 0.012
#> SRR1379036 3 0.1867 0.833 0.072 0.000 0.928 0.000
#> SRR1417656 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1454225 1 0.0188 0.954 0.996 0.000 0.000 0.004
#> SRR1455346 2 0.0817 0.959 0.024 0.976 0.000 0.000
#> SRR1366412 2 0.0000 0.998 0.000 1.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1313664 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1375371 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1416819 1 0.6754 -0.3062 0.396 0.000 0.000 0.272 0.332
#> SRR1351907 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1330371 4 0.7106 -0.0642 0.000 0.140 0.392 0.424 0.044
#> SRR1340782 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1094531 3 0.0955 0.9194 0.000 0.000 0.968 0.004 0.028
#> SRR1436262 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1093314 5 0.3913 0.6068 0.000 0.000 0.000 0.324 0.676
#> SRR1435460 4 0.1012 0.4055 0.000 0.000 0.012 0.968 0.020
#> SRR1485587 5 0.5891 0.4335 0.100 0.000 0.000 0.432 0.468
#> SRR1470834 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1442966 4 0.1106 0.4100 0.000 0.000 0.024 0.964 0.012
#> SRR1410979 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1326449 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1367520 1 0.4907 -0.1176 0.492 0.000 0.000 0.484 0.024
#> SRR1360321 3 0.0404 0.9263 0.000 0.000 0.988 0.000 0.012
#> SRR1445170 4 0.2230 0.3681 0.000 0.000 0.000 0.884 0.116
#> SRR1440663 3 0.0510 0.9257 0.000 0.000 0.984 0.000 0.016
#> SRR1489839 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1409772 4 0.4425 0.1635 0.452 0.000 0.000 0.544 0.004
#> SRR1092591 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1338402 3 0.0000 0.9262 0.000 0.000 1.000 0.000 0.000
#> SRR1337930 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1337749 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1401341 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1396901 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1354400 3 0.0162 0.9258 0.000 0.000 0.996 0.000 0.004
#> SRR1416538 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1340762 1 0.3424 0.6249 0.760 0.000 0.240 0.000 0.000
#> SRR1460095 4 0.3774 0.1621 0.000 0.296 0.000 0.704 0.000
#> SRR1071181 3 0.0510 0.9253 0.000 0.000 0.984 0.000 0.016
#> SRR1380436 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1079973 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1473611 4 0.3043 0.3632 0.080 0.000 0.000 0.864 0.056
#> SRR1074934 4 0.6038 0.3218 0.068 0.000 0.112 0.676 0.144
#> SRR1311731 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1452957 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1429144 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1448203 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1366102 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1434845 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1472171 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1441075 2 0.0162 0.9951 0.000 0.996 0.000 0.004 0.000
#> SRR1321483 3 0.0609 0.9251 0.000 0.000 0.980 0.000 0.020
#> SRR1418105 3 0.0510 0.9257 0.000 0.000 0.984 0.000 0.016
#> SRR1090022 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1077728 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1365767 3 0.1124 0.9165 0.000 0.000 0.960 0.004 0.036
#> SRR1489670 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1343136 3 0.5159 0.6350 0.096 0.000 0.724 0.160 0.020
#> SRR1359587 3 0.0609 0.9251 0.000 0.000 0.980 0.000 0.020
#> SRR1465782 1 0.1908 0.8444 0.908 0.000 0.000 0.092 0.000
#> SRR1434460 1 0.1544 0.8714 0.932 0.000 0.000 0.068 0.000
#> SRR1415751 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1359027 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1408303 3 0.0404 0.9264 0.000 0.000 0.988 0.000 0.012
#> SRR1456469 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1436717 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1480287 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1326845 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1070133 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1387745 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1436904 3 0.0510 0.9257 0.000 0.000 0.984 0.000 0.016
#> SRR1076465 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1433215 1 0.3508 0.6244 0.748 0.000 0.000 0.252 0.000
#> SRR1076046 1 0.2516 0.7978 0.860 0.000 0.000 0.140 0.000
#> SRR1406643 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1499460 3 0.0880 0.9195 0.000 0.000 0.968 0.000 0.032
#> SRR1475147 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1319301 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1486117 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1087680 3 0.0963 0.9181 0.000 0.000 0.964 0.000 0.036
#> SRR1361391 3 0.1018 0.9200 0.000 0.000 0.968 0.016 0.016
#> SRR1365655 1 0.4483 0.4793 0.672 0.000 0.308 0.008 0.012
#> SRR1090457 3 0.0162 0.9264 0.000 0.000 0.996 0.000 0.004
#> SRR1084154 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1380358 1 0.0404 0.9155 0.988 0.000 0.000 0.000 0.012
#> SRR1398430 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1444242 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1440832 3 0.5066 0.3735 0.000 0.344 0.608 0.000 0.048
#> SRR1358803 4 0.4547 0.3613 0.072 0.000 0.000 0.736 0.192
#> SRR1344079 4 0.1310 0.4144 0.020 0.000 0.000 0.956 0.024
#> SRR1072602 4 0.4135 0.2610 0.340 0.000 0.004 0.656 0.000
#> SRR1421399 4 0.6289 -0.2229 0.000 0.236 0.000 0.536 0.228
#> SRR1339086 1 0.0794 0.9029 0.972 0.000 0.000 0.028 0.000
#> SRR1099881 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1384312 3 0.0566 0.9245 0.000 0.000 0.984 0.004 0.012
#> SRR1329508 3 0.1851 0.8247 0.088 0.000 0.912 0.000 0.000
#> SRR1440200 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1397558 2 0.0000 0.9987 0.000 1.000 0.000 0.000 0.000
#> SRR1344364 5 0.3682 0.5402 0.000 0.108 0.000 0.072 0.820
#> SRR1387787 1 0.1341 0.8823 0.944 0.000 0.000 0.056 0.000
#> SRR1378199 1 0.4278 0.0851 0.548 0.000 0.000 0.452 0.000
#> SRR1413119 3 0.4701 0.6019 0.000 0.000 0.704 0.236 0.060
#> SRR1310497 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1356327 1 0.0162 0.9198 0.996 0.000 0.000 0.000 0.004
#> SRR1319059 1 0.0404 0.9132 0.988 0.000 0.012 0.000 0.000
#> SRR1085378 1 0.0162 0.9198 0.996 0.000 0.000 0.000 0.004
#> SRR1379036 3 0.0798 0.9224 0.008 0.000 0.976 0.000 0.016
#> SRR1417656 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1454225 1 0.0000 0.9217 1.000 0.000 0.000 0.000 0.000
#> SRR1455346 2 0.0510 0.9737 0.016 0.984 0.000 0.000 0.000
#> SRR1366412 2 0.0000 0.9987 0.000 1.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
#> SRR1313664 1 0.0520 0.9103 0.984 0.000 0.000 0.008 NA 0.000
#> SRR1375371 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1416819 6 0.7270 0.1469 0.328 0.000 0.000 0.148 NA 0.372
#> SRR1351907 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1330371 4 0.7068 0.0644 0.000 0.068 0.208 0.376 NA 0.004
#> SRR1340782 1 0.0146 0.9125 0.996 0.000 0.000 0.000 NA 0.000
#> SRR1094531 3 0.1956 0.8803 0.000 0.000 0.908 0.004 NA 0.008
#> SRR1436262 1 0.0146 0.9125 0.996 0.000 0.000 0.000 NA 0.000
#> SRR1093314 6 0.3351 0.2284 0.000 0.000 0.000 0.288 NA 0.712
#> SRR1435460 4 0.0972 0.5565 0.000 0.000 0.000 0.964 NA 0.008
#> SRR1485587 4 0.5042 0.2782 0.144 0.000 0.000 0.684 NA 0.152
#> SRR1470834 1 0.0520 0.9103 0.984 0.000 0.000 0.008 NA 0.000
#> SRR1442966 4 0.1908 0.5551 0.000 0.000 0.012 0.924 NA 0.020
#> SRR1410979 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1326449 2 0.0146 0.9939 0.000 0.996 0.000 0.000 NA 0.000
#> SRR1367520 1 0.6071 -0.0594 0.452 0.000 0.000 0.292 NA 0.004
#> SRR1360321 3 0.0820 0.8991 0.016 0.000 0.972 0.000 NA 0.000
#> SRR1445170 4 0.2106 0.5483 0.000 0.000 0.000 0.904 NA 0.064
#> SRR1440663 3 0.1080 0.8985 0.004 0.000 0.960 0.000 NA 0.004
#> SRR1489839 1 0.0260 0.9117 0.992 0.000 0.000 0.000 NA 0.000
#> SRR1409772 4 0.5223 0.3151 0.208 0.000 0.000 0.612 NA 0.000
#> SRR1092591 1 0.0291 0.9119 0.992 0.000 0.000 0.004 NA 0.000
#> SRR1338402 3 0.0862 0.8993 0.000 0.000 0.972 0.004 NA 0.008
#> SRR1337930 1 0.0000 0.9126 1.000 0.000 0.000 0.000 NA 0.000
#> SRR1337749 1 0.0260 0.9127 0.992 0.000 0.000 0.000 NA 0.000
#> SRR1401341 1 0.0146 0.9125 0.996 0.000 0.000 0.000 NA 0.000
#> SRR1396901 1 0.0146 0.9125 0.996 0.000 0.000 0.000 NA 0.000
#> SRR1354400 3 0.1307 0.8987 0.000 0.000 0.952 0.008 NA 0.008
#> SRR1416538 1 0.0363 0.9108 0.988 0.000 0.000 0.000 NA 0.000
#> SRR1340762 1 0.3767 0.5301 0.708 0.000 0.276 0.000 NA 0.004
#> SRR1460095 4 0.3955 0.1746 0.000 0.436 0.000 0.560 NA 0.000
#> SRR1071181 3 0.1769 0.8922 0.000 0.000 0.924 0.004 NA 0.012
#> SRR1380436 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1079973 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1473611 4 0.1390 0.5558 0.016 0.000 0.000 0.948 NA 0.004
#> SRR1074934 4 0.7101 0.3041 0.052 0.000 0.184 0.504 NA 0.040
#> SRR1311731 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1452957 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1429144 1 0.0146 0.9120 0.996 0.000 0.000 0.000 NA 0.000
#> SRR1448203 1 0.0291 0.9121 0.992 0.000 0.000 0.004 NA 0.000
#> SRR1366102 1 0.0146 0.9125 0.996 0.000 0.000 0.000 NA 0.000
#> SRR1434845 1 0.0363 0.9108 0.988 0.000 0.000 0.000 NA 0.000
#> SRR1472171 1 0.0000 0.9126 1.000 0.000 0.000 0.000 NA 0.000
#> SRR1441075 2 0.1074 0.9602 0.000 0.960 0.000 0.000 NA 0.028
#> SRR1321483 3 0.1498 0.8992 0.012 0.000 0.948 0.004 NA 0.012
#> SRR1418105 3 0.0922 0.8995 0.004 0.000 0.968 0.000 NA 0.004
#> SRR1090022 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1077728 1 0.1080 0.8969 0.960 0.000 0.000 0.004 NA 0.004
#> SRR1365767 3 0.2058 0.8813 0.000 0.000 0.908 0.008 NA 0.012
#> SRR1489670 2 0.0363 0.9870 0.000 0.988 0.000 0.000 NA 0.000
#> SRR1343136 3 0.5178 0.6489 0.032 0.000 0.692 0.120 NA 0.004
#> SRR1359587 3 0.1411 0.8920 0.000 0.000 0.936 0.000 NA 0.004
#> SRR1465782 1 0.2058 0.8540 0.908 0.000 0.000 0.056 NA 0.000
#> SRR1434460 1 0.2762 0.7353 0.804 0.000 0.000 0.196 NA 0.000
#> SRR1415751 1 0.0260 0.9119 0.992 0.000 0.000 0.000 NA 0.000
#> SRR1359027 1 0.0260 0.9121 0.992 0.000 0.000 0.000 NA 0.000
#> SRR1408303 3 0.1457 0.8981 0.016 0.000 0.948 0.004 NA 0.004
#> SRR1456469 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1436717 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1480287 1 0.0146 0.9125 0.996 0.000 0.000 0.000 NA 0.000
#> SRR1326845 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1070133 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1387745 2 0.0146 0.9939 0.000 0.996 0.000 0.000 NA 0.000
#> SRR1436904 3 0.1010 0.8992 0.004 0.000 0.960 0.000 NA 0.000
#> SRR1076465 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1433215 1 0.4306 0.4000 0.624 0.000 0.000 0.344 NA 0.000
#> SRR1076046 1 0.3539 0.6730 0.756 0.000 0.000 0.220 NA 0.000
#> SRR1406643 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1499460 3 0.1333 0.8950 0.000 0.000 0.944 0.000 NA 0.008
#> SRR1475147 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1319301 1 0.0146 0.9125 0.996 0.000 0.000 0.000 NA 0.000
#> SRR1486117 1 0.0622 0.9091 0.980 0.000 0.000 0.008 NA 0.000
#> SRR1087680 3 0.1398 0.8916 0.000 0.000 0.940 0.000 NA 0.008
#> SRR1361391 3 0.1615 0.8908 0.000 0.000 0.928 0.004 NA 0.004
#> SRR1365655 1 0.4278 0.3405 0.616 0.000 0.360 0.004 NA 0.000
#> SRR1090457 3 0.0837 0.9011 0.004 0.000 0.972 0.000 NA 0.004
#> SRR1084154 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1380358 1 0.0291 0.9121 0.992 0.000 0.000 0.004 NA 0.000
#> SRR1398430 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1444242 1 0.0000 0.9126 1.000 0.000 0.000 0.000 NA 0.000
#> SRR1440832 3 0.5946 0.1409 0.000 0.368 0.440 0.000 NA 0.004
#> SRR1358803 4 0.4784 0.4281 0.024 0.004 0.000 0.612 NA 0.020
#> SRR1344079 4 0.0291 0.5636 0.000 0.000 0.000 0.992 NA 0.004
#> SRR1072602 4 0.4824 0.4210 0.136 0.000 0.000 0.680 NA 0.004
#> SRR1421399 4 0.6453 0.1046 0.000 0.100 0.000 0.464 NA 0.080
#> SRR1339086 1 0.0935 0.8982 0.964 0.000 0.000 0.032 NA 0.000
#> SRR1099881 1 0.0405 0.9114 0.988 0.000 0.000 0.004 NA 0.000
#> SRR1384312 3 0.1364 0.8954 0.000 0.000 0.944 0.004 NA 0.004
#> SRR1329508 3 0.2051 0.8086 0.096 0.000 0.896 0.004 NA 0.000
#> SRR1440200 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1397558 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 0.000
#> SRR1344364 6 0.1297 0.3766 0.000 0.040 0.000 0.012 NA 0.948
#> SRR1387787 1 0.3450 0.7146 0.780 0.000 0.000 0.188 NA 0.000
#> SRR1378199 1 0.4634 0.4596 0.644 0.000 0.000 0.284 NA 0.000
#> SRR1413119 3 0.4046 0.6729 0.000 0.000 0.736 0.220 NA 0.028
#> SRR1310497 1 0.0837 0.9049 0.972 0.000 0.004 0.004 NA 0.000
#> SRR1356327 1 0.0146 0.9125 0.996 0.000 0.000 0.000 NA 0.000
#> SRR1319059 1 0.1176 0.8914 0.956 0.000 0.024 0.000 NA 0.000
#> SRR1085378 1 0.0508 0.9106 0.984 0.000 0.000 0.004 NA 0.000
#> SRR1379036 3 0.1536 0.8939 0.024 0.000 0.944 0.000 NA 0.012
#> SRR1417656 1 0.0146 0.9120 0.996 0.000 0.000 0.000 NA 0.000
#> SRR1454225 1 0.0146 0.9125 0.996 0.000 0.000 0.000 NA 0.000
#> SRR1455346 2 0.0363 0.9805 0.012 0.988 0.000 0.000 NA 0.000
#> SRR1366412 2 0.0000 0.9967 0.000 1.000 0.000 0.000 NA 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.
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