Date: 2019-12-25 22:54:51 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 17633 rows and 97 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] 17633 97
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:pam | 2 | 1.000 | 0.946 | 0.980 | ** | |
CV:pam | 2 | 1.000 | 0.966 | 0.987 | ** | |
MAD:kmeans | 2 | 1.000 | 0.952 | 0.980 | ** | |
MAD:pam | 2 | 1.000 | 0.954 | 0.981 | ** | |
ATC:kmeans | 2 | 1.000 | 0.994 | 0.997 | ** | |
ATC:skmeans | 3 | 1.000 | 0.991 | 0.996 | ** | 2 |
MAD:skmeans | 3 | 0.998 | 0.953 | 0.981 | ** | 2 |
CV:mclust | 2 | 0.957 | 0.843 | 0.945 | ** | |
SD:skmeans | 3 | 0.940 | 0.941 | 0.975 | * | 2 |
ATC:NMF | 2 | 0.936 | 0.941 | 0.976 | * | |
ATC:pam | 4 | 0.934 | 0.878 | 0.940 | * | 2,3 |
CV:skmeans | 3 | 0.925 | 0.902 | 0.960 | * | 2 |
SD:kmeans | 2 | 0.918 | 0.938 | 0.973 | * | |
CV:kmeans | 3 | 0.909 | 0.918 | 0.966 | * | 2 |
ATC:mclust | 2 | 0.857 | 0.888 | 0.957 | ||
CV:NMF | 2 | 0.835 | 0.901 | 0.959 | ||
MAD:NMF | 2 | 0.819 | 0.909 | 0.959 | ||
ATC:hclust | 3 | 0.813 | 0.866 | 0.929 | ||
SD:NMF | 2 | 0.766 | 0.901 | 0.952 | ||
CV:hclust | 2 | 0.731 | 0.898 | 0.951 | ||
MAD:mclust | 5 | 0.633 | 0.685 | 0.787 | ||
SD:mclust | 5 | 0.606 | 0.697 | 0.781 | ||
MAD:hclust | 2 | 0.539 | 0.854 | 0.910 | ||
SD:hclust | 2 | 0.538 | 0.856 | 0.916 |
**: 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.766 0.901 0.952 0.495 0.495 0.495
#> CV:NMF 2 0.835 0.901 0.959 0.488 0.514 0.514
#> MAD:NMF 2 0.819 0.909 0.959 0.499 0.495 0.495
#> ATC:NMF 2 0.936 0.941 0.976 0.487 0.510 0.510
#> SD:skmeans 2 0.978 0.932 0.975 0.501 0.497 0.497
#> CV:skmeans 2 0.957 0.958 0.981 0.494 0.510 0.510
#> MAD:skmeans 2 0.978 0.929 0.974 0.502 0.495 0.495
#> ATC:skmeans 2 1.000 1.000 1.000 0.505 0.495 0.495
#> SD:mclust 2 0.727 0.829 0.931 0.403 0.646 0.646
#> CV:mclust 2 0.957 0.843 0.945 0.372 0.576 0.576
#> MAD:mclust 2 0.682 0.832 0.924 0.404 0.657 0.657
#> ATC:mclust 2 0.857 0.888 0.957 0.486 0.514 0.514
#> SD:kmeans 2 0.918 0.938 0.973 0.477 0.514 0.514
#> CV:kmeans 2 1.000 0.959 0.983 0.470 0.523 0.523
#> MAD:kmeans 2 1.000 0.952 0.980 0.479 0.514 0.514
#> ATC:kmeans 2 1.000 0.994 0.997 0.505 0.495 0.495
#> SD:pam 2 1.000 0.946 0.980 0.448 0.546 0.546
#> CV:pam 2 1.000 0.966 0.987 0.426 0.585 0.585
#> MAD:pam 2 1.000 0.954 0.981 0.450 0.546 0.546
#> ATC:pam 2 1.000 0.972 0.989 0.470 0.528 0.528
#> SD:hclust 2 0.538 0.856 0.916 0.474 0.514 0.514
#> CV:hclust 2 0.731 0.898 0.951 0.457 0.540 0.540
#> MAD:hclust 2 0.539 0.854 0.910 0.472 0.514 0.514
#> ATC:hclust 2 0.492 0.686 0.851 0.446 0.576 0.576
get_stats(res_list, k = 3)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> SD:NMF 3 0.743 0.798 0.912 0.317 0.775 0.578
#> CV:NMF 3 0.809 0.859 0.941 0.334 0.768 0.577
#> MAD:NMF 3 0.799 0.833 0.929 0.292 0.775 0.581
#> ATC:NMF 3 0.615 0.759 0.851 0.335 0.725 0.510
#> SD:skmeans 3 0.940 0.941 0.975 0.255 0.855 0.716
#> CV:skmeans 3 0.925 0.902 0.960 0.274 0.833 0.682
#> MAD:skmeans 3 0.998 0.953 0.981 0.252 0.858 0.720
#> ATC:skmeans 3 1.000 0.991 0.996 0.185 0.894 0.789
#> SD:mclust 3 0.593 0.549 0.737 0.493 0.824 0.729
#> CV:mclust 3 0.647 0.820 0.903 0.695 0.642 0.451
#> MAD:mclust 3 0.613 0.628 0.724 0.498 0.777 0.662
#> ATC:mclust 3 0.613 0.776 0.890 0.303 0.777 0.597
#> SD:kmeans 3 0.790 0.827 0.924 0.395 0.707 0.485
#> CV:kmeans 3 0.909 0.918 0.966 0.396 0.741 0.539
#> MAD:kmeans 3 0.792 0.865 0.934 0.389 0.705 0.483
#> ATC:kmeans 3 0.744 0.711 0.890 0.301 0.744 0.525
#> SD:pam 3 0.709 0.790 0.895 0.468 0.742 0.548
#> CV:pam 3 0.694 0.718 0.871 0.504 0.768 0.604
#> MAD:pam 3 0.754 0.882 0.939 0.471 0.756 0.566
#> ATC:pam 3 1.000 0.938 0.976 0.423 0.746 0.543
#> SD:hclust 3 0.590 0.756 0.861 0.369 0.820 0.650
#> CV:hclust 3 0.666 0.778 0.894 0.341 0.845 0.714
#> MAD:hclust 3 0.648 0.757 0.880 0.385 0.821 0.652
#> ATC:hclust 3 0.813 0.866 0.929 0.482 0.740 0.555
get_stats(res_list, k = 4)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> SD:NMF 4 0.874 0.856 0.936 0.0909 0.879 0.675
#> CV:NMF 4 0.756 0.832 0.922 0.0864 0.917 0.771
#> MAD:NMF 4 0.865 0.849 0.936 0.0962 0.867 0.654
#> ATC:NMF 4 0.642 0.579 0.763 0.1080 0.779 0.485
#> SD:skmeans 4 0.817 0.843 0.920 0.0872 0.928 0.813
#> CV:skmeans 4 0.791 0.881 0.918 0.1290 0.836 0.598
#> MAD:skmeans 4 0.842 0.854 0.923 0.0841 0.929 0.817
#> ATC:skmeans 4 0.900 0.863 0.940 0.0691 0.954 0.886
#> SD:mclust 4 0.548 0.657 0.798 0.1810 0.750 0.503
#> CV:mclust 4 0.826 0.872 0.923 0.1096 0.902 0.746
#> MAD:mclust 4 0.517 0.619 0.792 0.1833 0.730 0.448
#> ATC:mclust 4 0.676 0.810 0.864 0.1578 0.865 0.643
#> SD:kmeans 4 0.701 0.600 0.771 0.1154 0.925 0.782
#> CV:kmeans 4 0.669 0.698 0.817 0.1123 0.939 0.828
#> MAD:kmeans 4 0.707 0.597 0.798 0.1130 0.837 0.561
#> ATC:kmeans 4 0.859 0.935 0.946 0.1156 0.815 0.523
#> SD:pam 4 0.828 0.882 0.942 0.1199 0.877 0.656
#> CV:pam 4 0.736 0.743 0.880 0.1503 0.842 0.593
#> MAD:pam 4 0.823 0.806 0.917 0.1030 0.895 0.701
#> ATC:pam 4 0.934 0.878 0.940 0.0930 0.754 0.418
#> SD:hclust 4 0.642 0.706 0.835 0.1182 0.890 0.692
#> CV:hclust 4 0.602 0.648 0.750 0.1382 0.974 0.935
#> MAD:hclust 4 0.664 0.694 0.828 0.1100 0.934 0.809
#> ATC:hclust 4 0.819 0.831 0.896 0.1191 0.926 0.777
get_stats(res_list, k = 5)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> SD:NMF 5 0.681 0.658 0.830 0.0790 0.929 0.760
#> CV:NMF 5 0.722 0.743 0.851 0.0958 0.897 0.662
#> MAD:NMF 5 0.706 0.693 0.848 0.0759 0.955 0.846
#> ATC:NMF 5 0.647 0.579 0.775 0.0480 0.862 0.594
#> SD:skmeans 5 0.737 0.610 0.803 0.0975 0.922 0.765
#> CV:skmeans 5 0.776 0.787 0.878 0.0763 0.948 0.812
#> MAD:skmeans 5 0.722 0.448 0.724 0.0925 0.875 0.636
#> ATC:skmeans 5 0.774 0.781 0.872 0.0927 0.929 0.809
#> SD:mclust 5 0.606 0.697 0.781 0.0963 0.836 0.491
#> CV:mclust 5 0.760 0.792 0.882 0.0828 0.915 0.726
#> MAD:mclust 5 0.633 0.685 0.787 0.0891 0.817 0.440
#> ATC:mclust 5 0.714 0.631 0.788 0.0637 0.945 0.791
#> SD:kmeans 5 0.725 0.729 0.824 0.0672 0.818 0.464
#> CV:kmeans 5 0.666 0.523 0.724 0.0699 0.853 0.563
#> MAD:kmeans 5 0.726 0.735 0.827 0.0686 0.817 0.432
#> ATC:kmeans 5 0.792 0.746 0.837 0.0688 0.974 0.902
#> SD:pam 5 0.833 0.753 0.884 0.0652 0.896 0.642
#> CV:pam 5 0.677 0.766 0.850 0.0462 0.882 0.621
#> MAD:pam 5 0.795 0.808 0.896 0.0703 0.899 0.655
#> ATC:pam 5 0.790 0.701 0.841 0.0750 0.862 0.550
#> SD:hclust 5 0.640 0.591 0.728 0.0692 0.930 0.747
#> CV:hclust 5 0.623 0.604 0.775 0.0827 0.754 0.441
#> MAD:hclust 5 0.663 0.591 0.728 0.0739 0.876 0.597
#> ATC:hclust 5 0.786 0.784 0.817 0.0547 0.961 0.850
get_stats(res_list, k = 6)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> SD:NMF 6 0.683 0.592 0.773 0.0476 0.937 0.758
#> CV:NMF 6 0.735 0.645 0.822 0.0507 0.955 0.803
#> MAD:NMF 6 0.676 0.580 0.770 0.0497 0.971 0.890
#> ATC:NMF 6 0.630 0.496 0.720 0.0355 0.916 0.695
#> SD:skmeans 6 0.738 0.718 0.839 0.0512 0.911 0.681
#> CV:skmeans 6 0.709 0.681 0.832 0.0421 0.969 0.867
#> MAD:skmeans 6 0.753 0.711 0.842 0.0617 0.841 0.473
#> ATC:skmeans 6 0.736 0.650 0.844 0.0656 0.940 0.809
#> SD:mclust 6 0.664 0.593 0.708 0.0455 0.886 0.543
#> CV:mclust 6 0.660 0.665 0.756 0.0404 0.973 0.891
#> MAD:mclust 6 0.694 0.620 0.658 0.0478 0.904 0.607
#> ATC:mclust 6 0.721 0.555 0.741 0.0400 0.874 0.528
#> SD:kmeans 6 0.779 0.721 0.819 0.0430 0.941 0.740
#> CV:kmeans 6 0.679 0.559 0.713 0.0485 0.865 0.476
#> MAD:kmeans 6 0.797 0.706 0.813 0.0424 0.946 0.757
#> ATC:kmeans 6 0.768 0.594 0.688 0.0436 0.892 0.581
#> SD:pam 6 0.827 0.718 0.827 0.0500 0.916 0.649
#> CV:pam 6 0.737 0.711 0.816 0.0553 0.925 0.695
#> MAD:pam 6 0.824 0.740 0.874 0.0539 0.912 0.637
#> ATC:pam 6 0.787 0.701 0.827 0.0399 0.971 0.861
#> SD:hclust 6 0.702 0.611 0.727 0.0514 0.889 0.551
#> CV:hclust 6 0.681 0.552 0.779 0.0382 0.976 0.900
#> MAD:hclust 6 0.723 0.632 0.750 0.0513 0.937 0.714
#> ATC:hclust 6 0.838 0.826 0.871 0.0483 0.950 0.771
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 17633 rows and 97 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'SD' method.
#> Subgroups are detected by 'hclust' method.
#> Performed in total 1250 partitions by row resampling.
#> Best k for subgroups seems to be 2.
#>
#> Following methods can be applied to this 'ConsensusPartition' object:
#> [1] "cola_report" "collect_classes" "collect_plots"
#> [4] "collect_stats" "colnames" "compare_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.All the plots in panels can be made by individual functions and they are plotted later in this section.
select_partition_number()
produces several plots showing different
statistics for choosing “optimized” k
. There are following statistics:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower PAC score, higher mean silhouette score or higher
concordance corresponds to better partition. Rand index and Jaccard index
measure how similar the current partition is compared to partition with k-1
.
If they are too similar, we won't accept k
is better than k-1
.
select_partition_number(res)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 0.538 0.856 0.916 0.4737 0.514 0.514
#> 3 3 0.590 0.756 0.861 0.3686 0.820 0.650
#> 4 4 0.642 0.706 0.835 0.1182 0.890 0.692
#> 5 5 0.640 0.591 0.728 0.0692 0.930 0.747
#> 6 6 0.702 0.611 0.727 0.0514 0.889 0.551
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
#> SRR1397242 1 0.0000 0.952 1.000 0.000
#> SRR1093410 1 0.0000 0.952 1.000 0.000
#> SRR1380523 2 0.0000 0.875 0.000 1.000
#> SRR1089106 1 0.0376 0.950 0.996 0.004
#> SRR1401403 1 0.0000 0.952 1.000 0.000
#> SRR1080534 1 0.8207 0.622 0.744 0.256
#> SRR1487638 2 0.0000 0.875 0.000 1.000
#> SRR1320650 2 0.1633 0.879 0.024 0.976
#> SRR1073045 2 0.4298 0.873 0.088 0.912
#> SRR1397030 2 0.2948 0.878 0.052 0.948
#> SRR1439976 1 0.0000 0.952 1.000 0.000
#> SRR1454050 2 0.0376 0.876 0.004 0.996
#> SRR1070286 1 0.1633 0.939 0.976 0.024
#> SRR1344185 2 0.5519 0.859 0.128 0.872
#> SRR1084228 2 0.3733 0.876 0.072 0.928
#> SRR1101907 2 0.4022 0.874 0.080 0.920
#> SRR1079686 2 0.1414 0.878 0.020 0.980
#> SRR1089761 2 0.7745 0.793 0.228 0.772
#> SRR811403 2 0.0000 0.875 0.000 1.000
#> SRR1440560 2 0.2236 0.879 0.036 0.964
#> SRR1079706 2 0.9922 0.386 0.448 0.552
#> SRR1459101 2 0.8327 0.753 0.264 0.736
#> SRR1335089 2 0.9866 0.432 0.432 0.568
#> SRR1337840 1 0.0000 0.952 1.000 0.000
#> SRR808682 2 0.0000 0.875 0.000 1.000
#> SRR1443224 2 0.2043 0.879 0.032 0.968
#> SRR1439831 1 0.0000 0.952 1.000 0.000
#> SRR1087463 2 0.9286 0.631 0.344 0.656
#> SRR1457949 2 0.5519 0.859 0.128 0.872
#> SRR1455969 2 0.4161 0.874 0.084 0.916
#> SRR1415529 1 0.3733 0.902 0.928 0.072
#> SRR1330018 2 0.0000 0.875 0.000 1.000
#> SRR1370597 2 0.7219 0.816 0.200 0.800
#> SRR1385524 2 0.0000 0.875 0.000 1.000
#> SRR1351605 1 0.1184 0.944 0.984 0.016
#> SRR1460148 1 0.0000 0.952 1.000 0.000
#> SRR1354159 2 0.6712 0.835 0.176 0.824
#> SRR1318390 2 0.0000 0.875 0.000 1.000
#> SRR1073095 2 0.0000 0.875 0.000 1.000
#> SRR1410612 2 0.0000 0.875 0.000 1.000
#> SRR1076892 1 0.0000 0.952 1.000 0.000
#> SRR1340989 2 0.8386 0.749 0.268 0.732
#> SRR1481375 2 0.6801 0.831 0.180 0.820
#> SRR1079356 1 0.4815 0.866 0.896 0.104
#> SRR1455545 1 0.0000 0.952 1.000 0.000
#> SRR1406157 1 0.0000 0.952 1.000 0.000
#> SRR1445920 2 0.0000 0.875 0.000 1.000
#> SRR1420259 2 0.5519 0.859 0.128 0.872
#> SRR1376963 2 0.1843 0.879 0.028 0.972
#> SRR1101061 1 0.0000 0.952 1.000 0.000
#> SRR1414496 2 0.0000 0.875 0.000 1.000
#> SRR1334791 1 0.0000 0.952 1.000 0.000
#> SRR1072129 2 0.0000 0.875 0.000 1.000
#> SRR1330450 2 0.9286 0.631 0.344 0.656
#> SRR1409108 2 0.0000 0.875 0.000 1.000
#> SRR1416865 2 0.9922 0.386 0.448 0.552
#> SRR1071832 1 0.3733 0.902 0.928 0.072
#> SRR1093814 2 0.1843 0.879 0.028 0.972
#> SRR1381821 1 0.7815 0.671 0.768 0.232
#> SRR811675 1 0.4690 0.871 0.900 0.100
#> SRR1082423 1 0.0000 0.952 1.000 0.000
#> SRR1417296 2 0.0000 0.875 0.000 1.000
#> SRR815944 2 0.7950 0.780 0.240 0.760
#> SRR1332775 2 0.6343 0.843 0.160 0.840
#> SRR1079143 2 0.8386 0.749 0.268 0.732
#> SRR1476807 1 0.0000 0.952 1.000 0.000
#> SRR1456634 1 0.0000 0.952 1.000 0.000
#> SRR1083171 2 0.0000 0.875 0.000 1.000
#> SRR1083337 1 0.0000 0.952 1.000 0.000
#> SRR1377672 2 0.8386 0.749 0.268 0.732
#> SRR1435816 2 0.6438 0.841 0.164 0.836
#> SRR1080580 1 0.8207 0.622 0.744 0.256
#> SRR1366672 2 0.2948 0.878 0.052 0.948
#> SRR1075150 2 0.0000 0.875 0.000 1.000
#> SRR814137 1 0.1184 0.944 0.984 0.016
#> SRR1475062 1 0.0000 0.952 1.000 0.000
#> SRR1340028 1 0.0000 0.952 1.000 0.000
#> SRR1070789 2 0.0000 0.875 0.000 1.000
#> SRR1097728 2 0.7219 0.816 0.200 0.800
#> SRR1447172 2 0.0000 0.875 0.000 1.000
#> SRR1472486 2 0.4298 0.873 0.088 0.912
#> SRR1377881 1 0.0000 0.952 1.000 0.000
#> SRR1420912 2 0.8955 0.694 0.312 0.688
#> SRR1313747 2 0.0000 0.875 0.000 1.000
#> SRR1414447 2 0.8144 0.767 0.252 0.748
#> SRR1358238 1 0.0000 0.952 1.000 0.000
#> SRR1322115 1 0.3114 0.915 0.944 0.056
#> SRR1330474 1 0.0000 0.952 1.000 0.000
#> SRR1093124 1 0.0000 0.952 1.000 0.000
#> SRR1456354 1 0.0000 0.952 1.000 0.000
#> SRR820859 1 0.3114 0.915 0.944 0.056
#> SRR1401860 1 0.8207 0.622 0.744 0.256
#> SRR1095599 2 0.5519 0.859 0.128 0.872
#> SRR1417130 1 0.0000 0.952 1.000 0.000
#> SRR1362597 2 0.0000 0.875 0.000 1.000
#> SRR1328464 2 0.7219 0.816 0.200 0.800
#> SRR1323957 1 0.0000 0.952 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.8542 0.000 1.000 0.000
#> SRR1089106 1 0.2261 0.8788 0.932 0.000 0.068
#> SRR1401403 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1080534 1 0.7471 0.3561 0.516 0.036 0.448
#> SRR1487638 2 0.4235 0.7588 0.000 0.824 0.176
#> SRR1320650 2 0.6204 0.0945 0.000 0.576 0.424
#> SRR1073045 3 0.5678 0.6639 0.000 0.316 0.684
#> SRR1397030 3 0.6204 0.4605 0.000 0.424 0.576
#> SRR1439976 1 0.2066 0.8812 0.940 0.000 0.060
#> SRR1454050 2 0.3267 0.8178 0.000 0.884 0.116
#> SRR1070286 1 0.3340 0.8563 0.880 0.000 0.120
#> SRR1344185 3 0.5363 0.7143 0.000 0.276 0.724
#> SRR1084228 3 0.6154 0.4642 0.000 0.408 0.592
#> SRR1101907 3 0.5760 0.6447 0.000 0.328 0.672
#> SRR1079686 2 0.6192 0.1293 0.000 0.580 0.420
#> SRR1089761 3 0.2878 0.7911 0.000 0.096 0.904
#> SRR811403 2 0.3412 0.8136 0.000 0.876 0.124
#> SRR1440560 2 0.5254 0.6416 0.000 0.736 0.264
#> SRR1079706 3 0.6154 0.5879 0.204 0.044 0.752
#> SRR1459101 3 0.2066 0.7802 0.000 0.060 0.940
#> SRR1335089 3 0.6632 0.6122 0.204 0.064 0.732
#> SRR1337840 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR808682 2 0.0237 0.8543 0.000 0.996 0.004
#> SRR1443224 2 0.4346 0.7623 0.000 0.816 0.184
#> SRR1439831 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1087463 3 0.4370 0.7358 0.076 0.056 0.868
#> SRR1457949 3 0.5363 0.7143 0.000 0.276 0.724
#> SRR1455969 3 0.5678 0.6627 0.000 0.316 0.684
#> SRR1415529 1 0.5551 0.7613 0.760 0.016 0.224
#> SRR1330018 2 0.0000 0.8542 0.000 1.000 0.000
#> SRR1370597 3 0.3340 0.7922 0.000 0.120 0.880
#> SRR1385524 2 0.2711 0.8300 0.000 0.912 0.088
#> SRR1351605 1 0.2711 0.8711 0.912 0.000 0.088
#> SRR1460148 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1354159 3 0.5706 0.6014 0.000 0.320 0.680
#> SRR1318390 2 0.3412 0.8136 0.000 0.876 0.124
#> SRR1073095 2 0.0000 0.8542 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.8542 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1340989 3 0.1964 0.7787 0.000 0.056 0.944
#> SRR1481375 3 0.4002 0.7864 0.000 0.160 0.840
#> SRR1079356 1 0.6079 0.5877 0.612 0.000 0.388
#> SRR1455545 1 0.2066 0.8812 0.940 0.000 0.060
#> SRR1406157 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.8542 0.000 1.000 0.000
#> SRR1420259 3 0.5363 0.7143 0.000 0.276 0.724
#> SRR1376963 2 0.4062 0.7828 0.000 0.836 0.164
#> SRR1101061 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.8542 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.8542 0.000 1.000 0.000
#> SRR1330450 3 0.4370 0.7358 0.076 0.056 0.868
#> SRR1409108 2 0.0424 0.8543 0.000 0.992 0.008
#> SRR1416865 3 0.6154 0.5879 0.204 0.044 0.752
#> SRR1071832 1 0.5551 0.7613 0.760 0.016 0.224
#> SRR1093814 2 0.4399 0.7578 0.000 0.812 0.188
#> SRR1381821 1 0.7181 0.3362 0.508 0.024 0.468
#> SRR811675 1 0.6062 0.5942 0.616 0.000 0.384
#> SRR1082423 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1417296 2 0.0237 0.8545 0.000 0.996 0.004
#> SRR815944 3 0.2711 0.7886 0.000 0.088 0.912
#> SRR1332775 3 0.4002 0.7860 0.000 0.160 0.840
#> SRR1079143 3 0.1964 0.7787 0.000 0.056 0.944
#> SRR1476807 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1456634 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1083171 2 0.4399 0.7444 0.000 0.812 0.188
#> SRR1083337 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1377672 3 0.1964 0.7787 0.000 0.056 0.944
#> SRR1435816 3 0.4121 0.7834 0.000 0.168 0.832
#> SRR1080580 1 0.7471 0.3561 0.516 0.036 0.448
#> SRR1366672 3 0.6204 0.4605 0.000 0.424 0.576
#> SRR1075150 2 0.5988 0.3277 0.000 0.632 0.368
#> SRR814137 1 0.2711 0.8711 0.912 0.000 0.088
#> SRR1475062 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.8542 0.000 1.000 0.000
#> SRR1097728 3 0.3551 0.7920 0.000 0.132 0.868
#> SRR1447172 2 0.0000 0.8542 0.000 1.000 0.000
#> SRR1472486 3 0.5678 0.6639 0.000 0.316 0.684
#> SRR1377881 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1420912 3 0.1170 0.7481 0.008 0.016 0.976
#> SRR1313747 2 0.0892 0.8525 0.000 0.980 0.020
#> SRR1414447 3 0.2356 0.7844 0.000 0.072 0.928
#> SRR1358238 1 0.2066 0.8812 0.940 0.000 0.060
#> SRR1322115 1 0.5291 0.7410 0.732 0.000 0.268
#> SRR1330474 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1456354 1 0.1964 0.8823 0.944 0.000 0.056
#> SRR820859 1 0.5291 0.7410 0.732 0.000 0.268
#> SRR1401860 1 0.7471 0.3561 0.516 0.036 0.448
#> SRR1095599 3 0.5327 0.7178 0.000 0.272 0.728
#> SRR1417130 1 0.0000 0.8942 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.8542 0.000 1.000 0.000
#> SRR1328464 3 0.3551 0.7920 0.000 0.132 0.868
#> SRR1323957 1 0.0000 0.8942 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0188 0.8987 0.996 0.000 0.000 0.004
#> SRR1093410 1 0.0188 0.8987 0.996 0.000 0.000 0.004
#> SRR1380523 2 0.1867 0.8409 0.000 0.928 0.072 0.000
#> SRR1089106 1 0.3907 0.7728 0.768 0.000 0.000 0.232
#> SRR1401403 1 0.0188 0.8987 0.996 0.000 0.000 0.004
#> SRR1080534 4 0.4590 0.6882 0.060 0.000 0.148 0.792
#> SRR1487638 2 0.4624 0.7008 0.000 0.660 0.340 0.000
#> SRR1320650 3 0.4679 0.2448 0.000 0.352 0.648 0.000
#> SRR1073045 3 0.1902 0.7054 0.000 0.064 0.932 0.004
#> SRR1397030 3 0.3311 0.6279 0.000 0.172 0.828 0.000
#> SRR1439976 1 0.3837 0.7798 0.776 0.000 0.000 0.224
#> SRR1454050 2 0.4304 0.7693 0.000 0.716 0.284 0.000
#> SRR1070286 1 0.4406 0.6964 0.700 0.000 0.000 0.300
#> SRR1344185 3 0.1610 0.7151 0.000 0.032 0.952 0.016
#> SRR1084228 3 0.3400 0.6071 0.000 0.180 0.820 0.000
#> SRR1101907 3 0.1867 0.6993 0.000 0.072 0.928 0.000
#> SRR1079686 3 0.4585 0.2926 0.000 0.332 0.668 0.000
#> SRR1089761 3 0.3486 0.6776 0.000 0.000 0.812 0.188
#> SRR811403 2 0.4356 0.7634 0.000 0.708 0.292 0.000
#> SRR1440560 2 0.4941 0.5568 0.000 0.564 0.436 0.000
#> SRR1079706 4 0.4925 0.1531 0.000 0.000 0.428 0.572
#> SRR1459101 3 0.4134 0.6083 0.000 0.000 0.740 0.260
#> SRR1335089 4 0.4977 0.0279 0.000 0.000 0.460 0.540
#> SRR1337840 1 0.0707 0.8958 0.980 0.000 0.000 0.020
#> SRR808682 2 0.2011 0.8418 0.000 0.920 0.080 0.000
#> SRR1443224 2 0.4697 0.7021 0.000 0.644 0.356 0.000
#> SRR1439831 1 0.0188 0.8987 0.996 0.000 0.000 0.004
#> SRR1087463 3 0.4830 0.3951 0.000 0.000 0.608 0.392
#> SRR1457949 3 0.1610 0.7151 0.000 0.032 0.952 0.016
#> SRR1455969 3 0.1637 0.7051 0.000 0.060 0.940 0.000
#> SRR1415529 1 0.6462 0.4620 0.580 0.000 0.088 0.332
#> SRR1330018 2 0.2081 0.8415 0.000 0.916 0.084 0.000
#> SRR1370597 3 0.4228 0.6551 0.000 0.008 0.760 0.232
#> SRR1385524 2 0.3610 0.8101 0.000 0.800 0.200 0.000
#> SRR1351605 1 0.4422 0.7403 0.736 0.000 0.008 0.256
#> SRR1460148 1 0.0188 0.8987 0.996 0.000 0.000 0.004
#> SRR1354159 3 0.6796 0.5147 0.000 0.252 0.596 0.152
#> SRR1318390 2 0.4356 0.7634 0.000 0.708 0.292 0.000
#> SRR1073095 2 0.0188 0.8178 0.000 0.996 0.000 0.004
#> SRR1410612 2 0.0188 0.8178 0.000 0.996 0.000 0.004
#> SRR1076892 1 0.0188 0.8987 0.996 0.000 0.000 0.004
#> SRR1340989 3 0.4164 0.6059 0.000 0.000 0.736 0.264
#> SRR1481375 3 0.3105 0.7089 0.000 0.012 0.868 0.120
#> SRR1079356 4 0.2342 0.6876 0.080 0.000 0.008 0.912
#> SRR1455545 1 0.3837 0.7798 0.776 0.000 0.000 0.224
#> SRR1406157 1 0.0188 0.8987 0.996 0.000 0.000 0.004
#> SRR1445920 2 0.0188 0.8178 0.000 0.996 0.000 0.004
#> SRR1420259 3 0.1610 0.7151 0.000 0.032 0.952 0.016
#> SRR1376963 2 0.4605 0.7275 0.000 0.664 0.336 0.000
#> SRR1101061 1 0.0188 0.8987 0.996 0.000 0.000 0.004
#> SRR1414496 2 0.0188 0.8178 0.000 0.996 0.000 0.004
#> SRR1334791 1 0.0188 0.8987 0.996 0.000 0.000 0.004
#> SRR1072129 2 0.0188 0.8178 0.000 0.996 0.000 0.004
#> SRR1330450 3 0.4761 0.4302 0.000 0.000 0.628 0.372
#> SRR1409108 2 0.2999 0.8355 0.000 0.864 0.132 0.004
#> SRR1416865 4 0.4925 0.1531 0.000 0.000 0.428 0.572
#> SRR1071832 1 0.6462 0.4620 0.580 0.000 0.088 0.332
#> SRR1093814 2 0.4730 0.6886 0.000 0.636 0.364 0.000
#> SRR1381821 4 0.4636 0.6685 0.068 0.000 0.140 0.792
#> SRR811675 4 0.2197 0.6860 0.080 0.000 0.004 0.916
#> SRR1082423 1 0.0188 0.8987 0.996 0.000 0.000 0.004
#> SRR1417296 2 0.0657 0.8228 0.000 0.984 0.012 0.004
#> SRR815944 3 0.4453 0.6353 0.000 0.012 0.744 0.244
#> SRR1332775 3 0.4008 0.7040 0.000 0.032 0.820 0.148
#> SRR1079143 3 0.4164 0.6059 0.000 0.000 0.736 0.264
#> SRR1476807 1 0.0707 0.8958 0.980 0.000 0.000 0.020
#> SRR1456634 1 0.0707 0.8958 0.980 0.000 0.000 0.020
#> SRR1083171 2 0.4730 0.6690 0.000 0.636 0.364 0.000
#> SRR1083337 1 0.0188 0.8987 0.996 0.000 0.000 0.004
#> SRR1377672 3 0.4164 0.6059 0.000 0.000 0.736 0.264
#> SRR1435816 3 0.3390 0.7066 0.000 0.016 0.852 0.132
#> SRR1080580 4 0.4590 0.6882 0.060 0.000 0.148 0.792
#> SRR1366672 3 0.3311 0.6279 0.000 0.172 0.828 0.000
#> SRR1075150 3 0.4972 -0.1904 0.000 0.456 0.544 0.000
#> SRR814137 1 0.4422 0.7403 0.736 0.000 0.008 0.256
#> SRR1475062 1 0.0188 0.8987 0.996 0.000 0.000 0.004
#> SRR1340028 1 0.0188 0.8987 0.996 0.000 0.000 0.004
#> SRR1070789 2 0.2011 0.8416 0.000 0.920 0.080 0.000
#> SRR1097728 3 0.3625 0.6959 0.000 0.012 0.828 0.160
#> SRR1447172 2 0.0188 0.8178 0.000 0.996 0.000 0.004
#> SRR1472486 3 0.1902 0.7054 0.000 0.064 0.932 0.004
#> SRR1377881 1 0.0188 0.8987 0.996 0.000 0.000 0.004
#> SRR1420912 3 0.4624 0.5211 0.000 0.000 0.660 0.340
#> SRR1313747 2 0.3074 0.8311 0.000 0.848 0.152 0.000
#> SRR1414447 3 0.4155 0.6315 0.000 0.004 0.756 0.240
#> SRR1358238 1 0.3837 0.7798 0.776 0.000 0.000 0.224
#> SRR1322115 4 0.3791 0.5557 0.200 0.000 0.004 0.796
#> SRR1330474 1 0.0707 0.8958 0.980 0.000 0.000 0.020
#> SRR1093124 1 0.0469 0.8981 0.988 0.000 0.000 0.012
#> SRR1456354 1 0.3266 0.8184 0.832 0.000 0.000 0.168
#> SRR820859 4 0.3791 0.5557 0.200 0.000 0.004 0.796
#> SRR1401860 4 0.4590 0.6882 0.060 0.000 0.148 0.792
#> SRR1095599 3 0.1724 0.7158 0.000 0.032 0.948 0.020
#> SRR1417130 1 0.0469 0.8971 0.988 0.000 0.000 0.012
#> SRR1362597 2 0.2053 0.8404 0.000 0.924 0.072 0.004
#> SRR1328464 3 0.3625 0.6959 0.000 0.012 0.828 0.160
#> SRR1323957 1 0.0707 0.8958 0.980 0.000 0.000 0.020
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0000 0.831 1.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.831 1.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.2124 0.795 0.000 0.900 0.096 0.004 0.000
#> SRR1089106 4 0.3861 0.850 0.284 0.000 0.000 0.712 0.004
#> SRR1401403 1 0.0000 0.831 1.000 0.000 0.000 0.000 0.000
#> SRR1080534 5 0.5579 0.583 0.040 0.000 0.064 0.216 0.680
#> SRR1487638 2 0.5205 0.660 0.000 0.616 0.336 0.036 0.012
#> SRR1320650 3 0.4481 0.204 0.000 0.312 0.668 0.016 0.004
#> SRR1073045 3 0.1369 0.644 0.000 0.028 0.956 0.008 0.008
#> SRR1397030 3 0.2753 0.573 0.000 0.136 0.856 0.008 0.000
#> SRR1439976 4 0.3752 0.847 0.292 0.000 0.000 0.708 0.000
#> SRR1454050 2 0.5632 0.726 0.000 0.644 0.256 0.084 0.016
#> SRR1070286 4 0.4210 0.819 0.224 0.000 0.000 0.740 0.036
#> SRR1344185 3 0.0609 0.648 0.000 0.000 0.980 0.000 0.020
#> SRR1084228 3 0.3055 0.568 0.000 0.144 0.840 0.016 0.000
#> SRR1101907 3 0.1386 0.636 0.000 0.032 0.952 0.016 0.000
#> SRR1079686 3 0.4283 0.272 0.000 0.292 0.692 0.012 0.004
#> SRR1089761 3 0.4313 0.502 0.000 0.000 0.636 0.008 0.356
#> SRR811403 2 0.5648 0.719 0.000 0.636 0.268 0.080 0.016
#> SRR1440560 2 0.6162 0.515 0.000 0.500 0.404 0.072 0.024
#> SRR1079706 5 0.4563 0.370 0.000 0.000 0.244 0.048 0.708
#> SRR1459101 3 0.4610 0.368 0.000 0.000 0.556 0.012 0.432
#> SRR1335089 5 0.4572 0.292 0.000 0.000 0.280 0.036 0.684
#> SRR1337840 1 0.4138 0.187 0.616 0.000 0.000 0.384 0.000
#> SRR808682 2 0.2233 0.796 0.000 0.892 0.104 0.004 0.000
#> SRR1443224 2 0.6033 0.658 0.000 0.572 0.324 0.084 0.020
#> SRR1439831 1 0.0000 0.831 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.4760 -0.107 0.000 0.000 0.416 0.020 0.564
#> SRR1457949 3 0.0963 0.650 0.000 0.000 0.964 0.000 0.036
#> SRR1455969 3 0.1498 0.639 0.000 0.024 0.952 0.016 0.008
#> SRR1415529 4 0.6710 0.702 0.200 0.000 0.056 0.592 0.152
#> SRR1330018 2 0.2233 0.796 0.000 0.892 0.104 0.004 0.000
#> SRR1370597 3 0.4464 0.444 0.000 0.000 0.584 0.008 0.408
#> SRR1385524 2 0.3659 0.758 0.000 0.768 0.220 0.012 0.000
#> SRR1351605 4 0.4354 0.851 0.256 0.000 0.000 0.712 0.032
#> SRR1460148 1 0.0000 0.831 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.7365 0.394 0.000 0.220 0.488 0.056 0.236
#> SRR1318390 2 0.5648 0.719 0.000 0.636 0.268 0.080 0.016
#> SRR1073095 2 0.1845 0.752 0.000 0.928 0.000 0.056 0.016
#> SRR1410612 2 0.1845 0.752 0.000 0.928 0.000 0.056 0.016
#> SRR1076892 1 0.0000 0.831 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.4627 0.358 0.000 0.000 0.544 0.012 0.444
#> SRR1481375 3 0.3086 0.606 0.000 0.000 0.816 0.004 0.180
#> SRR1079356 5 0.4380 0.460 0.008 0.000 0.000 0.376 0.616
#> SRR1455545 4 0.3752 0.847 0.292 0.000 0.000 0.708 0.000
#> SRR1406157 1 0.0000 0.831 1.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.1845 0.752 0.000 0.928 0.000 0.056 0.016
#> SRR1420259 3 0.0609 0.648 0.000 0.000 0.980 0.000 0.020
#> SRR1376963 2 0.5956 0.683 0.000 0.592 0.304 0.084 0.020
#> SRR1101061 1 0.0000 0.831 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.1845 0.752 0.000 0.928 0.000 0.056 0.016
#> SRR1334791 1 0.0000 0.831 1.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.1845 0.752 0.000 0.928 0.000 0.056 0.016
#> SRR1330450 5 0.4517 -0.165 0.000 0.000 0.436 0.008 0.556
#> SRR1409108 2 0.3992 0.788 0.000 0.796 0.124 0.080 0.000
#> SRR1416865 5 0.4563 0.370 0.000 0.000 0.244 0.048 0.708
#> SRR1071832 4 0.6710 0.702 0.200 0.000 0.056 0.592 0.152
#> SRR1093814 2 0.6060 0.644 0.000 0.564 0.332 0.084 0.020
#> SRR1381821 5 0.4726 0.545 0.004 0.000 0.044 0.256 0.696
#> SRR811675 5 0.4392 0.455 0.008 0.000 0.000 0.380 0.612
#> SRR1082423 1 0.0000 0.831 1.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.2243 0.757 0.000 0.916 0.012 0.056 0.016
#> SRR815944 3 0.4252 0.463 0.000 0.000 0.652 0.008 0.340
#> SRR1332775 3 0.4653 0.540 0.000 0.016 0.652 0.008 0.324
#> SRR1079143 3 0.4648 0.333 0.000 0.000 0.524 0.012 0.464
#> SRR1476807 1 0.4161 0.154 0.608 0.000 0.000 0.392 0.000
#> SRR1456634 1 0.4138 0.187 0.616 0.000 0.000 0.384 0.000
#> SRR1083171 2 0.5759 0.635 0.000 0.576 0.344 0.064 0.016
#> SRR1083337 1 0.0000 0.831 1.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.4622 0.362 0.000 0.000 0.548 0.012 0.440
#> SRR1435816 3 0.3203 0.597 0.000 0.000 0.820 0.012 0.168
#> SRR1080580 5 0.5579 0.583 0.040 0.000 0.064 0.216 0.680
#> SRR1366672 3 0.2753 0.573 0.000 0.136 0.856 0.008 0.000
#> SRR1075150 3 0.4597 -0.161 0.000 0.424 0.564 0.012 0.000
#> SRR814137 4 0.4354 0.851 0.256 0.000 0.000 0.712 0.032
#> SRR1475062 1 0.0000 0.831 1.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.831 1.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.2179 0.796 0.000 0.896 0.100 0.004 0.000
#> SRR1097728 3 0.3906 0.551 0.000 0.000 0.704 0.004 0.292
#> SRR1447172 2 0.1845 0.752 0.000 0.928 0.000 0.056 0.016
#> SRR1472486 3 0.1369 0.644 0.000 0.028 0.956 0.008 0.008
#> SRR1377881 1 0.0000 0.831 1.000 0.000 0.000 0.000 0.000
#> SRR1420912 5 0.5457 -0.282 0.000 0.000 0.460 0.060 0.480
#> SRR1313747 2 0.4238 0.783 0.000 0.776 0.136 0.088 0.000
#> SRR1414447 3 0.4830 0.397 0.000 0.004 0.560 0.016 0.420
#> SRR1358238 4 0.3837 0.829 0.308 0.000 0.000 0.692 0.000
#> SRR1322115 5 0.5587 0.328 0.072 0.000 0.000 0.428 0.500
#> SRR1330474 1 0.4138 0.187 0.616 0.000 0.000 0.384 0.000
#> SRR1093124 1 0.2020 0.737 0.900 0.000 0.000 0.100 0.000
#> SRR1456354 4 0.4227 0.581 0.420 0.000 0.000 0.580 0.000
#> SRR820859 5 0.5587 0.328 0.072 0.000 0.000 0.428 0.500
#> SRR1401860 5 0.5579 0.583 0.040 0.000 0.064 0.216 0.680
#> SRR1095599 3 0.1043 0.650 0.000 0.000 0.960 0.000 0.040
#> SRR1417130 1 0.2813 0.650 0.832 0.000 0.000 0.168 0.000
#> SRR1362597 2 0.2597 0.792 0.000 0.884 0.092 0.024 0.000
#> SRR1328464 3 0.3906 0.551 0.000 0.000 0.704 0.004 0.292
#> SRR1323957 1 0.4138 0.187 0.616 0.000 0.000 0.384 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0000 0.96144 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.96144 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.2135 0.71586 0.000 0.872 0.000 0.000 0.000 0.128
#> SRR1089106 4 0.1542 0.70345 0.052 0.000 0.004 0.936 0.008 0.000
#> SRR1401403 1 0.0000 0.96144 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1080534 5 0.4995 0.73835 0.032 0.000 0.236 0.040 0.680 0.012
#> SRR1487638 2 0.5259 0.50327 0.000 0.516 0.020 0.008 0.036 0.420
#> SRR1320650 6 0.4646 0.42656 0.000 0.224 0.072 0.000 0.012 0.692
#> SRR1073045 6 0.2912 0.62860 0.000 0.000 0.216 0.000 0.000 0.784
#> SRR1397030 6 0.3874 0.61655 0.000 0.068 0.172 0.000 0.000 0.760
#> SRR1439976 4 0.1204 0.70591 0.056 0.000 0.000 0.944 0.000 0.000
#> SRR1454050 2 0.5672 0.57368 0.000 0.516 0.008 0.028 0.060 0.388
#> SRR1070286 4 0.3618 0.60825 0.040 0.000 0.000 0.768 0.192 0.000
#> SRR1344185 6 0.3360 0.59219 0.000 0.000 0.264 0.000 0.004 0.732
#> SRR1084228 6 0.4761 0.59909 0.000 0.128 0.156 0.000 0.012 0.704
#> SRR1101907 6 0.2933 0.63377 0.000 0.004 0.200 0.000 0.000 0.796
#> SRR1079686 6 0.5477 0.43998 0.000 0.232 0.116 0.004 0.020 0.628
#> SRR1089761 3 0.3970 0.46234 0.000 0.000 0.692 0.000 0.028 0.280
#> SRR811403 2 0.5766 0.56691 0.000 0.508 0.012 0.028 0.060 0.392
#> SRR1440560 6 0.6825 -0.41462 0.000 0.376 0.096 0.028 0.060 0.440
#> SRR1079706 3 0.5177 0.16348 0.000 0.000 0.540 0.016 0.388 0.056
#> SRR1459101 3 0.1408 0.68379 0.000 0.000 0.944 0.000 0.020 0.036
#> SRR1335089 3 0.4499 0.31011 0.000 0.000 0.620 0.012 0.344 0.024
#> SRR1337840 4 0.3971 0.46711 0.448 0.000 0.000 0.548 0.004 0.000
#> SRR808682 2 0.2664 0.71754 0.000 0.816 0.000 0.000 0.000 0.184
#> SRR1443224 2 0.6258 0.48545 0.000 0.448 0.040 0.028 0.060 0.424
#> SRR1439831 1 0.0000 0.96144 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.3388 0.58941 0.000 0.000 0.792 0.000 0.172 0.036
#> SRR1457949 6 0.3534 0.58331 0.000 0.000 0.276 0.000 0.008 0.716
#> SRR1455969 6 0.2883 0.62995 0.000 0.000 0.212 0.000 0.000 0.788
#> SRR1415529 4 0.5245 0.49172 0.036 0.000 0.164 0.676 0.124 0.000
#> SRR1330018 2 0.2762 0.71600 0.000 0.804 0.000 0.000 0.000 0.196
#> SRR1370597 3 0.5446 0.40667 0.000 0.000 0.540 0.004 0.120 0.336
#> SRR1385524 2 0.3531 0.64711 0.000 0.672 0.000 0.000 0.000 0.328
#> SRR1351605 4 0.3098 0.68959 0.052 0.000 0.032 0.860 0.056 0.000
#> SRR1460148 1 0.0000 0.96144 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.5685 0.29878 0.000 0.208 0.640 0.008 0.044 0.100
#> SRR1318390 2 0.5766 0.56691 0.000 0.508 0.012 0.028 0.060 0.392
#> SRR1073095 2 0.2176 0.66983 0.000 0.896 0.000 0.024 0.080 0.000
#> SRR1410612 2 0.2176 0.66983 0.000 0.896 0.000 0.024 0.080 0.000
#> SRR1076892 1 0.0000 0.96144 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.0972 0.67982 0.000 0.000 0.964 0.000 0.008 0.028
#> SRR1481375 6 0.4097 0.00172 0.000 0.000 0.488 0.000 0.008 0.504
#> SRR1079356 5 0.3066 0.81066 0.000 0.000 0.044 0.124 0.832 0.000
#> SRR1455545 4 0.1204 0.70591 0.056 0.000 0.000 0.944 0.000 0.000
#> SRR1406157 1 0.0000 0.96144 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.2176 0.66983 0.000 0.896 0.000 0.024 0.080 0.000
#> SRR1420259 6 0.3360 0.59219 0.000 0.000 0.264 0.000 0.004 0.732
#> SRR1376963 2 0.6246 0.52071 0.000 0.468 0.040 0.028 0.060 0.404
#> SRR1101061 1 0.0000 0.96144 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.2176 0.66983 0.000 0.896 0.000 0.024 0.080 0.000
#> SRR1334791 1 0.0000 0.96144 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.2176 0.66983 0.000 0.896 0.000 0.024 0.080 0.000
#> SRR1330450 3 0.2858 0.62018 0.000 0.000 0.844 0.000 0.124 0.032
#> SRR1409108 2 0.4734 0.68790 0.000 0.684 0.000 0.028 0.048 0.240
#> SRR1416865 3 0.5177 0.16348 0.000 0.000 0.540 0.016 0.388 0.056
#> SRR1071832 4 0.5245 0.49172 0.036 0.000 0.164 0.676 0.124 0.000
#> SRR1093814 6 0.6087 -0.51112 0.000 0.436 0.028 0.028 0.060 0.448
#> SRR1381821 5 0.4564 0.74533 0.000 0.000 0.140 0.092 0.740 0.028
#> SRR811675 5 0.3108 0.81008 0.000 0.000 0.044 0.128 0.828 0.000
#> SRR1082423 1 0.0000 0.96144 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.2818 0.67637 0.000 0.872 0.000 0.024 0.076 0.028
#> SRR815944 3 0.2805 0.61683 0.000 0.000 0.828 0.000 0.012 0.160
#> SRR1332775 3 0.4676 0.28554 0.000 0.000 0.544 0.004 0.036 0.416
#> SRR1079143 3 0.0520 0.67485 0.000 0.000 0.984 0.000 0.008 0.008
#> SRR1476807 4 0.3944 0.49734 0.428 0.000 0.000 0.568 0.004 0.000
#> SRR1456634 4 0.3971 0.46711 0.448 0.000 0.000 0.548 0.004 0.000
#> SRR1083171 2 0.5513 0.46820 0.000 0.476 0.024 0.008 0.048 0.444
#> SRR1083337 1 0.0000 0.96144 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.1124 0.68154 0.000 0.000 0.956 0.000 0.008 0.036
#> SRR1435816 6 0.4913 0.31069 0.000 0.000 0.364 0.000 0.072 0.564
#> SRR1080580 5 0.4995 0.73835 0.032 0.000 0.236 0.040 0.680 0.012
#> SRR1366672 6 0.3874 0.61655 0.000 0.068 0.172 0.000 0.000 0.760
#> SRR1075150 6 0.4948 0.18055 0.000 0.316 0.076 0.000 0.004 0.604
#> SRR814137 4 0.3098 0.68959 0.052 0.000 0.032 0.860 0.056 0.000
#> SRR1475062 1 0.0000 0.96144 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.96144 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.2664 0.71803 0.000 0.816 0.000 0.000 0.000 0.184
#> SRR1097728 3 0.4658 0.30617 0.000 0.000 0.580 0.004 0.040 0.376
#> SRR1447172 2 0.2176 0.66983 0.000 0.896 0.000 0.024 0.080 0.000
#> SRR1472486 6 0.2912 0.62860 0.000 0.000 0.216 0.000 0.000 0.784
#> SRR1377881 1 0.0000 0.96144 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 3 0.2255 0.62485 0.000 0.000 0.892 0.004 0.088 0.016
#> SRR1313747 2 0.4885 0.67668 0.000 0.656 0.000 0.028 0.048 0.268
#> SRR1414447 3 0.2257 0.65577 0.000 0.000 0.876 0.000 0.008 0.116
#> SRR1358238 4 0.1444 0.71024 0.072 0.000 0.000 0.928 0.000 0.000
#> SRR1322115 5 0.4761 0.77072 0.048 0.000 0.040 0.212 0.700 0.000
#> SRR1330474 4 0.3971 0.46711 0.448 0.000 0.000 0.548 0.004 0.000
#> SRR1093124 1 0.2003 0.80144 0.884 0.000 0.000 0.116 0.000 0.000
#> SRR1456354 4 0.2762 0.69970 0.196 0.000 0.000 0.804 0.000 0.000
#> SRR820859 5 0.4761 0.77072 0.048 0.000 0.040 0.212 0.700 0.000
#> SRR1401860 5 0.4995 0.73835 0.032 0.000 0.236 0.040 0.680 0.012
#> SRR1095599 6 0.3650 0.57382 0.000 0.000 0.280 0.000 0.012 0.708
#> SRR1417130 1 0.3528 0.35902 0.700 0.000 0.000 0.296 0.004 0.000
#> SRR1362597 2 0.1753 0.71152 0.000 0.912 0.000 0.000 0.004 0.084
#> SRR1328464 3 0.4658 0.30617 0.000 0.000 0.580 0.004 0.040 0.376
#> SRR1323957 4 0.3971 0.46711 0.448 0.000 0.000 0.548 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["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 17633 rows and 97 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'SD' method.
#> Subgroups are detected by 'kmeans' method.
#> Performed in total 1250 partitions by row resampling.
#> Best k for subgroups seems to be 2.
#>
#> Following methods can be applied to this 'ConsensusPartition' object:
#> [1] "cola_report" "collect_classes" "collect_plots"
#> [4] "collect_stats" "colnames" "compare_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.All the plots in panels can be made by individual functions and they are plotted later in this section.
select_partition_number()
produces several plots showing different
statistics for choosing “optimized” k
. There are following statistics:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower PAC score, higher mean silhouette score or higher
concordance corresponds to better partition. Rand index and Jaccard index
measure how similar the current partition is compared to partition with k-1
.
If they are too similar, we won't accept k
is better than k-1
.
select_partition_number(res)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 0.918 0.938 0.973 0.4768 0.514 0.514
#> 3 3 0.790 0.827 0.924 0.3947 0.707 0.485
#> 4 4 0.701 0.600 0.771 0.1154 0.925 0.782
#> 5 5 0.725 0.729 0.824 0.0672 0.818 0.464
#> 6 6 0.779 0.721 0.819 0.0430 0.941 0.740
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
#> SRR1397242 1 0.000 0.944 1.000 0.000
#> SRR1093410 1 0.000 0.944 1.000 0.000
#> SRR1380523 2 0.000 0.989 0.000 1.000
#> SRR1089106 1 0.000 0.944 1.000 0.000
#> SRR1401403 1 0.000 0.944 1.000 0.000
#> SRR1080534 1 0.996 0.202 0.536 0.464
#> SRR1487638 2 0.000 0.989 0.000 1.000
#> SRR1320650 2 0.000 0.989 0.000 1.000
#> SRR1073045 2 0.000 0.989 0.000 1.000
#> SRR1397030 2 0.000 0.989 0.000 1.000
#> SRR1439976 1 0.000 0.944 1.000 0.000
#> SRR1454050 2 0.000 0.989 0.000 1.000
#> SRR1070286 1 0.000 0.944 1.000 0.000
#> SRR1344185 2 0.000 0.989 0.000 1.000
#> SRR1084228 2 0.000 0.989 0.000 1.000
#> SRR1101907 2 0.000 0.989 0.000 1.000
#> SRR1079686 2 0.000 0.989 0.000 1.000
#> SRR1089761 2 0.000 0.989 0.000 1.000
#> SRR811403 2 0.000 0.989 0.000 1.000
#> SRR1440560 2 0.000 0.989 0.000 1.000
#> SRR1079706 2 0.358 0.931 0.068 0.932
#> SRR1459101 2 0.000 0.989 0.000 1.000
#> SRR1335089 2 0.358 0.931 0.068 0.932
#> SRR1337840 1 0.000 0.944 1.000 0.000
#> SRR808682 2 0.000 0.989 0.000 1.000
#> SRR1443224 2 0.000 0.989 0.000 1.000
#> SRR1439831 1 0.000 0.944 1.000 0.000
#> SRR1087463 2 0.358 0.931 0.068 0.932
#> SRR1457949 2 0.000 0.989 0.000 1.000
#> SRR1455969 2 0.000 0.989 0.000 1.000
#> SRR1415529 1 0.722 0.758 0.800 0.200
#> SRR1330018 2 0.000 0.989 0.000 1.000
#> SRR1370597 2 0.000 0.989 0.000 1.000
#> SRR1385524 2 0.000 0.989 0.000 1.000
#> SRR1351605 1 0.000 0.944 1.000 0.000
#> SRR1460148 1 0.000 0.944 1.000 0.000
#> SRR1354159 2 0.000 0.989 0.000 1.000
#> SRR1318390 2 0.000 0.989 0.000 1.000
#> SRR1073095 2 0.000 0.989 0.000 1.000
#> SRR1410612 2 0.000 0.989 0.000 1.000
#> SRR1076892 1 0.000 0.944 1.000 0.000
#> SRR1340989 2 0.343 0.935 0.064 0.936
#> SRR1481375 2 0.000 0.989 0.000 1.000
#> SRR1079356 1 0.000 0.944 1.000 0.000
#> SRR1455545 1 0.000 0.944 1.000 0.000
#> SRR1406157 1 0.000 0.944 1.000 0.000
#> SRR1445920 2 0.000 0.989 0.000 1.000
#> SRR1420259 2 0.000 0.989 0.000 1.000
#> SRR1376963 2 0.000 0.989 0.000 1.000
#> SRR1101061 1 0.000 0.944 1.000 0.000
#> SRR1414496 2 0.000 0.989 0.000 1.000
#> SRR1334791 1 0.000 0.944 1.000 0.000
#> SRR1072129 2 0.000 0.989 0.000 1.000
#> SRR1330450 2 0.358 0.931 0.068 0.932
#> SRR1409108 2 0.000 0.989 0.000 1.000
#> SRR1416865 2 0.358 0.931 0.068 0.932
#> SRR1071832 1 0.722 0.758 0.800 0.200
#> SRR1093814 2 0.000 0.989 0.000 1.000
#> SRR1381821 1 0.997 0.189 0.532 0.468
#> SRR811675 1 0.000 0.944 1.000 0.000
#> SRR1082423 1 0.000 0.944 1.000 0.000
#> SRR1417296 2 0.000 0.989 0.000 1.000
#> SRR815944 2 0.000 0.989 0.000 1.000
#> SRR1332775 2 0.000 0.989 0.000 1.000
#> SRR1079143 2 0.163 0.970 0.024 0.976
#> SRR1476807 1 0.000 0.944 1.000 0.000
#> SRR1456634 1 0.000 0.944 1.000 0.000
#> SRR1083171 2 0.000 0.989 0.000 1.000
#> SRR1083337 1 0.000 0.944 1.000 0.000
#> SRR1377672 2 0.358 0.931 0.068 0.932
#> SRR1435816 2 0.000 0.989 0.000 1.000
#> SRR1080580 1 0.943 0.482 0.640 0.360
#> SRR1366672 2 0.000 0.989 0.000 1.000
#> SRR1075150 2 0.000 0.989 0.000 1.000
#> SRR814137 1 0.000 0.944 1.000 0.000
#> SRR1475062 1 0.000 0.944 1.000 0.000
#> SRR1340028 1 0.000 0.944 1.000 0.000
#> SRR1070789 2 0.000 0.989 0.000 1.000
#> SRR1097728 2 0.000 0.989 0.000 1.000
#> SRR1447172 2 0.000 0.989 0.000 1.000
#> SRR1472486 2 0.000 0.989 0.000 1.000
#> SRR1377881 1 0.000 0.944 1.000 0.000
#> SRR1420912 2 0.358 0.931 0.068 0.932
#> SRR1313747 2 0.000 0.989 0.000 1.000
#> SRR1414447 2 0.000 0.989 0.000 1.000
#> SRR1358238 1 0.000 0.944 1.000 0.000
#> SRR1322115 1 0.000 0.944 1.000 0.000
#> SRR1330474 1 0.000 0.944 1.000 0.000
#> SRR1093124 1 0.000 0.944 1.000 0.000
#> SRR1456354 1 0.000 0.944 1.000 0.000
#> SRR820859 1 0.662 0.790 0.828 0.172
#> SRR1401860 1 0.722 0.758 0.800 0.200
#> SRR1095599 2 0.000 0.989 0.000 1.000
#> SRR1417130 1 0.000 0.944 1.000 0.000
#> SRR1362597 2 0.000 0.989 0.000 1.000
#> SRR1328464 2 0.000 0.989 0.000 1.000
#> SRR1323957 1 0.000 0.944 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1093410 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1380523 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1089106 1 0.562 0.65306 0.692 0.000 0.308
#> SRR1401403 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1080534 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1487638 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1320650 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1073045 3 0.623 0.38672 0.000 0.436 0.564
#> SRR1397030 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1439976 1 0.543 0.68693 0.716 0.000 0.284
#> SRR1454050 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1070286 1 0.546 0.68167 0.712 0.000 0.288
#> SRR1344185 3 0.263 0.81397 0.000 0.084 0.916
#> SRR1084228 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1101907 2 0.626 -0.05281 0.000 0.552 0.448
#> SRR1079686 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1089761 3 0.000 0.85284 0.000 0.000 1.000
#> SRR811403 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1440560 2 0.623 -0.00526 0.000 0.564 0.436
#> SRR1079706 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1459101 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1335089 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1337840 1 0.000 0.93610 1.000 0.000 0.000
#> SRR808682 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1443224 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1439831 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1087463 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1457949 3 0.614 0.45407 0.000 0.404 0.596
#> SRR1455969 3 0.614 0.45378 0.000 0.404 0.596
#> SRR1415529 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1330018 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1370597 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1385524 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1351605 1 0.559 0.65894 0.696 0.000 0.304
#> SRR1460148 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1354159 3 0.613 0.43553 0.000 0.400 0.600
#> SRR1318390 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1073095 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1410612 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1076892 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1340989 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1481375 3 0.623 0.38672 0.000 0.436 0.564
#> SRR1079356 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1455545 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1406157 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1445920 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1420259 3 0.623 0.38672 0.000 0.436 0.564
#> SRR1376963 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1101061 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1414496 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1334791 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1072129 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1330450 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1409108 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1416865 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1071832 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1093814 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1381821 3 0.000 0.85284 0.000 0.000 1.000
#> SRR811675 3 0.475 0.58122 0.216 0.000 0.784
#> SRR1082423 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1417296 2 0.000 0.96226 0.000 1.000 0.000
#> SRR815944 3 0.164 0.83666 0.000 0.044 0.956
#> SRR1332775 3 0.615 0.44647 0.000 0.408 0.592
#> SRR1079143 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1476807 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1456634 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1083171 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1083337 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1377672 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1435816 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1080580 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1366672 3 0.624 0.37678 0.000 0.440 0.560
#> SRR1075150 2 0.000 0.96226 0.000 1.000 0.000
#> SRR814137 1 0.593 0.56973 0.644 0.000 0.356
#> SRR1475062 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1340028 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1070789 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1097728 3 0.475 0.70316 0.000 0.216 0.784
#> SRR1447172 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1472486 3 0.623 0.38672 0.000 0.436 0.564
#> SRR1377881 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1420912 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1313747 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1414447 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1358238 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1322115 1 0.543 0.68650 0.716 0.000 0.284
#> SRR1330474 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1093124 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1456354 1 0.000 0.93610 1.000 0.000 0.000
#> SRR820859 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1401860 3 0.000 0.85284 0.000 0.000 1.000
#> SRR1095599 3 0.236 0.82114 0.000 0.072 0.928
#> SRR1417130 1 0.000 0.93610 1.000 0.000 0.000
#> SRR1362597 2 0.000 0.96226 0.000 1.000 0.000
#> SRR1328464 3 0.445 0.72725 0.000 0.192 0.808
#> SRR1323957 1 0.000 0.93610 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.4790 0.7581 0.000 0.620 0.000 0.380
#> SRR1089106 4 0.5467 0.7659 0.024 0.000 0.364 0.612
#> SRR1401403 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1080534 3 0.3266 0.2435 0.000 0.000 0.832 0.168
#> SRR1487638 2 0.4790 0.7581 0.000 0.620 0.000 0.380
#> SRR1320650 2 0.0336 0.6495 0.000 0.992 0.000 0.008
#> SRR1073045 3 0.4967 0.5292 0.000 0.452 0.548 0.000
#> SRR1397030 2 0.3300 0.4587 0.000 0.848 0.144 0.008
#> SRR1439976 4 0.6630 0.8173 0.136 0.000 0.252 0.612
#> SRR1454050 2 0.1576 0.5961 0.000 0.948 0.048 0.004
#> SRR1070286 4 0.6630 0.8173 0.136 0.000 0.252 0.612
#> SRR1344185 3 0.4746 0.5993 0.000 0.368 0.632 0.000
#> SRR1084228 2 0.0336 0.6495 0.000 0.992 0.000 0.008
#> SRR1101907 3 0.4981 0.5187 0.000 0.464 0.536 0.000
#> SRR1079686 2 0.0927 0.6374 0.000 0.976 0.016 0.008
#> SRR1089761 3 0.2469 0.5724 0.000 0.108 0.892 0.000
#> SRR811403 2 0.0188 0.6458 0.000 0.996 0.000 0.004
#> SRR1440560 2 0.5257 -0.3931 0.000 0.548 0.444 0.008
#> SRR1079706 3 0.3123 0.2691 0.000 0.000 0.844 0.156
#> SRR1459101 3 0.0188 0.5093 0.000 0.004 0.996 0.000
#> SRR1335089 3 0.0000 0.5055 0.000 0.000 1.000 0.000
#> SRR1337840 1 0.2868 0.8375 0.864 0.000 0.000 0.136
#> SRR808682 2 0.4790 0.7581 0.000 0.620 0.000 0.380
#> SRR1443224 2 0.3893 0.3345 0.000 0.796 0.196 0.008
#> SRR1439831 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1087463 3 0.0188 0.5049 0.000 0.000 0.996 0.004
#> SRR1457949 3 0.4967 0.5292 0.000 0.452 0.548 0.000
#> SRR1455969 3 0.4977 0.5233 0.000 0.460 0.540 0.000
#> SRR1415529 4 0.4961 0.7013 0.000 0.000 0.448 0.552
#> SRR1330018 2 0.4790 0.7581 0.000 0.620 0.000 0.380
#> SRR1370597 3 0.4072 0.6200 0.000 0.252 0.748 0.000
#> SRR1385524 2 0.4790 0.7581 0.000 0.620 0.000 0.380
#> SRR1351605 4 0.6630 0.8173 0.136 0.000 0.252 0.612
#> SRR1460148 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1354159 3 0.5277 0.5112 0.000 0.460 0.532 0.008
#> SRR1318390 2 0.0657 0.6361 0.000 0.984 0.012 0.004
#> SRR1073095 2 0.4790 0.7581 0.000 0.620 0.000 0.380
#> SRR1410612 2 0.4790 0.7581 0.000 0.620 0.000 0.380
#> SRR1076892 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1340989 3 0.0672 0.5016 0.000 0.008 0.984 0.008
#> SRR1481375 3 0.4967 0.5292 0.000 0.452 0.548 0.000
#> SRR1079356 4 0.4985 0.6774 0.000 0.000 0.468 0.532
#> SRR1455545 4 0.5543 0.3745 0.360 0.000 0.028 0.612
#> SRR1406157 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.4790 0.7581 0.000 0.620 0.000 0.380
#> SRR1420259 3 0.4967 0.5292 0.000 0.452 0.548 0.000
#> SRR1376963 2 0.0336 0.6440 0.000 0.992 0.000 0.008
#> SRR1101061 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.4790 0.7581 0.000 0.620 0.000 0.380
#> SRR1334791 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.4790 0.7581 0.000 0.620 0.000 0.380
#> SRR1330450 3 0.0592 0.4926 0.000 0.000 0.984 0.016
#> SRR1409108 2 0.4605 0.7513 0.000 0.664 0.000 0.336
#> SRR1416865 3 0.3444 0.2113 0.000 0.000 0.816 0.184
#> SRR1071832 4 0.4961 0.7013 0.000 0.000 0.448 0.552
#> SRR1093814 2 0.4539 0.1229 0.000 0.720 0.272 0.008
#> SRR1381821 3 0.4679 -0.3132 0.000 0.000 0.648 0.352
#> SRR811675 3 0.5161 -0.6171 0.004 0.000 0.520 0.476
#> SRR1082423 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1417296 2 0.4804 0.7562 0.000 0.616 0.000 0.384
#> SRR815944 3 0.4313 0.6198 0.000 0.260 0.736 0.004
#> SRR1332775 3 0.4967 0.5292 0.000 0.452 0.548 0.000
#> SRR1079143 3 0.0657 0.5089 0.000 0.012 0.984 0.004
#> SRR1476807 1 0.3123 0.8178 0.844 0.000 0.000 0.156
#> SRR1456634 1 0.1557 0.9001 0.944 0.000 0.000 0.056
#> SRR1083171 2 0.0921 0.6211 0.000 0.972 0.028 0.000
#> SRR1083337 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1377672 3 0.0804 0.5058 0.000 0.012 0.980 0.008
#> SRR1435816 3 0.4193 0.6224 0.000 0.268 0.732 0.000
#> SRR1080580 3 0.3356 0.2248 0.000 0.000 0.824 0.176
#> SRR1366672 3 0.4967 0.5292 0.000 0.452 0.548 0.000
#> SRR1075150 2 0.0469 0.6506 0.000 0.988 0.000 0.012
#> SRR814137 4 0.6612 0.8167 0.132 0.000 0.256 0.612
#> SRR1475062 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1070789 2 0.4790 0.7581 0.000 0.620 0.000 0.380
#> SRR1097728 3 0.4746 0.5993 0.000 0.368 0.632 0.000
#> SRR1447172 2 0.4790 0.7581 0.000 0.620 0.000 0.380
#> SRR1472486 3 0.4967 0.5292 0.000 0.452 0.548 0.000
#> SRR1377881 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1420912 3 0.5292 -0.6155 0.000 0.008 0.512 0.480
#> SRR1313747 2 0.4790 0.7561 0.000 0.620 0.000 0.380
#> SRR1414447 3 0.2334 0.5580 0.000 0.088 0.908 0.004
#> SRR1358238 1 0.4888 0.3507 0.588 0.000 0.000 0.412
#> SRR1322115 4 0.7606 0.7199 0.276 0.000 0.248 0.476
#> SRR1330474 1 0.1557 0.9001 0.944 0.000 0.000 0.056
#> SRR1093124 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1456354 1 0.4972 0.2183 0.544 0.000 0.000 0.456
#> SRR820859 3 0.4992 -0.6087 0.000 0.000 0.524 0.476
#> SRR1401860 3 0.4250 -0.0894 0.000 0.000 0.724 0.276
#> SRR1095599 3 0.4746 0.5993 0.000 0.368 0.632 0.000
#> SRR1417130 1 0.0000 0.9309 1.000 0.000 0.000 0.000
#> SRR1362597 2 0.4790 0.7581 0.000 0.620 0.000 0.380
#> SRR1328464 3 0.4746 0.5993 0.000 0.368 0.632 0.000
#> SRR1323957 1 0.2868 0.8375 0.864 0.000 0.000 0.136
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0162 0.891 0.996 0.000 0.000 0.004 0.000
#> SRR1093410 1 0.0162 0.891 0.996 0.000 0.000 0.004 0.000
#> SRR1380523 2 0.0290 0.969 0.000 0.992 0.000 0.008 0.000
#> SRR1089106 4 0.4088 0.704 0.000 0.000 0.000 0.632 0.368
#> SRR1401403 1 0.0162 0.891 0.996 0.000 0.000 0.004 0.000
#> SRR1080534 5 0.1364 0.698 0.000 0.000 0.036 0.012 0.952
#> SRR1487638 2 0.0579 0.964 0.000 0.984 0.008 0.008 0.000
#> SRR1320650 3 0.4613 0.709 0.000 0.200 0.728 0.072 0.000
#> SRR1073045 3 0.1809 0.767 0.000 0.012 0.928 0.000 0.060
#> SRR1397030 3 0.2699 0.775 0.000 0.100 0.880 0.008 0.012
#> SRR1439976 4 0.4786 0.786 0.040 0.000 0.000 0.652 0.308
#> SRR1454050 3 0.5449 0.701 0.000 0.104 0.632 0.264 0.000
#> SRR1070286 4 0.4849 0.747 0.032 0.000 0.000 0.608 0.360
#> SRR1344185 3 0.1608 0.761 0.000 0.000 0.928 0.000 0.072
#> SRR1084228 3 0.4645 0.707 0.000 0.204 0.724 0.072 0.000
#> SRR1101907 3 0.1809 0.778 0.000 0.012 0.928 0.060 0.000
#> SRR1079686 3 0.4960 0.715 0.000 0.180 0.708 0.112 0.000
#> SRR1089761 5 0.4857 0.593 0.000 0.000 0.324 0.040 0.636
#> SRR811403 3 0.5941 0.652 0.000 0.160 0.584 0.256 0.000
#> SRR1440560 3 0.4857 0.728 0.000 0.036 0.688 0.264 0.012
#> SRR1079706 5 0.1484 0.701 0.000 0.000 0.048 0.008 0.944
#> SRR1459101 5 0.4221 0.675 0.000 0.000 0.236 0.032 0.732
#> SRR1335089 5 0.3224 0.711 0.000 0.000 0.160 0.016 0.824
#> SRR1337840 1 0.4273 0.267 0.552 0.000 0.000 0.448 0.000
#> SRR808682 2 0.0290 0.969 0.000 0.992 0.000 0.008 0.000
#> SRR1443224 3 0.4774 0.730 0.000 0.044 0.688 0.264 0.004
#> SRR1439831 1 0.0324 0.891 0.992 0.000 0.004 0.004 0.000
#> SRR1087463 5 0.3093 0.709 0.000 0.000 0.168 0.008 0.824
#> SRR1457949 3 0.2208 0.764 0.000 0.012 0.916 0.012 0.060
#> SRR1455969 3 0.1740 0.768 0.000 0.012 0.932 0.000 0.056
#> SRR1415529 5 0.3039 0.499 0.000 0.000 0.000 0.192 0.808
#> SRR1330018 2 0.0290 0.969 0.000 0.992 0.000 0.008 0.000
#> SRR1370597 5 0.4608 0.573 0.000 0.000 0.336 0.024 0.640
#> SRR1385524 2 0.0290 0.969 0.000 0.992 0.000 0.008 0.000
#> SRR1351605 4 0.4786 0.786 0.040 0.000 0.000 0.652 0.308
#> SRR1460148 1 0.0324 0.891 0.992 0.000 0.004 0.004 0.000
#> SRR1354159 3 0.4777 0.727 0.000 0.028 0.696 0.260 0.016
#> SRR1318390 3 0.5882 0.662 0.000 0.148 0.588 0.264 0.000
#> SRR1073095 2 0.0000 0.969 0.000 1.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.969 0.000 1.000 0.000 0.000 0.000
#> SRR1076892 1 0.0000 0.892 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 5 0.3771 0.706 0.000 0.000 0.164 0.040 0.796
#> SRR1481375 3 0.2275 0.763 0.000 0.012 0.912 0.012 0.064
#> SRR1079356 5 0.3242 0.450 0.000 0.000 0.000 0.216 0.784
#> SRR1455545 4 0.5274 0.752 0.132 0.000 0.000 0.676 0.192
#> SRR1406157 1 0.0000 0.892 1.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.969 0.000 1.000 0.000 0.000 0.000
#> SRR1420259 3 0.2208 0.764 0.000 0.012 0.916 0.012 0.060
#> SRR1376963 3 0.6268 0.624 0.000 0.184 0.556 0.256 0.004
#> SRR1101061 1 0.0324 0.891 0.992 0.000 0.004 0.004 0.000
#> SRR1414496 2 0.0000 0.969 0.000 1.000 0.000 0.000 0.000
#> SRR1334791 1 0.0162 0.891 0.996 0.000 0.000 0.004 0.000
#> SRR1072129 2 0.0000 0.969 0.000 1.000 0.000 0.000 0.000
#> SRR1330450 5 0.3151 0.712 0.000 0.000 0.144 0.020 0.836
#> SRR1409108 2 0.4718 0.675 0.000 0.728 0.092 0.180 0.000
#> SRR1416865 5 0.0798 0.690 0.000 0.000 0.016 0.008 0.976
#> SRR1071832 5 0.3143 0.480 0.000 0.000 0.000 0.204 0.796
#> SRR1093814 3 0.4705 0.731 0.000 0.040 0.692 0.264 0.004
#> SRR1381821 5 0.1041 0.665 0.000 0.000 0.004 0.032 0.964
#> SRR811675 5 0.3177 0.467 0.000 0.000 0.000 0.208 0.792
#> SRR1082423 1 0.0451 0.890 0.988 0.000 0.004 0.008 0.000
#> SRR1417296 2 0.0451 0.961 0.000 0.988 0.008 0.004 0.000
#> SRR815944 5 0.6118 0.276 0.000 0.000 0.404 0.128 0.468
#> SRR1332775 3 0.2727 0.756 0.000 0.012 0.888 0.020 0.080
#> SRR1079143 5 0.4289 0.696 0.000 0.000 0.176 0.064 0.760
#> SRR1476807 1 0.4297 0.195 0.528 0.000 0.000 0.472 0.000
#> SRR1456634 1 0.3210 0.700 0.788 0.000 0.000 0.212 0.000
#> SRR1083171 3 0.5447 0.701 0.000 0.172 0.660 0.168 0.000
#> SRR1083337 1 0.0000 0.892 1.000 0.000 0.000 0.000 0.000
#> SRR1377672 5 0.4547 0.687 0.000 0.000 0.192 0.072 0.736
#> SRR1435816 5 0.4597 0.455 0.000 0.000 0.424 0.012 0.564
#> SRR1080580 5 0.1568 0.697 0.000 0.000 0.036 0.020 0.944
#> SRR1366672 3 0.1809 0.767 0.000 0.012 0.928 0.000 0.060
#> SRR1075150 3 0.3916 0.669 0.000 0.256 0.732 0.012 0.000
#> SRR814137 4 0.4734 0.783 0.036 0.000 0.000 0.652 0.312
#> SRR1475062 1 0.0451 0.890 0.988 0.000 0.004 0.008 0.000
#> SRR1340028 1 0.0162 0.891 0.996 0.000 0.000 0.004 0.000
#> SRR1070789 2 0.0162 0.968 0.000 0.996 0.000 0.004 0.000
#> SRR1097728 3 0.2305 0.743 0.000 0.000 0.896 0.012 0.092
#> SRR1447172 2 0.0000 0.969 0.000 1.000 0.000 0.000 0.000
#> SRR1472486 3 0.2208 0.764 0.000 0.012 0.916 0.012 0.060
#> SRR1377881 1 0.0324 0.891 0.992 0.000 0.004 0.004 0.000
#> SRR1420912 5 0.2193 0.617 0.000 0.000 0.008 0.092 0.900
#> SRR1313747 2 0.2722 0.868 0.000 0.872 0.020 0.108 0.000
#> SRR1414447 5 0.5602 0.596 0.000 0.000 0.148 0.216 0.636
#> SRR1358238 4 0.4232 0.442 0.312 0.000 0.000 0.676 0.012
#> SRR1322115 5 0.6860 -0.389 0.352 0.000 0.004 0.252 0.392
#> SRR1330474 1 0.3242 0.695 0.784 0.000 0.000 0.216 0.000
#> SRR1093124 1 0.0000 0.892 1.000 0.000 0.000 0.000 0.000
#> SRR1456354 4 0.4206 0.491 0.288 0.000 0.000 0.696 0.016
#> SRR820859 5 0.2732 0.534 0.000 0.000 0.000 0.160 0.840
#> SRR1401860 5 0.1579 0.693 0.000 0.000 0.032 0.024 0.944
#> SRR1095599 3 0.3391 0.618 0.000 0.000 0.800 0.012 0.188
#> SRR1417130 1 0.0324 0.891 0.992 0.000 0.004 0.004 0.000
#> SRR1362597 2 0.0290 0.969 0.000 0.992 0.000 0.008 0.000
#> SRR1328464 3 0.2674 0.716 0.000 0.000 0.868 0.012 0.120
#> SRR1323957 1 0.4273 0.267 0.552 0.000 0.000 0.448 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0260 0.913 0.992 0.000 0.008 0.000 0.000 0.000
#> SRR1093410 1 0.0260 0.913 0.992 0.000 0.008 0.000 0.000 0.000
#> SRR1380523 2 0.1410 0.913 0.000 0.944 0.004 0.044 0.000 0.008
#> SRR1089106 4 0.3683 0.632 0.000 0.000 0.044 0.764 0.192 0.000
#> SRR1401403 1 0.0146 0.913 0.996 0.000 0.004 0.000 0.000 0.000
#> SRR1080534 5 0.1887 0.724 0.000 0.000 0.048 0.016 0.924 0.012
#> SRR1487638 2 0.1934 0.894 0.000 0.916 0.044 0.040 0.000 0.000
#> SRR1320650 6 0.4926 0.463 0.000 0.072 0.180 0.044 0.000 0.704
#> SRR1073045 6 0.1096 0.771 0.000 0.004 0.020 0.008 0.004 0.964
#> SRR1397030 6 0.2583 0.717 0.000 0.016 0.052 0.044 0.000 0.888
#> SRR1439976 4 0.2520 0.736 0.012 0.000 0.008 0.872 0.108 0.000
#> SRR1454050 3 0.4486 0.910 0.000 0.048 0.656 0.004 0.000 0.292
#> SRR1070286 4 0.4628 0.554 0.012 0.000 0.052 0.668 0.268 0.000
#> SRR1344185 6 0.0909 0.772 0.000 0.000 0.020 0.000 0.012 0.968
#> SRR1084228 6 0.5376 0.386 0.000 0.112 0.180 0.044 0.000 0.664
#> SRR1101907 6 0.3158 0.614 0.000 0.004 0.164 0.020 0.000 0.812
#> SRR1079686 6 0.5956 -0.210 0.000 0.092 0.352 0.044 0.000 0.512
#> SRR1089761 5 0.5297 0.682 0.000 0.000 0.148 0.016 0.644 0.192
#> SRR811403 3 0.4847 0.885 0.000 0.080 0.636 0.004 0.000 0.280
#> SRR1440560 3 0.3697 0.855 0.000 0.016 0.732 0.000 0.004 0.248
#> SRR1079706 5 0.1332 0.734 0.000 0.000 0.028 0.012 0.952 0.008
#> SRR1459101 5 0.4946 0.708 0.000 0.000 0.128 0.016 0.688 0.168
#> SRR1335089 5 0.4138 0.739 0.000 0.000 0.100 0.016 0.772 0.112
#> SRR1337840 4 0.5150 0.506 0.312 0.000 0.096 0.588 0.000 0.004
#> SRR808682 2 0.1410 0.913 0.000 0.944 0.004 0.044 0.000 0.008
#> SRR1443224 3 0.4045 0.900 0.000 0.024 0.664 0.000 0.000 0.312
#> SRR1439831 1 0.1387 0.904 0.932 0.000 0.068 0.000 0.000 0.000
#> SRR1087463 5 0.3903 0.741 0.000 0.000 0.084 0.016 0.792 0.108
#> SRR1457949 6 0.0291 0.773 0.000 0.004 0.000 0.000 0.004 0.992
#> SRR1455969 6 0.1096 0.772 0.000 0.004 0.020 0.008 0.004 0.964
#> SRR1415529 5 0.3953 0.630 0.000 0.000 0.060 0.196 0.744 0.000
#> SRR1330018 2 0.1410 0.913 0.000 0.944 0.004 0.044 0.000 0.008
#> SRR1370597 5 0.4348 0.630 0.000 0.000 0.056 0.000 0.676 0.268
#> SRR1385524 2 0.1410 0.913 0.000 0.944 0.004 0.044 0.000 0.008
#> SRR1351605 4 0.2312 0.737 0.012 0.000 0.000 0.876 0.112 0.000
#> SRR1460148 1 0.1387 0.904 0.932 0.000 0.068 0.000 0.000 0.000
#> SRR1354159 3 0.3721 0.858 0.000 0.016 0.728 0.000 0.004 0.252
#> SRR1318390 3 0.4598 0.907 0.000 0.060 0.656 0.004 0.000 0.280
#> SRR1073095 2 0.0000 0.922 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.922 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1076892 1 0.0260 0.913 0.992 0.000 0.008 0.000 0.000 0.000
#> SRR1340989 5 0.4621 0.726 0.000 0.000 0.148 0.016 0.724 0.112
#> SRR1481375 6 0.0436 0.772 0.000 0.004 0.004 0.000 0.004 0.988
#> SRR1079356 5 0.4382 0.472 0.000 0.000 0.060 0.264 0.676 0.000
#> SRR1455545 4 0.2119 0.753 0.036 0.000 0.000 0.904 0.060 0.000
#> SRR1406157 1 0.0146 0.913 0.996 0.000 0.004 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.922 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1420259 6 0.0436 0.774 0.000 0.004 0.004 0.000 0.004 0.988
#> SRR1376963 3 0.4816 0.887 0.000 0.084 0.648 0.004 0.000 0.264
#> SRR1101061 1 0.1387 0.904 0.932 0.000 0.068 0.000 0.000 0.000
#> SRR1414496 2 0.0458 0.918 0.000 0.984 0.000 0.016 0.000 0.000
#> SRR1334791 1 0.0146 0.913 0.996 0.000 0.004 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.922 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1330450 5 0.4095 0.740 0.000 0.000 0.104 0.016 0.776 0.104
#> SRR1409108 2 0.4998 0.211 0.000 0.548 0.392 0.012 0.000 0.048
#> SRR1416865 5 0.1297 0.737 0.000 0.000 0.040 0.012 0.948 0.000
#> SRR1071832 5 0.4121 0.606 0.000 0.000 0.060 0.220 0.720 0.000
#> SRR1093814 3 0.3986 0.895 0.000 0.020 0.664 0.000 0.000 0.316
#> SRR1381821 5 0.1779 0.717 0.000 0.000 0.064 0.016 0.920 0.000
#> SRR811675 5 0.4294 0.496 0.000 0.000 0.060 0.248 0.692 0.000
#> SRR1082423 1 0.1556 0.900 0.920 0.000 0.080 0.000 0.000 0.000
#> SRR1417296 2 0.0692 0.914 0.000 0.976 0.004 0.020 0.000 0.000
#> SRR815944 5 0.5678 0.621 0.000 0.000 0.196 0.012 0.580 0.212
#> SRR1332775 6 0.1237 0.761 0.000 0.004 0.020 0.000 0.020 0.956
#> SRR1079143 5 0.4621 0.722 0.000 0.000 0.180 0.016 0.716 0.088
#> SRR1476807 4 0.5040 0.552 0.284 0.000 0.096 0.616 0.000 0.004
#> SRR1456634 1 0.5098 0.295 0.608 0.000 0.100 0.288 0.000 0.004
#> SRR1083171 6 0.6026 -0.386 0.000 0.092 0.400 0.044 0.000 0.464
#> SRR1083337 1 0.0146 0.913 0.996 0.000 0.004 0.000 0.000 0.000
#> SRR1377672 5 0.4840 0.712 0.000 0.000 0.204 0.016 0.688 0.092
#> SRR1435816 6 0.3445 0.478 0.000 0.000 0.008 0.000 0.260 0.732
#> SRR1080580 5 0.2039 0.724 0.000 0.000 0.052 0.020 0.916 0.012
#> SRR1366672 6 0.0837 0.771 0.000 0.004 0.020 0.004 0.000 0.972
#> SRR1075150 6 0.5103 0.454 0.000 0.184 0.084 0.044 0.000 0.688
#> SRR814137 4 0.2755 0.728 0.012 0.000 0.012 0.856 0.120 0.000
#> SRR1475062 1 0.1556 0.900 0.920 0.000 0.080 0.000 0.000 0.000
#> SRR1340028 1 0.0146 0.913 0.996 0.000 0.004 0.000 0.000 0.000
#> SRR1070789 2 0.0146 0.922 0.000 0.996 0.000 0.004 0.000 0.000
#> SRR1097728 6 0.0692 0.765 0.000 0.000 0.004 0.000 0.020 0.976
#> SRR1447172 2 0.0458 0.918 0.000 0.984 0.000 0.016 0.000 0.000
#> SRR1472486 6 0.0551 0.774 0.000 0.004 0.000 0.008 0.004 0.984
#> SRR1377881 1 0.1501 0.900 0.924 0.000 0.076 0.000 0.000 0.000
#> SRR1420912 5 0.2875 0.736 0.000 0.000 0.096 0.052 0.852 0.000
#> SRR1313747 2 0.3748 0.579 0.000 0.688 0.300 0.012 0.000 0.000
#> SRR1414447 5 0.4822 0.671 0.000 0.000 0.264 0.012 0.656 0.068
#> SRR1358238 4 0.3706 0.728 0.104 0.000 0.096 0.796 0.000 0.004
#> SRR1322115 5 0.7350 -0.235 0.288 0.000 0.104 0.288 0.320 0.000
#> SRR1330474 1 0.5203 0.232 0.580 0.000 0.100 0.316 0.000 0.004
#> SRR1093124 1 0.0000 0.913 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1456354 4 0.3706 0.728 0.104 0.000 0.096 0.796 0.000 0.004
#> SRR820859 5 0.3270 0.648 0.000 0.000 0.060 0.120 0.820 0.000
#> SRR1401860 5 0.2426 0.711 0.000 0.000 0.048 0.044 0.896 0.012
#> SRR1095599 6 0.2234 0.661 0.000 0.000 0.004 0.000 0.124 0.872
#> SRR1417130 1 0.1387 0.905 0.932 0.000 0.068 0.000 0.000 0.000
#> SRR1362597 2 0.1268 0.915 0.000 0.952 0.004 0.036 0.000 0.008
#> SRR1328464 6 0.1643 0.724 0.000 0.000 0.008 0.000 0.068 0.924
#> SRR1323957 4 0.5150 0.506 0.312 0.000 0.096 0.588 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", "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 17633 rows and 97 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 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.975 0.5013 0.497 0.497
#> 3 3 0.940 0.941 0.975 0.2552 0.855 0.716
#> 4 4 0.817 0.843 0.920 0.0872 0.928 0.813
#> 5 5 0.737 0.610 0.803 0.0975 0.922 0.765
#> 6 6 0.738 0.718 0.839 0.0512 0.911 0.681
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
#> SRR1397242 1 0.000 0.969 1.000 0.000
#> SRR1093410 1 0.000 0.969 1.000 0.000
#> SRR1380523 2 0.000 0.976 0.000 1.000
#> SRR1089106 1 0.000 0.969 1.000 0.000
#> SRR1401403 1 0.000 0.969 1.000 0.000
#> SRR1080534 1 0.000 0.969 1.000 0.000
#> SRR1487638 2 0.000 0.976 0.000 1.000
#> SRR1320650 2 0.000 0.976 0.000 1.000
#> SRR1073045 2 0.000 0.976 0.000 1.000
#> SRR1397030 2 0.000 0.976 0.000 1.000
#> SRR1439976 1 0.000 0.969 1.000 0.000
#> SRR1454050 2 0.000 0.976 0.000 1.000
#> SRR1070286 1 0.000 0.969 1.000 0.000
#> SRR1344185 2 0.000 0.976 0.000 1.000
#> SRR1084228 2 0.000 0.976 0.000 1.000
#> SRR1101907 2 0.000 0.976 0.000 1.000
#> SRR1079686 2 0.000 0.976 0.000 1.000
#> SRR1089761 2 0.000 0.976 0.000 1.000
#> SRR811403 2 0.000 0.976 0.000 1.000
#> SRR1440560 2 0.000 0.976 0.000 1.000
#> SRR1079706 1 0.204 0.940 0.968 0.032
#> SRR1459101 2 0.000 0.976 0.000 1.000
#> SRR1335089 1 0.971 0.336 0.600 0.400
#> SRR1337840 1 0.000 0.969 1.000 0.000
#> SRR808682 2 0.000 0.976 0.000 1.000
#> SRR1443224 2 0.000 0.976 0.000 1.000
#> SRR1439831 1 0.000 0.969 1.000 0.000
#> SRR1087463 1 0.971 0.336 0.600 0.400
#> SRR1457949 2 0.000 0.976 0.000 1.000
#> SRR1455969 2 0.000 0.976 0.000 1.000
#> SRR1415529 1 0.000 0.969 1.000 0.000
#> SRR1330018 2 0.000 0.976 0.000 1.000
#> SRR1370597 2 0.000 0.976 0.000 1.000
#> SRR1385524 2 0.000 0.976 0.000 1.000
#> SRR1351605 1 0.000 0.969 1.000 0.000
#> SRR1460148 1 0.000 0.969 1.000 0.000
#> SRR1354159 2 0.000 0.976 0.000 1.000
#> SRR1318390 2 0.000 0.976 0.000 1.000
#> SRR1073095 2 0.000 0.976 0.000 1.000
#> SRR1410612 2 0.000 0.976 0.000 1.000
#> SRR1076892 1 0.000 0.969 1.000 0.000
#> SRR1340989 2 0.978 0.279 0.412 0.588
#> SRR1481375 2 0.000 0.976 0.000 1.000
#> SRR1079356 1 0.000 0.969 1.000 0.000
#> SRR1455545 1 0.000 0.969 1.000 0.000
#> SRR1406157 1 0.000 0.969 1.000 0.000
#> SRR1445920 2 0.000 0.976 0.000 1.000
#> SRR1420259 2 0.000 0.976 0.000 1.000
#> SRR1376963 2 0.000 0.976 0.000 1.000
#> SRR1101061 1 0.000 0.969 1.000 0.000
#> SRR1414496 2 0.000 0.976 0.000 1.000
#> SRR1334791 1 0.000 0.969 1.000 0.000
#> SRR1072129 2 0.000 0.976 0.000 1.000
#> SRR1330450 1 0.971 0.336 0.600 0.400
#> SRR1409108 2 0.000 0.976 0.000 1.000
#> SRR1416865 1 0.327 0.912 0.940 0.060
#> SRR1071832 1 0.000 0.969 1.000 0.000
#> SRR1093814 2 0.000 0.976 0.000 1.000
#> SRR1381821 1 0.000 0.969 1.000 0.000
#> SRR811675 1 0.000 0.969 1.000 0.000
#> SRR1082423 1 0.000 0.969 1.000 0.000
#> SRR1417296 2 0.000 0.976 0.000 1.000
#> SRR815944 2 0.000 0.976 0.000 1.000
#> SRR1332775 2 0.000 0.976 0.000 1.000
#> SRR1079143 2 0.917 0.484 0.332 0.668
#> SRR1476807 1 0.000 0.969 1.000 0.000
#> SRR1456634 1 0.000 0.969 1.000 0.000
#> SRR1083171 2 0.000 0.976 0.000 1.000
#> SRR1083337 1 0.000 0.969 1.000 0.000
#> SRR1377672 2 0.983 0.243 0.424 0.576
#> SRR1435816 2 0.000 0.976 0.000 1.000
#> SRR1080580 1 0.000 0.969 1.000 0.000
#> SRR1366672 2 0.000 0.976 0.000 1.000
#> SRR1075150 2 0.000 0.976 0.000 1.000
#> SRR814137 1 0.000 0.969 1.000 0.000
#> SRR1475062 1 0.000 0.969 1.000 0.000
#> SRR1340028 1 0.000 0.969 1.000 0.000
#> SRR1070789 2 0.000 0.976 0.000 1.000
#> SRR1097728 2 0.000 0.976 0.000 1.000
#> SRR1447172 2 0.000 0.976 0.000 1.000
#> SRR1472486 2 0.000 0.976 0.000 1.000
#> SRR1377881 1 0.000 0.969 1.000 0.000
#> SRR1420912 1 0.000 0.969 1.000 0.000
#> SRR1313747 2 0.000 0.976 0.000 1.000
#> SRR1414447 2 0.000 0.976 0.000 1.000
#> SRR1358238 1 0.000 0.969 1.000 0.000
#> SRR1322115 1 0.000 0.969 1.000 0.000
#> SRR1330474 1 0.000 0.969 1.000 0.000
#> SRR1093124 1 0.000 0.969 1.000 0.000
#> SRR1456354 1 0.000 0.969 1.000 0.000
#> SRR820859 1 0.000 0.969 1.000 0.000
#> SRR1401860 1 0.000 0.969 1.000 0.000
#> SRR1095599 2 0.000 0.976 0.000 1.000
#> SRR1417130 1 0.000 0.969 1.000 0.000
#> SRR1362597 2 0.000 0.976 0.000 1.000
#> SRR1328464 2 0.000 0.976 0.000 1.000
#> SRR1323957 1 0.000 0.969 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1089106 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1401403 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1080534 1 0.4555 0.755 0.800 0.000 0.200
#> SRR1487638 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1320650 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1073045 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1397030 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1439976 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1454050 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1070286 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1344185 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1084228 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1101907 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1079686 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1089761 3 0.0000 0.957 0.000 0.000 1.000
#> SRR811403 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1440560 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1079706 3 0.0000 0.957 0.000 0.000 1.000
#> SRR1459101 3 0.3038 0.876 0.000 0.104 0.896
#> SRR1335089 3 0.0000 0.957 0.000 0.000 1.000
#> SRR1337840 1 0.0000 0.955 1.000 0.000 0.000
#> SRR808682 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1443224 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1439831 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1087463 3 0.0000 0.957 0.000 0.000 1.000
#> SRR1457949 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1455969 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1415529 1 0.6260 0.278 0.552 0.000 0.448
#> SRR1330018 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1370597 3 0.0000 0.957 0.000 0.000 1.000
#> SRR1385524 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1351605 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1460148 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1354159 2 0.0237 0.990 0.000 0.996 0.004
#> SRR1318390 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1073095 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1340989 3 0.0000 0.957 0.000 0.000 1.000
#> SRR1481375 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1079356 1 0.6274 0.181 0.544 0.000 0.456
#> SRR1455545 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1406157 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1420259 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1376963 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1101061 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1330450 3 0.0000 0.957 0.000 0.000 1.000
#> SRR1409108 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1416865 3 0.0000 0.957 0.000 0.000 1.000
#> SRR1071832 1 0.5760 0.555 0.672 0.000 0.328
#> SRR1093814 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1381821 3 0.0000 0.957 0.000 0.000 1.000
#> SRR811675 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1082423 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.994 0.000 1.000 0.000
#> SRR815944 3 0.4555 0.769 0.000 0.200 0.800
#> SRR1332775 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1079143 3 0.0000 0.957 0.000 0.000 1.000
#> SRR1476807 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1456634 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1083171 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1083337 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1377672 3 0.4555 0.769 0.000 0.200 0.800
#> SRR1435816 2 0.5138 0.645 0.000 0.748 0.252
#> SRR1080580 1 0.4555 0.755 0.800 0.000 0.200
#> SRR1366672 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1075150 2 0.0000 0.994 0.000 1.000 0.000
#> SRR814137 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1475062 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1097728 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1447172 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1472486 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1377881 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1420912 3 0.0000 0.957 0.000 0.000 1.000
#> SRR1313747 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1414447 3 0.0000 0.957 0.000 0.000 1.000
#> SRR1358238 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1322115 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1330474 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1456354 1 0.0000 0.955 1.000 0.000 0.000
#> SRR820859 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1401860 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1095599 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1417130 1 0.0000 0.955 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1328464 2 0.0000 0.994 0.000 1.000 0.000
#> SRR1323957 1 0.0000 0.955 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.0188 0.941 0.000 0.996 0.004 0.000
#> SRR1089106 1 0.1520 0.934 0.956 0.000 0.024 0.020
#> SRR1401403 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1080534 1 0.5097 0.327 0.568 0.000 0.428 0.004
#> SRR1487638 2 0.0000 0.941 0.000 1.000 0.000 0.000
#> SRR1320650 2 0.0000 0.941 0.000 1.000 0.000 0.000
#> SRR1073045 2 0.3333 0.883 0.000 0.872 0.088 0.040
#> SRR1397030 2 0.2739 0.902 0.000 0.904 0.060 0.036
#> SRR1439976 1 0.1629 0.932 0.952 0.000 0.024 0.024
#> SRR1454050 2 0.1211 0.923 0.000 0.960 0.000 0.040
#> SRR1070286 1 0.1022 0.939 0.968 0.000 0.032 0.000
#> SRR1344185 2 0.3587 0.875 0.000 0.860 0.088 0.052
#> SRR1084228 2 0.0000 0.941 0.000 1.000 0.000 0.000
#> SRR1101907 2 0.0657 0.938 0.000 0.984 0.012 0.004
#> SRR1079686 2 0.0000 0.941 0.000 1.000 0.000 0.000
#> SRR1089761 4 0.1118 0.788 0.000 0.000 0.036 0.964
#> SRR811403 2 0.1792 0.903 0.000 0.932 0.000 0.068
#> SRR1440560 4 0.4661 0.446 0.000 0.348 0.000 0.652
#> SRR1079706 3 0.2589 0.650 0.000 0.000 0.884 0.116
#> SRR1459101 4 0.1022 0.790 0.000 0.000 0.032 0.968
#> SRR1335089 3 0.4977 0.305 0.000 0.000 0.540 0.460
#> SRR1337840 1 0.0895 0.942 0.976 0.000 0.020 0.004
#> SRR808682 2 0.0188 0.941 0.000 0.996 0.004 0.000
#> SRR1443224 2 0.2011 0.893 0.000 0.920 0.000 0.080
#> SRR1439831 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1087463 3 0.4955 0.334 0.000 0.000 0.556 0.444
#> SRR1457949 2 0.3399 0.880 0.000 0.868 0.092 0.040
#> SRR1455969 2 0.1637 0.921 0.000 0.940 0.060 0.000
#> SRR1415529 1 0.5836 0.658 0.700 0.000 0.112 0.188
#> SRR1330018 2 0.0000 0.941 0.000 1.000 0.000 0.000
#> SRR1370597 3 0.3099 0.645 0.000 0.020 0.876 0.104
#> SRR1385524 2 0.0188 0.941 0.000 0.996 0.004 0.000
#> SRR1351605 1 0.1629 0.932 0.952 0.000 0.024 0.024
#> SRR1460148 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1354159 4 0.4522 0.485 0.000 0.320 0.000 0.680
#> SRR1318390 2 0.1940 0.896 0.000 0.924 0.000 0.076
#> SRR1073095 2 0.0000 0.941 0.000 1.000 0.000 0.000
#> SRR1410612 2 0.0000 0.941 0.000 1.000 0.000 0.000
#> SRR1076892 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1340989 4 0.0000 0.793 0.000 0.000 0.000 1.000
#> SRR1481375 2 0.3399 0.880 0.000 0.868 0.092 0.040
#> SRR1079356 3 0.4617 0.535 0.204 0.000 0.764 0.032
#> SRR1455545 1 0.1520 0.934 0.956 0.000 0.024 0.020
#> SRR1406157 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.941 0.000 1.000 0.000 0.000
#> SRR1420259 2 0.3399 0.880 0.000 0.868 0.092 0.040
#> SRR1376963 2 0.3444 0.766 0.000 0.816 0.000 0.184
#> SRR1101061 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.941 0.000 1.000 0.000 0.000
#> SRR1334791 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.941 0.000 1.000 0.000 0.000
#> SRR1330450 4 0.2149 0.733 0.000 0.000 0.088 0.912
#> SRR1409108 2 0.1716 0.906 0.000 0.936 0.000 0.064
#> SRR1416865 3 0.2589 0.650 0.000 0.000 0.884 0.116
#> SRR1071832 1 0.4274 0.820 0.820 0.000 0.072 0.108
#> SRR1093814 2 0.1792 0.903 0.000 0.932 0.000 0.068
#> SRR1381821 3 0.2530 0.650 0.000 0.000 0.888 0.112
#> SRR811675 3 0.4164 0.497 0.264 0.000 0.736 0.000
#> SRR1082423 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1417296 2 0.0000 0.941 0.000 1.000 0.000 0.000
#> SRR815944 4 0.2089 0.774 0.000 0.048 0.020 0.932
#> SRR1332775 2 0.3266 0.792 0.000 0.832 0.168 0.000
#> SRR1079143 4 0.1584 0.800 0.000 0.036 0.012 0.952
#> SRR1476807 1 0.0895 0.942 0.976 0.000 0.020 0.004
#> SRR1456634 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1083171 2 0.0000 0.941 0.000 1.000 0.000 0.000
#> SRR1083337 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1377672 4 0.1545 0.798 0.000 0.040 0.008 0.952
#> SRR1435816 3 0.5431 0.425 0.000 0.224 0.712 0.064
#> SRR1080580 1 0.3831 0.760 0.792 0.000 0.204 0.004
#> SRR1366672 2 0.3107 0.891 0.000 0.884 0.080 0.036
#> SRR1075150 2 0.0336 0.940 0.000 0.992 0.008 0.000
#> SRR814137 1 0.1629 0.932 0.952 0.000 0.024 0.024
#> SRR1475062 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1070789 2 0.0000 0.941 0.000 1.000 0.000 0.000
#> SRR1097728 2 0.3399 0.880 0.000 0.868 0.092 0.040
#> SRR1447172 2 0.0000 0.941 0.000 1.000 0.000 0.000
#> SRR1472486 2 0.3399 0.880 0.000 0.868 0.092 0.040
#> SRR1377881 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1420912 4 0.3528 0.630 0.000 0.000 0.192 0.808
#> SRR1313747 2 0.0592 0.935 0.000 0.984 0.000 0.016
#> SRR1414447 4 0.1452 0.800 0.000 0.036 0.008 0.956
#> SRR1358238 1 0.1411 0.935 0.960 0.000 0.020 0.020
#> SRR1322115 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1330474 1 0.0188 0.947 0.996 0.000 0.004 0.000
#> SRR1093124 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1456354 1 0.1042 0.940 0.972 0.000 0.020 0.008
#> SRR820859 1 0.3907 0.723 0.768 0.000 0.232 0.000
#> SRR1401860 1 0.2281 0.879 0.904 0.000 0.096 0.000
#> SRR1095599 3 0.5911 0.256 0.000 0.372 0.584 0.044
#> SRR1417130 1 0.0000 0.948 1.000 0.000 0.000 0.000
#> SRR1362597 2 0.0188 0.941 0.000 0.996 0.004 0.000
#> SRR1328464 2 0.3266 0.886 0.000 0.876 0.084 0.040
#> SRR1323957 1 0.0895 0.942 0.976 0.000 0.020 0.004
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.0703 0.8279 0.000 0.976 0.000 0.024 0.000
#> SRR1089106 1 0.5029 0.5702 0.528 0.000 0.004 0.444 0.024
#> SRR1401403 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1080534 1 0.4617 0.1167 0.552 0.000 0.000 0.012 0.436
#> SRR1487638 2 0.0162 0.8332 0.000 0.996 0.004 0.000 0.000
#> SRR1320650 2 0.0880 0.8227 0.000 0.968 0.000 0.032 0.000
#> SRR1073045 4 0.4446 0.4422 0.000 0.476 0.004 0.520 0.000
#> SRR1397030 2 0.3796 0.3156 0.000 0.700 0.000 0.300 0.000
#> SRR1439976 1 0.5029 0.5702 0.528 0.000 0.004 0.444 0.024
#> SRR1454050 2 0.2208 0.7890 0.000 0.908 0.072 0.020 0.000
#> SRR1070286 1 0.5426 0.6232 0.608 0.000 0.000 0.308 0.084
#> SRR1344185 4 0.4448 0.4320 0.000 0.480 0.004 0.516 0.000
#> SRR1084228 2 0.0880 0.8227 0.000 0.968 0.000 0.032 0.000
#> SRR1101907 2 0.3752 0.3411 0.000 0.708 0.000 0.292 0.000
#> SRR1079686 2 0.0510 0.8310 0.000 0.984 0.000 0.016 0.000
#> SRR1089761 3 0.1893 0.7034 0.000 0.000 0.928 0.048 0.024
#> SRR811403 2 0.2773 0.7567 0.000 0.868 0.112 0.020 0.000
#> SRR1440560 3 0.4781 0.2291 0.000 0.428 0.552 0.020 0.000
#> SRR1079706 5 0.0703 0.7877 0.000 0.000 0.024 0.000 0.976
#> SRR1459101 3 0.2976 0.6648 0.000 0.004 0.852 0.132 0.012
#> SRR1335089 5 0.4735 0.0858 0.000 0.000 0.460 0.016 0.524
#> SRR1337840 1 0.4482 0.6285 0.612 0.000 0.000 0.376 0.012
#> SRR808682 2 0.0703 0.8279 0.000 0.976 0.000 0.024 0.000
#> SRR1443224 2 0.2969 0.7401 0.000 0.852 0.128 0.020 0.000
#> SRR1439831 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.4827 -0.1421 0.000 0.000 0.504 0.020 0.476
#> SRR1457949 4 0.4692 0.4658 0.000 0.460 0.004 0.528 0.008
#> SRR1455969 2 0.4074 0.0772 0.000 0.636 0.000 0.364 0.000
#> SRR1415529 4 0.7834 -0.2570 0.188 0.000 0.252 0.452 0.108
#> SRR1330018 2 0.0609 0.8296 0.000 0.980 0.000 0.020 0.000
#> SRR1370597 5 0.2769 0.7245 0.000 0.064 0.020 0.024 0.892
#> SRR1385524 2 0.0703 0.8279 0.000 0.976 0.000 0.024 0.000
#> SRR1351605 1 0.5029 0.5702 0.528 0.000 0.004 0.444 0.024
#> SRR1460148 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.4613 0.3828 0.000 0.360 0.620 0.020 0.000
#> SRR1318390 2 0.2773 0.7567 0.000 0.868 0.112 0.020 0.000
#> SRR1073095 2 0.0000 0.8338 0.000 1.000 0.000 0.000 0.000
#> SRR1410612 2 0.0162 0.8337 0.000 0.996 0.000 0.004 0.000
#> SRR1076892 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.1282 0.7130 0.000 0.000 0.952 0.044 0.004
#> SRR1481375 4 0.4695 0.4624 0.000 0.464 0.004 0.524 0.008
#> SRR1079356 5 0.3256 0.6839 0.016 0.000 0.004 0.148 0.832
#> SRR1455545 1 0.5029 0.5702 0.528 0.000 0.004 0.444 0.024
#> SRR1406157 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.0162 0.8337 0.000 0.996 0.000 0.004 0.000
#> SRR1420259 4 0.4698 0.4587 0.000 0.468 0.004 0.520 0.008
#> SRR1376963 2 0.3476 0.6776 0.000 0.804 0.176 0.020 0.000
#> SRR1101061 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.8338 0.000 1.000 0.000 0.000 0.000
#> SRR1334791 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.8338 0.000 1.000 0.000 0.000 0.000
#> SRR1330450 3 0.4038 0.6226 0.000 0.000 0.792 0.128 0.080
#> SRR1409108 2 0.2824 0.7517 0.000 0.864 0.116 0.020 0.000
#> SRR1416865 5 0.1043 0.7844 0.000 0.000 0.040 0.000 0.960
#> SRR1071832 4 0.7681 -0.4073 0.304 0.000 0.144 0.448 0.104
#> SRR1093814 2 0.2921 0.7434 0.000 0.856 0.124 0.020 0.000
#> SRR1381821 5 0.0566 0.7870 0.000 0.000 0.012 0.004 0.984
#> SRR811675 5 0.3143 0.6289 0.204 0.000 0.000 0.000 0.796
#> SRR1082423 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.1725 0.8056 0.000 0.936 0.044 0.020 0.000
#> SRR815944 3 0.2170 0.6874 0.000 0.004 0.904 0.088 0.004
#> SRR1332775 2 0.4054 0.5597 0.000 0.760 0.000 0.036 0.204
#> SRR1079143 3 0.1124 0.7095 0.000 0.000 0.960 0.004 0.036
#> SRR1476807 1 0.4482 0.6285 0.612 0.000 0.000 0.376 0.012
#> SRR1456634 1 0.1341 0.7795 0.944 0.000 0.000 0.056 0.000
#> SRR1083171 2 0.0162 0.8332 0.000 0.996 0.004 0.000 0.000
#> SRR1083337 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.2052 0.6996 0.000 0.004 0.912 0.080 0.004
#> SRR1435816 4 0.5417 -0.1002 0.000 0.048 0.004 0.516 0.432
#> SRR1080580 1 0.4756 0.5258 0.704 0.000 0.004 0.052 0.240
#> SRR1366672 2 0.4291 -0.3297 0.000 0.536 0.000 0.464 0.000
#> SRR1075150 2 0.0703 0.8287 0.000 0.976 0.000 0.024 0.000
#> SRR814137 1 0.5029 0.5702 0.528 0.000 0.004 0.444 0.024
#> SRR1475062 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.0162 0.8337 0.000 0.996 0.000 0.004 0.000
#> SRR1097728 4 0.4695 0.4624 0.000 0.464 0.004 0.524 0.008
#> SRR1447172 2 0.0290 0.8320 0.000 0.992 0.008 0.000 0.000
#> SRR1472486 4 0.4695 0.4637 0.000 0.464 0.004 0.524 0.008
#> SRR1377881 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1420912 3 0.4676 0.5780 0.000 0.000 0.740 0.140 0.120
#> SRR1313747 2 0.2079 0.7934 0.000 0.916 0.064 0.020 0.000
#> SRR1414447 3 0.0162 0.7111 0.000 0.000 0.996 0.000 0.004
#> SRR1358238 1 0.4774 0.5785 0.540 0.000 0.004 0.444 0.012
#> SRR1322115 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1330474 1 0.1544 0.7759 0.932 0.000 0.000 0.068 0.000
#> SRR1093124 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1456354 1 0.4537 0.6152 0.592 0.000 0.000 0.396 0.012
#> SRR820859 1 0.5000 0.2217 0.576 0.000 0.000 0.036 0.388
#> SRR1401860 1 0.2583 0.6864 0.864 0.000 0.000 0.004 0.132
#> SRR1095599 4 0.6059 0.1034 0.000 0.112 0.004 0.520 0.364
#> SRR1417130 1 0.0000 0.7942 1.000 0.000 0.000 0.000 0.000
#> SRR1362597 2 0.0794 0.8259 0.000 0.972 0.000 0.028 0.000
#> SRR1328464 2 0.4758 -0.2489 0.000 0.552 0.004 0.432 0.012
#> SRR1323957 1 0.4470 0.6306 0.616 0.000 0.000 0.372 0.012
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.1007 0.81831 0.000 0.956 0.000 0.000 0.000 0.044
#> SRR1089106 4 0.2454 0.78426 0.160 0.000 0.000 0.840 0.000 0.000
#> SRR1401403 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1080534 1 0.6326 0.33920 0.544 0.000 0.004 0.104 0.276 0.072
#> SRR1487638 2 0.0146 0.83543 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1320650 2 0.1349 0.80896 0.000 0.940 0.000 0.004 0.000 0.056
#> SRR1073045 6 0.3595 0.81979 0.000 0.288 0.000 0.008 0.000 0.704
#> SRR1397030 2 0.3531 0.25874 0.000 0.672 0.000 0.000 0.000 0.328
#> SRR1439976 4 0.2454 0.78426 0.160 0.000 0.000 0.840 0.000 0.000
#> SRR1454050 2 0.3040 0.78218 0.000 0.856 0.044 0.016 0.000 0.084
#> SRR1070286 4 0.4262 0.47673 0.476 0.000 0.000 0.508 0.016 0.000
#> SRR1344185 6 0.3733 0.81817 0.000 0.288 0.004 0.008 0.000 0.700
#> SRR1084228 2 0.1411 0.80599 0.000 0.936 0.000 0.004 0.000 0.060
#> SRR1101907 2 0.3595 0.39041 0.000 0.704 0.000 0.008 0.000 0.288
#> SRR1079686 2 0.0632 0.83159 0.000 0.976 0.000 0.000 0.000 0.024
#> SRR1089761 3 0.3967 0.65319 0.000 0.008 0.756 0.028 0.008 0.200
#> SRR811403 2 0.3308 0.76820 0.000 0.836 0.064 0.012 0.000 0.088
#> SRR1440560 2 0.5614 0.04682 0.000 0.452 0.440 0.016 0.000 0.092
#> SRR1079706 5 0.0146 0.80232 0.000 0.000 0.000 0.004 0.996 0.000
#> SRR1459101 3 0.1956 0.75074 0.000 0.000 0.908 0.008 0.004 0.080
#> SRR1335089 5 0.4629 0.17686 0.000 0.000 0.388 0.020 0.576 0.016
#> SRR1337840 4 0.3857 0.57974 0.468 0.000 0.000 0.532 0.000 0.000
#> SRR808682 2 0.0865 0.82284 0.000 0.964 0.000 0.000 0.000 0.036
#> SRR1443224 2 0.3767 0.74404 0.000 0.804 0.088 0.016 0.000 0.092
#> SRR1439831 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.4484 0.06168 0.000 0.000 0.516 0.008 0.460 0.016
#> SRR1457949 6 0.3136 0.83107 0.000 0.228 0.000 0.004 0.000 0.768
#> SRR1455969 2 0.3965 -0.00594 0.000 0.604 0.000 0.008 0.000 0.388
#> SRR1415529 4 0.2407 0.65881 0.056 0.000 0.048 0.892 0.004 0.000
#> SRR1330018 2 0.0713 0.82681 0.000 0.972 0.000 0.000 0.000 0.028
#> SRR1370597 5 0.1579 0.77596 0.000 0.024 0.004 0.008 0.944 0.020
#> SRR1385524 2 0.1075 0.81620 0.000 0.952 0.000 0.000 0.000 0.048
#> SRR1351605 4 0.2454 0.78426 0.160 0.000 0.000 0.840 0.000 0.000
#> SRR1460148 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.4966 0.41834 0.000 0.256 0.652 0.016 0.000 0.076
#> SRR1318390 2 0.3399 0.76585 0.000 0.832 0.064 0.016 0.000 0.088
#> SRR1073095 2 0.0000 0.83529 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.83529 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1076892 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.1464 0.76222 0.000 0.004 0.944 0.036 0.000 0.016
#> SRR1481375 6 0.3892 0.80464 0.000 0.220 0.004 0.028 0.004 0.744
#> SRR1079356 5 0.3610 0.66277 0.028 0.000 0.000 0.200 0.768 0.004
#> SRR1455545 4 0.2454 0.78426 0.160 0.000 0.000 0.840 0.000 0.000
#> SRR1406157 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.83529 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1420259 6 0.3448 0.82767 0.000 0.280 0.000 0.004 0.000 0.716
#> SRR1376963 2 0.3910 0.73233 0.000 0.792 0.100 0.016 0.000 0.092
#> SRR1101061 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.0146 0.83541 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1334791 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0260 0.83504 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1330450 3 0.4755 0.62334 0.000 0.000 0.716 0.132 0.132 0.020
#> SRR1409108 2 0.3308 0.76794 0.000 0.836 0.064 0.012 0.000 0.088
#> SRR1416865 5 0.0405 0.80129 0.000 0.000 0.004 0.008 0.988 0.000
#> SRR1071832 4 0.2237 0.69612 0.080 0.000 0.020 0.896 0.004 0.000
#> SRR1093814 2 0.3718 0.74777 0.000 0.808 0.088 0.016 0.000 0.088
#> SRR1381821 5 0.0146 0.80232 0.000 0.000 0.000 0.004 0.996 0.000
#> SRR811675 5 0.3345 0.62754 0.204 0.000 0.000 0.020 0.776 0.000
#> SRR1082423 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.2362 0.79839 0.000 0.892 0.016 0.012 0.000 0.080
#> SRR815944 3 0.1413 0.75842 0.000 0.004 0.948 0.008 0.004 0.036
#> SRR1332775 2 0.4828 0.46268 0.000 0.676 0.000 0.004 0.196 0.124
#> SRR1079143 3 0.1129 0.76237 0.000 0.004 0.964 0.008 0.012 0.012
#> SRR1476807 4 0.3857 0.57974 0.468 0.000 0.000 0.532 0.000 0.000
#> SRR1456634 1 0.1610 0.78400 0.916 0.000 0.000 0.084 0.000 0.000
#> SRR1083171 2 0.0551 0.83434 0.000 0.984 0.004 0.004 0.000 0.008
#> SRR1083337 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.1719 0.75891 0.000 0.008 0.928 0.056 0.000 0.008
#> SRR1435816 6 0.3855 0.47962 0.000 0.024 0.000 0.000 0.272 0.704
#> SRR1080580 1 0.6405 0.35824 0.548 0.000 0.004 0.248 0.132 0.068
#> SRR1366672 6 0.3965 0.66376 0.000 0.388 0.000 0.008 0.000 0.604
#> SRR1075150 2 0.1444 0.79959 0.000 0.928 0.000 0.000 0.000 0.072
#> SRR814137 4 0.2454 0.78426 0.160 0.000 0.000 0.840 0.000 0.000
#> SRR1475062 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.0146 0.83456 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1097728 6 0.3409 0.79970 0.000 0.184 0.000 0.024 0.004 0.788
#> SRR1447172 2 0.0146 0.83541 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1472486 6 0.2912 0.82652 0.000 0.216 0.000 0.000 0.000 0.784
#> SRR1377881 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 3 0.5919 0.39359 0.000 0.000 0.512 0.304 0.172 0.012
#> SRR1313747 2 0.2811 0.78658 0.000 0.868 0.036 0.012 0.000 0.084
#> SRR1414447 3 0.0582 0.76026 0.000 0.004 0.984 0.004 0.004 0.004
#> SRR1358238 4 0.3288 0.76812 0.276 0.000 0.000 0.724 0.000 0.000
#> SRR1322115 1 0.1700 0.84112 0.936 0.000 0.000 0.028 0.012 0.024
#> SRR1330474 1 0.2048 0.72556 0.880 0.000 0.000 0.120 0.000 0.000
#> SRR1093124 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1456354 4 0.3684 0.69857 0.372 0.000 0.000 0.628 0.000 0.000
#> SRR820859 1 0.6431 0.31918 0.520 0.000 0.000 0.140 0.272 0.068
#> SRR1401860 1 0.4398 0.67826 0.776 0.000 0.004 0.096 0.068 0.056
#> SRR1095599 6 0.4377 0.57220 0.000 0.068 0.000 0.000 0.244 0.688
#> SRR1417130 1 0.0000 0.88964 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1362597 2 0.1007 0.81831 0.000 0.956 0.000 0.000 0.000 0.044
#> SRR1328464 6 0.4470 0.70429 0.000 0.324 0.004 0.024 0.008 0.640
#> SRR1323957 4 0.3862 0.56341 0.476 0.000 0.000 0.524 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 17633 rows and 97 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'SD' method.
#> Subgroups are detected by 'pam' method.
#> Performed in total 1250 partitions by row resampling.
#> Best k for subgroups seems to be 2.
#>
#> Following methods can be applied to this 'ConsensusPartition' object:
#> [1] "cola_report" "collect_classes" "collect_plots"
#> [4] "collect_stats" "colnames" "compare_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.All the plots in panels can be made by individual functions and they are plotted later in this section.
select_partition_number()
produces several plots showing different
statistics for choosing “optimized” k
. There are following statistics:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower PAC score, higher mean silhouette score or higher
concordance corresponds to better partition. Rand index and Jaccard index
measure how similar the current partition is compared to partition with k-1
.
If they are too similar, we won't accept k
is better than k-1
.
select_partition_number(res)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 1.000 0.946 0.980 0.4480 0.546 0.546
#> 3 3 0.709 0.790 0.895 0.4679 0.742 0.548
#> 4 4 0.828 0.882 0.942 0.1199 0.877 0.656
#> 5 5 0.833 0.753 0.884 0.0652 0.896 0.642
#> 6 6 0.827 0.718 0.827 0.0500 0.916 0.649
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
#> SRR1397242 1 0.0000 0.95681 1.000 0.000
#> SRR1093410 1 0.0000 0.95681 1.000 0.000
#> SRR1380523 2 0.0000 0.98926 0.000 1.000
#> SRR1089106 1 0.2423 0.92617 0.960 0.040
#> SRR1401403 1 0.0000 0.95681 1.000 0.000
#> SRR1080534 2 0.0672 0.98529 0.008 0.992
#> SRR1487638 2 0.0000 0.98926 0.000 1.000
#> SRR1320650 2 0.0000 0.98926 0.000 1.000
#> SRR1073045 2 0.0000 0.98926 0.000 1.000
#> SRR1397030 2 0.0000 0.98926 0.000 1.000
#> SRR1439976 1 0.0000 0.95681 1.000 0.000
#> SRR1454050 2 0.0000 0.98926 0.000 1.000
#> SRR1070286 1 0.0000 0.95681 1.000 0.000
#> SRR1344185 2 0.0000 0.98926 0.000 1.000
#> SRR1084228 2 0.0000 0.98926 0.000 1.000
#> SRR1101907 2 0.0000 0.98926 0.000 1.000
#> SRR1079686 2 0.0000 0.98926 0.000 1.000
#> SRR1089761 2 0.0672 0.98529 0.008 0.992
#> SRR811403 2 0.0000 0.98926 0.000 1.000
#> SRR1440560 2 0.0000 0.98926 0.000 1.000
#> SRR1079706 2 0.0672 0.98529 0.008 0.992
#> SRR1459101 2 0.0672 0.98529 0.008 0.992
#> SRR1335089 2 0.0672 0.98529 0.008 0.992
#> SRR1337840 1 0.0000 0.95681 1.000 0.000
#> SRR808682 2 0.0000 0.98926 0.000 1.000
#> SRR1443224 2 0.0000 0.98926 0.000 1.000
#> SRR1439831 1 0.0000 0.95681 1.000 0.000
#> SRR1087463 2 0.0672 0.98529 0.008 0.992
#> SRR1457949 2 0.0000 0.98926 0.000 1.000
#> SRR1455969 2 0.0000 0.98926 0.000 1.000
#> SRR1415529 2 0.9988 0.00126 0.480 0.520
#> SRR1330018 2 0.0000 0.98926 0.000 1.000
#> SRR1370597 2 0.0000 0.98926 0.000 1.000
#> SRR1385524 2 0.0000 0.98926 0.000 1.000
#> SRR1351605 1 0.2236 0.92943 0.964 0.036
#> SRR1460148 1 0.0000 0.95681 1.000 0.000
#> SRR1354159 2 0.0000 0.98926 0.000 1.000
#> SRR1318390 2 0.0000 0.98926 0.000 1.000
#> SRR1073095 2 0.0000 0.98926 0.000 1.000
#> SRR1410612 2 0.0000 0.98926 0.000 1.000
#> SRR1076892 1 0.0000 0.95681 1.000 0.000
#> SRR1340989 2 0.0672 0.98529 0.008 0.992
#> SRR1481375 2 0.0000 0.98926 0.000 1.000
#> SRR1079356 1 0.9909 0.23038 0.556 0.444
#> SRR1455545 1 0.0000 0.95681 1.000 0.000
#> SRR1406157 1 0.0000 0.95681 1.000 0.000
#> SRR1445920 2 0.0000 0.98926 0.000 1.000
#> SRR1420259 2 0.0000 0.98926 0.000 1.000
#> SRR1376963 2 0.0000 0.98926 0.000 1.000
#> SRR1101061 1 0.0000 0.95681 1.000 0.000
#> SRR1414496 2 0.0000 0.98926 0.000 1.000
#> SRR1334791 1 0.0000 0.95681 1.000 0.000
#> SRR1072129 2 0.0000 0.98926 0.000 1.000
#> SRR1330450 2 0.0672 0.98529 0.008 0.992
#> SRR1409108 2 0.0000 0.98926 0.000 1.000
#> SRR1416865 2 0.0672 0.98529 0.008 0.992
#> SRR1071832 1 0.9993 0.09608 0.516 0.484
#> SRR1093814 2 0.0000 0.98926 0.000 1.000
#> SRR1381821 2 0.0672 0.98529 0.008 0.992
#> SRR811675 1 0.4690 0.86565 0.900 0.100
#> SRR1082423 1 0.0000 0.95681 1.000 0.000
#> SRR1417296 2 0.0000 0.98926 0.000 1.000
#> SRR815944 2 0.0000 0.98926 0.000 1.000
#> SRR1332775 2 0.0000 0.98926 0.000 1.000
#> SRR1079143 2 0.0672 0.98529 0.008 0.992
#> SRR1476807 1 0.0000 0.95681 1.000 0.000
#> SRR1456634 1 0.0000 0.95681 1.000 0.000
#> SRR1083171 2 0.0000 0.98926 0.000 1.000
#> SRR1083337 1 0.0000 0.95681 1.000 0.000
#> SRR1377672 2 0.0672 0.98529 0.008 0.992
#> SRR1435816 2 0.0672 0.98529 0.008 0.992
#> SRR1080580 2 0.0672 0.98529 0.008 0.992
#> SRR1366672 2 0.0000 0.98926 0.000 1.000
#> SRR1075150 2 0.0000 0.98926 0.000 1.000
#> SRR814137 1 0.7950 0.68324 0.760 0.240
#> SRR1475062 1 0.0000 0.95681 1.000 0.000
#> SRR1340028 1 0.0000 0.95681 1.000 0.000
#> SRR1070789 2 0.0000 0.98926 0.000 1.000
#> SRR1097728 2 0.0000 0.98926 0.000 1.000
#> SRR1447172 2 0.0000 0.98926 0.000 1.000
#> SRR1472486 2 0.0000 0.98926 0.000 1.000
#> SRR1377881 1 0.0000 0.95681 1.000 0.000
#> SRR1420912 2 0.0672 0.98529 0.008 0.992
#> SRR1313747 2 0.0000 0.98926 0.000 1.000
#> SRR1414447 2 0.0000 0.98926 0.000 1.000
#> SRR1358238 1 0.0000 0.95681 1.000 0.000
#> SRR1322115 1 0.0000 0.95681 1.000 0.000
#> SRR1330474 1 0.0000 0.95681 1.000 0.000
#> SRR1093124 1 0.0000 0.95681 1.000 0.000
#> SRR1456354 1 0.0000 0.95681 1.000 0.000
#> SRR820859 2 0.0938 0.98192 0.012 0.988
#> SRR1401860 2 0.1843 0.96580 0.028 0.972
#> SRR1095599 2 0.0000 0.98926 0.000 1.000
#> SRR1417130 1 0.0000 0.95681 1.000 0.000
#> SRR1362597 2 0.0000 0.98926 0.000 1.000
#> SRR1328464 2 0.0000 0.98926 0.000 1.000
#> SRR1323957 1 0.0000 0.95681 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1089106 3 0.5098 0.412 0.248 0.000 0.752
#> SRR1401403 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1080534 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1487638 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1320650 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1073045 3 0.6295 0.357 0.000 0.472 0.528
#> SRR1397030 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1439976 1 0.6062 0.602 0.616 0.000 0.384
#> SRR1454050 2 0.4605 0.682 0.000 0.796 0.204
#> SRR1070286 1 0.6062 0.602 0.616 0.000 0.384
#> SRR1344185 3 0.4605 0.702 0.000 0.204 0.796
#> SRR1084228 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1101907 3 0.6062 0.546 0.000 0.384 0.616
#> SRR1079686 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1089761 3 0.0000 0.796 0.000 0.000 1.000
#> SRR811403 2 0.4555 0.690 0.000 0.800 0.200
#> SRR1440560 3 0.6062 0.546 0.000 0.384 0.616
#> SRR1079706 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1459101 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1335089 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1337840 1 0.0000 0.893 1.000 0.000 0.000
#> SRR808682 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1443224 3 0.6062 0.546 0.000 0.384 0.616
#> SRR1439831 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1087463 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1457949 3 0.6062 0.546 0.000 0.384 0.616
#> SRR1455969 3 0.6045 0.551 0.000 0.380 0.620
#> SRR1415529 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1330018 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1370597 3 0.4399 0.716 0.000 0.188 0.812
#> SRR1385524 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1351605 1 0.6062 0.602 0.616 0.000 0.384
#> SRR1460148 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1354159 3 0.6062 0.546 0.000 0.384 0.616
#> SRR1318390 3 0.6079 0.539 0.000 0.388 0.612
#> SRR1073095 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1340989 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1481375 3 0.6062 0.546 0.000 0.384 0.616
#> SRR1079356 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1455545 1 0.6026 0.611 0.624 0.000 0.376
#> SRR1406157 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1420259 3 0.6079 0.539 0.000 0.388 0.612
#> SRR1376963 3 0.6267 0.402 0.000 0.452 0.548
#> SRR1101061 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1330450 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1409108 2 0.3752 0.785 0.000 0.856 0.144
#> SRR1416865 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1071832 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1093814 3 0.6062 0.546 0.000 0.384 0.616
#> SRR1381821 3 0.0000 0.796 0.000 0.000 1.000
#> SRR811675 1 0.6180 0.547 0.584 0.000 0.416
#> SRR1082423 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.959 0.000 1.000 0.000
#> SRR815944 3 0.0237 0.796 0.000 0.004 0.996
#> SRR1332775 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1079143 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1476807 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1456634 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1083171 2 0.0424 0.952 0.000 0.992 0.008
#> SRR1083337 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1377672 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1435816 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1080580 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1366672 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1075150 2 0.0000 0.959 0.000 1.000 0.000
#> SRR814137 1 0.6140 0.570 0.596 0.000 0.404
#> SRR1475062 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1097728 3 0.5760 0.606 0.000 0.328 0.672
#> SRR1447172 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1472486 2 0.5216 0.539 0.000 0.740 0.260
#> SRR1377881 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1420912 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1313747 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1414447 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1358238 1 0.0592 0.887 0.988 0.000 0.012
#> SRR1322115 1 0.6062 0.602 0.616 0.000 0.384
#> SRR1330474 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1456354 1 0.5706 0.665 0.680 0.000 0.320
#> SRR820859 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1401860 3 0.0000 0.796 0.000 0.000 1.000
#> SRR1095599 3 0.6062 0.546 0.000 0.384 0.616
#> SRR1417130 1 0.0000 0.893 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1328464 3 0.4605 0.706 0.000 0.204 0.796
#> SRR1323957 1 0.0000 0.893 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1089106 4 0.0000 0.842 0.000 0.000 0.000 1.000
#> SRR1401403 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1080534 4 0.3907 0.788 0.000 0.000 0.232 0.768
#> SRR1487638 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1320650 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1073045 3 0.2149 0.859 0.000 0.088 0.912 0.000
#> SRR1397030 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1439976 4 0.0000 0.842 0.000 0.000 0.000 1.000
#> SRR1454050 2 0.4866 0.376 0.000 0.596 0.404 0.000
#> SRR1070286 4 0.3610 0.753 0.200 0.000 0.000 0.800
#> SRR1344185 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1084228 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1101907 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1079686 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1089761 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR811403 2 0.3610 0.733 0.000 0.800 0.200 0.000
#> SRR1440560 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1079706 4 0.4134 0.750 0.000 0.000 0.260 0.740
#> SRR1459101 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1335089 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1337840 1 0.3610 0.806 0.800 0.000 0.000 0.200
#> SRR808682 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1443224 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1439831 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1087463 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1457949 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1455969 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1415529 3 0.2081 0.871 0.000 0.000 0.916 0.084
#> SRR1330018 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1370597 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1385524 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1351605 4 0.0000 0.842 0.000 0.000 0.000 1.000
#> SRR1460148 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1354159 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1318390 3 0.1302 0.908 0.000 0.044 0.956 0.000
#> SRR1073095 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1410612 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1076892 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1340989 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1481375 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1079356 4 0.3486 0.826 0.000 0.000 0.188 0.812
#> SRR1455545 4 0.0000 0.842 0.000 0.000 0.000 1.000
#> SRR1406157 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1420259 3 0.0188 0.945 0.000 0.004 0.996 0.000
#> SRR1376963 3 0.4967 0.156 0.000 0.452 0.548 0.000
#> SRR1101061 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1334791 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1330450 3 0.0707 0.932 0.000 0.000 0.980 0.020
#> SRR1409108 2 0.2973 0.803 0.000 0.856 0.144 0.000
#> SRR1416865 3 0.2589 0.823 0.000 0.000 0.884 0.116
#> SRR1071832 4 0.3610 0.820 0.000 0.000 0.200 0.800
#> SRR1093814 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1381821 4 0.3610 0.820 0.000 0.000 0.200 0.800
#> SRR811675 4 0.3610 0.753 0.200 0.000 0.000 0.800
#> SRR1082423 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1417296 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR815944 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1332775 2 0.3486 0.769 0.000 0.812 0.188 0.000
#> SRR1079143 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1476807 1 0.4008 0.759 0.756 0.000 0.000 0.244
#> SRR1456634 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1083171 2 0.2814 0.829 0.000 0.868 0.132 0.000
#> SRR1083337 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1377672 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1435816 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1080580 3 0.3649 0.683 0.000 0.000 0.796 0.204
#> SRR1366672 2 0.3569 0.760 0.000 0.804 0.196 0.000
#> SRR1075150 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR814137 4 0.0000 0.842 0.000 0.000 0.000 1.000
#> SRR1475062 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1070789 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1097728 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1447172 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1472486 3 0.4697 0.411 0.000 0.356 0.644 0.000
#> SRR1377881 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1420912 3 0.0336 0.942 0.000 0.000 0.992 0.008
#> SRR1313747 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1414447 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1358238 4 0.0188 0.839 0.004 0.000 0.000 0.996
#> SRR1322115 4 0.3801 0.733 0.220 0.000 0.000 0.780
#> SRR1330474 1 0.3610 0.806 0.800 0.000 0.000 0.200
#> SRR1093124 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1456354 4 0.0000 0.842 0.000 0.000 0.000 1.000
#> SRR820859 4 0.3610 0.820 0.000 0.000 0.200 0.800
#> SRR1401860 4 0.3610 0.820 0.000 0.000 0.200 0.800
#> SRR1095599 3 0.0000 0.947 0.000 0.000 1.000 0.000
#> SRR1417130 1 0.0000 0.958 1.000 0.000 0.000 0.000
#> SRR1362597 2 0.0000 0.939 0.000 1.000 0.000 0.000
#> SRR1328464 3 0.0188 0.945 0.000 0.004 0.996 0.000
#> SRR1323957 1 0.3610 0.806 0.800 0.000 0.000 0.200
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.0162 0.882110 0.000 0.996 0.000 0.000 0.004
#> SRR1089106 4 0.1410 0.629868 0.000 0.000 0.000 0.940 0.060
#> SRR1401403 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1080534 5 0.1732 0.717157 0.000 0.000 0.000 0.080 0.920
#> SRR1487638 2 0.0290 0.882398 0.000 0.992 0.000 0.000 0.008
#> SRR1320650 2 0.0290 0.881705 0.000 0.992 0.000 0.000 0.008
#> SRR1073045 3 0.2513 0.795333 0.000 0.116 0.876 0.000 0.008
#> SRR1397030 2 0.0290 0.881705 0.000 0.992 0.000 0.000 0.008
#> SRR1439976 4 0.0609 0.667710 0.000 0.000 0.000 0.980 0.020
#> SRR1454050 2 0.4242 0.276680 0.000 0.572 0.428 0.000 0.000
#> SRR1070286 1 0.6077 -0.000458 0.480 0.000 0.000 0.396 0.124
#> SRR1344185 3 0.0000 0.890990 0.000 0.000 1.000 0.000 0.000
#> SRR1084228 2 0.0290 0.881705 0.000 0.992 0.000 0.000 0.008
#> SRR1101907 3 0.1082 0.873910 0.000 0.028 0.964 0.000 0.008
#> SRR1079686 2 0.0290 0.881705 0.000 0.992 0.000 0.000 0.008
#> SRR1089761 3 0.0000 0.890990 0.000 0.000 1.000 0.000 0.000
#> SRR811403 2 0.3388 0.693060 0.000 0.792 0.200 0.000 0.008
#> SRR1440560 3 0.0000 0.890990 0.000 0.000 1.000 0.000 0.000
#> SRR1079706 5 0.1732 0.717157 0.000 0.000 0.000 0.080 0.920
#> SRR1459101 3 0.1410 0.862093 0.000 0.000 0.940 0.000 0.060
#> SRR1335089 3 0.0510 0.886412 0.000 0.000 0.984 0.016 0.000
#> SRR1337840 4 0.4268 0.368985 0.444 0.000 0.000 0.556 0.000
#> SRR808682 2 0.0290 0.881705 0.000 0.992 0.000 0.000 0.008
#> SRR1443224 3 0.0000 0.890990 0.000 0.000 1.000 0.000 0.000
#> SRR1439831 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.0290 0.888883 0.000 0.000 0.992 0.008 0.000
#> SRR1457949 3 0.0000 0.890990 0.000 0.000 1.000 0.000 0.000
#> SRR1455969 3 0.0000 0.890990 0.000 0.000 1.000 0.000 0.000
#> SRR1415529 3 0.1341 0.864308 0.000 0.000 0.944 0.056 0.000
#> SRR1330018 2 0.0290 0.881705 0.000 0.992 0.000 0.000 0.008
#> SRR1370597 5 0.2230 0.699795 0.000 0.000 0.116 0.000 0.884
#> SRR1385524 2 0.0404 0.881913 0.000 0.988 0.000 0.000 0.012
#> SRR1351605 4 0.0609 0.667710 0.000 0.000 0.000 0.980 0.020
#> SRR1460148 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.0000 0.890990 0.000 0.000 1.000 0.000 0.000
#> SRR1318390 3 0.1430 0.862706 0.000 0.052 0.944 0.000 0.004
#> SRR1073095 2 0.1608 0.877469 0.000 0.928 0.000 0.000 0.072
#> SRR1410612 2 0.1608 0.877469 0.000 0.928 0.000 0.000 0.072
#> SRR1076892 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.0000 0.890990 0.000 0.000 1.000 0.000 0.000
#> SRR1481375 3 0.3612 0.662664 0.000 0.000 0.732 0.000 0.268
#> SRR1079356 5 0.4088 0.611814 0.000 0.000 0.000 0.368 0.632
#> SRR1455545 4 0.0162 0.672791 0.000 0.000 0.000 0.996 0.004
#> SRR1406157 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.1608 0.877469 0.000 0.928 0.000 0.000 0.072
#> SRR1420259 3 0.4583 0.604150 0.000 0.032 0.672 0.000 0.296
#> SRR1376963 3 0.4622 0.201670 0.000 0.440 0.548 0.000 0.012
#> SRR1101061 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.1608 0.877469 0.000 0.928 0.000 0.000 0.072
#> SRR1334791 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.1608 0.877469 0.000 0.928 0.000 0.000 0.072
#> SRR1330450 3 0.0510 0.886412 0.000 0.000 0.984 0.016 0.000
#> SRR1409108 2 0.4096 0.756954 0.000 0.784 0.144 0.000 0.072
#> SRR1416865 5 0.2305 0.712969 0.000 0.000 0.092 0.012 0.896
#> SRR1071832 3 0.6100 0.164881 0.000 0.000 0.500 0.368 0.132
#> SRR1093814 3 0.0000 0.890990 0.000 0.000 1.000 0.000 0.000
#> SRR1381821 5 0.4030 0.622448 0.000 0.000 0.000 0.352 0.648
#> SRR811675 5 0.4088 0.611814 0.000 0.000 0.000 0.368 0.632
#> SRR1082423 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.1608 0.877469 0.000 0.928 0.000 0.000 0.072
#> SRR815944 3 0.0000 0.890990 0.000 0.000 1.000 0.000 0.000
#> SRR1332775 5 0.2588 0.692359 0.000 0.060 0.048 0.000 0.892
#> SRR1079143 3 0.0000 0.890990 0.000 0.000 1.000 0.000 0.000
#> SRR1476807 4 0.4268 0.368985 0.444 0.000 0.000 0.556 0.000
#> SRR1456634 1 0.0609 0.903170 0.980 0.000 0.000 0.020 0.000
#> SRR1083171 2 0.2563 0.789398 0.000 0.872 0.120 0.000 0.008
#> SRR1083337 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.0000 0.890990 0.000 0.000 1.000 0.000 0.000
#> SRR1435816 5 0.3177 0.627240 0.000 0.000 0.208 0.000 0.792
#> SRR1080580 3 0.3758 0.737881 0.000 0.000 0.816 0.088 0.096
#> SRR1366672 2 0.5990 0.346641 0.000 0.560 0.144 0.000 0.296
#> SRR1075150 2 0.0290 0.881705 0.000 0.992 0.000 0.000 0.008
#> SRR814137 4 0.0963 0.655874 0.000 0.000 0.000 0.964 0.036
#> SRR1475062 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.1544 0.877650 0.000 0.932 0.000 0.000 0.068
#> SRR1097728 3 0.3395 0.698260 0.000 0.000 0.764 0.000 0.236
#> SRR1447172 2 0.1608 0.877469 0.000 0.928 0.000 0.000 0.072
#> SRR1472486 2 0.6788 0.019634 0.000 0.384 0.320 0.000 0.296
#> SRR1377881 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1420912 3 0.2270 0.828856 0.000 0.000 0.904 0.076 0.020
#> SRR1313747 2 0.1608 0.877469 0.000 0.928 0.000 0.000 0.072
#> SRR1414447 3 0.0000 0.890990 0.000 0.000 1.000 0.000 0.000
#> SRR1358238 4 0.0404 0.672954 0.012 0.000 0.000 0.988 0.000
#> SRR1322115 1 0.5551 -0.011630 0.488 0.000 0.000 0.444 0.068
#> SRR1330474 4 0.4304 0.279739 0.484 0.000 0.000 0.516 0.000
#> SRR1093124 1 0.0404 0.910656 0.988 0.000 0.000 0.012 0.000
#> SRR1456354 4 0.0000 0.672842 0.000 0.000 0.000 1.000 0.000
#> SRR820859 5 0.4088 0.611814 0.000 0.000 0.000 0.368 0.632
#> SRR1401860 5 0.4457 0.611233 0.000 0.000 0.012 0.368 0.620
#> SRR1095599 5 0.3003 0.647917 0.000 0.000 0.188 0.000 0.812
#> SRR1417130 1 0.0000 0.920986 1.000 0.000 0.000 0.000 0.000
#> SRR1362597 2 0.0510 0.881989 0.000 0.984 0.000 0.000 0.016
#> SRR1328464 3 0.3884 0.630810 0.000 0.004 0.708 0.000 0.288
#> SRR1323957 4 0.4268 0.368985 0.444 0.000 0.000 0.556 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.3288 0.6359 0.000 0.724 0.000 0.000 0.000 0.276
#> SRR1089106 4 0.3630 0.5742 0.000 0.000 0.000 0.756 0.032 0.212
#> SRR1401403 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1080534 5 0.0000 0.7307 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1487638 2 0.3151 0.6749 0.000 0.748 0.000 0.000 0.000 0.252
#> SRR1320650 6 0.2883 0.6654 0.000 0.212 0.000 0.000 0.000 0.788
#> SRR1073045 6 0.3804 0.3397 0.000 0.000 0.424 0.000 0.000 0.576
#> SRR1397030 6 0.4328 0.6315 0.000 0.212 0.000 0.000 0.080 0.708
#> SRR1439976 4 0.1333 0.7269 0.000 0.000 0.000 0.944 0.008 0.048
#> SRR1454050 3 0.4050 0.6007 0.000 0.096 0.752 0.000 0.000 0.152
#> SRR1070286 1 0.6883 0.0661 0.460 0.000 0.000 0.252 0.080 0.208
#> SRR1344185 3 0.0000 0.8875 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084228 6 0.2883 0.6654 0.000 0.212 0.000 0.000 0.000 0.788
#> SRR1101907 6 0.3804 0.3397 0.000 0.000 0.424 0.000 0.000 0.576
#> SRR1079686 6 0.2883 0.6654 0.000 0.212 0.000 0.000 0.000 0.788
#> SRR1089761 3 0.0000 0.8875 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR811403 6 0.2883 0.6654 0.000 0.212 0.000 0.000 0.000 0.788
#> SRR1440560 3 0.0000 0.8875 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1079706 5 0.0000 0.7307 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1459101 3 0.2048 0.8011 0.000 0.000 0.880 0.000 0.120 0.000
#> SRR1335089 3 0.0146 0.8859 0.000 0.000 0.996 0.004 0.000 0.000
#> SRR1337840 4 0.3351 0.6184 0.288 0.000 0.000 0.712 0.000 0.000
#> SRR808682 6 0.3050 0.6442 0.000 0.236 0.000 0.000 0.000 0.764
#> SRR1443224 3 0.0000 0.8875 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1439831 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.0000 0.8875 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1457949 3 0.0000 0.8875 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1455969 3 0.0000 0.8875 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1415529 3 0.1196 0.8597 0.000 0.000 0.952 0.040 0.000 0.008
#> SRR1330018 6 0.2883 0.6654 0.000 0.212 0.000 0.000 0.000 0.788
#> SRR1370597 5 0.0547 0.7276 0.000 0.000 0.020 0.000 0.980 0.000
#> SRR1385524 6 0.3126 0.6374 0.000 0.248 0.000 0.000 0.000 0.752
#> SRR1351605 4 0.1333 0.7269 0.000 0.000 0.000 0.944 0.008 0.048
#> SRR1460148 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.0000 0.8875 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1318390 3 0.3907 0.1464 0.000 0.004 0.588 0.000 0.000 0.408
#> SRR1073095 2 0.0000 0.9108 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.9108 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1076892 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.0000 0.8875 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1481375 6 0.5771 0.3872 0.000 0.000 0.188 0.000 0.336 0.476
#> SRR1079356 5 0.5478 0.5719 0.000 0.000 0.000 0.236 0.568 0.196
#> SRR1455545 4 0.0777 0.7352 0.000 0.000 0.000 0.972 0.004 0.024
#> SRR1406157 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.9108 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1420259 6 0.5064 0.3528 0.000 0.000 0.076 0.000 0.432 0.492
#> SRR1376963 6 0.5736 0.3461 0.000 0.180 0.340 0.000 0.000 0.480
#> SRR1101061 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.9108 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1334791 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.9108 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1330450 3 0.0146 0.8859 0.000 0.000 0.996 0.004 0.000 0.000
#> SRR1409108 6 0.3867 0.3148 0.000 0.488 0.000 0.000 0.000 0.512
#> SRR1416865 5 0.0862 0.7319 0.000 0.000 0.008 0.004 0.972 0.016
#> SRR1071832 3 0.6864 0.1580 0.000 0.000 0.476 0.236 0.088 0.200
#> SRR1093814 3 0.0000 0.8875 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1381821 5 0.5458 0.5743 0.000 0.000 0.000 0.232 0.572 0.196
#> SRR811675 5 0.5478 0.5719 0.000 0.000 0.000 0.236 0.568 0.196
#> SRR1082423 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.0000 0.9108 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR815944 3 0.0000 0.8875 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1332775 5 0.0547 0.7276 0.000 0.000 0.020 0.000 0.980 0.000
#> SRR1079143 3 0.0000 0.8875 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1476807 4 0.3351 0.6184 0.288 0.000 0.000 0.712 0.000 0.000
#> SRR1456634 1 0.1204 0.8723 0.944 0.000 0.000 0.056 0.000 0.000
#> SRR1083171 6 0.4183 0.6462 0.000 0.152 0.108 0.000 0.000 0.740
#> SRR1083337 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.0000 0.8875 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1435816 5 0.1714 0.6666 0.000 0.000 0.092 0.000 0.908 0.000
#> SRR1080580 3 0.3726 0.7316 0.000 0.000 0.812 0.024 0.072 0.092
#> SRR1366672 6 0.5105 0.3488 0.000 0.000 0.080 0.000 0.432 0.488
#> SRR1075150 6 0.2883 0.6654 0.000 0.212 0.000 0.000 0.000 0.788
#> SRR814137 4 0.3403 0.5892 0.000 0.000 0.000 0.768 0.020 0.212
#> SRR1475062 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.0260 0.9060 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1097728 3 0.3464 0.5618 0.000 0.000 0.688 0.000 0.312 0.000
#> SRR1447172 2 0.0000 0.9108 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1472486 6 0.4917 0.4535 0.000 0.000 0.076 0.000 0.348 0.576
#> SRR1377881 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 3 0.1594 0.8416 0.000 0.000 0.932 0.052 0.000 0.016
#> SRR1313747 2 0.0260 0.9073 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1414447 3 0.0000 0.8875 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1358238 4 0.0146 0.7371 0.004 0.000 0.000 0.996 0.000 0.000
#> SRR1322115 1 0.6493 0.0546 0.464 0.000 0.000 0.288 0.036 0.212
#> SRR1330474 4 0.3727 0.4593 0.388 0.000 0.000 0.612 0.000 0.000
#> SRR1093124 1 0.0632 0.9026 0.976 0.000 0.000 0.024 0.000 0.000
#> SRR1456354 4 0.0000 0.7365 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR820859 5 0.5478 0.5719 0.000 0.000 0.000 0.236 0.568 0.196
#> SRR1401860 5 0.5478 0.5719 0.000 0.000 0.000 0.236 0.568 0.196
#> SRR1095599 5 0.1444 0.6893 0.000 0.000 0.072 0.000 0.928 0.000
#> SRR1417130 1 0.0000 0.9225 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1362597 2 0.3189 0.6929 0.000 0.760 0.000 0.000 0.004 0.236
#> SRR1328464 3 0.3817 0.3500 0.000 0.000 0.568 0.000 0.432 0.000
#> SRR1323957 4 0.3351 0.6184 0.288 0.000 0.000 0.712 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 17633 rows and 97 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'SD' method.
#> Subgroups are detected by 'mclust' method.
#> Performed in total 1250 partitions by row resampling.
#> Best k for subgroups seems to be 5.
#>
#> Following methods can be applied to this 'ConsensusPartition' object:
#> [1] "cola_report" "collect_classes" "collect_plots"
#> [4] "collect_stats" "colnames" "compare_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.All the plots in panels can be made by individual functions and they are plotted later in this section.
select_partition_number()
produces several plots showing different
statistics for choosing “optimized” k
. There are following statistics:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower PAC score, higher mean silhouette score or higher
concordance corresponds to better partition. Rand index and Jaccard index
measure how similar the current partition is compared to partition with k-1
.
If they are too similar, we won't accept k
is better than k-1
.
select_partition_number(res)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 0.727 0.829 0.931 0.4030 0.646 0.646
#> 3 3 0.593 0.549 0.737 0.4933 0.824 0.729
#> 4 4 0.548 0.657 0.798 0.1810 0.750 0.503
#> 5 5 0.606 0.697 0.781 0.0963 0.836 0.491
#> 6 6 0.664 0.593 0.708 0.0455 0.886 0.543
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
#> SRR1397242 1 0.0000 0.976 1.000 0.000
#> SRR1093410 1 0.0000 0.976 1.000 0.000
#> SRR1380523 2 0.0000 0.907 0.000 1.000
#> SRR1089106 2 0.9977 0.243 0.472 0.528
#> SRR1401403 1 0.0000 0.976 1.000 0.000
#> SRR1080534 2 0.0672 0.902 0.008 0.992
#> SRR1487638 2 0.0000 0.907 0.000 1.000
#> SRR1320650 2 0.0000 0.907 0.000 1.000
#> SRR1073045 2 0.0000 0.907 0.000 1.000
#> SRR1397030 2 0.0000 0.907 0.000 1.000
#> SRR1439976 2 0.9977 0.243 0.472 0.528
#> SRR1454050 2 0.0000 0.907 0.000 1.000
#> SRR1070286 2 0.9954 0.275 0.460 0.540
#> SRR1344185 2 0.0000 0.907 0.000 1.000
#> SRR1084228 2 0.0000 0.907 0.000 1.000
#> SRR1101907 2 0.0000 0.907 0.000 1.000
#> SRR1079686 2 0.0000 0.907 0.000 1.000
#> SRR1089761 2 0.0000 0.907 0.000 1.000
#> SRR811403 2 0.0000 0.907 0.000 1.000
#> SRR1440560 2 0.0000 0.907 0.000 1.000
#> SRR1079706 2 0.0000 0.907 0.000 1.000
#> SRR1459101 2 0.0000 0.907 0.000 1.000
#> SRR1335089 2 0.0000 0.907 0.000 1.000
#> SRR1337840 1 0.0000 0.976 1.000 0.000
#> SRR808682 2 0.0000 0.907 0.000 1.000
#> SRR1443224 2 0.0000 0.907 0.000 1.000
#> SRR1439831 1 0.0000 0.976 1.000 0.000
#> SRR1087463 2 0.0000 0.907 0.000 1.000
#> SRR1457949 2 0.0000 0.907 0.000 1.000
#> SRR1455969 2 0.0000 0.907 0.000 1.000
#> SRR1415529 2 0.9552 0.460 0.376 0.624
#> SRR1330018 2 0.0000 0.907 0.000 1.000
#> SRR1370597 2 0.0000 0.907 0.000 1.000
#> SRR1385524 2 0.0000 0.907 0.000 1.000
#> SRR1351605 2 0.9977 0.243 0.472 0.528
#> SRR1460148 1 0.0000 0.976 1.000 0.000
#> SRR1354159 2 0.0000 0.907 0.000 1.000
#> SRR1318390 2 0.0000 0.907 0.000 1.000
#> SRR1073095 2 0.0000 0.907 0.000 1.000
#> SRR1410612 2 0.0000 0.907 0.000 1.000
#> SRR1076892 1 0.0000 0.976 1.000 0.000
#> SRR1340989 2 0.0000 0.907 0.000 1.000
#> SRR1481375 2 0.0000 0.907 0.000 1.000
#> SRR1079356 2 0.9710 0.413 0.400 0.600
#> SRR1455545 2 0.9977 0.243 0.472 0.528
#> SRR1406157 1 0.0000 0.976 1.000 0.000
#> SRR1445920 2 0.0000 0.907 0.000 1.000
#> SRR1420259 2 0.0000 0.907 0.000 1.000
#> SRR1376963 2 0.0000 0.907 0.000 1.000
#> SRR1101061 1 0.0000 0.976 1.000 0.000
#> SRR1414496 2 0.0000 0.907 0.000 1.000
#> SRR1334791 1 0.0000 0.976 1.000 0.000
#> SRR1072129 2 0.0000 0.907 0.000 1.000
#> SRR1330450 2 0.0000 0.907 0.000 1.000
#> SRR1409108 2 0.0000 0.907 0.000 1.000
#> SRR1416865 2 0.0000 0.907 0.000 1.000
#> SRR1071832 2 0.9954 0.275 0.460 0.540
#> SRR1093814 2 0.0000 0.907 0.000 1.000
#> SRR1381821 2 0.0000 0.907 0.000 1.000
#> SRR811675 2 0.9710 0.413 0.400 0.600
#> SRR1082423 1 0.0000 0.976 1.000 0.000
#> SRR1417296 2 0.0000 0.907 0.000 1.000
#> SRR815944 2 0.0000 0.907 0.000 1.000
#> SRR1332775 2 0.0000 0.907 0.000 1.000
#> SRR1079143 2 0.0000 0.907 0.000 1.000
#> SRR1476807 1 0.1184 0.959 0.984 0.016
#> SRR1456634 1 0.0000 0.976 1.000 0.000
#> SRR1083171 2 0.0000 0.907 0.000 1.000
#> SRR1083337 1 0.0000 0.976 1.000 0.000
#> SRR1377672 2 0.0000 0.907 0.000 1.000
#> SRR1435816 2 0.0000 0.907 0.000 1.000
#> SRR1080580 2 0.7219 0.719 0.200 0.800
#> SRR1366672 2 0.0000 0.907 0.000 1.000
#> SRR1075150 2 0.0000 0.907 0.000 1.000
#> SRR814137 2 0.9977 0.243 0.472 0.528
#> SRR1475062 1 0.0000 0.976 1.000 0.000
#> SRR1340028 1 0.0000 0.976 1.000 0.000
#> SRR1070789 2 0.0000 0.907 0.000 1.000
#> SRR1097728 2 0.0000 0.907 0.000 1.000
#> SRR1447172 2 0.0000 0.907 0.000 1.000
#> SRR1472486 2 0.0000 0.907 0.000 1.000
#> SRR1377881 1 0.0000 0.976 1.000 0.000
#> SRR1420912 2 0.1843 0.886 0.028 0.972
#> SRR1313747 2 0.0000 0.907 0.000 1.000
#> SRR1414447 2 0.0000 0.907 0.000 1.000
#> SRR1358238 1 0.9775 0.133 0.588 0.412
#> SRR1322115 2 0.9977 0.243 0.472 0.528
#> SRR1330474 1 0.0000 0.976 1.000 0.000
#> SRR1093124 1 0.0000 0.976 1.000 0.000
#> SRR1456354 2 0.9977 0.243 0.472 0.528
#> SRR820859 2 0.9323 0.510 0.348 0.652
#> SRR1401860 2 0.8861 0.581 0.304 0.696
#> SRR1095599 2 0.0000 0.907 0.000 1.000
#> SRR1417130 1 0.0000 0.976 1.000 0.000
#> SRR1362597 2 0.0000 0.907 0.000 1.000
#> SRR1328464 2 0.0000 0.907 0.000 1.000
#> SRR1323957 1 0.0000 0.976 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.79830 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.79830 1.000 0.000 0.000
#> SRR1380523 2 0.0424 0.69140 0.000 0.992 0.008
#> SRR1089106 3 0.6045 0.33460 0.380 0.000 0.620
#> SRR1401403 1 0.1031 0.78865 0.976 0.000 0.024
#> SRR1080534 2 0.5760 0.20730 0.000 0.672 0.328
#> SRR1487638 2 0.6204 0.60601 0.000 0.576 0.424
#> SRR1320650 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1073045 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1397030 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1439976 3 0.6079 0.33126 0.388 0.000 0.612
#> SRR1454050 2 0.6307 0.58008 0.000 0.512 0.488
#> SRR1070286 3 0.9641 0.26749 0.212 0.356 0.432
#> SRR1344185 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1084228 2 0.1411 0.69463 0.000 0.964 0.036
#> SRR1101907 2 0.1964 0.69067 0.000 0.944 0.056
#> SRR1079686 2 0.5988 0.62105 0.000 0.632 0.368
#> SRR1089761 2 0.6307 0.58008 0.000 0.512 0.488
#> SRR811403 2 0.6307 0.58008 0.000 0.512 0.488
#> SRR1440560 2 0.6307 0.58008 0.000 0.512 0.488
#> SRR1079706 2 0.3816 0.67314 0.000 0.852 0.148
#> SRR1459101 2 0.6299 0.58628 0.000 0.524 0.476
#> SRR1335089 2 0.6291 0.58740 0.000 0.532 0.468
#> SRR1337840 1 0.6154 0.32117 0.592 0.000 0.408
#> SRR808682 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1443224 2 0.6307 0.58008 0.000 0.512 0.488
#> SRR1439831 1 0.0000 0.79830 1.000 0.000 0.000
#> SRR1087463 2 0.6291 0.58692 0.000 0.532 0.468
#> SRR1457949 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1455969 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1415529 3 0.1163 0.38166 0.000 0.028 0.972
#> SRR1330018 2 0.1163 0.69393 0.000 0.972 0.028
#> SRR1370597 2 0.4002 0.66963 0.000 0.840 0.160
#> SRR1385524 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1351605 3 0.6079 0.33126 0.388 0.000 0.612
#> SRR1460148 1 0.0000 0.79830 1.000 0.000 0.000
#> SRR1354159 2 0.6307 0.58008 0.000 0.512 0.488
#> SRR1318390 2 0.6307 0.58008 0.000 0.512 0.488
#> SRR1073095 2 0.1411 0.69463 0.000 0.964 0.036
#> SRR1410612 2 0.1411 0.69463 0.000 0.964 0.036
#> SRR1076892 1 0.0000 0.79830 1.000 0.000 0.000
#> SRR1340989 2 0.6308 0.57640 0.000 0.508 0.492
#> SRR1481375 2 0.0424 0.69140 0.000 0.992 0.008
#> SRR1079356 3 0.4062 0.24197 0.000 0.164 0.836
#> SRR1455545 3 0.6079 0.33126 0.388 0.000 0.612
#> SRR1406157 1 0.0424 0.79605 0.992 0.000 0.008
#> SRR1445920 2 0.1411 0.69463 0.000 0.964 0.036
#> SRR1420259 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1376963 2 0.6307 0.58008 0.000 0.512 0.488
#> SRR1101061 1 0.0000 0.79830 1.000 0.000 0.000
#> SRR1414496 2 0.1411 0.69463 0.000 0.964 0.036
#> SRR1334791 1 0.0000 0.79830 1.000 0.000 0.000
#> SRR1072129 2 0.6140 0.61270 0.000 0.596 0.404
#> SRR1330450 2 0.6308 0.57640 0.000 0.508 0.492
#> SRR1409108 2 0.6307 0.58008 0.000 0.512 0.488
#> SRR1416865 2 0.6280 0.59076 0.000 0.540 0.460
#> SRR1071832 3 0.1315 0.38624 0.020 0.008 0.972
#> SRR1093814 2 0.6307 0.58008 0.000 0.512 0.488
#> SRR1381821 2 0.4178 0.66463 0.000 0.828 0.172
#> SRR811675 2 0.6095 -0.03187 0.000 0.608 0.392
#> SRR1082423 1 0.1860 0.77322 0.948 0.000 0.052
#> SRR1417296 2 0.6305 0.58231 0.000 0.516 0.484
#> SRR815944 2 0.6307 0.58008 0.000 0.512 0.488
#> SRR1332775 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1079143 2 0.6308 0.57640 0.000 0.508 0.492
#> SRR1476807 3 0.6295 0.00964 0.472 0.000 0.528
#> SRR1456634 1 0.6111 0.34668 0.604 0.000 0.396
#> SRR1083171 2 0.6307 0.58008 0.000 0.512 0.488
#> SRR1083337 1 0.0000 0.79830 1.000 0.000 0.000
#> SRR1377672 2 0.6308 0.57640 0.000 0.508 0.492
#> SRR1435816 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1080580 2 0.6192 -0.04512 0.000 0.580 0.420
#> SRR1366672 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1075150 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR814137 3 0.6079 0.33126 0.388 0.000 0.612
#> SRR1475062 1 0.0000 0.79830 1.000 0.000 0.000
#> SRR1340028 1 0.3752 0.69575 0.856 0.000 0.144
#> SRR1070789 2 0.1411 0.69463 0.000 0.964 0.036
#> SRR1097728 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1447172 2 0.1529 0.69438 0.000 0.960 0.040
#> SRR1472486 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1377881 1 0.0000 0.79830 1.000 0.000 0.000
#> SRR1420912 3 0.6309 -0.59928 0.000 0.496 0.504
#> SRR1313747 2 0.6305 0.58231 0.000 0.516 0.484
#> SRR1414447 2 0.6307 0.58008 0.000 0.512 0.488
#> SRR1358238 3 0.6079 0.33126 0.388 0.000 0.612
#> SRR1322115 3 0.8149 0.25667 0.072 0.408 0.520
#> SRR1330474 1 0.6154 0.32117 0.592 0.000 0.408
#> SRR1093124 1 0.6095 0.35402 0.608 0.000 0.392
#> SRR1456354 3 0.6079 0.33126 0.388 0.000 0.612
#> SRR820859 2 0.6309 -0.23150 0.000 0.504 0.496
#> SRR1401860 2 0.6291 -0.16913 0.000 0.532 0.468
#> SRR1095599 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1417130 1 0.6111 0.34668 0.604 0.000 0.396
#> SRR1362597 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1328464 2 0.0000 0.68985 0.000 1.000 0.000
#> SRR1323957 1 0.6154 0.32117 0.592 0.000 0.408
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.8910 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.8910 1.000 0.000 0.000 0.000
#> SRR1380523 3 0.4989 0.2827 0.000 0.472 0.528 0.000
#> SRR1089106 4 0.4582 0.7324 0.020 0.072 0.084 0.824
#> SRR1401403 1 0.0000 0.8910 1.000 0.000 0.000 0.000
#> SRR1080534 3 0.2918 0.6375 0.000 0.008 0.876 0.116
#> SRR1487638 2 0.2281 0.7121 0.000 0.904 0.096 0.000
#> SRR1320650 3 0.3528 0.7825 0.000 0.192 0.808 0.000
#> SRR1073045 3 0.3219 0.7939 0.000 0.164 0.836 0.000
#> SRR1397030 3 0.3356 0.7908 0.000 0.176 0.824 0.000
#> SRR1439976 4 0.3954 0.7328 0.084 0.020 0.040 0.856
#> SRR1454050 2 0.0592 0.7531 0.000 0.984 0.016 0.000
#> SRR1070286 3 0.3432 0.6108 0.004 0.008 0.848 0.140
#> SRR1344185 3 0.3356 0.7927 0.000 0.176 0.824 0.000
#> SRR1084228 3 0.4925 0.3934 0.000 0.428 0.572 0.000
#> SRR1101907 3 0.4933 0.3867 0.000 0.432 0.568 0.000
#> SRR1079686 2 0.2814 0.6791 0.000 0.868 0.132 0.000
#> SRR1089761 2 0.6500 0.4443 0.000 0.620 0.120 0.260
#> SRR811403 2 0.0592 0.7531 0.000 0.984 0.016 0.000
#> SRR1440560 2 0.0592 0.7531 0.000 0.984 0.016 0.000
#> SRR1079706 3 0.6401 0.7287 0.000 0.172 0.652 0.176
#> SRR1459101 2 0.6267 0.5702 0.000 0.664 0.148 0.188
#> SRR1335089 4 0.7589 -0.1286 0.000 0.396 0.196 0.408
#> SRR1337840 1 0.4830 0.5433 0.608 0.000 0.000 0.392
#> SRR808682 3 0.4605 0.6115 0.000 0.336 0.664 0.000
#> SRR1443224 2 0.0592 0.7531 0.000 0.984 0.016 0.000
#> SRR1439831 1 0.0000 0.8910 1.000 0.000 0.000 0.000
#> SRR1087463 2 0.6061 0.4230 0.000 0.552 0.048 0.400
#> SRR1457949 3 0.3219 0.7939 0.000 0.164 0.836 0.000
#> SRR1455969 3 0.3885 0.7664 0.000 0.092 0.844 0.064
#> SRR1415529 4 0.5477 0.6758 0.000 0.092 0.180 0.728
#> SRR1330018 3 0.4888 0.4575 0.000 0.412 0.588 0.000
#> SRR1370597 3 0.6362 0.7226 0.000 0.168 0.656 0.176
#> SRR1385524 3 0.3400 0.7893 0.000 0.180 0.820 0.000
#> SRR1351605 4 0.4274 0.7320 0.096 0.008 0.064 0.832
#> SRR1460148 1 0.0000 0.8910 1.000 0.000 0.000 0.000
#> SRR1354159 2 0.0707 0.7527 0.000 0.980 0.020 0.000
#> SRR1318390 2 0.0592 0.7531 0.000 0.984 0.016 0.000
#> SRR1073095 2 0.4250 0.4625 0.000 0.724 0.276 0.000
#> SRR1410612 2 0.4193 0.4783 0.000 0.732 0.268 0.000
#> SRR1076892 1 0.0000 0.8910 1.000 0.000 0.000 0.000
#> SRR1340989 2 0.6851 0.3659 0.000 0.584 0.148 0.268
#> SRR1481375 3 0.4222 0.6960 0.000 0.272 0.728 0.000
#> SRR1079356 4 0.7654 -0.0364 0.000 0.368 0.212 0.420
#> SRR1455545 4 0.3700 0.7239 0.096 0.008 0.036 0.860
#> SRR1406157 1 0.0188 0.8899 0.996 0.000 0.000 0.004
#> SRR1445920 2 0.4193 0.4783 0.000 0.732 0.268 0.000
#> SRR1420259 3 0.3311 0.7917 0.000 0.172 0.828 0.000
#> SRR1376963 2 0.0592 0.7531 0.000 0.984 0.016 0.000
#> SRR1101061 1 0.0000 0.8910 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.4331 0.4372 0.000 0.712 0.288 0.000
#> SRR1334791 1 0.0000 0.8910 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.2704 0.6871 0.000 0.876 0.124 0.000
#> SRR1330450 2 0.7050 0.3234 0.000 0.564 0.172 0.264
#> SRR1409108 2 0.0000 0.7450 0.000 1.000 0.000 0.000
#> SRR1416865 2 0.6407 0.3812 0.000 0.520 0.068 0.412
#> SRR1071832 4 0.5395 0.6844 0.000 0.092 0.172 0.736
#> SRR1093814 2 0.0707 0.7528 0.000 0.980 0.020 0.000
#> SRR1381821 3 0.5091 0.6574 0.000 0.068 0.752 0.180
#> SRR811675 3 0.2737 0.6670 0.000 0.008 0.888 0.104
#> SRR1082423 1 0.0469 0.8873 0.988 0.000 0.000 0.012
#> SRR1417296 2 0.0000 0.7450 0.000 1.000 0.000 0.000
#> SRR815944 2 0.5172 0.5595 0.000 0.704 0.036 0.260
#> SRR1332775 3 0.5056 0.7743 0.000 0.164 0.760 0.076
#> SRR1079143 2 0.6987 0.3270 0.000 0.568 0.160 0.272
#> SRR1476807 4 0.4936 0.1719 0.340 0.008 0.000 0.652
#> SRR1456634 1 0.3649 0.7853 0.796 0.000 0.000 0.204
#> SRR1083171 2 0.0707 0.7530 0.000 0.980 0.020 0.000
#> SRR1083337 1 0.0000 0.8910 1.000 0.000 0.000 0.000
#> SRR1377672 2 0.5141 0.5536 0.000 0.700 0.032 0.268
#> SRR1435816 3 0.4544 0.7832 0.000 0.164 0.788 0.048
#> SRR1080580 3 0.3272 0.6241 0.004 0.008 0.860 0.128
#> SRR1366672 3 0.3219 0.7939 0.000 0.164 0.836 0.000
#> SRR1075150 3 0.3400 0.7892 0.000 0.180 0.820 0.000
#> SRR814137 4 0.4652 0.7387 0.076 0.028 0.072 0.824
#> SRR1475062 1 0.0000 0.8910 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.3024 0.8225 0.852 0.000 0.000 0.148
#> SRR1070789 2 0.4222 0.4774 0.000 0.728 0.272 0.000
#> SRR1097728 3 0.3172 0.7937 0.000 0.160 0.840 0.000
#> SRR1447172 2 0.4304 0.4455 0.000 0.716 0.284 0.000
#> SRR1472486 3 0.3219 0.7939 0.000 0.164 0.836 0.000
#> SRR1377881 1 0.0000 0.8910 1.000 0.000 0.000 0.000
#> SRR1420912 2 0.6990 0.2717 0.000 0.552 0.144 0.304
#> SRR1313747 2 0.0188 0.7471 0.000 0.996 0.004 0.000
#> SRR1414447 2 0.3647 0.6667 0.000 0.852 0.108 0.040
#> SRR1358238 4 0.3088 0.6704 0.128 0.008 0.000 0.864
#> SRR1322115 3 0.4074 0.5743 0.004 0.008 0.792 0.196
#> SRR1330474 1 0.4830 0.5433 0.608 0.000 0.000 0.392
#> SRR1093124 1 0.3610 0.7884 0.800 0.000 0.000 0.200
#> SRR1456354 4 0.3088 0.6704 0.128 0.008 0.000 0.864
#> SRR820859 3 0.3326 0.6191 0.004 0.008 0.856 0.132
#> SRR1401860 3 0.3216 0.6258 0.004 0.008 0.864 0.124
#> SRR1095599 3 0.4452 0.7821 0.000 0.156 0.796 0.048
#> SRR1417130 1 0.3649 0.7853 0.796 0.000 0.000 0.204
#> SRR1362597 3 0.4972 0.3209 0.000 0.456 0.544 0.000
#> SRR1328464 3 0.3266 0.7930 0.000 0.168 0.832 0.000
#> SRR1323957 1 0.4830 0.5433 0.608 0.000 0.000 0.392
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0000 0.925 1.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.925 1.000 0.000 0.000 0.000 0.000
#> SRR1380523 3 0.4152 0.483 0.000 0.296 0.692 0.000 0.012
#> SRR1089106 4 0.3913 0.224 0.000 0.000 0.000 0.676 0.324
#> SRR1401403 1 0.0955 0.911 0.968 0.000 0.000 0.028 0.004
#> SRR1080534 5 0.4836 0.427 0.000 0.000 0.356 0.032 0.612
#> SRR1487638 2 0.1469 0.840 0.000 0.948 0.036 0.000 0.016
#> SRR1320650 3 0.3790 0.779 0.000 0.272 0.724 0.000 0.004
#> SRR1073045 3 0.2771 0.821 0.000 0.128 0.860 0.000 0.012
#> SRR1397030 3 0.3838 0.774 0.000 0.280 0.716 0.000 0.004
#> SRR1439976 4 0.1732 0.703 0.000 0.000 0.000 0.920 0.080
#> SRR1454050 2 0.1469 0.840 0.000 0.948 0.036 0.000 0.016
#> SRR1070286 5 0.4678 0.588 0.000 0.000 0.224 0.064 0.712
#> SRR1344185 3 0.3906 0.796 0.000 0.132 0.800 0.000 0.068
#> SRR1084228 3 0.3857 0.743 0.000 0.312 0.688 0.000 0.000
#> SRR1101907 3 0.3934 0.786 0.000 0.244 0.740 0.000 0.016
#> SRR1079686 2 0.1549 0.838 0.000 0.944 0.040 0.000 0.016
#> SRR1089761 5 0.5653 0.641 0.000 0.208 0.020 0.104 0.668
#> SRR811403 2 0.1469 0.840 0.000 0.948 0.036 0.000 0.016
#> SRR1440560 2 0.2491 0.792 0.000 0.896 0.036 0.000 0.068
#> SRR1079706 5 0.4039 0.552 0.000 0.008 0.268 0.004 0.720
#> SRR1459101 5 0.6942 0.657 0.000 0.148 0.132 0.124 0.596
#> SRR1335089 5 0.5016 0.636 0.000 0.092 0.016 0.160 0.732
#> SRR1337840 4 0.4321 0.300 0.396 0.000 0.004 0.600 0.000
#> SRR808682 3 0.4371 0.683 0.000 0.344 0.644 0.000 0.012
#> SRR1443224 2 0.1469 0.840 0.000 0.948 0.036 0.000 0.016
#> SRR1439831 1 0.0000 0.925 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.5213 0.640 0.000 0.108 0.016 0.160 0.716
#> SRR1457949 3 0.3229 0.812 0.000 0.128 0.840 0.000 0.032
#> SRR1455969 3 0.3689 0.818 0.000 0.144 0.816 0.008 0.032
#> SRR1415529 5 0.4138 0.447 0.000 0.000 0.000 0.384 0.616
#> SRR1330018 3 0.4063 0.549 0.000 0.280 0.708 0.000 0.012
#> SRR1370597 5 0.4561 0.531 0.000 0.016 0.284 0.012 0.688
#> SRR1385524 3 0.4227 0.757 0.000 0.292 0.692 0.000 0.016
#> SRR1351605 4 0.1851 0.697 0.000 0.000 0.000 0.912 0.088
#> SRR1460148 1 0.0000 0.925 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 2 0.4163 0.650 0.000 0.776 0.040 0.008 0.176
#> SRR1318390 2 0.1469 0.840 0.000 0.948 0.036 0.000 0.016
#> SRR1073095 2 0.4520 0.651 0.000 0.684 0.284 0.000 0.032
#> SRR1410612 2 0.4520 0.651 0.000 0.684 0.284 0.000 0.032
#> SRR1076892 1 0.0000 0.925 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 5 0.5752 0.638 0.000 0.192 0.020 0.124 0.664
#> SRR1481375 3 0.3039 0.822 0.000 0.152 0.836 0.000 0.012
#> SRR1079356 5 0.3301 0.627 0.000 0.080 0.000 0.072 0.848
#> SRR1455545 4 0.1608 0.706 0.000 0.000 0.000 0.928 0.072
#> SRR1406157 1 0.0000 0.925 1.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.4520 0.651 0.000 0.684 0.284 0.000 0.032
#> SRR1420259 3 0.2771 0.821 0.000 0.128 0.860 0.000 0.012
#> SRR1376963 2 0.1469 0.840 0.000 0.948 0.036 0.000 0.016
#> SRR1101061 1 0.0000 0.925 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.4520 0.651 0.000 0.684 0.284 0.000 0.032
#> SRR1334791 1 0.0000 0.925 1.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.2612 0.759 0.000 0.868 0.124 0.000 0.008
#> SRR1330450 5 0.5654 0.641 0.000 0.196 0.020 0.112 0.672
#> SRR1409108 2 0.0510 0.833 0.000 0.984 0.016 0.000 0.000
#> SRR1416865 5 0.5029 0.640 0.000 0.096 0.016 0.156 0.732
#> SRR1071832 5 0.4262 0.355 0.000 0.000 0.000 0.440 0.560
#> SRR1093814 2 0.1469 0.840 0.000 0.948 0.036 0.000 0.016
#> SRR1381821 5 0.3783 0.573 0.000 0.000 0.252 0.008 0.740
#> SRR811675 5 0.5114 0.386 0.000 0.004 0.404 0.032 0.560
#> SRR1082423 1 0.2446 0.868 0.900 0.000 0.000 0.056 0.044
#> SRR1417296 2 0.0162 0.830 0.000 0.996 0.004 0.000 0.000
#> SRR815944 5 0.5465 0.636 0.000 0.216 0.008 0.108 0.668
#> SRR1332775 3 0.6481 0.403 0.000 0.156 0.496 0.008 0.340
#> SRR1079143 5 0.5763 0.635 0.000 0.188 0.020 0.128 0.664
#> SRR1476807 4 0.3635 0.543 0.248 0.000 0.004 0.748 0.000
#> SRR1456634 1 0.3796 0.589 0.700 0.000 0.000 0.300 0.000
#> SRR1083171 2 0.1469 0.840 0.000 0.948 0.036 0.000 0.016
#> SRR1083337 1 0.0000 0.925 1.000 0.000 0.000 0.000 0.000
#> SRR1377672 5 0.5948 0.635 0.000 0.196 0.024 0.132 0.648
#> SRR1435816 3 0.3720 0.541 0.000 0.012 0.760 0.000 0.228
#> SRR1080580 5 0.4817 0.564 0.000 0.000 0.264 0.056 0.680
#> SRR1366672 3 0.2771 0.821 0.000 0.128 0.860 0.000 0.012
#> SRR1075150 3 0.3884 0.767 0.000 0.288 0.708 0.000 0.004
#> SRR814137 4 0.1851 0.697 0.000 0.000 0.000 0.912 0.088
#> SRR1475062 1 0.0000 0.925 1.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.1908 0.868 0.908 0.000 0.000 0.092 0.000
#> SRR1070789 2 0.4270 0.616 0.000 0.668 0.320 0.000 0.012
#> SRR1097728 3 0.2964 0.813 0.000 0.120 0.856 0.000 0.024
#> SRR1447172 2 0.4520 0.651 0.000 0.684 0.284 0.000 0.032
#> SRR1472486 3 0.2660 0.821 0.000 0.128 0.864 0.000 0.008
#> SRR1377881 1 0.0000 0.925 1.000 0.000 0.000 0.000 0.000
#> SRR1420912 5 0.6112 0.575 0.000 0.188 0.008 0.204 0.600
#> SRR1313747 2 0.1082 0.838 0.000 0.964 0.028 0.000 0.008
#> SRR1414447 5 0.5531 0.540 0.000 0.336 0.004 0.072 0.588
#> SRR1358238 4 0.1661 0.718 0.024 0.000 0.000 0.940 0.036
#> SRR1322115 5 0.5553 0.527 0.012 0.000 0.268 0.080 0.640
#> SRR1330474 4 0.4321 0.300 0.396 0.000 0.004 0.600 0.000
#> SRR1093124 1 0.3480 0.682 0.752 0.000 0.000 0.248 0.000
#> SRR1456354 4 0.1568 0.718 0.020 0.000 0.000 0.944 0.036
#> SRR820859 5 0.4854 0.567 0.000 0.000 0.260 0.060 0.680
#> SRR1401860 5 0.4603 0.513 0.000 0.000 0.300 0.032 0.668
#> SRR1095599 3 0.5481 0.659 0.000 0.120 0.672 0.008 0.200
#> SRR1417130 1 0.3636 0.643 0.728 0.000 0.000 0.272 0.000
#> SRR1362597 3 0.3863 0.589 0.000 0.248 0.740 0.000 0.012
#> SRR1328464 3 0.3460 0.804 0.000 0.128 0.828 0.000 0.044
#> SRR1323957 4 0.4321 0.300 0.396 0.000 0.004 0.600 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0000 0.91513 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.91513 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1380523 6 0.3731 0.49019 0.000 0.240 0.004 0.000 0.020 0.736
#> SRR1089106 4 0.4570 0.58248 0.000 0.000 0.152 0.700 0.148 0.000
#> SRR1401403 1 0.0806 0.91026 0.972 0.000 0.000 0.020 0.008 0.000
#> SRR1080534 5 0.5915 0.58717 0.000 0.004 0.272 0.084 0.584 0.056
#> SRR1487638 2 0.3585 0.74072 0.000 0.792 0.048 0.000 0.004 0.156
#> SRR1320650 6 0.4283 0.52582 0.000 0.288 0.004 0.000 0.036 0.672
#> SRR1073045 6 0.6104 0.49008 0.000 0.108 0.080 0.000 0.228 0.584
#> SRR1397030 6 0.5465 0.57382 0.000 0.240 0.012 0.000 0.144 0.604
#> SRR1439976 4 0.2294 0.76541 0.000 0.000 0.036 0.892 0.072 0.000
#> SRR1454050 2 0.1285 0.82168 0.000 0.944 0.052 0.000 0.004 0.000
#> SRR1070286 5 0.4998 0.55224 0.000 0.000 0.252 0.088 0.648 0.012
#> SRR1344185 6 0.6514 0.37099 0.000 0.072 0.164 0.000 0.240 0.524
#> SRR1084228 6 0.4064 0.49305 0.000 0.336 0.000 0.000 0.020 0.644
#> SRR1101907 6 0.6289 0.52301 0.000 0.276 0.088 0.000 0.096 0.540
#> SRR1079686 2 0.3036 0.78892 0.000 0.864 0.052 0.000 0.052 0.032
#> SRR1089761 3 0.2797 0.73497 0.000 0.064 0.876 0.000 0.024 0.036
#> SRR811403 2 0.1285 0.82168 0.000 0.944 0.052 0.000 0.004 0.000
#> SRR1440560 2 0.2491 0.76032 0.000 0.836 0.164 0.000 0.000 0.000
#> SRR1079706 3 0.4853 0.11693 0.000 0.000 0.556 0.004 0.388 0.052
#> SRR1459101 3 0.5136 0.60871 0.000 0.060 0.708 0.004 0.148 0.080
#> SRR1335089 3 0.3184 0.69116 0.000 0.028 0.836 0.016 0.120 0.000
#> SRR1337840 1 0.5016 0.55511 0.592 0.000 0.000 0.312 0.096 0.000
#> SRR808682 6 0.3888 0.47803 0.000 0.312 0.000 0.000 0.016 0.672
#> SRR1443224 2 0.1411 0.82060 0.000 0.936 0.060 0.000 0.004 0.000
#> SRR1439831 1 0.0146 0.91500 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1087463 3 0.3269 0.68655 0.000 0.028 0.828 0.016 0.128 0.000
#> SRR1457949 6 0.6125 0.43191 0.000 0.064 0.120 0.000 0.248 0.568
#> SRR1455969 6 0.6677 0.48946 0.000 0.132 0.092 0.004 0.252 0.520
#> SRR1415529 4 0.5627 0.19796 0.000 0.004 0.380 0.484 0.132 0.000
#> SRR1330018 6 0.3263 0.47315 0.000 0.176 0.004 0.000 0.020 0.800
#> SRR1370597 5 0.5163 0.31836 0.000 0.020 0.396 0.000 0.536 0.048
#> SRR1385524 6 0.4134 0.49100 0.000 0.316 0.000 0.000 0.028 0.656
#> SRR1351605 4 0.2404 0.76478 0.000 0.000 0.036 0.884 0.080 0.000
#> SRR1460148 1 0.0000 0.91513 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 2 0.4014 0.61386 0.000 0.696 0.276 0.000 0.004 0.024
#> SRR1318390 2 0.1285 0.82168 0.000 0.944 0.052 0.000 0.004 0.000
#> SRR1073095 6 0.4887 -0.00806 0.000 0.376 0.032 0.000 0.020 0.572
#> SRR1410612 6 0.4922 -0.05984 0.000 0.392 0.032 0.000 0.020 0.556
#> SRR1076892 1 0.0000 0.91513 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.2209 0.73339 0.000 0.072 0.900 0.004 0.000 0.024
#> SRR1481375 6 0.6277 0.52557 0.000 0.148 0.096 0.000 0.172 0.584
#> SRR1079356 3 0.5310 0.37890 0.000 0.028 0.600 0.068 0.304 0.000
#> SRR1455545 4 0.1572 0.76119 0.000 0.000 0.036 0.936 0.028 0.000
#> SRR1406157 1 0.0146 0.91503 0.996 0.000 0.000 0.000 0.004 0.000
#> SRR1445920 6 0.4929 -0.07267 0.000 0.396 0.032 0.000 0.020 0.552
#> SRR1420259 6 0.6137 0.48611 0.000 0.112 0.076 0.000 0.236 0.576
#> SRR1376963 2 0.1983 0.80937 0.000 0.908 0.072 0.000 0.020 0.000
#> SRR1101061 1 0.0000 0.91513 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 6 0.4878 0.00230 0.000 0.372 0.032 0.000 0.020 0.576
#> SRR1334791 1 0.0260 0.91465 0.992 0.000 0.000 0.000 0.008 0.000
#> SRR1072129 2 0.4370 0.53899 0.000 0.616 0.008 0.000 0.020 0.356
#> SRR1330450 3 0.2415 0.73324 0.000 0.032 0.904 0.004 0.036 0.024
#> SRR1409108 2 0.3263 0.69877 0.000 0.800 0.004 0.000 0.020 0.176
#> SRR1416865 3 0.4291 0.65115 0.000 0.028 0.764 0.076 0.132 0.000
#> SRR1071832 4 0.5818 0.33524 0.000 0.008 0.308 0.516 0.168 0.000
#> SRR1093814 2 0.1493 0.82058 0.000 0.936 0.056 0.000 0.004 0.004
#> SRR1381821 3 0.4909 0.10412 0.000 0.000 0.552 0.008 0.392 0.048
#> SRR811675 5 0.6778 0.42694 0.000 0.008 0.220 0.052 0.488 0.232
#> SRR1082423 1 0.1633 0.89870 0.932 0.000 0.000 0.044 0.024 0.000
#> SRR1417296 2 0.4088 0.58831 0.000 0.668 0.004 0.000 0.020 0.308
#> SRR815944 3 0.2510 0.72585 0.000 0.080 0.884 0.000 0.008 0.028
#> SRR1332775 5 0.6739 0.23117 0.000 0.080 0.216 0.000 0.496 0.208
#> SRR1079143 3 0.2186 0.72959 0.000 0.056 0.908 0.012 0.000 0.024
#> SRR1476807 4 0.4403 0.48078 0.196 0.000 0.000 0.708 0.096 0.000
#> SRR1456634 1 0.3054 0.82911 0.828 0.000 0.000 0.136 0.036 0.000
#> SRR1083171 2 0.2553 0.79967 0.000 0.888 0.056 0.000 0.044 0.012
#> SRR1083337 1 0.0000 0.91513 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.3015 0.70680 0.000 0.120 0.844 0.012 0.000 0.024
#> SRR1435816 6 0.6188 0.08834 0.000 0.024 0.288 0.000 0.188 0.500
#> SRR1080580 5 0.5253 0.57722 0.000 0.000 0.280 0.084 0.616 0.020
#> SRR1366672 6 0.6060 0.49663 0.000 0.108 0.080 0.000 0.220 0.592
#> SRR1075150 6 0.4986 0.54293 0.000 0.284 0.000 0.000 0.104 0.612
#> SRR814137 4 0.2457 0.76383 0.000 0.000 0.036 0.880 0.084 0.000
#> SRR1475062 1 0.0000 0.91513 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.1245 0.90502 0.952 0.000 0.000 0.032 0.016 0.000
#> SRR1070789 6 0.3905 0.08218 0.000 0.356 0.004 0.000 0.004 0.636
#> SRR1097728 6 0.6068 0.47265 0.000 0.096 0.072 0.000 0.264 0.568
#> SRR1447172 6 0.4887 -0.00550 0.000 0.376 0.032 0.000 0.020 0.572
#> SRR1472486 6 0.6098 0.49638 0.000 0.112 0.080 0.000 0.220 0.588
#> SRR1377881 1 0.0000 0.91513 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 3 0.2783 0.72841 0.000 0.060 0.884 0.020 0.012 0.024
#> SRR1313747 2 0.3539 0.68622 0.000 0.768 0.008 0.000 0.016 0.208
#> SRR1414447 3 0.4120 0.47473 0.000 0.276 0.692 0.008 0.000 0.024
#> SRR1358238 4 0.1708 0.73353 0.004 0.000 0.024 0.932 0.040 0.000
#> SRR1322115 5 0.5767 0.57108 0.048 0.000 0.168 0.112 0.656 0.016
#> SRR1330474 1 0.4971 0.57462 0.604 0.000 0.000 0.300 0.096 0.000
#> SRR1093124 1 0.1926 0.88795 0.912 0.000 0.000 0.068 0.020 0.000
#> SRR1456354 4 0.1405 0.74913 0.004 0.000 0.024 0.948 0.024 0.000
#> SRR820859 5 0.4993 0.59486 0.000 0.000 0.228 0.092 0.664 0.016
#> SRR1401860 5 0.5424 0.60951 0.000 0.004 0.224 0.088 0.648 0.036
#> SRR1095599 5 0.6774 0.13779 0.000 0.060 0.220 0.000 0.452 0.268
#> SRR1417130 1 0.2201 0.87940 0.896 0.000 0.000 0.076 0.028 0.000
#> SRR1362597 6 0.3908 0.49530 0.000 0.244 0.004 0.000 0.028 0.724
#> SRR1328464 6 0.6286 0.45113 0.000 0.088 0.112 0.000 0.240 0.560
#> SRR1323957 1 0.5016 0.55511 0.592 0.000 0.000 0.312 0.096 0.000
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
get_signature()
returns a data frame invisibly. TO get the list of signatures, the function
call should be assigned to a variable explicitly. In following code, if plot
argument is set
to FALSE
, no heatmap is plotted while only the differential analysis is performed.
# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)
An example of the output of tb
is:
#> which_row fdr mean_1 mean_2 scaled_mean_1 scaled_mean_2 km
#> 1 38 0.042760348 8.373488 9.131774 -0.5533452 0.5164555 1
#> 2 40 0.018707592 7.106213 8.469186 -0.6173731 0.5762149 1
#> 3 55 0.019134737 10.221463 11.207825 -0.6159697 0.5749050 1
#> 4 59 0.006059896 5.921854 7.869574 -0.6899429 0.6439467 1
#> 5 60 0.018055526 8.928898 10.211722 -0.6204761 0.5791110 1
#> 6 98 0.009384629 15.714769 14.887706 0.6635654 -0.6193277 2
...
The columns in tb
are:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
If matrix rows can be associated to genes, consider to use functional_enrichment(res,
...)
to perform function enrichment for the signature genes. See this vignette for more detailed explanations.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["SD", "NMF"]
# you can also extract it by
# res = res_list["SD:NMF"]
A summary of res
and all the functions that can be applied to it:
res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6.
#> On a matrix with 17633 rows and 97 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.766 0.901 0.952 0.4954 0.495 0.495
#> 3 3 0.743 0.798 0.912 0.3168 0.775 0.578
#> 4 4 0.874 0.856 0.936 0.0909 0.879 0.675
#> 5 5 0.681 0.658 0.830 0.0790 0.929 0.760
#> 6 6 0.683 0.592 0.773 0.0476 0.937 0.758
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
#> SRR1397242 1 0.0000 0.9148 1.000 0.000
#> SRR1093410 1 0.0000 0.9148 1.000 0.000
#> SRR1380523 2 0.0000 0.9807 0.000 1.000
#> SRR1089106 1 0.0000 0.9148 1.000 0.000
#> SRR1401403 1 0.0000 0.9148 1.000 0.000
#> SRR1080534 1 0.7219 0.7893 0.800 0.200
#> SRR1487638 2 0.0000 0.9807 0.000 1.000
#> SRR1320650 2 0.0000 0.9807 0.000 1.000
#> SRR1073045 2 0.0000 0.9807 0.000 1.000
#> SRR1397030 2 0.0000 0.9807 0.000 1.000
#> SRR1439976 1 0.0000 0.9148 1.000 0.000
#> SRR1454050 2 0.0000 0.9807 0.000 1.000
#> SRR1070286 1 0.0000 0.9148 1.000 0.000
#> SRR1344185 2 0.0672 0.9730 0.008 0.992
#> SRR1084228 2 0.0000 0.9807 0.000 1.000
#> SRR1101907 2 0.0000 0.9807 0.000 1.000
#> SRR1079686 2 0.0000 0.9807 0.000 1.000
#> SRR1089761 2 0.9866 0.0799 0.432 0.568
#> SRR811403 2 0.0000 0.9807 0.000 1.000
#> SRR1440560 2 0.0000 0.9807 0.000 1.000
#> SRR1079706 1 0.7376 0.7816 0.792 0.208
#> SRR1459101 1 0.9608 0.5035 0.616 0.384
#> SRR1335089 1 0.7602 0.7685 0.780 0.220
#> SRR1337840 1 0.0000 0.9148 1.000 0.000
#> SRR808682 2 0.0000 0.9807 0.000 1.000
#> SRR1443224 2 0.0000 0.9807 0.000 1.000
#> SRR1439831 1 0.0000 0.9148 1.000 0.000
#> SRR1087463 1 0.9087 0.6209 0.676 0.324
#> SRR1457949 2 0.0000 0.9807 0.000 1.000
#> SRR1455969 2 0.0000 0.9807 0.000 1.000
#> SRR1415529 1 0.5737 0.8399 0.864 0.136
#> SRR1330018 2 0.0000 0.9807 0.000 1.000
#> SRR1370597 2 0.0000 0.9807 0.000 1.000
#> SRR1385524 2 0.0000 0.9807 0.000 1.000
#> SRR1351605 1 0.0000 0.9148 1.000 0.000
#> SRR1460148 1 0.0000 0.9148 1.000 0.000
#> SRR1354159 2 0.0000 0.9807 0.000 1.000
#> SRR1318390 2 0.0000 0.9807 0.000 1.000
#> SRR1073095 2 0.0000 0.9807 0.000 1.000
#> SRR1410612 2 0.0000 0.9807 0.000 1.000
#> SRR1076892 1 0.0000 0.9148 1.000 0.000
#> SRR1340989 1 0.9209 0.5998 0.664 0.336
#> SRR1481375 2 0.0000 0.9807 0.000 1.000
#> SRR1079356 1 0.0000 0.9148 1.000 0.000
#> SRR1455545 1 0.0000 0.9148 1.000 0.000
#> SRR1406157 1 0.0000 0.9148 1.000 0.000
#> SRR1445920 2 0.0000 0.9807 0.000 1.000
#> SRR1420259 2 0.0000 0.9807 0.000 1.000
#> SRR1376963 2 0.0000 0.9807 0.000 1.000
#> SRR1101061 1 0.0000 0.9148 1.000 0.000
#> SRR1414496 2 0.0000 0.9807 0.000 1.000
#> SRR1334791 1 0.0000 0.9148 1.000 0.000
#> SRR1072129 2 0.0000 0.9807 0.000 1.000
#> SRR1330450 1 0.8499 0.6961 0.724 0.276
#> SRR1409108 2 0.0000 0.9807 0.000 1.000
#> SRR1416865 1 0.7453 0.7775 0.788 0.212
#> SRR1071832 1 0.2236 0.8988 0.964 0.036
#> SRR1093814 2 0.0000 0.9807 0.000 1.000
#> SRR1381821 1 0.7219 0.7893 0.800 0.200
#> SRR811675 1 0.0000 0.9148 1.000 0.000
#> SRR1082423 1 0.0000 0.9148 1.000 0.000
#> SRR1417296 2 0.0000 0.9807 0.000 1.000
#> SRR815944 2 0.2043 0.9479 0.032 0.968
#> SRR1332775 2 0.0000 0.9807 0.000 1.000
#> SRR1079143 1 0.9608 0.5035 0.616 0.384
#> SRR1476807 1 0.0000 0.9148 1.000 0.000
#> SRR1456634 1 0.0000 0.9148 1.000 0.000
#> SRR1083171 2 0.0000 0.9807 0.000 1.000
#> SRR1083337 1 0.0000 0.9148 1.000 0.000
#> SRR1377672 1 0.9580 0.5125 0.620 0.380
#> SRR1435816 2 0.8016 0.6239 0.244 0.756
#> SRR1080580 1 0.7139 0.7929 0.804 0.196
#> SRR1366672 2 0.0000 0.9807 0.000 1.000
#> SRR1075150 2 0.0000 0.9807 0.000 1.000
#> SRR814137 1 0.0000 0.9148 1.000 0.000
#> SRR1475062 1 0.0000 0.9148 1.000 0.000
#> SRR1340028 1 0.0000 0.9148 1.000 0.000
#> SRR1070789 2 0.0000 0.9807 0.000 1.000
#> SRR1097728 2 0.0000 0.9807 0.000 1.000
#> SRR1447172 2 0.0000 0.9807 0.000 1.000
#> SRR1472486 2 0.0000 0.9807 0.000 1.000
#> SRR1377881 1 0.0000 0.9148 1.000 0.000
#> SRR1420912 1 0.7453 0.7775 0.788 0.212
#> SRR1313747 2 0.0000 0.9807 0.000 1.000
#> SRR1414447 2 0.3879 0.8961 0.076 0.924
#> SRR1358238 1 0.0000 0.9148 1.000 0.000
#> SRR1322115 1 0.0000 0.9148 1.000 0.000
#> SRR1330474 1 0.0000 0.9148 1.000 0.000
#> SRR1093124 1 0.0000 0.9148 1.000 0.000
#> SRR1456354 1 0.0000 0.9148 1.000 0.000
#> SRR820859 1 0.2603 0.8949 0.956 0.044
#> SRR1401860 1 0.5629 0.8427 0.868 0.132
#> SRR1095599 2 0.0000 0.9807 0.000 1.000
#> SRR1417130 1 0.0000 0.9148 1.000 0.000
#> SRR1362597 2 0.0000 0.9807 0.000 1.000
#> SRR1328464 2 0.0000 0.9807 0.000 1.000
#> SRR1323957 1 0.0000 0.9148 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1089106 3 0.0000 0.815 0.000 0.000 1.000
#> SRR1401403 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1080534 1 0.3619 0.746 0.864 0.136 0.000
#> SRR1487638 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1320650 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1073045 2 0.0237 0.952 0.004 0.996 0.000
#> SRR1397030 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1439976 3 0.0237 0.816 0.004 0.000 0.996
#> SRR1454050 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1070286 1 0.5431 0.617 0.716 0.000 0.284
#> SRR1344185 2 0.0237 0.952 0.004 0.996 0.000
#> SRR1084228 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1101907 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1079686 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1089761 3 0.3267 0.735 0.000 0.116 0.884
#> SRR811403 2 0.0237 0.953 0.000 0.996 0.004
#> SRR1440560 3 0.0424 0.814 0.000 0.008 0.992
#> SRR1079706 1 0.8808 0.246 0.484 0.116 0.400
#> SRR1459101 2 0.0747 0.942 0.016 0.984 0.000
#> SRR1335089 3 0.2200 0.792 0.004 0.056 0.940
#> SRR1337840 3 0.6235 0.350 0.436 0.000 0.564
#> SRR808682 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1443224 2 0.6079 0.393 0.000 0.612 0.388
#> SRR1439831 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1087463 3 0.6126 0.487 0.004 0.352 0.644
#> SRR1457949 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1455969 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1415529 3 0.0237 0.816 0.004 0.000 0.996
#> SRR1330018 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1370597 2 0.6140 0.359 0.000 0.596 0.404
#> SRR1385524 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1351605 3 0.4235 0.704 0.176 0.000 0.824
#> SRR1460148 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1354159 3 0.5835 0.508 0.000 0.340 0.660
#> SRR1318390 2 0.4750 0.704 0.000 0.784 0.216
#> SRR1073095 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1340989 3 0.0237 0.816 0.004 0.000 0.996
#> SRR1481375 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1079356 3 0.0237 0.814 0.004 0.000 0.996
#> SRR1455545 3 0.0747 0.812 0.016 0.000 0.984
#> SRR1406157 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1420259 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1376963 2 0.6168 0.339 0.000 0.588 0.412
#> SRR1101061 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1330450 3 0.0000 0.815 0.000 0.000 1.000
#> SRR1409108 2 0.0237 0.953 0.000 0.996 0.004
#> SRR1416865 3 0.0000 0.815 0.000 0.000 1.000
#> SRR1071832 3 0.0237 0.816 0.004 0.000 0.996
#> SRR1093814 2 0.0237 0.953 0.000 0.996 0.004
#> SRR1381821 1 0.6204 0.375 0.576 0.000 0.424
#> SRR811675 1 0.5591 0.587 0.696 0.000 0.304
#> SRR1082423 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.955 0.000 1.000 0.000
#> SRR815944 3 0.6026 0.441 0.000 0.376 0.624
#> SRR1332775 2 0.4750 0.704 0.000 0.784 0.216
#> SRR1079143 3 0.0237 0.816 0.004 0.000 0.996
#> SRR1476807 3 0.6192 0.383 0.420 0.000 0.580
#> SRR1456634 1 0.0237 0.858 0.996 0.000 0.004
#> SRR1083171 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1083337 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1377672 3 0.4963 0.682 0.008 0.200 0.792
#> SRR1435816 1 0.6330 0.376 0.600 0.396 0.004
#> SRR1080580 1 0.0237 0.859 0.996 0.004 0.000
#> SRR1366672 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1075150 2 0.0000 0.955 0.000 1.000 0.000
#> SRR814137 3 0.0237 0.816 0.004 0.000 0.996
#> SRR1475062 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1097728 2 0.0237 0.953 0.000 0.996 0.004
#> SRR1447172 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1472486 2 0.1031 0.933 0.024 0.976 0.000
#> SRR1377881 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1420912 3 0.0000 0.815 0.000 0.000 1.000
#> SRR1313747 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1414447 3 0.0000 0.815 0.000 0.000 1.000
#> SRR1358238 3 0.5905 0.501 0.352 0.000 0.648
#> SRR1322115 1 0.5058 0.662 0.756 0.000 0.244
#> SRR1330474 1 0.4346 0.653 0.816 0.000 0.184
#> SRR1093124 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1456354 3 0.6079 0.443 0.388 0.000 0.612
#> SRR820859 1 0.6095 0.438 0.608 0.000 0.392
#> SRR1401860 1 0.4002 0.720 0.840 0.160 0.000
#> SRR1095599 2 0.0237 0.953 0.000 0.996 0.004
#> SRR1417130 1 0.0000 0.861 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1328464 2 0.0237 0.953 0.000 0.996 0.004
#> SRR1323957 3 0.6280 0.293 0.460 0.000 0.540
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.9481 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9481 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.9755 0.000 1.000 0.000 0.000
#> SRR1089106 3 0.4998 -0.0798 0.000 0.000 0.512 0.488
#> SRR1401403 1 0.0000 0.9481 1.000 0.000 0.000 0.000
#> SRR1080534 1 0.1743 0.9026 0.940 0.004 0.056 0.000
#> SRR1487638 2 0.0336 0.9747 0.000 0.992 0.000 0.008
#> SRR1320650 2 0.0188 0.9752 0.000 0.996 0.004 0.000
#> SRR1073045 2 0.0336 0.9747 0.000 0.992 0.000 0.008
#> SRR1397030 2 0.0000 0.9755 0.000 1.000 0.000 0.000
#> SRR1439976 4 0.0707 0.8358 0.000 0.000 0.020 0.980
#> SRR1454050 2 0.0927 0.9668 0.000 0.976 0.008 0.016
#> SRR1070286 3 0.3306 0.7366 0.156 0.000 0.840 0.004
#> SRR1344185 2 0.0336 0.9747 0.000 0.992 0.000 0.008
#> SRR1084228 2 0.0188 0.9754 0.000 0.996 0.000 0.004
#> SRR1101907 2 0.0336 0.9747 0.000 0.992 0.000 0.008
#> SRR1079686 2 0.0336 0.9747 0.000 0.992 0.000 0.008
#> SRR1089761 4 0.6110 0.5856 0.000 0.144 0.176 0.680
#> SRR811403 2 0.0376 0.9744 0.000 0.992 0.004 0.004
#> SRR1440560 4 0.5898 0.4395 0.000 0.348 0.048 0.604
#> SRR1079706 3 0.0188 0.8409 0.000 0.004 0.996 0.000
#> SRR1459101 2 0.0376 0.9742 0.000 0.992 0.004 0.004
#> SRR1335089 3 0.3659 0.7369 0.000 0.136 0.840 0.024
#> SRR1337840 4 0.1557 0.8242 0.056 0.000 0.000 0.944
#> SRR808682 2 0.0000 0.9755 0.000 1.000 0.000 0.000
#> SRR1443224 2 0.0817 0.9667 0.000 0.976 0.000 0.024
#> SRR1439831 1 0.0000 0.9481 1.000 0.000 0.000 0.000
#> SRR1087463 3 0.6730 0.4479 0.000 0.276 0.592 0.132
#> SRR1457949 2 0.0524 0.9734 0.004 0.988 0.000 0.008
#> SRR1455969 2 0.0524 0.9739 0.004 0.988 0.000 0.008
#> SRR1415529 4 0.0188 0.8377 0.000 0.000 0.004 0.996
#> SRR1330018 2 0.0188 0.9754 0.000 0.996 0.000 0.004
#> SRR1370597 3 0.0188 0.8409 0.000 0.004 0.996 0.000
#> SRR1385524 2 0.0000 0.9755 0.000 1.000 0.000 0.000
#> SRR1351605 4 0.0188 0.8377 0.000 0.000 0.004 0.996
#> SRR1460148 1 0.0000 0.9481 1.000 0.000 0.000 0.000
#> SRR1354159 2 0.4961 0.0846 0.000 0.552 0.000 0.448
#> SRR1318390 2 0.0937 0.9663 0.000 0.976 0.012 0.012
#> SRR1073095 2 0.0000 0.9755 0.000 1.000 0.000 0.000
#> SRR1410612 2 0.0000 0.9755 0.000 1.000 0.000 0.000
#> SRR1076892 1 0.0000 0.9481 1.000 0.000 0.000 0.000
#> SRR1340989 4 0.3885 0.7747 0.000 0.064 0.092 0.844
#> SRR1481375 2 0.0188 0.9752 0.000 0.996 0.004 0.000
#> SRR1079356 3 0.0188 0.8403 0.000 0.000 0.996 0.004
#> SRR1455545 4 0.0804 0.8377 0.008 0.000 0.012 0.980
#> SRR1406157 1 0.0188 0.9468 0.996 0.000 0.000 0.004
#> SRR1445920 2 0.0000 0.9755 0.000 1.000 0.000 0.000
#> SRR1420259 2 0.0000 0.9755 0.000 1.000 0.000 0.000
#> SRR1376963 2 0.2142 0.9197 0.000 0.928 0.056 0.016
#> SRR1101061 1 0.0000 0.9481 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.0188 0.9752 0.000 0.996 0.004 0.000
#> SRR1334791 1 0.0000 0.9481 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.0188 0.9752 0.000 0.996 0.004 0.000
#> SRR1330450 4 0.4663 0.5852 0.000 0.012 0.272 0.716
#> SRR1409108 2 0.0376 0.9744 0.000 0.992 0.004 0.004
#> SRR1416865 3 0.0188 0.8403 0.000 0.000 0.996 0.004
#> SRR1071832 4 0.1389 0.8245 0.000 0.000 0.048 0.952
#> SRR1093814 2 0.0895 0.9676 0.000 0.976 0.004 0.020
#> SRR1381821 3 0.0188 0.8403 0.000 0.000 0.996 0.004
#> SRR811675 3 0.1557 0.8199 0.056 0.000 0.944 0.000
#> SRR1082423 1 0.0000 0.9481 1.000 0.000 0.000 0.000
#> SRR1417296 2 0.0336 0.9742 0.000 0.992 0.008 0.000
#> SRR815944 4 0.4624 0.4886 0.000 0.340 0.000 0.660
#> SRR1332775 3 0.0336 0.8403 0.000 0.008 0.992 0.000
#> SRR1079143 4 0.0376 0.8374 0.000 0.004 0.004 0.992
#> SRR1476807 4 0.1557 0.8242 0.056 0.000 0.000 0.944
#> SRR1456634 1 0.4454 0.5203 0.692 0.000 0.000 0.308
#> SRR1083171 2 0.0592 0.9709 0.000 0.984 0.000 0.016
#> SRR1083337 1 0.0336 0.9450 0.992 0.000 0.000 0.008
#> SRR1377672 4 0.2814 0.7454 0.000 0.132 0.000 0.868
#> SRR1435816 1 0.4501 0.6321 0.764 0.212 0.024 0.000
#> SRR1080580 1 0.0937 0.9371 0.976 0.000 0.012 0.012
#> SRR1366672 2 0.0000 0.9755 0.000 1.000 0.000 0.000
#> SRR1075150 2 0.0188 0.9754 0.000 0.996 0.000 0.004
#> SRR814137 4 0.0336 0.8374 0.000 0.000 0.008 0.992
#> SRR1475062 1 0.0000 0.9481 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0188 0.9468 0.996 0.000 0.000 0.004
#> SRR1070789 2 0.0188 0.9754 0.000 0.996 0.000 0.004
#> SRR1097728 2 0.1557 0.9255 0.056 0.944 0.000 0.000
#> SRR1447172 2 0.0188 0.9752 0.000 0.996 0.004 0.000
#> SRR1472486 2 0.1940 0.9000 0.076 0.924 0.000 0.000
#> SRR1377881 1 0.0000 0.9481 1.000 0.000 0.000 0.000
#> SRR1420912 3 0.4072 0.5828 0.000 0.000 0.748 0.252
#> SRR1313747 2 0.0672 0.9711 0.000 0.984 0.008 0.008
#> SRR1414447 4 0.4522 0.5140 0.000 0.000 0.320 0.680
#> SRR1358238 4 0.0707 0.8368 0.020 0.000 0.000 0.980
#> SRR1322115 1 0.4222 0.6224 0.728 0.000 0.272 0.000
#> SRR1330474 4 0.3837 0.6762 0.224 0.000 0.000 0.776
#> SRR1093124 1 0.0336 0.9450 0.992 0.000 0.000 0.008
#> SRR1456354 4 0.0707 0.8368 0.020 0.000 0.000 0.980
#> SRR820859 3 0.0817 0.8352 0.024 0.000 0.976 0.000
#> SRR1401860 1 0.0469 0.9388 0.988 0.012 0.000 0.000
#> SRR1095599 3 0.3444 0.6996 0.000 0.184 0.816 0.000
#> SRR1417130 1 0.0469 0.9424 0.988 0.000 0.000 0.012
#> SRR1362597 2 0.0000 0.9755 0.000 1.000 0.000 0.000
#> SRR1328464 3 0.1890 0.8195 0.008 0.056 0.936 0.000
#> SRR1323957 4 0.1716 0.8203 0.064 0.000 0.000 0.936
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0290 0.9502 0.992 0.000 0.008 0.000 0.000
#> SRR1093410 1 0.0290 0.9502 0.992 0.000 0.008 0.000 0.000
#> SRR1380523 2 0.0510 0.7969 0.000 0.984 0.016 0.000 0.000
#> SRR1089106 4 0.6740 0.0418 0.000 0.000 0.268 0.404 0.328
#> SRR1401403 1 0.0693 0.9438 0.980 0.000 0.008 0.000 0.012
#> SRR1080534 1 0.2573 0.8582 0.880 0.000 0.016 0.000 0.104
#> SRR1487638 2 0.0609 0.7992 0.000 0.980 0.020 0.000 0.000
#> SRR1320650 2 0.1851 0.7925 0.000 0.912 0.088 0.000 0.000
#> SRR1073045 2 0.1638 0.7747 0.004 0.932 0.064 0.000 0.000
#> SRR1397030 2 0.1965 0.7906 0.000 0.904 0.096 0.000 0.000
#> SRR1439976 4 0.2540 0.7209 0.000 0.000 0.088 0.888 0.024
#> SRR1454050 2 0.3999 0.6058 0.000 0.656 0.344 0.000 0.000
#> SRR1070286 5 0.3281 0.7002 0.060 0.000 0.092 0.000 0.848
#> SRR1344185 2 0.1732 0.7674 0.000 0.920 0.080 0.000 0.000
#> SRR1084228 2 0.0162 0.7951 0.000 0.996 0.004 0.000 0.000
#> SRR1101907 2 0.1544 0.7737 0.000 0.932 0.068 0.000 0.000
#> SRR1079686 2 0.0162 0.7950 0.000 0.996 0.004 0.000 0.000
#> SRR1089761 3 0.6253 0.2127 0.000 0.016 0.572 0.284 0.128
#> SRR811403 2 0.4307 0.0263 0.000 0.504 0.496 0.000 0.000
#> SRR1440560 4 0.5452 0.0690 0.000 0.060 0.448 0.492 0.000
#> SRR1079706 5 0.0609 0.7410 0.000 0.000 0.020 0.000 0.980
#> SRR1459101 2 0.4208 0.6413 0.020 0.728 0.248 0.004 0.000
#> SRR1335089 5 0.4137 0.6039 0.000 0.012 0.248 0.008 0.732
#> SRR1337840 4 0.0880 0.7582 0.032 0.000 0.000 0.968 0.000
#> SRR808682 2 0.0162 0.7956 0.000 0.996 0.004 0.000 0.000
#> SRR1443224 2 0.2230 0.7506 0.000 0.884 0.116 0.000 0.000
#> SRR1439831 1 0.0000 0.9517 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.7158 0.2876 0.000 0.244 0.048 0.196 0.512
#> SRR1457949 2 0.5120 0.4797 0.000 0.684 0.104 0.000 0.212
#> SRR1455969 2 0.3535 0.6963 0.080 0.832 0.088 0.000 0.000
#> SRR1415529 4 0.2338 0.7344 0.000 0.000 0.112 0.884 0.004
#> SRR1330018 2 0.0510 0.7939 0.000 0.984 0.016 0.000 0.000
#> SRR1370597 5 0.2424 0.7110 0.000 0.000 0.132 0.000 0.868
#> SRR1385524 2 0.2230 0.7835 0.000 0.884 0.116 0.000 0.000
#> SRR1351605 4 0.0880 0.7557 0.000 0.000 0.032 0.968 0.000
#> SRR1460148 1 0.0000 0.9517 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 2 0.4335 0.5746 0.000 0.760 0.072 0.168 0.000
#> SRR1318390 2 0.4425 0.3798 0.000 0.600 0.392 0.008 0.000
#> SRR1073095 2 0.2179 0.7850 0.000 0.888 0.112 0.000 0.000
#> SRR1410612 2 0.2230 0.7835 0.000 0.884 0.116 0.000 0.000
#> SRR1076892 1 0.0162 0.9514 0.996 0.000 0.004 0.000 0.000
#> SRR1340989 3 0.6092 0.2399 0.004 0.044 0.560 0.352 0.040
#> SRR1481375 2 0.3730 0.6104 0.000 0.712 0.288 0.000 0.000
#> SRR1079356 5 0.0880 0.7379 0.000 0.000 0.032 0.000 0.968
#> SRR1455545 4 0.0609 0.7570 0.000 0.000 0.020 0.980 0.000
#> SRR1406157 1 0.0000 0.9517 1.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.2074 0.7881 0.000 0.896 0.104 0.000 0.000
#> SRR1420259 2 0.2783 0.7810 0.004 0.868 0.116 0.000 0.012
#> SRR1376963 3 0.4556 0.4966 0.000 0.184 0.756 0.028 0.032
#> SRR1101061 1 0.0000 0.9517 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.3452 0.6665 0.000 0.756 0.244 0.000 0.000
#> SRR1334791 1 0.0290 0.9502 0.992 0.000 0.008 0.000 0.000
#> SRR1072129 2 0.2852 0.7465 0.000 0.828 0.172 0.000 0.000
#> SRR1330450 4 0.3920 0.6717 0.000 0.012 0.036 0.804 0.148
#> SRR1409108 3 0.4268 0.0703 0.000 0.444 0.556 0.000 0.000
#> SRR1416865 5 0.2690 0.6982 0.000 0.000 0.156 0.000 0.844
#> SRR1071832 4 0.3300 0.6295 0.000 0.000 0.204 0.792 0.004
#> SRR1093814 2 0.4074 0.5593 0.000 0.636 0.364 0.000 0.000
#> SRR1381821 5 0.1341 0.7360 0.000 0.000 0.056 0.000 0.944
#> SRR811675 5 0.1386 0.7385 0.016 0.000 0.032 0.000 0.952
#> SRR1082423 1 0.0000 0.9517 1.000 0.000 0.000 0.000 0.000
#> SRR1417296 3 0.5004 0.4664 0.000 0.256 0.672 0.000 0.072
#> SRR815944 4 0.5759 0.1421 0.000 0.388 0.092 0.520 0.000
#> SRR1332775 5 0.1732 0.7386 0.000 0.000 0.080 0.000 0.920
#> SRR1079143 4 0.4509 0.6313 0.000 0.096 0.152 0.752 0.000
#> SRR1476807 4 0.1750 0.7550 0.036 0.000 0.028 0.936 0.000
#> SRR1456634 4 0.4446 0.1682 0.476 0.000 0.004 0.520 0.000
#> SRR1083171 2 0.1851 0.7606 0.000 0.912 0.088 0.000 0.000
#> SRR1083337 1 0.0000 0.9517 1.000 0.000 0.000 0.000 0.000
#> SRR1377672 4 0.3215 0.6665 0.000 0.092 0.056 0.852 0.000
#> SRR1435816 5 0.7517 0.2981 0.180 0.280 0.072 0.000 0.468
#> SRR1080580 1 0.4961 0.7172 0.748 0.080 0.144 0.000 0.028
#> SRR1366672 2 0.1557 0.7853 0.008 0.940 0.052 0.000 0.000
#> SRR1075150 2 0.0162 0.7950 0.000 0.996 0.004 0.000 0.000
#> SRR814137 4 0.0609 0.7598 0.000 0.000 0.020 0.980 0.000
#> SRR1475062 1 0.0162 0.9514 0.996 0.000 0.004 0.000 0.000
#> SRR1340028 1 0.0162 0.9514 0.996 0.000 0.004 0.000 0.000
#> SRR1070789 2 0.0609 0.7930 0.000 0.980 0.020 0.000 0.000
#> SRR1097728 2 0.7890 -0.0985 0.084 0.356 0.352 0.000 0.208
#> SRR1447172 2 0.2852 0.7518 0.000 0.828 0.172 0.000 0.000
#> SRR1472486 2 0.2339 0.7266 0.004 0.892 0.004 0.000 0.100
#> SRR1377881 1 0.0000 0.9517 1.000 0.000 0.000 0.000 0.000
#> SRR1420912 3 0.6180 -0.1908 0.000 0.000 0.460 0.136 0.404
#> SRR1313747 3 0.4249 0.0568 0.000 0.432 0.568 0.000 0.000
#> SRR1414447 3 0.5714 0.2233 0.000 0.000 0.580 0.312 0.108
#> SRR1358238 4 0.0162 0.7573 0.000 0.000 0.004 0.996 0.000
#> SRR1322115 1 0.3635 0.6659 0.748 0.000 0.004 0.000 0.248
#> SRR1330474 4 0.3305 0.6137 0.224 0.000 0.000 0.776 0.000
#> SRR1093124 1 0.0290 0.9469 0.992 0.000 0.000 0.008 0.000
#> SRR1456354 4 0.0963 0.7581 0.000 0.000 0.036 0.964 0.000
#> SRR820859 5 0.5405 0.4212 0.076 0.000 0.328 0.000 0.596
#> SRR1401860 1 0.4161 0.7702 0.808 0.116 0.044 0.000 0.032
#> SRR1095599 5 0.4183 0.6105 0.000 0.136 0.084 0.000 0.780
#> SRR1417130 1 0.0162 0.9495 0.996 0.000 0.000 0.004 0.000
#> SRR1362597 2 0.2389 0.7829 0.000 0.880 0.116 0.000 0.004
#> SRR1328464 5 0.5691 0.2652 0.000 0.088 0.376 0.000 0.536
#> SRR1323957 4 0.1282 0.7558 0.044 0.000 0.004 0.952 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.1556 0.8371 0.920 0.000 0.000 0.000 0.000 0.080
#> SRR1093410 1 0.2070 0.8050 0.892 0.000 0.000 0.000 0.008 0.100
#> SRR1380523 2 0.0777 0.7197 0.000 0.972 0.004 0.000 0.000 0.024
#> SRR1089106 4 0.6638 0.3994 0.000 0.000 0.256 0.504 0.160 0.080
#> SRR1401403 1 0.2560 0.7638 0.880 0.000 0.016 0.000 0.016 0.088
#> SRR1080534 1 0.3075 0.7135 0.844 0.000 0.008 0.000 0.108 0.040
#> SRR1487638 2 0.1152 0.7235 0.000 0.952 0.004 0.000 0.000 0.044
#> SRR1320650 2 0.1367 0.7200 0.000 0.944 0.012 0.000 0.000 0.044
#> SRR1073045 2 0.3620 0.6128 0.000 0.648 0.000 0.000 0.000 0.352
#> SRR1397030 2 0.0858 0.7053 0.000 0.968 0.028 0.000 0.000 0.004
#> SRR1439976 4 0.3798 0.7087 0.004 0.000 0.104 0.812 0.028 0.052
#> SRR1454050 2 0.5195 0.1282 0.000 0.540 0.360 0.000 0.000 0.100
#> SRR1070286 5 0.3914 0.6624 0.012 0.000 0.016 0.004 0.740 0.228
#> SRR1344185 2 0.3584 0.6398 0.000 0.688 0.004 0.000 0.000 0.308
#> SRR1084228 2 0.2527 0.7070 0.000 0.832 0.000 0.000 0.000 0.168
#> SRR1101907 2 0.3547 0.6413 0.000 0.696 0.004 0.000 0.000 0.300
#> SRR1079686 2 0.2696 0.7183 0.000 0.856 0.028 0.000 0.000 0.116
#> SRR1089761 3 0.5903 0.4358 0.000 0.032 0.660 0.164 0.060 0.084
#> SRR811403 3 0.4062 0.3740 0.000 0.440 0.552 0.000 0.000 0.008
#> SRR1440560 3 0.6168 0.0207 0.000 0.028 0.456 0.372 0.000 0.144
#> SRR1079706 5 0.1367 0.7405 0.000 0.000 0.012 0.000 0.944 0.044
#> SRR1459101 2 0.5095 0.0858 0.008 0.612 0.320 0.036 0.000 0.024
#> SRR1335089 5 0.6079 0.2318 0.000 0.004 0.340 0.000 0.428 0.228
#> SRR1337840 4 0.0603 0.7722 0.016 0.000 0.000 0.980 0.000 0.004
#> SRR808682 2 0.0713 0.7204 0.000 0.972 0.000 0.000 0.000 0.028
#> SRR1443224 2 0.5325 0.4988 0.000 0.548 0.124 0.000 0.000 0.328
#> SRR1439831 1 0.0000 0.8898 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.7800 0.1725 0.000 0.208 0.060 0.288 0.380 0.064
#> SRR1457949 2 0.4981 0.5295 0.000 0.560 0.008 0.000 0.056 0.376
#> SRR1455969 2 0.5759 0.4614 0.092 0.552 0.036 0.000 0.000 0.320
#> SRR1415529 4 0.3172 0.7335 0.000 0.000 0.036 0.816 0.000 0.148
#> SRR1330018 2 0.2631 0.7033 0.000 0.820 0.000 0.000 0.000 0.180
#> SRR1370597 5 0.1168 0.7398 0.000 0.000 0.016 0.000 0.956 0.028
#> SRR1385524 2 0.0972 0.7036 0.000 0.964 0.028 0.000 0.000 0.008
#> SRR1351605 4 0.0547 0.7710 0.000 0.000 0.020 0.980 0.000 0.000
#> SRR1460148 1 0.0000 0.8898 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 2 0.6184 0.4810 0.000 0.568 0.068 0.128 0.000 0.236
#> SRR1318390 3 0.4224 0.2948 0.000 0.476 0.512 0.008 0.000 0.004
#> SRR1073095 2 0.0937 0.7021 0.000 0.960 0.040 0.000 0.000 0.000
#> SRR1410612 2 0.1124 0.7005 0.000 0.956 0.036 0.000 0.000 0.008
#> SRR1076892 1 0.0146 0.8888 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1340989 3 0.4084 0.4293 0.000 0.016 0.736 0.224 0.008 0.016
#> SRR1481375 3 0.5423 0.3212 0.012 0.440 0.468 0.000 0.000 0.080
#> SRR1079356 5 0.3835 0.6805 0.000 0.000 0.056 0.000 0.756 0.188
#> SRR1455545 4 0.1232 0.7694 0.004 0.000 0.016 0.956 0.000 0.024
#> SRR1406157 1 0.0146 0.8877 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1445920 2 0.0935 0.7033 0.000 0.964 0.032 0.000 0.000 0.004
#> SRR1420259 2 0.2265 0.6821 0.000 0.904 0.056 0.000 0.012 0.028
#> SRR1376963 3 0.4553 0.4608 0.000 0.064 0.772 0.032 0.024 0.108
#> SRR1101061 1 0.0000 0.8898 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.3778 0.3111 0.000 0.696 0.288 0.000 0.000 0.016
#> SRR1334791 1 0.0260 0.8878 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1072129 2 0.1970 0.6624 0.000 0.900 0.092 0.000 0.000 0.008
#> SRR1330450 4 0.4338 0.6731 0.000 0.000 0.004 0.732 0.100 0.164
#> SRR1409108 3 0.3758 0.5549 0.000 0.284 0.700 0.000 0.000 0.016
#> SRR1416865 5 0.1480 0.7358 0.000 0.000 0.020 0.000 0.940 0.040
#> SRR1071832 4 0.3874 0.4090 0.000 0.000 0.356 0.636 0.000 0.008
#> SRR1093814 2 0.6038 0.0922 0.000 0.428 0.356 0.004 0.000 0.212
#> SRR1381821 5 0.0520 0.7425 0.000 0.000 0.008 0.000 0.984 0.008
#> SRR811675 5 0.2462 0.7233 0.000 0.000 0.028 0.000 0.876 0.096
#> SRR1082423 1 0.0000 0.8898 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1417296 3 0.4905 0.5215 0.000 0.332 0.608 0.000 0.028 0.032
#> SRR815944 4 0.6720 0.1084 0.000 0.216 0.048 0.424 0.000 0.312
#> SRR1332775 5 0.0914 0.7425 0.000 0.000 0.016 0.000 0.968 0.016
#> SRR1079143 4 0.5679 0.3338 0.000 0.016 0.088 0.492 0.004 0.400
#> SRR1476807 4 0.2036 0.7682 0.016 0.000 0.008 0.912 0.000 0.064
#> SRR1456634 4 0.3840 0.4828 0.284 0.000 0.000 0.696 0.000 0.020
#> SRR1083171 2 0.3608 0.6536 0.000 0.716 0.012 0.000 0.000 0.272
#> SRR1083337 1 0.0000 0.8898 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1377672 4 0.2608 0.7059 0.000 0.080 0.048 0.872 0.000 0.000
#> SRR1435816 2 0.7004 -0.2020 0.016 0.372 0.040 0.000 0.368 0.204
#> SRR1080580 6 0.5207 0.0000 0.396 0.012 0.064 0.000 0.000 0.528
#> SRR1366672 2 0.3595 0.6865 0.020 0.772 0.004 0.000 0.004 0.200
#> SRR1075150 2 0.1204 0.7223 0.000 0.944 0.000 0.000 0.000 0.056
#> SRR814137 4 0.0914 0.7727 0.000 0.000 0.016 0.968 0.000 0.016
#> SRR1475062 1 0.0146 0.8888 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1340028 1 0.1141 0.8607 0.948 0.000 0.000 0.000 0.000 0.052
#> SRR1070789 2 0.2219 0.7143 0.000 0.864 0.000 0.000 0.000 0.136
#> SRR1097728 3 0.7593 0.3588 0.060 0.116 0.480 0.000 0.120 0.224
#> SRR1447172 2 0.4503 0.4241 0.000 0.680 0.240 0.000 0.000 0.080
#> SRR1472486 2 0.4427 0.5964 0.004 0.728 0.020 0.000 0.044 0.204
#> SRR1377881 1 0.0000 0.8898 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 5 0.6642 0.2735 0.000 0.000 0.372 0.088 0.428 0.112
#> SRR1313747 3 0.3998 0.5567 0.000 0.248 0.712 0.000 0.000 0.040
#> SRR1414447 3 0.5643 0.1860 0.000 0.000 0.592 0.284 0.052 0.072
#> SRR1358238 4 0.0000 0.7704 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1322115 1 0.4948 0.3235 0.692 0.000 0.052 0.000 0.204 0.052
#> SRR1330474 4 0.3163 0.5903 0.232 0.000 0.000 0.764 0.000 0.004
#> SRR1093124 1 0.1219 0.8349 0.948 0.000 0.000 0.048 0.000 0.004
#> SRR1456354 4 0.2968 0.7371 0.004 0.000 0.028 0.840 0.000 0.128
#> SRR820859 5 0.5600 0.5121 0.040 0.000 0.224 0.000 0.624 0.112
#> SRR1401860 1 0.4023 0.4472 0.756 0.052 0.004 0.000 0.004 0.184
#> SRR1095599 5 0.5082 0.5849 0.000 0.124 0.048 0.000 0.704 0.124
#> SRR1417130 1 0.1391 0.8478 0.944 0.000 0.000 0.040 0.000 0.016
#> SRR1362597 2 0.1957 0.6866 0.000 0.920 0.048 0.000 0.024 0.008
#> SRR1328464 3 0.6701 0.0891 0.008 0.080 0.460 0.000 0.348 0.104
#> SRR1323957 4 0.0935 0.7703 0.032 0.000 0.000 0.964 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["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 17633 rows and 97 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'CV' method.
#> Subgroups are detected by 'hclust' method.
#> Performed in total 1250 partitions by row resampling.
#> Best k for subgroups seems to be 2.
#>
#> Following methods can be applied to this 'ConsensusPartition' object:
#> [1] "cola_report" "collect_classes" "collect_plots"
#> [4] "collect_stats" "colnames" "compare_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.All the plots in panels can be made by individual functions and they are plotted later in this section.
select_partition_number()
produces several plots showing different
statistics for choosing “optimized” k
. There are following statistics:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower PAC score, higher mean silhouette score or higher
concordance corresponds to better partition. Rand index and Jaccard index
measure how similar the current partition is compared to partition with k-1
.
If they are too similar, we won't accept k
is better than k-1
.
select_partition_number(res)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 0.731 0.898 0.951 0.4568 0.540 0.540
#> 3 3 0.666 0.778 0.894 0.3411 0.845 0.714
#> 4 4 0.602 0.648 0.750 0.1382 0.974 0.935
#> 5 5 0.623 0.604 0.775 0.0827 0.754 0.441
#> 6 6 0.681 0.552 0.779 0.0382 0.976 0.900
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
#> SRR1397242 1 0.0000 0.942 1.000 0.000
#> SRR1093410 1 0.0000 0.942 1.000 0.000
#> SRR1380523 2 0.0000 0.948 0.000 1.000
#> SRR1089106 1 0.1633 0.929 0.976 0.024
#> SRR1401403 1 0.0000 0.942 1.000 0.000
#> SRR1080534 1 0.9460 0.412 0.636 0.364
#> SRR1487638 2 0.0000 0.948 0.000 1.000
#> SRR1320650 2 0.0000 0.948 0.000 1.000
#> SRR1073045 2 0.0000 0.948 0.000 1.000
#> SRR1397030 2 0.0000 0.948 0.000 1.000
#> SRR1439976 1 0.1184 0.935 0.984 0.016
#> SRR1454050 2 0.0000 0.948 0.000 1.000
#> SRR1070286 1 0.3114 0.902 0.944 0.056
#> SRR1344185 2 0.0000 0.948 0.000 1.000
#> SRR1084228 2 0.0000 0.948 0.000 1.000
#> SRR1101907 2 0.0000 0.948 0.000 1.000
#> SRR1079686 2 0.0000 0.948 0.000 1.000
#> SRR1089761 2 0.0000 0.948 0.000 1.000
#> SRR811403 2 0.0000 0.948 0.000 1.000
#> SRR1440560 2 0.0000 0.948 0.000 1.000
#> SRR1079706 2 0.7139 0.802 0.196 0.804
#> SRR1459101 2 0.4431 0.897 0.092 0.908
#> SRR1335089 2 0.6623 0.828 0.172 0.828
#> SRR1337840 1 0.0000 0.942 1.000 0.000
#> SRR808682 2 0.0000 0.948 0.000 1.000
#> SRR1443224 2 0.0000 0.948 0.000 1.000
#> SRR1439831 1 0.0000 0.942 1.000 0.000
#> SRR1087463 2 0.6623 0.828 0.172 0.828
#> SRR1457949 2 0.0000 0.948 0.000 1.000
#> SRR1455969 2 0.0376 0.946 0.004 0.996
#> SRR1415529 2 0.6623 0.828 0.172 0.828
#> SRR1330018 2 0.0000 0.948 0.000 1.000
#> SRR1370597 2 0.7139 0.802 0.196 0.804
#> SRR1385524 2 0.0000 0.948 0.000 1.000
#> SRR1351605 1 0.1184 0.935 0.984 0.016
#> SRR1460148 1 0.0000 0.942 1.000 0.000
#> SRR1354159 2 0.3431 0.914 0.064 0.936
#> SRR1318390 2 0.0000 0.948 0.000 1.000
#> SRR1073095 2 0.0000 0.948 0.000 1.000
#> SRR1410612 2 0.0000 0.948 0.000 1.000
#> SRR1076892 1 0.0000 0.942 1.000 0.000
#> SRR1340989 2 0.4431 0.897 0.092 0.908
#> SRR1481375 2 0.0000 0.948 0.000 1.000
#> SRR1079356 2 0.7528 0.777 0.216 0.784
#> SRR1455545 1 0.1184 0.935 0.984 0.016
#> SRR1406157 1 0.0000 0.942 1.000 0.000
#> SRR1445920 2 0.0000 0.948 0.000 1.000
#> SRR1420259 2 0.0000 0.948 0.000 1.000
#> SRR1376963 2 0.0000 0.948 0.000 1.000
#> SRR1101061 1 0.0000 0.942 1.000 0.000
#> SRR1414496 2 0.0000 0.948 0.000 1.000
#> SRR1334791 1 0.0000 0.942 1.000 0.000
#> SRR1072129 2 0.0000 0.948 0.000 1.000
#> SRR1330450 2 0.6623 0.828 0.172 0.828
#> SRR1409108 2 0.0000 0.948 0.000 1.000
#> SRR1416865 2 0.7139 0.802 0.196 0.804
#> SRR1071832 2 0.6623 0.828 0.172 0.828
#> SRR1093814 2 0.0000 0.948 0.000 1.000
#> SRR1381821 2 0.7139 0.802 0.196 0.804
#> SRR811675 2 0.7528 0.777 0.216 0.784
#> SRR1082423 1 0.0000 0.942 1.000 0.000
#> SRR1417296 2 0.0000 0.948 0.000 1.000
#> SRR815944 2 0.0000 0.948 0.000 1.000
#> SRR1332775 2 0.4815 0.885 0.104 0.896
#> SRR1079143 2 0.4161 0.902 0.084 0.916
#> SRR1476807 1 0.0000 0.942 1.000 0.000
#> SRR1456634 1 0.0000 0.942 1.000 0.000
#> SRR1083171 2 0.0000 0.948 0.000 1.000
#> SRR1083337 1 0.0000 0.942 1.000 0.000
#> SRR1377672 2 0.4431 0.897 0.092 0.908
#> SRR1435816 2 0.0000 0.948 0.000 1.000
#> SRR1080580 1 0.9954 0.121 0.540 0.460
#> SRR1366672 2 0.0000 0.948 0.000 1.000
#> SRR1075150 2 0.0000 0.948 0.000 1.000
#> SRR814137 1 0.1184 0.935 0.984 0.016
#> SRR1475062 1 0.0000 0.942 1.000 0.000
#> SRR1340028 1 0.0000 0.942 1.000 0.000
#> SRR1070789 2 0.0000 0.948 0.000 1.000
#> SRR1097728 2 0.0000 0.948 0.000 1.000
#> SRR1447172 2 0.0000 0.948 0.000 1.000
#> SRR1472486 2 0.0000 0.948 0.000 1.000
#> SRR1377881 1 0.0000 0.942 1.000 0.000
#> SRR1420912 2 0.7602 0.771 0.220 0.780
#> SRR1313747 2 0.0000 0.948 0.000 1.000
#> SRR1414447 2 0.4431 0.897 0.092 0.908
#> SRR1358238 1 0.0000 0.942 1.000 0.000
#> SRR1322115 1 0.6343 0.788 0.840 0.160
#> SRR1330474 1 0.0000 0.942 1.000 0.000
#> SRR1093124 1 0.0000 0.942 1.000 0.000
#> SRR1456354 1 0.1184 0.935 0.984 0.016
#> SRR820859 1 0.6343 0.788 0.840 0.160
#> SRR1401860 1 0.9954 0.121 0.540 0.460
#> SRR1095599 2 0.2043 0.932 0.032 0.968
#> SRR1417130 1 0.0000 0.942 1.000 0.000
#> SRR1362597 2 0.0000 0.948 0.000 1.000
#> SRR1328464 2 0.0000 0.948 0.000 1.000
#> SRR1323957 1 0.0000 0.942 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.8532 0.000 1.000 0.000
#> SRR1089106 1 0.2448 0.8971 0.924 0.000 0.076
#> SRR1401403 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1080534 1 0.8435 0.4283 0.600 0.132 0.268
#> SRR1487638 2 0.1163 0.8599 0.000 0.972 0.028
#> SRR1320650 2 0.3619 0.8326 0.000 0.864 0.136
#> SRR1073045 2 0.3619 0.8326 0.000 0.864 0.136
#> SRR1397030 2 0.3551 0.8345 0.000 0.868 0.132
#> SRR1439976 1 0.2066 0.9064 0.940 0.000 0.060
#> SRR1454050 2 0.1163 0.8588 0.000 0.972 0.028
#> SRR1070286 1 0.3482 0.8584 0.872 0.000 0.128
#> SRR1344185 2 0.3752 0.8276 0.000 0.856 0.144
#> SRR1084228 2 0.3619 0.8326 0.000 0.864 0.136
#> SRR1101907 2 0.3619 0.8326 0.000 0.864 0.136
#> SRR1079686 2 0.2356 0.8539 0.000 0.928 0.072
#> SRR1089761 2 0.5016 0.7215 0.000 0.760 0.240
#> SRR811403 2 0.1643 0.8512 0.000 0.956 0.044
#> SRR1440560 2 0.1163 0.8588 0.000 0.972 0.028
#> SRR1079706 3 0.0892 0.7747 0.000 0.020 0.980
#> SRR1459101 2 0.6309 -0.0540 0.000 0.504 0.496
#> SRR1335089 3 0.5254 0.6800 0.000 0.264 0.736
#> SRR1337840 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR808682 2 0.1163 0.8598 0.000 0.972 0.028
#> SRR1443224 2 0.0747 0.8585 0.000 0.984 0.016
#> SRR1439831 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1087463 3 0.5254 0.6800 0.000 0.264 0.736
#> SRR1457949 2 0.3879 0.8216 0.000 0.848 0.152
#> SRR1455969 2 0.2165 0.8562 0.000 0.936 0.064
#> SRR1415529 3 0.5254 0.6800 0.000 0.264 0.736
#> SRR1330018 2 0.0000 0.8532 0.000 1.000 0.000
#> SRR1370597 3 0.0892 0.7747 0.000 0.020 0.980
#> SRR1385524 2 0.0424 0.8565 0.000 0.992 0.008
#> SRR1351605 1 0.2066 0.9064 0.940 0.000 0.060
#> SRR1460148 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1354159 2 0.5678 0.5663 0.000 0.684 0.316
#> SRR1318390 2 0.1643 0.8512 0.000 0.956 0.044
#> SRR1073095 2 0.0000 0.8532 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.8532 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1340989 3 0.6309 -0.0151 0.000 0.500 0.500
#> SRR1481375 2 0.4931 0.7335 0.000 0.768 0.232
#> SRR1079356 3 0.0000 0.7637 0.000 0.000 1.000
#> SRR1455545 1 0.2066 0.9064 0.940 0.000 0.060
#> SRR1406157 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.8532 0.000 1.000 0.000
#> SRR1420259 2 0.4291 0.7960 0.000 0.820 0.180
#> SRR1376963 2 0.0592 0.8571 0.000 0.988 0.012
#> SRR1101061 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.8532 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.8532 0.000 1.000 0.000
#> SRR1330450 3 0.5254 0.6800 0.000 0.264 0.736
#> SRR1409108 2 0.0000 0.8532 0.000 1.000 0.000
#> SRR1416865 3 0.0892 0.7747 0.000 0.020 0.980
#> SRR1071832 3 0.5254 0.6800 0.000 0.264 0.736
#> SRR1093814 2 0.1031 0.8587 0.000 0.976 0.024
#> SRR1381821 3 0.0892 0.7747 0.000 0.020 0.980
#> SRR811675 3 0.0000 0.7637 0.000 0.000 1.000
#> SRR1082423 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.8532 0.000 1.000 0.000
#> SRR815944 2 0.3686 0.8308 0.000 0.860 0.140
#> SRR1332775 3 0.3686 0.7242 0.000 0.140 0.860
#> SRR1079143 2 0.6192 0.2596 0.000 0.580 0.420
#> SRR1476807 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1456634 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1083171 2 0.1163 0.8599 0.000 0.972 0.028
#> SRR1083337 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1377672 2 0.6309 -0.0540 0.000 0.504 0.496
#> SRR1435816 2 0.4605 0.7711 0.000 0.796 0.204
#> SRR1080580 1 0.9359 0.1358 0.508 0.208 0.284
#> SRR1366672 2 0.3619 0.8326 0.000 0.864 0.136
#> SRR1075150 2 0.3619 0.8326 0.000 0.864 0.136
#> SRR814137 1 0.2165 0.9042 0.936 0.000 0.064
#> SRR1475062 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.8532 0.000 1.000 0.000
#> SRR1097728 2 0.4887 0.7388 0.000 0.772 0.228
#> SRR1447172 2 0.0000 0.8532 0.000 1.000 0.000
#> SRR1472486 2 0.3619 0.8326 0.000 0.864 0.136
#> SRR1377881 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1420912 3 0.0237 0.7613 0.004 0.000 0.996
#> SRR1313747 2 0.0424 0.8560 0.000 0.992 0.008
#> SRR1414447 3 0.6309 -0.0151 0.000 0.500 0.500
#> SRR1358238 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1322115 1 0.4750 0.7749 0.784 0.000 0.216
#> SRR1330474 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1456354 1 0.1964 0.9075 0.944 0.000 0.056
#> SRR820859 1 0.4750 0.7749 0.784 0.000 0.216
#> SRR1401860 1 0.9359 0.1358 0.508 0.208 0.284
#> SRR1095599 2 0.6111 0.3624 0.000 0.604 0.396
#> SRR1417130 1 0.0000 0.9298 1.000 0.000 0.000
#> SRR1362597 2 0.0424 0.8539 0.000 0.992 0.008
#> SRR1328464 2 0.5016 0.7251 0.000 0.760 0.240
#> SRR1323957 1 0.0000 0.9298 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.8334 1.000 0.000 0.000 NA
#> SRR1093410 1 0.0000 0.8334 1.000 0.000 0.000 NA
#> SRR1380523 2 0.4746 0.6927 0.000 0.632 0.000 NA
#> SRR1089106 1 0.4804 0.7371 0.708 0.000 0.016 NA
#> SRR1401403 1 0.0000 0.8334 1.000 0.000 0.000 NA
#> SRR1080534 1 0.9035 0.3141 0.452 0.092 0.224 NA
#> SRR1487638 2 0.4164 0.7089 0.000 0.736 0.000 NA
#> SRR1320650 2 0.0524 0.6715 0.000 0.988 0.004 NA
#> SRR1073045 2 0.0657 0.6708 0.000 0.984 0.004 NA
#> SRR1397030 2 0.1576 0.6798 0.000 0.948 0.004 NA
#> SRR1439976 1 0.5060 0.7017 0.584 0.000 0.004 NA
#> SRR1454050 2 0.5125 0.6941 0.000 0.604 0.008 NA
#> SRR1070286 1 0.5759 0.7077 0.668 0.000 0.064 NA
#> SRR1344185 2 0.0657 0.6647 0.000 0.984 0.012 NA
#> SRR1084228 2 0.0524 0.6715 0.000 0.988 0.004 NA
#> SRR1101907 2 0.0657 0.6708 0.000 0.984 0.004 NA
#> SRR1079686 2 0.2589 0.6950 0.000 0.884 0.000 NA
#> SRR1089761 2 0.4621 0.5070 0.000 0.796 0.128 NA
#> SRR811403 2 0.5784 0.6691 0.000 0.556 0.032 NA
#> SRR1440560 2 0.5256 0.6932 0.000 0.596 0.012 NA
#> SRR1079706 3 0.0000 0.7974 0.000 0.000 1.000 NA
#> SRR1459101 2 0.6909 -0.1792 0.000 0.520 0.364 NA
#> SRR1335089 3 0.6524 0.6489 0.000 0.264 0.616 NA
#> SRR1337840 1 0.3219 0.7921 0.836 0.000 0.000 NA
#> SRR808682 2 0.4277 0.7071 0.000 0.720 0.000 NA
#> SRR1443224 2 0.4991 0.6975 0.000 0.608 0.004 NA
#> SRR1439831 1 0.0188 0.8330 0.996 0.000 0.000 NA
#> SRR1087463 3 0.6499 0.6377 0.000 0.276 0.612 NA
#> SRR1457949 2 0.2483 0.6480 0.000 0.916 0.032 NA
#> SRR1455969 2 0.3764 0.6429 0.000 0.784 0.000 NA
#> SRR1415529 3 0.6549 0.6448 0.000 0.268 0.612 NA
#> SRR1330018 2 0.4790 0.6881 0.000 0.620 0.000 NA
#> SRR1370597 3 0.0000 0.7974 0.000 0.000 1.000 NA
#> SRR1385524 2 0.4585 0.7006 0.000 0.668 0.000 NA
#> SRR1351605 1 0.5060 0.7017 0.584 0.000 0.004 NA
#> SRR1460148 1 0.0000 0.8334 1.000 0.000 0.000 NA
#> SRR1354159 2 0.4964 0.4680 0.000 0.764 0.168 NA
#> SRR1318390 2 0.5784 0.6691 0.000 0.556 0.032 NA
#> SRR1073095 2 0.4790 0.6881 0.000 0.620 0.000 NA
#> SRR1410612 2 0.4790 0.6881 0.000 0.620 0.000 NA
#> SRR1076892 1 0.0188 0.8330 0.996 0.000 0.000 NA
#> SRR1340989 2 0.6961 -0.1949 0.000 0.512 0.368 NA
#> SRR1481375 2 0.4444 0.5228 0.000 0.808 0.120 NA
#> SRR1079356 3 0.1867 0.7695 0.000 0.000 0.928 NA
#> SRR1455545 1 0.5060 0.7017 0.584 0.000 0.004 NA
#> SRR1406157 1 0.0188 0.8330 0.996 0.000 0.000 NA
#> SRR1445920 2 0.4790 0.6881 0.000 0.620 0.000 NA
#> SRR1420259 2 0.2483 0.6229 0.000 0.916 0.052 NA
#> SRR1376963 2 0.5016 0.6956 0.000 0.600 0.004 NA
#> SRR1101061 1 0.0188 0.8330 0.996 0.000 0.000 NA
#> SRR1414496 2 0.4790 0.6881 0.000 0.620 0.000 NA
#> SRR1334791 1 0.0188 0.8330 0.996 0.000 0.000 NA
#> SRR1072129 2 0.4790 0.6881 0.000 0.620 0.000 NA
#> SRR1330450 3 0.6524 0.6489 0.000 0.264 0.616 NA
#> SRR1409108 2 0.4855 0.6890 0.000 0.600 0.000 NA
#> SRR1416865 3 0.0000 0.7974 0.000 0.000 1.000 NA
#> SRR1071832 3 0.6549 0.6448 0.000 0.268 0.612 NA
#> SRR1093814 2 0.5099 0.6982 0.000 0.612 0.008 NA
#> SRR1381821 3 0.0000 0.7974 0.000 0.000 1.000 NA
#> SRR811675 3 0.1867 0.7695 0.000 0.000 0.928 NA
#> SRR1082423 1 0.0000 0.8334 1.000 0.000 0.000 NA
#> SRR1417296 2 0.4855 0.6890 0.000 0.600 0.000 NA
#> SRR815944 2 0.2742 0.6652 0.000 0.900 0.024 NA
#> SRR1332775 3 0.2976 0.7359 0.000 0.120 0.872 NA
#> SRR1079143 2 0.6730 0.0311 0.000 0.592 0.276 NA
#> SRR1476807 1 0.3266 0.7904 0.832 0.000 0.000 NA
#> SRR1456634 1 0.3172 0.7924 0.840 0.000 0.000 NA
#> SRR1083171 2 0.4164 0.7089 0.000 0.736 0.000 NA
#> SRR1083337 1 0.0000 0.8334 1.000 0.000 0.000 NA
#> SRR1377672 2 0.6909 -0.1792 0.000 0.520 0.364 NA
#> SRR1435816 2 0.3464 0.5825 0.000 0.868 0.076 NA
#> SRR1080580 1 0.9607 0.0787 0.392 0.168 0.236 NA
#> SRR1366672 2 0.1004 0.6710 0.000 0.972 0.004 NA
#> SRR1075150 2 0.0895 0.6768 0.000 0.976 0.004 NA
#> SRR814137 1 0.5024 0.7225 0.632 0.000 0.008 NA
#> SRR1475062 1 0.0188 0.8330 0.996 0.000 0.000 NA
#> SRR1340028 1 0.0000 0.8334 1.000 0.000 0.000 NA
#> SRR1070789 2 0.4790 0.6881 0.000 0.620 0.000 NA
#> SRR1097728 2 0.4389 0.5281 0.000 0.812 0.116 NA
#> SRR1447172 2 0.4790 0.6881 0.000 0.620 0.000 NA
#> SRR1472486 2 0.0524 0.6687 0.000 0.988 0.004 NA
#> SRR1377881 1 0.0188 0.8330 0.996 0.000 0.000 NA
#> SRR1420912 3 0.2469 0.7601 0.000 0.000 0.892 NA
#> SRR1313747 2 0.4877 0.6922 0.000 0.592 0.000 NA
#> SRR1414447 2 0.6961 -0.1949 0.000 0.512 0.368 NA
#> SRR1358238 1 0.4304 0.7650 0.716 0.000 0.000 NA
#> SRR1322115 1 0.6739 0.6222 0.576 0.000 0.120 NA
#> SRR1330474 1 0.3219 0.7921 0.836 0.000 0.000 NA
#> SRR1093124 1 0.0817 0.8302 0.976 0.000 0.000 NA
#> SRR1456354 1 0.4576 0.7480 0.728 0.000 0.012 NA
#> SRR820859 1 0.6739 0.6222 0.576 0.000 0.120 NA
#> SRR1401860 1 0.9607 0.0787 0.392 0.168 0.236 NA
#> SRR1095599 2 0.5814 0.3108 0.000 0.644 0.300 NA
#> SRR1417130 1 0.0188 0.8332 0.996 0.000 0.000 NA
#> SRR1362597 2 0.5244 0.6906 0.000 0.600 0.012 NA
#> SRR1328464 2 0.4552 0.5155 0.000 0.800 0.128 NA
#> SRR1323957 1 0.3219 0.7921 0.836 0.000 0.000 NA
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0162 0.8454 0.996 0.000 0.000 0.004 0.000
#> SRR1093410 1 0.0162 0.8454 0.996 0.000 0.000 0.004 0.000
#> SRR1380523 2 0.0451 0.8577 0.000 0.988 0.008 0.004 0.000
#> SRR1089106 4 0.4985 0.6116 0.392 0.000 0.016 0.580 0.012
#> SRR1401403 1 0.0162 0.8454 0.996 0.000 0.000 0.004 0.000
#> SRR1080534 4 0.8334 0.3568 0.296 0.000 0.260 0.312 0.132
#> SRR1487638 2 0.4054 0.6500 0.000 0.744 0.236 0.012 0.008
#> SRR1320650 3 0.4403 0.4060 0.000 0.436 0.560 0.004 0.000
#> SRR1073045 3 0.4597 0.4168 0.000 0.424 0.564 0.012 0.000
#> SRR1397030 3 0.4291 0.3443 0.000 0.464 0.536 0.000 0.000
#> SRR1439976 4 0.2338 0.6344 0.112 0.000 0.000 0.884 0.004
#> SRR1454050 2 0.3525 0.7754 0.000 0.800 0.184 0.008 0.008
#> SRR1070286 4 0.5902 0.6195 0.376 0.000 0.024 0.544 0.056
#> SRR1344185 3 0.4714 0.4356 0.000 0.408 0.576 0.012 0.004
#> SRR1084228 3 0.4403 0.4060 0.000 0.436 0.560 0.004 0.000
#> SRR1101907 3 0.4597 0.4168 0.000 0.424 0.564 0.012 0.000
#> SRR1079686 2 0.4310 0.1296 0.000 0.604 0.392 0.004 0.000
#> SRR1089761 3 0.3582 0.5607 0.000 0.224 0.768 0.000 0.008
#> SRR811403 2 0.3424 0.6996 0.000 0.760 0.240 0.000 0.000
#> SRR1440560 2 0.3439 0.7736 0.000 0.800 0.188 0.004 0.008
#> SRR1079706 5 0.2127 0.9229 0.000 0.000 0.108 0.000 0.892
#> SRR1459101 3 0.3366 0.4217 0.000 0.032 0.844 0.008 0.116
#> SRR1335089 3 0.4327 -0.0897 0.000 0.000 0.632 0.008 0.360
#> SRR1337840 1 0.4150 0.4311 0.612 0.000 0.000 0.388 0.000
#> SRR808682 2 0.2719 0.7399 0.000 0.852 0.144 0.004 0.000
#> SRR1443224 2 0.3120 0.8227 0.000 0.856 0.116 0.012 0.016
#> SRR1439831 1 0.0000 0.8453 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.4580 -0.0707 0.000 0.008 0.628 0.008 0.356
#> SRR1457949 3 0.4689 0.4194 0.000 0.392 0.592 0.008 0.008
#> SRR1455969 3 0.6684 0.4091 0.000 0.256 0.576 0.108 0.060
#> SRR1415529 3 0.4313 -0.0782 0.000 0.000 0.636 0.008 0.356
#> SRR1330018 2 0.0000 0.8597 0.000 1.000 0.000 0.000 0.000
#> SRR1370597 5 0.2127 0.9229 0.000 0.000 0.108 0.000 0.892
#> SRR1385524 2 0.1965 0.7993 0.000 0.904 0.096 0.000 0.000
#> SRR1351605 4 0.2338 0.6344 0.112 0.000 0.000 0.884 0.004
#> SRR1460148 1 0.0162 0.8454 0.996 0.000 0.000 0.004 0.000
#> SRR1354159 3 0.5908 0.3859 0.000 0.356 0.552 0.012 0.080
#> SRR1318390 2 0.3424 0.6996 0.000 0.760 0.240 0.000 0.000
#> SRR1073095 2 0.0000 0.8597 0.000 1.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.8597 0.000 1.000 0.000 0.000 0.000
#> SRR1076892 1 0.0000 0.8453 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.3197 0.4138 0.000 0.024 0.852 0.008 0.116
#> SRR1481375 3 0.3671 0.5581 0.000 0.236 0.756 0.000 0.008
#> SRR1079356 5 0.1753 0.8886 0.000 0.000 0.032 0.032 0.936
#> SRR1455545 4 0.2338 0.6344 0.112 0.000 0.000 0.884 0.004
#> SRR1406157 1 0.0000 0.8453 1.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.8597 0.000 1.000 0.000 0.000 0.000
#> SRR1420259 3 0.3999 0.5002 0.000 0.344 0.656 0.000 0.000
#> SRR1376963 2 0.2621 0.8310 0.000 0.876 0.112 0.004 0.008
#> SRR1101061 1 0.0000 0.8453 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.8597 0.000 1.000 0.000 0.000 0.000
#> SRR1334791 1 0.0000 0.8453 1.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.8597 0.000 1.000 0.000 0.000 0.000
#> SRR1330450 3 0.4327 -0.0897 0.000 0.000 0.632 0.008 0.360
#> SRR1409108 2 0.0609 0.8570 0.000 0.980 0.020 0.000 0.000
#> SRR1416865 5 0.2127 0.9229 0.000 0.000 0.108 0.000 0.892
#> SRR1071832 3 0.4313 -0.0782 0.000 0.000 0.636 0.008 0.356
#> SRR1093814 2 0.2629 0.8191 0.000 0.860 0.136 0.000 0.004
#> SRR1381821 5 0.2127 0.9229 0.000 0.000 0.108 0.000 0.892
#> SRR811675 5 0.1753 0.8886 0.000 0.000 0.032 0.032 0.936
#> SRR1082423 1 0.0290 0.8432 0.992 0.000 0.000 0.008 0.000
#> SRR1417296 2 0.0609 0.8570 0.000 0.980 0.020 0.000 0.000
#> SRR815944 3 0.4958 0.3497 0.000 0.424 0.552 0.012 0.012
#> SRR1332775 5 0.3659 0.7973 0.000 0.012 0.220 0.000 0.768
#> SRR1079143 3 0.4263 0.4708 0.000 0.072 0.792 0.012 0.124
#> SRR1476807 1 0.4210 0.3834 0.588 0.000 0.000 0.412 0.000
#> SRR1456634 1 0.4138 0.4369 0.616 0.000 0.000 0.384 0.000
#> SRR1083171 2 0.4054 0.6500 0.000 0.744 0.236 0.012 0.008
#> SRR1083337 1 0.0290 0.8437 0.992 0.000 0.000 0.008 0.000
#> SRR1377672 3 0.3366 0.4217 0.000 0.032 0.844 0.008 0.116
#> SRR1435816 3 0.4046 0.5322 0.000 0.296 0.696 0.000 0.008
#> SRR1080580 3 0.8266 -0.3268 0.284 0.012 0.392 0.220 0.092
#> SRR1366672 3 0.4390 0.4124 0.000 0.428 0.568 0.004 0.000
#> SRR1075150 3 0.4420 0.3812 0.000 0.448 0.548 0.004 0.000
#> SRR814137 4 0.3300 0.6562 0.204 0.000 0.000 0.792 0.004
#> SRR1475062 1 0.0000 0.8453 1.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0510 0.8389 0.984 0.000 0.000 0.016 0.000
#> SRR1070789 2 0.0000 0.8597 0.000 1.000 0.000 0.000 0.000
#> SRR1097728 3 0.3700 0.5564 0.000 0.240 0.752 0.000 0.008
#> SRR1447172 2 0.0162 0.8588 0.000 0.996 0.004 0.000 0.000
#> SRR1472486 3 0.4383 0.4207 0.000 0.424 0.572 0.004 0.000
#> SRR1377881 1 0.0000 0.8453 1.000 0.000 0.000 0.000 0.000
#> SRR1420912 5 0.3814 0.8285 0.000 0.000 0.124 0.068 0.808
#> SRR1313747 2 0.2352 0.8381 0.000 0.896 0.092 0.004 0.008
#> SRR1414447 3 0.3197 0.4138 0.000 0.024 0.852 0.008 0.116
#> SRR1358238 4 0.3932 0.3253 0.328 0.000 0.000 0.672 0.000
#> SRR1322115 4 0.6506 0.6249 0.296 0.000 0.016 0.536 0.152
#> SRR1330474 1 0.4138 0.4357 0.616 0.000 0.000 0.384 0.000
#> SRR1093124 1 0.1121 0.8168 0.956 0.000 0.000 0.044 0.000
#> SRR1456354 4 0.4843 0.5700 0.428 0.000 0.016 0.552 0.004
#> SRR820859 4 0.6506 0.6249 0.296 0.000 0.016 0.536 0.152
#> SRR1401860 3 0.8266 -0.3268 0.284 0.012 0.392 0.220 0.092
#> SRR1095599 3 0.6243 0.4839 0.000 0.216 0.544 0.000 0.240
#> SRR1417130 1 0.0794 0.8321 0.972 0.000 0.000 0.028 0.000
#> SRR1362597 2 0.0963 0.8505 0.000 0.964 0.036 0.000 0.000
#> SRR1328464 3 0.3750 0.5585 0.000 0.232 0.756 0.000 0.012
#> SRR1323957 1 0.4150 0.4311 0.612 0.000 0.000 0.388 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0713 0.83872 0.972 0.000 0.000 0.028 0.000 0.000
#> SRR1093410 1 0.0713 0.83872 0.972 0.000 0.000 0.028 0.000 0.000
#> SRR1380523 2 0.0520 0.83125 0.000 0.984 0.008 0.000 0.000 0.008
#> SRR1089106 4 0.1956 0.66108 0.080 0.000 0.000 0.908 0.004 0.008
#> SRR1401403 1 0.0713 0.83872 0.972 0.000 0.000 0.028 0.000 0.000
#> SRR1080534 4 0.6554 0.44346 0.064 0.000 0.224 0.576 0.104 0.032
#> SRR1487638 2 0.4491 0.57754 0.000 0.688 0.240 0.000 0.004 0.068
#> SRR1320650 3 0.4193 0.26947 0.000 0.352 0.624 0.000 0.000 0.024
#> SRR1073045 3 0.4406 0.25749 0.000 0.336 0.624 0.000 0.000 0.040
#> SRR1397030 3 0.3975 0.23999 0.000 0.392 0.600 0.000 0.000 0.008
#> SRR1439976 4 0.3934 0.60194 0.020 0.000 0.000 0.676 0.000 0.304
#> SRR1454050 2 0.3610 0.74235 0.000 0.768 0.200 0.000 0.004 0.028
#> SRR1070286 4 0.2685 0.65183 0.080 0.000 0.000 0.872 0.044 0.004
#> SRR1344185 3 0.4363 0.26122 0.000 0.324 0.636 0.000 0.000 0.040
#> SRR1084228 3 0.4193 0.26947 0.000 0.352 0.624 0.000 0.000 0.024
#> SRR1101907 3 0.4406 0.25749 0.000 0.336 0.624 0.000 0.000 0.040
#> SRR1079686 2 0.4224 -0.00672 0.000 0.552 0.432 0.000 0.000 0.016
#> SRR1089761 3 0.2734 0.25010 0.000 0.148 0.840 0.000 0.008 0.004
#> SRR811403 2 0.3244 0.66935 0.000 0.732 0.268 0.000 0.000 0.000
#> SRR1440560 2 0.3564 0.74080 0.000 0.768 0.204 0.000 0.004 0.024
#> SRR1079706 5 0.0865 0.91530 0.000 0.000 0.036 0.000 0.964 0.000
#> SRR1459101 3 0.3840 0.19874 0.000 0.020 0.792 0.008 0.028 0.152
#> SRR1335089 3 0.5586 0.11056 0.000 0.000 0.564 0.008 0.280 0.148
#> SRR1337840 1 0.5754 0.39004 0.484 0.000 0.000 0.188 0.000 0.328
#> SRR808682 2 0.2730 0.69618 0.000 0.836 0.152 0.000 0.000 0.012
#> SRR1443224 2 0.3368 0.78669 0.000 0.820 0.116 0.000 0.004 0.060
#> SRR1439831 1 0.0000 0.83850 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.5788 0.12400 0.000 0.008 0.564 0.008 0.272 0.148
#> SRR1457949 3 0.4299 0.21537 0.000 0.308 0.652 0.000 0.000 0.040
#> SRR1455969 6 0.5331 0.00000 0.000 0.080 0.428 0.000 0.008 0.484
#> SRR1415529 3 0.5570 0.12066 0.000 0.000 0.568 0.008 0.276 0.148
#> SRR1330018 2 0.0603 0.83089 0.000 0.980 0.004 0.000 0.000 0.016
#> SRR1370597 5 0.0865 0.91530 0.000 0.000 0.036 0.000 0.964 0.000
#> SRR1385524 2 0.1814 0.77263 0.000 0.900 0.100 0.000 0.000 0.000
#> SRR1351605 4 0.3916 0.60282 0.020 0.000 0.000 0.680 0.000 0.300
#> SRR1460148 1 0.0458 0.83944 0.984 0.000 0.000 0.016 0.000 0.000
#> SRR1354159 3 0.6232 -0.00234 0.000 0.312 0.480 0.000 0.024 0.184
#> SRR1318390 2 0.3244 0.66935 0.000 0.732 0.268 0.000 0.000 0.000
#> SRR1073095 2 0.0000 0.83294 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.83294 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1076892 1 0.0000 0.83850 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.3665 0.19602 0.000 0.012 0.800 0.008 0.028 0.152
#> SRR1481375 3 0.2848 0.26001 0.000 0.160 0.828 0.000 0.008 0.004
#> SRR1079356 5 0.1141 0.88389 0.000 0.000 0.000 0.052 0.948 0.000
#> SRR1455545 4 0.3934 0.60194 0.020 0.000 0.000 0.676 0.000 0.304
#> SRR1406157 1 0.0000 0.83850 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.83294 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1420259 3 0.3809 0.29291 0.000 0.264 0.716 0.000 0.008 0.012
#> SRR1376963 2 0.3054 0.79784 0.000 0.840 0.116 0.000 0.004 0.040
#> SRR1101061 1 0.0000 0.83850 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.83294 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1334791 1 0.0000 0.83850 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.83294 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1330450 3 0.5586 0.11056 0.000 0.000 0.564 0.008 0.280 0.148
#> SRR1409108 2 0.0790 0.83290 0.000 0.968 0.032 0.000 0.000 0.000
#> SRR1416865 5 0.0865 0.91530 0.000 0.000 0.036 0.000 0.964 0.000
#> SRR1071832 3 0.5553 0.12130 0.000 0.000 0.572 0.008 0.272 0.148
#> SRR1093814 2 0.3355 0.78732 0.000 0.816 0.132 0.000 0.004 0.048
#> SRR1381821 5 0.0865 0.91530 0.000 0.000 0.036 0.000 0.964 0.000
#> SRR811675 5 0.1141 0.88389 0.000 0.000 0.000 0.052 0.948 0.000
#> SRR1082423 1 0.0363 0.83898 0.988 0.000 0.000 0.012 0.000 0.000
#> SRR1417296 2 0.0790 0.83290 0.000 0.968 0.032 0.000 0.000 0.000
#> SRR815944 3 0.4628 0.17630 0.000 0.344 0.608 0.000 0.004 0.044
#> SRR1332775 5 0.2669 0.76341 0.000 0.008 0.156 0.000 0.836 0.000
#> SRR1079143 3 0.4538 0.10254 0.000 0.040 0.704 0.000 0.028 0.228
#> SRR1476807 1 0.5862 0.33091 0.452 0.000 0.000 0.204 0.000 0.344
#> SRR1456634 1 0.5688 0.40737 0.496 0.000 0.000 0.176 0.000 0.328
#> SRR1083171 2 0.4491 0.57754 0.000 0.688 0.240 0.000 0.004 0.068
#> SRR1083337 1 0.1349 0.82727 0.940 0.000 0.000 0.056 0.000 0.004
#> SRR1377672 3 0.3840 0.19874 0.000 0.020 0.792 0.008 0.028 0.152
#> SRR1435816 3 0.3801 0.28648 0.000 0.232 0.740 0.000 0.016 0.012
#> SRR1080580 4 0.6602 0.25951 0.064 0.000 0.376 0.464 0.068 0.028
#> SRR1366672 3 0.4078 0.28185 0.000 0.340 0.640 0.000 0.000 0.020
#> SRR1075150 3 0.4121 0.25926 0.000 0.380 0.604 0.000 0.000 0.016
#> SRR814137 4 0.4007 0.63730 0.052 0.000 0.000 0.728 0.000 0.220
#> SRR1475062 1 0.0000 0.83850 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.1462 0.82530 0.936 0.000 0.000 0.056 0.000 0.008
#> SRR1070789 2 0.0603 0.83089 0.000 0.980 0.004 0.000 0.000 0.016
#> SRR1097728 3 0.2884 0.26337 0.000 0.164 0.824 0.000 0.008 0.004
#> SRR1447172 2 0.0146 0.83229 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1472486 3 0.4026 0.27953 0.000 0.348 0.636 0.000 0.000 0.016
#> SRR1377881 1 0.0000 0.83850 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 5 0.4544 0.75135 0.000 0.000 0.072 0.084 0.760 0.084
#> SRR1313747 2 0.2821 0.80575 0.000 0.860 0.096 0.000 0.004 0.040
#> SRR1414447 3 0.3665 0.19602 0.000 0.012 0.800 0.008 0.028 0.152
#> SRR1358238 4 0.5871 0.30224 0.216 0.000 0.000 0.464 0.000 0.320
#> SRR1322115 4 0.3630 0.59690 0.064 0.000 0.000 0.816 0.100 0.020
#> SRR1330474 1 0.5683 0.39857 0.492 0.000 0.000 0.172 0.000 0.336
#> SRR1093124 1 0.1492 0.82582 0.940 0.000 0.000 0.036 0.000 0.024
#> SRR1456354 4 0.2311 0.66112 0.104 0.000 0.000 0.880 0.000 0.016
#> SRR820859 4 0.3630 0.59690 0.064 0.000 0.000 0.816 0.100 0.020
#> SRR1401860 4 0.6602 0.25951 0.064 0.000 0.376 0.464 0.068 0.028
#> SRR1095599 3 0.5619 -0.00500 0.000 0.172 0.572 0.000 0.248 0.008
#> SRR1417130 1 0.2046 0.81081 0.908 0.000 0.000 0.060 0.000 0.032
#> SRR1362597 2 0.1219 0.82482 0.000 0.948 0.048 0.000 0.004 0.000
#> SRR1328464 3 0.3718 0.23130 0.000 0.164 0.780 0.000 0.052 0.004
#> SRR1323957 1 0.5754 0.39004 0.484 0.000 0.000 0.188 0.000 0.328
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 17633 rows and 97 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.959 0.983 0.4698 0.523 0.523
#> 3 3 0.909 0.918 0.966 0.3959 0.741 0.539
#> 4 4 0.669 0.698 0.817 0.1123 0.939 0.828
#> 5 5 0.666 0.523 0.724 0.0699 0.853 0.563
#> 6 6 0.679 0.559 0.713 0.0485 0.865 0.476
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
#> SRR1397242 1 0.000 0.958 1.000 0.000
#> SRR1093410 1 0.000 0.958 1.000 0.000
#> SRR1380523 2 0.000 0.996 0.000 1.000
#> SRR1089106 1 0.000 0.958 1.000 0.000
#> SRR1401403 1 0.000 0.958 1.000 0.000
#> SRR1080534 1 0.971 0.383 0.600 0.400
#> SRR1487638 2 0.000 0.996 0.000 1.000
#> SRR1320650 2 0.000 0.996 0.000 1.000
#> SRR1073045 2 0.000 0.996 0.000 1.000
#> SRR1397030 2 0.000 0.996 0.000 1.000
#> SRR1439976 1 0.000 0.958 1.000 0.000
#> SRR1454050 2 0.000 0.996 0.000 1.000
#> SRR1070286 1 0.000 0.958 1.000 0.000
#> SRR1344185 2 0.000 0.996 0.000 1.000
#> SRR1084228 2 0.000 0.996 0.000 1.000
#> SRR1101907 2 0.000 0.996 0.000 1.000
#> SRR1079686 2 0.000 0.996 0.000 1.000
#> SRR1089761 2 0.000 0.996 0.000 1.000
#> SRR811403 2 0.000 0.996 0.000 1.000
#> SRR1440560 2 0.000 0.996 0.000 1.000
#> SRR1079706 2 0.000 0.996 0.000 1.000
#> SRR1459101 2 0.000 0.996 0.000 1.000
#> SRR1335089 2 0.000 0.996 0.000 1.000
#> SRR1337840 1 0.000 0.958 1.000 0.000
#> SRR808682 2 0.000 0.996 0.000 1.000
#> SRR1443224 2 0.000 0.996 0.000 1.000
#> SRR1439831 1 0.000 0.958 1.000 0.000
#> SRR1087463 2 0.000 0.996 0.000 1.000
#> SRR1457949 2 0.000 0.996 0.000 1.000
#> SRR1455969 2 0.000 0.996 0.000 1.000
#> SRR1415529 1 0.971 0.383 0.600 0.400
#> SRR1330018 2 0.000 0.996 0.000 1.000
#> SRR1370597 2 0.000 0.996 0.000 1.000
#> SRR1385524 2 0.000 0.996 0.000 1.000
#> SRR1351605 1 0.000 0.958 1.000 0.000
#> SRR1460148 1 0.000 0.958 1.000 0.000
#> SRR1354159 2 0.000 0.996 0.000 1.000
#> SRR1318390 2 0.000 0.996 0.000 1.000
#> SRR1073095 2 0.000 0.996 0.000 1.000
#> SRR1410612 2 0.000 0.996 0.000 1.000
#> SRR1076892 1 0.000 0.958 1.000 0.000
#> SRR1340989 2 0.000 0.996 0.000 1.000
#> SRR1481375 2 0.000 0.996 0.000 1.000
#> SRR1079356 1 0.184 0.936 0.972 0.028
#> SRR1455545 1 0.000 0.958 1.000 0.000
#> SRR1406157 1 0.000 0.958 1.000 0.000
#> SRR1445920 2 0.000 0.996 0.000 1.000
#> SRR1420259 2 0.000 0.996 0.000 1.000
#> SRR1376963 2 0.000 0.996 0.000 1.000
#> SRR1101061 1 0.000 0.958 1.000 0.000
#> SRR1414496 2 0.000 0.996 0.000 1.000
#> SRR1334791 1 0.000 0.958 1.000 0.000
#> SRR1072129 2 0.000 0.996 0.000 1.000
#> SRR1330450 2 0.000 0.996 0.000 1.000
#> SRR1409108 2 0.000 0.996 0.000 1.000
#> SRR1416865 2 0.000 0.996 0.000 1.000
#> SRR1071832 1 0.680 0.776 0.820 0.180
#> SRR1093814 2 0.000 0.996 0.000 1.000
#> SRR1381821 2 0.000 0.996 0.000 1.000
#> SRR811675 1 0.000 0.958 1.000 0.000
#> SRR1082423 1 0.000 0.958 1.000 0.000
#> SRR1417296 2 0.000 0.996 0.000 1.000
#> SRR815944 2 0.000 0.996 0.000 1.000
#> SRR1332775 2 0.000 0.996 0.000 1.000
#> SRR1079143 2 0.000 0.996 0.000 1.000
#> SRR1476807 1 0.000 0.958 1.000 0.000
#> SRR1456634 1 0.000 0.958 1.000 0.000
#> SRR1083171 2 0.000 0.996 0.000 1.000
#> SRR1083337 1 0.000 0.958 1.000 0.000
#> SRR1377672 2 0.000 0.996 0.000 1.000
#> SRR1435816 2 0.000 0.996 0.000 1.000
#> SRR1080580 2 0.722 0.731 0.200 0.800
#> SRR1366672 2 0.000 0.996 0.000 1.000
#> SRR1075150 2 0.000 0.996 0.000 1.000
#> SRR814137 1 0.000 0.958 1.000 0.000
#> SRR1475062 1 0.000 0.958 1.000 0.000
#> SRR1340028 1 0.000 0.958 1.000 0.000
#> SRR1070789 2 0.000 0.996 0.000 1.000
#> SRR1097728 2 0.000 0.996 0.000 1.000
#> SRR1447172 2 0.000 0.996 0.000 1.000
#> SRR1472486 2 0.000 0.996 0.000 1.000
#> SRR1377881 1 0.000 0.958 1.000 0.000
#> SRR1420912 2 0.000 0.996 0.000 1.000
#> SRR1313747 2 0.000 0.996 0.000 1.000
#> SRR1414447 2 0.000 0.996 0.000 1.000
#> SRR1358238 1 0.000 0.958 1.000 0.000
#> SRR1322115 1 0.000 0.958 1.000 0.000
#> SRR1330474 1 0.000 0.958 1.000 0.000
#> SRR1093124 1 0.000 0.958 1.000 0.000
#> SRR1456354 1 0.000 0.958 1.000 0.000
#> SRR820859 1 0.358 0.901 0.932 0.068
#> SRR1401860 1 0.971 0.383 0.600 0.400
#> SRR1095599 2 0.000 0.996 0.000 1.000
#> SRR1417130 1 0.000 0.958 1.000 0.000
#> SRR1362597 2 0.000 0.996 0.000 1.000
#> SRR1328464 2 0.000 0.996 0.000 1.000
#> SRR1323957 1 0.000 0.958 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1089106 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1401403 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1080534 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1487638 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1320650 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1073045 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1397030 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1439976 1 0.5621 0.601 0.692 0.000 0.308
#> SRR1454050 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1070286 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1344185 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1084228 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1101907 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1079686 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1089761 3 0.0592 0.922 0.000 0.012 0.988
#> SRR811403 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1440560 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1079706 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1459101 3 0.0424 0.925 0.000 0.008 0.992
#> SRR1335089 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1337840 1 0.0000 0.958 1.000 0.000 0.000
#> SRR808682 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1443224 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1439831 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1087463 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1457949 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1455969 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1415529 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1330018 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1370597 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1385524 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1351605 1 0.5529 0.623 0.704 0.000 0.296
#> SRR1460148 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1354159 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1318390 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1073095 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1340989 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1481375 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1079356 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1455545 1 0.5465 0.636 0.712 0.000 0.288
#> SRR1406157 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1420259 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1376963 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1101061 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1330450 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1409108 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1416865 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1071832 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1093814 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1381821 3 0.0000 0.931 0.000 0.000 1.000
#> SRR811675 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1082423 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.981 0.000 1.000 0.000
#> SRR815944 2 0.5529 0.543 0.000 0.704 0.296
#> SRR1332775 2 0.6126 0.286 0.000 0.600 0.400
#> SRR1079143 3 0.5216 0.668 0.000 0.260 0.740
#> SRR1476807 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1456634 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1083171 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1083337 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1377672 3 0.4555 0.751 0.000 0.200 0.800
#> SRR1435816 3 0.6204 0.311 0.000 0.424 0.576
#> SRR1080580 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1366672 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1075150 2 0.0000 0.981 0.000 1.000 0.000
#> SRR814137 3 0.4346 0.716 0.184 0.000 0.816
#> SRR1475062 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1097728 2 0.0592 0.969 0.000 0.988 0.012
#> SRR1447172 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1472486 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1377881 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1420912 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1313747 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1414447 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1358238 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1322115 1 0.4178 0.799 0.828 0.000 0.172
#> SRR1330474 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1456354 1 0.0592 0.949 0.988 0.000 0.012
#> SRR820859 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1401860 3 0.0000 0.931 0.000 0.000 1.000
#> SRR1095599 3 0.4062 0.788 0.000 0.164 0.836
#> SRR1417130 1 0.0000 0.958 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.981 0.000 1.000 0.000
#> SRR1328464 3 0.5529 0.591 0.000 0.296 0.704
#> SRR1323957 1 0.0000 0.958 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0592 0.8766 0.984 0.000 0.000 0.016
#> SRR1093410 1 0.0592 0.8766 0.984 0.000 0.000 0.016
#> SRR1380523 2 0.1022 0.8476 0.000 0.968 0.000 0.032
#> SRR1089106 4 0.4585 0.5105 0.000 0.000 0.332 0.668
#> SRR1401403 1 0.0000 0.8774 1.000 0.000 0.000 0.000
#> SRR1080534 3 0.3569 0.6098 0.000 0.000 0.804 0.196
#> SRR1487638 2 0.1792 0.8428 0.000 0.932 0.000 0.068
#> SRR1320650 2 0.1118 0.8456 0.000 0.964 0.000 0.036
#> SRR1073045 2 0.4322 0.7774 0.000 0.804 0.044 0.152
#> SRR1397030 2 0.0188 0.8491 0.000 0.996 0.000 0.004
#> SRR1439976 4 0.6475 0.7902 0.172 0.000 0.184 0.644
#> SRR1454050 2 0.5159 0.7763 0.000 0.756 0.088 0.156
#> SRR1070286 3 0.4996 0.0163 0.000 0.000 0.516 0.484
#> SRR1344185 2 0.5511 0.7309 0.000 0.720 0.084 0.196
#> SRR1084228 2 0.0817 0.8474 0.000 0.976 0.000 0.024
#> SRR1101907 2 0.3448 0.8001 0.000 0.828 0.004 0.168
#> SRR1079686 2 0.0707 0.8500 0.000 0.980 0.000 0.020
#> SRR1089761 3 0.4635 0.6361 0.000 0.028 0.756 0.216
#> SRR811403 2 0.5066 0.7778 0.000 0.764 0.088 0.148
#> SRR1440560 2 0.6594 0.6788 0.000 0.624 0.148 0.228
#> SRR1079706 3 0.2408 0.6394 0.000 0.000 0.896 0.104
#> SRR1459101 3 0.4903 0.6326 0.000 0.028 0.724 0.248
#> SRR1335089 3 0.0000 0.6681 0.000 0.000 1.000 0.000
#> SRR1337840 1 0.4382 0.5777 0.704 0.000 0.000 0.296
#> SRR808682 2 0.0921 0.8477 0.000 0.972 0.000 0.028
#> SRR1443224 2 0.4731 0.7945 0.000 0.780 0.060 0.160
#> SRR1439831 1 0.0000 0.8774 1.000 0.000 0.000 0.000
#> SRR1087463 3 0.1302 0.6699 0.000 0.000 0.956 0.044
#> SRR1457949 2 0.5395 0.7358 0.000 0.732 0.084 0.184
#> SRR1455969 2 0.5384 0.7388 0.000 0.728 0.076 0.196
#> SRR1415529 3 0.4431 0.4590 0.000 0.000 0.696 0.304
#> SRR1330018 2 0.0921 0.8477 0.000 0.972 0.000 0.028
#> SRR1370597 3 0.2530 0.6425 0.000 0.000 0.888 0.112
#> SRR1385524 2 0.0921 0.8477 0.000 0.972 0.000 0.028
#> SRR1351605 4 0.6585 0.7914 0.180 0.000 0.188 0.632
#> SRR1460148 1 0.0000 0.8774 1.000 0.000 0.000 0.000
#> SRR1354159 2 0.5608 0.7514 0.000 0.684 0.060 0.256
#> SRR1318390 2 0.5812 0.7364 0.000 0.708 0.136 0.156
#> SRR1073095 2 0.0921 0.8477 0.000 0.972 0.000 0.028
#> SRR1410612 2 0.0921 0.8477 0.000 0.972 0.000 0.028
#> SRR1076892 1 0.0000 0.8774 1.000 0.000 0.000 0.000
#> SRR1340989 3 0.3837 0.6487 0.000 0.000 0.776 0.224
#> SRR1481375 2 0.5875 0.7156 0.000 0.692 0.104 0.204
#> SRR1079356 3 0.4103 0.4837 0.000 0.000 0.744 0.256
#> SRR1455545 4 0.6586 0.7905 0.184 0.000 0.184 0.632
#> SRR1406157 1 0.0000 0.8774 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.0921 0.8477 0.000 0.972 0.000 0.028
#> SRR1420259 2 0.6912 0.6004 0.000 0.592 0.216 0.192
#> SRR1376963 2 0.5066 0.7776 0.000 0.764 0.088 0.148
#> SRR1101061 1 0.0000 0.8774 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.0921 0.8477 0.000 0.972 0.000 0.028
#> SRR1334791 1 0.0000 0.8774 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.1716 0.8423 0.000 0.936 0.000 0.064
#> SRR1330450 3 0.1716 0.6649 0.000 0.000 0.936 0.064
#> SRR1409108 2 0.5208 0.7824 0.000 0.748 0.080 0.172
#> SRR1416865 3 0.2408 0.6394 0.000 0.000 0.896 0.104
#> SRR1071832 3 0.4431 0.4590 0.000 0.000 0.696 0.304
#> SRR1093814 2 0.5740 0.7532 0.000 0.700 0.092 0.208
#> SRR1381821 3 0.3726 0.5432 0.000 0.000 0.788 0.212
#> SRR811675 3 0.4250 0.4593 0.000 0.000 0.724 0.276
#> SRR1082423 1 0.0336 0.8775 0.992 0.000 0.000 0.008
#> SRR1417296 2 0.4635 0.8023 0.000 0.796 0.080 0.124
#> SRR815944 3 0.7816 0.0442 0.000 0.300 0.416 0.284
#> SRR1332775 3 0.6284 0.5424 0.000 0.164 0.664 0.172
#> SRR1079143 3 0.6141 0.5448 0.000 0.072 0.616 0.312
#> SRR1476807 1 0.4406 0.5705 0.700 0.000 0.000 0.300
#> SRR1456634 1 0.3610 0.7073 0.800 0.000 0.000 0.200
#> SRR1083171 2 0.1211 0.8493 0.000 0.960 0.000 0.040
#> SRR1083337 1 0.0592 0.8766 0.984 0.000 0.000 0.016
#> SRR1377672 3 0.5366 0.6003 0.000 0.040 0.684 0.276
#> SRR1435816 3 0.5325 0.5994 0.000 0.096 0.744 0.160
#> SRR1080580 3 0.4454 0.6400 0.000 0.000 0.692 0.308
#> SRR1366672 2 0.4919 0.7522 0.000 0.772 0.076 0.152
#> SRR1075150 2 0.0188 0.8491 0.000 0.996 0.000 0.004
#> SRR814137 4 0.5877 0.6725 0.068 0.000 0.276 0.656
#> SRR1475062 1 0.0000 0.8774 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0921 0.8697 0.972 0.000 0.000 0.028
#> SRR1070789 2 0.1022 0.8476 0.000 0.968 0.000 0.032
#> SRR1097728 2 0.7331 0.5110 0.000 0.528 0.260 0.212
#> SRR1447172 2 0.1022 0.8476 0.000 0.968 0.000 0.032
#> SRR1472486 2 0.5066 0.7424 0.000 0.764 0.088 0.148
#> SRR1377881 1 0.0000 0.8774 1.000 0.000 0.000 0.000
#> SRR1420912 3 0.4431 0.4758 0.000 0.000 0.696 0.304
#> SRR1313747 2 0.4635 0.8023 0.000 0.796 0.080 0.124
#> SRR1414447 3 0.3764 0.6486 0.000 0.000 0.784 0.216
#> SRR1358238 1 0.4981 0.0994 0.536 0.000 0.000 0.464
#> SRR1322115 1 0.6336 -0.3174 0.480 0.000 0.060 0.460
#> SRR1330474 1 0.0592 0.8766 0.984 0.000 0.000 0.016
#> SRR1093124 1 0.0469 0.8772 0.988 0.000 0.000 0.012
#> SRR1456354 4 0.4948 0.1556 0.440 0.000 0.000 0.560
#> SRR820859 3 0.4730 0.3921 0.000 0.000 0.636 0.364
#> SRR1401860 3 0.4382 0.6425 0.000 0.000 0.704 0.296
#> SRR1095599 3 0.4234 0.6419 0.000 0.052 0.816 0.132
#> SRR1417130 1 0.0592 0.8766 0.984 0.000 0.000 0.016
#> SRR1362597 2 0.0921 0.8477 0.000 0.972 0.000 0.028
#> SRR1328464 3 0.4387 0.6382 0.000 0.052 0.804 0.144
#> SRR1323957 1 0.4382 0.5777 0.704 0.000 0.000 0.296
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.2694 0.80375 0.884 0.000 0.040 0.076 0.000
#> SRR1093410 1 0.2694 0.80375 0.884 0.000 0.040 0.076 0.000
#> SRR1380523 2 0.0693 0.76734 0.000 0.980 0.012 0.008 0.000
#> SRR1089106 4 0.4166 0.61193 0.000 0.000 0.004 0.648 0.348
#> SRR1401403 1 0.1117 0.81775 0.964 0.000 0.016 0.020 0.000
#> SRR1080534 5 0.5475 0.64503 0.000 0.000 0.232 0.124 0.644
#> SRR1487638 2 0.1386 0.76603 0.000 0.952 0.032 0.016 0.000
#> SRR1320650 2 0.3884 0.47574 0.000 0.708 0.288 0.004 0.000
#> SRR1073045 3 0.4552 0.19476 0.000 0.468 0.524 0.008 0.000
#> SRR1397030 2 0.2077 0.74426 0.000 0.908 0.084 0.008 0.000
#> SRR1439976 4 0.4888 0.79100 0.064 0.000 0.004 0.700 0.232
#> SRR1454050 2 0.6312 0.42683 0.000 0.524 0.276 0.200 0.000
#> SRR1070286 5 0.4298 0.21345 0.000 0.000 0.008 0.352 0.640
#> SRR1344185 3 0.4522 0.24935 0.000 0.440 0.552 0.008 0.000
#> SRR1084228 2 0.3196 0.62845 0.000 0.804 0.192 0.004 0.000
#> SRR1101907 3 0.4557 0.16001 0.000 0.476 0.516 0.008 0.000
#> SRR1079686 2 0.2624 0.71840 0.000 0.872 0.116 0.012 0.000
#> SRR1089761 3 0.4527 0.16521 0.000 0.000 0.700 0.040 0.260
#> SRR811403 2 0.6225 0.45569 0.000 0.544 0.256 0.200 0.000
#> SRR1440560 3 0.6620 0.05602 0.000 0.312 0.476 0.208 0.004
#> SRR1079706 5 0.1478 0.71786 0.000 0.000 0.064 0.000 0.936
#> SRR1459101 3 0.5422 0.06724 0.000 0.000 0.616 0.088 0.296
#> SRR1335089 5 0.3970 0.66177 0.000 0.000 0.224 0.024 0.752
#> SRR1337840 1 0.4979 0.15754 0.492 0.000 0.028 0.480 0.000
#> SRR808682 2 0.0000 0.77175 0.000 1.000 0.000 0.000 0.000
#> SRR1443224 2 0.6244 0.46006 0.000 0.540 0.260 0.200 0.000
#> SRR1439831 1 0.0955 0.81305 0.968 0.000 0.028 0.004 0.000
#> SRR1087463 5 0.4599 0.63644 0.000 0.000 0.272 0.040 0.688
#> SRR1457949 3 0.4651 0.27297 0.000 0.428 0.560 0.008 0.004
#> SRR1455969 3 0.4651 0.27216 0.000 0.428 0.560 0.008 0.004
#> SRR1415529 5 0.6054 0.49611 0.000 0.000 0.160 0.280 0.560
#> SRR1330018 2 0.0798 0.76756 0.000 0.976 0.016 0.008 0.000
#> SRR1370597 5 0.1671 0.71708 0.000 0.000 0.076 0.000 0.924
#> SRR1385524 2 0.0451 0.76937 0.000 0.988 0.004 0.008 0.000
#> SRR1351605 4 0.4489 0.78934 0.068 0.000 0.000 0.740 0.192
#> SRR1460148 1 0.0510 0.81543 0.984 0.000 0.016 0.000 0.000
#> SRR1354159 3 0.6785 0.02557 0.000 0.328 0.452 0.212 0.008
#> SRR1318390 2 0.6444 0.34065 0.000 0.484 0.316 0.200 0.000
#> SRR1073095 2 0.0000 0.77175 0.000 1.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.77175 0.000 1.000 0.000 0.000 0.000
#> SRR1076892 1 0.1041 0.81328 0.964 0.000 0.032 0.004 0.000
#> SRR1340989 3 0.6444 -0.01513 0.000 0.000 0.488 0.204 0.308
#> SRR1481375 3 0.4531 0.28980 0.000 0.424 0.568 0.004 0.004
#> SRR1079356 5 0.1341 0.66779 0.000 0.000 0.000 0.056 0.944
#> SRR1455545 4 0.4919 0.79283 0.068 0.000 0.004 0.700 0.228
#> SRR1406157 1 0.1041 0.81328 0.964 0.000 0.032 0.004 0.000
#> SRR1445920 2 0.0000 0.77175 0.000 1.000 0.000 0.000 0.000
#> SRR1420259 3 0.5087 0.37896 0.000 0.332 0.624 0.008 0.036
#> SRR1376963 2 0.6187 0.46815 0.000 0.552 0.248 0.200 0.000
#> SRR1101061 1 0.0955 0.81305 0.968 0.000 0.028 0.004 0.000
#> SRR1414496 2 0.0000 0.77175 0.000 1.000 0.000 0.000 0.000
#> SRR1334791 1 0.1041 0.81328 0.964 0.000 0.032 0.004 0.000
#> SRR1072129 2 0.0955 0.76748 0.000 0.968 0.028 0.004 0.000
#> SRR1330450 5 0.4503 0.64391 0.000 0.000 0.268 0.036 0.696
#> SRR1409108 2 0.5700 0.52364 0.000 0.628 0.176 0.196 0.000
#> SRR1416865 5 0.1544 0.71776 0.000 0.000 0.068 0.000 0.932
#> SRR1071832 5 0.5990 0.49256 0.000 0.000 0.152 0.280 0.568
#> SRR1093814 2 0.6534 0.23261 0.000 0.436 0.364 0.200 0.000
#> SRR1381821 5 0.0671 0.69175 0.000 0.000 0.004 0.016 0.980
#> SRR811675 5 0.1732 0.65394 0.000 0.000 0.000 0.080 0.920
#> SRR1082423 1 0.1117 0.81713 0.964 0.000 0.016 0.020 0.000
#> SRR1417296 2 0.3794 0.66690 0.000 0.800 0.152 0.048 0.000
#> SRR815944 3 0.5813 0.39561 0.000 0.084 0.680 0.184 0.052
#> SRR1332775 5 0.5129 0.29829 0.000 0.028 0.356 0.012 0.604
#> SRR1079143 3 0.6209 0.18576 0.000 0.004 0.572 0.216 0.208
#> SRR1476807 1 0.4980 0.14338 0.488 0.000 0.028 0.484 0.000
#> SRR1456634 1 0.4883 0.54570 0.652 0.000 0.048 0.300 0.000
#> SRR1083171 2 0.3236 0.70544 0.000 0.828 0.152 0.020 0.000
#> SRR1083337 1 0.2694 0.80375 0.884 0.000 0.040 0.076 0.000
#> SRR1377672 3 0.6484 0.13071 0.000 0.008 0.536 0.256 0.200
#> SRR1435816 3 0.4911 0.18003 0.000 0.032 0.652 0.008 0.308
#> SRR1080580 3 0.6024 -0.17083 0.000 0.000 0.532 0.132 0.336
#> SRR1366672 3 0.4764 0.26524 0.000 0.436 0.548 0.012 0.004
#> SRR1075150 2 0.2193 0.73334 0.000 0.900 0.092 0.008 0.000
#> SRR814137 4 0.4323 0.75576 0.028 0.000 0.004 0.728 0.240
#> SRR1475062 1 0.0955 0.81305 0.968 0.000 0.028 0.004 0.000
#> SRR1340028 1 0.2871 0.79798 0.872 0.000 0.040 0.088 0.000
#> SRR1070789 2 0.0798 0.76756 0.000 0.976 0.016 0.008 0.000
#> SRR1097728 3 0.4729 0.44505 0.000 0.236 0.708 0.004 0.052
#> SRR1447172 2 0.0798 0.76756 0.000 0.976 0.016 0.008 0.000
#> SRR1472486 3 0.4675 0.25959 0.000 0.444 0.544 0.008 0.004
#> SRR1377881 1 0.0955 0.81305 0.968 0.000 0.028 0.004 0.000
#> SRR1420912 5 0.3416 0.67086 0.000 0.000 0.072 0.088 0.840
#> SRR1313747 2 0.4258 0.64840 0.000 0.768 0.160 0.072 0.000
#> SRR1414447 3 0.6526 -0.00787 0.000 0.000 0.464 0.212 0.324
#> SRR1358238 4 0.4199 0.44105 0.296 0.000 0.008 0.692 0.004
#> SRR1322115 1 0.7440 -0.24563 0.420 0.000 0.044 0.320 0.216
#> SRR1330474 1 0.2830 0.79944 0.876 0.000 0.044 0.080 0.000
#> SRR1093124 1 0.1121 0.81652 0.956 0.000 0.000 0.044 0.000
#> SRR1456354 4 0.4742 0.58017 0.228 0.000 0.028 0.720 0.024
#> SRR820859 5 0.3844 0.58854 0.000 0.000 0.044 0.164 0.792
#> SRR1401860 3 0.6060 -0.26159 0.000 0.000 0.492 0.124 0.384
#> SRR1095599 5 0.4764 0.29038 0.000 0.004 0.436 0.012 0.548
#> SRR1417130 1 0.2694 0.80262 0.884 0.000 0.040 0.076 0.000
#> SRR1362597 2 0.0579 0.76936 0.000 0.984 0.008 0.008 0.000
#> SRR1328464 3 0.4779 -0.10663 0.000 0.004 0.536 0.012 0.448
#> SRR1323957 1 0.4979 0.15754 0.492 0.000 0.028 0.480 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.3643 0.82342 0.824 0.080 0.052 0.044 0.000 0.000
#> SRR1093410 1 0.3643 0.82342 0.824 0.080 0.052 0.044 0.000 0.000
#> SRR1380523 2 0.3659 0.85180 0.000 0.636 0.000 0.000 0.000 0.364
#> SRR1089106 4 0.4331 0.51580 0.000 0.044 0.088 0.772 0.096 0.000
#> SRR1401403 1 0.1232 0.85908 0.956 0.024 0.016 0.004 0.000 0.000
#> SRR1080534 5 0.7018 0.52260 0.000 0.040 0.280 0.080 0.504 0.096
#> SRR1487638 2 0.4040 0.79469 0.000 0.688 0.032 0.000 0.000 0.280
#> SRR1320650 6 0.2738 0.35687 0.000 0.176 0.000 0.004 0.000 0.820
#> SRR1073045 6 0.1082 0.59249 0.000 0.040 0.000 0.004 0.000 0.956
#> SRR1397030 2 0.3868 0.62877 0.000 0.508 0.000 0.000 0.000 0.492
#> SRR1439976 4 0.1666 0.66624 0.008 0.000 0.020 0.936 0.036 0.000
#> SRR1454050 3 0.5777 0.59151 0.000 0.244 0.532 0.004 0.000 0.220
#> SRR1070286 4 0.6235 -0.14847 0.000 0.056 0.100 0.456 0.388 0.000
#> SRR1344185 6 0.1232 0.61183 0.000 0.024 0.016 0.004 0.000 0.956
#> SRR1084228 6 0.3782 -0.29622 0.000 0.360 0.000 0.004 0.000 0.636
#> SRR1101907 6 0.1010 0.59601 0.000 0.036 0.000 0.004 0.000 0.960
#> SRR1079686 6 0.4469 -0.59732 0.000 0.468 0.028 0.000 0.000 0.504
#> SRR1089761 6 0.6304 -0.14796 0.000 0.004 0.328 0.004 0.268 0.396
#> SRR811403 3 0.5734 0.56998 0.000 0.276 0.532 0.004 0.000 0.188
#> SRR1440560 3 0.5317 0.62814 0.000 0.156 0.628 0.004 0.004 0.208
#> SRR1079706 5 0.2985 0.64181 0.000 0.068 0.012 0.044 0.868 0.008
#> SRR1459101 3 0.6267 -0.10511 0.000 0.004 0.456 0.008 0.276 0.256
#> SRR1335089 5 0.2975 0.63349 0.000 0.004 0.148 0.004 0.832 0.012
#> SRR1337840 4 0.5561 0.41732 0.304 0.068 0.044 0.584 0.000 0.000
#> SRR808682 2 0.3578 0.86022 0.000 0.660 0.000 0.000 0.000 0.340
#> SRR1443224 3 0.5934 0.58578 0.000 0.240 0.516 0.008 0.000 0.236
#> SRR1439831 1 0.1434 0.84945 0.940 0.048 0.012 0.000 0.000 0.000
#> SRR1087463 5 0.3764 0.58156 0.000 0.004 0.288 0.004 0.700 0.004
#> SRR1457949 6 0.0260 0.61752 0.000 0.000 0.008 0.000 0.000 0.992
#> SRR1455969 6 0.1565 0.61444 0.000 0.028 0.028 0.004 0.000 0.940
#> SRR1415529 5 0.6492 0.39118 0.000 0.020 0.268 0.260 0.448 0.004
#> SRR1330018 2 0.3841 0.83846 0.000 0.616 0.000 0.004 0.000 0.380
#> SRR1370597 5 0.3177 0.64238 0.000 0.068 0.016 0.044 0.860 0.012
#> SRR1385524 2 0.3563 0.85674 0.000 0.664 0.000 0.000 0.000 0.336
#> SRR1351605 4 0.2017 0.67566 0.020 0.008 0.004 0.920 0.048 0.000
#> SRR1460148 1 0.0603 0.85719 0.980 0.004 0.016 0.000 0.000 0.000
#> SRR1354159 3 0.5578 0.62115 0.000 0.144 0.604 0.004 0.012 0.236
#> SRR1318390 3 0.5594 0.62377 0.000 0.248 0.564 0.004 0.000 0.184
#> SRR1073095 2 0.3578 0.86111 0.000 0.660 0.000 0.000 0.000 0.340
#> SRR1410612 2 0.3563 0.86107 0.000 0.664 0.000 0.000 0.000 0.336
#> SRR1076892 1 0.1807 0.85014 0.920 0.060 0.020 0.000 0.000 0.000
#> SRR1340989 3 0.5017 0.17775 0.000 0.004 0.640 0.012 0.276 0.068
#> SRR1481375 6 0.1333 0.61656 0.000 0.008 0.048 0.000 0.000 0.944
#> SRR1079356 5 0.3649 0.60451 0.000 0.076 0.020 0.088 0.816 0.000
#> SRR1455545 4 0.1949 0.67481 0.020 0.000 0.020 0.924 0.036 0.000
#> SRR1406157 1 0.1807 0.85014 0.920 0.060 0.020 0.000 0.000 0.000
#> SRR1445920 2 0.3563 0.86107 0.000 0.664 0.000 0.000 0.000 0.336
#> SRR1420259 6 0.3217 0.57584 0.000 0.036 0.044 0.000 0.068 0.852
#> SRR1376963 3 0.5842 0.56932 0.000 0.272 0.528 0.008 0.000 0.192
#> SRR1101061 1 0.1434 0.84945 0.940 0.048 0.012 0.000 0.000 0.000
#> SRR1414496 2 0.3578 0.86111 0.000 0.660 0.000 0.000 0.000 0.340
#> SRR1334791 1 0.1829 0.85040 0.920 0.056 0.024 0.000 0.000 0.000
#> SRR1072129 2 0.3717 0.81435 0.000 0.708 0.016 0.000 0.000 0.276
#> SRR1330450 5 0.4253 0.58568 0.000 0.012 0.284 0.012 0.684 0.008
#> SRR1409108 3 0.5504 0.38851 0.000 0.380 0.500 0.004 0.000 0.116
#> SRR1416865 5 0.2966 0.64172 0.000 0.068 0.016 0.044 0.868 0.004
#> SRR1071832 5 0.6376 0.38623 0.000 0.020 0.268 0.264 0.448 0.000
#> SRR1093814 3 0.5855 0.61049 0.000 0.212 0.532 0.008 0.000 0.248
#> SRR1381821 5 0.3303 0.62196 0.000 0.068 0.020 0.060 0.848 0.004
#> SRR811675 5 0.4295 0.58722 0.000 0.080 0.048 0.096 0.776 0.000
#> SRR1082423 1 0.1851 0.85412 0.928 0.024 0.036 0.012 0.000 0.000
#> SRR1417296 2 0.4955 0.49950 0.000 0.660 0.204 0.004 0.000 0.132
#> SRR815944 3 0.4434 0.54210 0.000 0.016 0.724 0.004 0.048 0.208
#> SRR1332775 5 0.5573 0.52744 0.000 0.084 0.032 0.016 0.648 0.220
#> SRR1079143 3 0.4447 0.47649 0.000 0.016 0.752 0.004 0.124 0.104
#> SRR1476807 4 0.5515 0.43901 0.292 0.068 0.044 0.596 0.000 0.000
#> SRR1456634 1 0.6256 0.02967 0.456 0.092 0.064 0.388 0.000 0.000
#> SRR1083171 6 0.4801 -0.53495 0.000 0.436 0.036 0.008 0.000 0.520
#> SRR1083337 1 0.3651 0.82411 0.824 0.076 0.056 0.044 0.000 0.000
#> SRR1377672 3 0.4425 0.40983 0.000 0.004 0.768 0.040 0.116 0.072
#> SRR1435816 6 0.5503 0.00617 0.000 0.016 0.092 0.000 0.352 0.540
#> SRR1080580 6 0.7615 -0.35516 0.000 0.036 0.276 0.056 0.312 0.320
#> SRR1366672 6 0.0865 0.60854 0.000 0.036 0.000 0.000 0.000 0.964
#> SRR1075150 2 0.3864 0.64236 0.000 0.520 0.000 0.000 0.000 0.480
#> SRR814137 4 0.1945 0.66063 0.004 0.004 0.016 0.920 0.056 0.000
#> SRR1475062 1 0.1461 0.84952 0.940 0.044 0.016 0.000 0.000 0.000
#> SRR1340028 1 0.4110 0.79753 0.792 0.080 0.052 0.076 0.000 0.000
#> SRR1070789 2 0.3830 0.84187 0.000 0.620 0.000 0.004 0.000 0.376
#> SRR1097728 6 0.4045 0.43477 0.000 0.000 0.124 0.000 0.120 0.756
#> SRR1447172 2 0.3819 0.84465 0.000 0.624 0.000 0.004 0.000 0.372
#> SRR1472486 6 0.1049 0.60698 0.000 0.032 0.008 0.000 0.000 0.960
#> SRR1377881 1 0.1434 0.84945 0.940 0.048 0.012 0.000 0.000 0.000
#> SRR1420912 5 0.5980 0.57789 0.000 0.080 0.168 0.136 0.616 0.000
#> SRR1313747 2 0.5389 0.28497 0.000 0.576 0.288 0.004 0.000 0.132
#> SRR1414447 3 0.4339 0.33436 0.000 0.004 0.728 0.008 0.204 0.056
#> SRR1358238 4 0.3443 0.67878 0.096 0.040 0.032 0.832 0.000 0.000
#> SRR1322115 4 0.7442 0.32198 0.288 0.060 0.136 0.452 0.064 0.000
#> SRR1330474 1 0.4386 0.76423 0.772 0.072 0.068 0.088 0.000 0.000
#> SRR1093124 1 0.2016 0.85215 0.920 0.016 0.024 0.040 0.000 0.000
#> SRR1456354 4 0.3695 0.68083 0.084 0.052 0.044 0.820 0.000 0.000
#> SRR820859 5 0.6848 0.48953 0.000 0.104 0.180 0.196 0.516 0.004
#> SRR1401860 5 0.7573 0.37230 0.000 0.036 0.280 0.056 0.364 0.264
#> SRR1095599 5 0.5121 0.49381 0.000 0.016 0.104 0.000 0.652 0.228
#> SRR1417130 1 0.3489 0.82112 0.836 0.064 0.052 0.048 0.000 0.000
#> SRR1362597 2 0.3592 0.84911 0.000 0.656 0.000 0.000 0.000 0.344
#> SRR1328464 5 0.5621 0.32397 0.000 0.008 0.128 0.000 0.524 0.340
#> SRR1323957 4 0.5561 0.41732 0.304 0.068 0.044 0.584 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", "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 17633 rows and 97 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 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.957 0.958 0.981 0.4942 0.510 0.510
#> 3 3 0.925 0.902 0.960 0.2742 0.833 0.682
#> 4 4 0.791 0.881 0.918 0.1290 0.836 0.598
#> 5 5 0.776 0.787 0.878 0.0763 0.948 0.812
#> 6 6 0.709 0.681 0.832 0.0421 0.969 0.867
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
#> SRR1397242 1 0.000 0.997 1.000 0.000
#> SRR1093410 1 0.000 0.997 1.000 0.000
#> SRR1380523 2 0.000 0.969 0.000 1.000
#> SRR1089106 1 0.000 0.997 1.000 0.000
#> SRR1401403 1 0.000 0.997 1.000 0.000
#> SRR1080534 1 0.000 0.997 1.000 0.000
#> SRR1487638 2 0.000 0.969 0.000 1.000
#> SRR1320650 2 0.000 0.969 0.000 1.000
#> SRR1073045 2 0.000 0.969 0.000 1.000
#> SRR1397030 2 0.000 0.969 0.000 1.000
#> SRR1439976 1 0.000 0.997 1.000 0.000
#> SRR1454050 2 0.000 0.969 0.000 1.000
#> SRR1070286 1 0.000 0.997 1.000 0.000
#> SRR1344185 2 0.000 0.969 0.000 1.000
#> SRR1084228 2 0.000 0.969 0.000 1.000
#> SRR1101907 2 0.000 0.969 0.000 1.000
#> SRR1079686 2 0.000 0.969 0.000 1.000
#> SRR1089761 2 0.000 0.969 0.000 1.000
#> SRR811403 2 0.000 0.969 0.000 1.000
#> SRR1440560 2 0.000 0.969 0.000 1.000
#> SRR1079706 2 0.833 0.666 0.264 0.736
#> SRR1459101 2 0.000 0.969 0.000 1.000
#> SRR1335089 2 0.625 0.818 0.156 0.844
#> SRR1337840 1 0.000 0.997 1.000 0.000
#> SRR808682 2 0.000 0.969 0.000 1.000
#> SRR1443224 2 0.000 0.969 0.000 1.000
#> SRR1439831 1 0.000 0.997 1.000 0.000
#> SRR1087463 2 0.961 0.425 0.384 0.616
#> SRR1457949 2 0.000 0.969 0.000 1.000
#> SRR1455969 2 0.000 0.969 0.000 1.000
#> SRR1415529 1 0.000 0.997 1.000 0.000
#> SRR1330018 2 0.000 0.969 0.000 1.000
#> SRR1370597 2 0.000 0.969 0.000 1.000
#> SRR1385524 2 0.000 0.969 0.000 1.000
#> SRR1351605 1 0.000 0.997 1.000 0.000
#> SRR1460148 1 0.000 0.997 1.000 0.000
#> SRR1354159 2 0.000 0.969 0.000 1.000
#> SRR1318390 2 0.000 0.969 0.000 1.000
#> SRR1073095 2 0.000 0.969 0.000 1.000
#> SRR1410612 2 0.000 0.969 0.000 1.000
#> SRR1076892 1 0.000 0.997 1.000 0.000
#> SRR1340989 2 0.722 0.763 0.200 0.800
#> SRR1481375 2 0.000 0.969 0.000 1.000
#> SRR1079356 1 0.000 0.997 1.000 0.000
#> SRR1455545 1 0.000 0.997 1.000 0.000
#> SRR1406157 1 0.000 0.997 1.000 0.000
#> SRR1445920 2 0.000 0.969 0.000 1.000
#> SRR1420259 2 0.000 0.969 0.000 1.000
#> SRR1376963 2 0.000 0.969 0.000 1.000
#> SRR1101061 1 0.000 0.997 1.000 0.000
#> SRR1414496 2 0.000 0.969 0.000 1.000
#> SRR1334791 1 0.000 0.997 1.000 0.000
#> SRR1072129 2 0.000 0.969 0.000 1.000
#> SRR1330450 2 0.969 0.395 0.396 0.604
#> SRR1409108 2 0.000 0.969 0.000 1.000
#> SRR1416865 2 0.518 0.862 0.116 0.884
#> SRR1071832 1 0.000 0.997 1.000 0.000
#> SRR1093814 2 0.000 0.969 0.000 1.000
#> SRR1381821 1 0.000 0.997 1.000 0.000
#> SRR811675 1 0.000 0.997 1.000 0.000
#> SRR1082423 1 0.000 0.997 1.000 0.000
#> SRR1417296 2 0.000 0.969 0.000 1.000
#> SRR815944 2 0.000 0.969 0.000 1.000
#> SRR1332775 2 0.000 0.969 0.000 1.000
#> SRR1079143 2 0.000 0.969 0.000 1.000
#> SRR1476807 1 0.000 0.997 1.000 0.000
#> SRR1456634 1 0.000 0.997 1.000 0.000
#> SRR1083171 2 0.000 0.969 0.000 1.000
#> SRR1083337 1 0.000 0.997 1.000 0.000
#> SRR1377672 2 0.753 0.741 0.216 0.784
#> SRR1435816 2 0.000 0.969 0.000 1.000
#> SRR1080580 1 0.000 0.997 1.000 0.000
#> SRR1366672 2 0.000 0.969 0.000 1.000
#> SRR1075150 2 0.000 0.969 0.000 1.000
#> SRR814137 1 0.000 0.997 1.000 0.000
#> SRR1475062 1 0.000 0.997 1.000 0.000
#> SRR1340028 1 0.000 0.997 1.000 0.000
#> SRR1070789 2 0.000 0.969 0.000 1.000
#> SRR1097728 2 0.000 0.969 0.000 1.000
#> SRR1447172 2 0.000 0.969 0.000 1.000
#> SRR1472486 2 0.000 0.969 0.000 1.000
#> SRR1377881 1 0.000 0.997 1.000 0.000
#> SRR1420912 1 0.456 0.887 0.904 0.096
#> SRR1313747 2 0.000 0.969 0.000 1.000
#> SRR1414447 2 0.000 0.969 0.000 1.000
#> SRR1358238 1 0.000 0.997 1.000 0.000
#> SRR1322115 1 0.000 0.997 1.000 0.000
#> SRR1330474 1 0.000 0.997 1.000 0.000
#> SRR1093124 1 0.000 0.997 1.000 0.000
#> SRR1456354 1 0.000 0.997 1.000 0.000
#> SRR820859 1 0.000 0.997 1.000 0.000
#> SRR1401860 1 0.000 0.997 1.000 0.000
#> SRR1095599 2 0.000 0.969 0.000 1.000
#> SRR1417130 1 0.000 0.997 1.000 0.000
#> SRR1362597 2 0.000 0.969 0.000 1.000
#> SRR1328464 2 0.000 0.969 0.000 1.000
#> SRR1323957 1 0.000 0.997 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1089106 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1401403 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1080534 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1487638 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1320650 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1073045 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1397030 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1439976 1 0.0237 0.996 0.996 0.000 0.004
#> SRR1454050 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1070286 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1344185 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1084228 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1101907 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1079686 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1089761 2 0.6079 0.359 0.000 0.612 0.388
#> SRR811403 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1440560 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1079706 3 0.0000 0.868 0.000 0.000 1.000
#> SRR1459101 3 0.4654 0.691 0.000 0.208 0.792
#> SRR1335089 3 0.0000 0.868 0.000 0.000 1.000
#> SRR1337840 1 0.0000 0.999 1.000 0.000 0.000
#> SRR808682 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1443224 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1439831 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1087463 3 0.0000 0.868 0.000 0.000 1.000
#> SRR1457949 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1455969 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1415529 3 0.5968 0.439 0.364 0.000 0.636
#> SRR1330018 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1370597 3 0.0000 0.868 0.000 0.000 1.000
#> SRR1385524 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1351605 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1460148 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1354159 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1318390 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1073095 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1340989 3 0.0237 0.866 0.000 0.004 0.996
#> SRR1481375 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1079356 3 0.0000 0.868 0.000 0.000 1.000
#> SRR1455545 1 0.0237 0.996 0.996 0.000 0.004
#> SRR1406157 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1420259 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1376963 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1101061 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1330450 3 0.0000 0.868 0.000 0.000 1.000
#> SRR1409108 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1416865 3 0.0000 0.868 0.000 0.000 1.000
#> SRR1071832 3 0.6215 0.291 0.428 0.000 0.572
#> SRR1093814 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1381821 3 0.0000 0.868 0.000 0.000 1.000
#> SRR811675 3 0.3879 0.754 0.152 0.000 0.848
#> SRR1082423 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.955 0.000 1.000 0.000
#> SRR815944 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1332775 2 0.6192 0.316 0.000 0.580 0.420
#> SRR1079143 3 0.6126 0.372 0.000 0.400 0.600
#> SRR1476807 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1456634 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1083171 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1083337 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1377672 3 0.6192 0.324 0.000 0.420 0.580
#> SRR1435816 2 0.4235 0.756 0.000 0.824 0.176
#> SRR1080580 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1366672 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1075150 2 0.0000 0.955 0.000 1.000 0.000
#> SRR814137 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1475062 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1097728 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1447172 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1472486 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1377881 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1420912 3 0.0000 0.868 0.000 0.000 1.000
#> SRR1313747 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1414447 3 0.0000 0.868 0.000 0.000 1.000
#> SRR1358238 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1322115 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1330474 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1456354 1 0.0000 0.999 1.000 0.000 0.000
#> SRR820859 1 0.0592 0.987 0.988 0.000 0.012
#> SRR1401860 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1095599 2 0.6274 0.216 0.000 0.544 0.456
#> SRR1417130 1 0.0000 0.999 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1328464 2 0.6192 0.316 0.000 0.580 0.420
#> SRR1323957 1 0.0000 0.999 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1089106 1 0.3351 0.858 0.844 0.000 0.008 0.148
#> SRR1401403 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1080534 1 0.0336 0.943 0.992 0.000 0.008 0.000
#> SRR1487638 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1320650 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1073045 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1397030 2 0.0188 0.981 0.000 0.996 0.000 0.004
#> SRR1439976 1 0.4004 0.832 0.812 0.000 0.024 0.164
#> SRR1454050 4 0.4331 0.834 0.000 0.288 0.000 0.712
#> SRR1070286 1 0.2131 0.916 0.932 0.000 0.032 0.036
#> SRR1344185 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1084228 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1101907 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1079686 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1089761 4 0.5549 0.719 0.000 0.280 0.048 0.672
#> SRR811403 4 0.4222 0.841 0.000 0.272 0.000 0.728
#> SRR1440560 4 0.4193 0.840 0.000 0.268 0.000 0.732
#> SRR1079706 3 0.0000 0.862 0.000 0.000 1.000 0.000
#> SRR1459101 4 0.1004 0.627 0.000 0.004 0.024 0.972
#> SRR1335089 3 0.2530 0.816 0.000 0.000 0.888 0.112
#> SRR1337840 1 0.0592 0.942 0.984 0.000 0.000 0.016
#> SRR808682 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1443224 4 0.4356 0.832 0.000 0.292 0.000 0.708
#> SRR1439831 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1087463 3 0.4500 0.662 0.000 0.000 0.684 0.316
#> SRR1457949 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1455969 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1415529 1 0.6138 0.633 0.648 0.000 0.092 0.260
#> SRR1330018 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1370597 3 0.0000 0.862 0.000 0.000 1.000 0.000
#> SRR1385524 2 0.0188 0.981 0.000 0.996 0.000 0.004
#> SRR1351605 1 0.3172 0.853 0.840 0.000 0.000 0.160
#> SRR1460148 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1354159 4 0.4356 0.823 0.000 0.292 0.000 0.708
#> SRR1318390 4 0.4222 0.841 0.000 0.272 0.000 0.728
#> SRR1073095 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1410612 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1076892 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1340989 4 0.0592 0.622 0.000 0.000 0.016 0.984
#> SRR1481375 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1079356 3 0.0188 0.861 0.000 0.000 0.996 0.004
#> SRR1455545 1 0.4004 0.832 0.812 0.000 0.024 0.164
#> SRR1406157 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1420259 2 0.0188 0.981 0.000 0.996 0.000 0.004
#> SRR1376963 4 0.4222 0.840 0.000 0.272 0.000 0.728
#> SRR1101061 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1334791 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.0469 0.973 0.000 0.988 0.000 0.012
#> SRR1330450 3 0.4761 0.619 0.000 0.000 0.628 0.372
#> SRR1409108 4 0.4222 0.841 0.000 0.272 0.000 0.728
#> SRR1416865 3 0.0000 0.862 0.000 0.000 1.000 0.000
#> SRR1071832 1 0.5732 0.669 0.672 0.000 0.064 0.264
#> SRR1093814 4 0.4250 0.840 0.000 0.276 0.000 0.724
#> SRR1381821 3 0.0000 0.862 0.000 0.000 1.000 0.000
#> SRR811675 3 0.0524 0.858 0.008 0.000 0.988 0.004
#> SRR1082423 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1417296 4 0.4948 0.602 0.000 0.440 0.000 0.560
#> SRR815944 4 0.4193 0.835 0.000 0.268 0.000 0.732
#> SRR1332775 3 0.2647 0.791 0.000 0.120 0.880 0.000
#> SRR1079143 4 0.1837 0.651 0.000 0.028 0.028 0.944
#> SRR1476807 1 0.0592 0.942 0.984 0.000 0.000 0.016
#> SRR1456634 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1083171 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1083337 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1377672 4 0.0336 0.633 0.000 0.008 0.000 0.992
#> SRR1435816 2 0.4483 0.527 0.000 0.712 0.284 0.004
#> SRR1080580 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1366672 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1075150 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR814137 1 0.3172 0.853 0.840 0.000 0.000 0.160
#> SRR1475062 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1070789 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1097728 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1447172 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1472486 2 0.0000 0.985 0.000 1.000 0.000 0.000
#> SRR1377881 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1420912 3 0.3873 0.750 0.000 0.000 0.772 0.228
#> SRR1313747 4 0.4817 0.708 0.000 0.388 0.000 0.612
#> SRR1414447 4 0.0817 0.621 0.000 0.000 0.024 0.976
#> SRR1358238 1 0.2647 0.882 0.880 0.000 0.000 0.120
#> SRR1322115 1 0.0188 0.945 0.996 0.000 0.000 0.004
#> SRR1330474 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1093124 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1456354 1 0.0592 0.942 0.984 0.000 0.000 0.016
#> SRR820859 1 0.3668 0.760 0.808 0.000 0.188 0.004
#> SRR1401860 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1095599 3 0.3625 0.758 0.000 0.160 0.828 0.012
#> SRR1417130 1 0.0000 0.947 1.000 0.000 0.000 0.000
#> SRR1362597 2 0.0188 0.981 0.000 0.996 0.000 0.004
#> SRR1328464 3 0.4840 0.636 0.000 0.240 0.732 0.028
#> SRR1323957 1 0.0592 0.942 0.984 0.000 0.000 0.016
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0162 0.860 0.996 0.000 0.000 0.004 0.000
#> SRR1093410 1 0.0162 0.860 0.996 0.000 0.000 0.004 0.000
#> SRR1380523 2 0.0865 0.956 0.000 0.972 0.024 0.004 0.000
#> SRR1089106 4 0.3586 0.898 0.264 0.000 0.000 0.736 0.000
#> SRR1401403 1 0.0162 0.860 0.996 0.000 0.000 0.004 0.000
#> SRR1080534 1 0.2166 0.794 0.912 0.000 0.004 0.072 0.012
#> SRR1487638 2 0.1792 0.915 0.000 0.916 0.084 0.000 0.000
#> SRR1320650 2 0.0579 0.954 0.000 0.984 0.008 0.008 0.000
#> SRR1073045 2 0.0162 0.952 0.000 0.996 0.000 0.004 0.000
#> SRR1397030 2 0.1018 0.953 0.000 0.968 0.016 0.016 0.000
#> SRR1439976 4 0.3534 0.898 0.256 0.000 0.000 0.744 0.000
#> SRR1454050 3 0.3274 0.800 0.000 0.220 0.780 0.000 0.000
#> SRR1070286 4 0.3730 0.876 0.288 0.000 0.000 0.712 0.000
#> SRR1344185 2 0.0324 0.953 0.000 0.992 0.004 0.004 0.000
#> SRR1084228 2 0.0566 0.954 0.000 0.984 0.012 0.004 0.000
#> SRR1101907 2 0.0566 0.954 0.000 0.984 0.012 0.004 0.000
#> SRR1079686 2 0.1270 0.944 0.000 0.948 0.052 0.000 0.000
#> SRR1089761 3 0.6417 0.582 0.000 0.204 0.608 0.152 0.036
#> SRR811403 3 0.3132 0.822 0.000 0.172 0.820 0.008 0.000
#> SRR1440560 3 0.1965 0.808 0.000 0.096 0.904 0.000 0.000
#> SRR1079706 5 0.0290 0.840 0.000 0.000 0.000 0.008 0.992
#> SRR1459101 3 0.2570 0.698 0.000 0.004 0.880 0.108 0.008
#> SRR1335089 5 0.3601 0.798 0.000 0.000 0.052 0.128 0.820
#> SRR1337840 1 0.4302 -0.346 0.520 0.000 0.000 0.480 0.000
#> SRR808682 2 0.0992 0.955 0.000 0.968 0.024 0.008 0.000
#> SRR1443224 3 0.3143 0.813 0.000 0.204 0.796 0.000 0.000
#> SRR1439831 1 0.0000 0.860 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.5831 0.647 0.000 0.000 0.220 0.172 0.608
#> SRR1457949 2 0.0566 0.947 0.000 0.984 0.004 0.012 0.000
#> SRR1455969 2 0.0566 0.954 0.000 0.984 0.012 0.004 0.000
#> SRR1415529 4 0.2650 0.701 0.068 0.000 0.004 0.892 0.036
#> SRR1330018 2 0.0955 0.955 0.000 0.968 0.028 0.004 0.000
#> SRR1370597 5 0.0000 0.839 0.000 0.000 0.000 0.000 1.000
#> SRR1385524 2 0.1117 0.953 0.000 0.964 0.020 0.016 0.000
#> SRR1351605 4 0.3707 0.885 0.284 0.000 0.000 0.716 0.000
#> SRR1460148 1 0.0000 0.860 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.2230 0.797 0.000 0.116 0.884 0.000 0.000
#> SRR1318390 3 0.3132 0.822 0.000 0.172 0.820 0.008 0.000
#> SRR1073095 2 0.1041 0.955 0.000 0.964 0.032 0.004 0.000
#> SRR1410612 2 0.1041 0.955 0.000 0.964 0.032 0.004 0.000
#> SRR1076892 1 0.0000 0.860 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.2233 0.703 0.000 0.000 0.892 0.104 0.004
#> SRR1481375 2 0.1106 0.948 0.000 0.964 0.024 0.012 0.000
#> SRR1079356 5 0.0963 0.837 0.000 0.000 0.000 0.036 0.964
#> SRR1455545 4 0.3534 0.898 0.256 0.000 0.000 0.744 0.000
#> SRR1406157 1 0.0000 0.860 1.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.1168 0.954 0.000 0.960 0.032 0.008 0.000
#> SRR1420259 2 0.1484 0.923 0.000 0.944 0.008 0.048 0.000
#> SRR1376963 3 0.2690 0.822 0.000 0.156 0.844 0.000 0.000
#> SRR1101061 1 0.0000 0.860 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.0963 0.953 0.000 0.964 0.036 0.000 0.000
#> SRR1334791 1 0.0000 0.860 1.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.2130 0.917 0.000 0.908 0.080 0.012 0.000
#> SRR1330450 5 0.6262 0.586 0.000 0.000 0.176 0.304 0.520
#> SRR1409108 3 0.3282 0.819 0.000 0.188 0.804 0.008 0.000
#> SRR1416865 5 0.0290 0.840 0.000 0.000 0.000 0.008 0.992
#> SRR1071832 4 0.2700 0.734 0.088 0.000 0.004 0.884 0.024
#> SRR1093814 3 0.3039 0.817 0.000 0.192 0.808 0.000 0.000
#> SRR1381821 5 0.0290 0.840 0.000 0.000 0.000 0.008 0.992
#> SRR811675 5 0.1043 0.835 0.000 0.000 0.000 0.040 0.960
#> SRR1082423 1 0.0162 0.860 0.996 0.000 0.000 0.004 0.000
#> SRR1417296 3 0.4494 0.553 0.000 0.380 0.608 0.012 0.000
#> SRR815944 3 0.2074 0.799 0.000 0.104 0.896 0.000 0.000
#> SRR1332775 5 0.2522 0.782 0.000 0.108 0.000 0.012 0.880
#> SRR1079143 3 0.1885 0.735 0.000 0.012 0.936 0.032 0.020
#> SRR1476807 1 0.4305 -0.369 0.512 0.000 0.000 0.488 0.000
#> SRR1456634 1 0.1270 0.816 0.948 0.000 0.000 0.052 0.000
#> SRR1083171 2 0.1638 0.934 0.000 0.932 0.064 0.004 0.000
#> SRR1083337 1 0.0162 0.860 0.996 0.000 0.000 0.004 0.000
#> SRR1377672 3 0.3928 0.528 0.000 0.004 0.700 0.296 0.000
#> SRR1435816 2 0.5374 0.358 0.000 0.612 0.012 0.048 0.328
#> SRR1080580 1 0.2179 0.765 0.888 0.000 0.000 0.112 0.000
#> SRR1366672 2 0.0404 0.951 0.000 0.988 0.000 0.012 0.000
#> SRR1075150 2 0.0898 0.955 0.000 0.972 0.020 0.008 0.000
#> SRR814137 4 0.3612 0.897 0.268 0.000 0.000 0.732 0.000
#> SRR1475062 1 0.0000 0.860 1.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0290 0.857 0.992 0.000 0.000 0.008 0.000
#> SRR1070789 2 0.0955 0.955 0.000 0.968 0.028 0.004 0.000
#> SRR1097728 2 0.2610 0.887 0.000 0.892 0.028 0.076 0.004
#> SRR1447172 2 0.1041 0.954 0.000 0.964 0.032 0.004 0.000
#> SRR1472486 2 0.0932 0.942 0.000 0.972 0.004 0.020 0.004
#> SRR1377881 1 0.0000 0.860 1.000 0.000 0.000 0.000 0.000
#> SRR1420912 5 0.5400 0.605 0.000 0.000 0.096 0.272 0.632
#> SRR1313747 3 0.3561 0.764 0.000 0.260 0.740 0.000 0.000
#> SRR1414447 3 0.2079 0.705 0.000 0.000 0.916 0.064 0.020
#> SRR1358238 4 0.3895 0.833 0.320 0.000 0.000 0.680 0.000
#> SRR1322115 1 0.0794 0.847 0.972 0.000 0.000 0.028 0.000
#> SRR1330474 1 0.0162 0.860 0.996 0.000 0.000 0.004 0.000
#> SRR1093124 1 0.0162 0.860 0.996 0.000 0.000 0.004 0.000
#> SRR1456354 1 0.4307 -0.396 0.504 0.000 0.000 0.496 0.000
#> SRR820859 1 0.5045 0.511 0.696 0.000 0.000 0.108 0.196
#> SRR1401860 1 0.1608 0.803 0.928 0.000 0.000 0.072 0.000
#> SRR1095599 5 0.3911 0.780 0.000 0.100 0.020 0.056 0.824
#> SRR1417130 1 0.0162 0.860 0.996 0.000 0.000 0.004 0.000
#> SRR1362597 2 0.1018 0.953 0.000 0.968 0.016 0.016 0.000
#> SRR1328464 5 0.5965 0.617 0.000 0.204 0.028 0.120 0.648
#> SRR1323957 1 0.4305 -0.369 0.512 0.000 0.000 0.488 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0291 0.9168 0.992 0.000 0.000 0.004 0.000 0.004
#> SRR1093410 1 0.0291 0.9168 0.992 0.000 0.000 0.004 0.000 0.004
#> SRR1380523 2 0.0914 0.8592 0.000 0.968 0.016 0.000 0.000 0.016
#> SRR1089106 4 0.2389 0.7888 0.128 0.000 0.000 0.864 0.000 0.008
#> SRR1401403 1 0.0000 0.9180 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1080534 1 0.3920 0.7260 0.768 0.000 0.000 0.056 0.008 0.168
#> SRR1487638 2 0.3821 0.6146 0.000 0.740 0.220 0.000 0.000 0.040
#> SRR1320650 2 0.1814 0.8454 0.000 0.900 0.000 0.000 0.000 0.100
#> SRR1073045 2 0.2300 0.8277 0.000 0.856 0.000 0.000 0.000 0.144
#> SRR1397030 2 0.1950 0.8482 0.000 0.912 0.024 0.000 0.000 0.064
#> SRR1439976 4 0.2446 0.7858 0.124 0.000 0.000 0.864 0.000 0.012
#> SRR1454050 3 0.2941 0.5243 0.000 0.220 0.780 0.000 0.000 0.000
#> SRR1070286 4 0.3172 0.7866 0.152 0.000 0.000 0.820 0.016 0.012
#> SRR1344185 2 0.2219 0.8332 0.000 0.864 0.000 0.000 0.000 0.136
#> SRR1084228 2 0.1814 0.8430 0.000 0.900 0.000 0.000 0.000 0.100
#> SRR1101907 2 0.2048 0.8380 0.000 0.880 0.000 0.000 0.000 0.120
#> SRR1079686 2 0.2070 0.8141 0.000 0.896 0.092 0.000 0.000 0.012
#> SRR1089761 6 0.7026 0.0000 0.000 0.100 0.396 0.064 0.036 0.404
#> SRR811403 3 0.2946 0.5673 0.000 0.176 0.812 0.000 0.000 0.012
#> SRR1440560 3 0.1866 0.5225 0.000 0.084 0.908 0.000 0.000 0.008
#> SRR1079706 5 0.0000 0.7593 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1459101 3 0.4332 -0.2180 0.000 0.000 0.564 0.016 0.004 0.416
#> SRR1335089 5 0.4486 0.6557 0.000 0.000 0.040 0.072 0.752 0.136
#> SRR1337840 4 0.4072 0.5361 0.448 0.000 0.000 0.544 0.000 0.008
#> SRR808682 2 0.1341 0.8554 0.000 0.948 0.024 0.000 0.000 0.028
#> SRR1443224 3 0.3651 0.5469 0.000 0.180 0.772 0.000 0.000 0.048
#> SRR1439831 1 0.0000 0.9180 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.6310 0.4523 0.000 0.000 0.124 0.084 0.560 0.232
#> SRR1457949 2 0.2135 0.8374 0.000 0.872 0.000 0.000 0.000 0.128
#> SRR1455969 2 0.2020 0.8506 0.000 0.896 0.008 0.000 0.000 0.096
#> SRR1415529 4 0.2834 0.5825 0.020 0.000 0.000 0.852 0.008 0.120
#> SRR1330018 2 0.0937 0.8592 0.000 0.960 0.000 0.000 0.000 0.040
#> SRR1370597 5 0.0146 0.7587 0.000 0.000 0.000 0.000 0.996 0.004
#> SRR1385524 2 0.1890 0.8486 0.000 0.916 0.024 0.000 0.000 0.060
#> SRR1351605 4 0.2632 0.7961 0.164 0.000 0.000 0.832 0.000 0.004
#> SRR1460148 1 0.0146 0.9174 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1354159 3 0.3565 0.4213 0.000 0.092 0.808 0.004 0.000 0.096
#> SRR1318390 3 0.2968 0.5674 0.000 0.168 0.816 0.000 0.000 0.016
#> SRR1073095 2 0.0777 0.8568 0.000 0.972 0.024 0.000 0.000 0.004
#> SRR1410612 2 0.0717 0.8585 0.000 0.976 0.016 0.000 0.000 0.008
#> SRR1076892 1 0.0000 0.9180 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.4219 -0.0462 0.000 0.000 0.648 0.032 0.000 0.320
#> SRR1481375 2 0.3269 0.7620 0.000 0.792 0.024 0.000 0.000 0.184
#> SRR1079356 5 0.1341 0.7542 0.000 0.000 0.000 0.028 0.948 0.024
#> SRR1455545 4 0.2446 0.7858 0.124 0.000 0.000 0.864 0.000 0.012
#> SRR1406157 1 0.0000 0.9180 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.1088 0.8562 0.000 0.960 0.024 0.000 0.000 0.016
#> SRR1420259 2 0.3616 0.7568 0.000 0.748 0.012 0.008 0.000 0.232
#> SRR1376963 3 0.2744 0.5690 0.000 0.144 0.840 0.000 0.000 0.016
#> SRR1101061 1 0.0000 0.9180 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.1075 0.8495 0.000 0.952 0.048 0.000 0.000 0.000
#> SRR1334791 1 0.0000 0.9180 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.3586 0.6473 0.000 0.756 0.216 0.000 0.000 0.028
#> SRR1330450 5 0.6938 0.3497 0.000 0.000 0.092 0.208 0.464 0.236
#> SRR1409108 3 0.2772 0.5673 0.000 0.180 0.816 0.000 0.000 0.004
#> SRR1416865 5 0.0146 0.7596 0.000 0.000 0.000 0.000 0.996 0.004
#> SRR1071832 4 0.2894 0.6375 0.036 0.000 0.004 0.860 0.004 0.096
#> SRR1093814 3 0.3316 0.5700 0.000 0.164 0.804 0.004 0.000 0.028
#> SRR1381821 5 0.0260 0.7595 0.000 0.000 0.000 0.000 0.992 0.008
#> SRR811675 5 0.1500 0.7477 0.000 0.000 0.000 0.052 0.936 0.012
#> SRR1082423 1 0.0146 0.9174 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1417296 3 0.3922 0.3216 0.000 0.320 0.664 0.000 0.000 0.016
#> SRR815944 3 0.3975 0.3689 0.000 0.112 0.772 0.004 0.000 0.112
#> SRR1332775 5 0.2571 0.6934 0.000 0.064 0.000 0.000 0.876 0.060
#> SRR1079143 3 0.3428 0.2627 0.000 0.008 0.796 0.016 0.004 0.176
#> SRR1476807 4 0.4051 0.5682 0.432 0.000 0.000 0.560 0.000 0.008
#> SRR1456634 1 0.2593 0.7249 0.844 0.000 0.000 0.148 0.000 0.008
#> SRR1083171 2 0.3127 0.7773 0.000 0.840 0.100 0.004 0.000 0.056
#> SRR1083337 1 0.0291 0.9168 0.992 0.000 0.000 0.004 0.000 0.004
#> SRR1377672 3 0.5187 -0.1277 0.000 0.000 0.600 0.136 0.000 0.264
#> SRR1435816 2 0.6530 0.0280 0.000 0.412 0.008 0.012 0.308 0.260
#> SRR1080580 1 0.4235 0.6779 0.724 0.000 0.000 0.084 0.000 0.192
#> SRR1366672 2 0.2260 0.8396 0.000 0.860 0.000 0.000 0.000 0.140
#> SRR1075150 2 0.1858 0.8560 0.000 0.912 0.012 0.000 0.000 0.076
#> SRR814137 4 0.2340 0.7960 0.148 0.000 0.000 0.852 0.000 0.000
#> SRR1475062 1 0.0000 0.9180 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0692 0.9055 0.976 0.000 0.000 0.020 0.000 0.004
#> SRR1070789 2 0.0692 0.8595 0.000 0.976 0.004 0.000 0.000 0.020
#> SRR1097728 2 0.4742 0.5949 0.000 0.680 0.052 0.024 0.000 0.244
#> SRR1447172 2 0.1418 0.8553 0.000 0.944 0.024 0.000 0.000 0.032
#> SRR1472486 2 0.2697 0.8010 0.000 0.812 0.000 0.000 0.000 0.188
#> SRR1377881 1 0.0000 0.9180 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 5 0.5964 0.4450 0.000 0.000 0.036 0.268 0.560 0.136
#> SRR1313747 3 0.3314 0.4668 0.000 0.256 0.740 0.000 0.000 0.004
#> SRR1414447 3 0.3606 0.0911 0.000 0.000 0.724 0.008 0.004 0.264
#> SRR1358238 4 0.2805 0.7921 0.184 0.000 0.000 0.812 0.000 0.004
#> SRR1322115 1 0.2511 0.8350 0.880 0.000 0.000 0.056 0.000 0.064
#> SRR1330474 1 0.0806 0.9029 0.972 0.000 0.000 0.020 0.000 0.008
#> SRR1093124 1 0.0260 0.9159 0.992 0.000 0.000 0.008 0.000 0.000
#> SRR1456354 4 0.3975 0.6259 0.392 0.000 0.000 0.600 0.000 0.008
#> SRR820859 1 0.6739 0.3547 0.520 0.000 0.000 0.120 0.208 0.152
#> SRR1401860 1 0.3417 0.7542 0.796 0.000 0.000 0.044 0.000 0.160
#> SRR1095599 5 0.4550 0.6024 0.000 0.072 0.012 0.008 0.732 0.176
#> SRR1417130 1 0.0291 0.9168 0.992 0.000 0.000 0.004 0.000 0.004
#> SRR1362597 2 0.2009 0.8461 0.000 0.908 0.024 0.000 0.000 0.068
#> SRR1328464 5 0.7266 0.0602 0.000 0.176 0.056 0.032 0.432 0.304
#> SRR1323957 4 0.4057 0.5615 0.436 0.000 0.000 0.556 0.000 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", "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 17633 rows and 97 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 2.
#>
#> Following methods can be applied to this 'ConsensusPartition' object:
#> [1] "cola_report" "collect_classes" "collect_plots"
#> [4] "collect_stats" "colnames" "compare_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.All the plots in panels can be made by individual functions and they are plotted later in this section.
select_partition_number()
produces several plots showing different
statistics for choosing “optimized” k
. There are following statistics:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower PAC score, higher mean silhouette score or higher
concordance corresponds to better partition. Rand index and Jaccard index
measure how similar the current partition is compared to partition with k-1
.
If they are too similar, we won't accept k
is better than k-1
.
select_partition_number(res)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 1.000 0.966 0.987 0.4261 0.585 0.585
#> 3 3 0.694 0.718 0.871 0.5037 0.768 0.604
#> 4 4 0.736 0.743 0.880 0.1503 0.842 0.593
#> 5 5 0.677 0.766 0.850 0.0462 0.882 0.621
#> 6 6 0.737 0.711 0.816 0.0553 0.925 0.695
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
#> SRR1397242 1 0.0000 1.0000 1.000 0.000
#> SRR1093410 1 0.0000 1.0000 1.000 0.000
#> SRR1380523 2 0.0000 0.9807 0.000 1.000
#> SRR1089106 2 0.9460 0.4490 0.364 0.636
#> SRR1401403 1 0.0000 1.0000 1.000 0.000
#> SRR1080534 2 0.0672 0.9739 0.008 0.992
#> SRR1487638 2 0.0000 0.9807 0.000 1.000
#> SRR1320650 2 0.0000 0.9807 0.000 1.000
#> SRR1073045 2 0.0000 0.9807 0.000 1.000
#> SRR1397030 2 0.0000 0.9807 0.000 1.000
#> SRR1439976 1 0.0000 1.0000 1.000 0.000
#> SRR1454050 2 0.0000 0.9807 0.000 1.000
#> SRR1070286 1 0.0000 1.0000 1.000 0.000
#> SRR1344185 2 0.0000 0.9807 0.000 1.000
#> SRR1084228 2 0.0000 0.9807 0.000 1.000
#> SRR1101907 2 0.0000 0.9807 0.000 1.000
#> SRR1079686 2 0.0000 0.9807 0.000 1.000
#> SRR1089761 2 0.0000 0.9807 0.000 1.000
#> SRR811403 2 0.0000 0.9807 0.000 1.000
#> SRR1440560 2 0.0000 0.9807 0.000 1.000
#> SRR1079706 2 0.0000 0.9807 0.000 1.000
#> SRR1459101 2 0.0000 0.9807 0.000 1.000
#> SRR1335089 2 0.0000 0.9807 0.000 1.000
#> SRR1337840 1 0.0000 1.0000 1.000 0.000
#> SRR808682 2 0.0000 0.9807 0.000 1.000
#> SRR1443224 2 0.0000 0.9807 0.000 1.000
#> SRR1439831 1 0.0000 1.0000 1.000 0.000
#> SRR1087463 2 0.0000 0.9807 0.000 1.000
#> SRR1457949 2 0.0000 0.9807 0.000 1.000
#> SRR1455969 2 0.0000 0.9807 0.000 1.000
#> SRR1415529 2 0.0376 0.9774 0.004 0.996
#> SRR1330018 2 0.0000 0.9807 0.000 1.000
#> SRR1370597 2 0.0000 0.9807 0.000 1.000
#> SRR1385524 2 0.0000 0.9807 0.000 1.000
#> SRR1351605 1 0.0000 1.0000 1.000 0.000
#> SRR1460148 1 0.0000 1.0000 1.000 0.000
#> SRR1354159 2 0.0000 0.9807 0.000 1.000
#> SRR1318390 2 0.0000 0.9807 0.000 1.000
#> SRR1073095 2 0.0000 0.9807 0.000 1.000
#> SRR1410612 2 0.0000 0.9807 0.000 1.000
#> SRR1076892 1 0.0000 1.0000 1.000 0.000
#> SRR1340989 2 0.0000 0.9807 0.000 1.000
#> SRR1481375 2 0.0000 0.9807 0.000 1.000
#> SRR1079356 2 0.4298 0.8952 0.088 0.912
#> SRR1455545 1 0.0000 1.0000 1.000 0.000
#> SRR1406157 1 0.0000 1.0000 1.000 0.000
#> SRR1445920 2 0.0000 0.9807 0.000 1.000
#> SRR1420259 2 0.0000 0.9807 0.000 1.000
#> SRR1376963 2 0.0000 0.9807 0.000 1.000
#> SRR1101061 1 0.0000 1.0000 1.000 0.000
#> SRR1414496 2 0.0000 0.9807 0.000 1.000
#> SRR1334791 1 0.0000 1.0000 1.000 0.000
#> SRR1072129 2 0.0000 0.9807 0.000 1.000
#> SRR1330450 2 0.0000 0.9807 0.000 1.000
#> SRR1409108 2 0.0000 0.9807 0.000 1.000
#> SRR1416865 2 0.0000 0.9807 0.000 1.000
#> SRR1071832 2 0.0376 0.9774 0.004 0.996
#> SRR1093814 2 0.0000 0.9807 0.000 1.000
#> SRR1381821 2 0.0000 0.9807 0.000 1.000
#> SRR811675 2 1.0000 0.0539 0.496 0.504
#> SRR1082423 1 0.0000 1.0000 1.000 0.000
#> SRR1417296 2 0.0000 0.9807 0.000 1.000
#> SRR815944 2 0.0000 0.9807 0.000 1.000
#> SRR1332775 2 0.0000 0.9807 0.000 1.000
#> SRR1079143 2 0.0000 0.9807 0.000 1.000
#> SRR1476807 1 0.0000 1.0000 1.000 0.000
#> SRR1456634 1 0.0000 1.0000 1.000 0.000
#> SRR1083171 2 0.0000 0.9807 0.000 1.000
#> SRR1083337 1 0.0000 1.0000 1.000 0.000
#> SRR1377672 2 0.0000 0.9807 0.000 1.000
#> SRR1435816 2 0.0000 0.9807 0.000 1.000
#> SRR1080580 2 0.0000 0.9807 0.000 1.000
#> SRR1366672 2 0.0000 0.9807 0.000 1.000
#> SRR1075150 2 0.0000 0.9807 0.000 1.000
#> SRR814137 2 0.7883 0.6981 0.236 0.764
#> SRR1475062 1 0.0000 1.0000 1.000 0.000
#> SRR1340028 1 0.0000 1.0000 1.000 0.000
#> SRR1070789 2 0.0000 0.9807 0.000 1.000
#> SRR1097728 2 0.0000 0.9807 0.000 1.000
#> SRR1447172 2 0.0000 0.9807 0.000 1.000
#> SRR1472486 2 0.0000 0.9807 0.000 1.000
#> SRR1377881 1 0.0000 1.0000 1.000 0.000
#> SRR1420912 2 0.0000 0.9807 0.000 1.000
#> SRR1313747 2 0.0000 0.9807 0.000 1.000
#> SRR1414447 2 0.0000 0.9807 0.000 1.000
#> SRR1358238 1 0.0000 1.0000 1.000 0.000
#> SRR1322115 1 0.0000 1.0000 1.000 0.000
#> SRR1330474 1 0.0000 1.0000 1.000 0.000
#> SRR1093124 1 0.0000 1.0000 1.000 0.000
#> SRR1456354 1 0.0000 1.0000 1.000 0.000
#> SRR820859 2 0.4939 0.8724 0.108 0.892
#> SRR1401860 2 0.0000 0.9807 0.000 1.000
#> SRR1095599 2 0.0000 0.9807 0.000 1.000
#> SRR1417130 1 0.0000 1.0000 1.000 0.000
#> SRR1362597 2 0.0000 0.9807 0.000 1.000
#> SRR1328464 2 0.0000 0.9807 0.000 1.000
#> SRR1323957 1 0.0000 1.0000 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1089106 3 0.1529 0.713 0.040 0.000 0.960
#> SRR1401403 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1080534 3 0.0000 0.744 0.000 0.000 1.000
#> SRR1487638 2 0.2448 0.794 0.000 0.924 0.076
#> SRR1320650 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1073045 3 0.6225 0.471 0.000 0.432 0.568
#> SRR1397030 2 0.1163 0.850 0.000 0.972 0.028
#> SRR1439976 1 0.5905 0.630 0.648 0.000 0.352
#> SRR1454050 3 0.6008 0.561 0.000 0.372 0.628
#> SRR1070286 1 0.6008 0.604 0.628 0.000 0.372
#> SRR1344185 3 0.6079 0.545 0.000 0.388 0.612
#> SRR1084228 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1101907 3 0.6079 0.545 0.000 0.388 0.612
#> SRR1079686 3 0.6215 0.480 0.000 0.428 0.572
#> SRR1089761 3 0.0237 0.745 0.000 0.004 0.996
#> SRR811403 3 0.6308 0.303 0.000 0.492 0.508
#> SRR1440560 3 0.4452 0.680 0.000 0.192 0.808
#> SRR1079706 3 0.0000 0.744 0.000 0.000 1.000
#> SRR1459101 3 0.0237 0.745 0.000 0.004 0.996
#> SRR1335089 3 0.0237 0.745 0.000 0.004 0.996
#> SRR1337840 1 0.0000 0.937 1.000 0.000 0.000
#> SRR808682 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1443224 3 0.6079 0.545 0.000 0.388 0.612
#> SRR1439831 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1087463 3 0.0237 0.745 0.000 0.004 0.996
#> SRR1457949 3 0.6126 0.528 0.000 0.400 0.600
#> SRR1455969 3 0.6079 0.545 0.000 0.388 0.612
#> SRR1415529 3 0.0237 0.745 0.000 0.004 0.996
#> SRR1330018 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1370597 3 0.5621 0.579 0.000 0.308 0.692
#> SRR1385524 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1351605 1 0.6062 0.586 0.616 0.000 0.384
#> SRR1460148 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1354159 3 0.6079 0.545 0.000 0.388 0.612
#> SRR1318390 3 0.6267 0.417 0.000 0.452 0.548
#> SRR1073095 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1340989 3 0.0237 0.745 0.000 0.004 0.996
#> SRR1481375 3 0.6168 0.508 0.000 0.412 0.588
#> SRR1079356 3 0.0000 0.744 0.000 0.000 1.000
#> SRR1455545 1 0.4555 0.794 0.800 0.000 0.200
#> SRR1406157 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1420259 2 0.6309 -0.316 0.000 0.504 0.496
#> SRR1376963 3 0.6008 0.561 0.000 0.372 0.628
#> SRR1101061 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1330450 3 0.0237 0.745 0.000 0.004 0.996
#> SRR1409108 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1416865 3 0.0000 0.744 0.000 0.000 1.000
#> SRR1071832 3 0.0000 0.744 0.000 0.000 1.000
#> SRR1093814 3 0.6008 0.561 0.000 0.372 0.628
#> SRR1381821 3 0.0000 0.744 0.000 0.000 1.000
#> SRR811675 3 0.4504 0.570 0.196 0.000 0.804
#> SRR1082423 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.877 0.000 1.000 0.000
#> SRR815944 3 0.5810 0.594 0.000 0.336 0.664
#> SRR1332775 2 0.6286 -0.210 0.000 0.536 0.464
#> SRR1079143 3 0.0237 0.745 0.000 0.004 0.996
#> SRR1476807 1 0.0747 0.929 0.984 0.000 0.016
#> SRR1456634 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1083171 3 0.6274 0.421 0.000 0.456 0.544
#> SRR1083337 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1377672 3 0.0237 0.745 0.000 0.004 0.996
#> SRR1435816 3 0.6225 0.470 0.000 0.432 0.568
#> SRR1080580 3 0.0237 0.745 0.000 0.004 0.996
#> SRR1366672 2 0.6267 -0.182 0.000 0.548 0.452
#> SRR1075150 2 0.0000 0.877 0.000 1.000 0.000
#> SRR814137 3 0.0237 0.741 0.004 0.000 0.996
#> SRR1475062 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1097728 3 0.5785 0.599 0.000 0.332 0.668
#> SRR1447172 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1472486 2 0.6291 -0.236 0.000 0.532 0.468
#> SRR1377881 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1420912 3 0.0000 0.744 0.000 0.000 1.000
#> SRR1313747 2 0.0237 0.873 0.000 0.996 0.004
#> SRR1414447 3 0.0237 0.745 0.000 0.004 0.996
#> SRR1358238 1 0.1031 0.925 0.976 0.000 0.024
#> SRR1322115 1 0.2165 0.900 0.936 0.000 0.064
#> SRR1330474 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1456354 1 0.5706 0.669 0.680 0.000 0.320
#> SRR820859 3 0.0000 0.744 0.000 0.000 1.000
#> SRR1401860 3 0.0237 0.745 0.000 0.004 0.996
#> SRR1095599 3 0.6302 0.340 0.000 0.480 0.520
#> SRR1417130 1 0.0000 0.937 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.877 0.000 1.000 0.000
#> SRR1328464 3 0.5138 0.648 0.000 0.252 0.748
#> SRR1323957 1 0.0000 0.937 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.956 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.956 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.953 0.000 1.000 0.000 0.000
#> SRR1089106 4 0.0707 0.779 0.000 0.000 0.020 0.980
#> SRR1401403 1 0.0000 0.956 1.000 0.000 0.000 0.000
#> SRR1080534 4 0.4452 0.627 0.008 0.000 0.260 0.732
#> SRR1487638 2 0.2081 0.867 0.000 0.916 0.084 0.000
#> SRR1320650 2 0.1118 0.927 0.000 0.964 0.036 0.000
#> SRR1073045 3 0.4888 0.427 0.000 0.412 0.588 0.000
#> SRR1397030 2 0.0921 0.930 0.000 0.972 0.028 0.000
#> SRR1439976 4 0.3672 0.722 0.164 0.000 0.012 0.824
#> SRR1454050 3 0.0469 0.777 0.000 0.012 0.988 0.000
#> SRR1070286 4 0.0188 0.776 0.004 0.000 0.000 0.996
#> SRR1344185 3 0.1557 0.780 0.000 0.056 0.944 0.000
#> SRR1084228 2 0.0000 0.953 0.000 1.000 0.000 0.000
#> SRR1101907 3 0.3172 0.740 0.000 0.160 0.840 0.000
#> SRR1079686 3 0.4888 0.418 0.000 0.412 0.588 0.000
#> SRR1089761 3 0.1118 0.763 0.000 0.000 0.964 0.036
#> SRR811403 3 0.3569 0.706 0.000 0.196 0.804 0.000
#> SRR1440560 3 0.0000 0.774 0.000 0.000 1.000 0.000
#> SRR1079706 4 0.4624 0.368 0.000 0.000 0.340 0.660
#> SRR1459101 3 0.0000 0.774 0.000 0.000 1.000 0.000
#> SRR1335089 3 0.4817 0.210 0.000 0.000 0.612 0.388
#> SRR1337840 1 0.0921 0.944 0.972 0.000 0.000 0.028
#> SRR808682 2 0.0000 0.953 0.000 1.000 0.000 0.000
#> SRR1443224 3 0.1557 0.780 0.000 0.056 0.944 0.000
#> SRR1439831 1 0.0000 0.956 1.000 0.000 0.000 0.000
#> SRR1087463 3 0.4898 0.148 0.000 0.000 0.584 0.416
#> SRR1457949 3 0.1792 0.778 0.000 0.068 0.932 0.000
#> SRR1455969 3 0.1557 0.780 0.000 0.056 0.944 0.000
#> SRR1415529 3 0.4866 0.170 0.000 0.000 0.596 0.404
#> SRR1330018 2 0.0000 0.953 0.000 1.000 0.000 0.000
#> SRR1370597 3 0.7777 0.304 0.000 0.304 0.428 0.268
#> SRR1385524 2 0.0000 0.953 0.000 1.000 0.000 0.000
#> SRR1351605 4 0.3672 0.722 0.164 0.000 0.012 0.824
#> SRR1460148 1 0.0000 0.956 1.000 0.000 0.000 0.000
#> SRR1354159 3 0.0921 0.780 0.000 0.028 0.972 0.000
#> SRR1318390 3 0.2281 0.757 0.000 0.096 0.904 0.000
#> SRR1073095 2 0.0000 0.953 0.000 1.000 0.000 0.000
#> SRR1410612 2 0.0000 0.953 0.000 1.000 0.000 0.000
#> SRR1076892 1 0.0000 0.956 1.000 0.000 0.000 0.000
#> SRR1340989 3 0.0000 0.774 0.000 0.000 1.000 0.000
#> SRR1481375 3 0.2814 0.757 0.000 0.132 0.868 0.000
#> SRR1079356 4 0.0921 0.775 0.000 0.000 0.028 0.972
#> SRR1455545 4 0.3688 0.673 0.208 0.000 0.000 0.792
#> SRR1406157 1 0.0000 0.956 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.953 0.000 1.000 0.000 0.000
#> SRR1420259 3 0.4907 0.381 0.000 0.420 0.580 0.000
#> SRR1376963 3 0.0469 0.777 0.000 0.012 0.988 0.000
#> SRR1101061 1 0.0000 0.956 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.0469 0.946 0.000 0.988 0.012 0.000
#> SRR1334791 1 0.0000 0.956 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.953 0.000 1.000 0.000 0.000
#> SRR1330450 3 0.4843 0.187 0.000 0.000 0.604 0.396
#> SRR1409108 2 0.1389 0.922 0.000 0.952 0.048 0.000
#> SRR1416865 3 0.4164 0.589 0.000 0.000 0.736 0.264
#> SRR1071832 4 0.4746 0.462 0.000 0.000 0.368 0.632
#> SRR1093814 3 0.0469 0.777 0.000 0.012 0.988 0.000
#> SRR1381821 4 0.0921 0.775 0.000 0.000 0.028 0.972
#> SRR811675 4 0.0921 0.775 0.028 0.000 0.000 0.972
#> SRR1082423 1 0.0000 0.956 1.000 0.000 0.000 0.000
#> SRR1417296 2 0.0592 0.944 0.000 0.984 0.016 0.000
#> SRR815944 3 0.1557 0.780 0.000 0.056 0.944 0.000
#> SRR1332775 2 0.7474 -0.187 0.000 0.424 0.400 0.176
#> SRR1079143 3 0.1118 0.763 0.000 0.000 0.964 0.036
#> SRR1476807 1 0.3569 0.737 0.804 0.000 0.000 0.196
#> SRR1456634 1 0.0817 0.946 0.976 0.000 0.000 0.024
#> SRR1083171 3 0.4916 0.388 0.000 0.424 0.576 0.000
#> SRR1083337 1 0.0000 0.956 1.000 0.000 0.000 0.000
#> SRR1377672 3 0.0000 0.774 0.000 0.000 1.000 0.000
#> SRR1435816 3 0.5356 0.682 0.000 0.200 0.728 0.072
#> SRR1080580 3 0.1302 0.762 0.000 0.000 0.956 0.044
#> SRR1366672 3 0.4999 0.247 0.000 0.492 0.508 0.000
#> SRR1075150 2 0.0000 0.953 0.000 1.000 0.000 0.000
#> SRR814137 4 0.4235 0.757 0.092 0.000 0.084 0.824
#> SRR1475062 1 0.0000 0.956 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.1716 0.904 0.936 0.000 0.000 0.064
#> SRR1070789 2 0.0000 0.953 0.000 1.000 0.000 0.000
#> SRR1097728 3 0.1610 0.777 0.000 0.032 0.952 0.016
#> SRR1447172 2 0.0000 0.953 0.000 1.000 0.000 0.000
#> SRR1472486 3 0.4981 0.319 0.000 0.464 0.536 0.000
#> SRR1377881 1 0.0000 0.956 1.000 0.000 0.000 0.000
#> SRR1420912 4 0.4933 0.201 0.000 0.000 0.432 0.568
#> SRR1313747 2 0.1637 0.911 0.000 0.940 0.060 0.000
#> SRR1414447 3 0.0000 0.774 0.000 0.000 1.000 0.000
#> SRR1358238 1 0.4967 0.102 0.548 0.000 0.000 0.452
#> SRR1322115 4 0.4817 0.296 0.388 0.000 0.000 0.612
#> SRR1330474 1 0.0921 0.944 0.972 0.000 0.000 0.028
#> SRR1093124 1 0.0000 0.956 1.000 0.000 0.000 0.000
#> SRR1456354 4 0.3681 0.711 0.176 0.000 0.008 0.816
#> SRR820859 4 0.1792 0.760 0.000 0.000 0.068 0.932
#> SRR1401860 4 0.4522 0.553 0.000 0.000 0.320 0.680
#> SRR1095599 3 0.4673 0.692 0.000 0.132 0.792 0.076
#> SRR1417130 1 0.0592 0.950 0.984 0.000 0.000 0.016
#> SRR1362597 2 0.0000 0.953 0.000 1.000 0.000 0.000
#> SRR1328464 3 0.2965 0.766 0.000 0.072 0.892 0.036
#> SRR1323957 1 0.0921 0.944 0.972 0.000 0.000 0.028
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.2389 0.883 0.880 0.000 0.000 0.004 0.116
#> SRR1093410 1 0.2389 0.883 0.880 0.000 0.000 0.004 0.116
#> SRR1380523 2 0.0000 0.934 0.000 1.000 0.000 0.000 0.000
#> SRR1089106 4 0.0880 0.633 0.000 0.000 0.000 0.968 0.032
#> SRR1401403 1 0.2389 0.883 0.880 0.000 0.000 0.004 0.116
#> SRR1080534 3 0.7618 0.326 0.080 0.000 0.460 0.276 0.184
#> SRR1487638 2 0.2074 0.835 0.000 0.896 0.104 0.000 0.000
#> SRR1320650 2 0.4357 0.802 0.000 0.768 0.104 0.000 0.128
#> SRR1073045 3 0.5925 0.535 0.000 0.316 0.556 0.000 0.128
#> SRR1397030 2 0.2793 0.862 0.000 0.876 0.036 0.000 0.088
#> SRR1439976 4 0.0162 0.655 0.004 0.000 0.000 0.996 0.000
#> SRR1454050 3 0.0000 0.811 0.000 0.000 1.000 0.000 0.000
#> SRR1070286 5 0.3561 0.754 0.000 0.000 0.000 0.260 0.740
#> SRR1344185 3 0.3912 0.777 0.000 0.108 0.804 0.000 0.088
#> SRR1084228 2 0.1478 0.922 0.000 0.936 0.000 0.000 0.064
#> SRR1101907 3 0.5067 0.718 0.000 0.172 0.700 0.000 0.128
#> SRR1079686 3 0.4060 0.587 0.000 0.360 0.640 0.000 0.000
#> SRR1089761 3 0.2074 0.803 0.000 0.000 0.896 0.104 0.000
#> SRR811403 3 0.1725 0.800 0.000 0.044 0.936 0.000 0.020
#> SRR1440560 3 0.0000 0.811 0.000 0.000 1.000 0.000 0.000
#> SRR1079706 5 0.3642 0.757 0.000 0.000 0.008 0.232 0.760
#> SRR1459101 3 0.0000 0.811 0.000 0.000 1.000 0.000 0.000
#> SRR1335089 3 0.2424 0.796 0.000 0.000 0.868 0.132 0.000
#> SRR1337840 4 0.5490 0.651 0.248 0.000 0.000 0.636 0.116
#> SRR808682 2 0.0162 0.933 0.000 0.996 0.000 0.000 0.004
#> SRR1443224 3 0.2127 0.803 0.000 0.108 0.892 0.000 0.000
#> SRR1439831 1 0.0510 0.894 0.984 0.000 0.000 0.000 0.016
#> SRR1087463 3 0.5851 0.344 0.000 0.000 0.580 0.132 0.288
#> SRR1457949 3 0.2411 0.803 0.000 0.108 0.884 0.000 0.008
#> SRR1455969 3 0.3912 0.777 0.000 0.108 0.804 0.000 0.088
#> SRR1415529 3 0.2583 0.796 0.000 0.000 0.864 0.132 0.004
#> SRR1330018 2 0.1410 0.923 0.000 0.940 0.000 0.000 0.060
#> SRR1370597 5 0.4909 0.691 0.000 0.136 0.120 0.008 0.736
#> SRR1385524 2 0.1851 0.892 0.000 0.912 0.000 0.000 0.088
#> SRR1351605 4 0.0000 0.651 0.000 0.000 0.000 1.000 0.000
#> SRR1460148 1 0.0000 0.895 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.0162 0.812 0.000 0.004 0.996 0.000 0.000
#> SRR1318390 3 0.0404 0.810 0.000 0.012 0.988 0.000 0.000
#> SRR1073095 2 0.0000 0.934 0.000 1.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.934 0.000 1.000 0.000 0.000 0.000
#> SRR1076892 1 0.0510 0.894 0.984 0.000 0.000 0.000 0.016
#> SRR1340989 3 0.0000 0.811 0.000 0.000 1.000 0.000 0.000
#> SRR1481375 3 0.4796 0.735 0.000 0.152 0.728 0.000 0.120
#> SRR1079356 5 0.3561 0.754 0.000 0.000 0.000 0.260 0.740
#> SRR1455545 4 0.1965 0.684 0.096 0.000 0.000 0.904 0.000
#> SRR1406157 1 0.0510 0.894 0.984 0.000 0.000 0.000 0.016
#> SRR1445920 2 0.0000 0.934 0.000 1.000 0.000 0.000 0.000
#> SRR1420259 3 0.5201 0.628 0.000 0.188 0.684 0.000 0.128
#> SRR1376963 3 0.0000 0.811 0.000 0.000 1.000 0.000 0.000
#> SRR1101061 1 0.0510 0.894 0.984 0.000 0.000 0.000 0.016
#> SRR1414496 2 0.1205 0.926 0.000 0.956 0.004 0.000 0.040
#> SRR1334791 1 0.0510 0.894 0.984 0.000 0.000 0.000 0.016
#> SRR1072129 2 0.0000 0.934 0.000 1.000 0.000 0.000 0.000
#> SRR1330450 3 0.2424 0.796 0.000 0.000 0.868 0.132 0.000
#> SRR1409108 2 0.2127 0.845 0.000 0.892 0.108 0.000 0.000
#> SRR1416865 5 0.3715 0.645 0.000 0.000 0.260 0.004 0.736
#> SRR1071832 3 0.3586 0.703 0.000 0.000 0.736 0.264 0.000
#> SRR1093814 3 0.0000 0.811 0.000 0.000 1.000 0.000 0.000
#> SRR1381821 5 0.3561 0.754 0.000 0.000 0.000 0.260 0.740
#> SRR811675 5 0.3561 0.754 0.000 0.000 0.000 0.260 0.740
#> SRR1082423 1 0.2230 0.884 0.884 0.000 0.000 0.000 0.116
#> SRR1417296 2 0.0290 0.931 0.000 0.992 0.008 0.000 0.000
#> SRR815944 3 0.2127 0.803 0.000 0.108 0.892 0.000 0.000
#> SRR1332775 5 0.3489 0.677 0.000 0.144 0.036 0.000 0.820
#> SRR1079143 3 0.2074 0.803 0.000 0.000 0.896 0.104 0.000
#> SRR1476807 4 0.5557 0.639 0.260 0.000 0.000 0.624 0.116
#> SRR1456634 4 0.5878 0.510 0.336 0.000 0.000 0.548 0.116
#> SRR1083171 3 0.4963 0.544 0.000 0.352 0.608 0.000 0.040
#> SRR1083337 1 0.2389 0.883 0.880 0.000 0.000 0.004 0.116
#> SRR1377672 3 0.0000 0.811 0.000 0.000 1.000 0.000 0.000
#> SRR1435816 5 0.5791 0.535 0.000 0.188 0.196 0.000 0.616
#> SRR1080580 3 0.2233 0.803 0.000 0.000 0.892 0.104 0.004
#> SRR1366672 3 0.5618 0.535 0.000 0.348 0.564 0.000 0.088
#> SRR1075150 2 0.1851 0.892 0.000 0.912 0.000 0.000 0.088
#> SRR814137 4 0.0162 0.648 0.000 0.000 0.000 0.996 0.004
#> SRR1475062 1 0.0510 0.894 0.984 0.000 0.000 0.000 0.016
#> SRR1340028 1 0.4064 0.799 0.792 0.000 0.000 0.092 0.116
#> SRR1070789 2 0.1043 0.926 0.000 0.960 0.000 0.000 0.040
#> SRR1097728 3 0.2569 0.812 0.000 0.068 0.892 0.040 0.000
#> SRR1447172 2 0.1043 0.926 0.000 0.960 0.000 0.000 0.040
#> SRR1472486 3 0.5831 0.578 0.000 0.292 0.580 0.000 0.128
#> SRR1377881 1 0.0510 0.894 0.984 0.000 0.000 0.000 0.016
#> SRR1420912 3 0.4237 0.678 0.000 0.000 0.752 0.048 0.200
#> SRR1313747 2 0.2230 0.837 0.000 0.884 0.116 0.000 0.000
#> SRR1414447 3 0.0000 0.811 0.000 0.000 1.000 0.000 0.000
#> SRR1358238 4 0.5312 0.666 0.220 0.000 0.000 0.664 0.116
#> SRR1322115 4 0.6091 0.106 0.432 0.000 0.024 0.480 0.064
#> SRR1330474 4 0.5513 0.647 0.252 0.000 0.000 0.632 0.116
#> SRR1093124 1 0.3780 0.822 0.812 0.000 0.000 0.072 0.116
#> SRR1456354 4 0.0771 0.663 0.020 0.000 0.000 0.976 0.004
#> SRR820859 5 0.3274 0.754 0.000 0.000 0.000 0.220 0.780
#> SRR1401860 3 0.5167 0.669 0.000 0.000 0.668 0.240 0.092
#> SRR1095599 5 0.4570 0.528 0.000 0.020 0.348 0.000 0.632
#> SRR1417130 1 0.4317 0.770 0.772 0.000 0.000 0.112 0.116
#> SRR1362597 2 0.0000 0.934 0.000 1.000 0.000 0.000 0.000
#> SRR1328464 3 0.2573 0.807 0.000 0.016 0.880 0.104 0.000
#> SRR1323957 4 0.5490 0.651 0.248 0.000 0.000 0.636 0.116
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.4774 0.789 0.672 0.000 0.000 0.136 0.000 0.192
#> SRR1093410 1 0.4774 0.789 0.672 0.000 0.000 0.136 0.000 0.192
#> SRR1380523 2 0.0000 0.801 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1089106 4 0.3313 0.790 0.000 0.000 0.000 0.816 0.124 0.060
#> SRR1401403 1 0.4774 0.789 0.672 0.000 0.000 0.136 0.000 0.192
#> SRR1080534 6 0.5739 0.439 0.008 0.000 0.204 0.000 0.232 0.556
#> SRR1487638 2 0.0632 0.788 0.000 0.976 0.024 0.000 0.000 0.000
#> SRR1320650 6 0.4172 0.439 0.000 0.204 0.072 0.000 0.000 0.724
#> SRR1073045 6 0.4605 0.618 0.000 0.184 0.124 0.000 0.000 0.692
#> SRR1397030 2 0.4337 -0.263 0.000 0.500 0.020 0.000 0.000 0.480
#> SRR1439976 4 0.1806 0.848 0.000 0.000 0.000 0.908 0.088 0.004
#> SRR1454050 3 0.0000 0.866 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1070286 5 0.0000 0.843 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1344185 6 0.5019 0.513 0.000 0.072 0.428 0.000 0.000 0.500
#> SRR1084228 2 0.3563 0.549 0.000 0.664 0.000 0.000 0.000 0.336
#> SRR1101907 6 0.4910 0.657 0.000 0.116 0.244 0.000 0.000 0.640
#> SRR1079686 3 0.4443 0.284 0.000 0.368 0.596 0.000 0.000 0.036
#> SRR1089761 3 0.1444 0.860 0.000 0.000 0.928 0.000 0.000 0.072
#> SRR811403 3 0.2494 0.768 0.000 0.016 0.864 0.000 0.000 0.120
#> SRR1440560 3 0.0260 0.865 0.000 0.000 0.992 0.000 0.000 0.008
#> SRR1079706 5 0.0363 0.841 0.000 0.000 0.000 0.000 0.988 0.012
#> SRR1459101 3 0.0260 0.865 0.000 0.000 0.992 0.000 0.000 0.008
#> SRR1335089 3 0.1444 0.860 0.000 0.000 0.928 0.000 0.000 0.072
#> SRR1337840 4 0.0000 0.849 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR808682 2 0.0865 0.786 0.000 0.964 0.000 0.000 0.000 0.036
#> SRR1443224 3 0.1444 0.832 0.000 0.072 0.928 0.000 0.000 0.000
#> SRR1439831 1 0.0000 0.819 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.4687 0.476 0.000 0.000 0.632 0.000 0.296 0.072
#> SRR1457949 3 0.2857 0.759 0.000 0.072 0.856 0.000 0.000 0.072
#> SRR1455969 6 0.5011 0.529 0.000 0.072 0.420 0.000 0.000 0.508
#> SRR1415529 3 0.1444 0.860 0.000 0.000 0.928 0.000 0.000 0.072
#> SRR1330018 2 0.3620 0.522 0.000 0.648 0.000 0.000 0.000 0.352
#> SRR1370597 5 0.2186 0.807 0.000 0.056 0.024 0.000 0.908 0.012
#> SRR1385524 2 0.3857 -0.168 0.000 0.532 0.000 0.000 0.000 0.468
#> SRR1351605 4 0.1918 0.846 0.000 0.000 0.000 0.904 0.088 0.008
#> SRR1460148 1 0.1333 0.820 0.944 0.000 0.000 0.008 0.000 0.048
#> SRR1354159 3 0.0000 0.866 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1318390 3 0.0790 0.858 0.000 0.000 0.968 0.000 0.000 0.032
#> SRR1073095 2 0.0260 0.801 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1410612 2 0.0000 0.801 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1076892 1 0.0000 0.819 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.0146 0.866 0.000 0.000 0.996 0.000 0.000 0.004
#> SRR1481375 6 0.5343 0.677 0.000 0.156 0.264 0.000 0.000 0.580
#> SRR1079356 5 0.0000 0.843 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1455545 4 0.1663 0.848 0.000 0.000 0.000 0.912 0.088 0.000
#> SRR1406157 1 0.0000 0.819 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.801 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1420259 6 0.4106 0.635 0.000 0.076 0.188 0.000 0.000 0.736
#> SRR1376963 3 0.0790 0.858 0.000 0.000 0.968 0.000 0.000 0.032
#> SRR1101061 1 0.0000 0.819 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.2805 0.712 0.000 0.812 0.004 0.000 0.000 0.184
#> SRR1334791 1 0.0000 0.819 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.801 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1330450 3 0.1444 0.860 0.000 0.000 0.928 0.000 0.000 0.072
#> SRR1409108 2 0.2331 0.720 0.000 0.888 0.080 0.000 0.000 0.032
#> SRR1416865 5 0.2218 0.772 0.000 0.000 0.104 0.000 0.884 0.012
#> SRR1071832 3 0.2912 0.803 0.000 0.000 0.852 0.000 0.076 0.072
#> SRR1093814 3 0.0790 0.858 0.000 0.000 0.968 0.000 0.000 0.032
#> SRR1381821 5 0.0000 0.843 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR811675 5 0.0000 0.843 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1082423 1 0.4328 0.800 0.716 0.000 0.000 0.092 0.000 0.192
#> SRR1417296 2 0.0603 0.796 0.000 0.980 0.004 0.000 0.000 0.016
#> SRR815944 3 0.1444 0.832 0.000 0.072 0.928 0.000 0.000 0.000
#> SRR1332775 5 0.3270 0.750 0.000 0.060 0.000 0.000 0.820 0.120
#> SRR1079143 3 0.1444 0.860 0.000 0.000 0.928 0.000 0.000 0.072
#> SRR1476807 4 0.0937 0.830 0.040 0.000 0.000 0.960 0.000 0.000
#> SRR1456634 4 0.4309 0.577 0.104 0.000 0.000 0.724 0.000 0.172
#> SRR1083171 3 0.5622 0.168 0.000 0.248 0.540 0.000 0.000 0.212
#> SRR1083337 1 0.4774 0.789 0.672 0.000 0.000 0.136 0.000 0.192
#> SRR1377672 3 0.0790 0.858 0.000 0.000 0.968 0.000 0.000 0.032
#> SRR1435816 6 0.6791 0.437 0.000 0.180 0.088 0.000 0.244 0.488
#> SRR1080580 3 0.1444 0.860 0.000 0.000 0.928 0.000 0.000 0.072
#> SRR1366672 6 0.5556 0.553 0.000 0.336 0.152 0.000 0.000 0.512
#> SRR1075150 6 0.3866 0.166 0.000 0.484 0.000 0.000 0.000 0.516
#> SRR814137 4 0.2697 0.823 0.000 0.000 0.000 0.864 0.092 0.044
#> SRR1475062 1 0.0000 0.819 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.5628 0.702 0.576 0.000 0.000 0.224 0.008 0.192
#> SRR1070789 2 0.2664 0.713 0.000 0.816 0.000 0.000 0.000 0.184
#> SRR1097728 3 0.1713 0.850 0.000 0.044 0.928 0.000 0.000 0.028
#> SRR1447172 2 0.2664 0.713 0.000 0.816 0.000 0.000 0.000 0.184
#> SRR1472486 6 0.4569 0.645 0.000 0.156 0.144 0.000 0.000 0.700
#> SRR1377881 1 0.0000 0.819 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 3 0.2912 0.695 0.000 0.000 0.784 0.000 0.216 0.000
#> SRR1313747 2 0.2586 0.704 0.000 0.868 0.100 0.000 0.000 0.032
#> SRR1414447 3 0.0790 0.858 0.000 0.000 0.968 0.000 0.000 0.032
#> SRR1358238 4 0.0000 0.849 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1322115 4 0.7637 0.205 0.244 0.000 0.008 0.368 0.140 0.240
#> SRR1330474 4 0.2320 0.759 0.004 0.000 0.000 0.864 0.000 0.132
#> SRR1093124 1 0.4957 0.750 0.648 0.000 0.000 0.204 0.000 0.148
#> SRR1456354 4 0.1806 0.848 0.000 0.000 0.000 0.908 0.088 0.004
#> SRR820859 5 0.3838 0.110 0.000 0.000 0.000 0.000 0.552 0.448
#> SRR1401860 6 0.4879 0.458 0.000 0.000 0.392 0.000 0.064 0.544
#> SRR1095599 5 0.5223 0.513 0.000 0.004 0.220 0.000 0.624 0.152
#> SRR1417130 1 0.5579 0.655 0.544 0.000 0.000 0.264 0.000 0.192
#> SRR1362597 2 0.0146 0.801 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1328464 3 0.1753 0.856 0.000 0.004 0.912 0.000 0.000 0.084
#> SRR1323957 4 0.0000 0.849 0.000 0.000 0.000 1.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 17633 rows and 97 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.957 0.843 0.945 0.3720 0.576 0.576
#> 3 3 0.647 0.820 0.903 0.6949 0.642 0.451
#> 4 4 0.826 0.872 0.923 0.1096 0.902 0.746
#> 5 5 0.760 0.792 0.882 0.0828 0.915 0.726
#> 6 6 0.660 0.665 0.756 0.0404 0.973 0.891
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
#> SRR1397242 1 1.000 0.806 0.504 0.496
#> SRR1093410 1 1.000 0.806 0.504 0.496
#> SRR1380523 2 1.000 1.000 0.496 0.504
#> SRR1089106 1 1.000 -0.990 0.504 0.496
#> SRR1401403 1 1.000 0.806 0.504 0.496
#> SRR1080534 2 1.000 1.000 0.496 0.504
#> SRR1487638 2 1.000 1.000 0.496 0.504
#> SRR1320650 2 1.000 1.000 0.496 0.504
#> SRR1073045 2 1.000 1.000 0.496 0.504
#> SRR1397030 2 1.000 1.000 0.496 0.504
#> SRR1439976 1 0.943 -0.794 0.640 0.360
#> SRR1454050 2 1.000 1.000 0.496 0.504
#> SRR1070286 2 1.000 1.000 0.496 0.504
#> SRR1344185 2 1.000 1.000 0.496 0.504
#> SRR1084228 2 1.000 1.000 0.496 0.504
#> SRR1101907 2 1.000 1.000 0.496 0.504
#> SRR1079686 2 1.000 1.000 0.496 0.504
#> SRR1089761 2 1.000 1.000 0.496 0.504
#> SRR811403 2 1.000 1.000 0.496 0.504
#> SRR1440560 2 1.000 1.000 0.496 0.504
#> SRR1079706 2 1.000 1.000 0.496 0.504
#> SRR1459101 2 1.000 1.000 0.496 0.504
#> SRR1335089 2 1.000 1.000 0.496 0.504
#> SRR1337840 1 1.000 0.806 0.504 0.496
#> SRR808682 2 1.000 1.000 0.496 0.504
#> SRR1443224 2 1.000 1.000 0.496 0.504
#> SRR1439831 1 1.000 0.806 0.504 0.496
#> SRR1087463 2 1.000 1.000 0.496 0.504
#> SRR1457949 2 1.000 1.000 0.496 0.504
#> SRR1455969 2 1.000 1.000 0.496 0.504
#> SRR1415529 2 1.000 1.000 0.496 0.504
#> SRR1330018 2 1.000 1.000 0.496 0.504
#> SRR1370597 2 1.000 1.000 0.496 0.504
#> SRR1385524 2 1.000 1.000 0.496 0.504
#> SRR1351605 1 0.000 0.073 1.000 0.000
#> SRR1460148 1 1.000 0.806 0.504 0.496
#> SRR1354159 2 1.000 1.000 0.496 0.504
#> SRR1318390 2 1.000 1.000 0.496 0.504
#> SRR1073095 2 1.000 1.000 0.496 0.504
#> SRR1410612 2 1.000 1.000 0.496 0.504
#> SRR1076892 1 1.000 0.806 0.504 0.496
#> SRR1340989 2 1.000 1.000 0.496 0.504
#> SRR1481375 2 1.000 1.000 0.496 0.504
#> SRR1079356 2 1.000 1.000 0.496 0.504
#> SRR1455545 1 0.943 -0.794 0.640 0.360
#> SRR1406157 1 1.000 0.806 0.504 0.496
#> SRR1445920 2 1.000 1.000 0.496 0.504
#> SRR1420259 2 1.000 1.000 0.496 0.504
#> SRR1376963 2 1.000 1.000 0.496 0.504
#> SRR1101061 1 1.000 0.806 0.504 0.496
#> SRR1414496 2 1.000 1.000 0.496 0.504
#> SRR1334791 1 1.000 0.806 0.504 0.496
#> SRR1072129 2 1.000 1.000 0.496 0.504
#> SRR1330450 2 1.000 1.000 0.496 0.504
#> SRR1409108 2 1.000 1.000 0.496 0.504
#> SRR1416865 2 1.000 1.000 0.496 0.504
#> SRR1071832 2 1.000 1.000 0.496 0.504
#> SRR1093814 2 1.000 1.000 0.496 0.504
#> SRR1381821 2 1.000 1.000 0.496 0.504
#> SRR811675 2 1.000 1.000 0.496 0.504
#> SRR1082423 1 1.000 0.806 0.504 0.496
#> SRR1417296 2 1.000 1.000 0.496 0.504
#> SRR815944 2 1.000 1.000 0.496 0.504
#> SRR1332775 2 1.000 1.000 0.496 0.504
#> SRR1079143 2 1.000 1.000 0.496 0.504
#> SRR1476807 1 1.000 0.806 0.504 0.496
#> SRR1456634 1 1.000 0.806 0.504 0.496
#> SRR1083171 2 1.000 1.000 0.496 0.504
#> SRR1083337 1 1.000 0.806 0.504 0.496
#> SRR1377672 2 1.000 1.000 0.496 0.504
#> SRR1435816 2 1.000 1.000 0.496 0.504
#> SRR1080580 2 1.000 1.000 0.496 0.504
#> SRR1366672 2 1.000 1.000 0.496 0.504
#> SRR1075150 2 1.000 1.000 0.496 0.504
#> SRR814137 1 0.943 -0.794 0.640 0.360
#> SRR1475062 1 1.000 0.806 0.504 0.496
#> SRR1340028 1 1.000 0.806 0.504 0.496
#> SRR1070789 2 1.000 1.000 0.496 0.504
#> SRR1097728 2 1.000 1.000 0.496 0.504
#> SRR1447172 2 1.000 1.000 0.496 0.504
#> SRR1472486 2 1.000 1.000 0.496 0.504
#> SRR1377881 1 1.000 0.806 0.504 0.496
#> SRR1420912 2 1.000 1.000 0.496 0.504
#> SRR1313747 2 1.000 1.000 0.496 0.504
#> SRR1414447 2 1.000 1.000 0.496 0.504
#> SRR1358238 1 1.000 0.806 0.504 0.496
#> SRR1322115 1 0.943 -0.794 0.640 0.360
#> SRR1330474 1 1.000 0.806 0.504 0.496
#> SRR1093124 1 1.000 0.806 0.504 0.496
#> SRR1456354 1 0.184 0.153 0.972 0.028
#> SRR820859 2 1.000 1.000 0.496 0.504
#> SRR1401860 2 1.000 1.000 0.496 0.504
#> SRR1095599 2 1.000 1.000 0.496 0.504
#> SRR1417130 1 1.000 0.806 0.504 0.496
#> SRR1362597 2 1.000 1.000 0.496 0.504
#> SRR1328464 2 1.000 1.000 0.496 0.504
#> SRR1323957 1 1.000 0.806 0.504 0.496
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.944 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.944 1.000 0.000 0.000
#> SRR1380523 2 0.0237 0.892 0.000 0.996 0.004
#> SRR1089106 3 0.0000 0.867 0.000 0.000 1.000
#> SRR1401403 1 0.0000 0.944 1.000 0.000 0.000
#> SRR1080534 3 0.4291 0.779 0.000 0.180 0.820
#> SRR1487638 2 0.4346 0.830 0.000 0.816 0.184
#> SRR1320650 2 0.0424 0.893 0.000 0.992 0.008
#> SRR1073045 2 0.0424 0.893 0.000 0.992 0.008
#> SRR1397030 2 0.0592 0.892 0.000 0.988 0.012
#> SRR1439976 3 0.0000 0.867 0.000 0.000 1.000
#> SRR1454050 2 0.4346 0.830 0.000 0.816 0.184
#> SRR1070286 3 0.2261 0.861 0.000 0.068 0.932
#> SRR1344185 2 0.0424 0.893 0.000 0.992 0.008
#> SRR1084228 2 0.0424 0.893 0.000 0.992 0.008
#> SRR1101907 2 0.0424 0.893 0.000 0.992 0.008
#> SRR1079686 2 0.4346 0.830 0.000 0.816 0.184
#> SRR1089761 3 0.3192 0.806 0.000 0.112 0.888
#> SRR811403 2 0.4346 0.830 0.000 0.816 0.184
#> SRR1440560 3 0.5835 0.392 0.000 0.340 0.660
#> SRR1079706 3 0.2261 0.861 0.000 0.068 0.932
#> SRR1459101 3 0.1163 0.867 0.000 0.028 0.972
#> SRR1335089 3 0.1163 0.865 0.000 0.028 0.972
#> SRR1337840 3 0.5254 0.656 0.264 0.000 0.736
#> SRR808682 2 0.0237 0.892 0.000 0.996 0.004
#> SRR1443224 2 0.4346 0.830 0.000 0.816 0.184
#> SRR1439831 1 0.0000 0.944 1.000 0.000 0.000
#> SRR1087463 3 0.1031 0.866 0.000 0.024 0.976
#> SRR1457949 2 0.0424 0.893 0.000 0.992 0.008
#> SRR1455969 2 0.0424 0.893 0.000 0.992 0.008
#> SRR1415529 3 0.0592 0.867 0.000 0.012 0.988
#> SRR1330018 2 0.0424 0.893 0.000 0.992 0.008
#> SRR1370597 3 0.2261 0.861 0.000 0.068 0.932
#> SRR1385524 2 0.0592 0.892 0.000 0.988 0.012
#> SRR1351605 3 0.2165 0.849 0.064 0.000 0.936
#> SRR1460148 1 0.0000 0.944 1.000 0.000 0.000
#> SRR1354159 2 0.6302 0.252 0.000 0.520 0.480
#> SRR1318390 2 0.4346 0.830 0.000 0.816 0.184
#> SRR1073095 2 0.0237 0.892 0.000 0.996 0.004
#> SRR1410612 2 0.0237 0.892 0.000 0.996 0.004
#> SRR1076892 1 0.0000 0.944 1.000 0.000 0.000
#> SRR1340989 3 0.1163 0.865 0.000 0.028 0.972
#> SRR1481375 2 0.0747 0.893 0.000 0.984 0.016
#> SRR1079356 3 0.0237 0.868 0.000 0.004 0.996
#> SRR1455545 3 0.0000 0.867 0.000 0.000 1.000
#> SRR1406157 1 0.5363 0.590 0.724 0.000 0.276
#> SRR1445920 2 0.0237 0.892 0.000 0.996 0.004
#> SRR1420259 2 0.0892 0.890 0.000 0.980 0.020
#> SRR1376963 2 0.4750 0.798 0.000 0.784 0.216
#> SRR1101061 1 0.0000 0.944 1.000 0.000 0.000
#> SRR1414496 2 0.0237 0.892 0.000 0.996 0.004
#> SRR1334791 1 0.0000 0.944 1.000 0.000 0.000
#> SRR1072129 2 0.4399 0.830 0.000 0.812 0.188
#> SRR1330450 3 0.1289 0.863 0.000 0.032 0.968
#> SRR1409108 2 0.4346 0.830 0.000 0.816 0.184
#> SRR1416865 3 0.0237 0.868 0.000 0.004 0.996
#> SRR1071832 3 0.0000 0.867 0.000 0.000 1.000
#> SRR1093814 2 0.4346 0.830 0.000 0.816 0.184
#> SRR1381821 3 0.2261 0.861 0.000 0.068 0.932
#> SRR811675 3 0.2261 0.861 0.000 0.068 0.932
#> SRR1082423 1 0.0000 0.944 1.000 0.000 0.000
#> SRR1417296 2 0.4346 0.830 0.000 0.816 0.184
#> SRR815944 2 0.6280 0.316 0.000 0.540 0.460
#> SRR1332775 3 0.5785 0.501 0.000 0.332 0.668
#> SRR1079143 3 0.2537 0.838 0.000 0.080 0.920
#> SRR1476807 3 0.5254 0.656 0.264 0.000 0.736
#> SRR1456634 3 0.6307 0.131 0.488 0.000 0.512
#> SRR1083171 2 0.3752 0.850 0.000 0.856 0.144
#> SRR1083337 1 0.0000 0.944 1.000 0.000 0.000
#> SRR1377672 3 0.2356 0.844 0.000 0.072 0.928
#> SRR1435816 3 0.5058 0.742 0.000 0.244 0.756
#> SRR1080580 3 0.4062 0.801 0.000 0.164 0.836
#> SRR1366672 2 0.0424 0.893 0.000 0.992 0.008
#> SRR1075150 2 0.0424 0.893 0.000 0.992 0.008
#> SRR814137 3 0.0000 0.867 0.000 0.000 1.000
#> SRR1475062 1 0.0000 0.944 1.000 0.000 0.000
#> SRR1340028 1 0.0237 0.941 0.996 0.000 0.004
#> SRR1070789 2 0.0424 0.893 0.000 0.992 0.008
#> SRR1097728 2 0.1031 0.891 0.000 0.976 0.024
#> SRR1447172 2 0.1031 0.891 0.000 0.976 0.024
#> SRR1472486 2 0.0424 0.893 0.000 0.992 0.008
#> SRR1377881 1 0.0000 0.944 1.000 0.000 0.000
#> SRR1420912 3 0.0237 0.867 0.000 0.004 0.996
#> SRR1313747 2 0.4346 0.830 0.000 0.816 0.184
#> SRR1414447 3 0.1289 0.863 0.000 0.032 0.968
#> SRR1358238 3 0.4796 0.704 0.220 0.000 0.780
#> SRR1322115 3 0.2796 0.850 0.000 0.092 0.908
#> SRR1330474 3 0.5529 0.609 0.296 0.000 0.704
#> SRR1093124 1 0.5254 0.613 0.736 0.000 0.264
#> SRR1456354 3 0.2165 0.849 0.064 0.000 0.936
#> SRR820859 3 0.2796 0.850 0.000 0.092 0.908
#> SRR1401860 3 0.4504 0.776 0.000 0.196 0.804
#> SRR1095599 3 0.2878 0.852 0.000 0.096 0.904
#> SRR1417130 1 0.4062 0.775 0.836 0.000 0.164
#> SRR1362597 2 0.1031 0.887 0.000 0.976 0.024
#> SRR1328464 2 0.6286 0.202 0.000 0.536 0.464
#> SRR1323957 3 0.5254 0.656 0.264 0.000 0.736
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.8936 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.8936 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.9377 0.000 1.000 0.000 0.000
#> SRR1089106 3 0.1940 0.9104 0.000 0.000 0.924 0.076
#> SRR1401403 1 0.0000 0.8936 1.000 0.000 0.000 0.000
#> SRR1080534 3 0.1792 0.9184 0.000 0.068 0.932 0.000
#> SRR1487638 2 0.2926 0.9105 0.000 0.896 0.048 0.056
#> SRR1320650 2 0.0000 0.9377 0.000 1.000 0.000 0.000
#> SRR1073045 2 0.0469 0.9354 0.000 0.988 0.000 0.012
#> SRR1397030 2 0.0000 0.9377 0.000 1.000 0.000 0.000
#> SRR1439976 4 0.2999 0.8456 0.004 0.000 0.132 0.864
#> SRR1454050 2 0.3004 0.9090 0.000 0.892 0.048 0.060
#> SRR1070286 3 0.1661 0.9234 0.000 0.052 0.944 0.004
#> SRR1344185 2 0.0469 0.9354 0.000 0.988 0.000 0.012
#> SRR1084228 2 0.0000 0.9377 0.000 1.000 0.000 0.000
#> SRR1101907 2 0.1022 0.9308 0.000 0.968 0.032 0.000
#> SRR1079686 2 0.2844 0.9117 0.000 0.900 0.048 0.052
#> SRR1089761 3 0.1398 0.9083 0.000 0.004 0.956 0.040
#> SRR811403 2 0.3004 0.9090 0.000 0.892 0.048 0.060
#> SRR1440560 2 0.3088 0.9055 0.000 0.888 0.060 0.052
#> SRR1079706 3 0.1389 0.9227 0.000 0.048 0.952 0.000
#> SRR1459101 3 0.1388 0.9115 0.000 0.012 0.960 0.028
#> SRR1335089 3 0.0469 0.9192 0.000 0.000 0.988 0.012
#> SRR1337840 4 0.3176 0.8639 0.084 0.000 0.036 0.880
#> SRR808682 2 0.0000 0.9377 0.000 1.000 0.000 0.000
#> SRR1443224 2 0.3004 0.9090 0.000 0.892 0.048 0.060
#> SRR1439831 1 0.0000 0.8936 1.000 0.000 0.000 0.000
#> SRR1087463 3 0.0469 0.9192 0.000 0.000 0.988 0.012
#> SRR1457949 2 0.0469 0.9354 0.000 0.988 0.000 0.012
#> SRR1455969 2 0.0469 0.9354 0.000 0.988 0.000 0.012
#> SRR1415529 3 0.1867 0.9117 0.000 0.000 0.928 0.072
#> SRR1330018 2 0.0000 0.9377 0.000 1.000 0.000 0.000
#> SRR1370597 3 0.1389 0.9227 0.000 0.048 0.952 0.000
#> SRR1385524 2 0.0000 0.9377 0.000 1.000 0.000 0.000
#> SRR1351605 4 0.3390 0.8511 0.016 0.000 0.132 0.852
#> SRR1460148 1 0.0000 0.8936 1.000 0.000 0.000 0.000
#> SRR1354159 2 0.5936 0.5257 0.000 0.620 0.324 0.056
#> SRR1318390 2 0.3004 0.9090 0.000 0.892 0.048 0.060
#> SRR1073095 2 0.0188 0.9373 0.000 0.996 0.000 0.004
#> SRR1410612 2 0.0188 0.9373 0.000 0.996 0.000 0.004
#> SRR1076892 1 0.0000 0.8936 1.000 0.000 0.000 0.000
#> SRR1340989 3 0.0921 0.9145 0.000 0.000 0.972 0.028
#> SRR1481375 2 0.0469 0.9354 0.000 0.988 0.000 0.012
#> SRR1079356 3 0.0000 0.9200 0.000 0.000 1.000 0.000
#> SRR1455545 4 0.2999 0.8456 0.004 0.000 0.132 0.864
#> SRR1406157 1 0.4936 0.4291 0.652 0.000 0.008 0.340
#> SRR1445920 2 0.0188 0.9373 0.000 0.996 0.000 0.004
#> SRR1420259 2 0.0469 0.9354 0.000 0.988 0.000 0.012
#> SRR1376963 2 0.3004 0.9090 0.000 0.892 0.048 0.060
#> SRR1101061 1 0.0000 0.8936 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.0188 0.9373 0.000 0.996 0.000 0.004
#> SRR1334791 1 0.0000 0.8936 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.2586 0.9147 0.000 0.912 0.048 0.040
#> SRR1330450 3 0.0469 0.9192 0.000 0.000 0.988 0.012
#> SRR1409108 2 0.3004 0.9090 0.000 0.892 0.048 0.060
#> SRR1416865 3 0.0188 0.9202 0.000 0.000 0.996 0.004
#> SRR1071832 3 0.1867 0.9117 0.000 0.000 0.928 0.072
#> SRR1093814 2 0.3004 0.9090 0.000 0.892 0.048 0.060
#> SRR1381821 3 0.1389 0.9227 0.000 0.048 0.952 0.000
#> SRR811675 3 0.1389 0.9227 0.000 0.048 0.952 0.000
#> SRR1082423 1 0.0000 0.8936 1.000 0.000 0.000 0.000
#> SRR1417296 2 0.3004 0.9090 0.000 0.892 0.048 0.060
#> SRR815944 2 0.6253 0.3373 0.000 0.544 0.396 0.060
#> SRR1332775 3 0.3172 0.8233 0.000 0.160 0.840 0.000
#> SRR1079143 3 0.4332 0.7194 0.000 0.160 0.800 0.040
#> SRR1476807 4 0.3176 0.8639 0.084 0.000 0.036 0.880
#> SRR1456634 4 0.3910 0.7940 0.156 0.000 0.024 0.820
#> SRR1083171 2 0.2399 0.9172 0.000 0.920 0.048 0.032
#> SRR1083337 1 0.0817 0.8796 0.976 0.000 0.000 0.024
#> SRR1377672 3 0.3521 0.8784 0.000 0.052 0.864 0.084
#> SRR1435816 3 0.4103 0.6888 0.000 0.256 0.744 0.000
#> SRR1080580 3 0.1792 0.9184 0.000 0.068 0.932 0.000
#> SRR1366672 2 0.0469 0.9354 0.000 0.988 0.000 0.012
#> SRR1075150 2 0.0000 0.9377 0.000 1.000 0.000 0.000
#> SRR814137 4 0.3837 0.7423 0.000 0.000 0.224 0.776
#> SRR1475062 1 0.0000 0.8936 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.3074 0.7736 0.848 0.000 0.000 0.152
#> SRR1070789 2 0.0188 0.9373 0.000 0.996 0.000 0.004
#> SRR1097728 2 0.0469 0.9354 0.000 0.988 0.000 0.012
#> SRR1447172 2 0.0188 0.9377 0.000 0.996 0.000 0.004
#> SRR1472486 2 0.0336 0.9349 0.000 0.992 0.008 0.000
#> SRR1377881 1 0.0000 0.8936 1.000 0.000 0.000 0.000
#> SRR1420912 3 0.0469 0.9192 0.000 0.000 0.988 0.012
#> SRR1313747 2 0.3004 0.9090 0.000 0.892 0.048 0.060
#> SRR1414447 3 0.0921 0.9145 0.000 0.000 0.972 0.028
#> SRR1358238 4 0.3216 0.8678 0.076 0.000 0.044 0.880
#> SRR1322115 3 0.2908 0.8982 0.040 0.064 0.896 0.000
#> SRR1330474 4 0.3842 0.8315 0.128 0.000 0.036 0.836
#> SRR1093124 1 0.5398 0.3272 0.580 0.000 0.016 0.404
#> SRR1456354 4 0.4312 0.8563 0.056 0.000 0.132 0.812
#> SRR820859 3 0.1716 0.9191 0.000 0.064 0.936 0.000
#> SRR1401860 3 0.1792 0.9184 0.000 0.068 0.932 0.000
#> SRR1095599 3 0.1792 0.9186 0.000 0.068 0.932 0.000
#> SRR1417130 1 0.5604 0.0802 0.504 0.000 0.020 0.476
#> SRR1362597 2 0.0000 0.9377 0.000 1.000 0.000 0.000
#> SRR1328464 3 0.2011 0.9123 0.000 0.080 0.920 0.000
#> SRR1323957 4 0.3176 0.8639 0.084 0.000 0.036 0.880
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0000 0.94522 1.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.94522 1.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.82129 0.000 1.000 0.000 0.000 0.000
#> SRR1089106 5 0.0404 0.92781 0.000 0.000 0.000 0.012 0.988
#> SRR1401403 1 0.0000 0.94522 1.000 0.000 0.000 0.000 0.000
#> SRR1080534 5 0.0000 0.92838 0.000 0.000 0.000 0.000 1.000
#> SRR1487638 2 0.1671 0.74251 0.000 0.924 0.076 0.000 0.000
#> SRR1320650 2 0.0000 0.82129 0.000 1.000 0.000 0.000 0.000
#> SRR1073045 2 0.3074 0.71414 0.000 0.804 0.196 0.000 0.000
#> SRR1397030 2 0.0000 0.82129 0.000 1.000 0.000 0.000 0.000
#> SRR1439976 4 0.2424 0.81514 0.000 0.000 0.000 0.868 0.132
#> SRR1454050 3 0.4268 0.78424 0.000 0.444 0.556 0.000 0.000
#> SRR1070286 5 0.0162 0.92801 0.000 0.000 0.004 0.000 0.996
#> SRR1344185 2 0.3177 0.70503 0.000 0.792 0.208 0.000 0.000
#> SRR1084228 2 0.0000 0.82129 0.000 1.000 0.000 0.000 0.000
#> SRR1101907 2 0.0290 0.81796 0.000 0.992 0.008 0.000 0.000
#> SRR1079686 2 0.3143 0.47441 0.000 0.796 0.204 0.000 0.000
#> SRR1089761 5 0.2471 0.89113 0.000 0.000 0.136 0.000 0.864
#> SRR811403 3 0.4273 0.78129 0.000 0.448 0.552 0.000 0.000
#> SRR1440560 3 0.6229 0.46274 0.000 0.192 0.540 0.000 0.268
#> SRR1079706 5 0.1671 0.90132 0.000 0.000 0.076 0.000 0.924
#> SRR1459101 5 0.2124 0.90830 0.000 0.004 0.096 0.000 0.900
#> SRR1335089 5 0.1908 0.90916 0.000 0.000 0.092 0.000 0.908
#> SRR1337840 4 0.0162 0.84255 0.000 0.000 0.000 0.996 0.004
#> SRR808682 2 0.0000 0.82129 0.000 1.000 0.000 0.000 0.000
#> SRR1443224 3 0.4273 0.78129 0.000 0.448 0.552 0.000 0.000
#> SRR1439831 1 0.0000 0.94522 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.1908 0.90910 0.000 0.000 0.092 0.000 0.908
#> SRR1457949 2 0.3074 0.71414 0.000 0.804 0.196 0.000 0.000
#> SRR1455969 2 0.3074 0.71414 0.000 0.804 0.196 0.000 0.000
#> SRR1415529 5 0.0404 0.92910 0.000 0.000 0.012 0.000 0.988
#> SRR1330018 2 0.0162 0.82052 0.000 0.996 0.000 0.004 0.000
#> SRR1370597 5 0.0609 0.92538 0.000 0.000 0.020 0.000 0.980
#> SRR1385524 2 0.0000 0.82129 0.000 1.000 0.000 0.000 0.000
#> SRR1351605 4 0.2424 0.81450 0.000 0.000 0.000 0.868 0.132
#> SRR1460148 1 0.0000 0.94522 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.6332 0.54362 0.000 0.212 0.524 0.000 0.264
#> SRR1318390 3 0.4045 0.73732 0.000 0.356 0.644 0.000 0.000
#> SRR1073095 2 0.1282 0.80291 0.000 0.952 0.044 0.004 0.000
#> SRR1410612 2 0.1282 0.80291 0.000 0.952 0.044 0.004 0.000
#> SRR1076892 1 0.0000 0.94522 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 5 0.2471 0.89145 0.000 0.000 0.136 0.000 0.864
#> SRR1481375 2 0.3109 0.71164 0.000 0.800 0.200 0.000 0.000
#> SRR1079356 5 0.1608 0.90334 0.000 0.000 0.072 0.000 0.928
#> SRR1455545 4 0.2377 0.81712 0.000 0.000 0.000 0.872 0.128
#> SRR1406157 1 0.4350 0.17993 0.588 0.000 0.000 0.408 0.004
#> SRR1445920 2 0.1282 0.80291 0.000 0.952 0.044 0.004 0.000
#> SRR1420259 2 0.3074 0.71414 0.000 0.804 0.196 0.000 0.000
#> SRR1376963 3 0.4210 0.77857 0.000 0.412 0.588 0.000 0.000
#> SRR1101061 1 0.0000 0.94522 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.1124 0.80720 0.000 0.960 0.036 0.004 0.000
#> SRR1334791 1 0.0000 0.94522 1.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0162 0.81944 0.000 0.996 0.004 0.000 0.000
#> SRR1330450 5 0.2074 0.90555 0.000 0.000 0.104 0.000 0.896
#> SRR1409108 3 0.4291 0.75540 0.000 0.464 0.536 0.000 0.000
#> SRR1416865 5 0.0162 0.92801 0.000 0.000 0.004 0.000 0.996
#> SRR1071832 5 0.0451 0.92888 0.000 0.000 0.008 0.004 0.988
#> SRR1093814 3 0.4268 0.78344 0.000 0.444 0.556 0.000 0.000
#> SRR1381821 5 0.1671 0.90132 0.000 0.000 0.076 0.000 0.924
#> SRR811675 5 0.1608 0.90334 0.000 0.000 0.072 0.000 0.928
#> SRR1082423 1 0.0000 0.94522 1.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.2605 0.61541 0.000 0.852 0.148 0.000 0.000
#> SRR815944 5 0.5570 0.43049 0.000 0.104 0.288 0.000 0.608
#> SRR1332775 5 0.1270 0.90134 0.000 0.052 0.000 0.000 0.948
#> SRR1079143 5 0.2732 0.87357 0.000 0.000 0.160 0.000 0.840
#> SRR1476807 4 0.0162 0.84255 0.000 0.000 0.000 0.996 0.004
#> SRR1456634 4 0.0451 0.84019 0.008 0.000 0.000 0.988 0.004
#> SRR1083171 2 0.3752 0.13817 0.000 0.708 0.292 0.000 0.000
#> SRR1083337 1 0.0963 0.91797 0.964 0.000 0.000 0.036 0.000
#> SRR1377672 5 0.2516 0.88892 0.000 0.000 0.140 0.000 0.860
#> SRR1435816 5 0.2674 0.79855 0.000 0.140 0.004 0.000 0.856
#> SRR1080580 5 0.0324 0.92924 0.000 0.004 0.004 0.000 0.992
#> SRR1366672 2 0.3074 0.71414 0.000 0.804 0.196 0.000 0.000
#> SRR1075150 2 0.0000 0.82129 0.000 1.000 0.000 0.000 0.000
#> SRR814137 4 0.3305 0.72690 0.000 0.000 0.000 0.776 0.224
#> SRR1475062 1 0.0000 0.94522 1.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.2966 0.75328 0.816 0.000 0.000 0.184 0.000
#> SRR1070789 2 0.1282 0.80291 0.000 0.952 0.044 0.004 0.000
#> SRR1097728 2 0.4305 0.64423 0.000 0.748 0.200 0.000 0.052
#> SRR1447172 2 0.0162 0.82052 0.000 0.996 0.000 0.004 0.000
#> SRR1472486 2 0.3074 0.55116 0.000 0.804 0.000 0.000 0.196
#> SRR1377881 1 0.0000 0.94522 1.000 0.000 0.000 0.000 0.000
#> SRR1420912 5 0.0290 0.92894 0.000 0.000 0.008 0.000 0.992
#> SRR1313747 2 0.3876 0.00196 0.000 0.684 0.316 0.000 0.000
#> SRR1414447 5 0.2471 0.89145 0.000 0.000 0.136 0.000 0.864
#> SRR1358238 4 0.0290 0.84318 0.000 0.000 0.000 0.992 0.008
#> SRR1322115 5 0.0324 0.92858 0.004 0.000 0.000 0.004 0.992
#> SRR1330474 4 0.0324 0.84166 0.004 0.000 0.000 0.992 0.004
#> SRR1093124 4 0.4440 0.03269 0.468 0.000 0.000 0.528 0.004
#> SRR1456354 4 0.1965 0.82923 0.000 0.000 0.000 0.904 0.096
#> SRR820859 5 0.0162 0.92877 0.000 0.000 0.004 0.000 0.996
#> SRR1401860 5 0.0162 0.92903 0.000 0.004 0.000 0.000 0.996
#> SRR1095599 5 0.0324 0.92892 0.000 0.004 0.004 0.000 0.992
#> SRR1417130 4 0.4299 0.29006 0.388 0.000 0.000 0.608 0.004
#> SRR1362597 2 0.0000 0.82129 0.000 1.000 0.000 0.000 0.000
#> SRR1328464 5 0.1270 0.90083 0.000 0.052 0.000 0.000 0.948
#> SRR1323957 4 0.0162 0.84255 0.000 0.000 0.000 0.996 0.004
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0146 0.8908 0.996 0.000 0.000 0.000 0.000 NA
#> SRR1093410 1 0.0146 0.8908 0.996 0.000 0.000 0.000 0.000 NA
#> SRR1380523 2 0.0363 0.6465 0.000 0.988 0.000 0.000 0.000 NA
#> SRR1089106 5 0.2913 0.6965 0.000 0.000 0.004 0.180 0.812 NA
#> SRR1401403 1 0.0146 0.8908 0.996 0.000 0.000 0.000 0.000 NA
#> SRR1080534 5 0.1480 0.7738 0.000 0.000 0.000 0.020 0.940 NA
#> SRR1487638 2 0.3446 0.3462 0.000 0.692 0.308 0.000 0.000 NA
#> SRR1320650 2 0.4141 0.6034 0.000 0.740 0.092 0.000 0.000 NA
#> SRR1073045 2 0.5065 0.5373 0.000 0.568 0.092 0.000 0.000 NA
#> SRR1397030 2 0.3607 0.6274 0.000 0.796 0.092 0.000 0.000 NA
#> SRR1439976 4 0.2955 0.8274 0.000 0.000 0.004 0.816 0.172 NA
#> SRR1454050 3 0.3198 0.7661 0.000 0.260 0.740 0.000 0.000 NA
#> SRR1070286 5 0.1148 0.7714 0.000 0.000 0.004 0.020 0.960 NA
#> SRR1344185 2 0.5105 0.5346 0.000 0.564 0.096 0.000 0.000 NA
#> SRR1084228 2 0.1714 0.6368 0.000 0.908 0.092 0.000 0.000 NA
#> SRR1101907 2 0.4518 0.5773 0.000 0.696 0.104 0.000 0.000 NA
#> SRR1079686 3 0.3843 0.4509 0.000 0.452 0.548 0.000 0.000 NA
#> SRR1089761 5 0.5153 0.7247 0.000 0.024 0.168 0.072 0.708 NA
#> SRR811403 3 0.3244 0.7654 0.000 0.268 0.732 0.000 0.000 NA
#> SRR1440560 3 0.6590 0.1369 0.000 0.080 0.524 0.072 0.300 NA
#> SRR1079706 5 0.4288 0.5923 0.000 0.000 0.016 0.012 0.644 NA
#> SRR1459101 5 0.4042 0.7666 0.000 0.012 0.096 0.072 0.800 NA
#> SRR1335089 5 0.3851 0.7659 0.000 0.000 0.096 0.072 0.804 NA
#> SRR1337840 4 0.2426 0.8237 0.000 0.000 0.012 0.884 0.012 NA
#> SRR808682 2 0.3277 0.6321 0.000 0.824 0.092 0.000 0.000 NA
#> SRR1443224 3 0.3244 0.7654 0.000 0.268 0.732 0.000 0.000 NA
#> SRR1439831 1 0.0000 0.8912 1.000 0.000 0.000 0.000 0.000 NA
#> SRR1087463 5 0.3821 0.7636 0.000 0.000 0.100 0.072 0.804 NA
#> SRR1457949 2 0.5216 0.5126 0.000 0.484 0.092 0.000 0.000 NA
#> SRR1455969 2 0.5105 0.5346 0.000 0.564 0.096 0.000 0.000 NA
#> SRR1415529 5 0.2432 0.7716 0.000 0.000 0.020 0.072 0.892 NA
#> SRR1330018 2 0.0146 0.6473 0.000 0.996 0.000 0.000 0.000 NA
#> SRR1370597 5 0.3763 0.6697 0.000 0.000 0.012 0.012 0.736 NA
#> SRR1385524 2 0.3607 0.6274 0.000 0.796 0.092 0.000 0.000 NA
#> SRR1351605 4 0.2955 0.8274 0.000 0.000 0.004 0.816 0.172 NA
#> SRR1460148 1 0.0000 0.8912 1.000 0.000 0.000 0.000 0.000 NA
#> SRR1354159 3 0.5446 0.5777 0.000 0.144 0.636 0.024 0.196 NA
#> SRR1318390 3 0.3996 0.7233 0.000 0.204 0.752 0.028 0.008 NA
#> SRR1073095 2 0.1434 0.6287 0.000 0.940 0.048 0.000 0.000 NA
#> SRR1410612 2 0.1434 0.6287 0.000 0.940 0.048 0.000 0.000 NA
#> SRR1076892 1 0.0000 0.8912 1.000 0.000 0.000 0.000 0.000 NA
#> SRR1340989 5 0.3851 0.7634 0.000 0.000 0.096 0.072 0.804 NA
#> SRR1481375 2 0.5105 0.5346 0.000 0.564 0.096 0.000 0.000 NA
#> SRR1079356 5 0.5316 0.4883 0.000 0.000 0.092 0.012 0.580 NA
#> SRR1455545 4 0.2955 0.8274 0.000 0.000 0.004 0.816 0.172 NA
#> SRR1406157 1 0.3592 0.6332 0.740 0.000 0.000 0.240 0.020 NA
#> SRR1445920 2 0.1434 0.6287 0.000 0.940 0.048 0.000 0.000 NA
#> SRR1420259 2 0.5485 0.4943 0.000 0.460 0.096 0.000 0.008 NA
#> SRR1376963 3 0.4599 0.7269 0.000 0.236 0.696 0.052 0.008 NA
#> SRR1101061 1 0.0000 0.8912 1.000 0.000 0.000 0.000 0.000 NA
#> SRR1414496 2 0.0937 0.6378 0.000 0.960 0.040 0.000 0.000 NA
#> SRR1334791 1 0.0000 0.8912 1.000 0.000 0.000 0.000 0.000 NA
#> SRR1072129 2 0.1734 0.6237 0.000 0.932 0.004 0.048 0.008 NA
#> SRR1330450 5 0.3851 0.7634 0.000 0.000 0.096 0.072 0.804 NA
#> SRR1409108 3 0.3330 0.7530 0.000 0.284 0.716 0.000 0.000 NA
#> SRR1416865 5 0.2361 0.7396 0.000 0.000 0.004 0.012 0.880 NA
#> SRR1071832 5 0.2114 0.7701 0.000 0.000 0.012 0.076 0.904 NA
#> SRR1093814 3 0.3221 0.7665 0.000 0.264 0.736 0.000 0.000 NA
#> SRR1381821 5 0.5532 0.4466 0.000 0.000 0.100 0.012 0.520 NA
#> SRR811675 5 0.5316 0.4883 0.000 0.000 0.092 0.012 0.580 NA
#> SRR1082423 1 0.0146 0.8908 0.996 0.000 0.000 0.000 0.000 NA
#> SRR1417296 2 0.4143 0.4150 0.000 0.736 0.204 0.052 0.008 NA
#> SRR815944 5 0.5917 0.2476 0.000 0.104 0.364 0.024 0.504 NA
#> SRR1332775 5 0.5077 0.6466 0.000 0.044 0.116 0.012 0.724 NA
#> SRR1079143 5 0.4303 0.7523 0.000 0.004 0.132 0.072 0.768 NA
#> SRR1476807 4 0.2426 0.8237 0.000 0.000 0.012 0.884 0.012 NA
#> SRR1456634 4 0.4350 0.7365 0.108 0.000 0.012 0.768 0.012 NA
#> SRR1083171 3 0.3833 0.4659 0.000 0.444 0.556 0.000 0.000 NA
#> SRR1083337 1 0.2653 0.7923 0.868 0.000 0.000 0.100 0.004 NA
#> SRR1377672 5 0.3962 0.7628 0.000 0.004 0.100 0.072 0.800 NA
#> SRR1435816 5 0.5651 0.5570 0.000 0.124 0.120 0.000 0.660 NA
#> SRR1080580 5 0.1988 0.7725 0.000 0.004 0.008 0.072 0.912 NA
#> SRR1366672 2 0.5259 0.5016 0.000 0.468 0.096 0.000 0.000 NA
#> SRR1075150 2 0.3376 0.6300 0.000 0.816 0.092 0.000 0.000 NA
#> SRR814137 4 0.3329 0.7750 0.000 0.000 0.004 0.768 0.220 NA
#> SRR1475062 1 0.0000 0.8912 1.000 0.000 0.000 0.000 0.000 NA
#> SRR1340028 1 0.3213 0.7697 0.820 0.000 0.000 0.132 0.000 NA
#> SRR1070789 2 0.1219 0.6320 0.000 0.948 0.048 0.000 0.000 NA
#> SRR1097728 2 0.6722 0.3773 0.000 0.400 0.104 0.000 0.104 NA
#> SRR1447172 2 0.1462 0.6205 0.000 0.936 0.000 0.056 0.008 NA
#> SRR1472486 2 0.6880 0.3770 0.000 0.492 0.108 0.000 0.192 NA
#> SRR1377881 1 0.0000 0.8912 1.000 0.000 0.000 0.000 0.000 NA
#> SRR1420912 5 0.2207 0.7721 0.000 0.000 0.016 0.076 0.900 NA
#> SRR1313747 2 0.3706 -0.1475 0.000 0.620 0.380 0.000 0.000 NA
#> SRR1414447 5 0.3774 0.7642 0.000 0.000 0.096 0.072 0.808 NA
#> SRR1358238 4 0.1524 0.8398 0.000 0.000 0.000 0.932 0.060 NA
#> SRR1322115 5 0.3943 0.7238 0.092 0.000 0.004 0.084 0.800 NA
#> SRR1330474 4 0.4306 0.7410 0.104 0.000 0.012 0.772 0.012 NA
#> SRR1093124 1 0.5084 0.3649 0.568 0.000 0.000 0.360 0.012 NA
#> SRR1456354 4 0.2482 0.8381 0.000 0.000 0.004 0.848 0.148 NA
#> SRR820859 5 0.1152 0.7612 0.000 0.000 0.004 0.000 0.952 NA
#> SRR1401860 5 0.2374 0.7761 0.000 0.016 0.004 0.048 0.904 NA
#> SRR1095599 5 0.4758 0.6703 0.000 0.028 0.120 0.012 0.744 NA
#> SRR1417130 1 0.5302 0.0939 0.472 0.000 0.000 0.448 0.012 NA
#> SRR1362597 2 0.1957 0.6320 0.000 0.888 0.000 0.000 0.000 NA
#> SRR1328464 5 0.5126 0.6455 0.000 0.048 0.120 0.008 0.716 NA
#> SRR1323957 4 0.2426 0.8237 0.000 0.000 0.012 0.884 0.012 NA
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 17633 rows and 97 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 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.835 0.901 0.959 0.4878 0.514 0.514
#> 3 3 0.809 0.859 0.941 0.3341 0.768 0.577
#> 4 4 0.756 0.832 0.922 0.0864 0.917 0.771
#> 5 5 0.722 0.743 0.851 0.0958 0.897 0.662
#> 6 6 0.735 0.645 0.822 0.0507 0.955 0.803
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
#> SRR1397242 1 0.0000 0.968 1.000 0.000
#> SRR1093410 1 0.0000 0.968 1.000 0.000
#> SRR1380523 2 0.0000 0.945 0.000 1.000
#> SRR1089106 1 0.0000 0.968 1.000 0.000
#> SRR1401403 1 0.0000 0.968 1.000 0.000
#> SRR1080534 1 0.2043 0.939 0.968 0.032
#> SRR1487638 2 0.0000 0.945 0.000 1.000
#> SRR1320650 2 0.0000 0.945 0.000 1.000
#> SRR1073045 2 0.0000 0.945 0.000 1.000
#> SRR1397030 2 0.0000 0.945 0.000 1.000
#> SRR1439976 1 0.0000 0.968 1.000 0.000
#> SRR1454050 2 0.0000 0.945 0.000 1.000
#> SRR1070286 1 0.0000 0.968 1.000 0.000
#> SRR1344185 2 0.0000 0.945 0.000 1.000
#> SRR1084228 2 0.0000 0.945 0.000 1.000
#> SRR1101907 2 0.0000 0.945 0.000 1.000
#> SRR1079686 2 0.0000 0.945 0.000 1.000
#> SRR1089761 2 0.0000 0.945 0.000 1.000
#> SRR811403 2 0.0000 0.945 0.000 1.000
#> SRR1440560 2 0.0000 0.945 0.000 1.000
#> SRR1079706 2 0.8813 0.594 0.300 0.700
#> SRR1459101 2 0.8267 0.658 0.260 0.740
#> SRR1335089 2 0.9000 0.565 0.316 0.684
#> SRR1337840 1 0.0000 0.968 1.000 0.000
#> SRR808682 2 0.0000 0.945 0.000 1.000
#> SRR1443224 2 0.0000 0.945 0.000 1.000
#> SRR1439831 1 0.0000 0.968 1.000 0.000
#> SRR1087463 2 0.9209 0.527 0.336 0.664
#> SRR1457949 2 0.0000 0.945 0.000 1.000
#> SRR1455969 2 0.0000 0.945 0.000 1.000
#> SRR1415529 1 0.7056 0.746 0.808 0.192
#> SRR1330018 2 0.0000 0.945 0.000 1.000
#> SRR1370597 2 0.0000 0.945 0.000 1.000
#> SRR1385524 2 0.0000 0.945 0.000 1.000
#> SRR1351605 1 0.0000 0.968 1.000 0.000
#> SRR1460148 1 0.0000 0.968 1.000 0.000
#> SRR1354159 2 0.0000 0.945 0.000 1.000
#> SRR1318390 2 0.0000 0.945 0.000 1.000
#> SRR1073095 2 0.0000 0.945 0.000 1.000
#> SRR1410612 2 0.0000 0.945 0.000 1.000
#> SRR1076892 1 0.0000 0.968 1.000 0.000
#> SRR1340989 2 0.9170 0.535 0.332 0.668
#> SRR1481375 2 0.0000 0.945 0.000 1.000
#> SRR1079356 1 0.0000 0.968 1.000 0.000
#> SRR1455545 1 0.0000 0.968 1.000 0.000
#> SRR1406157 1 0.0000 0.968 1.000 0.000
#> SRR1445920 2 0.0000 0.945 0.000 1.000
#> SRR1420259 2 0.0000 0.945 0.000 1.000
#> SRR1376963 2 0.0000 0.945 0.000 1.000
#> SRR1101061 1 0.0000 0.968 1.000 0.000
#> SRR1414496 2 0.0000 0.945 0.000 1.000
#> SRR1334791 1 0.0000 0.968 1.000 0.000
#> SRR1072129 2 0.0000 0.945 0.000 1.000
#> SRR1330450 2 0.9427 0.476 0.360 0.640
#> SRR1409108 2 0.0000 0.945 0.000 1.000
#> SRR1416865 2 0.6712 0.771 0.176 0.824
#> SRR1071832 1 0.0672 0.961 0.992 0.008
#> SRR1093814 2 0.0000 0.945 0.000 1.000
#> SRR1381821 1 0.9580 0.350 0.620 0.380
#> SRR811675 1 0.0000 0.968 1.000 0.000
#> SRR1082423 1 0.0000 0.968 1.000 0.000
#> SRR1417296 2 0.0000 0.945 0.000 1.000
#> SRR815944 2 0.0000 0.945 0.000 1.000
#> SRR1332775 2 0.0000 0.945 0.000 1.000
#> SRR1079143 2 0.0000 0.945 0.000 1.000
#> SRR1476807 1 0.0000 0.968 1.000 0.000
#> SRR1456634 1 0.0000 0.968 1.000 0.000
#> SRR1083171 2 0.0000 0.945 0.000 1.000
#> SRR1083337 1 0.0000 0.968 1.000 0.000
#> SRR1377672 2 0.9522 0.448 0.372 0.628
#> SRR1435816 2 0.0000 0.945 0.000 1.000
#> SRR1080580 1 0.8661 0.576 0.712 0.288
#> SRR1366672 2 0.0000 0.945 0.000 1.000
#> SRR1075150 2 0.0000 0.945 0.000 1.000
#> SRR814137 1 0.0000 0.968 1.000 0.000
#> SRR1475062 1 0.0000 0.968 1.000 0.000
#> SRR1340028 1 0.0000 0.968 1.000 0.000
#> SRR1070789 2 0.0000 0.945 0.000 1.000
#> SRR1097728 2 0.0000 0.945 0.000 1.000
#> SRR1447172 2 0.0000 0.945 0.000 1.000
#> SRR1472486 2 0.0000 0.945 0.000 1.000
#> SRR1377881 1 0.0000 0.968 1.000 0.000
#> SRR1420912 2 0.9909 0.249 0.444 0.556
#> SRR1313747 2 0.0000 0.945 0.000 1.000
#> SRR1414447 2 0.0000 0.945 0.000 1.000
#> SRR1358238 1 0.0000 0.968 1.000 0.000
#> SRR1322115 1 0.0000 0.968 1.000 0.000
#> SRR1330474 1 0.0000 0.968 1.000 0.000
#> SRR1093124 1 0.0000 0.968 1.000 0.000
#> SRR1456354 1 0.0000 0.968 1.000 0.000
#> SRR820859 1 0.0000 0.968 1.000 0.000
#> SRR1401860 1 0.7528 0.709 0.784 0.216
#> SRR1095599 2 0.0000 0.945 0.000 1.000
#> SRR1417130 1 0.0000 0.968 1.000 0.000
#> SRR1362597 2 0.0000 0.945 0.000 1.000
#> SRR1328464 2 0.0000 0.945 0.000 1.000
#> SRR1323957 1 0.0000 0.968 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1089106 3 0.0000 0.889 0.000 0.000 1.000
#> SRR1401403 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1080534 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1487638 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1320650 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1073045 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1397030 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1439976 3 0.0747 0.884 0.016 0.000 0.984
#> SRR1454050 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1070286 3 0.0000 0.889 0.000 0.000 1.000
#> SRR1344185 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1084228 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1101907 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1079686 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1089761 3 0.3192 0.824 0.000 0.112 0.888
#> SRR811403 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1440560 2 0.6168 0.289 0.000 0.588 0.412
#> SRR1079706 3 0.0747 0.885 0.000 0.016 0.984
#> SRR1459101 2 0.3116 0.840 0.108 0.892 0.000
#> SRR1335089 3 0.0000 0.889 0.000 0.000 1.000
#> SRR1337840 1 0.0592 0.929 0.988 0.000 0.012
#> SRR808682 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1443224 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1439831 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1087463 3 0.1964 0.866 0.000 0.056 0.944
#> SRR1457949 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1455969 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1415529 3 0.1989 0.867 0.048 0.004 0.948
#> SRR1330018 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1370597 3 0.0592 0.887 0.000 0.012 0.988
#> SRR1385524 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1351605 1 0.4750 0.721 0.784 0.000 0.216
#> SRR1460148 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1354159 2 0.6244 0.196 0.000 0.560 0.440
#> SRR1318390 2 0.1753 0.906 0.000 0.952 0.048
#> SRR1073095 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1340989 3 0.4920 0.802 0.052 0.108 0.840
#> SRR1481375 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1079356 3 0.0000 0.889 0.000 0.000 1.000
#> SRR1455545 3 0.6062 0.356 0.384 0.000 0.616
#> SRR1406157 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1420259 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1376963 2 0.6225 0.200 0.000 0.568 0.432
#> SRR1101061 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1330450 3 0.0000 0.889 0.000 0.000 1.000
#> SRR1409108 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1416865 3 0.0000 0.889 0.000 0.000 1.000
#> SRR1071832 3 0.0237 0.888 0.004 0.000 0.996
#> SRR1093814 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1381821 3 0.0000 0.889 0.000 0.000 1.000
#> SRR811675 3 0.1289 0.876 0.032 0.000 0.968
#> SRR1082423 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.951 0.000 1.000 0.000
#> SRR815944 2 0.1031 0.930 0.000 0.976 0.024
#> SRR1332775 3 0.3752 0.798 0.000 0.144 0.856
#> SRR1079143 3 0.6180 0.261 0.000 0.416 0.584
#> SRR1476807 1 0.2711 0.874 0.912 0.000 0.088
#> SRR1456634 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1083171 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1083337 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1377672 2 0.7420 0.184 0.036 0.544 0.420
#> SRR1435816 2 0.0592 0.941 0.012 0.988 0.000
#> SRR1080580 1 0.4750 0.688 0.784 0.216 0.000
#> SRR1366672 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1075150 2 0.0000 0.951 0.000 1.000 0.000
#> SRR814137 3 0.4002 0.765 0.160 0.000 0.840
#> SRR1475062 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1097728 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1447172 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1472486 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1377881 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1420912 3 0.0000 0.889 0.000 0.000 1.000
#> SRR1313747 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1414447 3 0.0000 0.889 0.000 0.000 1.000
#> SRR1358238 1 0.3879 0.809 0.848 0.000 0.152
#> SRR1322115 1 0.6062 0.361 0.616 0.000 0.384
#> SRR1330474 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1456354 1 0.3619 0.827 0.864 0.000 0.136
#> SRR820859 3 0.5138 0.641 0.252 0.000 0.748
#> SRR1401860 1 0.4750 0.688 0.784 0.216 0.000
#> SRR1095599 3 0.4842 0.709 0.000 0.224 0.776
#> SRR1417130 1 0.0000 0.936 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.951 0.000 1.000 0.000
#> SRR1328464 3 0.4974 0.690 0.000 0.236 0.764
#> SRR1323957 1 0.2356 0.887 0.928 0.000 0.072
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1089106 3 0.4898 0.2601 0.000 0.000 0.584 0.416
#> SRR1401403 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1080534 1 0.0188 0.9153 0.996 0.000 0.004 0.000
#> SRR1487638 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1320650 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1073045 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1397030 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1439976 4 0.3542 0.7759 0.120 0.000 0.028 0.852
#> SRR1454050 2 0.3024 0.8562 0.000 0.852 0.000 0.148
#> SRR1070286 3 0.0000 0.8899 0.000 0.000 1.000 0.000
#> SRR1344185 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1084228 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1101907 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1079686 2 0.0188 0.9402 0.000 0.996 0.000 0.004
#> SRR1089761 4 0.7526 0.0965 0.000 0.200 0.332 0.468
#> SRR811403 2 0.2760 0.8721 0.000 0.872 0.000 0.128
#> SRR1440560 2 0.4585 0.5926 0.000 0.668 0.000 0.332
#> SRR1079706 3 0.0000 0.8899 0.000 0.000 1.000 0.000
#> SRR1459101 2 0.2179 0.9077 0.012 0.924 0.000 0.064
#> SRR1335089 3 0.3636 0.7504 0.000 0.008 0.820 0.172
#> SRR1337840 4 0.3528 0.7449 0.192 0.000 0.000 0.808
#> SRR808682 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1443224 2 0.2469 0.8866 0.000 0.892 0.000 0.108
#> SRR1439831 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1087463 3 0.5815 0.5789 0.000 0.140 0.708 0.152
#> SRR1457949 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1455969 2 0.0188 0.9402 0.000 0.996 0.000 0.004
#> SRR1415529 4 0.0000 0.7822 0.000 0.000 0.000 1.000
#> SRR1330018 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1370597 3 0.0000 0.8899 0.000 0.000 1.000 0.000
#> SRR1385524 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1351605 4 0.0000 0.7822 0.000 0.000 0.000 1.000
#> SRR1460148 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1354159 2 0.2469 0.8887 0.000 0.892 0.000 0.108
#> SRR1318390 2 0.3266 0.8380 0.000 0.832 0.000 0.168
#> SRR1073095 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1410612 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1076892 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1340989 4 0.4284 0.5841 0.000 0.224 0.012 0.764
#> SRR1481375 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1079356 3 0.0000 0.8899 0.000 0.000 1.000 0.000
#> SRR1455545 4 0.3074 0.7758 0.152 0.000 0.000 0.848
#> SRR1406157 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1420259 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1376963 2 0.3266 0.8380 0.000 0.832 0.000 0.168
#> SRR1101061 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1334791 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1330450 3 0.4776 0.4959 0.000 0.000 0.624 0.376
#> SRR1409108 2 0.2814 0.8695 0.000 0.868 0.000 0.132
#> SRR1416865 3 0.0000 0.8899 0.000 0.000 1.000 0.000
#> SRR1071832 4 0.0000 0.7822 0.000 0.000 0.000 1.000
#> SRR1093814 2 0.2973 0.8599 0.000 0.856 0.000 0.144
#> SRR1381821 3 0.0000 0.8899 0.000 0.000 1.000 0.000
#> SRR811675 3 0.0000 0.8899 0.000 0.000 1.000 0.000
#> SRR1082423 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1417296 2 0.2469 0.8859 0.000 0.892 0.000 0.108
#> SRR815944 2 0.3764 0.7805 0.000 0.784 0.000 0.216
#> SRR1332775 3 0.0000 0.8899 0.000 0.000 1.000 0.000
#> SRR1079143 4 0.4406 0.4926 0.000 0.300 0.000 0.700
#> SRR1476807 4 0.3528 0.7447 0.192 0.000 0.000 0.808
#> SRR1456634 1 0.4679 0.3653 0.648 0.000 0.000 0.352
#> SRR1083171 2 0.0188 0.9402 0.000 0.996 0.000 0.004
#> SRR1083337 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1377672 4 0.1302 0.7623 0.000 0.044 0.000 0.956
#> SRR1435816 2 0.5365 0.5638 0.264 0.692 0.044 0.000
#> SRR1080580 1 0.2996 0.8050 0.892 0.064 0.000 0.044
#> SRR1366672 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1075150 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR814137 4 0.0188 0.7832 0.004 0.000 0.000 0.996
#> SRR1475062 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1070789 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1097728 2 0.0188 0.9402 0.000 0.996 0.000 0.004
#> SRR1447172 2 0.0000 0.9413 0.000 1.000 0.000 0.000
#> SRR1472486 2 0.0707 0.9295 0.000 0.980 0.020 0.000
#> SRR1377881 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1420912 3 0.2647 0.8138 0.000 0.000 0.880 0.120
#> SRR1313747 2 0.2973 0.8597 0.000 0.856 0.000 0.144
#> SRR1414447 4 0.2011 0.7353 0.000 0.000 0.080 0.920
#> SRR1358238 4 0.3074 0.7758 0.152 0.000 0.000 0.848
#> SRR1322115 1 0.4746 0.4068 0.632 0.000 0.368 0.000
#> SRR1330474 1 0.4790 0.2899 0.620 0.000 0.000 0.380
#> SRR1093124 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1456354 4 0.2760 0.7848 0.128 0.000 0.000 0.872
#> SRR820859 3 0.2081 0.8224 0.084 0.000 0.916 0.000
#> SRR1401860 1 0.3569 0.6777 0.804 0.196 0.000 0.000
#> SRR1095599 3 0.0000 0.8899 0.000 0.000 1.000 0.000
#> SRR1417130 1 0.0000 0.9184 1.000 0.000 0.000 0.000
#> SRR1362597 2 0.0188 0.9392 0.000 0.996 0.004 0.000
#> SRR1328464 3 0.0000 0.8899 0.000 0.000 1.000 0.000
#> SRR1323957 4 0.3528 0.7449 0.192 0.000 0.000 0.808
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.2806 0.8360 0.844 0.000 0.152 0.004 0.000
#> SRR1093410 1 0.3048 0.8211 0.820 0.000 0.176 0.004 0.000
#> SRR1380523 2 0.0000 0.8331 0.000 1.000 0.000 0.000 0.000
#> SRR1089106 5 0.4367 0.3011 0.000 0.000 0.004 0.416 0.580
#> SRR1401403 1 0.0000 0.9097 1.000 0.000 0.000 0.000 0.000
#> SRR1080534 1 0.1026 0.8910 0.968 0.000 0.024 0.004 0.004
#> SRR1487638 2 0.1544 0.8077 0.000 0.932 0.068 0.000 0.000
#> SRR1320650 2 0.0510 0.8323 0.000 0.984 0.016 0.000 0.000
#> SRR1073045 2 0.2516 0.7118 0.000 0.860 0.140 0.000 0.000
#> SRR1397030 2 0.4200 0.3496 0.000 0.672 0.320 0.004 0.004
#> SRR1439976 4 0.1299 0.8754 0.012 0.000 0.008 0.960 0.020
#> SRR1454050 3 0.4491 0.8076 0.000 0.328 0.652 0.020 0.000
#> SRR1070286 5 0.3160 0.7635 0.000 0.000 0.188 0.004 0.808
#> SRR1344185 2 0.0404 0.8309 0.000 0.988 0.012 0.000 0.000
#> SRR1084228 2 0.0162 0.8326 0.000 0.996 0.004 0.000 0.000
#> SRR1101907 2 0.0404 0.8309 0.000 0.988 0.012 0.000 0.000
#> SRR1079686 2 0.0404 0.8309 0.000 0.988 0.012 0.000 0.000
#> SRR1089761 3 0.5519 0.6229 0.000 0.128 0.712 0.120 0.040
#> SRR811403 3 0.3857 0.8138 0.000 0.312 0.688 0.000 0.000
#> SRR1440560 3 0.5375 0.6784 0.000 0.136 0.664 0.200 0.000
#> SRR1079706 5 0.0162 0.8470 0.000 0.000 0.000 0.004 0.996
#> SRR1459101 3 0.4924 0.7899 0.060 0.272 0.668 0.000 0.000
#> SRR1335089 5 0.4184 0.6771 0.000 0.004 0.232 0.024 0.740
#> SRR1337840 4 0.0963 0.8818 0.036 0.000 0.000 0.964 0.000
#> SRR808682 2 0.0162 0.8335 0.000 0.996 0.004 0.000 0.000
#> SRR1443224 2 0.4559 -0.4344 0.000 0.512 0.480 0.008 0.000
#> SRR1439831 1 0.0000 0.9097 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.6533 0.5514 0.000 0.060 0.132 0.192 0.616
#> SRR1457949 2 0.0880 0.8202 0.000 0.968 0.032 0.000 0.000
#> SRR1455969 2 0.0451 0.8334 0.004 0.988 0.008 0.000 0.000
#> SRR1415529 4 0.1908 0.8433 0.000 0.000 0.092 0.908 0.000
#> SRR1330018 2 0.0162 0.8326 0.000 0.996 0.004 0.000 0.000
#> SRR1370597 5 0.0162 0.8475 0.000 0.000 0.004 0.000 0.996
#> SRR1385524 2 0.2672 0.7674 0.000 0.872 0.116 0.004 0.008
#> SRR1351605 4 0.0510 0.8778 0.000 0.000 0.016 0.984 0.000
#> SRR1460148 1 0.0000 0.9097 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 2 0.1579 0.8187 0.000 0.944 0.024 0.032 0.000
#> SRR1318390 3 0.3796 0.8188 0.000 0.300 0.700 0.000 0.000
#> SRR1073095 2 0.1270 0.8191 0.000 0.948 0.052 0.000 0.000
#> SRR1410612 2 0.1671 0.8069 0.000 0.924 0.076 0.000 0.000
#> SRR1076892 1 0.0000 0.9097 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.4887 0.4962 0.000 0.044 0.668 0.284 0.004
#> SRR1481375 2 0.2329 0.7510 0.000 0.876 0.124 0.000 0.000
#> SRR1079356 5 0.0451 0.8468 0.000 0.000 0.008 0.004 0.988
#> SRR1455545 4 0.1153 0.8821 0.024 0.000 0.008 0.964 0.004
#> SRR1406157 1 0.0000 0.9097 1.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.2230 0.7728 0.000 0.884 0.116 0.000 0.000
#> SRR1420259 2 0.2392 0.7829 0.000 0.888 0.104 0.004 0.004
#> SRR1376963 3 0.4382 0.8185 0.000 0.288 0.688 0.024 0.000
#> SRR1101061 1 0.0000 0.9097 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.4291 -0.2630 0.000 0.536 0.464 0.000 0.000
#> SRR1334791 1 0.0000 0.9097 1.000 0.000 0.000 0.000 0.000
#> SRR1072129 3 0.4074 0.7432 0.000 0.364 0.636 0.000 0.000
#> SRR1330450 5 0.6027 0.1917 0.000 0.004 0.100 0.420 0.476
#> SRR1409108 3 0.3990 0.8182 0.000 0.308 0.688 0.004 0.000
#> SRR1416865 5 0.0865 0.8440 0.000 0.000 0.024 0.004 0.972
#> SRR1071832 4 0.3305 0.7079 0.000 0.000 0.224 0.776 0.000
#> SRR1093814 3 0.4456 0.8124 0.000 0.320 0.660 0.020 0.000
#> SRR1381821 5 0.0162 0.8471 0.000 0.000 0.000 0.004 0.996
#> SRR811675 5 0.0162 0.8471 0.000 0.000 0.000 0.004 0.996
#> SRR1082423 1 0.0000 0.9097 1.000 0.000 0.000 0.000 0.000
#> SRR1417296 3 0.4161 0.8158 0.000 0.280 0.704 0.000 0.016
#> SRR815944 2 0.6287 -0.0821 0.000 0.536 0.240 0.224 0.000
#> SRR1332775 5 0.0324 0.8474 0.000 0.000 0.004 0.004 0.992
#> SRR1079143 4 0.5716 0.3395 0.000 0.144 0.240 0.616 0.000
#> SRR1476807 4 0.1800 0.8718 0.048 0.000 0.020 0.932 0.000
#> SRR1456634 4 0.3366 0.6935 0.232 0.000 0.000 0.768 0.000
#> SRR1083171 2 0.0404 0.8309 0.000 0.988 0.012 0.000 0.000
#> SRR1083337 1 0.0000 0.9097 1.000 0.000 0.000 0.000 0.000
#> SRR1377672 4 0.2488 0.8139 0.000 0.004 0.124 0.872 0.000
#> SRR1435816 2 0.6763 0.4443 0.056 0.600 0.196 0.004 0.144
#> SRR1080580 1 0.5884 0.5229 0.528 0.072 0.388 0.012 0.000
#> SRR1366672 2 0.0000 0.8331 0.000 1.000 0.000 0.000 0.000
#> SRR1075150 2 0.0963 0.8285 0.000 0.964 0.036 0.000 0.000
#> SRR814137 4 0.0290 0.8782 0.000 0.000 0.008 0.992 0.000
#> SRR1475062 1 0.0000 0.9097 1.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.3266 0.8040 0.796 0.000 0.200 0.004 0.000
#> SRR1070789 2 0.0290 0.8329 0.000 0.992 0.008 0.000 0.000
#> SRR1097728 3 0.4074 0.7416 0.000 0.364 0.636 0.000 0.000
#> SRR1447172 2 0.0703 0.8295 0.000 0.976 0.024 0.000 0.000
#> SRR1472486 2 0.3944 0.6143 0.000 0.768 0.200 0.000 0.032
#> SRR1377881 1 0.0000 0.9097 1.000 0.000 0.000 0.000 0.000
#> SRR1420912 5 0.3442 0.7798 0.000 0.000 0.060 0.104 0.836
#> SRR1313747 3 0.4419 0.8186 0.000 0.312 0.668 0.020 0.000
#> SRR1414447 3 0.4817 0.3576 0.000 0.000 0.656 0.300 0.044
#> SRR1358238 4 0.1041 0.8827 0.032 0.000 0.004 0.964 0.000
#> SRR1322115 1 0.4286 0.4532 0.652 0.000 0.004 0.004 0.340
#> SRR1330474 1 0.2561 0.7766 0.856 0.000 0.000 0.144 0.000
#> SRR1093124 1 0.0162 0.9082 0.996 0.000 0.000 0.004 0.000
#> SRR1456354 4 0.0771 0.8839 0.020 0.000 0.004 0.976 0.000
#> SRR820859 5 0.3105 0.7945 0.088 0.000 0.044 0.004 0.864
#> SRR1401860 1 0.5185 0.6192 0.672 0.228 0.100 0.000 0.000
#> SRR1095599 5 0.1041 0.8397 0.000 0.000 0.032 0.004 0.964
#> SRR1417130 1 0.0162 0.9077 0.996 0.000 0.000 0.004 0.000
#> SRR1362597 2 0.4219 0.4911 0.000 0.716 0.264 0.004 0.016
#> SRR1328464 5 0.2629 0.7945 0.000 0.000 0.136 0.004 0.860
#> SRR1323957 4 0.0963 0.8818 0.036 0.000 0.000 0.964 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.3634 0.3723 0.644 0.000 0.000 0.000 0.000 0.356
#> SRR1093410 1 0.3634 0.3676 0.644 0.000 0.000 0.000 0.000 0.356
#> SRR1380523 2 0.0692 0.8359 0.000 0.976 0.020 0.000 0.000 0.004
#> SRR1089106 5 0.6114 0.1213 0.000 0.000 0.032 0.396 0.448 0.124
#> SRR1401403 1 0.0260 0.8394 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1080534 1 0.1036 0.8092 0.964 0.000 0.008 0.000 0.004 0.024
#> SRR1487638 2 0.2412 0.8115 0.000 0.880 0.092 0.000 0.000 0.028
#> SRR1320650 2 0.1867 0.8319 0.000 0.916 0.020 0.000 0.000 0.064
#> SRR1073045 2 0.1531 0.8145 0.000 0.928 0.004 0.000 0.000 0.068
#> SRR1397030 2 0.4839 0.5106 0.000 0.624 0.300 0.000 0.004 0.072
#> SRR1439976 4 0.2959 0.6902 0.000 0.000 0.008 0.852 0.036 0.104
#> SRR1454050 3 0.1845 0.7371 0.000 0.072 0.916 0.008 0.000 0.004
#> SRR1070286 5 0.2879 0.6794 0.000 0.000 0.004 0.004 0.816 0.176
#> SRR1344185 2 0.1714 0.8069 0.000 0.908 0.000 0.000 0.000 0.092
#> SRR1084228 2 0.0717 0.8308 0.000 0.976 0.008 0.000 0.000 0.016
#> SRR1101907 2 0.1285 0.8201 0.000 0.944 0.004 0.000 0.000 0.052
#> SRR1079686 2 0.2537 0.7939 0.000 0.872 0.032 0.000 0.000 0.096
#> SRR1089761 3 0.5382 0.4457 0.000 0.008 0.668 0.052 0.064 0.208
#> SRR811403 3 0.2629 0.7216 0.000 0.060 0.872 0.000 0.000 0.068
#> SRR1440560 3 0.3226 0.6784 0.000 0.020 0.836 0.116 0.000 0.028
#> SRR1079706 5 0.1349 0.7565 0.000 0.000 0.000 0.004 0.940 0.056
#> SRR1459101 3 0.4069 0.6728 0.068 0.060 0.796 0.000 0.000 0.076
#> SRR1335089 5 0.6159 -0.0542 0.000 0.000 0.348 0.004 0.396 0.252
#> SRR1337840 4 0.0692 0.7664 0.020 0.000 0.000 0.976 0.000 0.004
#> SRR808682 2 0.1225 0.8356 0.000 0.952 0.012 0.000 0.000 0.036
#> SRR1443224 3 0.4853 0.5075 0.000 0.292 0.628 0.004 0.000 0.076
#> SRR1439831 1 0.0000 0.8436 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.6907 0.3191 0.000 0.016 0.212 0.104 0.532 0.136
#> SRR1457949 2 0.3512 0.6620 0.000 0.740 0.008 0.004 0.000 0.248
#> SRR1455969 2 0.2144 0.8114 0.040 0.908 0.004 0.000 0.000 0.048
#> SRR1415529 4 0.4740 0.5424 0.000 0.000 0.108 0.664 0.000 0.228
#> SRR1330018 2 0.0291 0.8326 0.000 0.992 0.004 0.000 0.000 0.004
#> SRR1370597 5 0.1082 0.7665 0.000 0.000 0.000 0.004 0.956 0.040
#> SRR1385524 2 0.3231 0.8126 0.000 0.848 0.052 0.000 0.024 0.076
#> SRR1351605 4 0.0363 0.7670 0.000 0.000 0.012 0.988 0.000 0.000
#> SRR1460148 1 0.0000 0.8436 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 2 0.4152 0.7066 0.000 0.764 0.148 0.016 0.000 0.072
#> SRR1318390 3 0.2511 0.7279 0.000 0.064 0.880 0.000 0.000 0.056
#> SRR1073095 2 0.2179 0.8286 0.000 0.900 0.036 0.000 0.000 0.064
#> SRR1410612 2 0.2433 0.8230 0.000 0.884 0.044 0.000 0.000 0.072
#> SRR1076892 1 0.0000 0.8436 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.2315 0.6926 0.000 0.008 0.892 0.084 0.000 0.016
#> SRR1481375 2 0.5810 0.0154 0.000 0.436 0.380 0.000 0.000 0.184
#> SRR1079356 5 0.2039 0.7514 0.000 0.000 0.016 0.004 0.908 0.072
#> SRR1455545 4 0.0870 0.7630 0.004 0.000 0.000 0.972 0.012 0.012
#> SRR1406157 1 0.0000 0.8436 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.2905 0.8112 0.000 0.852 0.084 0.000 0.000 0.064
#> SRR1420259 2 0.4909 0.6830 0.000 0.680 0.144 0.000 0.008 0.168
#> SRR1376963 3 0.2825 0.7235 0.000 0.064 0.868 0.008 0.000 0.060
#> SRR1101061 1 0.0000 0.8436 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 3 0.4962 0.1854 0.000 0.416 0.516 0.000 0.000 0.068
#> SRR1334791 1 0.0000 0.8436 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 3 0.4626 0.5362 0.000 0.272 0.652 0.000 0.000 0.076
#> SRR1330450 4 0.7695 -0.0195 0.000 0.012 0.136 0.332 0.316 0.204
#> SRR1409108 3 0.1829 0.7383 0.000 0.064 0.920 0.004 0.000 0.012
#> SRR1416865 5 0.2169 0.7490 0.000 0.000 0.012 0.008 0.900 0.080
#> SRR1071832 4 0.5195 0.3308 0.000 0.000 0.360 0.540 0.000 0.100
#> SRR1093814 3 0.3444 0.7078 0.000 0.124 0.816 0.008 0.000 0.052
#> SRR1381821 5 0.0405 0.7690 0.000 0.000 0.000 0.008 0.988 0.004
#> SRR811675 5 0.0717 0.7677 0.000 0.000 0.000 0.008 0.976 0.016
#> SRR1082423 1 0.0000 0.8436 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1417296 3 0.2011 0.7378 0.000 0.064 0.912 0.000 0.004 0.020
#> SRR815944 3 0.7156 0.1110 0.000 0.160 0.380 0.340 0.000 0.120
#> SRR1332775 5 0.1124 0.7685 0.000 0.000 0.008 0.000 0.956 0.036
#> SRR1079143 4 0.6148 0.0286 0.000 0.056 0.420 0.436 0.000 0.088
#> SRR1476807 4 0.2294 0.7447 0.036 0.000 0.000 0.892 0.000 0.072
#> SRR1456634 4 0.2432 0.6994 0.100 0.000 0.000 0.876 0.000 0.024
#> SRR1083171 2 0.1411 0.8189 0.000 0.936 0.004 0.000 0.000 0.060
#> SRR1083337 1 0.0146 0.8417 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1377672 4 0.2609 0.7142 0.000 0.000 0.096 0.868 0.000 0.036
#> SRR1435816 2 0.6566 0.0320 0.008 0.400 0.024 0.000 0.188 0.380
#> SRR1080580 6 0.5494 0.0000 0.184 0.028 0.120 0.004 0.004 0.660
#> SRR1366672 2 0.1838 0.8332 0.000 0.916 0.016 0.000 0.000 0.068
#> SRR1075150 2 0.1802 0.8312 0.000 0.916 0.012 0.000 0.000 0.072
#> SRR814137 4 0.0260 0.7673 0.000 0.000 0.008 0.992 0.000 0.000
#> SRR1475062 1 0.0000 0.8436 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.3672 0.3383 0.632 0.000 0.000 0.000 0.000 0.368
#> SRR1070789 2 0.0508 0.8338 0.000 0.984 0.012 0.000 0.000 0.004
#> SRR1097728 3 0.4455 0.5535 0.000 0.044 0.724 0.004 0.020 0.208
#> SRR1447172 2 0.1265 0.8365 0.000 0.948 0.044 0.000 0.000 0.008
#> SRR1472486 2 0.3672 0.7376 0.000 0.780 0.036 0.000 0.008 0.176
#> SRR1377881 1 0.0000 0.8436 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 5 0.4383 0.6696 0.000 0.000 0.036 0.056 0.752 0.156
#> SRR1313747 3 0.1900 0.7363 0.000 0.068 0.916 0.008 0.000 0.008
#> SRR1414447 3 0.3409 0.6278 0.000 0.000 0.808 0.144 0.004 0.044
#> SRR1358238 4 0.0547 0.7664 0.020 0.000 0.000 0.980 0.000 0.000
#> SRR1322115 1 0.5825 0.1190 0.548 0.000 0.016 0.008 0.316 0.112
#> SRR1330474 1 0.2454 0.6420 0.840 0.000 0.000 0.160 0.000 0.000
#> SRR1093124 1 0.0405 0.8368 0.988 0.000 0.000 0.004 0.000 0.008
#> SRR1456354 4 0.3546 0.6555 0.012 0.000 0.016 0.776 0.000 0.196
#> SRR820859 5 0.4247 0.6760 0.032 0.000 0.036 0.008 0.768 0.156
#> SRR1401860 1 0.5276 0.2111 0.604 0.188 0.000 0.000 0.000 0.208
#> SRR1095599 5 0.2771 0.6995 0.000 0.000 0.032 0.000 0.852 0.116
#> SRR1417130 1 0.0000 0.8436 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1362597 2 0.5154 0.5935 0.000 0.652 0.240 0.000 0.028 0.080
#> SRR1328464 3 0.5666 0.1286 0.000 0.000 0.500 0.004 0.352 0.144
#> SRR1323957 4 0.0692 0.7664 0.020 0.000 0.000 0.976 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["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 17633 rows and 97 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'MAD' method.
#> Subgroups are detected by 'hclust' method.
#> Performed in total 1250 partitions by row resampling.
#> Best k for subgroups seems to be 2.
#>
#> Following methods can be applied to this 'ConsensusPartition' object:
#> [1] "cola_report" "collect_classes" "collect_plots"
#> [4] "collect_stats" "colnames" "compare_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.All the plots in panels can be made by individual functions and they are plotted later in this section.
select_partition_number()
produces several plots showing different
statistics for choosing “optimized” k
. There are following statistics:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower PAC score, higher mean silhouette score or higher
concordance corresponds to better partition. Rand index and Jaccard index
measure how similar the current partition is compared to partition with k-1
.
If they are too similar, we won't accept k
is better than k-1
.
select_partition_number(res)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 0.539 0.854 0.910 0.4724 0.514 0.514
#> 3 3 0.648 0.757 0.880 0.3845 0.821 0.652
#> 4 4 0.664 0.694 0.828 0.1100 0.934 0.809
#> 5 5 0.663 0.591 0.728 0.0739 0.876 0.597
#> 6 6 0.723 0.632 0.750 0.0513 0.937 0.714
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
#> SRR1397242 1 0.0000 0.962 1.000 0.000
#> SRR1093410 1 0.0000 0.962 1.000 0.000
#> SRR1380523 2 0.0000 0.857 0.000 1.000
#> SRR1089106 1 0.0000 0.962 1.000 0.000
#> SRR1401403 1 0.0000 0.962 1.000 0.000
#> SRR1080534 1 0.5519 0.845 0.872 0.128
#> SRR1487638 2 0.0000 0.857 0.000 1.000
#> SRR1320650 2 0.0672 0.859 0.008 0.992
#> SRR1073045 2 0.4690 0.857 0.100 0.900
#> SRR1397030 2 0.3733 0.862 0.072 0.928
#> SRR1439976 1 0.0000 0.962 1.000 0.000
#> SRR1454050 2 0.0000 0.857 0.000 1.000
#> SRR1070286 1 0.1633 0.950 0.976 0.024
#> SRR1344185 2 0.7139 0.821 0.196 0.804
#> SRR1084228 2 0.3114 0.863 0.056 0.944
#> SRR1101907 2 0.3114 0.863 0.056 0.944
#> SRR1079686 2 0.1414 0.862 0.020 0.980
#> SRR1089761 2 0.8144 0.778 0.252 0.748
#> SRR811403 2 0.1633 0.862 0.024 0.976
#> SRR1440560 2 0.4161 0.860 0.084 0.916
#> SRR1079706 2 0.9996 0.310 0.488 0.512
#> SRR1459101 2 0.8608 0.744 0.284 0.716
#> SRR1335089 2 0.9983 0.347 0.476 0.524
#> SRR1337840 1 0.0000 0.962 1.000 0.000
#> SRR808682 2 0.0000 0.857 0.000 1.000
#> SRR1443224 2 0.2043 0.863 0.032 0.968
#> SRR1439831 1 0.0000 0.962 1.000 0.000
#> SRR1087463 2 0.9170 0.676 0.332 0.668
#> SRR1457949 2 0.6712 0.831 0.176 0.824
#> SRR1455969 2 0.5059 0.854 0.112 0.888
#> SRR1415529 1 0.5408 0.849 0.876 0.124
#> SRR1330018 2 0.0000 0.857 0.000 1.000
#> SRR1370597 2 0.7815 0.797 0.232 0.768
#> SRR1385524 2 0.0000 0.857 0.000 1.000
#> SRR1351605 1 0.2236 0.943 0.964 0.036
#> SRR1460148 1 0.0000 0.962 1.000 0.000
#> SRR1354159 2 0.7219 0.820 0.200 0.800
#> SRR1318390 2 0.1633 0.862 0.024 0.976
#> SRR1073095 2 0.0000 0.857 0.000 1.000
#> SRR1410612 2 0.0000 0.857 0.000 1.000
#> SRR1076892 1 0.0000 0.962 1.000 0.000
#> SRR1340989 2 0.8608 0.744 0.284 0.716
#> SRR1481375 2 0.7745 0.800 0.228 0.772
#> SRR1079356 1 0.3114 0.927 0.944 0.056
#> SRR1455545 1 0.0000 0.962 1.000 0.000
#> SRR1406157 1 0.0000 0.962 1.000 0.000
#> SRR1445920 2 0.0000 0.857 0.000 1.000
#> SRR1420259 2 0.7299 0.817 0.204 0.796
#> SRR1376963 2 0.2043 0.863 0.032 0.968
#> SRR1101061 1 0.0000 0.962 1.000 0.000
#> SRR1414496 2 0.0000 0.857 0.000 1.000
#> SRR1334791 1 0.0000 0.962 1.000 0.000
#> SRR1072129 2 0.0000 0.857 0.000 1.000
#> SRR1330450 2 0.9170 0.676 0.332 0.668
#> SRR1409108 2 0.0000 0.857 0.000 1.000
#> SRR1416865 2 0.9996 0.310 0.488 0.512
#> SRR1071832 1 0.5408 0.849 0.876 0.124
#> SRR1093814 2 0.3274 0.863 0.060 0.940
#> SRR1381821 1 0.8016 0.627 0.756 0.244
#> SRR811675 1 0.3114 0.927 0.944 0.056
#> SRR1082423 1 0.0000 0.962 1.000 0.000
#> SRR1417296 2 0.0000 0.857 0.000 1.000
#> SRR815944 2 0.8608 0.744 0.284 0.716
#> SRR1332775 2 0.7219 0.819 0.200 0.800
#> SRR1079143 2 0.8713 0.734 0.292 0.708
#> SRR1476807 1 0.0000 0.962 1.000 0.000
#> SRR1456634 1 0.0000 0.962 1.000 0.000
#> SRR1083171 2 0.0000 0.857 0.000 1.000
#> SRR1083337 1 0.0000 0.962 1.000 0.000
#> SRR1377672 2 0.8608 0.744 0.284 0.716
#> SRR1435816 2 0.7376 0.815 0.208 0.792
#> SRR1080580 1 0.5519 0.845 0.872 0.128
#> SRR1366672 2 0.3733 0.862 0.072 0.928
#> SRR1075150 2 0.0938 0.860 0.012 0.988
#> SRR814137 1 0.2236 0.943 0.964 0.036
#> SRR1475062 1 0.0000 0.962 1.000 0.000
#> SRR1340028 1 0.0000 0.962 1.000 0.000
#> SRR1070789 2 0.0000 0.857 0.000 1.000
#> SRR1097728 2 0.7674 0.803 0.224 0.776
#> SRR1447172 2 0.0000 0.857 0.000 1.000
#> SRR1472486 2 0.4562 0.858 0.096 0.904
#> SRR1377881 1 0.0000 0.962 1.000 0.000
#> SRR1420912 2 0.9427 0.638 0.360 0.640
#> SRR1313747 2 0.0000 0.857 0.000 1.000
#> SRR1414447 2 0.7745 0.800 0.228 0.772
#> SRR1358238 1 0.0000 0.962 1.000 0.000
#> SRR1322115 1 0.2423 0.940 0.960 0.040
#> SRR1330474 1 0.0000 0.962 1.000 0.000
#> SRR1093124 1 0.0000 0.962 1.000 0.000
#> SRR1456354 1 0.0000 0.962 1.000 0.000
#> SRR820859 1 0.2423 0.940 0.960 0.040
#> SRR1401860 1 0.5519 0.845 0.872 0.128
#> SRR1095599 2 0.7299 0.817 0.204 0.796
#> SRR1417130 1 0.0000 0.962 1.000 0.000
#> SRR1362597 2 0.0000 0.857 0.000 1.000
#> SRR1328464 2 0.7674 0.803 0.224 0.776
#> SRR1323957 1 0.0000 0.962 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.841 0.000 1.000 0.000
#> SRR1089106 1 0.0747 0.905 0.984 0.000 0.016
#> SRR1401403 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1080534 1 0.5948 0.588 0.640 0.000 0.360
#> SRR1487638 2 0.4178 0.761 0.000 0.828 0.172
#> SRR1320650 2 0.6045 0.389 0.000 0.620 0.380
#> SRR1073045 3 0.4750 0.702 0.000 0.216 0.784
#> SRR1397030 3 0.6095 0.400 0.000 0.392 0.608
#> SRR1439976 1 0.0747 0.905 0.984 0.000 0.016
#> SRR1454050 2 0.4346 0.752 0.000 0.816 0.184
#> SRR1070286 1 0.1529 0.894 0.960 0.000 0.040
#> SRR1344185 3 0.2878 0.806 0.000 0.096 0.904
#> SRR1084228 3 0.6168 0.297 0.000 0.412 0.588
#> SRR1101907 3 0.5678 0.549 0.000 0.316 0.684
#> SRR1079686 2 0.6204 0.283 0.000 0.576 0.424
#> SRR1089761 3 0.1411 0.812 0.000 0.036 0.964
#> SRR811403 2 0.5327 0.655 0.000 0.728 0.272
#> SRR1440560 3 0.6309 -0.116 0.000 0.500 0.500
#> SRR1079706 3 0.5158 0.587 0.232 0.004 0.764
#> SRR1459101 3 0.1337 0.805 0.012 0.016 0.972
#> SRR1335089 3 0.5247 0.608 0.224 0.008 0.768
#> SRR1337840 1 0.0000 0.909 1.000 0.000 0.000
#> SRR808682 2 0.0424 0.841 0.000 0.992 0.008
#> SRR1443224 2 0.5397 0.651 0.000 0.720 0.280
#> SRR1439831 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1087463 3 0.2280 0.782 0.052 0.008 0.940
#> SRR1457949 3 0.3267 0.794 0.000 0.116 0.884
#> SRR1455969 3 0.4399 0.727 0.000 0.188 0.812
#> SRR1415529 1 0.4974 0.735 0.764 0.000 0.236
#> SRR1330018 2 0.0424 0.841 0.000 0.992 0.008
#> SRR1370597 3 0.2301 0.817 0.004 0.060 0.936
#> SRR1385524 2 0.1031 0.837 0.000 0.976 0.024
#> SRR1351605 1 0.1860 0.888 0.948 0.000 0.052
#> SRR1460148 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1354159 3 0.6008 0.346 0.000 0.372 0.628
#> SRR1318390 2 0.5327 0.655 0.000 0.728 0.272
#> SRR1073095 2 0.0000 0.841 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.841 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1340989 3 0.1337 0.805 0.012 0.016 0.972
#> SRR1481375 3 0.2165 0.816 0.000 0.064 0.936
#> SRR1079356 1 0.5678 0.653 0.684 0.000 0.316
#> SRR1455545 1 0.0747 0.905 0.984 0.000 0.016
#> SRR1406157 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.841 0.000 1.000 0.000
#> SRR1420259 3 0.2711 0.810 0.000 0.088 0.912
#> SRR1376963 2 0.5254 0.674 0.000 0.736 0.264
#> SRR1101061 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.841 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.841 0.000 1.000 0.000
#> SRR1330450 3 0.2280 0.782 0.052 0.008 0.940
#> SRR1409108 2 0.0747 0.840 0.000 0.984 0.016
#> SRR1416865 3 0.5158 0.587 0.232 0.004 0.764
#> SRR1071832 1 0.4974 0.735 0.764 0.000 0.236
#> SRR1093814 2 0.6126 0.407 0.000 0.600 0.400
#> SRR1381821 1 0.6521 0.227 0.500 0.004 0.496
#> SRR811675 1 0.5678 0.653 0.684 0.000 0.316
#> SRR1082423 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.841 0.000 1.000 0.000
#> SRR815944 3 0.1337 0.805 0.012 0.016 0.972
#> SRR1332775 3 0.2711 0.812 0.000 0.088 0.912
#> SRR1079143 3 0.1015 0.800 0.012 0.008 0.980
#> SRR1476807 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1456634 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1083171 2 0.4346 0.751 0.000 0.816 0.184
#> SRR1083337 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1377672 3 0.1337 0.805 0.012 0.016 0.972
#> SRR1435816 3 0.2537 0.813 0.000 0.080 0.920
#> SRR1080580 1 0.5948 0.588 0.640 0.000 0.360
#> SRR1366672 3 0.6095 0.400 0.000 0.392 0.608
#> SRR1075150 2 0.5760 0.530 0.000 0.672 0.328
#> SRR814137 1 0.1860 0.888 0.948 0.000 0.052
#> SRR1475062 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.841 0.000 1.000 0.000
#> SRR1097728 3 0.2261 0.816 0.000 0.068 0.932
#> SRR1447172 2 0.0000 0.841 0.000 1.000 0.000
#> SRR1472486 3 0.4931 0.683 0.000 0.232 0.768
#> SRR1377881 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1420912 3 0.2356 0.765 0.072 0.000 0.928
#> SRR1313747 2 0.0892 0.839 0.000 0.980 0.020
#> SRR1414447 3 0.2066 0.815 0.000 0.060 0.940
#> SRR1358238 1 0.0747 0.905 0.984 0.000 0.016
#> SRR1322115 1 0.5327 0.709 0.728 0.000 0.272
#> SRR1330474 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1456354 1 0.0747 0.905 0.984 0.000 0.016
#> SRR820859 1 0.5327 0.709 0.728 0.000 0.272
#> SRR1401860 1 0.5948 0.588 0.640 0.000 0.360
#> SRR1095599 3 0.2711 0.810 0.000 0.088 0.912
#> SRR1417130 1 0.0000 0.909 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.841 0.000 1.000 0.000
#> SRR1328464 3 0.2261 0.816 0.000 0.068 0.932
#> SRR1323957 1 0.0000 0.909 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0188 0.8595 0.996 0.000 0.000 0.004
#> SRR1093410 1 0.0188 0.8595 0.996 0.000 0.000 0.004
#> SRR1380523 2 0.0524 0.8083 0.000 0.988 0.004 0.008
#> SRR1089106 1 0.4564 0.6610 0.672 0.000 0.000 0.328
#> SRR1401403 1 0.0188 0.8595 0.996 0.000 0.000 0.004
#> SRR1080534 4 0.4841 0.8942 0.080 0.000 0.140 0.780
#> SRR1487638 2 0.4599 0.6847 0.000 0.736 0.248 0.016
#> SRR1320650 2 0.5488 0.2465 0.000 0.532 0.452 0.016
#> SRR1073045 3 0.3032 0.7078 0.000 0.124 0.868 0.008
#> SRR1397030 3 0.4820 0.4526 0.000 0.296 0.692 0.012
#> SRR1439976 1 0.4564 0.6610 0.672 0.000 0.000 0.328
#> SRR1454050 2 0.4868 0.6735 0.000 0.720 0.256 0.024
#> SRR1070286 1 0.4776 0.5997 0.624 0.000 0.000 0.376
#> SRR1344185 3 0.0779 0.7617 0.000 0.016 0.980 0.004
#> SRR1084228 3 0.5069 0.3870 0.000 0.320 0.664 0.016
#> SRR1101907 3 0.4327 0.5969 0.000 0.216 0.768 0.016
#> SRR1079686 3 0.5511 -0.1717 0.000 0.484 0.500 0.016
#> SRR1089761 3 0.1474 0.7531 0.000 0.000 0.948 0.052
#> SRR811403 2 0.5331 0.5773 0.000 0.644 0.332 0.024
#> SRR1440560 3 0.5681 0.0301 0.000 0.404 0.568 0.028
#> SRR1079706 3 0.5281 0.1686 0.008 0.000 0.528 0.464
#> SRR1459101 3 0.3024 0.7125 0.000 0.000 0.852 0.148
#> SRR1335089 3 0.5277 0.1940 0.008 0.000 0.532 0.460
#> SRR1337840 1 0.1389 0.8484 0.952 0.000 0.000 0.048
#> SRR808682 2 0.0804 0.8100 0.000 0.980 0.012 0.008
#> SRR1443224 2 0.5420 0.5563 0.000 0.624 0.352 0.024
#> SRR1439831 1 0.0188 0.8595 0.996 0.000 0.000 0.004
#> SRR1087463 3 0.3837 0.6574 0.000 0.000 0.776 0.224
#> SRR1457949 3 0.1022 0.7573 0.000 0.032 0.968 0.000
#> SRR1455969 3 0.2676 0.7279 0.000 0.092 0.896 0.012
#> SRR1415529 1 0.7201 0.2943 0.496 0.000 0.148 0.356
#> SRR1330018 2 0.1545 0.8077 0.000 0.952 0.040 0.008
#> SRR1370597 3 0.1867 0.7494 0.000 0.000 0.928 0.072
#> SRR1385524 2 0.1452 0.8084 0.000 0.956 0.036 0.008
#> SRR1351605 1 0.4790 0.5988 0.620 0.000 0.000 0.380
#> SRR1460148 1 0.0188 0.8595 0.996 0.000 0.000 0.004
#> SRR1354159 3 0.5792 0.3763 0.000 0.296 0.648 0.056
#> SRR1318390 2 0.5331 0.5773 0.000 0.644 0.332 0.024
#> SRR1073095 2 0.0707 0.8037 0.000 0.980 0.000 0.020
#> SRR1410612 2 0.0707 0.8037 0.000 0.980 0.000 0.020
#> SRR1076892 1 0.0188 0.8595 0.996 0.000 0.000 0.004
#> SRR1340989 3 0.3266 0.7054 0.000 0.000 0.832 0.168
#> SRR1481375 3 0.1004 0.7615 0.000 0.004 0.972 0.024
#> SRR1079356 4 0.3168 0.8914 0.056 0.000 0.060 0.884
#> SRR1455545 1 0.4564 0.6610 0.672 0.000 0.000 0.328
#> SRR1406157 1 0.0000 0.8593 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.0707 0.8037 0.000 0.980 0.000 0.020
#> SRR1420259 3 0.0524 0.7616 0.000 0.008 0.988 0.004
#> SRR1376963 2 0.5349 0.5840 0.000 0.640 0.336 0.024
#> SRR1101061 1 0.0188 0.8595 0.996 0.000 0.000 0.004
#> SRR1414496 2 0.0707 0.8037 0.000 0.980 0.000 0.020
#> SRR1334791 1 0.0188 0.8595 0.996 0.000 0.000 0.004
#> SRR1072129 2 0.0707 0.8037 0.000 0.980 0.000 0.020
#> SRR1330450 3 0.3837 0.6575 0.000 0.000 0.776 0.224
#> SRR1409108 2 0.1975 0.8044 0.000 0.936 0.048 0.016
#> SRR1416865 3 0.5281 0.1686 0.008 0.000 0.528 0.464
#> SRR1071832 1 0.7201 0.2943 0.496 0.000 0.148 0.356
#> SRR1093814 2 0.5693 0.2829 0.000 0.504 0.472 0.024
#> SRR1381821 4 0.5256 0.6532 0.036 0.000 0.272 0.692
#> SRR811675 4 0.3168 0.8914 0.056 0.000 0.060 0.884
#> SRR1082423 1 0.0188 0.8595 0.996 0.000 0.000 0.004
#> SRR1417296 2 0.0336 0.8071 0.000 0.992 0.000 0.008
#> SRR815944 3 0.2973 0.7153 0.000 0.000 0.856 0.144
#> SRR1332775 3 0.1297 0.7641 0.000 0.020 0.964 0.016
#> SRR1079143 3 0.3400 0.6942 0.000 0.000 0.820 0.180
#> SRR1476807 1 0.1389 0.8484 0.952 0.000 0.000 0.048
#> SRR1456634 1 0.1389 0.8484 0.952 0.000 0.000 0.048
#> SRR1083171 2 0.4690 0.6718 0.000 0.724 0.260 0.016
#> SRR1083337 1 0.0188 0.8595 0.996 0.000 0.000 0.004
#> SRR1377672 3 0.3219 0.7079 0.000 0.000 0.836 0.164
#> SRR1435816 3 0.0657 0.7621 0.000 0.004 0.984 0.012
#> SRR1080580 4 0.4841 0.8942 0.080 0.000 0.140 0.780
#> SRR1366672 3 0.4820 0.4526 0.000 0.296 0.692 0.012
#> SRR1075150 2 0.5387 0.4162 0.000 0.584 0.400 0.016
#> SRR814137 1 0.4790 0.5988 0.620 0.000 0.000 0.380
#> SRR1475062 1 0.0188 0.8595 0.996 0.000 0.000 0.004
#> SRR1340028 1 0.0000 0.8593 1.000 0.000 0.000 0.000
#> SRR1070789 2 0.0672 0.8090 0.000 0.984 0.008 0.008
#> SRR1097728 3 0.0895 0.7619 0.000 0.004 0.976 0.020
#> SRR1447172 2 0.0707 0.8037 0.000 0.980 0.000 0.020
#> SRR1472486 3 0.3249 0.6953 0.000 0.140 0.852 0.008
#> SRR1377881 1 0.0188 0.8595 0.996 0.000 0.000 0.004
#> SRR1420912 3 0.4103 0.6303 0.000 0.000 0.744 0.256
#> SRR1313747 2 0.2174 0.8024 0.000 0.928 0.052 0.020
#> SRR1414447 3 0.3161 0.7422 0.000 0.012 0.864 0.124
#> SRR1358238 1 0.4564 0.6610 0.672 0.000 0.000 0.328
#> SRR1322115 4 0.3858 0.8823 0.100 0.000 0.056 0.844
#> SRR1330474 1 0.1389 0.8484 0.952 0.000 0.000 0.048
#> SRR1093124 1 0.0336 0.8592 0.992 0.000 0.000 0.008
#> SRR1456354 1 0.4072 0.7277 0.748 0.000 0.000 0.252
#> SRR820859 4 0.3858 0.8823 0.100 0.000 0.056 0.844
#> SRR1401860 4 0.4841 0.8942 0.080 0.000 0.140 0.780
#> SRR1095599 3 0.0524 0.7616 0.000 0.008 0.988 0.004
#> SRR1417130 1 0.0000 0.8593 1.000 0.000 0.000 0.000
#> SRR1362597 2 0.0779 0.8067 0.000 0.980 0.004 0.016
#> SRR1328464 3 0.0895 0.7619 0.000 0.004 0.976 0.020
#> SRR1323957 1 0.1389 0.8484 0.952 0.000 0.000 0.048
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.3395 0.9897 0.764 0.000 0.000 0.236 0.000
#> SRR1093410 1 0.3395 0.9897 0.764 0.000 0.000 0.236 0.000
#> SRR1380523 2 0.0566 0.7950 0.004 0.984 0.012 0.000 0.000
#> SRR1089106 4 0.1341 0.7472 0.056 0.000 0.000 0.944 0.000
#> SRR1401403 1 0.3395 0.9897 0.764 0.000 0.000 0.236 0.000
#> SRR1080534 5 0.6596 0.5745 0.148 0.000 0.032 0.252 0.568
#> SRR1487638 2 0.5117 0.6178 0.072 0.652 0.276 0.000 0.000
#> SRR1320650 3 0.5507 -0.2500 0.064 0.456 0.480 0.000 0.000
#> SRR1073045 3 0.2069 0.6199 0.012 0.076 0.912 0.000 0.000
#> SRR1397030 3 0.4141 0.3981 0.024 0.248 0.728 0.000 0.000
#> SRR1439976 4 0.1341 0.7472 0.056 0.000 0.000 0.944 0.000
#> SRR1454050 2 0.5522 0.6110 0.076 0.640 0.272 0.000 0.012
#> SRR1070286 4 0.0898 0.7227 0.008 0.000 0.000 0.972 0.020
#> SRR1344185 3 0.1484 0.6245 0.000 0.008 0.944 0.000 0.048
#> SRR1084228 3 0.4693 0.3940 0.056 0.244 0.700 0.000 0.000
#> SRR1101907 3 0.3803 0.5503 0.056 0.140 0.804 0.000 0.000
#> SRR1079686 3 0.5499 -0.1055 0.056 0.408 0.532 0.000 0.004
#> SRR1089761 3 0.4088 0.4301 0.008 0.000 0.688 0.000 0.304
#> SRR811403 2 0.5836 0.4784 0.076 0.564 0.348 0.000 0.012
#> SRR1440560 3 0.6268 0.1688 0.064 0.336 0.560 0.004 0.036
#> SRR1079706 5 0.2921 0.4793 0.004 0.000 0.148 0.004 0.844
#> SRR1459101 3 0.4870 0.1525 0.016 0.000 0.532 0.004 0.448
#> SRR1335089 5 0.2848 0.4708 0.000 0.000 0.156 0.004 0.840
#> SRR1337840 4 0.4060 0.3776 0.360 0.000 0.000 0.640 0.000
#> SRR808682 2 0.0771 0.7955 0.004 0.976 0.020 0.000 0.000
#> SRR1443224 2 0.5890 0.4688 0.076 0.544 0.368 0.000 0.012
#> SRR1439831 1 0.3395 0.9897 0.764 0.000 0.000 0.236 0.000
#> SRR1087463 5 0.4874 0.0804 0.016 0.000 0.388 0.008 0.588
#> SRR1457949 3 0.1281 0.6280 0.000 0.012 0.956 0.000 0.032
#> SRR1455969 3 0.2228 0.6252 0.016 0.044 0.920 0.000 0.020
#> SRR1415529 4 0.4088 0.5651 0.000 0.000 0.056 0.776 0.168
#> SRR1330018 2 0.2719 0.7836 0.048 0.884 0.068 0.000 0.000
#> SRR1370597 3 0.3861 0.4880 0.004 0.000 0.712 0.000 0.284
#> SRR1385524 2 0.2260 0.7889 0.028 0.908 0.064 0.000 0.000
#> SRR1351605 4 0.1012 0.7339 0.012 0.000 0.000 0.968 0.020
#> SRR1460148 1 0.3395 0.9897 0.764 0.000 0.000 0.236 0.000
#> SRR1354159 3 0.6842 0.3946 0.064 0.264 0.568 0.004 0.100
#> SRR1318390 2 0.5836 0.4784 0.076 0.564 0.348 0.000 0.012
#> SRR1073095 2 0.1082 0.7845 0.028 0.964 0.000 0.000 0.008
#> SRR1410612 2 0.1082 0.7845 0.028 0.964 0.000 0.000 0.008
#> SRR1076892 1 0.3395 0.9897 0.764 0.000 0.000 0.236 0.000
#> SRR1340989 3 0.5182 0.1153 0.016 0.000 0.504 0.016 0.464
#> SRR1481375 3 0.2583 0.5940 0.004 0.000 0.864 0.000 0.132
#> SRR1079356 5 0.5864 0.5327 0.120 0.000 0.000 0.320 0.560
#> SRR1455545 4 0.1341 0.7472 0.056 0.000 0.000 0.944 0.000
#> SRR1406157 1 0.3424 0.9853 0.760 0.000 0.000 0.240 0.000
#> SRR1445920 2 0.1082 0.7845 0.028 0.964 0.000 0.000 0.008
#> SRR1420259 3 0.1282 0.6224 0.000 0.004 0.952 0.000 0.044
#> SRR1376963 2 0.5848 0.5015 0.076 0.560 0.352 0.000 0.012
#> SRR1101061 1 0.3395 0.9897 0.764 0.000 0.000 0.236 0.000
#> SRR1414496 2 0.1082 0.7845 0.028 0.964 0.000 0.000 0.008
#> SRR1334791 1 0.3395 0.9897 0.764 0.000 0.000 0.236 0.000
#> SRR1072129 2 0.1082 0.7845 0.028 0.964 0.000 0.000 0.008
#> SRR1330450 5 0.4965 0.0843 0.016 0.000 0.384 0.012 0.588
#> SRR1409108 2 0.3110 0.7759 0.060 0.860 0.080 0.000 0.000
#> SRR1416865 5 0.2921 0.4793 0.004 0.000 0.148 0.004 0.844
#> SRR1071832 4 0.4088 0.5651 0.000 0.000 0.056 0.776 0.168
#> SRR1093814 3 0.5982 -0.1869 0.076 0.424 0.488 0.000 0.012
#> SRR1381821 5 0.5842 0.5901 0.104 0.000 0.072 0.128 0.696
#> SRR811675 5 0.5864 0.5327 0.120 0.000 0.000 0.320 0.560
#> SRR1082423 1 0.3395 0.9897 0.764 0.000 0.000 0.236 0.000
#> SRR1417296 2 0.1772 0.7946 0.020 0.940 0.032 0.000 0.008
#> SRR815944 3 0.4806 0.2091 0.016 0.000 0.572 0.004 0.408
#> SRR1332775 3 0.4001 0.5654 0.008 0.020 0.768 0.000 0.204
#> SRR1079143 5 0.5152 -0.0518 0.016 0.000 0.432 0.016 0.536
#> SRR1476807 4 0.4030 0.3944 0.352 0.000 0.000 0.648 0.000
#> SRR1456634 4 0.4060 0.3776 0.360 0.000 0.000 0.640 0.000
#> SRR1083171 2 0.5179 0.6024 0.072 0.640 0.288 0.000 0.000
#> SRR1083337 1 0.3395 0.9897 0.764 0.000 0.000 0.236 0.000
#> SRR1377672 3 0.5092 0.1243 0.016 0.000 0.508 0.012 0.464
#> SRR1435816 3 0.1831 0.6147 0.000 0.004 0.920 0.000 0.076
#> SRR1080580 5 0.6596 0.5745 0.148 0.000 0.032 0.252 0.568
#> SRR1366672 3 0.4141 0.3981 0.024 0.248 0.728 0.000 0.000
#> SRR1075150 2 0.5439 0.3283 0.060 0.508 0.432 0.000 0.000
#> SRR814137 4 0.1012 0.7339 0.012 0.000 0.000 0.968 0.020
#> SRR1475062 1 0.3395 0.9897 0.764 0.000 0.000 0.236 0.000
#> SRR1340028 1 0.3424 0.9853 0.760 0.000 0.000 0.240 0.000
#> SRR1070789 2 0.1082 0.7960 0.008 0.964 0.028 0.000 0.000
#> SRR1097728 3 0.2806 0.5874 0.004 0.000 0.844 0.000 0.152
#> SRR1447172 2 0.1082 0.7845 0.028 0.964 0.000 0.000 0.008
#> SRR1472486 3 0.2775 0.6160 0.036 0.076 0.884 0.000 0.004
#> SRR1377881 1 0.3395 0.9897 0.764 0.000 0.000 0.236 0.000
#> SRR1420912 5 0.6120 0.0275 0.020 0.000 0.396 0.076 0.508
#> SRR1313747 2 0.3334 0.7732 0.064 0.852 0.080 0.000 0.004
#> SRR1414447 3 0.5627 0.2475 0.036 0.004 0.544 0.016 0.400
#> SRR1358238 4 0.1341 0.7472 0.056 0.000 0.000 0.944 0.000
#> SRR1322115 5 0.6234 0.5115 0.160 0.000 0.000 0.332 0.508
#> SRR1330474 4 0.4060 0.3776 0.360 0.000 0.000 0.640 0.000
#> SRR1093124 1 0.3661 0.9283 0.724 0.000 0.000 0.276 0.000
#> SRR1456354 4 0.2424 0.6999 0.132 0.000 0.000 0.868 0.000
#> SRR820859 5 0.6234 0.5115 0.160 0.000 0.000 0.332 0.508
#> SRR1401860 5 0.6596 0.5745 0.148 0.000 0.032 0.252 0.568
#> SRR1095599 3 0.1282 0.6224 0.000 0.004 0.952 0.000 0.044
#> SRR1417130 1 0.3661 0.9297 0.724 0.000 0.000 0.276 0.000
#> SRR1362597 2 0.0566 0.7912 0.012 0.984 0.004 0.000 0.000
#> SRR1328464 3 0.2806 0.5874 0.004 0.000 0.844 0.000 0.152
#> SRR1323957 4 0.4060 0.3776 0.360 0.000 0.000 0.640 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0000 0.9823 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9823 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.1340 0.7348 0.000 0.948 0.000 0.004 0.008 0.040
#> SRR1089106 4 0.3700 0.7387 0.068 0.000 0.000 0.780 0.152 0.000
#> SRR1401403 1 0.0363 0.9753 0.988 0.000 0.000 0.012 0.000 0.000
#> SRR1080534 5 0.3501 0.8844 0.044 0.000 0.128 0.008 0.816 0.004
#> SRR1487638 2 0.6044 0.4987 0.000 0.512 0.000 0.120 0.036 0.332
#> SRR1320650 6 0.4721 0.0601 0.000 0.344 0.000 0.016 0.032 0.608
#> SRR1073045 6 0.2426 0.6246 0.000 0.012 0.092 0.000 0.012 0.884
#> SRR1397030 6 0.3656 0.5493 0.000 0.164 0.048 0.004 0.000 0.784
#> SRR1439976 4 0.3700 0.7387 0.068 0.000 0.000 0.780 0.152 0.000
#> SRR1454050 2 0.6321 0.5179 0.000 0.520 0.012 0.144 0.028 0.296
#> SRR1070286 4 0.4332 0.6672 0.052 0.000 0.000 0.672 0.276 0.000
#> SRR1344185 6 0.2994 0.5914 0.000 0.004 0.208 0.000 0.000 0.788
#> SRR1084228 6 0.4409 0.5177 0.000 0.164 0.040 0.012 0.028 0.756
#> SRR1101907 6 0.3141 0.6113 0.000 0.064 0.052 0.000 0.028 0.856
#> SRR1079686 6 0.5008 0.2012 0.000 0.308 0.016 0.016 0.032 0.628
#> SRR1089761 3 0.4935 -0.1025 0.000 0.000 0.496 0.020 0.028 0.456
#> SRR811403 2 0.6588 0.4003 0.000 0.452 0.020 0.140 0.028 0.360
#> SRR1440560 6 0.7704 0.0763 0.000 0.248 0.172 0.132 0.028 0.420
#> SRR1079706 3 0.4408 0.1728 0.000 0.000 0.560 0.004 0.416 0.020
#> SRR1459101 3 0.2196 0.6733 0.000 0.000 0.884 0.004 0.004 0.108
#> SRR1335089 3 0.4546 0.2083 0.000 0.000 0.572 0.008 0.396 0.024
#> SRR1337840 4 0.3789 0.5486 0.416 0.000 0.000 0.584 0.000 0.000
#> SRR808682 2 0.1542 0.7343 0.000 0.936 0.000 0.004 0.008 0.052
#> SRR1443224 2 0.6918 0.3609 0.000 0.424 0.040 0.144 0.028 0.364
#> SRR1439831 1 0.0000 0.9823 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.2147 0.6553 0.000 0.000 0.896 0.000 0.084 0.020
#> SRR1457949 6 0.2838 0.6025 0.000 0.004 0.188 0.000 0.000 0.808
#> SRR1455969 6 0.2925 0.6190 0.000 0.004 0.148 0.000 0.016 0.832
#> SRR1415529 4 0.6265 0.5506 0.052 0.000 0.208 0.552 0.188 0.000
#> SRR1330018 2 0.3549 0.7024 0.000 0.776 0.000 0.004 0.028 0.192
#> SRR1370597 6 0.6050 0.3008 0.000 0.000 0.344 0.044 0.104 0.508
#> SRR1385524 2 0.3056 0.7109 0.000 0.804 0.000 0.004 0.008 0.184
#> SRR1351605 4 0.4319 0.7222 0.052 0.000 0.028 0.748 0.172 0.000
#> SRR1460148 1 0.0000 0.9823 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.7452 -0.0509 0.000 0.224 0.452 0.140 0.016 0.168
#> SRR1318390 2 0.6588 0.4003 0.000 0.452 0.020 0.140 0.028 0.360
#> SRR1073095 2 0.1657 0.7137 0.000 0.928 0.000 0.056 0.016 0.000
#> SRR1410612 2 0.1657 0.7137 0.000 0.928 0.000 0.056 0.016 0.000
#> SRR1076892 1 0.0000 0.9823 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.1913 0.6830 0.000 0.000 0.908 0.012 0.000 0.080
#> SRR1481375 6 0.4890 0.4602 0.000 0.000 0.316 0.044 0.020 0.620
#> SRR1079356 5 0.2389 0.8836 0.000 0.000 0.052 0.060 0.888 0.000
#> SRR1455545 4 0.3700 0.7387 0.068 0.000 0.000 0.780 0.152 0.000
#> SRR1406157 1 0.0458 0.9725 0.984 0.000 0.000 0.016 0.000 0.000
#> SRR1445920 2 0.1657 0.7137 0.000 0.928 0.000 0.056 0.016 0.000
#> SRR1420259 6 0.2823 0.5885 0.000 0.000 0.204 0.000 0.000 0.796
#> SRR1376963 2 0.6831 0.3889 0.000 0.440 0.036 0.140 0.028 0.356
#> SRR1101061 1 0.0000 0.9823 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.1657 0.7137 0.000 0.928 0.000 0.056 0.016 0.000
#> SRR1334791 1 0.0363 0.9753 0.988 0.000 0.000 0.012 0.000 0.000
#> SRR1072129 2 0.1657 0.7137 0.000 0.928 0.000 0.056 0.016 0.000
#> SRR1330450 3 0.2056 0.6537 0.000 0.000 0.904 0.004 0.080 0.012
#> SRR1409108 2 0.4403 0.6993 0.000 0.748 0.000 0.076 0.024 0.152
#> SRR1416865 3 0.4408 0.1728 0.000 0.000 0.560 0.004 0.416 0.020
#> SRR1071832 4 0.6265 0.5506 0.052 0.000 0.208 0.552 0.188 0.000
#> SRR1093814 6 0.6991 -0.1261 0.000 0.312 0.052 0.144 0.028 0.464
#> SRR1381821 5 0.3889 0.6972 0.000 0.000 0.164 0.016 0.776 0.044
#> SRR811675 5 0.2389 0.8836 0.000 0.000 0.052 0.060 0.888 0.000
#> SRR1082423 1 0.0000 0.9823 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.3156 0.7310 0.000 0.852 0.000 0.056 0.020 0.072
#> SRR815944 3 0.2491 0.6329 0.000 0.000 0.836 0.000 0.000 0.164
#> SRR1332775 6 0.5747 0.4278 0.000 0.008 0.316 0.052 0.052 0.572
#> SRR1079143 3 0.0551 0.6814 0.000 0.000 0.984 0.004 0.004 0.008
#> SRR1476807 4 0.3765 0.5641 0.404 0.000 0.000 0.596 0.000 0.000
#> SRR1456634 4 0.3789 0.5486 0.416 0.000 0.000 0.584 0.000 0.000
#> SRR1083171 2 0.6195 0.4812 0.000 0.492 0.000 0.140 0.036 0.332
#> SRR1083337 1 0.0000 0.9823 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.1866 0.6818 0.000 0.000 0.908 0.008 0.000 0.084
#> SRR1435816 6 0.3368 0.5666 0.000 0.000 0.232 0.000 0.012 0.756
#> SRR1080580 5 0.3501 0.8844 0.044 0.000 0.128 0.008 0.816 0.004
#> SRR1366672 6 0.3656 0.5493 0.000 0.164 0.048 0.004 0.000 0.784
#> SRR1075150 6 0.4444 -0.0851 0.000 0.396 0.000 0.004 0.024 0.576
#> SRR814137 4 0.4319 0.7222 0.052 0.000 0.028 0.748 0.172 0.000
#> SRR1475062 1 0.0000 0.9823 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0146 0.9799 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1070789 2 0.2313 0.7327 0.000 0.884 0.000 0.004 0.012 0.100
#> SRR1097728 6 0.5134 0.4444 0.000 0.000 0.328 0.048 0.028 0.596
#> SRR1447172 2 0.1657 0.7137 0.000 0.928 0.000 0.056 0.016 0.000
#> SRR1472486 6 0.2485 0.6242 0.000 0.008 0.084 0.000 0.024 0.884
#> SRR1377881 1 0.0000 0.9823 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 3 0.1865 0.6529 0.000 0.000 0.920 0.040 0.040 0.000
#> SRR1313747 2 0.4557 0.6934 0.000 0.732 0.000 0.080 0.024 0.164
#> SRR1414447 3 0.4160 0.4553 0.000 0.000 0.684 0.024 0.008 0.284
#> SRR1358238 4 0.3700 0.7387 0.068 0.000 0.000 0.780 0.152 0.000
#> SRR1322115 5 0.3481 0.8860 0.044 0.000 0.052 0.068 0.836 0.000
#> SRR1330474 4 0.3789 0.5486 0.416 0.000 0.000 0.584 0.000 0.000
#> SRR1093124 1 0.1267 0.9201 0.940 0.000 0.000 0.060 0.000 0.000
#> SRR1456354 4 0.3834 0.7358 0.144 0.000 0.000 0.772 0.084 0.000
#> SRR820859 5 0.3481 0.8860 0.044 0.000 0.052 0.068 0.836 0.000
#> SRR1401860 5 0.3501 0.8844 0.044 0.000 0.128 0.008 0.816 0.004
#> SRR1095599 6 0.2823 0.5885 0.000 0.000 0.204 0.000 0.000 0.796
#> SRR1417130 1 0.1765 0.8618 0.904 0.000 0.000 0.096 0.000 0.000
#> SRR1362597 2 0.0665 0.7301 0.000 0.980 0.000 0.004 0.008 0.008
#> SRR1328464 6 0.5134 0.4444 0.000 0.000 0.328 0.048 0.028 0.596
#> SRR1323957 4 0.3789 0.5486 0.416 0.000 0.000 0.584 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 17633 rows and 97 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'MAD' method.
#> Subgroups are detected by 'kmeans' method.
#> Performed in total 1250 partitions by row resampling.
#> Best k for subgroups seems to be 2.
#>
#> Following methods can be applied to this 'ConsensusPartition' object:
#> [1] "cola_report" "collect_classes" "collect_plots"
#> [4] "collect_stats" "colnames" "compare_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.All the plots in panels can be made by individual functions and they are plotted later in this section.
select_partition_number()
produces several plots showing different
statistics for choosing “optimized” k
. There are following statistics:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower PAC score, higher mean silhouette score or higher
concordance corresponds to better partition. Rand index and Jaccard index
measure how similar the current partition is compared to partition with k-1
.
If they are too similar, we won't accept k
is better than k-1
.
select_partition_number(res)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 1.000 0.952 0.980 0.4793 0.514 0.514
#> 3 3 0.792 0.865 0.934 0.3890 0.705 0.483
#> 4 4 0.707 0.597 0.798 0.1130 0.837 0.561
#> 5 5 0.726 0.735 0.827 0.0686 0.817 0.432
#> 6 6 0.797 0.706 0.813 0.0424 0.946 0.757
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
#> SRR1397242 1 0.000 0.957 1.000 0.000
#> SRR1093410 1 0.000 0.957 1.000 0.000
#> SRR1380523 2 0.000 0.993 0.000 1.000
#> SRR1089106 1 0.000 0.957 1.000 0.000
#> SRR1401403 1 0.000 0.957 1.000 0.000
#> SRR1080534 1 0.996 0.183 0.536 0.464
#> SRR1487638 2 0.000 0.993 0.000 1.000
#> SRR1320650 2 0.000 0.993 0.000 1.000
#> SRR1073045 2 0.000 0.993 0.000 1.000
#> SRR1397030 2 0.000 0.993 0.000 1.000
#> SRR1439976 1 0.000 0.957 1.000 0.000
#> SRR1454050 2 0.000 0.993 0.000 1.000
#> SRR1070286 1 0.000 0.957 1.000 0.000
#> SRR1344185 2 0.000 0.993 0.000 1.000
#> SRR1084228 2 0.000 0.993 0.000 1.000
#> SRR1101907 2 0.000 0.993 0.000 1.000
#> SRR1079686 2 0.000 0.993 0.000 1.000
#> SRR1089761 2 0.000 0.993 0.000 1.000
#> SRR811403 2 0.000 0.993 0.000 1.000
#> SRR1440560 2 0.000 0.993 0.000 1.000
#> SRR1079706 2 0.278 0.953 0.048 0.952
#> SRR1459101 2 0.000 0.993 0.000 1.000
#> SRR1335089 2 0.278 0.953 0.048 0.952
#> SRR1337840 1 0.000 0.957 1.000 0.000
#> SRR808682 2 0.000 0.993 0.000 1.000
#> SRR1443224 2 0.000 0.993 0.000 1.000
#> SRR1439831 1 0.000 0.957 1.000 0.000
#> SRR1087463 2 0.278 0.953 0.048 0.952
#> SRR1457949 2 0.000 0.993 0.000 1.000
#> SRR1455969 2 0.000 0.993 0.000 1.000
#> SRR1415529 1 0.697 0.768 0.812 0.188
#> SRR1330018 2 0.000 0.993 0.000 1.000
#> SRR1370597 2 0.000 0.993 0.000 1.000
#> SRR1385524 2 0.000 0.993 0.000 1.000
#> SRR1351605 1 0.000 0.957 1.000 0.000
#> SRR1460148 1 0.000 0.957 1.000 0.000
#> SRR1354159 2 0.000 0.993 0.000 1.000
#> SRR1318390 2 0.000 0.993 0.000 1.000
#> SRR1073095 2 0.000 0.993 0.000 1.000
#> SRR1410612 2 0.000 0.993 0.000 1.000
#> SRR1076892 1 0.000 0.957 1.000 0.000
#> SRR1340989 2 0.204 0.967 0.032 0.968
#> SRR1481375 2 0.000 0.993 0.000 1.000
#> SRR1079356 1 0.000 0.957 1.000 0.000
#> SRR1455545 1 0.000 0.957 1.000 0.000
#> SRR1406157 1 0.000 0.957 1.000 0.000
#> SRR1445920 2 0.000 0.993 0.000 1.000
#> SRR1420259 2 0.000 0.993 0.000 1.000
#> SRR1376963 2 0.000 0.993 0.000 1.000
#> SRR1101061 1 0.000 0.957 1.000 0.000
#> SRR1414496 2 0.000 0.993 0.000 1.000
#> SRR1334791 1 0.000 0.957 1.000 0.000
#> SRR1072129 2 0.000 0.993 0.000 1.000
#> SRR1330450 2 0.278 0.953 0.048 0.952
#> SRR1409108 2 0.000 0.993 0.000 1.000
#> SRR1416865 2 0.278 0.953 0.048 0.952
#> SRR1071832 1 0.184 0.935 0.972 0.028
#> SRR1093814 2 0.000 0.993 0.000 1.000
#> SRR1381821 1 0.996 0.183 0.536 0.464
#> SRR811675 1 0.000 0.957 1.000 0.000
#> SRR1082423 1 0.000 0.957 1.000 0.000
#> SRR1417296 2 0.000 0.993 0.000 1.000
#> SRR815944 2 0.000 0.993 0.000 1.000
#> SRR1332775 2 0.000 0.993 0.000 1.000
#> SRR1079143 2 0.141 0.977 0.020 0.980
#> SRR1476807 1 0.000 0.957 1.000 0.000
#> SRR1456634 1 0.000 0.957 1.000 0.000
#> SRR1083171 2 0.000 0.993 0.000 1.000
#> SRR1083337 1 0.000 0.957 1.000 0.000
#> SRR1377672 2 0.278 0.953 0.048 0.952
#> SRR1435816 2 0.000 0.993 0.000 1.000
#> SRR1080580 1 0.827 0.661 0.740 0.260
#> SRR1366672 2 0.000 0.993 0.000 1.000
#> SRR1075150 2 0.000 0.993 0.000 1.000
#> SRR814137 1 0.000 0.957 1.000 0.000
#> SRR1475062 1 0.000 0.957 1.000 0.000
#> SRR1340028 1 0.000 0.957 1.000 0.000
#> SRR1070789 2 0.000 0.993 0.000 1.000
#> SRR1097728 2 0.000 0.993 0.000 1.000
#> SRR1447172 2 0.000 0.993 0.000 1.000
#> SRR1472486 2 0.000 0.993 0.000 1.000
#> SRR1377881 1 0.000 0.957 1.000 0.000
#> SRR1420912 2 0.278 0.953 0.048 0.952
#> SRR1313747 2 0.000 0.993 0.000 1.000
#> SRR1414447 2 0.000 0.993 0.000 1.000
#> SRR1358238 1 0.000 0.957 1.000 0.000
#> SRR1322115 1 0.000 0.957 1.000 0.000
#> SRR1330474 1 0.000 0.957 1.000 0.000
#> SRR1093124 1 0.000 0.957 1.000 0.000
#> SRR1456354 1 0.000 0.957 1.000 0.000
#> SRR820859 1 0.000 0.957 1.000 0.000
#> SRR1401860 1 0.697 0.768 0.812 0.188
#> SRR1095599 2 0.000 0.993 0.000 1.000
#> SRR1417130 1 0.000 0.957 1.000 0.000
#> SRR1362597 2 0.000 0.993 0.000 1.000
#> SRR1328464 2 0.000 0.993 0.000 1.000
#> SRR1323957 1 0.000 0.957 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1089106 1 0.4605 0.802 0.796 0.000 0.204
#> SRR1401403 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1080534 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1487638 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1320650 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1073045 3 0.5968 0.571 0.000 0.364 0.636
#> SRR1397030 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1439976 1 0.4452 0.814 0.808 0.000 0.192
#> SRR1454050 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1070286 1 0.4555 0.806 0.800 0.000 0.200
#> SRR1344185 3 0.2878 0.819 0.000 0.096 0.904
#> SRR1084228 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1101907 3 0.6280 0.357 0.000 0.460 0.540
#> SRR1079686 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1089761 3 0.0000 0.861 0.000 0.000 1.000
#> SRR811403 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1440560 2 0.6307 -0.244 0.000 0.512 0.488
#> SRR1079706 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1459101 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1335089 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1337840 1 0.0000 0.959 1.000 0.000 0.000
#> SRR808682 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1443224 2 0.0424 0.970 0.000 0.992 0.008
#> SRR1439831 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1087463 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1457949 3 0.5948 0.577 0.000 0.360 0.640
#> SRR1455969 3 0.5905 0.587 0.000 0.352 0.648
#> SRR1415529 3 0.0424 0.857 0.008 0.000 0.992
#> SRR1330018 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1370597 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1385524 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1351605 1 0.4605 0.802 0.796 0.000 0.204
#> SRR1460148 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1354159 3 0.5926 0.559 0.000 0.356 0.644
#> SRR1318390 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1073095 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1340989 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1481375 3 0.5968 0.571 0.000 0.364 0.636
#> SRR1079356 3 0.0424 0.857 0.008 0.000 0.992
#> SRR1455545 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1406157 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1420259 3 0.5968 0.571 0.000 0.364 0.636
#> SRR1376963 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1101061 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1330450 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1409108 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1416865 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1071832 3 0.0424 0.857 0.008 0.000 0.992
#> SRR1093814 2 0.0424 0.970 0.000 0.992 0.008
#> SRR1381821 3 0.0000 0.861 0.000 0.000 1.000
#> SRR811675 3 0.5431 0.479 0.284 0.000 0.716
#> SRR1082423 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.978 0.000 1.000 0.000
#> SRR815944 3 0.1753 0.843 0.000 0.048 0.952
#> SRR1332775 3 0.5968 0.571 0.000 0.364 0.636
#> SRR1079143 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1476807 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1456634 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1083171 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1083337 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1377672 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1435816 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1080580 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1366672 3 0.5968 0.571 0.000 0.364 0.636
#> SRR1075150 2 0.0000 0.978 0.000 1.000 0.000
#> SRR814137 1 0.4750 0.787 0.784 0.000 0.216
#> SRR1475062 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1097728 3 0.4555 0.746 0.000 0.200 0.800
#> SRR1447172 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1472486 3 0.5968 0.571 0.000 0.364 0.636
#> SRR1377881 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1420912 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1313747 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1414447 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1358238 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1322115 1 0.4291 0.825 0.820 0.000 0.180
#> SRR1330474 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1456354 1 0.0000 0.959 1.000 0.000 0.000
#> SRR820859 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1401860 3 0.0000 0.861 0.000 0.000 1.000
#> SRR1095599 3 0.2959 0.817 0.000 0.100 0.900
#> SRR1417130 1 0.0000 0.959 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.978 0.000 1.000 0.000
#> SRR1328464 3 0.4555 0.746 0.000 0.200 0.800
#> SRR1323957 1 0.0000 0.959 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.8035 0.000 1.000 0.000 0.000
#> SRR1089106 4 0.3873 0.4819 0.228 0.000 0.000 0.772
#> SRR1401403 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1080534 4 0.4985 0.1170 0.000 0.000 0.468 0.532
#> SRR1487638 2 0.0592 0.8005 0.000 0.984 0.000 0.016
#> SRR1320650 2 0.5592 0.5449 0.000 0.572 0.404 0.024
#> SRR1073045 3 0.2011 0.6647 0.000 0.080 0.920 0.000
#> SRR1397030 3 0.5693 -0.3668 0.000 0.472 0.504 0.024
#> SRR1439976 4 0.4193 0.4286 0.268 0.000 0.000 0.732
#> SRR1454050 2 0.5792 0.5219 0.000 0.552 0.416 0.032
#> SRR1070286 4 0.4193 0.4286 0.268 0.000 0.000 0.732
#> SRR1344185 3 0.0000 0.6560 0.000 0.000 1.000 0.000
#> SRR1084228 2 0.5592 0.5449 0.000 0.572 0.404 0.024
#> SRR1101907 3 0.3082 0.6320 0.000 0.084 0.884 0.032
#> SRR1079686 2 0.5708 0.5261 0.000 0.556 0.416 0.028
#> SRR1089761 3 0.3801 0.5209 0.000 0.000 0.780 0.220
#> SRR811403 2 0.5766 0.5399 0.000 0.564 0.404 0.032
#> SRR1440560 3 0.4590 0.4709 0.000 0.192 0.772 0.036
#> SRR1079706 4 0.4999 0.0418 0.000 0.000 0.492 0.508
#> SRR1459101 3 0.4866 0.2145 0.000 0.000 0.596 0.404
#> SRR1335089 3 0.4907 0.1766 0.000 0.000 0.580 0.420
#> SRR1337840 1 0.2868 0.8490 0.864 0.000 0.000 0.136
#> SRR808682 2 0.0188 0.8030 0.000 0.996 0.000 0.004
#> SRR1443224 3 0.5861 -0.3819 0.000 0.476 0.492 0.032
#> SRR1439831 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1087463 3 0.4907 0.1766 0.000 0.000 0.580 0.420
#> SRR1457949 3 0.1940 0.6668 0.000 0.076 0.924 0.000
#> SRR1455969 3 0.2197 0.6627 0.000 0.080 0.916 0.004
#> SRR1415529 4 0.2408 0.6171 0.000 0.000 0.104 0.896
#> SRR1330018 2 0.0000 0.8035 0.000 1.000 0.000 0.000
#> SRR1370597 3 0.3764 0.5251 0.000 0.000 0.784 0.216
#> SRR1385524 2 0.0000 0.8035 0.000 1.000 0.000 0.000
#> SRR1351605 4 0.4193 0.4286 0.268 0.000 0.000 0.732
#> SRR1460148 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1354159 3 0.3301 0.6277 0.000 0.076 0.876 0.048
#> SRR1318390 2 0.5792 0.5219 0.000 0.552 0.416 0.032
#> SRR1073095 2 0.0188 0.8030 0.000 0.996 0.000 0.004
#> SRR1410612 2 0.0188 0.8030 0.000 0.996 0.000 0.004
#> SRR1076892 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1340989 3 0.4925 0.1676 0.000 0.000 0.572 0.428
#> SRR1481375 3 0.2011 0.6647 0.000 0.080 0.920 0.000
#> SRR1079356 4 0.2589 0.6156 0.000 0.000 0.116 0.884
#> SRR1455545 4 0.4955 -0.0940 0.444 0.000 0.000 0.556
#> SRR1406157 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.0188 0.8030 0.000 0.996 0.000 0.004
#> SRR1420259 3 0.2011 0.6647 0.000 0.080 0.920 0.000
#> SRR1376963 2 0.5766 0.5397 0.000 0.564 0.404 0.032
#> SRR1101061 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.0188 0.8030 0.000 0.996 0.000 0.004
#> SRR1334791 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.0188 0.8030 0.000 0.996 0.000 0.004
#> SRR1330450 3 0.4941 0.1298 0.000 0.000 0.564 0.436
#> SRR1409108 2 0.2048 0.7793 0.000 0.928 0.064 0.008
#> SRR1416865 4 0.4994 0.0810 0.000 0.000 0.480 0.520
#> SRR1071832 4 0.2408 0.6171 0.000 0.000 0.104 0.896
#> SRR1093814 3 0.5645 -0.0278 0.000 0.364 0.604 0.032
#> SRR1381821 4 0.4222 0.4950 0.000 0.000 0.272 0.728
#> SRR811675 4 0.3856 0.6123 0.032 0.000 0.136 0.832
#> SRR1082423 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1417296 2 0.0188 0.8030 0.000 0.996 0.000 0.004
#> SRR815944 3 0.3907 0.5192 0.000 0.000 0.768 0.232
#> SRR1332775 3 0.2011 0.6647 0.000 0.080 0.920 0.000
#> SRR1079143 3 0.4916 0.1773 0.000 0.000 0.576 0.424
#> SRR1476807 1 0.3074 0.8347 0.848 0.000 0.000 0.152
#> SRR1456634 1 0.1637 0.9037 0.940 0.000 0.000 0.060
#> SRR1083171 2 0.5800 0.5145 0.000 0.548 0.420 0.032
#> SRR1083337 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1377672 3 0.4933 0.1561 0.000 0.000 0.568 0.432
#> SRR1435816 3 0.3764 0.5251 0.000 0.000 0.784 0.216
#> SRR1080580 4 0.4790 0.3282 0.000 0.000 0.380 0.620
#> SRR1366672 3 0.2011 0.6647 0.000 0.080 0.920 0.000
#> SRR1075150 2 0.5172 0.5514 0.000 0.588 0.404 0.008
#> SRR814137 4 0.4343 0.4350 0.264 0.000 0.004 0.732
#> SRR1475062 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1070789 2 0.0188 0.8030 0.000 0.996 0.000 0.004
#> SRR1097728 3 0.0188 0.6577 0.000 0.004 0.996 0.000
#> SRR1447172 2 0.0188 0.8030 0.000 0.996 0.000 0.004
#> SRR1472486 3 0.2011 0.6647 0.000 0.080 0.920 0.000
#> SRR1377881 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1420912 4 0.3219 0.5948 0.000 0.000 0.164 0.836
#> SRR1313747 2 0.0921 0.7969 0.000 0.972 0.000 0.028
#> SRR1414447 3 0.4304 0.4492 0.000 0.000 0.716 0.284
#> SRR1358238 1 0.4804 0.4889 0.616 0.000 0.000 0.384
#> SRR1322115 4 0.4888 0.2664 0.412 0.000 0.000 0.588
#> SRR1330474 1 0.1716 0.9015 0.936 0.000 0.000 0.064
#> SRR1093124 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1456354 1 0.4941 0.3762 0.564 0.000 0.000 0.436
#> SRR820859 4 0.3266 0.5943 0.000 0.000 0.168 0.832
#> SRR1401860 4 0.4585 0.4161 0.000 0.000 0.332 0.668
#> SRR1095599 3 0.0000 0.6560 0.000 0.000 1.000 0.000
#> SRR1417130 1 0.0000 0.9352 1.000 0.000 0.000 0.000
#> SRR1362597 2 0.0000 0.8035 0.000 1.000 0.000 0.000
#> SRR1328464 3 0.0188 0.6577 0.000 0.004 0.996 0.000
#> SRR1323957 1 0.2868 0.8490 0.864 0.000 0.000 0.136
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0162 0.8586 0.996 0.004 0.000 0.000 0.000
#> SRR1093410 1 0.0162 0.8586 0.996 0.004 0.000 0.000 0.000
#> SRR1380523 2 0.0609 0.9576 0.000 0.980 0.020 0.000 0.000
#> SRR1089106 4 0.3988 0.6793 0.016 0.000 0.000 0.732 0.252
#> SRR1401403 1 0.0000 0.8588 1.000 0.000 0.000 0.000 0.000
#> SRR1080534 5 0.0794 0.7742 0.000 0.000 0.000 0.028 0.972
#> SRR1487638 2 0.1830 0.9189 0.000 0.924 0.068 0.008 0.000
#> SRR1320650 3 0.4349 0.7199 0.000 0.176 0.756 0.068 0.000
#> SRR1073045 3 0.2462 0.7697 0.000 0.008 0.880 0.000 0.112
#> SRR1397030 3 0.1857 0.7863 0.000 0.060 0.928 0.004 0.008
#> SRR1439976 4 0.4372 0.7825 0.072 0.000 0.000 0.756 0.172
#> SRR1454050 3 0.5351 0.7124 0.000 0.092 0.684 0.212 0.012
#> SRR1070286 4 0.4877 0.7387 0.072 0.000 0.000 0.692 0.236
#> SRR1344185 3 0.2471 0.7524 0.000 0.000 0.864 0.000 0.136
#> SRR1084228 3 0.4522 0.7032 0.000 0.196 0.736 0.068 0.000
#> SRR1101907 3 0.2050 0.7859 0.000 0.008 0.920 0.064 0.008
#> SRR1079686 3 0.4300 0.7465 0.000 0.132 0.772 0.096 0.000
#> SRR1089761 5 0.3807 0.6905 0.000 0.000 0.240 0.012 0.748
#> SRR811403 3 0.5575 0.6646 0.000 0.148 0.640 0.212 0.000
#> SRR1440560 3 0.4935 0.7370 0.000 0.040 0.720 0.212 0.028
#> SRR1079706 5 0.0992 0.7775 0.000 0.000 0.008 0.024 0.968
#> SRR1459101 5 0.3355 0.7446 0.000 0.000 0.184 0.012 0.804
#> SRR1335089 5 0.2011 0.7837 0.000 0.000 0.088 0.004 0.908
#> SRR1337840 1 0.4306 -0.0900 0.508 0.000 0.000 0.492 0.000
#> SRR808682 2 0.0703 0.9555 0.000 0.976 0.024 0.000 0.000
#> SRR1443224 3 0.5085 0.7245 0.000 0.072 0.704 0.212 0.012
#> SRR1439831 1 0.0324 0.8579 0.992 0.004 0.004 0.000 0.000
#> SRR1087463 5 0.2068 0.7832 0.000 0.000 0.092 0.004 0.904
#> SRR1457949 3 0.2563 0.7671 0.000 0.008 0.872 0.000 0.120
#> SRR1455969 3 0.2513 0.7683 0.000 0.008 0.876 0.000 0.116
#> SRR1415529 5 0.3452 0.5944 0.000 0.000 0.000 0.244 0.756
#> SRR1330018 2 0.0609 0.9576 0.000 0.980 0.020 0.000 0.000
#> SRR1370597 5 0.3684 0.6565 0.000 0.000 0.280 0.000 0.720
#> SRR1385524 2 0.0609 0.9576 0.000 0.980 0.020 0.000 0.000
#> SRR1351605 4 0.4444 0.7811 0.072 0.000 0.000 0.748 0.180
#> SRR1460148 1 0.0324 0.8579 0.992 0.004 0.004 0.000 0.000
#> SRR1354159 3 0.4347 0.7413 0.000 0.004 0.744 0.212 0.040
#> SRR1318390 3 0.5436 0.7034 0.000 0.108 0.672 0.212 0.008
#> SRR1073095 2 0.0290 0.9585 0.000 0.992 0.008 0.000 0.000
#> SRR1410612 2 0.0290 0.9585 0.000 0.992 0.008 0.000 0.000
#> SRR1076892 1 0.0162 0.8586 0.996 0.004 0.000 0.000 0.000
#> SRR1340989 5 0.2771 0.7743 0.000 0.000 0.128 0.012 0.860
#> SRR1481375 3 0.2563 0.7671 0.000 0.008 0.872 0.000 0.120
#> SRR1079356 5 0.3707 0.5346 0.000 0.000 0.000 0.284 0.716
#> SRR1455545 4 0.3847 0.7264 0.180 0.000 0.000 0.784 0.036
#> SRR1406157 1 0.0162 0.8586 0.996 0.004 0.000 0.000 0.000
#> SRR1445920 2 0.0290 0.9585 0.000 0.992 0.008 0.000 0.000
#> SRR1420259 3 0.2513 0.7691 0.000 0.008 0.876 0.000 0.116
#> SRR1376963 3 0.5871 0.6205 0.000 0.184 0.604 0.212 0.000
#> SRR1101061 1 0.0324 0.8579 0.992 0.004 0.004 0.000 0.000
#> SRR1414496 2 0.0290 0.9585 0.000 0.992 0.008 0.000 0.000
#> SRR1334791 1 0.0000 0.8588 1.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0290 0.9585 0.000 0.992 0.008 0.000 0.000
#> SRR1330450 5 0.2077 0.7851 0.000 0.000 0.084 0.008 0.908
#> SRR1409108 2 0.5478 0.5490 0.000 0.656 0.164 0.180 0.000
#> SRR1416865 5 0.1082 0.7767 0.000 0.000 0.008 0.028 0.964
#> SRR1071832 5 0.3480 0.5895 0.000 0.000 0.000 0.248 0.752
#> SRR1093814 3 0.4879 0.7362 0.000 0.052 0.720 0.212 0.016
#> SRR1381821 5 0.1270 0.7634 0.000 0.000 0.000 0.052 0.948
#> SRR811675 5 0.3636 0.5539 0.000 0.000 0.000 0.272 0.728
#> SRR1082423 1 0.0324 0.8579 0.992 0.004 0.004 0.000 0.000
#> SRR1417296 2 0.0510 0.9542 0.000 0.984 0.016 0.000 0.000
#> SRR815944 5 0.4728 0.6032 0.000 0.000 0.296 0.040 0.664
#> SRR1332775 3 0.2563 0.7674 0.000 0.008 0.872 0.000 0.120
#> SRR1079143 5 0.3106 0.7713 0.000 0.000 0.132 0.024 0.844
#> SRR1476807 4 0.4307 -0.0198 0.496 0.000 0.000 0.504 0.000
#> SRR1456634 1 0.3814 0.5132 0.720 0.004 0.000 0.276 0.000
#> SRR1083171 3 0.4454 0.7474 0.000 0.112 0.760 0.128 0.000
#> SRR1083337 1 0.0162 0.8586 0.996 0.004 0.000 0.000 0.000
#> SRR1377672 5 0.3193 0.7716 0.000 0.000 0.132 0.028 0.840
#> SRR1435816 5 0.4015 0.5586 0.000 0.000 0.348 0.000 0.652
#> SRR1080580 5 0.1121 0.7677 0.000 0.000 0.000 0.044 0.956
#> SRR1366672 3 0.2513 0.7691 0.000 0.008 0.876 0.000 0.116
#> SRR1075150 3 0.3906 0.6737 0.000 0.240 0.744 0.016 0.000
#> SRR814137 4 0.4479 0.7794 0.072 0.000 0.000 0.744 0.184
#> SRR1475062 1 0.0324 0.8579 0.992 0.004 0.004 0.000 0.000
#> SRR1340028 1 0.0162 0.8586 0.996 0.004 0.000 0.000 0.000
#> SRR1070789 2 0.0290 0.9585 0.000 0.992 0.008 0.000 0.000
#> SRR1097728 3 0.2605 0.7443 0.000 0.000 0.852 0.000 0.148
#> SRR1447172 2 0.0290 0.9585 0.000 0.992 0.008 0.000 0.000
#> SRR1472486 3 0.2513 0.7691 0.000 0.008 0.876 0.000 0.116
#> SRR1377881 1 0.0324 0.8579 0.992 0.004 0.004 0.000 0.000
#> SRR1420912 5 0.3053 0.6718 0.000 0.000 0.008 0.164 0.828
#> SRR1313747 2 0.3169 0.8659 0.000 0.856 0.060 0.084 0.000
#> SRR1414447 5 0.4848 0.6885 0.000 0.000 0.132 0.144 0.724
#> SRR1358238 4 0.3715 0.6401 0.260 0.000 0.000 0.736 0.004
#> SRR1322115 1 0.6933 -0.3226 0.420 0.004 0.004 0.336 0.236
#> SRR1330474 1 0.3884 0.4941 0.708 0.004 0.000 0.288 0.000
#> SRR1093124 1 0.0000 0.8588 1.000 0.000 0.000 0.000 0.000
#> SRR1456354 4 0.3662 0.6521 0.252 0.000 0.000 0.744 0.004
#> SRR820859 5 0.3636 0.5538 0.000 0.000 0.000 0.272 0.728
#> SRR1401860 5 0.1197 0.7666 0.000 0.000 0.000 0.048 0.952
#> SRR1095599 3 0.3305 0.6509 0.000 0.000 0.776 0.000 0.224
#> SRR1417130 1 0.0451 0.8581 0.988 0.008 0.004 0.000 0.000
#> SRR1362597 2 0.0609 0.9576 0.000 0.980 0.020 0.000 0.000
#> SRR1328464 3 0.2813 0.7252 0.000 0.000 0.832 0.000 0.168
#> SRR1323957 1 0.4306 -0.0900 0.508 0.000 0.000 0.492 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0363 0.8737 0.988 0.000 0.012 0.000 0.000 0.000
#> SRR1093410 1 0.0363 0.8737 0.988 0.000 0.012 0.000 0.000 0.000
#> SRR1380523 2 0.1980 0.8958 0.000 0.920 0.016 0.048 0.000 0.016
#> SRR1089106 4 0.4415 0.6612 0.004 0.000 0.168 0.724 0.104 0.000
#> SRR1401403 1 0.0146 0.8750 0.996 0.000 0.004 0.000 0.000 0.000
#> SRR1080534 5 0.2656 0.7652 0.000 0.000 0.120 0.012 0.860 0.008
#> SRR1487638 2 0.3000 0.8485 0.000 0.852 0.096 0.044 0.000 0.008
#> SRR1320650 6 0.4716 0.4289 0.000 0.048 0.188 0.048 0.000 0.716
#> SRR1073045 6 0.0984 0.7622 0.000 0.008 0.012 0.000 0.012 0.968
#> SRR1397030 6 0.2688 0.6879 0.000 0.024 0.044 0.048 0.000 0.884
#> SRR1439976 4 0.3623 0.7312 0.012 0.000 0.096 0.812 0.080 0.000
#> SRR1454050 3 0.4587 0.9328 0.000 0.064 0.640 0.000 0.000 0.296
#> SRR1070286 4 0.5303 0.5802 0.012 0.000 0.196 0.636 0.156 0.000
#> SRR1344185 6 0.1265 0.7552 0.000 0.000 0.008 0.000 0.044 0.948
#> SRR1084228 6 0.5283 0.3312 0.000 0.092 0.188 0.048 0.000 0.672
#> SRR1101907 6 0.2848 0.5729 0.000 0.008 0.176 0.000 0.000 0.816
#> SRR1079686 6 0.5821 -0.2864 0.000 0.072 0.360 0.048 0.000 0.520
#> SRR1089761 5 0.4052 0.7029 0.000 0.000 0.040 0.016 0.752 0.192
#> SRR811403 3 0.4718 0.9241 0.000 0.076 0.632 0.000 0.000 0.292
#> SRR1440560 3 0.4531 0.8978 0.000 0.036 0.680 0.000 0.020 0.264
#> SRR1079706 5 0.1781 0.7769 0.000 0.000 0.060 0.008 0.924 0.008
#> SRR1459101 5 0.3477 0.7489 0.000 0.000 0.056 0.004 0.808 0.132
#> SRR1335089 5 0.2474 0.7791 0.000 0.000 0.032 0.004 0.884 0.080
#> SRR1337840 4 0.3852 0.3595 0.384 0.000 0.004 0.612 0.000 0.000
#> SRR808682 2 0.2068 0.8938 0.000 0.916 0.020 0.048 0.000 0.016
#> SRR1443224 3 0.4426 0.9341 0.000 0.052 0.652 0.000 0.000 0.296
#> SRR1439831 1 0.1398 0.8679 0.940 0.000 0.052 0.000 0.000 0.008
#> SRR1087463 5 0.1745 0.7827 0.000 0.000 0.012 0.000 0.920 0.068
#> SRR1457949 6 0.1036 0.7646 0.000 0.008 0.004 0.000 0.024 0.964
#> SRR1455969 6 0.1167 0.7631 0.000 0.008 0.012 0.000 0.020 0.960
#> SRR1415529 5 0.4767 0.6027 0.000 0.000 0.156 0.168 0.676 0.000
#> SRR1330018 2 0.1980 0.8958 0.000 0.920 0.016 0.048 0.000 0.016
#> SRR1370597 5 0.4743 0.5705 0.000 0.000 0.056 0.012 0.652 0.280
#> SRR1385524 2 0.1980 0.8958 0.000 0.920 0.016 0.048 0.000 0.016
#> SRR1351605 4 0.3627 0.7309 0.012 0.000 0.088 0.812 0.088 0.000
#> SRR1460148 1 0.1398 0.8679 0.940 0.000 0.052 0.000 0.000 0.008
#> SRR1354159 3 0.4469 0.8443 0.000 0.012 0.676 0.000 0.040 0.272
#> SRR1318390 3 0.4638 0.9321 0.000 0.068 0.636 0.000 0.000 0.296
#> SRR1073095 2 0.0000 0.9099 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.9099 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1076892 1 0.0260 0.8753 0.992 0.000 0.008 0.000 0.000 0.000
#> SRR1340989 5 0.3161 0.7718 0.000 0.000 0.076 0.004 0.840 0.080
#> SRR1481375 6 0.1167 0.7629 0.000 0.008 0.000 0.012 0.020 0.960
#> SRR1079356 5 0.5443 0.4657 0.000 0.000 0.184 0.244 0.572 0.000
#> SRR1455545 4 0.3300 0.7510 0.068 0.000 0.076 0.840 0.016 0.000
#> SRR1406157 1 0.0146 0.8748 0.996 0.000 0.004 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.9099 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1420259 6 0.0862 0.7649 0.000 0.008 0.004 0.000 0.016 0.972
#> SRR1376963 3 0.4626 0.9231 0.000 0.076 0.652 0.000 0.000 0.272
#> SRR1101061 1 0.1398 0.8679 0.940 0.000 0.052 0.000 0.000 0.008
#> SRR1414496 2 0.0458 0.9068 0.000 0.984 0.000 0.016 0.000 0.000
#> SRR1334791 1 0.0146 0.8750 0.996 0.000 0.004 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.9099 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1330450 5 0.2594 0.7816 0.000 0.000 0.056 0.004 0.880 0.060
#> SRR1409108 2 0.5207 -0.0245 0.000 0.492 0.432 0.008 0.000 0.068
#> SRR1416865 5 0.1668 0.7770 0.000 0.000 0.060 0.008 0.928 0.004
#> SRR1071832 5 0.4858 0.5867 0.000 0.000 0.156 0.180 0.664 0.000
#> SRR1093814 3 0.4285 0.9125 0.000 0.036 0.644 0.000 0.000 0.320
#> SRR1381821 5 0.2572 0.7551 0.000 0.000 0.136 0.012 0.852 0.000
#> SRR811675 5 0.5417 0.4740 0.000 0.000 0.180 0.244 0.576 0.000
#> SRR1082423 1 0.1524 0.8651 0.932 0.000 0.060 0.000 0.000 0.008
#> SRR1417296 2 0.0603 0.9050 0.000 0.980 0.004 0.016 0.000 0.000
#> SRR815944 5 0.4751 0.6636 0.000 0.000 0.108 0.004 0.680 0.208
#> SRR1332775 6 0.1901 0.7512 0.000 0.008 0.028 0.000 0.040 0.924
#> SRR1079143 5 0.3052 0.7703 0.000 0.000 0.068 0.004 0.848 0.080
#> SRR1476807 4 0.3807 0.3917 0.368 0.000 0.004 0.628 0.000 0.000
#> SRR1456634 1 0.3887 0.3189 0.632 0.000 0.008 0.360 0.000 0.000
#> SRR1083171 6 0.5844 -0.4704 0.000 0.072 0.416 0.044 0.000 0.468
#> SRR1083337 1 0.0260 0.8741 0.992 0.000 0.008 0.000 0.000 0.000
#> SRR1377672 5 0.3610 0.7631 0.000 0.000 0.104 0.004 0.804 0.088
#> SRR1435816 6 0.4371 0.2571 0.000 0.000 0.036 0.000 0.344 0.620
#> SRR1080580 5 0.2825 0.7593 0.000 0.000 0.136 0.012 0.844 0.008
#> SRR1366672 6 0.0984 0.7622 0.000 0.008 0.012 0.000 0.012 0.968
#> SRR1075150 6 0.5145 0.4056 0.000 0.188 0.080 0.048 0.000 0.684
#> SRR814137 4 0.3820 0.7247 0.012 0.000 0.100 0.796 0.092 0.000
#> SRR1475062 1 0.1584 0.8649 0.928 0.000 0.064 0.000 0.000 0.008
#> SRR1340028 1 0.0260 0.8741 0.992 0.000 0.008 0.000 0.000 0.000
#> SRR1070789 2 0.0000 0.9099 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1097728 6 0.1511 0.7522 0.000 0.000 0.004 0.012 0.044 0.940
#> SRR1447172 2 0.0458 0.9068 0.000 0.984 0.000 0.016 0.000 0.000
#> SRR1472486 6 0.0622 0.7649 0.000 0.008 0.000 0.000 0.012 0.980
#> SRR1377881 1 0.1524 0.8651 0.932 0.000 0.060 0.000 0.000 0.008
#> SRR1420912 5 0.2948 0.7580 0.000 0.000 0.092 0.060 0.848 0.000
#> SRR1313747 2 0.3518 0.6619 0.000 0.732 0.256 0.012 0.000 0.000
#> SRR1414447 5 0.4367 0.6716 0.000 0.000 0.220 0.004 0.708 0.068
#> SRR1358238 4 0.1714 0.7283 0.092 0.000 0.000 0.908 0.000 0.000
#> SRR1322115 1 0.7724 -0.3025 0.300 0.000 0.240 0.288 0.168 0.004
#> SRR1330474 1 0.4084 0.2090 0.588 0.000 0.012 0.400 0.000 0.000
#> SRR1093124 1 0.0000 0.8752 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1456354 4 0.1858 0.7291 0.092 0.000 0.004 0.904 0.000 0.000
#> SRR820859 5 0.5037 0.5729 0.000 0.000 0.188 0.172 0.640 0.000
#> SRR1401860 5 0.2957 0.7561 0.000 0.000 0.140 0.016 0.836 0.008
#> SRR1095599 6 0.2100 0.6879 0.000 0.000 0.004 0.000 0.112 0.884
#> SRR1417130 1 0.1471 0.8685 0.932 0.000 0.064 0.000 0.000 0.004
#> SRR1362597 2 0.1699 0.9003 0.000 0.936 0.016 0.032 0.000 0.016
#> SRR1328464 6 0.1578 0.7503 0.000 0.000 0.004 0.012 0.048 0.936
#> SRR1323957 4 0.3852 0.3595 0.384 0.000 0.004 0.612 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", "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 17633 rows and 97 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 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.929 0.974 0.5018 0.495 0.495
#> 3 3 0.998 0.953 0.981 0.2523 0.858 0.720
#> 4 4 0.842 0.854 0.923 0.0841 0.929 0.817
#> 5 5 0.722 0.448 0.724 0.0925 0.875 0.636
#> 6 6 0.753 0.711 0.842 0.0617 0.841 0.473
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
#> SRR1397242 1 0.000 0.9512 1.000 0.000
#> SRR1093410 1 0.000 0.9512 1.000 0.000
#> SRR1380523 2 0.000 0.9913 0.000 1.000
#> SRR1089106 1 0.000 0.9512 1.000 0.000
#> SRR1401403 1 0.000 0.9512 1.000 0.000
#> SRR1080534 1 0.000 0.9512 1.000 0.000
#> SRR1487638 2 0.000 0.9913 0.000 1.000
#> SRR1320650 2 0.000 0.9913 0.000 1.000
#> SRR1073045 2 0.000 0.9913 0.000 1.000
#> SRR1397030 2 0.000 0.9913 0.000 1.000
#> SRR1439976 1 0.000 0.9512 1.000 0.000
#> SRR1454050 2 0.000 0.9913 0.000 1.000
#> SRR1070286 1 0.000 0.9512 1.000 0.000
#> SRR1344185 2 0.000 0.9913 0.000 1.000
#> SRR1084228 2 0.000 0.9913 0.000 1.000
#> SRR1101907 2 0.000 0.9913 0.000 1.000
#> SRR1079686 2 0.000 0.9913 0.000 1.000
#> SRR1089761 2 0.000 0.9913 0.000 1.000
#> SRR811403 2 0.000 0.9913 0.000 1.000
#> SRR1440560 2 0.000 0.9913 0.000 1.000
#> SRR1079706 1 0.000 0.9512 1.000 0.000
#> SRR1459101 2 0.000 0.9913 0.000 1.000
#> SRR1335089 1 0.971 0.3707 0.600 0.400
#> SRR1337840 1 0.000 0.9512 1.000 0.000
#> SRR808682 2 0.000 0.9913 0.000 1.000
#> SRR1443224 2 0.000 0.9913 0.000 1.000
#> SRR1439831 1 0.000 0.9512 1.000 0.000
#> SRR1087463 1 0.971 0.3707 0.600 0.400
#> SRR1457949 2 0.000 0.9913 0.000 1.000
#> SRR1455969 2 0.000 0.9913 0.000 1.000
#> SRR1415529 1 0.000 0.9512 1.000 0.000
#> SRR1330018 2 0.000 0.9913 0.000 1.000
#> SRR1370597 2 0.000 0.9913 0.000 1.000
#> SRR1385524 2 0.000 0.9913 0.000 1.000
#> SRR1351605 1 0.000 0.9512 1.000 0.000
#> SRR1460148 1 0.000 0.9512 1.000 0.000
#> SRR1354159 2 0.000 0.9913 0.000 1.000
#> SRR1318390 2 0.000 0.9913 0.000 1.000
#> SRR1073095 2 0.000 0.9913 0.000 1.000
#> SRR1410612 2 0.000 0.9913 0.000 1.000
#> SRR1076892 1 0.000 0.9512 1.000 0.000
#> SRR1340989 1 1.000 0.0648 0.500 0.500
#> SRR1481375 2 0.000 0.9913 0.000 1.000
#> SRR1079356 1 0.000 0.9512 1.000 0.000
#> SRR1455545 1 0.000 0.9512 1.000 0.000
#> SRR1406157 1 0.000 0.9512 1.000 0.000
#> SRR1445920 2 0.000 0.9913 0.000 1.000
#> SRR1420259 2 0.000 0.9913 0.000 1.000
#> SRR1376963 2 0.000 0.9913 0.000 1.000
#> SRR1101061 1 0.000 0.9512 1.000 0.000
#> SRR1414496 2 0.000 0.9913 0.000 1.000
#> SRR1334791 1 0.000 0.9512 1.000 0.000
#> SRR1072129 2 0.000 0.9913 0.000 1.000
#> SRR1330450 1 0.969 0.3803 0.604 0.396
#> SRR1409108 2 0.000 0.9913 0.000 1.000
#> SRR1416865 1 0.000 0.9512 1.000 0.000
#> SRR1071832 1 0.000 0.9512 1.000 0.000
#> SRR1093814 2 0.000 0.9913 0.000 1.000
#> SRR1381821 1 0.000 0.9512 1.000 0.000
#> SRR811675 1 0.000 0.9512 1.000 0.000
#> SRR1082423 1 0.000 0.9512 1.000 0.000
#> SRR1417296 2 0.000 0.9913 0.000 1.000
#> SRR815944 2 0.000 0.9913 0.000 1.000
#> SRR1332775 2 0.000 0.9913 0.000 1.000
#> SRR1079143 2 0.969 0.2756 0.396 0.604
#> SRR1476807 1 0.000 0.9512 1.000 0.000
#> SRR1456634 1 0.000 0.9512 1.000 0.000
#> SRR1083171 2 0.000 0.9913 0.000 1.000
#> SRR1083337 1 0.000 0.9512 1.000 0.000
#> SRR1377672 1 0.998 0.1637 0.528 0.472
#> SRR1435816 2 0.000 0.9913 0.000 1.000
#> SRR1080580 1 0.000 0.9512 1.000 0.000
#> SRR1366672 2 0.000 0.9913 0.000 1.000
#> SRR1075150 2 0.000 0.9913 0.000 1.000
#> SRR814137 1 0.000 0.9512 1.000 0.000
#> SRR1475062 1 0.000 0.9512 1.000 0.000
#> SRR1340028 1 0.000 0.9512 1.000 0.000
#> SRR1070789 2 0.000 0.9913 0.000 1.000
#> SRR1097728 2 0.000 0.9913 0.000 1.000
#> SRR1447172 2 0.000 0.9913 0.000 1.000
#> SRR1472486 2 0.000 0.9913 0.000 1.000
#> SRR1377881 1 0.000 0.9512 1.000 0.000
#> SRR1420912 1 0.000 0.9512 1.000 0.000
#> SRR1313747 2 0.000 0.9913 0.000 1.000
#> SRR1414447 2 0.000 0.9913 0.000 1.000
#> SRR1358238 1 0.000 0.9512 1.000 0.000
#> SRR1322115 1 0.000 0.9512 1.000 0.000
#> SRR1330474 1 0.000 0.9512 1.000 0.000
#> SRR1093124 1 0.000 0.9512 1.000 0.000
#> SRR1456354 1 0.000 0.9512 1.000 0.000
#> SRR820859 1 0.000 0.9512 1.000 0.000
#> SRR1401860 1 0.000 0.9512 1.000 0.000
#> SRR1095599 2 0.000 0.9913 0.000 1.000
#> SRR1417130 1 0.000 0.9512 1.000 0.000
#> SRR1362597 2 0.000 0.9913 0.000 1.000
#> SRR1328464 2 0.000 0.9913 0.000 1.000
#> SRR1323957 1 0.000 0.9512 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1089106 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1401403 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1080534 1 0.2878 0.888 0.904 0.000 0.096
#> SRR1487638 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1320650 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1073045 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1397030 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1439976 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1454050 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1070286 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1344185 2 0.0237 0.978 0.000 0.996 0.004
#> SRR1084228 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1101907 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1079686 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1089761 3 0.0747 0.956 0.000 0.016 0.984
#> SRR811403 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1440560 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1079706 3 0.0000 0.964 0.000 0.000 1.000
#> SRR1459101 3 0.0000 0.964 0.000 0.000 1.000
#> SRR1335089 3 0.0000 0.964 0.000 0.000 1.000
#> SRR1337840 1 0.0000 0.982 1.000 0.000 0.000
#> SRR808682 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1443224 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1439831 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1087463 3 0.0000 0.964 0.000 0.000 1.000
#> SRR1457949 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1455969 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1415529 1 0.2625 0.904 0.916 0.000 0.084
#> SRR1330018 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1370597 3 0.2261 0.920 0.000 0.068 0.932
#> SRR1385524 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1351605 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1460148 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1354159 2 0.4235 0.772 0.000 0.824 0.176
#> SRR1318390 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1073095 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1340989 3 0.0000 0.964 0.000 0.000 1.000
#> SRR1481375 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1079356 1 0.6111 0.324 0.604 0.000 0.396
#> SRR1455545 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1406157 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1420259 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1376963 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1101061 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1330450 3 0.0000 0.964 0.000 0.000 1.000
#> SRR1409108 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1416865 3 0.0000 0.964 0.000 0.000 1.000
#> SRR1071832 1 0.2261 0.920 0.932 0.000 0.068
#> SRR1093814 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1381821 3 0.2796 0.892 0.092 0.000 0.908
#> SRR811675 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1082423 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.982 0.000 1.000 0.000
#> SRR815944 3 0.4452 0.774 0.000 0.192 0.808
#> SRR1332775 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1079143 3 0.0000 0.964 0.000 0.000 1.000
#> SRR1476807 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1456634 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1083171 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1083337 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1377672 3 0.1753 0.936 0.000 0.048 0.952
#> SRR1435816 2 0.6299 0.067 0.000 0.524 0.476
#> SRR1080580 1 0.0237 0.979 0.996 0.000 0.004
#> SRR1366672 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1075150 2 0.0000 0.982 0.000 1.000 0.000
#> SRR814137 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1475062 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1097728 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1447172 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1472486 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1377881 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1420912 3 0.2165 0.917 0.064 0.000 0.936
#> SRR1313747 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1414447 3 0.0000 0.964 0.000 0.000 1.000
#> SRR1358238 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1322115 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1330474 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1456354 1 0.0000 0.982 1.000 0.000 0.000
#> SRR820859 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1401860 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1095599 2 0.2711 0.892 0.000 0.912 0.088
#> SRR1417130 1 0.0000 0.982 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.982 0.000 1.000 0.000
#> SRR1328464 2 0.0237 0.978 0.000 0.996 0.004
#> SRR1323957 1 0.0000 0.982 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1089106 1 0.1584 0.949 0.952 0.000 0.036 0.012
#> SRR1401403 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1080534 3 0.5292 0.083 0.480 0.000 0.512 0.008
#> SRR1487638 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1320650 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1073045 2 0.3278 0.877 0.000 0.864 0.116 0.020
#> SRR1397030 2 0.2473 0.903 0.000 0.908 0.080 0.012
#> SRR1439976 1 0.1584 0.949 0.952 0.000 0.036 0.012
#> SRR1454050 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1070286 1 0.1389 0.946 0.952 0.000 0.048 0.000
#> SRR1344185 2 0.4332 0.832 0.000 0.816 0.112 0.072
#> SRR1084228 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1101907 2 0.0188 0.941 0.000 0.996 0.004 0.000
#> SRR1079686 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1089761 4 0.1635 0.811 0.000 0.008 0.044 0.948
#> SRR811403 2 0.0817 0.930 0.000 0.976 0.000 0.024
#> SRR1440560 4 0.4713 0.427 0.000 0.360 0.000 0.640
#> SRR1079706 3 0.3074 0.620 0.000 0.000 0.848 0.152
#> SRR1459101 4 0.1118 0.819 0.000 0.000 0.036 0.964
#> SRR1335089 3 0.4925 0.357 0.000 0.000 0.572 0.428
#> SRR1337840 1 0.1356 0.952 0.960 0.000 0.032 0.008
#> SRR808682 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1443224 2 0.1022 0.925 0.000 0.968 0.000 0.032
#> SRR1439831 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1087463 3 0.4804 0.441 0.000 0.000 0.616 0.384
#> SRR1457949 2 0.3335 0.874 0.000 0.860 0.120 0.020
#> SRR1455969 2 0.1474 0.923 0.000 0.948 0.052 0.000
#> SRR1415529 1 0.4419 0.811 0.812 0.000 0.084 0.104
#> SRR1330018 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1370597 3 0.4424 0.569 0.000 0.088 0.812 0.100
#> SRR1385524 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1351605 1 0.1584 0.949 0.952 0.000 0.036 0.012
#> SRR1460148 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1354159 4 0.4584 0.502 0.000 0.300 0.004 0.696
#> SRR1318390 2 0.0817 0.930 0.000 0.976 0.000 0.024
#> SRR1073095 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1410612 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1076892 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1340989 4 0.0000 0.823 0.000 0.000 0.000 1.000
#> SRR1481375 2 0.3166 0.880 0.000 0.868 0.116 0.016
#> SRR1079356 3 0.5207 0.515 0.292 0.000 0.680 0.028
#> SRR1455545 1 0.1584 0.949 0.952 0.000 0.036 0.012
#> SRR1406157 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1420259 2 0.3224 0.877 0.000 0.864 0.120 0.016
#> SRR1376963 2 0.3311 0.771 0.000 0.828 0.000 0.172
#> SRR1101061 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1334791 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1330450 4 0.1716 0.785 0.000 0.000 0.064 0.936
#> SRR1409108 2 0.1022 0.925 0.000 0.968 0.000 0.032
#> SRR1416865 3 0.3172 0.618 0.000 0.000 0.840 0.160
#> SRR1071832 1 0.3286 0.890 0.876 0.000 0.080 0.044
#> SRR1093814 2 0.1022 0.925 0.000 0.968 0.000 0.032
#> SRR1381821 3 0.3552 0.628 0.024 0.000 0.848 0.128
#> SRR811675 3 0.4746 0.475 0.368 0.000 0.632 0.000
#> SRR1082423 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1417296 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR815944 4 0.1174 0.824 0.000 0.012 0.020 0.968
#> SRR1332775 2 0.2281 0.889 0.000 0.904 0.096 0.000
#> SRR1079143 4 0.0895 0.822 0.000 0.004 0.020 0.976
#> SRR1476807 1 0.1356 0.952 0.960 0.000 0.032 0.008
#> SRR1456634 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1083171 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1083337 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1377672 4 0.1151 0.814 0.000 0.008 0.024 0.968
#> SRR1435816 3 0.4401 0.502 0.000 0.076 0.812 0.112
#> SRR1080580 1 0.2999 0.843 0.864 0.000 0.132 0.004
#> SRR1366672 2 0.2741 0.894 0.000 0.892 0.096 0.012
#> SRR1075150 2 0.0188 0.941 0.000 0.996 0.004 0.000
#> SRR814137 1 0.1584 0.949 0.952 0.000 0.036 0.012
#> SRR1475062 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1070789 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1097728 2 0.3224 0.877 0.000 0.864 0.120 0.016
#> SRR1447172 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1472486 2 0.3224 0.877 0.000 0.864 0.120 0.016
#> SRR1377881 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1420912 4 0.3074 0.701 0.000 0.000 0.152 0.848
#> SRR1313747 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1414447 4 0.1042 0.822 0.000 0.008 0.020 0.972
#> SRR1358238 1 0.1584 0.949 0.952 0.000 0.036 0.012
#> SRR1322115 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1330474 1 0.0188 0.962 0.996 0.000 0.004 0.000
#> SRR1093124 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1456354 1 0.1356 0.952 0.960 0.000 0.032 0.008
#> SRR820859 1 0.3266 0.798 0.832 0.000 0.168 0.000
#> SRR1401860 1 0.2149 0.896 0.912 0.000 0.088 0.000
#> SRR1095599 2 0.5781 0.231 0.000 0.492 0.480 0.028
#> SRR1417130 1 0.0000 0.963 1.000 0.000 0.000 0.000
#> SRR1362597 2 0.0000 0.942 0.000 1.000 0.000 0.000
#> SRR1328464 2 0.3166 0.880 0.000 0.868 0.116 0.016
#> SRR1323957 1 0.1356 0.952 0.960 0.000 0.032 0.008
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.4302 0.652 0.000 0.520 0.000 0.480 0.000
#> SRR1089106 4 0.5888 -0.388 0.456 0.000 0.024 0.472 0.048
#> SRR1401403 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1080534 1 0.5052 0.168 0.536 0.008 0.000 0.020 0.436
#> SRR1487638 2 0.4304 0.648 0.000 0.516 0.000 0.484 0.000
#> SRR1320650 2 0.4302 0.652 0.000 0.520 0.000 0.480 0.000
#> SRR1073045 2 0.0290 0.509 0.000 0.992 0.000 0.008 0.000
#> SRR1397030 2 0.3210 0.584 0.000 0.788 0.000 0.212 0.000
#> SRR1439976 4 0.5888 -0.388 0.456 0.000 0.024 0.472 0.048
#> SRR1454050 4 0.4738 -0.598 0.000 0.464 0.016 0.520 0.000
#> SRR1070286 1 0.5410 0.542 0.584 0.000 0.000 0.344 0.072
#> SRR1344185 2 0.1117 0.498 0.000 0.964 0.020 0.016 0.000
#> SRR1084228 2 0.4302 0.652 0.000 0.520 0.000 0.480 0.000
#> SRR1101907 2 0.4060 0.622 0.000 0.640 0.000 0.360 0.000
#> SRR1079686 2 0.4304 0.648 0.000 0.516 0.000 0.484 0.000
#> SRR1089761 3 0.3496 0.656 0.000 0.116 0.840 0.028 0.016
#> SRR811403 4 0.5376 -0.538 0.000 0.424 0.056 0.520 0.000
#> SRR1440560 3 0.5236 0.302 0.000 0.048 0.544 0.408 0.000
#> SRR1079706 5 0.1282 0.699 0.000 0.004 0.044 0.000 0.952
#> SRR1459101 3 0.1717 0.719 0.000 0.052 0.936 0.004 0.008
#> SRR1335089 5 0.4383 0.348 0.000 0.004 0.424 0.000 0.572
#> SRR1337840 1 0.4846 0.542 0.612 0.000 0.004 0.360 0.024
#> SRR808682 2 0.4302 0.652 0.000 0.520 0.000 0.480 0.000
#> SRR1443224 4 0.5605 -0.512 0.000 0.404 0.076 0.520 0.000
#> SRR1439831 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.4449 0.224 0.000 0.004 0.484 0.000 0.512
#> SRR1457949 2 0.0000 0.504 0.000 1.000 0.000 0.000 0.000
#> SRR1455969 2 0.3561 0.597 0.000 0.740 0.000 0.260 0.000
#> SRR1415529 4 0.7293 -0.307 0.332 0.000 0.112 0.472 0.084
#> SRR1330018 2 0.4302 0.652 0.000 0.520 0.000 0.480 0.000
#> SRR1370597 5 0.3419 0.635 0.000 0.036 0.024 0.084 0.856
#> SRR1385524 2 0.4302 0.652 0.000 0.520 0.000 0.480 0.000
#> SRR1351605 4 0.5888 -0.388 0.456 0.000 0.024 0.472 0.048
#> SRR1460148 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.4655 0.421 0.000 0.028 0.644 0.328 0.000
#> SRR1318390 4 0.5376 -0.538 0.000 0.424 0.056 0.520 0.000
#> SRR1073095 2 0.4302 0.652 0.000 0.520 0.000 0.480 0.000
#> SRR1410612 2 0.4302 0.652 0.000 0.520 0.000 0.480 0.000
#> SRR1076892 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.0451 0.732 0.000 0.004 0.988 0.008 0.000
#> SRR1481375 2 0.0510 0.509 0.000 0.984 0.000 0.016 0.000
#> SRR1079356 5 0.3887 0.596 0.040 0.000 0.008 0.148 0.804
#> SRR1455545 4 0.5888 -0.388 0.456 0.000 0.024 0.472 0.048
#> SRR1406157 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.4302 0.652 0.000 0.520 0.000 0.480 0.000
#> SRR1420259 2 0.0290 0.509 0.000 0.992 0.000 0.008 0.000
#> SRR1376963 4 0.5861 -0.490 0.000 0.376 0.104 0.520 0.000
#> SRR1101061 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.4302 0.652 0.000 0.520 0.000 0.480 0.000
#> SRR1334791 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.4304 0.648 0.000 0.516 0.000 0.484 0.000
#> SRR1330450 3 0.4041 0.577 0.000 0.004 0.780 0.176 0.040
#> SRR1409108 4 0.5605 -0.512 0.000 0.404 0.076 0.520 0.000
#> SRR1416865 5 0.1270 0.699 0.000 0.000 0.052 0.000 0.948
#> SRR1071832 4 0.6616 -0.354 0.404 0.000 0.056 0.472 0.068
#> SRR1093814 4 0.5605 -0.512 0.000 0.404 0.076 0.520 0.000
#> SRR1381821 5 0.0609 0.697 0.000 0.000 0.020 0.000 0.980
#> SRR811675 5 0.3550 0.547 0.236 0.000 0.000 0.004 0.760
#> SRR1082423 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1417296 4 0.4557 -0.617 0.000 0.476 0.008 0.516 0.000
#> SRR815944 3 0.1059 0.731 0.000 0.008 0.968 0.020 0.004
#> SRR1332775 2 0.6002 0.543 0.000 0.452 0.000 0.436 0.112
#> SRR1079143 3 0.0771 0.728 0.000 0.000 0.976 0.004 0.020
#> SRR1476807 1 0.4846 0.542 0.612 0.000 0.004 0.360 0.024
#> SRR1456634 1 0.1043 0.831 0.960 0.000 0.000 0.040 0.000
#> SRR1083171 2 0.4304 0.648 0.000 0.516 0.000 0.484 0.000
#> SRR1083337 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.1787 0.715 0.000 0.004 0.936 0.044 0.016
#> SRR1435816 5 0.5114 0.373 0.000 0.476 0.036 0.000 0.488
#> SRR1080580 1 0.4734 0.636 0.724 0.000 0.000 0.088 0.188
#> SRR1366672 2 0.1732 0.539 0.000 0.920 0.000 0.080 0.000
#> SRR1075150 2 0.4278 0.644 0.000 0.548 0.000 0.452 0.000
#> SRR814137 4 0.5888 -0.388 0.456 0.000 0.024 0.472 0.048
#> SRR1475062 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.4302 0.652 0.000 0.520 0.000 0.480 0.000
#> SRR1097728 2 0.0324 0.498 0.000 0.992 0.000 0.004 0.004
#> SRR1447172 2 0.4304 0.648 0.000 0.516 0.000 0.484 0.000
#> SRR1472486 2 0.0162 0.501 0.000 0.996 0.000 0.004 0.000
#> SRR1377881 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1420912 3 0.5717 0.386 0.000 0.000 0.608 0.260 0.132
#> SRR1313747 4 0.4650 -0.604 0.000 0.468 0.012 0.520 0.000
#> SRR1414447 3 0.0865 0.731 0.000 0.000 0.972 0.024 0.004
#> SRR1358238 1 0.5769 0.368 0.484 0.000 0.024 0.452 0.040
#> SRR1322115 1 0.0162 0.847 0.996 0.000 0.000 0.004 0.000
#> SRR1330474 1 0.1608 0.814 0.928 0.000 0.000 0.072 0.000
#> SRR1093124 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1456354 1 0.5015 0.499 0.576 0.000 0.004 0.392 0.028
#> SRR820859 1 0.5353 0.385 0.600 0.000 0.000 0.072 0.328
#> SRR1401860 1 0.2389 0.754 0.880 0.000 0.000 0.004 0.116
#> SRR1095599 2 0.4009 -0.208 0.000 0.684 0.004 0.000 0.312
#> SRR1417130 1 0.0000 0.849 1.000 0.000 0.000 0.000 0.000
#> SRR1362597 2 0.4302 0.652 0.000 0.520 0.000 0.480 0.000
#> SRR1328464 2 0.1597 0.517 0.000 0.940 0.000 0.048 0.012
#> SRR1323957 1 0.4846 0.542 0.612 0.000 0.004 0.360 0.024
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.0632 0.8392 0.000 0.976 0.000 0.000 0.000 0.024
#> SRR1089106 4 0.1910 0.7286 0.108 0.000 0.000 0.892 0.000 0.000
#> SRR1401403 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1080534 1 0.6005 0.1482 0.488 0.000 0.000 0.072 0.380 0.060
#> SRR1487638 2 0.0508 0.8443 0.000 0.984 0.000 0.004 0.000 0.012
#> SRR1320650 2 0.0790 0.8351 0.000 0.968 0.000 0.000 0.000 0.032
#> SRR1073045 6 0.3426 0.8312 0.000 0.276 0.000 0.004 0.000 0.720
#> SRR1397030 2 0.3620 0.1339 0.000 0.648 0.000 0.000 0.000 0.352
#> SRR1439976 4 0.1910 0.7286 0.108 0.000 0.000 0.892 0.000 0.000
#> SRR1454050 2 0.3238 0.7810 0.000 0.832 0.036 0.012 0.000 0.120
#> SRR1070286 4 0.4594 0.3216 0.480 0.000 0.000 0.484 0.036 0.000
#> SRR1344185 6 0.3586 0.8232 0.000 0.280 0.004 0.004 0.000 0.712
#> SRR1084228 2 0.0713 0.8377 0.000 0.972 0.000 0.000 0.000 0.028
#> SRR1101907 2 0.2703 0.6543 0.000 0.824 0.000 0.004 0.000 0.172
#> SRR1079686 2 0.0547 0.8410 0.000 0.980 0.000 0.000 0.000 0.020
#> SRR1089761 3 0.3813 0.6258 0.000 0.000 0.736 0.008 0.020 0.236
#> SRR811403 2 0.3374 0.7759 0.000 0.824 0.044 0.012 0.000 0.120
#> SRR1440560 2 0.5786 0.0685 0.000 0.444 0.420 0.012 0.000 0.124
#> SRR1079706 5 0.0405 0.7509 0.000 0.000 0.008 0.000 0.988 0.004
#> SRR1459101 3 0.1500 0.7936 0.000 0.000 0.936 0.012 0.000 0.052
#> SRR1335089 5 0.4537 0.3401 0.000 0.000 0.384 0.012 0.584 0.020
#> SRR1337840 4 0.3868 0.4096 0.496 0.000 0.000 0.504 0.000 0.000
#> SRR808682 2 0.0632 0.8392 0.000 0.976 0.000 0.000 0.000 0.024
#> SRR1443224 2 0.3662 0.7620 0.000 0.804 0.060 0.012 0.000 0.124
#> SRR1439831 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.4529 0.1534 0.000 0.000 0.460 0.024 0.512 0.004
#> SRR1457949 6 0.3050 0.8364 0.000 0.236 0.000 0.000 0.000 0.764
#> SRR1455969 2 0.3619 0.2966 0.000 0.680 0.000 0.004 0.000 0.316
#> SRR1415529 4 0.1563 0.6771 0.056 0.000 0.012 0.932 0.000 0.000
#> SRR1330018 2 0.0458 0.8430 0.000 0.984 0.000 0.000 0.000 0.016
#> SRR1370597 5 0.2221 0.7123 0.000 0.044 0.004 0.004 0.908 0.040
#> SRR1385524 2 0.0632 0.8392 0.000 0.976 0.000 0.000 0.000 0.024
#> SRR1351605 4 0.1910 0.7286 0.108 0.000 0.000 0.892 0.000 0.000
#> SRR1460148 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.5309 0.3320 0.000 0.292 0.596 0.012 0.000 0.100
#> SRR1318390 2 0.3374 0.7759 0.000 0.824 0.044 0.012 0.000 0.120
#> SRR1073095 2 0.0146 0.8454 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1410612 2 0.0146 0.8454 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1076892 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.1297 0.7989 0.000 0.000 0.948 0.040 0.000 0.012
#> SRR1481375 6 0.3276 0.8190 0.000 0.228 0.000 0.004 0.004 0.764
#> SRR1079356 5 0.3230 0.6308 0.012 0.000 0.000 0.212 0.776 0.000
#> SRR1455545 4 0.1910 0.7286 0.108 0.000 0.000 0.892 0.000 0.000
#> SRR1406157 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.0146 0.8454 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1420259 6 0.3244 0.8350 0.000 0.268 0.000 0.000 0.000 0.732
#> SRR1376963 2 0.3662 0.7620 0.000 0.804 0.060 0.012 0.000 0.124
#> SRR1101061 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.8458 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1334791 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0146 0.8458 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1330450 3 0.4718 0.5476 0.000 0.000 0.684 0.220 0.088 0.008
#> SRR1409108 2 0.3561 0.7680 0.000 0.812 0.056 0.012 0.000 0.120
#> SRR1416865 5 0.0405 0.7509 0.000 0.000 0.008 0.004 0.988 0.000
#> SRR1071832 4 0.1387 0.6915 0.068 0.000 0.000 0.932 0.000 0.000
#> SRR1093814 2 0.3662 0.7620 0.000 0.804 0.060 0.012 0.000 0.124
#> SRR1381821 5 0.0146 0.7505 0.000 0.000 0.000 0.004 0.996 0.000
#> SRR811675 5 0.3533 0.5661 0.236 0.000 0.000 0.012 0.748 0.004
#> SRR1082423 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.2758 0.7947 0.000 0.860 0.016 0.012 0.000 0.112
#> SRR815944 3 0.0632 0.7982 0.000 0.000 0.976 0.000 0.000 0.024
#> SRR1332775 2 0.4671 0.5190 0.000 0.700 0.004 0.000 0.156 0.140
#> SRR1079143 3 0.1332 0.7970 0.000 0.000 0.952 0.028 0.012 0.008
#> SRR1476807 4 0.3868 0.4180 0.492 0.000 0.000 0.508 0.000 0.000
#> SRR1456634 1 0.1141 0.8430 0.948 0.000 0.000 0.052 0.000 0.000
#> SRR1083171 2 0.0458 0.8459 0.000 0.984 0.000 0.000 0.000 0.016
#> SRR1083337 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.1471 0.7858 0.000 0.000 0.932 0.064 0.000 0.004
#> SRR1435816 6 0.3619 0.3956 0.000 0.004 0.000 0.000 0.316 0.680
#> SRR1080580 1 0.6175 0.2765 0.528 0.000 0.000 0.296 0.128 0.048
#> SRR1366672 6 0.3907 0.6346 0.000 0.408 0.000 0.004 0.000 0.588
#> SRR1075150 2 0.1610 0.7881 0.000 0.916 0.000 0.000 0.000 0.084
#> SRR814137 4 0.1910 0.7286 0.108 0.000 0.000 0.892 0.000 0.000
#> SRR1475062 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.0146 0.8454 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1097728 6 0.3134 0.8166 0.000 0.208 0.000 0.004 0.004 0.784
#> SRR1447172 2 0.0291 0.8457 0.000 0.992 0.000 0.004 0.000 0.004
#> SRR1472486 6 0.2941 0.8304 0.000 0.220 0.000 0.000 0.000 0.780
#> SRR1377881 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 4 0.5104 -0.1022 0.000 0.000 0.372 0.540 0.088 0.000
#> SRR1313747 2 0.3092 0.7853 0.000 0.840 0.028 0.012 0.000 0.120
#> SRR1414447 3 0.0405 0.7982 0.000 0.000 0.988 0.004 0.000 0.008
#> SRR1358238 4 0.2664 0.7152 0.184 0.000 0.000 0.816 0.000 0.000
#> SRR1322115 1 0.1232 0.8681 0.956 0.000 0.000 0.024 0.004 0.016
#> SRR1330474 1 0.1444 0.8168 0.928 0.000 0.000 0.072 0.000 0.000
#> SRR1093124 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1456354 4 0.3747 0.5674 0.396 0.000 0.000 0.604 0.000 0.000
#> SRR820859 1 0.6210 0.3212 0.532 0.000 0.000 0.164 0.264 0.040
#> SRR1401860 1 0.3526 0.7385 0.828 0.000 0.000 0.056 0.088 0.028
#> SRR1095599 6 0.4301 0.5678 0.000 0.064 0.000 0.000 0.240 0.696
#> SRR1417130 1 0.0000 0.8997 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1362597 2 0.0547 0.8411 0.000 0.980 0.000 0.000 0.000 0.020
#> SRR1328464 6 0.3988 0.7439 0.000 0.324 0.000 0.004 0.012 0.660
#> SRR1323957 4 0.3868 0.4096 0.496 0.000 0.000 0.504 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 17633 rows and 97 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'MAD' method.
#> Subgroups are detected by 'pam' method.
#> Performed in total 1250 partitions by row resampling.
#> Best k for subgroups seems to be 2.
#>
#> Following methods can be applied to this 'ConsensusPartition' object:
#> [1] "cola_report" "collect_classes" "collect_plots"
#> [4] "collect_stats" "colnames" "compare_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.All the plots in panels can be made by individual functions and they are plotted later in this section.
select_partition_number()
produces several plots showing different
statistics for choosing “optimized” k
. There are following statistics:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower PAC score, higher mean silhouette score or higher
concordance corresponds to better partition. Rand index and Jaccard index
measure how similar the current partition is compared to partition with k-1
.
If they are too similar, we won't accept k
is better than k-1
.
select_partition_number(res)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 1.000 0.954 0.981 0.4505 0.546 0.546
#> 3 3 0.754 0.882 0.939 0.4709 0.756 0.566
#> 4 4 0.823 0.806 0.917 0.1030 0.895 0.701
#> 5 5 0.795 0.808 0.896 0.0703 0.899 0.655
#> 6 6 0.824 0.740 0.874 0.0539 0.912 0.637
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
#> SRR1397242 1 0.0000 0.966 1.000 0.000
#> SRR1093410 1 0.0000 0.966 1.000 0.000
#> SRR1380523 2 0.0000 0.986 0.000 1.000
#> SRR1089106 1 0.0000 0.966 1.000 0.000
#> SRR1401403 1 0.0000 0.966 1.000 0.000
#> SRR1080534 2 0.1414 0.976 0.020 0.980
#> SRR1487638 2 0.0000 0.986 0.000 1.000
#> SRR1320650 2 0.0000 0.986 0.000 1.000
#> SRR1073045 2 0.0000 0.986 0.000 1.000
#> SRR1397030 2 0.0000 0.986 0.000 1.000
#> SRR1439976 1 0.0000 0.966 1.000 0.000
#> SRR1454050 2 0.0000 0.986 0.000 1.000
#> SRR1070286 1 0.0000 0.966 1.000 0.000
#> SRR1344185 2 0.0000 0.986 0.000 1.000
#> SRR1084228 2 0.0000 0.986 0.000 1.000
#> SRR1101907 2 0.0000 0.986 0.000 1.000
#> SRR1079686 2 0.0000 0.986 0.000 1.000
#> SRR1089761 2 0.1414 0.976 0.020 0.980
#> SRR811403 2 0.0000 0.986 0.000 1.000
#> SRR1440560 2 0.0000 0.986 0.000 1.000
#> SRR1079706 2 0.1414 0.976 0.020 0.980
#> SRR1459101 2 0.1414 0.976 0.020 0.980
#> SRR1335089 2 0.1414 0.976 0.020 0.980
#> SRR1337840 1 0.0000 0.966 1.000 0.000
#> SRR808682 2 0.0000 0.986 0.000 1.000
#> SRR1443224 2 0.0000 0.986 0.000 1.000
#> SRR1439831 1 0.0000 0.966 1.000 0.000
#> SRR1087463 2 0.1414 0.976 0.020 0.980
#> SRR1457949 2 0.0000 0.986 0.000 1.000
#> SRR1455969 2 0.0000 0.986 0.000 1.000
#> SRR1415529 2 0.9944 0.117 0.456 0.544
#> SRR1330018 2 0.0000 0.986 0.000 1.000
#> SRR1370597 2 0.0000 0.986 0.000 1.000
#> SRR1385524 2 0.0000 0.986 0.000 1.000
#> SRR1351605 1 0.4939 0.864 0.892 0.108
#> SRR1460148 1 0.0000 0.966 1.000 0.000
#> SRR1354159 2 0.0000 0.986 0.000 1.000
#> SRR1318390 2 0.0000 0.986 0.000 1.000
#> SRR1073095 2 0.0000 0.986 0.000 1.000
#> SRR1410612 2 0.0000 0.986 0.000 1.000
#> SRR1076892 1 0.0000 0.966 1.000 0.000
#> SRR1340989 2 0.1414 0.976 0.020 0.980
#> SRR1481375 2 0.0000 0.986 0.000 1.000
#> SRR1079356 1 0.9044 0.541 0.680 0.320
#> SRR1455545 1 0.0000 0.966 1.000 0.000
#> SRR1406157 1 0.0000 0.966 1.000 0.000
#> SRR1445920 2 0.0000 0.986 0.000 1.000
#> SRR1420259 2 0.0000 0.986 0.000 1.000
#> SRR1376963 2 0.0000 0.986 0.000 1.000
#> SRR1101061 1 0.0000 0.966 1.000 0.000
#> SRR1414496 2 0.0000 0.986 0.000 1.000
#> SRR1334791 1 0.0000 0.966 1.000 0.000
#> SRR1072129 2 0.0000 0.986 0.000 1.000
#> SRR1330450 2 0.1414 0.976 0.020 0.980
#> SRR1409108 2 0.0000 0.986 0.000 1.000
#> SRR1416865 2 0.1414 0.976 0.020 0.980
#> SRR1071832 1 0.9850 0.269 0.572 0.428
#> SRR1093814 2 0.0000 0.986 0.000 1.000
#> SRR1381821 2 0.1414 0.976 0.020 0.980
#> SRR811675 1 0.0672 0.960 0.992 0.008
#> SRR1082423 1 0.0000 0.966 1.000 0.000
#> SRR1417296 2 0.0000 0.986 0.000 1.000
#> SRR815944 2 0.0000 0.986 0.000 1.000
#> SRR1332775 2 0.0000 0.986 0.000 1.000
#> SRR1079143 2 0.1414 0.976 0.020 0.980
#> SRR1476807 1 0.0000 0.966 1.000 0.000
#> SRR1456634 1 0.0000 0.966 1.000 0.000
#> SRR1083171 2 0.0000 0.986 0.000 1.000
#> SRR1083337 1 0.0000 0.966 1.000 0.000
#> SRR1377672 2 0.1414 0.976 0.020 0.980
#> SRR1435816 2 0.0672 0.982 0.008 0.992
#> SRR1080580 2 0.1414 0.976 0.020 0.980
#> SRR1366672 2 0.0000 0.986 0.000 1.000
#> SRR1075150 2 0.0000 0.986 0.000 1.000
#> SRR814137 1 0.7056 0.761 0.808 0.192
#> SRR1475062 1 0.0000 0.966 1.000 0.000
#> SRR1340028 1 0.0000 0.966 1.000 0.000
#> SRR1070789 2 0.0000 0.986 0.000 1.000
#> SRR1097728 2 0.0000 0.986 0.000 1.000
#> SRR1447172 2 0.0000 0.986 0.000 1.000
#> SRR1472486 2 0.0000 0.986 0.000 1.000
#> SRR1377881 1 0.0000 0.966 1.000 0.000
#> SRR1420912 2 0.1414 0.976 0.020 0.980
#> SRR1313747 2 0.0000 0.986 0.000 1.000
#> SRR1414447 2 0.0000 0.986 0.000 1.000
#> SRR1358238 1 0.0000 0.966 1.000 0.000
#> SRR1322115 1 0.0000 0.966 1.000 0.000
#> SRR1330474 1 0.0000 0.966 1.000 0.000
#> SRR1093124 1 0.0000 0.966 1.000 0.000
#> SRR1456354 1 0.0000 0.966 1.000 0.000
#> SRR820859 2 0.1414 0.976 0.020 0.980
#> SRR1401860 2 0.3274 0.936 0.060 0.940
#> SRR1095599 2 0.0000 0.986 0.000 1.000
#> SRR1417130 1 0.0000 0.966 1.000 0.000
#> SRR1362597 2 0.0000 0.986 0.000 1.000
#> SRR1328464 2 0.0000 0.986 0.000 1.000
#> SRR1323957 1 0.0000 0.966 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1089106 1 0.4750 0.813 0.784 0.000 0.216
#> SRR1401403 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1080534 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1487638 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1320650 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1073045 3 0.6126 0.474 0.000 0.400 0.600
#> SRR1397030 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1439976 1 0.4555 0.831 0.800 0.000 0.200
#> SRR1454050 2 0.1964 0.905 0.000 0.944 0.056
#> SRR1070286 1 0.4555 0.831 0.800 0.000 0.200
#> SRR1344185 3 0.1411 0.888 0.000 0.036 0.964
#> SRR1084228 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1101907 3 0.4555 0.801 0.000 0.200 0.800
#> SRR1079686 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1089761 3 0.0000 0.899 0.000 0.000 1.000
#> SRR811403 2 0.4555 0.709 0.000 0.800 0.200
#> SRR1440560 3 0.4555 0.801 0.000 0.200 0.800
#> SRR1079706 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1459101 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1335089 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1337840 1 0.0000 0.946 1.000 0.000 0.000
#> SRR808682 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1443224 3 0.4555 0.801 0.000 0.200 0.800
#> SRR1439831 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1087463 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1457949 3 0.4504 0.804 0.000 0.196 0.804
#> SRR1455969 3 0.3879 0.833 0.000 0.152 0.848
#> SRR1415529 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1330018 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1370597 3 0.0237 0.898 0.000 0.004 0.996
#> SRR1385524 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1351605 1 0.4555 0.831 0.800 0.000 0.200
#> SRR1460148 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1354159 3 0.4555 0.801 0.000 0.200 0.800
#> SRR1318390 3 0.5327 0.712 0.000 0.272 0.728
#> SRR1073095 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1340989 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1481375 3 0.4555 0.801 0.000 0.200 0.800
#> SRR1079356 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1455545 1 0.3686 0.873 0.860 0.000 0.140
#> SRR1406157 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1420259 3 0.4555 0.802 0.000 0.200 0.800
#> SRR1376963 3 0.6168 0.428 0.000 0.412 0.588
#> SRR1101061 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1330450 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1409108 2 0.4399 0.729 0.000 0.812 0.188
#> SRR1416865 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1071832 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1093814 3 0.4555 0.801 0.000 0.200 0.800
#> SRR1381821 3 0.0000 0.899 0.000 0.000 1.000
#> SRR811675 1 0.4555 0.831 0.800 0.000 0.200
#> SRR1082423 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.958 0.000 1.000 0.000
#> SRR815944 3 0.0237 0.898 0.000 0.004 0.996
#> SRR1332775 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1079143 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1476807 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1456634 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1083171 2 0.0237 0.955 0.000 0.996 0.004
#> SRR1083337 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1377672 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1435816 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1080580 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1366672 2 0.0237 0.955 0.000 0.996 0.004
#> SRR1075150 2 0.0000 0.958 0.000 1.000 0.000
#> SRR814137 1 0.4605 0.827 0.796 0.000 0.204
#> SRR1475062 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1097728 3 0.4452 0.807 0.000 0.192 0.808
#> SRR1447172 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1472486 2 0.6291 -0.101 0.000 0.532 0.468
#> SRR1377881 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1420912 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1313747 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1414447 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1358238 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1322115 1 0.4555 0.831 0.800 0.000 0.200
#> SRR1330474 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1456354 1 0.1860 0.922 0.948 0.000 0.052
#> SRR820859 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1401860 3 0.0000 0.899 0.000 0.000 1.000
#> SRR1095599 3 0.4504 0.804 0.000 0.196 0.804
#> SRR1417130 1 0.0000 0.946 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.958 0.000 1.000 0.000
#> SRR1328464 3 0.3038 0.860 0.000 0.104 0.896
#> SRR1323957 1 0.0000 0.946 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1089106 4 0.0000 0.69674 0.000 0.000 0.000 1.000
#> SRR1401403 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1080534 3 0.4961 -0.00489 0.000 0.000 0.552 0.448
#> SRR1487638 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1320650 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1073045 3 0.3610 0.66804 0.000 0.200 0.800 0.000
#> SRR1397030 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1439976 4 0.0000 0.69674 0.000 0.000 0.000 1.000
#> SRR1454050 2 0.3764 0.72336 0.000 0.784 0.216 0.000
#> SRR1070286 4 0.4817 0.40701 0.388 0.000 0.000 0.612
#> SRR1344185 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1084228 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1101907 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1079686 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1089761 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR811403 2 0.3610 0.72235 0.000 0.800 0.200 0.000
#> SRR1440560 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1079706 3 0.4134 0.56066 0.000 0.000 0.740 0.260
#> SRR1459101 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1335089 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1337840 1 0.4817 0.53094 0.612 0.000 0.000 0.388
#> SRR808682 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1443224 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1439831 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1087463 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1457949 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1455969 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1415529 3 0.4730 0.28855 0.000 0.000 0.636 0.364
#> SRR1330018 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1370597 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1385524 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1351605 4 0.0000 0.69674 0.000 0.000 0.000 1.000
#> SRR1460148 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1354159 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1318390 3 0.2011 0.83070 0.000 0.080 0.920 0.000
#> SRR1073095 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1410612 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1076892 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1340989 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1481375 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1079356 4 0.4804 0.47100 0.000 0.000 0.384 0.616
#> SRR1455545 4 0.0000 0.69674 0.000 0.000 0.000 1.000
#> SRR1406157 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1420259 3 0.0188 0.90438 0.000 0.004 0.996 0.000
#> SRR1376963 3 0.4888 0.32348 0.000 0.412 0.588 0.000
#> SRR1101061 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1334791 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1330450 3 0.0817 0.88885 0.000 0.000 0.976 0.024
#> SRR1409108 2 0.3486 0.73980 0.000 0.812 0.188 0.000
#> SRR1416865 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1071832 4 0.4817 0.46521 0.000 0.000 0.388 0.612
#> SRR1093814 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1381821 4 0.4817 0.46521 0.000 0.000 0.388 0.612
#> SRR811675 4 0.4817 0.40701 0.388 0.000 0.000 0.612
#> SRR1082423 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1417296 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR815944 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1332775 2 0.0592 0.94691 0.000 0.984 0.016 0.000
#> SRR1079143 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1476807 1 0.4925 0.46619 0.572 0.000 0.000 0.428
#> SRR1456634 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1083171 2 0.1118 0.92920 0.000 0.964 0.036 0.000
#> SRR1083337 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1377672 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1435816 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1080580 3 0.3801 0.63571 0.000 0.000 0.780 0.220
#> SRR1366672 2 0.3123 0.79783 0.000 0.844 0.156 0.000
#> SRR1075150 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR814137 4 0.0000 0.69674 0.000 0.000 0.000 1.000
#> SRR1475062 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1070789 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1097728 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1447172 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1472486 3 0.4624 0.45999 0.000 0.340 0.660 0.000
#> SRR1377881 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1420912 3 0.1474 0.86371 0.000 0.000 0.948 0.052
#> SRR1313747 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1414447 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1358238 4 0.1867 0.63283 0.072 0.000 0.000 0.928
#> SRR1322115 4 0.4843 0.39263 0.396 0.000 0.000 0.604
#> SRR1330474 1 0.4817 0.53094 0.612 0.000 0.000 0.388
#> SRR1093124 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1456354 4 0.0000 0.69674 0.000 0.000 0.000 1.000
#> SRR820859 4 0.4817 0.46521 0.000 0.000 0.388 0.612
#> SRR1401860 4 0.4817 0.46521 0.000 0.000 0.388 0.612
#> SRR1095599 3 0.0000 0.90742 0.000 0.000 1.000 0.000
#> SRR1417130 1 0.0000 0.91231 1.000 0.000 0.000 0.000
#> SRR1362597 2 0.0000 0.95928 0.000 1.000 0.000 0.000
#> SRR1328464 3 0.0592 0.89463 0.000 0.016 0.984 0.000
#> SRR1323957 1 0.4817 0.53094 0.612 0.000 0.000 0.388
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.909 0.000 1.000 0.000 0.000 0.000
#> SRR1089106 4 0.0162 0.752 0.000 0.000 0.000 0.996 0.004
#> SRR1401403 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1080534 5 0.4121 0.752 0.000 0.000 0.112 0.100 0.788
#> SRR1487638 2 0.0000 0.909 0.000 1.000 0.000 0.000 0.000
#> SRR1320650 2 0.0000 0.909 0.000 1.000 0.000 0.000 0.000
#> SRR1073045 3 0.3109 0.680 0.000 0.200 0.800 0.000 0.000
#> SRR1397030 2 0.0000 0.909 0.000 1.000 0.000 0.000 0.000
#> SRR1439976 4 0.0000 0.754 0.000 0.000 0.000 1.000 0.000
#> SRR1454050 2 0.3242 0.694 0.000 0.784 0.216 0.000 0.000
#> SRR1070286 1 0.5626 0.271 0.572 0.000 0.000 0.336 0.092
#> SRR1344185 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1084228 2 0.0000 0.909 0.000 1.000 0.000 0.000 0.000
#> SRR1101907 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1079686 2 0.0000 0.909 0.000 1.000 0.000 0.000 0.000
#> SRR1089761 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR811403 2 0.3109 0.700 0.000 0.800 0.200 0.000 0.000
#> SRR1440560 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1079706 5 0.2676 0.778 0.000 0.000 0.080 0.036 0.884
#> SRR1459101 3 0.1043 0.876 0.000 0.000 0.960 0.000 0.040
#> SRR1335089 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1337840 4 0.4150 0.521 0.388 0.000 0.000 0.612 0.000
#> SRR808682 2 0.0000 0.909 0.000 1.000 0.000 0.000 0.000
#> SRR1443224 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1439831 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1457949 3 0.1671 0.857 0.000 0.000 0.924 0.000 0.076
#> SRR1455969 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1415529 3 0.2629 0.788 0.000 0.000 0.860 0.136 0.004
#> SRR1330018 2 0.0000 0.909 0.000 1.000 0.000 0.000 0.000
#> SRR1370597 5 0.2329 0.767 0.000 0.000 0.124 0.000 0.876
#> SRR1385524 2 0.0000 0.909 0.000 1.000 0.000 0.000 0.000
#> SRR1351605 4 0.0000 0.754 0.000 0.000 0.000 1.000 0.000
#> SRR1460148 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1318390 3 0.1732 0.841 0.000 0.080 0.920 0.000 0.000
#> SRR1073095 2 0.2230 0.895 0.000 0.884 0.000 0.000 0.116
#> SRR1410612 2 0.2230 0.895 0.000 0.884 0.000 0.000 0.116
#> SRR1076892 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1481375 3 0.2377 0.822 0.000 0.000 0.872 0.000 0.128
#> SRR1079356 5 0.3561 0.738 0.000 0.000 0.000 0.260 0.740
#> SRR1455545 4 0.0000 0.754 0.000 0.000 0.000 1.000 0.000
#> SRR1406157 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.2230 0.895 0.000 0.884 0.000 0.000 0.116
#> SRR1420259 3 0.3333 0.747 0.000 0.004 0.788 0.000 0.208
#> SRR1376963 3 0.4210 0.363 0.000 0.412 0.588 0.000 0.000
#> SRR1101061 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.2230 0.895 0.000 0.884 0.000 0.000 0.116
#> SRR1334791 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.2230 0.895 0.000 0.884 0.000 0.000 0.116
#> SRR1330450 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1409108 2 0.5072 0.698 0.000 0.696 0.188 0.000 0.116
#> SRR1416865 5 0.2732 0.762 0.000 0.000 0.160 0.000 0.840
#> SRR1071832 3 0.5870 0.369 0.000 0.000 0.584 0.276 0.140
#> SRR1093814 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1381821 5 0.3561 0.738 0.000 0.000 0.000 0.260 0.740
#> SRR811675 5 0.3561 0.738 0.000 0.000 0.000 0.260 0.740
#> SRR1082423 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.2230 0.895 0.000 0.884 0.000 0.000 0.116
#> SRR815944 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1332775 5 0.3282 0.660 0.000 0.188 0.008 0.000 0.804
#> SRR1079143 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1476807 4 0.4150 0.521 0.388 0.000 0.000 0.612 0.000
#> SRR1456634 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1083171 2 0.0963 0.892 0.000 0.964 0.036 0.000 0.000
#> SRR1083337 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1435816 5 0.3039 0.725 0.000 0.000 0.192 0.000 0.808
#> SRR1080580 3 0.3301 0.787 0.000 0.000 0.848 0.072 0.080
#> SRR1366672 2 0.4787 0.601 0.000 0.712 0.080 0.000 0.208
#> SRR1075150 2 0.0000 0.909 0.000 1.000 0.000 0.000 0.000
#> SRR814137 4 0.0162 0.752 0.000 0.000 0.000 0.996 0.004
#> SRR1475062 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.2230 0.895 0.000 0.884 0.000 0.000 0.116
#> SRR1097728 3 0.2230 0.831 0.000 0.000 0.884 0.000 0.116
#> SRR1447172 2 0.2230 0.895 0.000 0.884 0.000 0.000 0.116
#> SRR1472486 3 0.6134 0.312 0.000 0.340 0.516 0.000 0.144
#> SRR1377881 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1420912 3 0.2818 0.790 0.000 0.000 0.856 0.132 0.012
#> SRR1313747 2 0.2127 0.897 0.000 0.892 0.000 0.000 0.108
#> SRR1414447 3 0.0000 0.891 0.000 0.000 1.000 0.000 0.000
#> SRR1358238 4 0.0290 0.753 0.008 0.000 0.000 0.992 0.000
#> SRR1322115 1 0.5000 0.257 0.576 0.000 0.000 0.388 0.036
#> SRR1330474 4 0.4210 0.476 0.412 0.000 0.000 0.588 0.000
#> SRR1093124 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1456354 4 0.0000 0.754 0.000 0.000 0.000 1.000 0.000
#> SRR820859 5 0.3561 0.738 0.000 0.000 0.000 0.260 0.740
#> SRR1401860 5 0.4040 0.738 0.000 0.000 0.016 0.260 0.724
#> SRR1095599 5 0.3395 0.682 0.000 0.000 0.236 0.000 0.764
#> SRR1417130 1 0.0000 0.939 1.000 0.000 0.000 0.000 0.000
#> SRR1362597 2 0.0000 0.909 0.000 1.000 0.000 0.000 0.000
#> SRR1328464 3 0.3055 0.800 0.000 0.016 0.840 0.000 0.144
#> SRR1323957 4 0.4150 0.521 0.388 0.000 0.000 0.612 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.3706 0.535 0.000 0.620 0.000 0.000 0.000 0.380
#> SRR1089106 4 0.1493 0.715 0.000 0.004 0.000 0.936 0.004 0.056
#> SRR1401403 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1080534 5 0.1765 0.740 0.000 0.000 0.096 0.000 0.904 0.000
#> SRR1487638 2 0.3706 0.535 0.000 0.620 0.000 0.000 0.000 0.380
#> SRR1320650 6 0.1204 0.730 0.000 0.056 0.000 0.000 0.000 0.944
#> SRR1073045 6 0.3823 0.358 0.000 0.000 0.436 0.000 0.000 0.564
#> SRR1397030 6 0.1984 0.720 0.000 0.056 0.000 0.000 0.032 0.912
#> SRR1439976 4 0.0000 0.758 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1454050 3 0.3884 0.580 0.000 0.036 0.724 0.000 0.000 0.240
#> SRR1070286 1 0.6143 0.215 0.536 0.004 0.000 0.312 0.092 0.056
#> SRR1344185 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1084228 6 0.1204 0.730 0.000 0.056 0.000 0.000 0.000 0.944
#> SRR1101907 6 0.3823 0.358 0.000 0.000 0.436 0.000 0.000 0.564
#> SRR1079686 6 0.1204 0.730 0.000 0.056 0.000 0.000 0.000 0.944
#> SRR1089761 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR811403 6 0.1204 0.730 0.000 0.056 0.000 0.000 0.000 0.944
#> SRR1440560 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1079706 5 0.0000 0.771 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1459101 3 0.1075 0.859 0.000 0.000 0.952 0.000 0.048 0.000
#> SRR1335089 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1337840 4 0.3659 0.555 0.364 0.000 0.000 0.636 0.000 0.000
#> SRR808682 6 0.1444 0.720 0.000 0.072 0.000 0.000 0.000 0.928
#> SRR1443224 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1439831 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1457949 3 0.2631 0.755 0.000 0.000 0.820 0.000 0.180 0.000
#> SRR1455969 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1415529 3 0.3296 0.753 0.000 0.004 0.824 0.132 0.004 0.036
#> SRR1330018 6 0.1204 0.730 0.000 0.056 0.000 0.000 0.000 0.944
#> SRR1370597 5 0.0260 0.772 0.000 0.000 0.008 0.000 0.992 0.000
#> SRR1385524 6 0.1610 0.710 0.000 0.084 0.000 0.000 0.000 0.916
#> SRR1351605 4 0.0000 0.758 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1460148 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1318390 3 0.3862 -0.123 0.000 0.000 0.524 0.000 0.000 0.476
#> SRR1073095 2 0.0146 0.877 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1410612 2 0.0146 0.877 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1076892 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1481375 6 0.5595 0.491 0.000 0.000 0.192 0.000 0.268 0.540
#> SRR1079356 5 0.4305 0.710 0.000 0.004 0.000 0.236 0.704 0.056
#> SRR1455545 4 0.0000 0.758 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1406157 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.0146 0.877 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1420259 6 0.5268 0.442 0.000 0.000 0.108 0.000 0.360 0.532
#> SRR1376963 6 0.4078 0.422 0.000 0.024 0.320 0.000 0.000 0.656
#> SRR1101061 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.0146 0.877 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1334791 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0146 0.877 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1330450 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1409108 6 0.3833 0.289 0.000 0.444 0.000 0.000 0.000 0.556
#> SRR1416865 5 0.1863 0.758 0.000 0.000 0.104 0.000 0.896 0.000
#> SRR1071832 3 0.6338 0.321 0.000 0.004 0.548 0.252 0.140 0.056
#> SRR1093814 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1381821 5 0.4305 0.710 0.000 0.004 0.000 0.236 0.704 0.056
#> SRR811675 5 0.4305 0.710 0.000 0.004 0.000 0.236 0.704 0.056
#> SRR1082423 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.0146 0.877 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR815944 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1332775 5 0.1701 0.738 0.000 0.000 0.008 0.000 0.920 0.072
#> SRR1079143 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1476807 4 0.3659 0.555 0.364 0.000 0.000 0.636 0.000 0.000
#> SRR1456634 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1083171 6 0.1995 0.725 0.000 0.052 0.036 0.000 0.000 0.912
#> SRR1083337 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1435816 5 0.1501 0.749 0.000 0.000 0.076 0.000 0.924 0.000
#> SRR1080580 3 0.3221 0.776 0.000 0.000 0.848 0.048 0.080 0.024
#> SRR1366672 6 0.4903 0.468 0.000 0.000 0.072 0.000 0.360 0.568
#> SRR1075150 6 0.1204 0.730 0.000 0.056 0.000 0.000 0.000 0.944
#> SRR814137 4 0.1493 0.715 0.000 0.004 0.000 0.936 0.004 0.056
#> SRR1475062 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.0146 0.877 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1097728 3 0.3221 0.658 0.000 0.000 0.736 0.000 0.264 0.000
#> SRR1447172 2 0.0146 0.877 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1472486 6 0.5400 0.514 0.000 0.000 0.164 0.000 0.264 0.572
#> SRR1377881 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 3 0.2531 0.778 0.000 0.000 0.856 0.132 0.012 0.000
#> SRR1313747 2 0.1141 0.851 0.000 0.948 0.000 0.000 0.000 0.052
#> SRR1414447 3 0.0000 0.883 0.000 0.000 1.000 0.000 0.000 0.000
#> SRR1358238 4 0.0000 0.758 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1322115 1 0.5602 0.198 0.540 0.004 0.000 0.364 0.036 0.056
#> SRR1330474 4 0.3747 0.498 0.396 0.000 0.000 0.604 0.000 0.000
#> SRR1093124 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1456354 4 0.0000 0.758 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR820859 5 0.4305 0.710 0.000 0.004 0.000 0.236 0.704 0.056
#> SRR1401860 5 0.4731 0.707 0.000 0.004 0.016 0.236 0.688 0.056
#> SRR1095599 5 0.2048 0.708 0.000 0.000 0.120 0.000 0.880 0.000
#> SRR1417130 1 0.0000 0.936 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1362597 2 0.3706 0.535 0.000 0.620 0.000 0.000 0.000 0.380
#> SRR1328464 3 0.3390 0.616 0.000 0.000 0.704 0.000 0.296 0.000
#> SRR1323957 4 0.3659 0.555 0.364 0.000 0.000 0.636 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 17633 rows and 97 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'MAD' method.
#> Subgroups are detected by 'mclust' method.
#> Performed in total 1250 partitions by row resampling.
#> Best k for subgroups seems to be 5.
#>
#> Following methods can be applied to this 'ConsensusPartition' object:
#> [1] "cola_report" "collect_classes" "collect_plots"
#> [4] "collect_stats" "colnames" "compare_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.All the plots in panels can be made by individual functions and they are plotted later in this section.
select_partition_number()
produces several plots showing different
statistics for choosing “optimized” k
. There are following statistics:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower PAC score, higher mean silhouette score or higher
concordance corresponds to better partition. Rand index and Jaccard index
measure how similar the current partition is compared to partition with k-1
.
If they are too similar, we won't accept k
is better than k-1
.
select_partition_number(res)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 0.682 0.832 0.924 0.4039 0.657 0.657
#> 3 3 0.613 0.628 0.724 0.4982 0.777 0.662
#> 4 4 0.517 0.619 0.792 0.1833 0.730 0.448
#> 5 5 0.633 0.685 0.787 0.0891 0.817 0.440
#> 6 6 0.694 0.620 0.658 0.0478 0.904 0.607
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
#> SRR1397242 1 0.0000 1.000 1.000 0.000
#> SRR1093410 1 0.0000 1.000 1.000 0.000
#> SRR1380523 2 0.0000 0.894 0.000 1.000
#> SRR1089106 2 0.9933 0.359 0.452 0.548
#> SRR1401403 1 0.0000 1.000 1.000 0.000
#> SRR1080534 2 0.4690 0.822 0.100 0.900
#> SRR1487638 2 0.0000 0.894 0.000 1.000
#> SRR1320650 2 0.0000 0.894 0.000 1.000
#> SRR1073045 2 0.0000 0.894 0.000 1.000
#> SRR1397030 2 0.0000 0.894 0.000 1.000
#> SRR1439976 2 0.9933 0.359 0.452 0.548
#> SRR1454050 2 0.0000 0.894 0.000 1.000
#> SRR1070286 2 0.9909 0.377 0.444 0.556
#> SRR1344185 2 0.0000 0.894 0.000 1.000
#> SRR1084228 2 0.0000 0.894 0.000 1.000
#> SRR1101907 2 0.0000 0.894 0.000 1.000
#> SRR1079686 2 0.0000 0.894 0.000 1.000
#> SRR1089761 2 0.0000 0.894 0.000 1.000
#> SRR811403 2 0.0000 0.894 0.000 1.000
#> SRR1440560 2 0.0000 0.894 0.000 1.000
#> SRR1079706 2 0.0000 0.894 0.000 1.000
#> SRR1459101 2 0.0000 0.894 0.000 1.000
#> SRR1335089 2 0.0000 0.894 0.000 1.000
#> SRR1337840 1 0.0000 1.000 1.000 0.000
#> SRR808682 2 0.0000 0.894 0.000 1.000
#> SRR1443224 2 0.0000 0.894 0.000 1.000
#> SRR1439831 1 0.0000 1.000 1.000 0.000
#> SRR1087463 2 0.0000 0.894 0.000 1.000
#> SRR1457949 2 0.0000 0.894 0.000 1.000
#> SRR1455969 2 0.0000 0.894 0.000 1.000
#> SRR1415529 2 0.9754 0.449 0.408 0.592
#> SRR1330018 2 0.0000 0.894 0.000 1.000
#> SRR1370597 2 0.0000 0.894 0.000 1.000
#> SRR1385524 2 0.0000 0.894 0.000 1.000
#> SRR1351605 2 0.9933 0.359 0.452 0.548
#> SRR1460148 1 0.0000 1.000 1.000 0.000
#> SRR1354159 2 0.0000 0.894 0.000 1.000
#> SRR1318390 2 0.0000 0.894 0.000 1.000
#> SRR1073095 2 0.0000 0.894 0.000 1.000
#> SRR1410612 2 0.0000 0.894 0.000 1.000
#> SRR1076892 1 0.0000 1.000 1.000 0.000
#> SRR1340989 2 0.0000 0.894 0.000 1.000
#> SRR1481375 2 0.0000 0.894 0.000 1.000
#> SRR1079356 2 0.9710 0.463 0.400 0.600
#> SRR1455545 2 0.9933 0.359 0.452 0.548
#> SRR1406157 1 0.0000 1.000 1.000 0.000
#> SRR1445920 2 0.0000 0.894 0.000 1.000
#> SRR1420259 2 0.0000 0.894 0.000 1.000
#> SRR1376963 2 0.0000 0.894 0.000 1.000
#> SRR1101061 1 0.0000 1.000 1.000 0.000
#> SRR1414496 2 0.0000 0.894 0.000 1.000
#> SRR1334791 1 0.0000 1.000 1.000 0.000
#> SRR1072129 2 0.0000 0.894 0.000 1.000
#> SRR1330450 2 0.0000 0.894 0.000 1.000
#> SRR1409108 2 0.0000 0.894 0.000 1.000
#> SRR1416865 2 0.0000 0.894 0.000 1.000
#> SRR1071832 2 0.9850 0.410 0.428 0.572
#> SRR1093814 2 0.0000 0.894 0.000 1.000
#> SRR1381821 2 0.6048 0.780 0.148 0.852
#> SRR811675 2 0.9710 0.463 0.400 0.600
#> SRR1082423 1 0.0000 1.000 1.000 0.000
#> SRR1417296 2 0.0000 0.894 0.000 1.000
#> SRR815944 2 0.0000 0.894 0.000 1.000
#> SRR1332775 2 0.0000 0.894 0.000 1.000
#> SRR1079143 2 0.0000 0.894 0.000 1.000
#> SRR1476807 1 0.0376 0.995 0.996 0.004
#> SRR1456634 1 0.0000 1.000 1.000 0.000
#> SRR1083171 2 0.0000 0.894 0.000 1.000
#> SRR1083337 1 0.0000 1.000 1.000 0.000
#> SRR1377672 2 0.0000 0.894 0.000 1.000
#> SRR1435816 2 0.0000 0.894 0.000 1.000
#> SRR1080580 2 0.9710 0.463 0.400 0.600
#> SRR1366672 2 0.0000 0.894 0.000 1.000
#> SRR1075150 2 0.0000 0.894 0.000 1.000
#> SRR814137 2 0.9933 0.359 0.452 0.548
#> SRR1475062 1 0.0000 1.000 1.000 0.000
#> SRR1340028 1 0.0000 1.000 1.000 0.000
#> SRR1070789 2 0.0000 0.894 0.000 1.000
#> SRR1097728 2 0.0000 0.894 0.000 1.000
#> SRR1447172 2 0.0000 0.894 0.000 1.000
#> SRR1472486 2 0.0000 0.894 0.000 1.000
#> SRR1377881 1 0.0000 1.000 1.000 0.000
#> SRR1420912 2 0.7219 0.729 0.200 0.800
#> SRR1313747 2 0.0000 0.894 0.000 1.000
#> SRR1414447 2 0.0000 0.894 0.000 1.000
#> SRR1358238 2 0.9970 0.318 0.468 0.532
#> SRR1322115 2 0.9933 0.359 0.452 0.548
#> SRR1330474 1 0.0000 1.000 1.000 0.000
#> SRR1093124 1 0.0000 1.000 1.000 0.000
#> SRR1456354 2 0.9933 0.359 0.452 0.548
#> SRR820859 2 0.9710 0.463 0.400 0.600
#> SRR1401860 2 0.9732 0.456 0.404 0.596
#> SRR1095599 2 0.0000 0.894 0.000 1.000
#> SRR1417130 1 0.0000 1.000 1.000 0.000
#> SRR1362597 2 0.0000 0.894 0.000 1.000
#> SRR1328464 2 0.0000 0.894 0.000 1.000
#> SRR1323957 1 0.0000 1.000 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.8439 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.8439 1.000 0.000 0.000
#> SRR1380523 2 0.1529 0.7408 0.000 0.960 0.040
#> SRR1089106 3 0.6154 0.3097 0.408 0.000 0.592
#> SRR1401403 1 0.1031 0.8359 0.976 0.000 0.024
#> SRR1080534 3 0.6079 0.4602 0.000 0.388 0.612
#> SRR1487638 2 0.5882 0.7060 0.000 0.652 0.348
#> SRR1320650 2 0.1163 0.7216 0.000 0.972 0.028
#> SRR1073045 2 0.1753 0.7154 0.000 0.952 0.048
#> SRR1397030 2 0.1753 0.7154 0.000 0.952 0.048
#> SRR1439976 3 0.6168 0.3046 0.412 0.000 0.588
#> SRR1454050 2 0.6168 0.6870 0.000 0.588 0.412
#> SRR1070286 3 0.9137 0.4408 0.188 0.276 0.536
#> SRR1344185 2 0.1411 0.7280 0.000 0.964 0.036
#> SRR1084228 2 0.2066 0.7436 0.000 0.940 0.060
#> SRR1101907 2 0.3116 0.7391 0.000 0.892 0.108
#> SRR1079686 2 0.5529 0.7149 0.000 0.704 0.296
#> SRR1089761 2 0.6235 0.6846 0.000 0.564 0.436
#> SRR811403 2 0.6168 0.6870 0.000 0.588 0.412
#> SRR1440560 2 0.6168 0.6870 0.000 0.588 0.412
#> SRR1079706 2 0.1964 0.7316 0.000 0.944 0.056
#> SRR1459101 2 0.6225 0.6869 0.000 0.568 0.432
#> SRR1335089 2 0.6204 0.6871 0.000 0.576 0.424
#> SRR1337840 1 0.5882 0.4481 0.652 0.000 0.348
#> SRR808682 2 0.0892 0.7364 0.000 0.980 0.020
#> SRR1443224 2 0.6168 0.6870 0.000 0.588 0.412
#> SRR1439831 1 0.0000 0.8439 1.000 0.000 0.000
#> SRR1087463 2 0.6154 0.6948 0.000 0.592 0.408
#> SRR1457949 2 0.1753 0.7154 0.000 0.952 0.048
#> SRR1455969 2 0.1860 0.7161 0.000 0.948 0.052
#> SRR1415529 3 0.2116 0.3991 0.040 0.012 0.948
#> SRR1330018 2 0.1964 0.7436 0.000 0.944 0.056
#> SRR1370597 2 0.1964 0.7340 0.000 0.944 0.056
#> SRR1385524 2 0.0892 0.7226 0.000 0.980 0.020
#> SRR1351605 3 0.6140 0.3166 0.404 0.000 0.596
#> SRR1460148 1 0.0000 0.8439 1.000 0.000 0.000
#> SRR1354159 2 0.6180 0.6845 0.000 0.584 0.416
#> SRR1318390 2 0.6168 0.6870 0.000 0.588 0.412
#> SRR1073095 2 0.1964 0.7436 0.000 0.944 0.056
#> SRR1410612 2 0.1964 0.7436 0.000 0.944 0.056
#> SRR1076892 1 0.0000 0.8439 1.000 0.000 0.000
#> SRR1340989 2 0.6267 0.6730 0.000 0.548 0.452
#> SRR1481375 2 0.1031 0.7273 0.000 0.976 0.024
#> SRR1079356 3 0.6357 0.0480 0.020 0.296 0.684
#> SRR1455545 3 0.6180 0.2966 0.416 0.000 0.584
#> SRR1406157 1 0.0237 0.8434 0.996 0.000 0.004
#> SRR1445920 2 0.1964 0.7436 0.000 0.944 0.056
#> SRR1420259 2 0.1753 0.7154 0.000 0.952 0.048
#> SRR1376963 2 0.6168 0.6870 0.000 0.588 0.412
#> SRR1101061 1 0.0000 0.8439 1.000 0.000 0.000
#> SRR1414496 2 0.1964 0.7436 0.000 0.944 0.056
#> SRR1334791 1 0.0000 0.8439 1.000 0.000 0.000
#> SRR1072129 2 0.6095 0.6950 0.000 0.608 0.392
#> SRR1330450 2 0.6274 0.6695 0.000 0.544 0.456
#> SRR1409108 2 0.6168 0.6870 0.000 0.588 0.412
#> SRR1416865 2 0.6235 0.6772 0.000 0.564 0.436
#> SRR1071832 3 0.3349 0.4070 0.108 0.004 0.888
#> SRR1093814 2 0.6168 0.6870 0.000 0.588 0.412
#> SRR1381821 2 0.5905 0.2282 0.000 0.648 0.352
#> SRR811675 2 0.6079 0.0156 0.000 0.612 0.388
#> SRR1082423 1 0.2448 0.8055 0.924 0.000 0.076
#> SRR1417296 2 0.6168 0.6870 0.000 0.588 0.412
#> SRR815944 2 0.6204 0.6846 0.000 0.576 0.424
#> SRR1332775 2 0.1753 0.7300 0.000 0.952 0.048
#> SRR1079143 2 0.6252 0.6747 0.000 0.556 0.444
#> SRR1476807 3 0.6299 0.0977 0.476 0.000 0.524
#> SRR1456634 1 0.5497 0.5593 0.708 0.000 0.292
#> SRR1083171 2 0.6140 0.6900 0.000 0.596 0.404
#> SRR1083337 1 0.0237 0.8434 0.996 0.000 0.004
#> SRR1377672 2 0.6235 0.6721 0.000 0.564 0.436
#> SRR1435816 2 0.1753 0.7154 0.000 0.952 0.048
#> SRR1080580 3 0.6045 0.4654 0.000 0.380 0.620
#> SRR1366672 2 0.1753 0.7154 0.000 0.952 0.048
#> SRR1075150 2 0.0000 0.7304 0.000 1.000 0.000
#> SRR814137 3 0.6154 0.3117 0.408 0.000 0.592
#> SRR1475062 1 0.0000 0.8439 1.000 0.000 0.000
#> SRR1340028 1 0.2356 0.8061 0.928 0.000 0.072
#> SRR1070789 2 0.1964 0.7436 0.000 0.944 0.056
#> SRR1097728 2 0.1753 0.7154 0.000 0.952 0.048
#> SRR1447172 2 0.2066 0.7436 0.000 0.940 0.060
#> SRR1472486 2 0.1753 0.7154 0.000 0.952 0.048
#> SRR1377881 1 0.0000 0.8439 1.000 0.000 0.000
#> SRR1420912 3 0.7141 -0.3899 0.032 0.368 0.600
#> SRR1313747 2 0.6168 0.6870 0.000 0.588 0.412
#> SRR1414447 2 0.6180 0.6845 0.000 0.584 0.416
#> SRR1358238 3 0.6192 0.2888 0.420 0.000 0.580
#> SRR1322115 3 0.8288 0.3651 0.332 0.096 0.572
#> SRR1330474 1 0.5835 0.4665 0.660 0.000 0.340
#> SRR1093124 1 0.5254 0.6063 0.736 0.000 0.264
#> SRR1456354 3 0.6192 0.2888 0.420 0.000 0.580
#> SRR820859 3 0.6045 0.4654 0.000 0.380 0.620
#> SRR1401860 3 0.6045 0.4654 0.000 0.380 0.620
#> SRR1095599 2 0.1860 0.7173 0.000 0.948 0.052
#> SRR1417130 1 0.5291 0.6002 0.732 0.000 0.268
#> SRR1362597 2 0.0892 0.7264 0.000 0.980 0.020
#> SRR1328464 2 0.1753 0.7154 0.000 0.952 0.048
#> SRR1323957 1 0.5882 0.4481 0.652 0.000 0.348
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.8851 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.8851 1.000 0.000 0.000 0.000
#> SRR1380523 3 0.4697 0.4668 0.000 0.356 0.644 0.000
#> SRR1089106 4 0.2469 0.6511 0.000 0.108 0.000 0.892
#> SRR1401403 1 0.0921 0.8778 0.972 0.000 0.000 0.028
#> SRR1080534 3 0.4050 0.6917 0.000 0.024 0.808 0.168
#> SRR1487638 2 0.3400 0.6477 0.000 0.820 0.180 0.000
#> SRR1320650 3 0.2530 0.7806 0.000 0.112 0.888 0.000
#> SRR1073045 3 0.2149 0.7875 0.000 0.088 0.912 0.000
#> SRR1397030 3 0.2216 0.7874 0.000 0.092 0.908 0.000
#> SRR1439976 4 0.3695 0.6276 0.156 0.016 0.000 0.828
#> SRR1454050 2 0.0921 0.7090 0.000 0.972 0.028 0.000
#> SRR1070286 3 0.5717 0.4973 0.000 0.044 0.632 0.324
#> SRR1344185 3 0.2704 0.7779 0.000 0.124 0.876 0.000
#> SRR1084228 3 0.4454 0.5488 0.000 0.308 0.692 0.000
#> SRR1101907 3 0.4697 0.4752 0.000 0.356 0.644 0.000
#> SRR1079686 2 0.3444 0.6438 0.000 0.816 0.184 0.000
#> SRR1089761 2 0.6549 0.3583 0.000 0.612 0.120 0.268
#> SRR811403 2 0.0921 0.7090 0.000 0.972 0.028 0.000
#> SRR1440560 2 0.0921 0.7090 0.000 0.972 0.028 0.000
#> SRR1079706 3 0.5550 0.6490 0.000 0.060 0.692 0.248
#> SRR1459101 2 0.6377 0.3943 0.000 0.632 0.112 0.256
#> SRR1335089 4 0.7383 -0.0338 0.000 0.388 0.164 0.448
#> SRR1337840 1 0.4697 0.5684 0.644 0.000 0.000 0.356
#> SRR808682 3 0.4713 0.4654 0.000 0.360 0.640 0.000
#> SRR1443224 2 0.0921 0.7090 0.000 0.972 0.028 0.000
#> SRR1439831 1 0.0000 0.8851 1.000 0.000 0.000 0.000
#> SRR1087463 4 0.7008 -0.1810 0.000 0.436 0.116 0.448
#> SRR1457949 3 0.2149 0.7875 0.000 0.088 0.912 0.000
#> SRR1455969 3 0.2197 0.7869 0.000 0.080 0.916 0.004
#> SRR1415529 4 0.4514 0.6223 0.000 0.148 0.056 0.796
#> SRR1330018 3 0.4713 0.4576 0.000 0.360 0.640 0.000
#> SRR1370597 3 0.4411 0.7325 0.000 0.080 0.812 0.108
#> SRR1385524 3 0.2814 0.7708 0.000 0.132 0.868 0.000
#> SRR1351605 4 0.3695 0.6276 0.156 0.016 0.000 0.828
#> SRR1460148 1 0.0000 0.8851 1.000 0.000 0.000 0.000
#> SRR1354159 2 0.1004 0.7031 0.000 0.972 0.024 0.004
#> SRR1318390 2 0.0921 0.7090 0.000 0.972 0.028 0.000
#> SRR1073095 2 0.4697 0.3366 0.000 0.644 0.356 0.000
#> SRR1410612 2 0.4679 0.3443 0.000 0.648 0.352 0.000
#> SRR1076892 1 0.0000 0.8851 1.000 0.000 0.000 0.000
#> SRR1340989 2 0.6473 0.3476 0.000 0.612 0.108 0.280
#> SRR1481375 3 0.2973 0.7622 0.000 0.144 0.856 0.000
#> SRR1079356 4 0.6897 0.2472 0.000 0.332 0.124 0.544
#> SRR1455545 4 0.3695 0.6276 0.156 0.016 0.000 0.828
#> SRR1406157 1 0.0000 0.8851 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.4679 0.3443 0.000 0.648 0.352 0.000
#> SRR1420259 3 0.2216 0.7870 0.000 0.092 0.908 0.000
#> SRR1376963 2 0.0921 0.7090 0.000 0.972 0.028 0.000
#> SRR1101061 1 0.0000 0.8851 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.4730 0.3194 0.000 0.636 0.364 0.000
#> SRR1334791 1 0.0000 0.8851 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.3444 0.6221 0.000 0.816 0.184 0.000
#> SRR1330450 2 0.6544 0.3309 0.000 0.604 0.112 0.284
#> SRR1409108 2 0.0336 0.6982 0.000 0.992 0.008 0.000
#> SRR1416865 4 0.7356 0.0342 0.000 0.368 0.164 0.468
#> SRR1071832 4 0.4274 0.6289 0.000 0.148 0.044 0.808
#> SRR1093814 2 0.1474 0.7047 0.000 0.948 0.052 0.000
#> SRR1381821 3 0.4900 0.6164 0.000 0.032 0.732 0.236
#> SRR811675 3 0.4897 0.5079 0.000 0.008 0.660 0.332
#> SRR1082423 1 0.2345 0.8423 0.900 0.000 0.000 0.100
#> SRR1417296 2 0.0336 0.6982 0.000 0.992 0.008 0.000
#> SRR815944 2 0.6081 0.4163 0.000 0.652 0.088 0.260
#> SRR1332775 3 0.3894 0.7423 0.000 0.068 0.844 0.088
#> SRR1079143 2 0.6488 0.3270 0.000 0.604 0.104 0.292
#> SRR1476807 4 0.5099 0.0816 0.380 0.008 0.000 0.612
#> SRR1456634 1 0.3688 0.7560 0.792 0.000 0.000 0.208
#> SRR1083171 2 0.1211 0.7093 0.000 0.960 0.040 0.000
#> SRR1083337 1 0.0336 0.8836 0.992 0.000 0.000 0.008
#> SRR1377672 2 0.6124 0.3912 0.000 0.640 0.084 0.276
#> SRR1435816 3 0.3439 0.7450 0.000 0.048 0.868 0.084
#> SRR1080580 3 0.4927 0.5982 0.000 0.024 0.712 0.264
#> SRR1366672 3 0.2149 0.7875 0.000 0.088 0.912 0.000
#> SRR1075150 3 0.2760 0.7745 0.000 0.128 0.872 0.000
#> SRR814137 4 0.3813 0.6312 0.148 0.024 0.000 0.828
#> SRR1475062 1 0.0000 0.8851 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.1716 0.8634 0.936 0.000 0.000 0.064
#> SRR1070789 2 0.4761 0.3335 0.000 0.628 0.372 0.000
#> SRR1097728 3 0.2149 0.7877 0.000 0.088 0.912 0.000
#> SRR1447172 2 0.4730 0.3194 0.000 0.636 0.364 0.000
#> SRR1472486 3 0.2216 0.7870 0.000 0.092 0.908 0.000
#> SRR1377881 1 0.0000 0.8851 1.000 0.000 0.000 0.000
#> SRR1420912 2 0.5805 0.1693 0.000 0.576 0.036 0.388
#> SRR1313747 2 0.0336 0.6982 0.000 0.992 0.008 0.000
#> SRR1414447 2 0.3308 0.6533 0.000 0.872 0.092 0.036
#> SRR1358238 4 0.3743 0.6231 0.160 0.016 0.000 0.824
#> SRR1322115 3 0.5513 0.5271 0.008 0.016 0.628 0.348
#> SRR1330474 1 0.4697 0.5684 0.644 0.000 0.000 0.356
#> SRR1093124 1 0.3400 0.7850 0.820 0.000 0.000 0.180
#> SRR1456354 4 0.3743 0.6231 0.160 0.016 0.000 0.824
#> SRR820859 3 0.5383 0.5552 0.000 0.036 0.672 0.292
#> SRR1401860 3 0.4955 0.5937 0.000 0.024 0.708 0.268
#> SRR1095599 3 0.3354 0.7440 0.000 0.044 0.872 0.084
#> SRR1417130 1 0.3649 0.7600 0.796 0.000 0.000 0.204
#> SRR1362597 3 0.4477 0.5409 0.000 0.312 0.688 0.000
#> SRR1328464 3 0.2281 0.7860 0.000 0.096 0.904 0.000
#> SRR1323957 1 0.4697 0.5684 0.644 0.000 0.000 0.356
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0000 0.9659 1.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9659 1.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.4294 -0.0901 0.000 0.532 0.468 0.000 0.000
#> SRR1089106 4 0.3177 0.4618 0.000 0.000 0.000 0.792 0.208
#> SRR1401403 1 0.1300 0.9491 0.956 0.000 0.000 0.016 0.028
#> SRR1080534 5 0.4850 0.5825 0.000 0.000 0.232 0.072 0.696
#> SRR1487638 2 0.3399 0.7918 0.000 0.812 0.168 0.000 0.020
#> SRR1320650 3 0.4612 0.6432 0.000 0.232 0.712 0.000 0.056
#> SRR1073045 3 0.1018 0.8193 0.000 0.016 0.968 0.000 0.016
#> SRR1397030 3 0.3242 0.6634 0.000 0.216 0.784 0.000 0.000
#> SRR1439976 4 0.1197 0.6844 0.000 0.000 0.000 0.952 0.048
#> SRR1454050 2 0.3399 0.7918 0.000 0.812 0.168 0.000 0.020
#> SRR1070286 5 0.4307 0.6126 0.000 0.000 0.128 0.100 0.772
#> SRR1344185 3 0.3442 0.7892 0.000 0.060 0.836 0.000 0.104
#> SRR1084228 3 0.3730 0.5608 0.000 0.288 0.712 0.000 0.000
#> SRR1101907 3 0.3193 0.7476 0.000 0.132 0.840 0.000 0.028
#> SRR1079686 2 0.3399 0.7918 0.000 0.812 0.168 0.000 0.020
#> SRR1089761 5 0.5498 0.6685 0.000 0.200 0.020 0.096 0.684
#> SRR811403 2 0.3558 0.7931 0.000 0.816 0.156 0.008 0.020
#> SRR1440560 2 0.3855 0.7857 0.000 0.800 0.160 0.008 0.032
#> SRR1079706 5 0.4735 0.4683 0.000 0.008 0.304 0.024 0.664
#> SRR1459101 5 0.5837 0.6829 0.000 0.172 0.060 0.084 0.684
#> SRR1335089 5 0.4507 0.6756 0.000 0.132 0.004 0.100 0.764
#> SRR1337840 4 0.4268 0.2796 0.444 0.000 0.000 0.556 0.000
#> SRR808682 3 0.3932 0.4295 0.000 0.328 0.672 0.000 0.000
#> SRR1443224 2 0.3599 0.7918 0.000 0.812 0.160 0.008 0.020
#> SRR1439831 1 0.0162 0.9657 0.996 0.000 0.000 0.004 0.000
#> SRR1087463 5 0.4583 0.6798 0.000 0.144 0.004 0.096 0.756
#> SRR1457949 3 0.1195 0.8177 0.000 0.012 0.960 0.000 0.028
#> SRR1455969 3 0.3575 0.7575 0.000 0.056 0.824 0.000 0.120
#> SRR1415529 5 0.4273 0.3393 0.000 0.000 0.000 0.448 0.552
#> SRR1330018 2 0.4727 -0.1355 0.000 0.532 0.452 0.000 0.016
#> SRR1370597 5 0.5166 0.3153 0.000 0.028 0.368 0.012 0.592
#> SRR1385524 3 0.3366 0.6452 0.000 0.232 0.768 0.000 0.000
#> SRR1351605 4 0.1410 0.6799 0.000 0.000 0.000 0.940 0.060
#> SRR1460148 1 0.0000 0.9659 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 2 0.5001 0.7279 0.000 0.732 0.164 0.016 0.088
#> SRR1318390 2 0.3599 0.7918 0.000 0.812 0.160 0.008 0.020
#> SRR1073095 2 0.2338 0.7021 0.000 0.884 0.112 0.000 0.004
#> SRR1410612 2 0.2338 0.7021 0.000 0.884 0.112 0.000 0.004
#> SRR1076892 1 0.0000 0.9659 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 5 0.5404 0.6665 0.000 0.188 0.012 0.112 0.688
#> SRR1481375 3 0.2853 0.8007 0.000 0.072 0.876 0.000 0.052
#> SRR1079356 5 0.4166 0.6370 0.000 0.056 0.004 0.160 0.780
#> SRR1455545 4 0.1121 0.6846 0.000 0.000 0.000 0.956 0.044
#> SRR1406157 1 0.0290 0.9653 0.992 0.000 0.000 0.008 0.000
#> SRR1445920 2 0.2462 0.6992 0.000 0.880 0.112 0.000 0.008
#> SRR1420259 3 0.0807 0.8196 0.000 0.012 0.976 0.000 0.012
#> SRR1376963 2 0.3463 0.7936 0.000 0.820 0.156 0.008 0.016
#> SRR1101061 1 0.0000 0.9659 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.2563 0.6937 0.000 0.872 0.120 0.000 0.008
#> SRR1334791 1 0.0290 0.9653 0.992 0.000 0.000 0.008 0.000
#> SRR1072129 2 0.1281 0.7351 0.000 0.956 0.032 0.000 0.012
#> SRR1330450 5 0.5460 0.6633 0.000 0.160 0.012 0.140 0.688
#> SRR1409108 2 0.3234 0.7930 0.000 0.836 0.144 0.008 0.012
#> SRR1416865 5 0.4381 0.6784 0.000 0.124 0.008 0.088 0.780
#> SRR1071832 4 0.4262 -0.1382 0.000 0.000 0.000 0.560 0.440
#> SRR1093814 2 0.3716 0.7872 0.000 0.800 0.172 0.008 0.020
#> SRR1381821 5 0.4184 0.6161 0.000 0.004 0.192 0.040 0.764
#> SRR811675 5 0.4765 0.5995 0.000 0.004 0.232 0.056 0.708
#> SRR1082423 1 0.2790 0.8965 0.880 0.000 0.000 0.068 0.052
#> SRR1417296 2 0.2909 0.7814 0.000 0.848 0.140 0.000 0.012
#> SRR815944 5 0.5597 0.6596 0.000 0.220 0.012 0.108 0.660
#> SRR1332775 3 0.2790 0.8084 0.000 0.052 0.880 0.000 0.068
#> SRR1079143 5 0.5404 0.6665 0.000 0.188 0.012 0.112 0.688
#> SRR1476807 4 0.3966 0.4698 0.336 0.000 0.000 0.664 0.000
#> SRR1456634 1 0.1908 0.9073 0.908 0.000 0.000 0.092 0.000
#> SRR1083171 2 0.3438 0.7899 0.000 0.808 0.172 0.000 0.020
#> SRR1083337 1 0.0000 0.9659 1.000 0.000 0.000 0.000 0.000
#> SRR1377672 5 0.5436 0.6647 0.000 0.192 0.012 0.112 0.684
#> SRR1435816 3 0.3427 0.6113 0.000 0.012 0.796 0.000 0.192
#> SRR1080580 5 0.4855 0.5952 0.000 0.000 0.168 0.112 0.720
#> SRR1366672 3 0.0807 0.8196 0.000 0.012 0.976 0.000 0.012
#> SRR1075150 3 0.3274 0.6589 0.000 0.220 0.780 0.000 0.000
#> SRR814137 4 0.1197 0.6844 0.000 0.000 0.000 0.952 0.048
#> SRR1475062 1 0.0609 0.9555 0.980 0.000 0.000 0.020 0.000
#> SRR1340028 1 0.1043 0.9501 0.960 0.000 0.000 0.040 0.000
#> SRR1070789 2 0.2424 0.6955 0.000 0.868 0.132 0.000 0.000
#> SRR1097728 3 0.1792 0.7799 0.000 0.000 0.916 0.000 0.084
#> SRR1447172 2 0.2304 0.7076 0.000 0.892 0.100 0.000 0.008
#> SRR1472486 3 0.0807 0.8196 0.000 0.012 0.976 0.000 0.012
#> SRR1377881 1 0.0609 0.9555 0.980 0.000 0.000 0.020 0.000
#> SRR1420912 5 0.5812 0.6452 0.000 0.184 0.008 0.168 0.640
#> SRR1313747 2 0.3336 0.7944 0.000 0.832 0.144 0.008 0.016
#> SRR1414447 5 0.5571 0.5917 0.000 0.316 0.008 0.072 0.604
#> SRR1358238 4 0.1121 0.6960 0.044 0.000 0.000 0.956 0.000
#> SRR1322115 5 0.6650 0.4919 0.052 0.008 0.132 0.188 0.620
#> SRR1330474 4 0.4268 0.2796 0.444 0.000 0.000 0.556 0.000
#> SRR1093124 1 0.1608 0.9273 0.928 0.000 0.000 0.072 0.000
#> SRR1456354 4 0.1121 0.6960 0.044 0.000 0.000 0.956 0.000
#> SRR820859 5 0.5126 0.5791 0.000 0.000 0.152 0.152 0.696
#> SRR1401860 5 0.4767 0.5953 0.000 0.000 0.192 0.088 0.720
#> SRR1095599 3 0.2248 0.8027 0.000 0.012 0.900 0.000 0.088
#> SRR1417130 1 0.1732 0.9202 0.920 0.000 0.000 0.080 0.000
#> SRR1362597 2 0.4450 -0.1735 0.000 0.508 0.488 0.000 0.004
#> SRR1328464 3 0.1597 0.8148 0.000 0.012 0.940 0.000 0.048
#> SRR1323957 4 0.4268 0.2796 0.444 0.000 0.000 0.556 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0000 0.9128 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9128 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.3816 0.4550 0.000 0.688 0.000 0.000 0.016 0.296
#> SRR1089106 4 0.5117 0.3459 0.000 0.000 0.172 0.628 0.200 0.000
#> SRR1401403 1 0.0405 0.9088 0.988 0.000 0.000 0.004 0.008 0.000
#> SRR1080534 5 0.4917 0.5817 0.000 0.000 0.348 0.000 0.576 0.076
#> SRR1487638 2 0.1737 0.6191 0.000 0.932 0.008 0.000 0.020 0.040
#> SRR1320650 2 0.4715 0.3185 0.000 0.536 0.000 0.000 0.048 0.416
#> SRR1073045 6 0.1268 0.7954 0.000 0.004 0.008 0.000 0.036 0.952
#> SRR1397030 6 0.4124 0.2373 0.000 0.332 0.000 0.000 0.024 0.644
#> SRR1439976 4 0.2946 0.7499 0.000 0.000 0.012 0.812 0.176 0.000
#> SRR1454050 2 0.5143 0.5715 0.000 0.640 0.012 0.000 0.240 0.108
#> SRR1070286 5 0.5748 0.6832 0.000 0.004 0.296 0.092 0.576 0.032
#> SRR1344185 6 0.2420 0.7675 0.000 0.008 0.068 0.000 0.032 0.892
#> SRR1084228 2 0.4955 0.3225 0.000 0.520 0.004 0.000 0.056 0.420
#> SRR1101907 6 0.5769 0.4732 0.000 0.100 0.072 0.000 0.200 0.628
#> SRR1079686 2 0.4865 0.5819 0.000 0.692 0.012 0.000 0.164 0.132
#> SRR1089761 3 0.3599 0.7573 0.000 0.004 0.764 0.004 0.016 0.212
#> SRR811403 2 0.5099 0.5743 0.000 0.648 0.012 0.000 0.232 0.108
#> SRR1440560 2 0.5539 0.5519 0.000 0.620 0.112 0.000 0.236 0.032
#> SRR1079706 3 0.5416 0.5440 0.000 0.000 0.580 0.000 0.196 0.224
#> SRR1459101 3 0.4205 0.7422 0.000 0.004 0.728 0.000 0.064 0.204
#> SRR1335089 3 0.4628 0.7197 0.000 0.000 0.708 0.008 0.108 0.176
#> SRR1337840 1 0.3862 0.2852 0.524 0.000 0.000 0.476 0.000 0.000
#> SRR808682 2 0.3636 0.4435 0.000 0.676 0.000 0.000 0.004 0.320
#> SRR1443224 2 0.5184 0.5741 0.000 0.644 0.016 0.000 0.232 0.108
#> SRR1439831 1 0.0000 0.9128 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.4765 0.7141 0.000 0.000 0.700 0.012 0.112 0.176
#> SRR1457949 6 0.1088 0.7940 0.000 0.000 0.016 0.000 0.024 0.960
#> SRR1455969 6 0.2628 0.7628 0.000 0.024 0.068 0.000 0.024 0.884
#> SRR1415529 5 0.6232 0.4973 0.000 0.000 0.352 0.292 0.352 0.004
#> SRR1330018 2 0.5705 0.3955 0.000 0.576 0.052 0.000 0.072 0.300
#> SRR1370597 6 0.6061 -0.1603 0.000 0.004 0.312 0.000 0.236 0.448
#> SRR1385524 2 0.3804 0.4346 0.000 0.656 0.000 0.000 0.008 0.336
#> SRR1351605 4 0.3494 0.7176 0.000 0.000 0.012 0.736 0.252 0.000
#> SRR1460148 1 0.0000 0.9128 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 2 0.6866 0.4696 0.000 0.508 0.172 0.004 0.216 0.100
#> SRR1318390 2 0.5121 0.5728 0.000 0.644 0.012 0.000 0.236 0.108
#> SRR1073095 2 0.5705 0.5396 0.000 0.644 0.176 0.000 0.084 0.096
#> SRR1410612 2 0.5162 0.5572 0.000 0.688 0.176 0.000 0.084 0.052
#> SRR1076892 1 0.0000 0.9128 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.3296 0.7592 0.000 0.012 0.792 0.008 0.000 0.188
#> SRR1481375 6 0.1086 0.7907 0.000 0.012 0.012 0.000 0.012 0.964
#> SRR1079356 3 0.4944 -0.4761 0.000 0.000 0.488 0.064 0.448 0.000
#> SRR1455545 4 0.2778 0.7513 0.000 0.000 0.008 0.824 0.168 0.000
#> SRR1406157 1 0.0000 0.9128 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.5218 0.5566 0.000 0.684 0.176 0.000 0.084 0.056
#> SRR1420259 6 0.0858 0.7968 0.000 0.004 0.000 0.000 0.028 0.968
#> SRR1376963 2 0.5268 0.5744 0.000 0.636 0.020 0.000 0.240 0.104
#> SRR1101061 1 0.0000 0.9128 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.6209 0.5004 0.000 0.588 0.176 0.000 0.084 0.152
#> SRR1334791 1 0.0000 0.9128 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.4697 0.5679 0.000 0.708 0.184 0.000 0.092 0.016
#> SRR1330450 3 0.3339 0.7599 0.000 0.004 0.792 0.008 0.008 0.188
#> SRR1409108 2 0.6221 0.5571 0.000 0.520 0.188 0.000 0.260 0.032
#> SRR1416865 3 0.4951 0.6990 0.000 0.000 0.692 0.020 0.120 0.168
#> SRR1071832 5 0.6247 0.4540 0.000 0.000 0.340 0.312 0.344 0.004
#> SRR1093814 2 0.5268 0.5689 0.000 0.632 0.016 0.000 0.240 0.112
#> SRR1381821 3 0.5036 0.1351 0.000 0.000 0.568 0.000 0.344 0.088
#> SRR811675 5 0.6704 0.5312 0.000 0.004 0.288 0.056 0.476 0.176
#> SRR1082423 1 0.0622 0.9050 0.980 0.000 0.000 0.008 0.012 0.000
#> SRR1417296 2 0.4728 0.5710 0.000 0.700 0.188 0.000 0.100 0.012
#> SRR815944 3 0.4403 0.7166 0.000 0.032 0.708 0.008 0.012 0.240
#> SRR1332775 6 0.4187 0.6471 0.000 0.012 0.076 0.000 0.156 0.756
#> SRR1079143 3 0.3229 0.7577 0.000 0.004 0.796 0.008 0.004 0.188
#> SRR1476807 4 0.3266 0.4110 0.272 0.000 0.000 0.728 0.000 0.000
#> SRR1456634 1 0.1814 0.8407 0.900 0.000 0.000 0.100 0.000 0.000
#> SRR1083171 2 0.5322 0.5580 0.000 0.628 0.012 0.000 0.220 0.140
#> SRR1083337 1 0.0000 0.9128 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.4140 0.7371 0.000 0.020 0.736 0.016 0.008 0.220
#> SRR1435816 6 0.4788 0.0684 0.000 0.000 0.372 0.000 0.060 0.568
#> SRR1080580 5 0.5110 0.6458 0.000 0.004 0.340 0.012 0.588 0.056
#> SRR1366672 6 0.1155 0.7965 0.000 0.004 0.004 0.000 0.036 0.956
#> SRR1075150 2 0.3866 0.2108 0.000 0.516 0.000 0.000 0.000 0.484
#> SRR814137 4 0.3494 0.7176 0.000 0.000 0.012 0.736 0.252 0.000
#> SRR1475062 1 0.0291 0.9094 0.992 0.000 0.000 0.004 0.004 0.000
#> SRR1340028 1 0.0146 0.9116 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1070789 2 0.5431 0.5524 0.000 0.668 0.176 0.000 0.076 0.080
#> SRR1097728 6 0.0653 0.7934 0.000 0.004 0.004 0.000 0.012 0.980
#> SRR1447172 2 0.6209 0.5004 0.000 0.588 0.176 0.000 0.084 0.152
#> SRR1472486 6 0.1082 0.7956 0.000 0.004 0.000 0.000 0.040 0.956
#> SRR1377881 1 0.0146 0.9112 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1420912 3 0.4489 0.6937 0.000 0.008 0.756 0.024 0.072 0.140
#> SRR1313747 2 0.4165 0.6158 0.000 0.772 0.120 0.000 0.088 0.020
#> SRR1414447 3 0.5695 0.5322 0.000 0.168 0.592 0.012 0.004 0.224
#> SRR1358238 4 0.2629 0.7074 0.060 0.000 0.000 0.872 0.068 0.000
#> SRR1322115 5 0.7531 0.5421 0.068 0.000 0.212 0.220 0.452 0.048
#> SRR1330474 1 0.3838 0.3509 0.552 0.000 0.000 0.448 0.000 0.000
#> SRR1093124 1 0.0260 0.9102 0.992 0.000 0.000 0.008 0.000 0.000
#> SRR1456354 4 0.2201 0.7278 0.028 0.000 0.000 0.896 0.076 0.000
#> SRR820859 5 0.5331 0.6999 0.000 0.004 0.268 0.056 0.632 0.040
#> SRR1401860 5 0.4612 0.6793 0.000 0.000 0.308 0.004 0.636 0.052
#> SRR1095599 6 0.4283 0.6149 0.000 0.000 0.096 0.000 0.180 0.724
#> SRR1417130 1 0.0937 0.8922 0.960 0.000 0.000 0.040 0.000 0.000
#> SRR1362597 2 0.3695 0.4855 0.000 0.712 0.000 0.000 0.016 0.272
#> SRR1328464 6 0.0881 0.7958 0.000 0.008 0.012 0.000 0.008 0.972
#> SRR1323957 1 0.3862 0.2852 0.524 0.000 0.000 0.476 0.000 0.000
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
get_signature()
returns a data frame invisibly. TO get the list of signatures, the function
call should be assigned to a variable explicitly. In following code, if plot
argument is set
to FALSE
, no heatmap is plotted while only the differential analysis is performed.
# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)
An example of the output of tb
is:
#> which_row fdr mean_1 mean_2 scaled_mean_1 scaled_mean_2 km
#> 1 38 0.042760348 8.373488 9.131774 -0.5533452 0.5164555 1
#> 2 40 0.018707592 7.106213 8.469186 -0.6173731 0.5762149 1
#> 3 55 0.019134737 10.221463 11.207825 -0.6159697 0.5749050 1
#> 4 59 0.006059896 5.921854 7.869574 -0.6899429 0.6439467 1
#> 5 60 0.018055526 8.928898 10.211722 -0.6204761 0.5791110 1
#> 6 98 0.009384629 15.714769 14.887706 0.6635654 -0.6193277 2
...
The columns in tb
are:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
If matrix rows can be associated to genes, consider to use functional_enrichment(res,
...)
to perform function enrichment for the signature genes. See this vignette for more detailed explanations.
The object with results only for a single top-value method and a single partition method can be extracted as:
res = res_list["MAD", "NMF"]
# you can also extract it by
# res = res_list["MAD:NMF"]
A summary of res
and all the functions that can be applied to it:
res
#> A 'ConsensusPartition' object with k = 2, 3, 4, 5, 6.
#> On a matrix with 17633 rows and 97 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.819 0.909 0.959 0.4990 0.495 0.495
#> 3 3 0.799 0.833 0.929 0.2918 0.775 0.581
#> 4 4 0.865 0.849 0.936 0.0962 0.867 0.654
#> 5 5 0.706 0.693 0.848 0.0759 0.955 0.846
#> 6 6 0.676 0.580 0.770 0.0497 0.971 0.890
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
#> SRR1397242 1 0.0000 0.9322 1.000 0.000
#> SRR1093410 1 0.0000 0.9322 1.000 0.000
#> SRR1380523 2 0.0000 0.9794 0.000 1.000
#> SRR1089106 1 0.0000 0.9322 1.000 0.000
#> SRR1401403 1 0.0000 0.9322 1.000 0.000
#> SRR1080534 1 0.6712 0.8008 0.824 0.176
#> SRR1487638 2 0.0000 0.9794 0.000 1.000
#> SRR1320650 2 0.0000 0.9794 0.000 1.000
#> SRR1073045 2 0.0000 0.9794 0.000 1.000
#> SRR1397030 2 0.0000 0.9794 0.000 1.000
#> SRR1439976 1 0.0000 0.9322 1.000 0.000
#> SRR1454050 2 0.0000 0.9794 0.000 1.000
#> SRR1070286 1 0.0000 0.9322 1.000 0.000
#> SRR1344185 2 0.0376 0.9756 0.004 0.996
#> SRR1084228 2 0.0000 0.9794 0.000 1.000
#> SRR1101907 2 0.0000 0.9794 0.000 1.000
#> SRR1079686 2 0.0000 0.9794 0.000 1.000
#> SRR1089761 2 0.9993 -0.0918 0.484 0.516
#> SRR811403 2 0.0000 0.9794 0.000 1.000
#> SRR1440560 2 0.0000 0.9794 0.000 1.000
#> SRR1079706 1 0.7139 0.7810 0.804 0.196
#> SRR1459101 1 0.9754 0.4098 0.592 0.408
#> SRR1335089 1 0.7602 0.7540 0.780 0.220
#> SRR1337840 1 0.0000 0.9322 1.000 0.000
#> SRR808682 2 0.0000 0.9794 0.000 1.000
#> SRR1443224 2 0.0000 0.9794 0.000 1.000
#> SRR1439831 1 0.0000 0.9322 1.000 0.000
#> SRR1087463 1 0.8861 0.6324 0.696 0.304
#> SRR1457949 2 0.0000 0.9794 0.000 1.000
#> SRR1455969 2 0.0000 0.9794 0.000 1.000
#> SRR1415529 1 0.0000 0.9322 1.000 0.000
#> SRR1330018 2 0.0000 0.9794 0.000 1.000
#> SRR1370597 2 0.0000 0.9794 0.000 1.000
#> SRR1385524 2 0.0000 0.9794 0.000 1.000
#> SRR1351605 1 0.0000 0.9322 1.000 0.000
#> SRR1460148 1 0.0000 0.9322 1.000 0.000
#> SRR1354159 2 0.0000 0.9794 0.000 1.000
#> SRR1318390 2 0.0000 0.9794 0.000 1.000
#> SRR1073095 2 0.0000 0.9794 0.000 1.000
#> SRR1410612 2 0.0000 0.9794 0.000 1.000
#> SRR1076892 1 0.0000 0.9322 1.000 0.000
#> SRR1340989 1 0.9170 0.5828 0.668 0.332
#> SRR1481375 2 0.0000 0.9794 0.000 1.000
#> SRR1079356 1 0.0000 0.9322 1.000 0.000
#> SRR1455545 1 0.0000 0.9322 1.000 0.000
#> SRR1406157 1 0.0000 0.9322 1.000 0.000
#> SRR1445920 2 0.0000 0.9794 0.000 1.000
#> SRR1420259 2 0.0000 0.9794 0.000 1.000
#> SRR1376963 2 0.0000 0.9794 0.000 1.000
#> SRR1101061 1 0.0000 0.9322 1.000 0.000
#> SRR1414496 2 0.0000 0.9794 0.000 1.000
#> SRR1334791 1 0.0000 0.9322 1.000 0.000
#> SRR1072129 2 0.0000 0.9794 0.000 1.000
#> SRR1330450 1 0.7745 0.7440 0.772 0.228
#> SRR1409108 2 0.0000 0.9794 0.000 1.000
#> SRR1416865 1 0.7602 0.7540 0.780 0.220
#> SRR1071832 1 0.0000 0.9322 1.000 0.000
#> SRR1093814 2 0.0000 0.9794 0.000 1.000
#> SRR1381821 1 0.5178 0.8531 0.884 0.116
#> SRR811675 1 0.0000 0.9322 1.000 0.000
#> SRR1082423 1 0.0000 0.9322 1.000 0.000
#> SRR1417296 2 0.0000 0.9794 0.000 1.000
#> SRR815944 2 0.2778 0.9301 0.048 0.952
#> SRR1332775 2 0.0000 0.9794 0.000 1.000
#> SRR1079143 1 0.9170 0.5829 0.668 0.332
#> SRR1476807 1 0.0000 0.9322 1.000 0.000
#> SRR1456634 1 0.0000 0.9322 1.000 0.000
#> SRR1083171 2 0.0000 0.9794 0.000 1.000
#> SRR1083337 1 0.0000 0.9322 1.000 0.000
#> SRR1377672 1 0.9087 0.5978 0.676 0.324
#> SRR1435816 2 0.8499 0.5673 0.276 0.724
#> SRR1080580 1 0.2423 0.9080 0.960 0.040
#> SRR1366672 2 0.0000 0.9794 0.000 1.000
#> SRR1075150 2 0.0000 0.9794 0.000 1.000
#> SRR814137 1 0.0000 0.9322 1.000 0.000
#> SRR1475062 1 0.0000 0.9322 1.000 0.000
#> SRR1340028 1 0.0000 0.9322 1.000 0.000
#> SRR1070789 2 0.0000 0.9794 0.000 1.000
#> SRR1097728 2 0.0000 0.9794 0.000 1.000
#> SRR1447172 2 0.0000 0.9794 0.000 1.000
#> SRR1472486 2 0.0000 0.9794 0.000 1.000
#> SRR1377881 1 0.0000 0.9322 1.000 0.000
#> SRR1420912 1 0.7139 0.7810 0.804 0.196
#> SRR1313747 2 0.0000 0.9794 0.000 1.000
#> SRR1414447 2 0.3114 0.9210 0.056 0.944
#> SRR1358238 1 0.0000 0.9322 1.000 0.000
#> SRR1322115 1 0.0000 0.9322 1.000 0.000
#> SRR1330474 1 0.0000 0.9322 1.000 0.000
#> SRR1093124 1 0.0000 0.9322 1.000 0.000
#> SRR1456354 1 0.0000 0.9322 1.000 0.000
#> SRR820859 1 0.0000 0.9322 1.000 0.000
#> SRR1401860 1 0.0376 0.9300 0.996 0.004
#> SRR1095599 2 0.0000 0.9794 0.000 1.000
#> SRR1417130 1 0.0000 0.9322 1.000 0.000
#> SRR1362597 2 0.0000 0.9794 0.000 1.000
#> SRR1328464 2 0.0000 0.9794 0.000 1.000
#> SRR1323957 1 0.0000 0.9322 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1089106 3 0.0000 0.846 0.000 0.000 1.000
#> SRR1401403 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1080534 1 0.3752 0.766 0.856 0.144 0.000
#> SRR1487638 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1320650 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1073045 2 0.1031 0.937 0.024 0.976 0.000
#> SRR1397030 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1439976 3 0.0000 0.846 0.000 0.000 1.000
#> SRR1454050 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1070286 1 0.4346 0.773 0.816 0.000 0.184
#> SRR1344185 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1084228 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1101907 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1079686 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1089761 2 0.6286 0.124 0.000 0.536 0.464
#> SRR811403 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1440560 3 0.0237 0.844 0.000 0.004 0.996
#> SRR1079706 1 0.7800 0.612 0.668 0.128 0.204
#> SRR1459101 2 0.0237 0.955 0.004 0.996 0.000
#> SRR1335089 3 0.6168 0.333 0.000 0.412 0.588
#> SRR1337840 3 0.5988 0.482 0.368 0.000 0.632
#> SRR808682 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1443224 2 0.4399 0.755 0.000 0.812 0.188
#> SRR1439831 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1087463 2 0.6247 0.317 0.004 0.620 0.376
#> SRR1457949 2 0.0237 0.956 0.004 0.996 0.000
#> SRR1455969 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1415529 3 0.0000 0.846 0.000 0.000 1.000
#> SRR1330018 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1370597 2 0.5016 0.672 0.000 0.760 0.240
#> SRR1385524 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1351605 3 0.0592 0.841 0.012 0.000 0.988
#> SRR1460148 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1354159 3 0.6168 0.334 0.000 0.412 0.588
#> SRR1318390 2 0.0424 0.953 0.000 0.992 0.008
#> SRR1073095 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1340989 3 0.0000 0.846 0.000 0.000 1.000
#> SRR1481375 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1079356 3 0.0237 0.844 0.004 0.000 0.996
#> SRR1455545 3 0.0237 0.844 0.004 0.000 0.996
#> SRR1406157 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1420259 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1376963 2 0.5327 0.622 0.000 0.728 0.272
#> SRR1101061 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1330450 3 0.0000 0.846 0.000 0.000 1.000
#> SRR1409108 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1416865 3 0.0892 0.835 0.000 0.020 0.980
#> SRR1071832 3 0.0000 0.846 0.000 0.000 1.000
#> SRR1093814 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1381821 1 0.5443 0.681 0.736 0.004 0.260
#> SRR811675 1 0.4399 0.768 0.812 0.000 0.188
#> SRR1082423 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.959 0.000 1.000 0.000
#> SRR815944 3 0.6295 0.168 0.000 0.472 0.528
#> SRR1332775 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1079143 3 0.0000 0.846 0.000 0.000 1.000
#> SRR1476807 3 0.5926 0.503 0.356 0.000 0.644
#> SRR1456634 1 0.1163 0.882 0.972 0.000 0.028
#> SRR1083171 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1083337 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1377672 3 0.2625 0.792 0.000 0.084 0.916
#> SRR1435816 1 0.5678 0.537 0.684 0.316 0.000
#> SRR1080580 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1366672 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1075150 2 0.0000 0.959 0.000 1.000 0.000
#> SRR814137 3 0.0000 0.846 0.000 0.000 1.000
#> SRR1475062 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1097728 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1447172 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1472486 2 0.2356 0.888 0.072 0.928 0.000
#> SRR1377881 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1420912 3 0.0000 0.846 0.000 0.000 1.000
#> SRR1313747 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1414447 3 0.0000 0.846 0.000 0.000 1.000
#> SRR1358238 3 0.4605 0.698 0.204 0.000 0.796
#> SRR1322115 1 0.4555 0.756 0.800 0.000 0.200
#> SRR1330474 1 0.5988 0.289 0.632 0.000 0.368
#> SRR1093124 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1456354 3 0.5098 0.653 0.248 0.000 0.752
#> SRR820859 1 0.4796 0.737 0.780 0.000 0.220
#> SRR1401860 1 0.0424 0.896 0.992 0.008 0.000
#> SRR1095599 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1417130 1 0.0000 0.901 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.959 0.000 1.000 0.000
#> SRR1328464 2 0.0237 0.956 0.004 0.996 0.000
#> SRR1323957 3 0.6026 0.466 0.376 0.000 0.624
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.9451 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9451 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.9773 0.000 1.000 0.000 0.000
#> SRR1089106 4 0.4730 0.3892 0.000 0.000 0.364 0.636
#> SRR1401403 1 0.0000 0.9451 1.000 0.000 0.000 0.000
#> SRR1080534 1 0.1109 0.9198 0.968 0.004 0.028 0.000
#> SRR1487638 2 0.0188 0.9767 0.000 0.996 0.000 0.004
#> SRR1320650 2 0.0188 0.9767 0.000 0.996 0.004 0.000
#> SRR1073045 2 0.0000 0.9773 0.000 1.000 0.000 0.000
#> SRR1397030 2 0.0000 0.9773 0.000 1.000 0.000 0.000
#> SRR1439976 4 0.0188 0.8245 0.000 0.000 0.004 0.996
#> SRR1454050 2 0.0376 0.9759 0.000 0.992 0.004 0.004
#> SRR1070286 3 0.3764 0.6557 0.216 0.000 0.784 0.000
#> SRR1344185 2 0.0000 0.9773 0.000 1.000 0.000 0.000
#> SRR1084228 2 0.0000 0.9773 0.000 1.000 0.000 0.000
#> SRR1101907 2 0.0188 0.9767 0.000 0.996 0.000 0.004
#> SRR1079686 2 0.0188 0.9767 0.000 0.996 0.000 0.004
#> SRR1089761 4 0.5535 0.3377 0.000 0.420 0.020 0.560
#> SRR811403 2 0.0336 0.9758 0.000 0.992 0.008 0.000
#> SRR1440560 4 0.5147 0.2259 0.000 0.460 0.004 0.536
#> SRR1079706 3 0.0376 0.8396 0.004 0.004 0.992 0.000
#> SRR1459101 2 0.0376 0.9756 0.004 0.992 0.004 0.000
#> SRR1335089 3 0.4095 0.7065 0.000 0.192 0.792 0.016
#> SRR1337840 4 0.1867 0.7977 0.072 0.000 0.000 0.928
#> SRR808682 2 0.0000 0.9773 0.000 1.000 0.000 0.000
#> SRR1443224 2 0.0188 0.9767 0.000 0.996 0.000 0.004
#> SRR1439831 1 0.0000 0.9451 1.000 0.000 0.000 0.000
#> SRR1087463 3 0.6098 0.5040 0.000 0.316 0.616 0.068
#> SRR1457949 2 0.0707 0.9615 0.020 0.980 0.000 0.000
#> SRR1455969 2 0.0376 0.9755 0.004 0.992 0.000 0.004
#> SRR1415529 4 0.0000 0.8248 0.000 0.000 0.000 1.000
#> SRR1330018 2 0.0000 0.9773 0.000 1.000 0.000 0.000
#> SRR1370597 3 0.0188 0.8390 0.000 0.004 0.996 0.000
#> SRR1385524 2 0.0188 0.9765 0.000 0.996 0.004 0.000
#> SRR1351605 4 0.0000 0.8248 0.000 0.000 0.000 1.000
#> SRR1460148 1 0.0000 0.9451 1.000 0.000 0.000 0.000
#> SRR1354159 2 0.4989 -0.0649 0.000 0.528 0.000 0.472
#> SRR1318390 2 0.0524 0.9750 0.000 0.988 0.008 0.004
#> SRR1073095 2 0.0000 0.9773 0.000 1.000 0.000 0.000
#> SRR1410612 2 0.0188 0.9765 0.000 0.996 0.004 0.000
#> SRR1076892 1 0.0000 0.9451 1.000 0.000 0.000 0.000
#> SRR1340989 4 0.3217 0.7350 0.000 0.128 0.012 0.860
#> SRR1481375 2 0.0188 0.9767 0.000 0.996 0.004 0.000
#> SRR1079356 3 0.0188 0.8378 0.000 0.000 0.996 0.004
#> SRR1455545 4 0.0188 0.8245 0.000 0.000 0.004 0.996
#> SRR1406157 1 0.0000 0.9451 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.9773 0.000 1.000 0.000 0.000
#> SRR1420259 2 0.0000 0.9773 0.000 1.000 0.000 0.000
#> SRR1376963 2 0.0895 0.9673 0.000 0.976 0.020 0.004
#> SRR1101061 1 0.0000 0.9451 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.0336 0.9758 0.000 0.992 0.008 0.000
#> SRR1334791 1 0.0000 0.9451 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.0336 0.9758 0.000 0.992 0.008 0.000
#> SRR1330450 4 0.2546 0.7807 0.000 0.008 0.092 0.900
#> SRR1409108 2 0.0469 0.9734 0.000 0.988 0.012 0.000
#> SRR1416865 3 0.0188 0.8378 0.000 0.000 0.996 0.004
#> SRR1071832 4 0.0336 0.8244 0.000 0.000 0.008 0.992
#> SRR1093814 2 0.0188 0.9767 0.000 0.996 0.000 0.004
#> SRR1381821 3 0.0376 0.8396 0.004 0.004 0.992 0.000
#> SRR811675 3 0.1474 0.8212 0.052 0.000 0.948 0.000
#> SRR1082423 1 0.0000 0.9451 1.000 0.000 0.000 0.000
#> SRR1417296 2 0.0592 0.9715 0.000 0.984 0.016 0.000
#> SRR815944 4 0.4855 0.4041 0.000 0.400 0.000 0.600
#> SRR1332775 3 0.0592 0.8382 0.000 0.016 0.984 0.000
#> SRR1079143 4 0.0524 0.8235 0.000 0.004 0.008 0.988
#> SRR1476807 4 0.2149 0.7887 0.088 0.000 0.000 0.912
#> SRR1456634 1 0.4624 0.4478 0.660 0.000 0.000 0.340
#> SRR1083171 2 0.0188 0.9767 0.000 0.996 0.000 0.004
#> SRR1083337 1 0.0188 0.9429 0.996 0.000 0.000 0.004
#> SRR1377672 4 0.2401 0.7697 0.000 0.092 0.004 0.904
#> SRR1435816 1 0.6016 0.4966 0.680 0.208 0.112 0.000
#> SRR1080580 1 0.0000 0.9451 1.000 0.000 0.000 0.000
#> SRR1366672 2 0.0000 0.9773 0.000 1.000 0.000 0.000
#> SRR1075150 2 0.0000 0.9773 0.000 1.000 0.000 0.000
#> SRR814137 4 0.0188 0.8245 0.000 0.000 0.004 0.996
#> SRR1475062 1 0.0000 0.9451 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0188 0.9429 0.996 0.000 0.000 0.004
#> SRR1070789 2 0.0000 0.9773 0.000 1.000 0.000 0.000
#> SRR1097728 2 0.1356 0.9472 0.032 0.960 0.008 0.000
#> SRR1447172 2 0.0376 0.9759 0.000 0.992 0.004 0.004
#> SRR1472486 2 0.2216 0.8765 0.092 0.908 0.000 0.000
#> SRR1377881 1 0.0000 0.9451 1.000 0.000 0.000 0.000
#> SRR1420912 3 0.4941 0.1405 0.000 0.000 0.564 0.436
#> SRR1313747 2 0.0657 0.9731 0.000 0.984 0.012 0.004
#> SRR1414447 4 0.2011 0.7859 0.000 0.000 0.080 0.920
#> SRR1358238 4 0.0188 0.8247 0.004 0.000 0.000 0.996
#> SRR1322115 1 0.4222 0.6135 0.728 0.000 0.272 0.000
#> SRR1330474 4 0.4193 0.6048 0.268 0.000 0.000 0.732
#> SRR1093124 1 0.0469 0.9372 0.988 0.000 0.000 0.012
#> SRR1456354 4 0.0188 0.8247 0.004 0.000 0.000 0.996
#> SRR820859 3 0.0592 0.8363 0.016 0.000 0.984 0.000
#> SRR1401860 1 0.0000 0.9451 1.000 0.000 0.000 0.000
#> SRR1095599 3 0.3852 0.7176 0.008 0.192 0.800 0.000
#> SRR1417130 1 0.0707 0.9305 0.980 0.000 0.000 0.020
#> SRR1362597 2 0.0188 0.9765 0.000 0.996 0.004 0.000
#> SRR1328464 3 0.3707 0.7672 0.028 0.132 0.840 0.000
#> SRR1323957 4 0.2081 0.7912 0.084 0.000 0.000 0.916
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0290 0.9603 0.992 0.000 0.008 0.000 0.000
#> SRR1093410 1 0.0703 0.9537 0.976 0.000 0.024 0.000 0.000
#> SRR1380523 2 0.0510 0.8298 0.000 0.984 0.016 0.000 0.000
#> SRR1089106 4 0.6188 -0.0295 0.000 0.000 0.416 0.448 0.136
#> SRR1401403 1 0.0510 0.9557 0.984 0.000 0.000 0.000 0.016
#> SRR1080534 1 0.2408 0.8846 0.892 0.000 0.016 0.000 0.092
#> SRR1487638 2 0.1270 0.8290 0.000 0.948 0.052 0.000 0.000
#> SRR1320650 2 0.0609 0.8295 0.000 0.980 0.020 0.000 0.000
#> SRR1073045 2 0.2909 0.7821 0.012 0.848 0.140 0.000 0.000
#> SRR1397030 2 0.0609 0.8304 0.000 0.980 0.020 0.000 0.000
#> SRR1439976 4 0.2377 0.6945 0.000 0.000 0.128 0.872 0.000
#> SRR1454050 2 0.3123 0.7659 0.000 0.812 0.184 0.004 0.000
#> SRR1070286 5 0.3838 0.6565 0.148 0.000 0.044 0.004 0.804
#> SRR1344185 2 0.2377 0.7897 0.000 0.872 0.128 0.000 0.000
#> SRR1084228 2 0.1270 0.8266 0.000 0.948 0.052 0.000 0.000
#> SRR1101907 2 0.2127 0.8073 0.000 0.892 0.108 0.000 0.000
#> SRR1079686 2 0.1043 0.8282 0.000 0.960 0.040 0.000 0.000
#> SRR1089761 3 0.7865 0.4035 0.000 0.208 0.432 0.264 0.096
#> SRR811403 2 0.3561 0.5902 0.000 0.740 0.260 0.000 0.000
#> SRR1440560 4 0.6352 0.0485 0.000 0.188 0.308 0.504 0.000
#> SRR1079706 5 0.0290 0.7490 0.000 0.000 0.008 0.000 0.992
#> SRR1459101 2 0.2908 0.7678 0.008 0.868 0.108 0.016 0.000
#> SRR1335089 5 0.4737 0.6080 0.000 0.064 0.196 0.008 0.732
#> SRR1337840 4 0.1205 0.7483 0.040 0.000 0.004 0.956 0.000
#> SRR808682 2 0.0609 0.8297 0.000 0.980 0.020 0.000 0.000
#> SRR1443224 2 0.3093 0.7682 0.000 0.824 0.168 0.008 0.000
#> SRR1439831 1 0.0000 0.9614 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.6343 0.4471 0.000 0.200 0.044 0.132 0.624
#> SRR1457949 2 0.6380 0.1934 0.008 0.512 0.144 0.000 0.336
#> SRR1455969 2 0.4548 0.6688 0.120 0.752 0.128 0.000 0.000
#> SRR1415529 4 0.1270 0.7507 0.000 0.000 0.052 0.948 0.000
#> SRR1330018 2 0.1965 0.8137 0.000 0.904 0.096 0.000 0.000
#> SRR1370597 5 0.1908 0.7372 0.000 0.000 0.092 0.000 0.908
#> SRR1385524 2 0.0404 0.8289 0.000 0.988 0.012 0.000 0.000
#> SRR1351605 4 0.0000 0.7528 0.000 0.000 0.000 1.000 0.000
#> SRR1460148 1 0.0000 0.9614 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 2 0.5414 0.4909 0.000 0.660 0.140 0.200 0.000
#> SRR1318390 2 0.2561 0.7483 0.000 0.856 0.144 0.000 0.000
#> SRR1073095 2 0.0404 0.8289 0.000 0.988 0.012 0.000 0.000
#> SRR1410612 2 0.0609 0.8272 0.000 0.980 0.020 0.000 0.000
#> SRR1076892 1 0.0162 0.9610 0.996 0.000 0.004 0.000 0.000
#> SRR1340989 3 0.5726 0.2258 0.000 0.080 0.548 0.368 0.004
#> SRR1481375 2 0.3388 0.6944 0.008 0.792 0.200 0.000 0.000
#> SRR1079356 5 0.1197 0.7488 0.000 0.000 0.048 0.000 0.952
#> SRR1455545 4 0.0162 0.7529 0.000 0.000 0.004 0.996 0.000
#> SRR1406157 1 0.0290 0.9596 0.992 0.000 0.000 0.008 0.000
#> SRR1445920 2 0.0404 0.8289 0.000 0.988 0.012 0.000 0.000
#> SRR1420259 2 0.0510 0.8282 0.000 0.984 0.016 0.000 0.000
#> SRR1376963 3 0.4346 0.4897 0.000 0.304 0.680 0.012 0.004
#> SRR1101061 1 0.0000 0.9614 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.2127 0.7837 0.000 0.892 0.108 0.000 0.000
#> SRR1334791 1 0.0162 0.9610 0.996 0.000 0.004 0.000 0.000
#> SRR1072129 2 0.1270 0.8147 0.000 0.948 0.052 0.000 0.000
#> SRR1330450 4 0.2872 0.7216 0.000 0.008 0.048 0.884 0.060
#> SRR1409108 2 0.4235 0.1442 0.000 0.576 0.424 0.000 0.000
#> SRR1416865 5 0.2329 0.7251 0.000 0.000 0.124 0.000 0.876
#> SRR1071832 4 0.2424 0.6944 0.000 0.000 0.132 0.868 0.000
#> SRR1093814 2 0.3424 0.7223 0.000 0.760 0.240 0.000 0.000
#> SRR1381821 5 0.1341 0.7462 0.000 0.000 0.056 0.000 0.944
#> SRR811675 5 0.1670 0.7399 0.052 0.000 0.012 0.000 0.936
#> SRR1082423 1 0.0000 0.9614 1.000 0.000 0.000 0.000 0.000
#> SRR1417296 3 0.4917 0.3143 0.000 0.416 0.556 0.000 0.028
#> SRR815944 4 0.6032 -0.0301 0.000 0.368 0.124 0.508 0.000
#> SRR1332775 5 0.0880 0.7505 0.000 0.000 0.032 0.000 0.968
#> SRR1079143 4 0.4382 0.6033 0.000 0.012 0.228 0.736 0.024
#> SRR1476807 4 0.2304 0.7379 0.048 0.000 0.044 0.908 0.000
#> SRR1456634 4 0.4238 0.3941 0.368 0.000 0.004 0.628 0.000
#> SRR1083171 2 0.2561 0.7849 0.000 0.856 0.144 0.000 0.000
#> SRR1083337 1 0.0290 0.9596 0.992 0.000 0.000 0.008 0.000
#> SRR1377672 4 0.2595 0.6795 0.000 0.080 0.032 0.888 0.000
#> SRR1435816 5 0.6771 0.3498 0.148 0.260 0.040 0.000 0.552
#> SRR1080580 1 0.3312 0.8248 0.832 0.012 0.148 0.004 0.004
#> SRR1366672 2 0.2423 0.8119 0.024 0.896 0.080 0.000 0.000
#> SRR1075150 2 0.1121 0.8270 0.000 0.956 0.044 0.000 0.000
#> SRR814137 4 0.0404 0.7523 0.000 0.000 0.012 0.988 0.000
#> SRR1475062 1 0.0000 0.9614 1.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0566 0.9591 0.984 0.000 0.012 0.004 0.000
#> SRR1070789 2 0.1671 0.8171 0.000 0.924 0.076 0.000 0.000
#> SRR1097728 2 0.7796 -0.0157 0.116 0.472 0.196 0.000 0.216
#> SRR1447172 2 0.2179 0.7826 0.000 0.888 0.112 0.000 0.000
#> SRR1472486 2 0.2026 0.8180 0.008 0.924 0.056 0.000 0.012
#> SRR1377881 1 0.0000 0.9614 1.000 0.000 0.000 0.000 0.000
#> SRR1420912 3 0.6183 0.0743 0.000 0.000 0.544 0.180 0.276
#> SRR1313747 2 0.4161 0.3068 0.000 0.608 0.392 0.000 0.000
#> SRR1414447 4 0.5024 0.1403 0.000 0.004 0.440 0.532 0.024
#> SRR1358238 4 0.0000 0.7528 0.000 0.000 0.000 1.000 0.000
#> SRR1322115 1 0.4186 0.7298 0.768 0.000 0.044 0.004 0.184
#> SRR1330474 4 0.3123 0.6321 0.184 0.000 0.004 0.812 0.000
#> SRR1093124 1 0.0794 0.9484 0.972 0.000 0.000 0.028 0.000
#> SRR1456354 4 0.0880 0.7513 0.000 0.000 0.032 0.968 0.000
#> SRR820859 5 0.6051 0.2468 0.084 0.000 0.404 0.012 0.500
#> SRR1401860 1 0.2359 0.9042 0.912 0.036 0.044 0.000 0.008
#> SRR1095599 5 0.3674 0.6530 0.012 0.148 0.024 0.000 0.816
#> SRR1417130 1 0.0880 0.9458 0.968 0.000 0.000 0.032 0.000
#> SRR1362597 2 0.0404 0.8289 0.000 0.988 0.012 0.000 0.000
#> SRR1328464 5 0.6445 0.3298 0.016 0.136 0.316 0.000 0.532
#> SRR1323957 4 0.1121 0.7476 0.044 0.000 0.000 0.956 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.1508 0.9081 0.940 0.000 0.004 0.004 0.004 0.048
#> SRR1093410 1 0.2130 0.9002 0.916 0.000 0.020 0.008 0.008 0.048
#> SRR1380523 2 0.1219 0.7070 0.000 0.948 0.004 0.000 0.000 0.048
#> SRR1089106 4 0.6187 -0.0653 0.004 0.000 0.408 0.452 0.052 0.084
#> SRR1401403 1 0.2421 0.8736 0.900 0.000 0.028 0.000 0.040 0.032
#> SRR1080534 1 0.3111 0.8213 0.836 0.000 0.008 0.000 0.124 0.032
#> SRR1487638 2 0.1387 0.7129 0.000 0.932 0.000 0.000 0.000 0.068
#> SRR1320650 2 0.2176 0.7073 0.000 0.896 0.024 0.000 0.000 0.080
#> SRR1073045 2 0.4211 0.5691 0.000 0.616 0.016 0.000 0.004 0.364
#> SRR1397030 2 0.1082 0.7105 0.000 0.956 0.004 0.000 0.000 0.040
#> SRR1439976 4 0.3081 0.5748 0.004 0.000 0.220 0.776 0.000 0.000
#> SRR1454050 2 0.4172 0.5657 0.000 0.680 0.040 0.000 0.000 0.280
#> SRR1070286 5 0.5751 0.5336 0.088 0.000 0.068 0.028 0.680 0.136
#> SRR1344185 2 0.3714 0.6025 0.000 0.656 0.004 0.000 0.000 0.340
#> SRR1084228 2 0.3071 0.6867 0.000 0.804 0.016 0.000 0.000 0.180
#> SRR1101907 2 0.3351 0.6369 0.000 0.712 0.000 0.000 0.000 0.288
#> SRR1079686 2 0.1714 0.7089 0.000 0.908 0.000 0.000 0.000 0.092
#> SRR1089761 6 0.8105 0.3146 0.000 0.092 0.232 0.144 0.116 0.416
#> SRR811403 2 0.4892 0.3672 0.000 0.660 0.164 0.000 0.000 0.176
#> SRR1440560 4 0.7089 -0.1140 0.000 0.080 0.240 0.392 0.000 0.288
#> SRR1079706 5 0.1151 0.7183 0.000 0.000 0.032 0.000 0.956 0.012
#> SRR1459101 2 0.3530 0.5659 0.004 0.796 0.004 0.032 0.000 0.164
#> SRR1335089 5 0.5549 0.3480 0.000 0.008 0.112 0.024 0.636 0.220
#> SRR1337840 4 0.1059 0.7130 0.016 0.000 0.004 0.964 0.000 0.016
#> SRR808682 2 0.1501 0.7110 0.000 0.924 0.000 0.000 0.000 0.076
#> SRR1443224 2 0.4203 0.5501 0.000 0.596 0.008 0.008 0.000 0.388
#> SRR1439831 1 0.0146 0.9216 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1087463 5 0.7501 0.1654 0.000 0.112 0.076 0.296 0.448 0.068
#> SRR1457949 2 0.5862 0.4450 0.004 0.516 0.012 0.000 0.132 0.336
#> SRR1455969 2 0.5611 0.4012 0.152 0.484 0.000 0.000 0.000 0.364
#> SRR1415529 4 0.2325 0.7031 0.000 0.000 0.048 0.892 0.000 0.060
#> SRR1330018 2 0.3290 0.6749 0.000 0.776 0.016 0.000 0.000 0.208
#> SRR1370597 5 0.2020 0.7092 0.000 0.000 0.096 0.000 0.896 0.008
#> SRR1385524 2 0.0436 0.7052 0.000 0.988 0.004 0.000 0.004 0.004
#> SRR1351605 4 0.0146 0.7102 0.000 0.000 0.000 0.996 0.000 0.004
#> SRR1460148 1 0.0146 0.9216 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1354159 2 0.6768 0.1991 0.000 0.404 0.040 0.212 0.004 0.340
#> SRR1318390 2 0.3858 0.5156 0.000 0.740 0.044 0.000 0.000 0.216
#> SRR1073095 2 0.0363 0.7063 0.000 0.988 0.000 0.000 0.000 0.012
#> SRR1410612 2 0.0458 0.7059 0.000 0.984 0.000 0.000 0.000 0.016
#> SRR1076892 1 0.0146 0.9213 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1340989 3 0.7124 0.0100 0.000 0.076 0.360 0.300 0.000 0.264
#> SRR1481375 2 0.5441 -0.0156 0.008 0.528 0.052 0.000 0.020 0.392
#> SRR1079356 5 0.2401 0.6802 0.000 0.000 0.044 0.004 0.892 0.060
#> SRR1455545 4 0.1155 0.7060 0.004 0.000 0.036 0.956 0.000 0.004
#> SRR1406157 1 0.0777 0.9159 0.972 0.000 0.004 0.024 0.000 0.000
#> SRR1445920 2 0.0458 0.7074 0.000 0.984 0.000 0.000 0.000 0.016
#> SRR1420259 2 0.1082 0.7071 0.000 0.956 0.004 0.000 0.000 0.040
#> SRR1376963 3 0.5168 0.1163 0.000 0.116 0.652 0.016 0.000 0.216
#> SRR1101061 1 0.0146 0.9216 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1414496 2 0.2848 0.5790 0.000 0.816 0.008 0.000 0.000 0.176
#> SRR1334791 1 0.0260 0.9208 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1072129 2 0.1549 0.6929 0.000 0.936 0.020 0.000 0.000 0.044
#> SRR1330450 4 0.4763 0.5825 0.000 0.000 0.104 0.728 0.036 0.132
#> SRR1409108 2 0.5863 -0.0306 0.000 0.480 0.284 0.000 0.000 0.236
#> SRR1416865 5 0.2805 0.6796 0.000 0.000 0.160 0.000 0.828 0.012
#> SRR1071832 4 0.4099 0.5254 0.000 0.004 0.176 0.748 0.000 0.072
#> SRR1093814 2 0.6151 0.3104 0.000 0.464 0.196 0.008 0.004 0.328
#> SRR1381821 5 0.1967 0.7138 0.000 0.000 0.084 0.000 0.904 0.012
#> SRR811675 5 0.1794 0.7077 0.016 0.000 0.028 0.000 0.932 0.024
#> SRR1082423 1 0.0146 0.9216 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1417296 2 0.6290 -0.2228 0.000 0.456 0.208 0.000 0.020 0.316
#> SRR815944 4 0.6136 0.1147 0.000 0.228 0.008 0.448 0.000 0.316
#> SRR1332775 5 0.1461 0.7198 0.000 0.000 0.044 0.000 0.940 0.016
#> SRR1079143 4 0.5390 0.3167 0.000 0.004 0.044 0.520 0.028 0.404
#> SRR1476807 4 0.2699 0.7000 0.020 0.000 0.032 0.880 0.000 0.068
#> SRR1456634 4 0.4327 0.4742 0.252 0.000 0.020 0.700 0.000 0.028
#> SRR1083171 2 0.3729 0.6211 0.000 0.692 0.012 0.000 0.000 0.296
#> SRR1083337 1 0.0632 0.9171 0.976 0.000 0.000 0.024 0.000 0.000
#> SRR1377672 4 0.2679 0.6344 0.000 0.096 0.004 0.868 0.000 0.032
#> SRR1435816 5 0.5966 0.1551 0.040 0.280 0.036 0.000 0.592 0.052
#> SRR1080580 1 0.4835 0.3953 0.548 0.004 0.032 0.000 0.008 0.408
#> SRR1366672 2 0.3838 0.6586 0.020 0.732 0.008 0.000 0.000 0.240
#> SRR1075150 2 0.2101 0.7059 0.000 0.892 0.004 0.000 0.004 0.100
#> SRR814137 4 0.1341 0.7113 0.000 0.000 0.028 0.948 0.000 0.024
#> SRR1475062 1 0.0260 0.9212 0.992 0.000 0.000 0.000 0.000 0.008
#> SRR1340028 1 0.1194 0.9159 0.956 0.000 0.004 0.008 0.000 0.032
#> SRR1070789 2 0.2454 0.6951 0.000 0.840 0.000 0.000 0.000 0.160
#> SRR1097728 6 0.7300 0.5256 0.072 0.188 0.040 0.000 0.208 0.492
#> SRR1447172 2 0.3424 0.5721 0.000 0.772 0.024 0.000 0.000 0.204
#> SRR1472486 2 0.4476 0.6094 0.008 0.732 0.020 0.000 0.044 0.196
#> SRR1377881 1 0.0000 0.9211 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 3 0.4120 0.3500 0.000 0.000 0.744 0.096 0.160 0.000
#> SRR1313747 2 0.5999 -0.0675 0.000 0.432 0.312 0.000 0.000 0.256
#> SRR1414447 3 0.6044 0.0656 0.000 0.004 0.424 0.416 0.012 0.144
#> SRR1358238 4 0.0000 0.7103 0.000 0.000 0.000 1.000 0.000 0.000
#> SRR1322115 1 0.4172 0.7188 0.756 0.000 0.156 0.004 0.080 0.004
#> SRR1330474 4 0.2809 0.6056 0.168 0.000 0.004 0.824 0.000 0.004
#> SRR1093124 1 0.1757 0.8830 0.916 0.000 0.000 0.076 0.000 0.008
#> SRR1456354 4 0.3047 0.6655 0.004 0.000 0.064 0.848 0.000 0.084
#> SRR820859 3 0.5310 -0.0368 0.060 0.000 0.528 0.000 0.392 0.020
#> SRR1401860 1 0.3013 0.8574 0.860 0.016 0.008 0.004 0.012 0.100
#> SRR1095599 5 0.2964 0.5639 0.000 0.140 0.012 0.000 0.836 0.012
#> SRR1417130 1 0.1841 0.8883 0.920 0.000 0.008 0.064 0.000 0.008
#> SRR1362597 2 0.0665 0.7037 0.000 0.980 0.004 0.000 0.008 0.008
#> SRR1328464 6 0.7487 0.4899 0.020 0.180 0.092 0.000 0.348 0.360
#> SRR1323957 4 0.1080 0.7089 0.032 0.000 0.004 0.960 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["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 17633 rows and 97 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.492 0.686 0.851 0.4456 0.576 0.576
#> 3 3 0.813 0.866 0.929 0.4824 0.740 0.555
#> 4 4 0.819 0.831 0.896 0.1191 0.926 0.777
#> 5 5 0.786 0.784 0.817 0.0547 0.961 0.850
#> 6 6 0.838 0.826 0.871 0.0483 0.950 0.771
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
#> SRR1397242 1 0.0000 0.758 1.000 0.000
#> SRR1093410 1 0.0000 0.758 1.000 0.000
#> SRR1380523 2 0.0000 0.938 0.000 1.000
#> SRR1089106 1 0.0000 0.758 1.000 0.000
#> SRR1401403 1 0.0000 0.758 1.000 0.000
#> SRR1080534 1 0.3584 0.731 0.932 0.068
#> SRR1487638 2 0.0000 0.938 0.000 1.000
#> SRR1320650 2 0.0376 0.935 0.004 0.996
#> SRR1073045 1 1.0000 0.356 0.504 0.496
#> SRR1397030 2 0.0000 0.938 0.000 1.000
#> SRR1439976 1 0.0000 0.758 1.000 0.000
#> SRR1454050 2 0.1414 0.917 0.020 0.980
#> SRR1070286 1 0.0000 0.758 1.000 0.000
#> SRR1344185 1 1.0000 0.356 0.504 0.496
#> SRR1084228 2 0.0000 0.938 0.000 1.000
#> SRR1101907 1 1.0000 0.356 0.504 0.496
#> SRR1079686 2 0.0000 0.938 0.000 1.000
#> SRR1089761 1 0.9993 0.379 0.516 0.484
#> SRR811403 2 0.0376 0.935 0.004 0.996
#> SRR1440560 1 0.9993 0.379 0.516 0.484
#> SRR1079706 1 0.9580 0.529 0.620 0.380
#> SRR1459101 1 0.9580 0.529 0.620 0.380
#> SRR1335089 1 0.9427 0.547 0.640 0.360
#> SRR1337840 1 0.0000 0.758 1.000 0.000
#> SRR808682 2 0.0000 0.938 0.000 1.000
#> SRR1443224 2 0.7883 0.559 0.236 0.764
#> SRR1439831 1 0.0000 0.758 1.000 0.000
#> SRR1087463 1 0.9580 0.529 0.620 0.380
#> SRR1457949 1 1.0000 0.356 0.504 0.496
#> SRR1455969 1 1.0000 0.356 0.504 0.496
#> SRR1415529 1 0.0000 0.758 1.000 0.000
#> SRR1330018 2 0.0000 0.938 0.000 1.000
#> SRR1370597 1 1.0000 0.356 0.504 0.496
#> SRR1385524 2 0.0000 0.938 0.000 1.000
#> SRR1351605 1 0.0000 0.758 1.000 0.000
#> SRR1460148 1 0.0000 0.758 1.000 0.000
#> SRR1354159 1 0.9996 0.372 0.512 0.488
#> SRR1318390 2 0.0376 0.935 0.004 0.996
#> SRR1073095 2 0.0000 0.938 0.000 1.000
#> SRR1410612 2 0.0000 0.938 0.000 1.000
#> SRR1076892 1 0.0000 0.758 1.000 0.000
#> SRR1340989 1 0.9580 0.529 0.620 0.380
#> SRR1481375 1 1.0000 0.356 0.504 0.496
#> SRR1079356 1 0.0000 0.758 1.000 0.000
#> SRR1455545 1 0.0000 0.758 1.000 0.000
#> SRR1406157 1 0.0000 0.758 1.000 0.000
#> SRR1445920 2 0.0000 0.938 0.000 1.000
#> SRR1420259 1 1.0000 0.356 0.504 0.496
#> SRR1376963 2 0.7815 0.568 0.232 0.768
#> SRR1101061 1 0.0000 0.758 1.000 0.000
#> SRR1414496 2 0.0000 0.938 0.000 1.000
#> SRR1334791 1 0.0000 0.758 1.000 0.000
#> SRR1072129 2 0.0000 0.938 0.000 1.000
#> SRR1330450 1 0.9393 0.551 0.644 0.356
#> SRR1409108 2 0.0000 0.938 0.000 1.000
#> SRR1416865 1 0.9580 0.529 0.620 0.380
#> SRR1071832 1 0.0000 0.758 1.000 0.000
#> SRR1093814 2 0.7883 0.559 0.236 0.764
#> SRR1381821 1 0.9580 0.529 0.620 0.380
#> SRR811675 1 0.0000 0.758 1.000 0.000
#> SRR1082423 1 0.0000 0.758 1.000 0.000
#> SRR1417296 2 0.0000 0.938 0.000 1.000
#> SRR815944 1 0.9970 0.406 0.532 0.468
#> SRR1332775 2 0.9988 -0.322 0.480 0.520
#> SRR1079143 1 0.9580 0.529 0.620 0.380
#> SRR1476807 1 0.0000 0.758 1.000 0.000
#> SRR1456634 1 0.0000 0.758 1.000 0.000
#> SRR1083171 2 0.0000 0.938 0.000 1.000
#> SRR1083337 1 0.0000 0.758 1.000 0.000
#> SRR1377672 1 0.9580 0.529 0.620 0.380
#> SRR1435816 1 1.0000 0.356 0.504 0.496
#> SRR1080580 1 0.1633 0.750 0.976 0.024
#> SRR1366672 1 1.0000 0.356 0.504 0.496
#> SRR1075150 2 0.0000 0.938 0.000 1.000
#> SRR814137 1 0.0000 0.758 1.000 0.000
#> SRR1475062 1 0.0000 0.758 1.000 0.000
#> SRR1340028 1 0.0000 0.758 1.000 0.000
#> SRR1070789 2 0.0000 0.938 0.000 1.000
#> SRR1097728 1 1.0000 0.356 0.504 0.496
#> SRR1447172 2 0.0000 0.938 0.000 1.000
#> SRR1472486 1 1.0000 0.356 0.504 0.496
#> SRR1377881 1 0.0000 0.758 1.000 0.000
#> SRR1420912 1 0.0000 0.758 1.000 0.000
#> SRR1313747 2 0.0000 0.938 0.000 1.000
#> SRR1414447 1 0.9993 0.379 0.516 0.484
#> SRR1358238 1 0.0000 0.758 1.000 0.000
#> SRR1322115 1 0.0000 0.758 1.000 0.000
#> SRR1330474 1 0.0000 0.758 1.000 0.000
#> SRR1093124 1 0.0000 0.758 1.000 0.000
#> SRR1456354 1 0.0000 0.758 1.000 0.000
#> SRR820859 1 0.0000 0.758 1.000 0.000
#> SRR1401860 1 0.1633 0.750 0.976 0.024
#> SRR1095599 1 1.0000 0.356 0.504 0.496
#> SRR1417130 1 0.0000 0.758 1.000 0.000
#> SRR1362597 2 0.0000 0.938 0.000 1.000
#> SRR1328464 1 1.0000 0.356 0.504 0.496
#> SRR1323957 1 0.0000 0.758 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1089106 1 0.2066 0.937 0.940 0.000 0.060
#> SRR1401403 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1080534 3 0.5905 0.503 0.352 0.000 0.648
#> SRR1487638 2 0.0237 0.956 0.000 0.996 0.004
#> SRR1320650 2 0.0892 0.954 0.000 0.980 0.020
#> SRR1073045 3 0.2448 0.843 0.000 0.076 0.924
#> SRR1397030 2 0.1031 0.952 0.000 0.976 0.024
#> SRR1439976 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1454050 2 0.1964 0.927 0.000 0.944 0.056
#> SRR1070286 1 0.2165 0.933 0.936 0.000 0.064
#> SRR1344185 3 0.2537 0.842 0.000 0.080 0.920
#> SRR1084228 2 0.1031 0.952 0.000 0.976 0.024
#> SRR1101907 3 0.2625 0.840 0.000 0.084 0.916
#> SRR1079686 2 0.1031 0.952 0.000 0.976 0.024
#> SRR1089761 3 0.2165 0.844 0.000 0.064 0.936
#> SRR811403 2 0.0892 0.954 0.000 0.980 0.020
#> SRR1440560 3 0.2165 0.844 0.000 0.064 0.936
#> SRR1079706 3 0.1529 0.835 0.040 0.000 0.960
#> SRR1459101 3 0.1529 0.835 0.040 0.000 0.960
#> SRR1335089 3 0.2066 0.828 0.060 0.000 0.940
#> SRR1337840 1 0.0000 0.983 1.000 0.000 0.000
#> SRR808682 2 0.0424 0.956 0.000 0.992 0.008
#> SRR1443224 2 0.5431 0.611 0.000 0.716 0.284
#> SRR1439831 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1087463 3 0.1529 0.835 0.040 0.000 0.960
#> SRR1457949 3 0.2448 0.843 0.000 0.076 0.924
#> SRR1455969 3 0.2537 0.842 0.000 0.080 0.920
#> SRR1415529 1 0.3816 0.828 0.852 0.000 0.148
#> SRR1330018 2 0.0424 0.956 0.000 0.992 0.008
#> SRR1370597 3 0.2448 0.843 0.000 0.076 0.924
#> SRR1385524 2 0.0747 0.955 0.000 0.984 0.016
#> SRR1351605 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1460148 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1354159 3 0.2356 0.844 0.000 0.072 0.928
#> SRR1318390 2 0.0892 0.954 0.000 0.980 0.020
#> SRR1073095 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1340989 3 0.1529 0.835 0.040 0.000 0.960
#> SRR1481375 3 0.2448 0.843 0.000 0.076 0.924
#> SRR1079356 3 0.6204 0.364 0.424 0.000 0.576
#> SRR1455545 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1406157 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1420259 3 0.2625 0.840 0.000 0.084 0.916
#> SRR1376963 2 0.5397 0.618 0.000 0.720 0.280
#> SRR1101061 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1330450 3 0.2165 0.826 0.064 0.000 0.936
#> SRR1409108 2 0.0424 0.956 0.000 0.992 0.008
#> SRR1416865 3 0.1529 0.835 0.040 0.000 0.960
#> SRR1071832 1 0.3816 0.828 0.852 0.000 0.148
#> SRR1093814 2 0.5650 0.560 0.000 0.688 0.312
#> SRR1381821 3 0.1529 0.835 0.040 0.000 0.960
#> SRR811675 3 0.6204 0.364 0.424 0.000 0.576
#> SRR1082423 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.955 0.000 1.000 0.000
#> SRR815944 3 0.1753 0.843 0.000 0.048 0.952
#> SRR1332775 3 0.3340 0.809 0.000 0.120 0.880
#> SRR1079143 3 0.1529 0.835 0.040 0.000 0.960
#> SRR1476807 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1456634 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1083171 2 0.1031 0.952 0.000 0.976 0.024
#> SRR1083337 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1377672 3 0.1529 0.835 0.040 0.000 0.960
#> SRR1435816 3 0.2448 0.843 0.000 0.076 0.924
#> SRR1080580 3 0.6111 0.423 0.396 0.000 0.604
#> SRR1366672 3 0.2537 0.842 0.000 0.080 0.920
#> SRR1075150 2 0.0747 0.955 0.000 0.984 0.016
#> SRR814137 1 0.2165 0.933 0.936 0.000 0.064
#> SRR1475062 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1097728 3 0.2537 0.842 0.000 0.080 0.920
#> SRR1447172 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1472486 3 0.2448 0.843 0.000 0.076 0.924
#> SRR1377881 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1420912 3 0.6204 0.364 0.424 0.000 0.576
#> SRR1313747 2 0.0424 0.956 0.000 0.992 0.008
#> SRR1414447 3 0.2165 0.844 0.000 0.064 0.936
#> SRR1358238 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1322115 3 0.6215 0.354 0.428 0.000 0.572
#> SRR1330474 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1456354 1 0.0000 0.983 1.000 0.000 0.000
#> SRR820859 3 0.6204 0.364 0.424 0.000 0.576
#> SRR1401860 3 0.6111 0.423 0.396 0.000 0.604
#> SRR1095599 3 0.2537 0.842 0.000 0.080 0.920
#> SRR1417130 1 0.0000 0.983 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.955 0.000 1.000 0.000
#> SRR1328464 3 0.2537 0.842 0.000 0.080 0.920
#> SRR1323957 1 0.0000 0.983 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.3356 0.863 0.824 0.000 0.000 0.176
#> SRR1093410 1 0.3356 0.863 0.824 0.000 0.000 0.176
#> SRR1380523 2 0.0188 0.928 0.000 0.996 0.000 0.004
#> SRR1089106 1 0.2469 0.807 0.892 0.000 0.000 0.108
#> SRR1401403 1 0.3356 0.863 0.824 0.000 0.000 0.176
#> SRR1080534 4 0.4820 0.753 0.168 0.000 0.060 0.772
#> SRR1487638 2 0.0895 0.932 0.000 0.976 0.020 0.004
#> SRR1320650 2 0.1637 0.927 0.000 0.940 0.060 0.000
#> SRR1073045 3 0.0000 0.920 0.000 0.000 1.000 0.000
#> SRR1397030 2 0.1716 0.925 0.000 0.936 0.064 0.000
#> SRR1439976 1 0.0000 0.891 1.000 0.000 0.000 0.000
#> SRR1454050 2 0.2469 0.892 0.000 0.892 0.108 0.000
#> SRR1070286 1 0.2647 0.795 0.880 0.000 0.000 0.120
#> SRR1344185 3 0.0188 0.920 0.000 0.004 0.996 0.000
#> SRR1084228 2 0.1716 0.925 0.000 0.936 0.064 0.000
#> SRR1101907 3 0.0336 0.915 0.000 0.008 0.992 0.000
#> SRR1079686 2 0.1716 0.925 0.000 0.936 0.064 0.000
#> SRR1089761 3 0.0592 0.911 0.000 0.000 0.984 0.016
#> SRR811403 2 0.1637 0.927 0.000 0.940 0.060 0.000
#> SRR1440560 3 0.0592 0.911 0.000 0.000 0.984 0.016
#> SRR1079706 4 0.4761 0.601 0.000 0.000 0.372 0.628
#> SRR1459101 3 0.4713 0.237 0.000 0.000 0.640 0.360
#> SRR1335089 4 0.4679 0.620 0.000 0.000 0.352 0.648
#> SRR1337840 1 0.0000 0.891 1.000 0.000 0.000 0.000
#> SRR808682 2 0.0921 0.933 0.000 0.972 0.028 0.000
#> SRR1443224 2 0.4697 0.574 0.000 0.644 0.356 0.000
#> SRR1439831 1 0.3356 0.863 0.824 0.000 0.000 0.176
#> SRR1087463 4 0.4761 0.601 0.000 0.000 0.372 0.628
#> SRR1457949 3 0.0000 0.920 0.000 0.000 1.000 0.000
#> SRR1455969 3 0.0188 0.920 0.000 0.004 0.996 0.000
#> SRR1415529 1 0.3764 0.660 0.784 0.000 0.000 0.216
#> SRR1330018 2 0.0921 0.933 0.000 0.972 0.028 0.000
#> SRR1370597 3 0.0000 0.920 0.000 0.000 1.000 0.000
#> SRR1385524 2 0.1211 0.932 0.000 0.960 0.040 0.000
#> SRR1351605 1 0.0000 0.891 1.000 0.000 0.000 0.000
#> SRR1460148 1 0.3356 0.863 0.824 0.000 0.000 0.176
#> SRR1354159 3 0.0524 0.918 0.000 0.004 0.988 0.008
#> SRR1318390 2 0.1637 0.927 0.000 0.940 0.060 0.000
#> SRR1073095 2 0.0188 0.928 0.000 0.996 0.000 0.004
#> SRR1410612 2 0.0188 0.928 0.000 0.996 0.000 0.004
#> SRR1076892 1 0.3356 0.863 0.824 0.000 0.000 0.176
#> SRR1340989 3 0.4713 0.237 0.000 0.000 0.640 0.360
#> SRR1481375 3 0.0000 0.920 0.000 0.000 1.000 0.000
#> SRR1079356 4 0.3528 0.751 0.192 0.000 0.000 0.808
#> SRR1455545 1 0.0000 0.891 1.000 0.000 0.000 0.000
#> SRR1406157 1 0.0000 0.891 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.0188 0.928 0.000 0.996 0.000 0.004
#> SRR1420259 3 0.0336 0.916 0.000 0.008 0.992 0.000
#> SRR1376963 2 0.4679 0.581 0.000 0.648 0.352 0.000
#> SRR1101061 1 0.3356 0.863 0.824 0.000 0.000 0.176
#> SRR1414496 2 0.0188 0.928 0.000 0.996 0.000 0.004
#> SRR1334791 1 0.3356 0.863 0.824 0.000 0.000 0.176
#> SRR1072129 2 0.0188 0.928 0.000 0.996 0.000 0.004
#> SRR1330450 4 0.4661 0.623 0.000 0.000 0.348 0.652
#> SRR1409108 2 0.0921 0.933 0.000 0.972 0.028 0.000
#> SRR1416865 4 0.4761 0.601 0.000 0.000 0.372 0.628
#> SRR1071832 1 0.3764 0.660 0.784 0.000 0.000 0.216
#> SRR1093814 2 0.4817 0.510 0.000 0.612 0.388 0.000
#> SRR1381821 4 0.4761 0.601 0.000 0.000 0.372 0.628
#> SRR811675 4 0.3528 0.751 0.192 0.000 0.000 0.808
#> SRR1082423 1 0.3356 0.863 0.824 0.000 0.000 0.176
#> SRR1417296 2 0.0188 0.928 0.000 0.996 0.000 0.004
#> SRR815944 3 0.1211 0.889 0.000 0.000 0.960 0.040
#> SRR1332775 3 0.1389 0.872 0.000 0.048 0.952 0.000
#> SRR1079143 4 0.4817 0.570 0.000 0.000 0.388 0.612
#> SRR1476807 1 0.0000 0.891 1.000 0.000 0.000 0.000
#> SRR1456634 1 0.0000 0.891 1.000 0.000 0.000 0.000
#> SRR1083171 2 0.1792 0.923 0.000 0.932 0.068 0.000
#> SRR1083337 1 0.3356 0.863 0.824 0.000 0.000 0.176
#> SRR1377672 3 0.4713 0.237 0.000 0.000 0.640 0.360
#> SRR1435816 3 0.0188 0.919 0.000 0.000 0.996 0.004
#> SRR1080580 4 0.3836 0.760 0.168 0.000 0.016 0.816
#> SRR1366672 3 0.0188 0.920 0.000 0.004 0.996 0.000
#> SRR1075150 2 0.1211 0.932 0.000 0.960 0.040 0.000
#> SRR814137 1 0.2647 0.795 0.880 0.000 0.000 0.120
#> SRR1475062 1 0.3356 0.863 0.824 0.000 0.000 0.176
#> SRR1340028 1 0.0000 0.891 1.000 0.000 0.000 0.000
#> SRR1070789 2 0.0188 0.928 0.000 0.996 0.000 0.004
#> SRR1097728 3 0.0188 0.920 0.000 0.004 0.996 0.000
#> SRR1447172 2 0.0188 0.928 0.000 0.996 0.000 0.004
#> SRR1472486 3 0.0000 0.920 0.000 0.000 1.000 0.000
#> SRR1377881 1 0.3356 0.863 0.824 0.000 0.000 0.176
#> SRR1420912 4 0.3528 0.751 0.192 0.000 0.000 0.808
#> SRR1313747 2 0.0921 0.933 0.000 0.972 0.028 0.000
#> SRR1414447 3 0.0707 0.909 0.000 0.000 0.980 0.020
#> SRR1358238 1 0.0000 0.891 1.000 0.000 0.000 0.000
#> SRR1322115 4 0.3569 0.747 0.196 0.000 0.000 0.804
#> SRR1330474 1 0.0188 0.891 0.996 0.000 0.000 0.004
#> SRR1093124 1 0.0817 0.890 0.976 0.000 0.000 0.024
#> SRR1456354 1 0.0000 0.891 1.000 0.000 0.000 0.000
#> SRR820859 4 0.3528 0.751 0.192 0.000 0.000 0.808
#> SRR1401860 4 0.3836 0.760 0.168 0.000 0.016 0.816
#> SRR1095599 3 0.0188 0.920 0.000 0.004 0.996 0.000
#> SRR1417130 1 0.0000 0.891 1.000 0.000 0.000 0.000
#> SRR1362597 2 0.0188 0.928 0.000 0.996 0.000 0.004
#> SRR1328464 3 0.0188 0.920 0.000 0.004 0.996 0.000
#> SRR1323957 1 0.0000 0.891 1.000 0.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.5886 0.740 0.600 0.224 0.000 0.000 0.176
#> SRR1093410 1 0.5886 0.740 0.600 0.224 0.000 0.000 0.176
#> SRR1380523 4 0.0000 0.999 0.000 0.000 0.000 1.000 0.000
#> SRR1089106 1 0.2813 0.699 0.876 0.084 0.000 0.000 0.040
#> SRR1401403 1 0.5886 0.740 0.600 0.224 0.000 0.000 0.176
#> SRR1080534 5 0.5019 0.726 0.164 0.036 0.060 0.000 0.740
#> SRR1487638 2 0.4331 0.777 0.000 0.596 0.004 0.400 0.000
#> SRR1320650 2 0.4770 0.852 0.000 0.644 0.036 0.320 0.000
#> SRR1073045 3 0.0510 0.917 0.000 0.016 0.984 0.000 0.000
#> SRR1397030 2 0.4857 0.852 0.000 0.636 0.040 0.324 0.000
#> SRR1439976 1 0.0000 0.789 1.000 0.000 0.000 0.000 0.000
#> SRR1454050 2 0.5210 0.809 0.000 0.652 0.084 0.264 0.000
#> SRR1070286 1 0.3033 0.687 0.864 0.084 0.000 0.000 0.052
#> SRR1344185 3 0.0510 0.917 0.000 0.016 0.984 0.000 0.000
#> SRR1084228 2 0.4857 0.852 0.000 0.636 0.040 0.324 0.000
#> SRR1101907 3 0.0703 0.911 0.000 0.024 0.976 0.000 0.000
#> SRR1079686 2 0.4857 0.852 0.000 0.636 0.040 0.324 0.000
#> SRR1089761 3 0.0451 0.909 0.000 0.004 0.988 0.000 0.008
#> SRR811403 2 0.4637 0.845 0.000 0.672 0.036 0.292 0.000
#> SRR1440560 3 0.0671 0.905 0.000 0.004 0.980 0.000 0.016
#> SRR1079706 5 0.4074 0.567 0.000 0.000 0.364 0.000 0.636
#> SRR1459101 3 0.4211 0.284 0.000 0.004 0.636 0.000 0.360
#> SRR1335089 5 0.3999 0.587 0.000 0.000 0.344 0.000 0.656
#> SRR1337840 1 0.0000 0.789 1.000 0.000 0.000 0.000 0.000
#> SRR808682 2 0.4196 0.828 0.000 0.640 0.004 0.356 0.000
#> SRR1443224 2 0.4957 0.545 0.000 0.624 0.332 0.044 0.000
#> SRR1439831 1 0.5862 0.740 0.604 0.220 0.000 0.000 0.176
#> SRR1087463 5 0.4074 0.567 0.000 0.000 0.364 0.000 0.636
#> SRR1457949 3 0.0510 0.917 0.000 0.016 0.984 0.000 0.000
#> SRR1455969 3 0.0404 0.917 0.000 0.012 0.988 0.000 0.000
#> SRR1415529 1 0.4309 0.595 0.768 0.084 0.000 0.000 0.148
#> SRR1330018 2 0.4196 0.828 0.000 0.640 0.004 0.356 0.000
#> SRR1370597 3 0.0404 0.916 0.000 0.012 0.988 0.000 0.000
#> SRR1385524 2 0.4467 0.841 0.000 0.640 0.016 0.344 0.000
#> SRR1351605 1 0.0000 0.789 1.000 0.000 0.000 0.000 0.000
#> SRR1460148 1 0.5886 0.740 0.600 0.224 0.000 0.000 0.176
#> SRR1354159 3 0.0290 0.915 0.000 0.008 0.992 0.000 0.000
#> SRR1318390 2 0.4637 0.845 0.000 0.672 0.036 0.292 0.000
#> SRR1073095 4 0.0000 0.999 0.000 0.000 0.000 1.000 0.000
#> SRR1410612 4 0.0000 0.999 0.000 0.000 0.000 1.000 0.000
#> SRR1076892 1 0.5886 0.740 0.600 0.224 0.000 0.000 0.176
#> SRR1340989 3 0.4211 0.284 0.000 0.004 0.636 0.000 0.360
#> SRR1481375 3 0.0404 0.918 0.000 0.012 0.988 0.000 0.000
#> SRR1079356 5 0.4734 0.703 0.176 0.096 0.000 0.000 0.728
#> SRR1455545 1 0.0000 0.789 1.000 0.000 0.000 0.000 0.000
#> SRR1406157 1 0.0404 0.791 0.988 0.012 0.000 0.000 0.000
#> SRR1445920 4 0.0000 0.999 0.000 0.000 0.000 1.000 0.000
#> SRR1420259 3 0.0510 0.916 0.000 0.016 0.984 0.000 0.000
#> SRR1376963 2 0.4941 0.548 0.000 0.628 0.328 0.044 0.000
#> SRR1101061 1 0.5886 0.740 0.600 0.224 0.000 0.000 0.176
#> SRR1414496 4 0.0000 0.999 0.000 0.000 0.000 1.000 0.000
#> SRR1334791 1 0.5886 0.740 0.600 0.224 0.000 0.000 0.176
#> SRR1072129 4 0.0000 0.999 0.000 0.000 0.000 1.000 0.000
#> SRR1330450 5 0.3983 0.590 0.000 0.000 0.340 0.000 0.660
#> SRR1409108 2 0.4066 0.836 0.000 0.672 0.004 0.324 0.000
#> SRR1416865 5 0.4074 0.567 0.000 0.000 0.364 0.000 0.636
#> SRR1071832 1 0.4309 0.595 0.768 0.084 0.000 0.000 0.148
#> SRR1093814 2 0.4969 0.494 0.000 0.588 0.376 0.036 0.000
#> SRR1381821 5 0.4074 0.567 0.000 0.000 0.364 0.000 0.636
#> SRR811675 5 0.4734 0.703 0.176 0.096 0.000 0.000 0.728
#> SRR1082423 1 0.5886 0.740 0.600 0.224 0.000 0.000 0.176
#> SRR1417296 4 0.0162 0.994 0.000 0.004 0.000 0.996 0.000
#> SRR815944 3 0.1331 0.883 0.000 0.008 0.952 0.000 0.040
#> SRR1332775 3 0.1670 0.873 0.000 0.052 0.936 0.012 0.000
#> SRR1079143 5 0.4264 0.539 0.000 0.004 0.376 0.000 0.620
#> SRR1476807 1 0.0000 0.789 1.000 0.000 0.000 0.000 0.000
#> SRR1456634 1 0.0963 0.791 0.964 0.036 0.000 0.000 0.000
#> SRR1083171 2 0.4908 0.851 0.000 0.636 0.044 0.320 0.000
#> SRR1083337 1 0.5886 0.740 0.600 0.224 0.000 0.000 0.176
#> SRR1377672 3 0.4211 0.284 0.000 0.004 0.636 0.000 0.360
#> SRR1435816 3 0.0566 0.916 0.000 0.012 0.984 0.000 0.004
#> SRR1080580 5 0.4534 0.722 0.164 0.056 0.016 0.000 0.764
#> SRR1366672 3 0.0510 0.917 0.000 0.016 0.984 0.000 0.000
#> SRR1075150 2 0.4467 0.841 0.000 0.640 0.016 0.344 0.000
#> SRR814137 1 0.3033 0.687 0.864 0.084 0.000 0.000 0.052
#> SRR1475062 1 0.5886 0.740 0.600 0.224 0.000 0.000 0.176
#> SRR1340028 1 0.0404 0.791 0.988 0.012 0.000 0.000 0.000
#> SRR1070789 4 0.0000 0.999 0.000 0.000 0.000 1.000 0.000
#> SRR1097728 3 0.0510 0.917 0.000 0.016 0.984 0.000 0.000
#> SRR1447172 4 0.0000 0.999 0.000 0.000 0.000 1.000 0.000
#> SRR1472486 3 0.0510 0.917 0.000 0.016 0.984 0.000 0.000
#> SRR1377881 1 0.5886 0.740 0.600 0.224 0.000 0.000 0.176
#> SRR1420912 5 0.4734 0.703 0.176 0.096 0.000 0.000 0.728
#> SRR1313747 2 0.4084 0.834 0.000 0.668 0.004 0.328 0.000
#> SRR1414447 3 0.0771 0.902 0.000 0.004 0.976 0.000 0.020
#> SRR1358238 1 0.0000 0.789 1.000 0.000 0.000 0.000 0.000
#> SRR1322115 5 0.4768 0.699 0.180 0.096 0.000 0.000 0.724
#> SRR1330474 1 0.1502 0.790 0.940 0.056 0.000 0.000 0.004
#> SRR1093124 1 0.3710 0.769 0.784 0.192 0.000 0.000 0.024
#> SRR1456354 1 0.0000 0.789 1.000 0.000 0.000 0.000 0.000
#> SRR820859 5 0.4734 0.703 0.176 0.096 0.000 0.000 0.728
#> SRR1401860 5 0.4534 0.722 0.164 0.056 0.016 0.000 0.764
#> SRR1095599 3 0.0404 0.917 0.000 0.012 0.988 0.000 0.000
#> SRR1417130 1 0.0404 0.791 0.988 0.012 0.000 0.000 0.000
#> SRR1362597 4 0.0000 0.999 0.000 0.000 0.000 1.000 0.000
#> SRR1328464 3 0.0510 0.917 0.000 0.016 0.984 0.000 0.000
#> SRR1323957 1 0.0000 0.789 1.000 0.000 0.000 0.000 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0000 0.962 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.962 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.1141 0.999 0.000 0.948 0.052 0.000 0.000 0.000
#> SRR1089106 4 0.2191 0.835 0.120 0.000 0.004 0.876 0.000 0.000
#> SRR1401403 1 0.0000 0.962 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1080534 5 0.2457 0.693 0.000 0.000 0.000 0.084 0.880 0.036
#> SRR1487638 3 0.2300 0.811 0.000 0.144 0.856 0.000 0.000 0.000
#> SRR1320650 3 0.1168 0.896 0.000 0.028 0.956 0.000 0.000 0.016
#> SRR1073045 6 0.0713 0.897 0.000 0.000 0.028 0.000 0.000 0.972
#> SRR1397030 3 0.1334 0.896 0.000 0.032 0.948 0.000 0.000 0.020
#> SRR1439976 4 0.3076 0.910 0.240 0.000 0.000 0.760 0.000 0.000
#> SRR1454050 3 0.1327 0.866 0.000 0.000 0.936 0.000 0.000 0.064
#> SRR1070286 4 0.2053 0.826 0.108 0.000 0.004 0.888 0.000 0.000
#> SRR1344185 6 0.0777 0.898 0.000 0.004 0.024 0.000 0.000 0.972
#> SRR1084228 3 0.1334 0.896 0.000 0.032 0.948 0.000 0.000 0.020
#> SRR1101907 6 0.0865 0.894 0.000 0.000 0.036 0.000 0.000 0.964
#> SRR1079686 3 0.1334 0.896 0.000 0.032 0.948 0.000 0.000 0.020
#> SRR1089761 6 0.1121 0.881 0.000 0.004 0.008 0.016 0.008 0.964
#> SRR811403 3 0.0458 0.888 0.000 0.000 0.984 0.000 0.000 0.016
#> SRR1440560 6 0.1909 0.856 0.000 0.000 0.004 0.024 0.052 0.920
#> SRR1079706 5 0.3601 0.570 0.000 0.004 0.000 0.000 0.684 0.312
#> SRR1459101 6 0.4569 0.220 0.000 0.008 0.000 0.024 0.408 0.560
#> SRR1335089 5 0.3508 0.589 0.000 0.004 0.000 0.000 0.704 0.292
#> SRR1337840 4 0.3076 0.910 0.240 0.000 0.000 0.760 0.000 0.000
#> SRR808682 3 0.1267 0.881 0.000 0.060 0.940 0.000 0.000 0.000
#> SRR1443224 3 0.3464 0.605 0.000 0.000 0.688 0.000 0.000 0.312
#> SRR1439831 1 0.0260 0.953 0.992 0.000 0.000 0.008 0.000 0.000
#> SRR1087463 5 0.3601 0.570 0.000 0.004 0.000 0.000 0.684 0.312
#> SRR1457949 6 0.0713 0.897 0.000 0.000 0.028 0.000 0.000 0.972
#> SRR1455969 6 0.0632 0.898 0.000 0.000 0.024 0.000 0.000 0.976
#> SRR1415529 4 0.3411 0.742 0.084 0.008 0.004 0.832 0.072 0.000
#> SRR1330018 3 0.1267 0.881 0.000 0.060 0.940 0.000 0.000 0.000
#> SRR1370597 6 0.0260 0.895 0.000 0.000 0.008 0.000 0.000 0.992
#> SRR1385524 3 0.1075 0.889 0.000 0.048 0.952 0.000 0.000 0.000
#> SRR1351605 4 0.3076 0.910 0.240 0.000 0.000 0.760 0.000 0.000
#> SRR1460148 1 0.0000 0.962 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 6 0.1862 0.881 0.000 0.004 0.020 0.024 0.020 0.932
#> SRR1318390 3 0.0458 0.888 0.000 0.000 0.984 0.000 0.000 0.016
#> SRR1073095 2 0.1141 0.999 0.000 0.948 0.052 0.000 0.000 0.000
#> SRR1410612 2 0.1141 0.999 0.000 0.948 0.052 0.000 0.000 0.000
#> SRR1076892 1 0.0000 0.962 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 6 0.4569 0.220 0.000 0.008 0.000 0.024 0.408 0.560
#> SRR1481375 6 0.0363 0.897 0.000 0.000 0.012 0.000 0.000 0.988
#> SRR1079356 5 0.3933 0.657 0.000 0.040 0.004 0.216 0.740 0.000
#> SRR1455545 4 0.3076 0.910 0.240 0.000 0.000 0.760 0.000 0.000
#> SRR1406157 4 0.3244 0.895 0.268 0.000 0.000 0.732 0.000 0.000
#> SRR1445920 2 0.1141 0.999 0.000 0.948 0.052 0.000 0.000 0.000
#> SRR1420259 6 0.0713 0.897 0.000 0.000 0.028 0.000 0.000 0.972
#> SRR1376963 3 0.3446 0.611 0.000 0.000 0.692 0.000 0.000 0.308
#> SRR1101061 1 0.0000 0.962 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.1141 0.999 0.000 0.948 0.052 0.000 0.000 0.000
#> SRR1334791 1 0.0000 0.962 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.1141 0.999 0.000 0.948 0.052 0.000 0.000 0.000
#> SRR1330450 5 0.3489 0.592 0.000 0.004 0.000 0.000 0.708 0.288
#> SRR1409108 3 0.0713 0.885 0.000 0.028 0.972 0.000 0.000 0.000
#> SRR1416865 5 0.3601 0.570 0.000 0.004 0.000 0.000 0.684 0.312
#> SRR1071832 4 0.3411 0.742 0.084 0.008 0.004 0.832 0.072 0.000
#> SRR1093814 3 0.3647 0.528 0.000 0.000 0.640 0.000 0.000 0.360
#> SRR1381821 5 0.3601 0.570 0.000 0.004 0.000 0.000 0.684 0.312
#> SRR811675 5 0.3933 0.657 0.000 0.040 0.004 0.216 0.740 0.000
#> SRR1082423 1 0.0000 0.962 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.1204 0.995 0.000 0.944 0.056 0.000 0.000 0.000
#> SRR815944 6 0.2408 0.835 0.000 0.004 0.004 0.024 0.076 0.892
#> SRR1332775 6 0.1387 0.865 0.000 0.000 0.068 0.000 0.000 0.932
#> SRR1079143 5 0.3758 0.543 0.000 0.008 0.000 0.000 0.668 0.324
#> SRR1476807 4 0.3076 0.910 0.240 0.000 0.000 0.760 0.000 0.000
#> SRR1456634 4 0.3390 0.867 0.296 0.000 0.000 0.704 0.000 0.000
#> SRR1083171 3 0.1418 0.895 0.000 0.032 0.944 0.000 0.000 0.024
#> SRR1083337 1 0.0000 0.962 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1377672 6 0.4569 0.220 0.000 0.008 0.000 0.024 0.408 0.560
#> SRR1435816 6 0.0405 0.892 0.000 0.000 0.008 0.000 0.004 0.988
#> SRR1080580 5 0.2988 0.689 0.000 0.004 0.004 0.140 0.836 0.016
#> SRR1366672 6 0.0713 0.897 0.000 0.000 0.028 0.000 0.000 0.972
#> SRR1075150 3 0.1075 0.889 0.000 0.048 0.952 0.000 0.000 0.000
#> SRR814137 4 0.2053 0.826 0.108 0.000 0.004 0.888 0.000 0.000
#> SRR1475062 1 0.0000 0.962 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340028 4 0.3266 0.892 0.272 0.000 0.000 0.728 0.000 0.000
#> SRR1070789 2 0.1141 0.999 0.000 0.948 0.052 0.000 0.000 0.000
#> SRR1097728 6 0.0547 0.898 0.000 0.000 0.020 0.000 0.000 0.980
#> SRR1447172 2 0.1141 0.999 0.000 0.948 0.052 0.000 0.000 0.000
#> SRR1472486 6 0.0713 0.897 0.000 0.000 0.028 0.000 0.000 0.972
#> SRR1377881 1 0.0000 0.962 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 5 0.3933 0.657 0.000 0.040 0.004 0.216 0.740 0.000
#> SRR1313747 3 0.0790 0.884 0.000 0.032 0.968 0.000 0.000 0.000
#> SRR1414447 6 0.1972 0.853 0.000 0.000 0.004 0.024 0.056 0.916
#> SRR1358238 4 0.3076 0.910 0.240 0.000 0.000 0.760 0.000 0.000
#> SRR1322115 5 0.4044 0.656 0.004 0.040 0.004 0.212 0.740 0.000
#> SRR1330474 4 0.3446 0.847 0.308 0.000 0.000 0.692 0.000 0.000
#> SRR1093124 1 0.3515 0.230 0.676 0.000 0.000 0.324 0.000 0.000
#> SRR1456354 4 0.3076 0.910 0.240 0.000 0.000 0.760 0.000 0.000
#> SRR820859 5 0.3867 0.658 0.000 0.036 0.004 0.216 0.744 0.000
#> SRR1401860 5 0.2988 0.689 0.000 0.004 0.004 0.140 0.836 0.016
#> SRR1095599 6 0.0632 0.898 0.000 0.000 0.024 0.000 0.000 0.976
#> SRR1417130 4 0.3266 0.892 0.272 0.000 0.000 0.728 0.000 0.000
#> SRR1362597 2 0.1141 0.999 0.000 0.948 0.052 0.000 0.000 0.000
#> SRR1328464 6 0.0547 0.898 0.000 0.000 0.020 0.000 0.000 0.980
#> SRR1323957 4 0.3076 0.910 0.240 0.000 0.000 0.760 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", "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 17633 rows and 97 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'ATC' method.
#> Subgroups are detected by 'kmeans' method.
#> Performed in total 1250 partitions by row resampling.
#> Best k for subgroups seems to be 2.
#>
#> Following methods can be applied to this 'ConsensusPartition' object:
#> [1] "cola_report" "collect_classes" "collect_plots"
#> [4] "collect_stats" "colnames" "compare_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.All the plots in panels can be made by individual functions and they are plotted later in this section.
select_partition_number()
produces several plots showing different
statistics for choosing “optimized” k
. There are following statistics:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower PAC score, higher mean silhouette score or higher
concordance corresponds to better partition. Rand index and Jaccard index
measure how similar the current partition is compared to partition with k-1
.
If they are too similar, we won't accept k
is better than k-1
.
select_partition_number(res)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 1.000 0.994 0.997 0.5050 0.495 0.495
#> 3 3 0.744 0.711 0.890 0.3015 0.744 0.525
#> 4 4 0.859 0.935 0.946 0.1156 0.815 0.523
#> 5 5 0.792 0.746 0.837 0.0688 0.974 0.902
#> 6 6 0.768 0.594 0.688 0.0436 0.892 0.581
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
#> SRR1397242 1 0.000 0.995 1.000 0.000
#> SRR1093410 1 0.000 0.995 1.000 0.000
#> SRR1380523 2 0.000 1.000 0.000 1.000
#> SRR1089106 1 0.000 0.995 1.000 0.000
#> SRR1401403 1 0.000 0.995 1.000 0.000
#> SRR1080534 1 0.000 0.995 1.000 0.000
#> SRR1487638 2 0.000 1.000 0.000 1.000
#> SRR1320650 2 0.000 1.000 0.000 1.000
#> SRR1073045 2 0.000 1.000 0.000 1.000
#> SRR1397030 2 0.000 1.000 0.000 1.000
#> SRR1439976 1 0.000 0.995 1.000 0.000
#> SRR1454050 2 0.000 1.000 0.000 1.000
#> SRR1070286 1 0.000 0.995 1.000 0.000
#> SRR1344185 2 0.000 1.000 0.000 1.000
#> SRR1084228 2 0.000 1.000 0.000 1.000
#> SRR1101907 2 0.000 1.000 0.000 1.000
#> SRR1079686 2 0.000 1.000 0.000 1.000
#> SRR1089761 2 0.000 1.000 0.000 1.000
#> SRR811403 2 0.000 1.000 0.000 1.000
#> SRR1440560 2 0.000 1.000 0.000 1.000
#> SRR1079706 2 0.000 1.000 0.000 1.000
#> SRR1459101 2 0.000 1.000 0.000 1.000
#> SRR1335089 1 0.000 0.995 1.000 0.000
#> SRR1337840 1 0.000 0.995 1.000 0.000
#> SRR808682 2 0.000 1.000 0.000 1.000
#> SRR1443224 2 0.000 1.000 0.000 1.000
#> SRR1439831 1 0.000 0.995 1.000 0.000
#> SRR1087463 1 0.242 0.955 0.960 0.040
#> SRR1457949 2 0.000 1.000 0.000 1.000
#> SRR1455969 2 0.000 1.000 0.000 1.000
#> SRR1415529 1 0.000 0.995 1.000 0.000
#> SRR1330018 2 0.000 1.000 0.000 1.000
#> SRR1370597 2 0.000 1.000 0.000 1.000
#> SRR1385524 2 0.000 1.000 0.000 1.000
#> SRR1351605 1 0.000 0.995 1.000 0.000
#> SRR1460148 1 0.000 0.995 1.000 0.000
#> SRR1354159 2 0.000 1.000 0.000 1.000
#> SRR1318390 2 0.000 1.000 0.000 1.000
#> SRR1073095 2 0.000 1.000 0.000 1.000
#> SRR1410612 2 0.000 1.000 0.000 1.000
#> SRR1076892 1 0.000 0.995 1.000 0.000
#> SRR1340989 1 0.000 0.995 1.000 0.000
#> SRR1481375 2 0.000 1.000 0.000 1.000
#> SRR1079356 1 0.000 0.995 1.000 0.000
#> SRR1455545 1 0.000 0.995 1.000 0.000
#> SRR1406157 1 0.000 0.995 1.000 0.000
#> SRR1445920 2 0.000 1.000 0.000 1.000
#> SRR1420259 2 0.000 1.000 0.000 1.000
#> SRR1376963 2 0.000 1.000 0.000 1.000
#> SRR1101061 1 0.000 0.995 1.000 0.000
#> SRR1414496 2 0.000 1.000 0.000 1.000
#> SRR1334791 1 0.000 0.995 1.000 0.000
#> SRR1072129 2 0.000 1.000 0.000 1.000
#> SRR1330450 1 0.000 0.995 1.000 0.000
#> SRR1409108 2 0.000 1.000 0.000 1.000
#> SRR1416865 1 0.000 0.995 1.000 0.000
#> SRR1071832 1 0.000 0.995 1.000 0.000
#> SRR1093814 2 0.000 1.000 0.000 1.000
#> SRR1381821 1 0.000 0.995 1.000 0.000
#> SRR811675 1 0.000 0.995 1.000 0.000
#> SRR1082423 1 0.000 0.995 1.000 0.000
#> SRR1417296 2 0.000 1.000 0.000 1.000
#> SRR815944 2 0.000 1.000 0.000 1.000
#> SRR1332775 2 0.000 1.000 0.000 1.000
#> SRR1079143 1 0.745 0.733 0.788 0.212
#> SRR1476807 1 0.000 0.995 1.000 0.000
#> SRR1456634 1 0.000 0.995 1.000 0.000
#> SRR1083171 2 0.000 1.000 0.000 1.000
#> SRR1083337 1 0.000 0.995 1.000 0.000
#> SRR1377672 1 0.000 0.995 1.000 0.000
#> SRR1435816 2 0.000 1.000 0.000 1.000
#> SRR1080580 1 0.000 0.995 1.000 0.000
#> SRR1366672 2 0.000 1.000 0.000 1.000
#> SRR1075150 2 0.000 1.000 0.000 1.000
#> SRR814137 1 0.000 0.995 1.000 0.000
#> SRR1475062 1 0.000 0.995 1.000 0.000
#> SRR1340028 1 0.000 0.995 1.000 0.000
#> SRR1070789 2 0.000 1.000 0.000 1.000
#> SRR1097728 2 0.000 1.000 0.000 1.000
#> SRR1447172 2 0.000 1.000 0.000 1.000
#> SRR1472486 2 0.000 1.000 0.000 1.000
#> SRR1377881 1 0.000 0.995 1.000 0.000
#> SRR1420912 1 0.000 0.995 1.000 0.000
#> SRR1313747 2 0.000 1.000 0.000 1.000
#> SRR1414447 2 0.000 1.000 0.000 1.000
#> SRR1358238 1 0.000 0.995 1.000 0.000
#> SRR1322115 1 0.000 0.995 1.000 0.000
#> SRR1330474 1 0.000 0.995 1.000 0.000
#> SRR1093124 1 0.000 0.995 1.000 0.000
#> SRR1456354 1 0.000 0.995 1.000 0.000
#> SRR820859 1 0.000 0.995 1.000 0.000
#> SRR1401860 1 0.000 0.995 1.000 0.000
#> SRR1095599 2 0.000 1.000 0.000 1.000
#> SRR1417130 1 0.000 0.995 1.000 0.000
#> SRR1362597 2 0.000 1.000 0.000 1.000
#> SRR1328464 2 0.000 1.000 0.000 1.000
#> SRR1323957 1 0.000 0.995 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1089106 1 0.0424 0.9538 0.992 0.000 0.008
#> SRR1401403 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1080534 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR1487638 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1320650 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1073045 2 0.6062 0.4273 0.000 0.616 0.384
#> SRR1397030 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1439976 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1454050 2 0.2537 0.7852 0.000 0.920 0.080
#> SRR1070286 1 0.0424 0.9538 0.992 0.000 0.008
#> SRR1344185 3 0.6154 0.2374 0.000 0.408 0.592
#> SRR1084228 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1101907 2 0.6111 0.4035 0.000 0.604 0.396
#> SRR1079686 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1089761 3 0.5178 0.5181 0.000 0.256 0.744
#> SRR811403 2 0.2537 0.7852 0.000 0.920 0.080
#> SRR1440560 3 0.6204 0.1973 0.000 0.424 0.576
#> SRR1079706 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR1459101 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR1335089 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR1337840 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR808682 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1443224 2 0.6111 0.4035 0.000 0.604 0.396
#> SRR1439831 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1087463 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR1457949 2 0.6111 0.4035 0.000 0.604 0.396
#> SRR1455969 3 0.6302 -0.0154 0.000 0.480 0.520
#> SRR1415529 1 0.6309 0.2067 0.504 0.000 0.496
#> SRR1330018 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1370597 3 0.6204 0.1973 0.000 0.424 0.576
#> SRR1385524 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1351605 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1460148 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1354159 3 0.6192 0.2080 0.000 0.420 0.580
#> SRR1318390 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1073095 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1340989 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR1481375 2 0.6062 0.4273 0.000 0.616 0.384
#> SRR1079356 3 0.6302 -0.1929 0.480 0.000 0.520
#> SRR1455545 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1406157 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1420259 2 0.6111 0.4035 0.000 0.604 0.396
#> SRR1376963 2 0.6095 0.4117 0.000 0.608 0.392
#> SRR1101061 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1330450 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR1409108 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1416865 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR1071832 1 0.6215 0.3749 0.572 0.000 0.428
#> SRR1093814 2 0.6111 0.4035 0.000 0.604 0.396
#> SRR1381821 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR811675 3 0.6308 -0.2253 0.492 0.000 0.508
#> SRR1082423 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR815944 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR1332775 2 0.5216 0.6069 0.000 0.740 0.260
#> SRR1079143 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR1476807 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1456634 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1083171 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1083337 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1377672 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR1435816 3 0.4654 0.5799 0.000 0.208 0.792
#> SRR1080580 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR1366672 2 0.6111 0.4035 0.000 0.604 0.396
#> SRR1075150 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR814137 1 0.0424 0.9538 0.992 0.000 0.008
#> SRR1475062 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1097728 3 0.6204 0.1973 0.000 0.424 0.576
#> SRR1447172 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1472486 2 0.6062 0.4273 0.000 0.616 0.384
#> SRR1377881 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1420912 3 0.2711 0.6883 0.088 0.000 0.912
#> SRR1313747 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1414447 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR1358238 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1322115 1 0.5431 0.6335 0.716 0.000 0.284
#> SRR1330474 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1456354 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR820859 3 0.3038 0.6751 0.104 0.000 0.896
#> SRR1401860 3 0.0000 0.7523 0.000 0.000 1.000
#> SRR1095599 3 0.6204 0.1973 0.000 0.424 0.576
#> SRR1417130 1 0.0000 0.9594 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.8346 0.000 1.000 0.000
#> SRR1328464 3 0.6309 -0.0820 0.000 0.496 0.504
#> SRR1323957 1 0.0000 0.9594 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.949 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.949 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.2469 0.974 0.000 0.892 0.108 0.000
#> SRR1089106 1 0.5314 0.816 0.748 0.108 0.000 0.144
#> SRR1401403 1 0.0000 0.949 1.000 0.000 0.000 0.000
#> SRR1080534 4 0.0592 0.967 0.000 0.000 0.016 0.984
#> SRR1487638 2 0.2469 0.974 0.000 0.892 0.108 0.000
#> SRR1320650 3 0.0592 0.955 0.000 0.016 0.984 0.000
#> SRR1073045 3 0.0000 0.962 0.000 0.000 1.000 0.000
#> SRR1397030 3 0.0592 0.955 0.000 0.016 0.984 0.000
#> SRR1439976 1 0.3048 0.920 0.876 0.108 0.000 0.016
#> SRR1454050 3 0.0592 0.955 0.000 0.016 0.984 0.000
#> SRR1070286 1 0.5314 0.816 0.748 0.108 0.000 0.144
#> SRR1344185 3 0.0592 0.955 0.000 0.000 0.984 0.016
#> SRR1084228 3 0.0592 0.955 0.000 0.016 0.984 0.000
#> SRR1101907 3 0.0000 0.962 0.000 0.000 1.000 0.000
#> SRR1079686 3 0.0592 0.955 0.000 0.016 0.984 0.000
#> SRR1089761 3 0.1118 0.935 0.000 0.000 0.964 0.036
#> SRR811403 3 0.0592 0.955 0.000 0.016 0.984 0.000
#> SRR1440560 3 0.0592 0.955 0.000 0.000 0.984 0.016
#> SRR1079706 4 0.0592 0.967 0.000 0.000 0.016 0.984
#> SRR1459101 4 0.2281 0.894 0.000 0.000 0.096 0.904
#> SRR1335089 4 0.0592 0.967 0.000 0.000 0.016 0.984
#> SRR1337840 1 0.2281 0.930 0.904 0.096 0.000 0.000
#> SRR808682 2 0.2469 0.974 0.000 0.892 0.108 0.000
#> SRR1443224 3 0.0000 0.962 0.000 0.000 1.000 0.000
#> SRR1439831 1 0.0000 0.949 1.000 0.000 0.000 0.000
#> SRR1087463 4 0.0592 0.967 0.000 0.000 0.016 0.984
#> SRR1457949 3 0.0000 0.962 0.000 0.000 1.000 0.000
#> SRR1455969 3 0.0469 0.957 0.000 0.000 0.988 0.012
#> SRR1415529 4 0.0707 0.948 0.000 0.020 0.000 0.980
#> SRR1330018 2 0.2469 0.974 0.000 0.892 0.108 0.000
#> SRR1370597 3 0.0592 0.955 0.000 0.000 0.984 0.016
#> SRR1385524 3 0.3172 0.784 0.000 0.160 0.840 0.000
#> SRR1351605 1 0.3048 0.920 0.876 0.108 0.000 0.016
#> SRR1460148 1 0.0000 0.949 1.000 0.000 0.000 0.000
#> SRR1354159 3 0.0921 0.944 0.000 0.000 0.972 0.028
#> SRR1318390 3 0.0592 0.955 0.000 0.016 0.984 0.000
#> SRR1073095 2 0.2469 0.974 0.000 0.892 0.108 0.000
#> SRR1410612 2 0.2469 0.974 0.000 0.892 0.108 0.000
#> SRR1076892 1 0.0000 0.949 1.000 0.000 0.000 0.000
#> SRR1340989 4 0.0592 0.967 0.000 0.000 0.016 0.984
#> SRR1481375 3 0.0000 0.962 0.000 0.000 1.000 0.000
#> SRR1079356 4 0.0188 0.958 0.000 0.004 0.000 0.996
#> SRR1455545 1 0.3048 0.920 0.876 0.108 0.000 0.016
#> SRR1406157 1 0.1022 0.945 0.968 0.032 0.000 0.000
#> SRR1445920 2 0.2469 0.974 0.000 0.892 0.108 0.000
#> SRR1420259 3 0.0000 0.962 0.000 0.000 1.000 0.000
#> SRR1376963 3 0.0000 0.962 0.000 0.000 1.000 0.000
#> SRR1101061 1 0.0000 0.949 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.2469 0.974 0.000 0.892 0.108 0.000
#> SRR1334791 1 0.0000 0.949 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.2469 0.974 0.000 0.892 0.108 0.000
#> SRR1330450 4 0.0592 0.967 0.000 0.000 0.016 0.984
#> SRR1409108 3 0.4304 0.542 0.000 0.284 0.716 0.000
#> SRR1416865 4 0.0592 0.967 0.000 0.000 0.016 0.984
#> SRR1071832 4 0.1389 0.930 0.000 0.048 0.000 0.952
#> SRR1093814 3 0.0188 0.961 0.000 0.000 0.996 0.004
#> SRR1381821 4 0.0592 0.967 0.000 0.000 0.016 0.984
#> SRR811675 4 0.0188 0.958 0.000 0.004 0.000 0.996
#> SRR1082423 1 0.0000 0.949 1.000 0.000 0.000 0.000
#> SRR1417296 2 0.2469 0.974 0.000 0.892 0.108 0.000
#> SRR815944 4 0.3074 0.830 0.000 0.000 0.152 0.848
#> SRR1332775 3 0.0000 0.962 0.000 0.000 1.000 0.000
#> SRR1079143 4 0.0592 0.967 0.000 0.000 0.016 0.984
#> SRR1476807 1 0.2928 0.922 0.880 0.108 0.000 0.012
#> SRR1456634 1 0.0592 0.947 0.984 0.016 0.000 0.000
#> SRR1083171 3 0.0592 0.955 0.000 0.016 0.984 0.000
#> SRR1083337 1 0.0000 0.949 1.000 0.000 0.000 0.000
#> SRR1377672 4 0.0592 0.967 0.000 0.000 0.016 0.984
#> SRR1435816 3 0.1557 0.911 0.000 0.000 0.944 0.056
#> SRR1080580 4 0.0592 0.967 0.000 0.000 0.016 0.984
#> SRR1366672 3 0.0000 0.962 0.000 0.000 1.000 0.000
#> SRR1075150 3 0.3172 0.784 0.000 0.160 0.840 0.000
#> SRR814137 1 0.5314 0.816 0.748 0.108 0.000 0.144
#> SRR1475062 1 0.0000 0.949 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.949 1.000 0.000 0.000 0.000
#> SRR1070789 2 0.2469 0.974 0.000 0.892 0.108 0.000
#> SRR1097728 3 0.0592 0.955 0.000 0.000 0.984 0.016
#> SRR1447172 2 0.2469 0.974 0.000 0.892 0.108 0.000
#> SRR1472486 3 0.0000 0.962 0.000 0.000 1.000 0.000
#> SRR1377881 1 0.0000 0.949 1.000 0.000 0.000 0.000
#> SRR1420912 4 0.0188 0.958 0.000 0.004 0.000 0.996
#> SRR1313747 2 0.4830 0.499 0.000 0.608 0.392 0.000
#> SRR1414447 4 0.3074 0.830 0.000 0.000 0.152 0.848
#> SRR1358238 1 0.3048 0.920 0.876 0.108 0.000 0.016
#> SRR1322115 4 0.1792 0.908 0.068 0.000 0.000 0.932
#> SRR1330474 1 0.0817 0.947 0.976 0.024 0.000 0.000
#> SRR1093124 1 0.0000 0.949 1.000 0.000 0.000 0.000
#> SRR1456354 1 0.3048 0.920 0.876 0.108 0.000 0.016
#> SRR820859 4 0.0000 0.960 0.000 0.000 0.000 1.000
#> SRR1401860 4 0.0592 0.967 0.000 0.000 0.016 0.984
#> SRR1095599 3 0.0592 0.955 0.000 0.000 0.984 0.016
#> SRR1417130 1 0.1022 0.945 0.968 0.032 0.000 0.000
#> SRR1362597 2 0.2469 0.974 0.000 0.892 0.108 0.000
#> SRR1328464 3 0.0336 0.959 0.000 0.000 0.992 0.008
#> SRR1323957 1 0.2281 0.930 0.904 0.096 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0162 0.8280 0.996 0.000 0.000 0.004 0.000
#> SRR1093410 1 0.0162 0.8280 0.996 0.000 0.000 0.004 0.000
#> SRR1380523 2 0.0000 0.8855 0.000 1.000 0.000 0.000 0.000
#> SRR1089106 4 0.5711 0.8076 0.252 0.000 0.000 0.612 0.136
#> SRR1401403 1 0.0162 0.8280 0.996 0.000 0.000 0.004 0.000
#> SRR1080534 5 0.0671 0.8204 0.000 0.000 0.004 0.016 0.980
#> SRR1487638 2 0.2690 0.7947 0.000 0.844 0.000 0.156 0.000
#> SRR1320650 3 0.4029 0.7845 0.000 0.004 0.680 0.316 0.000
#> SRR1073045 3 0.0290 0.8344 0.000 0.000 0.992 0.008 0.000
#> SRR1397030 3 0.4003 0.7914 0.000 0.008 0.704 0.288 0.000
#> SRR1439976 1 0.4297 -0.3480 0.528 0.000 0.000 0.472 0.000
#> SRR1454050 3 0.4009 0.7868 0.000 0.004 0.684 0.312 0.000
#> SRR1070286 4 0.5726 0.8031 0.248 0.000 0.000 0.612 0.140
#> SRR1344185 3 0.1331 0.8161 0.000 0.000 0.952 0.040 0.008
#> SRR1084228 3 0.3928 0.7911 0.000 0.004 0.700 0.296 0.000
#> SRR1101907 3 0.1608 0.8360 0.000 0.000 0.928 0.072 0.000
#> SRR1079686 3 0.4003 0.7914 0.000 0.008 0.704 0.288 0.000
#> SRR1089761 3 0.1444 0.8163 0.000 0.000 0.948 0.040 0.012
#> SRR811403 3 0.4047 0.7830 0.000 0.004 0.676 0.320 0.000
#> SRR1440560 3 0.3098 0.8088 0.000 0.000 0.836 0.148 0.016
#> SRR1079706 5 0.4646 0.6414 0.000 0.000 0.228 0.060 0.712
#> SRR1459101 5 0.4462 0.6673 0.000 0.000 0.196 0.064 0.740
#> SRR1335089 5 0.0324 0.8205 0.000 0.000 0.004 0.004 0.992
#> SRR1337840 1 0.3752 0.4428 0.708 0.000 0.000 0.292 0.000
#> SRR808682 2 0.4342 0.7087 0.000 0.728 0.040 0.232 0.000
#> SRR1443224 3 0.3796 0.7950 0.000 0.000 0.700 0.300 0.000
#> SRR1439831 1 0.0000 0.8277 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.1430 0.8079 0.000 0.000 0.004 0.052 0.944
#> SRR1457949 3 0.0290 0.8311 0.000 0.000 0.992 0.008 0.000
#> SRR1455969 3 0.0963 0.8216 0.000 0.000 0.964 0.036 0.000
#> SRR1415529 5 0.3707 0.6743 0.000 0.000 0.000 0.284 0.716
#> SRR1330018 2 0.4756 0.6546 0.000 0.668 0.044 0.288 0.000
#> SRR1370597 3 0.1251 0.8182 0.000 0.000 0.956 0.036 0.008
#> SRR1385524 3 0.4687 0.7699 0.000 0.040 0.672 0.288 0.000
#> SRR1351605 4 0.4235 0.6171 0.424 0.000 0.000 0.576 0.000
#> SRR1460148 1 0.0162 0.8280 0.996 0.000 0.000 0.004 0.000
#> SRR1354159 3 0.3098 0.8088 0.000 0.000 0.836 0.148 0.016
#> SRR1318390 3 0.4029 0.7845 0.000 0.004 0.680 0.316 0.000
#> SRR1073095 2 0.0000 0.8855 0.000 1.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.8855 0.000 1.000 0.000 0.000 0.000
#> SRR1076892 1 0.0000 0.8277 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 5 0.0771 0.8167 0.000 0.000 0.004 0.020 0.976
#> SRR1481375 3 0.0162 0.8332 0.000 0.000 0.996 0.000 0.004
#> SRR1079356 5 0.3684 0.6817 0.000 0.000 0.000 0.280 0.720
#> SRR1455545 1 0.4101 0.1829 0.628 0.000 0.000 0.372 0.000
#> SRR1406157 1 0.1965 0.7604 0.904 0.000 0.000 0.096 0.000
#> SRR1445920 2 0.0000 0.8855 0.000 1.000 0.000 0.000 0.000
#> SRR1420259 3 0.0162 0.8338 0.000 0.000 0.996 0.004 0.000
#> SRR1376963 3 0.3895 0.7862 0.000 0.000 0.680 0.320 0.000
#> SRR1101061 1 0.0000 0.8277 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.8855 0.000 1.000 0.000 0.000 0.000
#> SRR1334791 1 0.0162 0.8280 0.996 0.000 0.000 0.004 0.000
#> SRR1072129 2 0.0000 0.8855 0.000 1.000 0.000 0.000 0.000
#> SRR1330450 5 0.0671 0.8204 0.000 0.000 0.004 0.016 0.980
#> SRR1409108 3 0.6348 0.5430 0.000 0.180 0.496 0.324 0.000
#> SRR1416865 5 0.0324 0.8205 0.000 0.000 0.004 0.004 0.992
#> SRR1071832 5 0.4114 0.5384 0.000 0.000 0.000 0.376 0.624
#> SRR1093814 3 0.3424 0.8137 0.000 0.000 0.760 0.240 0.000
#> SRR1381821 5 0.0771 0.8204 0.000 0.000 0.004 0.020 0.976
#> SRR811675 5 0.3684 0.6817 0.000 0.000 0.000 0.280 0.720
#> SRR1082423 1 0.0162 0.8280 0.996 0.000 0.000 0.004 0.000
#> SRR1417296 2 0.0000 0.8855 0.000 1.000 0.000 0.000 0.000
#> SRR815944 5 0.4649 0.6440 0.000 0.000 0.220 0.064 0.716
#> SRR1332775 3 0.1792 0.8324 0.000 0.000 0.916 0.084 0.000
#> SRR1079143 5 0.1571 0.8052 0.000 0.000 0.004 0.060 0.936
#> SRR1476807 1 0.3983 0.3057 0.660 0.000 0.000 0.340 0.000
#> SRR1456634 1 0.1197 0.8013 0.952 0.000 0.000 0.048 0.000
#> SRR1083171 3 0.3928 0.7911 0.000 0.004 0.700 0.296 0.000
#> SRR1083337 1 0.0000 0.8277 1.000 0.000 0.000 0.000 0.000
#> SRR1377672 5 0.1341 0.8071 0.000 0.000 0.000 0.056 0.944
#> SRR1435816 3 0.2370 0.7837 0.000 0.000 0.904 0.040 0.056
#> SRR1080580 5 0.0865 0.8197 0.000 0.000 0.004 0.024 0.972
#> SRR1366672 3 0.0162 0.8338 0.000 0.000 0.996 0.004 0.000
#> SRR1075150 3 0.4687 0.7699 0.000 0.040 0.672 0.288 0.000
#> SRR814137 4 0.5695 0.8082 0.256 0.000 0.000 0.612 0.132
#> SRR1475062 1 0.0162 0.8280 0.996 0.000 0.000 0.004 0.000
#> SRR1340028 1 0.0000 0.8277 1.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.0000 0.8855 0.000 1.000 0.000 0.000 0.000
#> SRR1097728 3 0.1124 0.8199 0.000 0.000 0.960 0.036 0.004
#> SRR1447172 2 0.0000 0.8855 0.000 1.000 0.000 0.000 0.000
#> SRR1472486 3 0.0290 0.8344 0.000 0.000 0.992 0.008 0.000
#> SRR1377881 1 0.0162 0.8280 0.996 0.000 0.000 0.004 0.000
#> SRR1420912 5 0.3452 0.7099 0.000 0.000 0.000 0.244 0.756
#> SRR1313747 2 0.6722 0.0952 0.000 0.416 0.268 0.316 0.000
#> SRR1414447 5 0.4555 0.6610 0.000 0.000 0.200 0.068 0.732
#> SRR1358238 1 0.4088 0.2004 0.632 0.000 0.000 0.368 0.000
#> SRR1322115 5 0.5224 0.5908 0.080 0.000 0.000 0.276 0.644
#> SRR1330474 1 0.2605 0.6990 0.852 0.000 0.000 0.148 0.000
#> SRR1093124 1 0.0162 0.8280 0.996 0.000 0.000 0.004 0.000
#> SRR1456354 4 0.4273 0.5559 0.448 0.000 0.000 0.552 0.000
#> SRR820859 5 0.2813 0.7604 0.000 0.000 0.000 0.168 0.832
#> SRR1401860 5 0.1124 0.8172 0.000 0.000 0.004 0.036 0.960
#> SRR1095599 3 0.1124 0.8199 0.000 0.000 0.960 0.036 0.004
#> SRR1417130 1 0.1410 0.7930 0.940 0.000 0.000 0.060 0.000
#> SRR1362597 2 0.0000 0.8855 0.000 1.000 0.000 0.000 0.000
#> SRR1328464 3 0.0290 0.8311 0.000 0.000 0.992 0.008 0.000
#> SRR1323957 1 0.3752 0.4428 0.708 0.000 0.000 0.292 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0146 0.798 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1093410 1 0.0000 0.798 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.921 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1089106 4 0.3951 0.588 0.112 0.000 0.000 0.796 0.036 0.056
#> SRR1401403 1 0.0000 0.798 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1080534 5 0.2762 0.691 0.000 0.000 0.000 0.196 0.804 0.000
#> SRR1487638 2 0.3916 0.612 0.000 0.680 0.300 0.020 0.000 0.000
#> SRR1320650 3 0.0632 0.666 0.000 0.000 0.976 0.024 0.000 0.000
#> SRR1073045 6 0.3869 0.582 0.000 0.000 0.500 0.000 0.000 0.500
#> SRR1397030 3 0.0603 0.659 0.000 0.004 0.980 0.000 0.000 0.016
#> SRR1439976 6 0.6103 -0.537 0.300 0.000 0.000 0.320 0.000 0.380
#> SRR1454050 3 0.2039 0.654 0.000 0.000 0.904 0.076 0.000 0.020
#> SRR1070286 4 0.3767 0.594 0.112 0.000 0.000 0.808 0.040 0.040
#> SRR1344185 6 0.4576 0.626 0.000 0.000 0.400 0.000 0.040 0.560
#> SRR1084228 3 0.0260 0.663 0.000 0.000 0.992 0.000 0.000 0.008
#> SRR1101907 3 0.3706 -0.280 0.000 0.000 0.620 0.000 0.000 0.380
#> SRR1079686 3 0.0603 0.659 0.000 0.004 0.980 0.000 0.000 0.016
#> SRR1089761 6 0.4743 0.613 0.000 0.000 0.388 0.004 0.044 0.564
#> SRR811403 3 0.1858 0.657 0.000 0.000 0.912 0.076 0.000 0.012
#> SRR1440560 3 0.6660 -0.117 0.000 0.000 0.448 0.060 0.168 0.324
#> SRR1079706 5 0.3404 0.625 0.000 0.000 0.000 0.016 0.760 0.224
#> SRR1459101 5 0.2520 0.681 0.000 0.000 0.004 0.000 0.844 0.152
#> SRR1335089 5 0.2135 0.743 0.000 0.000 0.000 0.128 0.872 0.000
#> SRR1337840 1 0.5659 0.567 0.496 0.000 0.000 0.168 0.000 0.336
#> SRR808682 2 0.4325 0.335 0.000 0.524 0.456 0.020 0.000 0.000
#> SRR1443224 3 0.4376 0.456 0.000 0.000 0.744 0.084 0.016 0.156
#> SRR1439831 1 0.0508 0.798 0.984 0.000 0.000 0.012 0.000 0.004
#> SRR1087463 5 0.0692 0.764 0.000 0.000 0.000 0.020 0.976 0.004
#> SRR1457949 6 0.4095 0.605 0.000 0.000 0.480 0.008 0.000 0.512
#> SRR1455969 6 0.4294 0.635 0.000 0.000 0.428 0.000 0.020 0.552
#> SRR1415529 4 0.3515 0.603 0.000 0.000 0.000 0.676 0.324 0.000
#> SRR1330018 3 0.4314 -0.229 0.000 0.444 0.536 0.020 0.000 0.000
#> SRR1370597 6 0.4792 0.630 0.000 0.000 0.408 0.012 0.032 0.548
#> SRR1385524 3 0.1434 0.655 0.000 0.024 0.948 0.020 0.000 0.008
#> SRR1351605 6 0.6026 -0.484 0.244 0.000 0.000 0.376 0.000 0.380
#> SRR1460148 1 0.0000 0.798 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.6728 -0.129 0.000 0.000 0.440 0.060 0.184 0.316
#> SRR1318390 3 0.1434 0.664 0.000 0.000 0.940 0.048 0.000 0.012
#> SRR1073095 2 0.0000 0.921 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.921 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1076892 1 0.0146 0.798 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1340989 5 0.1124 0.761 0.000 0.000 0.000 0.036 0.956 0.008
#> SRR1481375 6 0.3995 0.605 0.000 0.000 0.480 0.004 0.000 0.516
#> SRR1079356 4 0.3592 0.587 0.000 0.000 0.000 0.656 0.344 0.000
#> SRR1455545 1 0.5994 0.443 0.388 0.000 0.000 0.232 0.000 0.380
#> SRR1406157 1 0.4760 0.649 0.604 0.000 0.000 0.068 0.000 0.328
#> SRR1445920 2 0.0000 0.921 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1420259 6 0.3864 0.607 0.000 0.000 0.480 0.000 0.000 0.520
#> SRR1376963 3 0.2595 0.643 0.000 0.000 0.880 0.084 0.016 0.020
#> SRR1101061 1 0.0000 0.798 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.0146 0.919 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1334791 1 0.0000 0.798 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.921 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1330450 5 0.2631 0.710 0.000 0.000 0.000 0.180 0.820 0.000
#> SRR1409108 3 0.3913 0.589 0.000 0.104 0.788 0.096 0.000 0.012
#> SRR1416865 5 0.2135 0.743 0.000 0.000 0.000 0.128 0.872 0.000
#> SRR1071832 4 0.3189 0.626 0.000 0.000 0.000 0.760 0.236 0.004
#> SRR1093814 3 0.4883 0.320 0.000 0.000 0.684 0.084 0.020 0.212
#> SRR1381821 5 0.2912 0.671 0.000 0.000 0.000 0.216 0.784 0.000
#> SRR811675 4 0.3804 0.593 0.000 0.000 0.000 0.656 0.336 0.008
#> SRR1082423 1 0.0713 0.789 0.972 0.000 0.000 0.000 0.000 0.028
#> SRR1417296 2 0.0692 0.909 0.000 0.976 0.000 0.020 0.000 0.004
#> SRR815944 5 0.2920 0.659 0.000 0.000 0.004 0.008 0.820 0.168
#> SRR1332775 3 0.4181 -0.585 0.000 0.000 0.512 0.012 0.000 0.476
#> SRR1079143 5 0.1075 0.745 0.000 0.000 0.000 0.000 0.952 0.048
#> SRR1476807 1 0.5895 0.504 0.436 0.000 0.000 0.208 0.000 0.356
#> SRR1456634 1 0.4066 0.695 0.692 0.000 0.000 0.036 0.000 0.272
#> SRR1083171 3 0.0260 0.663 0.000 0.000 0.992 0.000 0.000 0.008
#> SRR1083337 1 0.0508 0.798 0.984 0.000 0.000 0.012 0.000 0.004
#> SRR1377672 5 0.0508 0.757 0.000 0.000 0.000 0.004 0.984 0.012
#> SRR1435816 6 0.5411 0.549 0.000 0.000 0.348 0.012 0.092 0.548
#> SRR1080580 5 0.2996 0.655 0.000 0.000 0.000 0.228 0.772 0.000
#> SRR1366672 6 0.3864 0.607 0.000 0.000 0.480 0.000 0.000 0.520
#> SRR1075150 3 0.1434 0.655 0.000 0.024 0.948 0.020 0.000 0.008
#> SRR814137 4 0.4346 0.552 0.112 0.000 0.000 0.760 0.024 0.104
#> SRR1475062 1 0.0790 0.788 0.968 0.000 0.000 0.000 0.000 0.032
#> SRR1340028 1 0.0508 0.798 0.984 0.000 0.000 0.012 0.000 0.004
#> SRR1070789 2 0.0000 0.921 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1097728 6 0.4410 0.634 0.000 0.000 0.412 0.000 0.028 0.560
#> SRR1447172 2 0.0146 0.919 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1472486 6 0.3869 0.582 0.000 0.000 0.500 0.000 0.000 0.500
#> SRR1377881 1 0.0713 0.789 0.972 0.000 0.000 0.000 0.000 0.028
#> SRR1420912 4 0.3647 0.559 0.000 0.000 0.000 0.640 0.360 0.000
#> SRR1313747 3 0.5158 0.335 0.000 0.276 0.620 0.092 0.000 0.012
#> SRR1414447 5 0.3201 0.667 0.000 0.000 0.008 0.028 0.824 0.140
#> SRR1358238 1 0.5994 0.443 0.388 0.000 0.000 0.232 0.000 0.380
#> SRR1322115 4 0.4895 0.608 0.044 0.000 0.000 0.656 0.268 0.032
#> SRR1330474 1 0.5030 0.638 0.588 0.000 0.000 0.096 0.000 0.316
#> SRR1093124 1 0.0000 0.798 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1456354 4 0.5879 -0.106 0.284 0.000 0.000 0.476 0.000 0.240
#> SRR820859 4 0.3797 0.425 0.000 0.000 0.000 0.580 0.420 0.000
#> SRR1401860 5 0.3489 0.536 0.000 0.000 0.000 0.288 0.708 0.004
#> SRR1095599 6 0.4734 0.632 0.000 0.000 0.412 0.012 0.028 0.548
#> SRR1417130 1 0.4332 0.682 0.664 0.000 0.000 0.048 0.000 0.288
#> SRR1362597 2 0.0000 0.921 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1328464 6 0.3971 0.627 0.000 0.000 0.448 0.004 0.000 0.548
#> SRR1323957 1 0.5659 0.567 0.496 0.000 0.000 0.168 0.000 0.336
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 17633 rows and 97 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'ATC' method.
#> Subgroups are detected by 'skmeans' method.
#> Performed in total 1250 partitions by row resampling.
#> Best k for subgroups seems to be 3.
#>
#> Following methods can be applied to this 'ConsensusPartition' object:
#> [1] "cola_report" "collect_classes" "collect_plots"
#> [4] "collect_stats" "colnames" "compare_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.All the plots in panels can be made by individual functions and they are plotted later in this section.
select_partition_number()
produces several plots showing different
statistics for choosing “optimized” k
. There are following statistics:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower PAC score, higher mean silhouette score or higher
concordance corresponds to better partition. Rand index and Jaccard index
measure how similar the current partition is compared to partition with k-1
.
If they are too similar, we won't accept k
is better than k-1
.
select_partition_number(res)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 1.000 1.000 1.000 0.5052 0.495 0.495
#> 3 3 1.000 0.991 0.996 0.1853 0.894 0.789
#> 4 4 0.900 0.863 0.940 0.0691 0.954 0.886
#> 5 5 0.774 0.781 0.872 0.0927 0.929 0.809
#> 6 6 0.736 0.650 0.844 0.0656 0.940 0.809
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
#> SRR1397242 1 0 1 1 0
#> SRR1093410 1 0 1 1 0
#> SRR1380523 2 0 1 0 1
#> SRR1089106 1 0 1 1 0
#> SRR1401403 1 0 1 1 0
#> SRR1080534 1 0 1 1 0
#> SRR1487638 2 0 1 0 1
#> SRR1320650 2 0 1 0 1
#> SRR1073045 2 0 1 0 1
#> SRR1397030 2 0 1 0 1
#> SRR1439976 1 0 1 1 0
#> SRR1454050 2 0 1 0 1
#> SRR1070286 1 0 1 1 0
#> SRR1344185 2 0 1 0 1
#> SRR1084228 2 0 1 0 1
#> SRR1101907 2 0 1 0 1
#> SRR1079686 2 0 1 0 1
#> SRR1089761 2 0 1 0 1
#> SRR811403 2 0 1 0 1
#> SRR1440560 2 0 1 0 1
#> SRR1079706 2 0 1 0 1
#> SRR1459101 2 0 1 0 1
#> SRR1335089 1 0 1 1 0
#> SRR1337840 1 0 1 1 0
#> SRR808682 2 0 1 0 1
#> SRR1443224 2 0 1 0 1
#> SRR1439831 1 0 1 1 0
#> SRR1087463 1 0 1 1 0
#> SRR1457949 2 0 1 0 1
#> SRR1455969 2 0 1 0 1
#> SRR1415529 1 0 1 1 0
#> SRR1330018 2 0 1 0 1
#> SRR1370597 2 0 1 0 1
#> SRR1385524 2 0 1 0 1
#> SRR1351605 1 0 1 1 0
#> SRR1460148 1 0 1 1 0
#> SRR1354159 2 0 1 0 1
#> SRR1318390 2 0 1 0 1
#> SRR1073095 2 0 1 0 1
#> SRR1410612 2 0 1 0 1
#> SRR1076892 1 0 1 1 0
#> SRR1340989 1 0 1 1 0
#> SRR1481375 2 0 1 0 1
#> SRR1079356 1 0 1 1 0
#> SRR1455545 1 0 1 1 0
#> SRR1406157 1 0 1 1 0
#> SRR1445920 2 0 1 0 1
#> SRR1420259 2 0 1 0 1
#> SRR1376963 2 0 1 0 1
#> SRR1101061 1 0 1 1 0
#> SRR1414496 2 0 1 0 1
#> SRR1334791 1 0 1 1 0
#> SRR1072129 2 0 1 0 1
#> SRR1330450 1 0 1 1 0
#> SRR1409108 2 0 1 0 1
#> SRR1416865 1 0 1 1 0
#> SRR1071832 1 0 1 1 0
#> SRR1093814 2 0 1 0 1
#> SRR1381821 1 0 1 1 0
#> SRR811675 1 0 1 1 0
#> SRR1082423 1 0 1 1 0
#> SRR1417296 2 0 1 0 1
#> SRR815944 2 0 1 0 1
#> SRR1332775 2 0 1 0 1
#> SRR1079143 1 0 1 1 0
#> SRR1476807 1 0 1 1 0
#> SRR1456634 1 0 1 1 0
#> SRR1083171 2 0 1 0 1
#> SRR1083337 1 0 1 1 0
#> SRR1377672 1 0 1 1 0
#> SRR1435816 2 0 1 0 1
#> SRR1080580 1 0 1 1 0
#> SRR1366672 2 0 1 0 1
#> SRR1075150 2 0 1 0 1
#> SRR814137 1 0 1 1 0
#> SRR1475062 1 0 1 1 0
#> SRR1340028 1 0 1 1 0
#> SRR1070789 2 0 1 0 1
#> SRR1097728 2 0 1 0 1
#> SRR1447172 2 0 1 0 1
#> SRR1472486 2 0 1 0 1
#> SRR1377881 1 0 1 1 0
#> SRR1420912 1 0 1 1 0
#> SRR1313747 2 0 1 0 1
#> SRR1414447 2 0 1 0 1
#> SRR1358238 1 0 1 1 0
#> SRR1322115 1 0 1 1 0
#> SRR1330474 1 0 1 1 0
#> SRR1093124 1 0 1 1 0
#> SRR1456354 1 0 1 1 0
#> SRR820859 1 0 1 1 0
#> SRR1401860 1 0 1 1 0
#> SRR1095599 2 0 1 0 1
#> SRR1417130 1 0 1 1 0
#> SRR1362597 2 0 1 0 1
#> SRR1328464 2 0 1 0 1
#> SRR1323957 1 0 1 1 0
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1380523 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1089106 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1401403 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1080534 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1487638 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1320650 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1073045 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1397030 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1439976 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1454050 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1070286 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1344185 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1084228 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1101907 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1079686 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1089761 2 0.0000 1.000 0.000 1.000 0.000
#> SRR811403 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1440560 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1079706 3 0.0000 0.981 0.000 0.000 1.000
#> SRR1459101 3 0.0000 0.981 0.000 0.000 1.000
#> SRR1335089 3 0.0000 0.981 0.000 0.000 1.000
#> SRR1337840 1 0.0000 0.995 1.000 0.000 0.000
#> SRR808682 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1443224 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1439831 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1087463 3 0.0000 0.981 0.000 0.000 1.000
#> SRR1457949 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1455969 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1415529 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1330018 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1370597 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1385524 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1351605 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1460148 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1354159 2 0.0592 0.988 0.000 0.988 0.012
#> SRR1318390 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1073095 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1410612 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1340989 3 0.0000 0.981 0.000 0.000 1.000
#> SRR1481375 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1079356 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1455545 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1406157 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1445920 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1420259 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1376963 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1101061 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1414496 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1072129 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1330450 3 0.4346 0.772 0.184 0.000 0.816
#> SRR1409108 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1416865 3 0.0000 0.981 0.000 0.000 1.000
#> SRR1071832 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1093814 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1381821 1 0.0000 0.995 1.000 0.000 0.000
#> SRR811675 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1082423 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1417296 2 0.0000 1.000 0.000 1.000 0.000
#> SRR815944 3 0.0000 0.981 0.000 0.000 1.000
#> SRR1332775 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1079143 3 0.0000 0.981 0.000 0.000 1.000
#> SRR1476807 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1456634 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1083171 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1083337 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1377672 3 0.0000 0.981 0.000 0.000 1.000
#> SRR1435816 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1080580 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1366672 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1075150 2 0.0000 1.000 0.000 1.000 0.000
#> SRR814137 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1475062 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1070789 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1097728 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1447172 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1472486 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1377881 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1420912 1 0.4452 0.756 0.808 0.000 0.192
#> SRR1313747 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1414447 3 0.0000 0.981 0.000 0.000 1.000
#> SRR1358238 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1322115 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1330474 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1456354 1 0.0000 0.995 1.000 0.000 0.000
#> SRR820859 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1401860 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1095599 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1417130 1 0.0000 0.995 1.000 0.000 0.000
#> SRR1362597 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1328464 2 0.0000 1.000 0.000 1.000 0.000
#> SRR1323957 1 0.0000 0.995 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1089106 1 0.2760 0.859 0.872 0.000 0.128 0.000
#> SRR1401403 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1080534 1 0.4989 0.182 0.528 0.000 0.472 0.000
#> SRR1487638 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1320650 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1073045 2 0.0336 0.986 0.000 0.992 0.008 0.000
#> SRR1397030 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1439976 1 0.2814 0.856 0.868 0.000 0.132 0.000
#> SRR1454050 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1070286 1 0.2647 0.864 0.880 0.000 0.120 0.000
#> SRR1344185 2 0.0707 0.979 0.000 0.980 0.020 0.000
#> SRR1084228 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1101907 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1079686 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1089761 2 0.0921 0.974 0.000 0.972 0.028 0.000
#> SRR811403 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1440560 4 0.4981 0.255 0.000 0.464 0.000 0.536
#> SRR1079706 3 0.4018 0.543 0.000 0.004 0.772 0.224
#> SRR1459101 4 0.0000 0.648 0.000 0.000 0.000 1.000
#> SRR1335089 3 0.2704 0.648 0.000 0.000 0.876 0.124
#> SRR1337840 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR808682 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1443224 2 0.0336 0.985 0.000 0.992 0.000 0.008
#> SRR1439831 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1087463 3 0.4543 0.487 0.000 0.000 0.676 0.324
#> SRR1457949 2 0.1118 0.967 0.000 0.964 0.036 0.000
#> SRR1455969 2 0.0336 0.986 0.000 0.992 0.008 0.000
#> SRR1415529 1 0.3528 0.799 0.808 0.000 0.192 0.000
#> SRR1330018 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1370597 2 0.1302 0.961 0.000 0.956 0.044 0.000
#> SRR1385524 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1351605 1 0.2760 0.859 0.872 0.000 0.128 0.000
#> SRR1460148 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1354159 4 0.4925 0.349 0.000 0.428 0.000 0.572
#> SRR1318390 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1073095 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1410612 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1076892 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1340989 4 0.3074 0.527 0.000 0.000 0.152 0.848
#> SRR1481375 2 0.0921 0.974 0.000 0.972 0.028 0.000
#> SRR1079356 1 0.4830 0.380 0.608 0.000 0.392 0.000
#> SRR1455545 1 0.2760 0.859 0.872 0.000 0.128 0.000
#> SRR1406157 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1420259 2 0.0188 0.988 0.000 0.996 0.004 0.000
#> SRR1376963 2 0.0592 0.978 0.000 0.984 0.000 0.016
#> SRR1101061 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1334791 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1330450 3 0.4297 0.632 0.084 0.000 0.820 0.096
#> SRR1409108 2 0.0336 0.985 0.000 0.992 0.000 0.008
#> SRR1416865 3 0.1867 0.659 0.000 0.000 0.928 0.072
#> SRR1071832 1 0.3024 0.843 0.852 0.000 0.148 0.000
#> SRR1093814 2 0.0336 0.985 0.000 0.992 0.000 0.008
#> SRR1381821 3 0.2408 0.643 0.104 0.000 0.896 0.000
#> SRR811675 1 0.3764 0.673 0.784 0.000 0.216 0.000
#> SRR1082423 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1417296 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR815944 4 0.0000 0.648 0.000 0.000 0.000 1.000
#> SRR1332775 2 0.1022 0.971 0.000 0.968 0.032 0.000
#> SRR1079143 4 0.2281 0.587 0.000 0.000 0.096 0.904
#> SRR1476807 1 0.0188 0.921 0.996 0.000 0.004 0.000
#> SRR1456634 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1083171 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1083337 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1377672 4 0.1940 0.615 0.000 0.000 0.076 0.924
#> SRR1435816 2 0.3037 0.878 0.000 0.888 0.036 0.076
#> SRR1080580 1 0.3356 0.816 0.824 0.000 0.176 0.000
#> SRR1366672 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1075150 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR814137 1 0.2760 0.859 0.872 0.000 0.128 0.000
#> SRR1475062 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1070789 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1097728 2 0.0921 0.974 0.000 0.972 0.028 0.000
#> SRR1447172 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1472486 2 0.0336 0.986 0.000 0.992 0.008 0.000
#> SRR1377881 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1420912 3 0.5696 -0.138 0.480 0.000 0.496 0.024
#> SRR1313747 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1414447 4 0.0188 0.647 0.000 0.000 0.004 0.996
#> SRR1358238 1 0.1389 0.902 0.952 0.000 0.048 0.000
#> SRR1322115 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1330474 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1093124 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1456354 1 0.0592 0.917 0.984 0.000 0.016 0.000
#> SRR820859 1 0.3074 0.840 0.848 0.000 0.152 0.000
#> SRR1401860 1 0.0469 0.918 0.988 0.000 0.012 0.000
#> SRR1095599 2 0.1118 0.967 0.000 0.964 0.036 0.000
#> SRR1417130 1 0.0000 0.922 1.000 0.000 0.000 0.000
#> SRR1362597 2 0.0000 0.989 0.000 1.000 0.000 0.000
#> SRR1328464 2 0.0469 0.984 0.000 0.988 0.012 0.000
#> SRR1323957 1 0.0000 0.922 1.000 0.000 0.000 0.000
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1089106 4 0.4201 0.766 0.408 0.000 0.000 0.592 0.000
#> SRR1401403 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1080534 4 0.3409 0.605 0.160 0.000 0.000 0.816 0.024
#> SRR1487638 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1320650 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1073045 2 0.2520 0.863 0.000 0.888 0.004 0.012 0.096
#> SRR1397030 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1439976 4 0.4161 0.788 0.392 0.000 0.000 0.608 0.000
#> SRR1454050 2 0.0671 0.905 0.000 0.980 0.004 0.016 0.000
#> SRR1070286 4 0.4297 0.636 0.472 0.000 0.000 0.528 0.000
#> SRR1344185 2 0.3904 0.763 0.000 0.764 0.008 0.012 0.216
#> SRR1084228 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1101907 2 0.0324 0.912 0.000 0.992 0.000 0.004 0.004
#> SRR1079686 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1089761 2 0.4170 0.706 0.000 0.712 0.004 0.012 0.272
#> SRR811403 2 0.2075 0.870 0.000 0.924 0.040 0.032 0.004
#> SRR1440560 3 0.5191 0.329 0.000 0.408 0.552 0.036 0.004
#> SRR1079706 5 0.1444 0.586 0.000 0.000 0.012 0.040 0.948
#> SRR1459101 3 0.0290 0.633 0.000 0.000 0.992 0.008 0.000
#> SRR1335089 5 0.5052 0.789 0.000 0.000 0.036 0.412 0.552
#> SRR1337840 1 0.1965 0.804 0.904 0.000 0.000 0.096 0.000
#> SRR808682 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1443224 2 0.2369 0.857 0.000 0.908 0.056 0.032 0.004
#> SRR1439831 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.5904 0.621 0.000 0.000 0.232 0.172 0.596
#> SRR1457949 2 0.4121 0.716 0.000 0.720 0.004 0.012 0.264
#> SRR1455969 2 0.1764 0.889 0.000 0.928 0.000 0.008 0.064
#> SRR1415529 4 0.3508 0.753 0.252 0.000 0.000 0.748 0.000
#> SRR1330018 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1370597 2 0.4060 0.593 0.000 0.640 0.000 0.000 0.360
#> SRR1385524 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1351605 4 0.4150 0.791 0.388 0.000 0.000 0.612 0.000
#> SRR1460148 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.5289 0.333 0.000 0.400 0.556 0.036 0.008
#> SRR1318390 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1073095 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1076892 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.3123 0.498 0.000 0.000 0.812 0.184 0.004
#> SRR1481375 2 0.3962 0.742 0.000 0.744 0.004 0.012 0.240
#> SRR1079356 1 0.6365 -0.113 0.520 0.000 0.000 0.228 0.252
#> SRR1455545 4 0.4171 0.783 0.396 0.000 0.000 0.604 0.000
#> SRR1406157 1 0.0162 0.904 0.996 0.000 0.000 0.004 0.000
#> SRR1445920 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1420259 2 0.1768 0.885 0.000 0.924 0.000 0.004 0.072
#> SRR1376963 2 0.2694 0.839 0.000 0.888 0.076 0.032 0.004
#> SRR1101061 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1334791 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1330450 4 0.1978 0.226 0.012 0.000 0.024 0.932 0.032
#> SRR1409108 2 0.2369 0.857 0.000 0.908 0.056 0.032 0.004
#> SRR1416865 5 0.4288 0.799 0.000 0.000 0.004 0.384 0.612
#> SRR1071832 4 0.4030 0.801 0.352 0.000 0.000 0.648 0.000
#> SRR1093814 2 0.2713 0.842 0.000 0.888 0.072 0.036 0.004
#> SRR1381821 5 0.4689 0.773 0.016 0.000 0.000 0.424 0.560
#> SRR811675 1 0.2616 0.785 0.888 0.000 0.000 0.036 0.076
#> SRR1082423 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR815944 3 0.0566 0.633 0.000 0.000 0.984 0.012 0.004
#> SRR1332775 2 0.2732 0.822 0.000 0.840 0.000 0.000 0.160
#> SRR1079143 3 0.3628 0.436 0.000 0.000 0.772 0.012 0.216
#> SRR1476807 1 0.2230 0.775 0.884 0.000 0.000 0.116 0.000
#> SRR1456634 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1083171 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1083337 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.1831 0.604 0.000 0.000 0.920 0.076 0.004
#> SRR1435816 2 0.5020 0.473 0.000 0.564 0.016 0.012 0.408
#> SRR1080580 4 0.4074 0.725 0.364 0.000 0.000 0.636 0.000
#> SRR1366672 2 0.0324 0.912 0.000 0.992 0.000 0.004 0.004
#> SRR1075150 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR814137 4 0.4150 0.791 0.388 0.000 0.000 0.612 0.000
#> SRR1475062 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1097728 2 0.3328 0.806 0.000 0.812 0.004 0.008 0.176
#> SRR1447172 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1472486 2 0.2116 0.876 0.000 0.912 0.004 0.008 0.076
#> SRR1377881 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1420912 4 0.2964 0.526 0.120 0.000 0.000 0.856 0.024
#> SRR1313747 2 0.1739 0.882 0.000 0.940 0.024 0.032 0.004
#> SRR1414447 3 0.0609 0.630 0.000 0.000 0.980 0.000 0.020
#> SRR1358238 1 0.4227 -0.319 0.580 0.000 0.000 0.420 0.000
#> SRR1322115 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1330474 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1093124 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1456354 1 0.2966 0.641 0.816 0.000 0.000 0.184 0.000
#> SRR820859 4 0.3895 0.799 0.320 0.000 0.000 0.680 0.000
#> SRR1401860 1 0.2471 0.737 0.864 0.000 0.000 0.136 0.000
#> SRR1095599 2 0.3928 0.690 0.000 0.700 0.000 0.004 0.296
#> SRR1417130 1 0.0000 0.907 1.000 0.000 0.000 0.000 0.000
#> SRR1362597 2 0.0000 0.914 0.000 1.000 0.000 0.000 0.000
#> SRR1328464 2 0.1990 0.882 0.000 0.920 0.004 0.008 0.068
#> SRR1323957 1 0.1965 0.804 0.904 0.000 0.000 0.096 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1089106 4 0.3198 0.7959 0.260 0.000 0.000 0.740 0.000 0.000
#> SRR1401403 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1080534 4 0.3310 0.6583 0.048 0.000 0.004 0.848 0.076 0.024
#> SRR1487638 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1320650 2 0.0146 0.7702 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1073045 2 0.3428 0.0519 0.000 0.696 0.000 0.000 0.000 0.304
#> SRR1397030 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1439976 4 0.2883 0.8242 0.212 0.000 0.000 0.788 0.000 0.000
#> SRR1454050 2 0.0937 0.7431 0.000 0.960 0.000 0.000 0.000 0.040
#> SRR1070286 4 0.3266 0.7892 0.272 0.000 0.000 0.728 0.000 0.000
#> SRR1344185 2 0.3823 -0.5310 0.000 0.564 0.000 0.000 0.000 0.436
#> SRR1084228 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1101907 2 0.0713 0.7570 0.000 0.972 0.000 0.000 0.000 0.028
#> SRR1079686 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1089761 6 0.4624 0.7274 0.000 0.452 0.024 0.000 0.008 0.516
#> SRR811403 2 0.3370 0.5414 0.000 0.772 0.004 0.000 0.012 0.212
#> SRR1440560 2 0.6626 -0.2701 0.000 0.360 0.352 0.004 0.020 0.264
#> SRR1079706 5 0.3779 0.6136 0.000 0.000 0.008 0.008 0.708 0.276
#> SRR1459101 3 0.0881 0.6758 0.000 0.000 0.972 0.012 0.008 0.008
#> SRR1335089 5 0.3385 0.7593 0.000 0.000 0.036 0.144 0.812 0.008
#> SRR1337840 1 0.3023 0.6184 0.768 0.000 0.000 0.232 0.000 0.000
#> SRR808682 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1443224 2 0.3988 0.4716 0.000 0.720 0.016 0.000 0.016 0.248
#> SRR1439831 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.5109 0.5865 0.000 0.000 0.220 0.056 0.672 0.052
#> SRR1457949 6 0.3828 0.7790 0.000 0.440 0.000 0.000 0.000 0.560
#> SRR1455969 2 0.2562 0.5736 0.000 0.828 0.000 0.000 0.000 0.172
#> SRR1415529 4 0.1556 0.7614 0.080 0.000 0.000 0.920 0.000 0.000
#> SRR1330018 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1370597 6 0.4882 0.7485 0.000 0.404 0.000 0.004 0.052 0.540
#> SRR1385524 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1351605 4 0.2793 0.8271 0.200 0.000 0.000 0.800 0.000 0.000
#> SRR1460148 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.6641 0.0645 0.000 0.336 0.364 0.004 0.020 0.276
#> SRR1318390 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1073095 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1076892 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.3120 0.5855 0.000 0.000 0.832 0.132 0.028 0.008
#> SRR1481375 2 0.3998 -0.6910 0.000 0.504 0.000 0.000 0.004 0.492
#> SRR1079356 1 0.5969 -0.0819 0.432 0.000 0.000 0.236 0.332 0.000
#> SRR1455545 4 0.3126 0.8056 0.248 0.000 0.000 0.752 0.000 0.000
#> SRR1406157 1 0.0547 0.8797 0.980 0.000 0.000 0.020 0.000 0.000
#> SRR1445920 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1420259 2 0.2996 0.3768 0.000 0.772 0.000 0.000 0.000 0.228
#> SRR1376963 2 0.3900 0.4770 0.000 0.724 0.012 0.000 0.016 0.248
#> SRR1101061 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1334791 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1330450 4 0.2165 0.5729 0.000 0.000 0.000 0.884 0.108 0.008
#> SRR1409108 2 0.3589 0.5154 0.000 0.752 0.008 0.000 0.012 0.228
#> SRR1416865 5 0.2163 0.7717 0.000 0.000 0.004 0.096 0.892 0.008
#> SRR1071832 4 0.2597 0.8235 0.176 0.000 0.000 0.824 0.000 0.000
#> SRR1093814 2 0.4094 0.4616 0.000 0.712 0.020 0.000 0.016 0.252
#> SRR1381821 5 0.3221 0.7179 0.004 0.000 0.000 0.220 0.772 0.004
#> SRR811675 1 0.3168 0.7169 0.804 0.000 0.000 0.024 0.172 0.000
#> SRR1082423 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.0146 0.7701 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR815944 3 0.2636 0.6590 0.000 0.000 0.860 0.004 0.016 0.120
#> SRR1332775 2 0.2793 0.4595 0.000 0.800 0.000 0.000 0.000 0.200
#> SRR1079143 3 0.4235 0.3877 0.000 0.000 0.684 0.012 0.280 0.024
#> SRR1476807 1 0.3244 0.5463 0.732 0.000 0.000 0.268 0.000 0.000
#> SRR1456634 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1083171 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1083337 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.1578 0.6679 0.000 0.000 0.936 0.048 0.012 0.004
#> SRR1435816 6 0.4572 0.6687 0.000 0.264 0.000 0.004 0.064 0.668
#> SRR1080580 4 0.3972 0.6704 0.220 0.000 0.000 0.740 0.016 0.024
#> SRR1366672 2 0.1267 0.7147 0.000 0.940 0.000 0.000 0.000 0.060
#> SRR1075150 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR814137 4 0.2762 0.8273 0.196 0.000 0.000 0.804 0.000 0.000
#> SRR1475062 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1097728 2 0.3830 -0.3088 0.000 0.620 0.000 0.000 0.004 0.376
#> SRR1447172 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1472486 2 0.3468 0.1295 0.000 0.712 0.000 0.000 0.004 0.284
#> SRR1377881 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 4 0.3213 0.7142 0.076 0.000 0.000 0.836 0.084 0.004
#> SRR1313747 2 0.3390 0.5513 0.000 0.780 0.008 0.000 0.012 0.200
#> SRR1414447 3 0.2182 0.6750 0.000 0.000 0.900 0.004 0.020 0.076
#> SRR1358238 4 0.3817 0.4507 0.432 0.000 0.000 0.568 0.000 0.000
#> SRR1322115 1 0.0146 0.8914 0.996 0.000 0.000 0.000 0.000 0.004
#> SRR1330474 1 0.0260 0.8885 0.992 0.000 0.000 0.008 0.000 0.000
#> SRR1093124 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1456354 1 0.3695 0.2392 0.624 0.000 0.000 0.376 0.000 0.000
#> SRR820859 4 0.2920 0.7861 0.128 0.000 0.000 0.844 0.008 0.020
#> SRR1401860 1 0.3705 0.5806 0.740 0.000 0.000 0.236 0.004 0.020
#> SRR1095599 6 0.4488 0.7978 0.000 0.420 0.000 0.000 0.032 0.548
#> SRR1417130 1 0.0000 0.8937 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1362597 2 0.0000 0.7723 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1328464 2 0.3109 0.3610 0.000 0.772 0.000 0.000 0.004 0.224
#> SRR1323957 1 0.2912 0.6464 0.784 0.000 0.000 0.216 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 17633 rows and 97 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 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.972 0.989 0.4702 0.528 0.528
#> 3 3 1.000 0.938 0.976 0.4226 0.746 0.543
#> 4 4 0.934 0.878 0.940 0.0930 0.754 0.418
#> 5 5 0.790 0.701 0.841 0.0750 0.862 0.550
#> 6 6 0.787 0.701 0.827 0.0399 0.971 0.861
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
#> SRR1397242 1 0.000 0.980 1.000 0.000
#> SRR1093410 1 0.000 0.980 1.000 0.000
#> SRR1380523 2 0.000 0.994 0.000 1.000
#> SRR1089106 1 0.000 0.980 1.000 0.000
#> SRR1401403 1 0.000 0.980 1.000 0.000
#> SRR1080534 2 0.000 0.994 0.000 1.000
#> SRR1487638 2 0.000 0.994 0.000 1.000
#> SRR1320650 2 0.000 0.994 0.000 1.000
#> SRR1073045 2 0.000 0.994 0.000 1.000
#> SRR1397030 2 0.000 0.994 0.000 1.000
#> SRR1439976 1 0.000 0.980 1.000 0.000
#> SRR1454050 2 0.000 0.994 0.000 1.000
#> SRR1070286 1 0.000 0.980 1.000 0.000
#> SRR1344185 2 0.000 0.994 0.000 1.000
#> SRR1084228 2 0.000 0.994 0.000 1.000
#> SRR1101907 2 0.000 0.994 0.000 1.000
#> SRR1079686 2 0.000 0.994 0.000 1.000
#> SRR1089761 2 0.000 0.994 0.000 1.000
#> SRR811403 2 0.000 0.994 0.000 1.000
#> SRR1440560 2 0.000 0.994 0.000 1.000
#> SRR1079706 2 0.000 0.994 0.000 1.000
#> SRR1459101 2 0.000 0.994 0.000 1.000
#> SRR1335089 2 0.000 0.994 0.000 1.000
#> SRR1337840 1 0.000 0.980 1.000 0.000
#> SRR808682 2 0.000 0.994 0.000 1.000
#> SRR1443224 2 0.000 0.994 0.000 1.000
#> SRR1439831 1 0.000 0.980 1.000 0.000
#> SRR1087463 2 0.000 0.994 0.000 1.000
#> SRR1457949 2 0.000 0.994 0.000 1.000
#> SRR1455969 2 0.000 0.994 0.000 1.000
#> SRR1415529 1 0.000 0.980 1.000 0.000
#> SRR1330018 2 0.000 0.994 0.000 1.000
#> SRR1370597 2 0.000 0.994 0.000 1.000
#> SRR1385524 2 0.000 0.994 0.000 1.000
#> SRR1351605 1 0.000 0.980 1.000 0.000
#> SRR1460148 1 0.000 0.980 1.000 0.000
#> SRR1354159 2 0.000 0.994 0.000 1.000
#> SRR1318390 2 0.000 0.994 0.000 1.000
#> SRR1073095 2 0.000 0.994 0.000 1.000
#> SRR1410612 2 0.000 0.994 0.000 1.000
#> SRR1076892 1 0.000 0.980 1.000 0.000
#> SRR1340989 2 0.000 0.994 0.000 1.000
#> SRR1481375 2 0.000 0.994 0.000 1.000
#> SRR1079356 1 0.000 0.980 1.000 0.000
#> SRR1455545 1 0.000 0.980 1.000 0.000
#> SRR1406157 1 0.000 0.980 1.000 0.000
#> SRR1445920 2 0.000 0.994 0.000 1.000
#> SRR1420259 2 0.000 0.994 0.000 1.000
#> SRR1376963 2 0.000 0.994 0.000 1.000
#> SRR1101061 1 0.000 0.980 1.000 0.000
#> SRR1414496 2 0.000 0.994 0.000 1.000
#> SRR1334791 1 0.000 0.980 1.000 0.000
#> SRR1072129 2 0.000 0.994 0.000 1.000
#> SRR1330450 2 0.000 0.994 0.000 1.000
#> SRR1409108 2 0.000 0.994 0.000 1.000
#> SRR1416865 2 0.000 0.994 0.000 1.000
#> SRR1071832 1 0.000 0.980 1.000 0.000
#> SRR1093814 2 0.000 0.994 0.000 1.000
#> SRR1381821 2 0.000 0.994 0.000 1.000
#> SRR811675 1 0.000 0.980 1.000 0.000
#> SRR1082423 1 0.000 0.980 1.000 0.000
#> SRR1417296 2 0.000 0.994 0.000 1.000
#> SRR815944 2 0.000 0.994 0.000 1.000
#> SRR1332775 2 0.000 0.994 0.000 1.000
#> SRR1079143 2 0.000 0.994 0.000 1.000
#> SRR1476807 1 0.000 0.980 1.000 0.000
#> SRR1456634 1 0.000 0.980 1.000 0.000
#> SRR1083171 2 0.000 0.994 0.000 1.000
#> SRR1083337 1 0.000 0.980 1.000 0.000
#> SRR1377672 2 0.000 0.994 0.000 1.000
#> SRR1435816 2 0.000 0.994 0.000 1.000
#> SRR1080580 2 0.000 0.994 0.000 1.000
#> SRR1366672 2 0.000 0.994 0.000 1.000
#> SRR1075150 2 0.000 0.994 0.000 1.000
#> SRR814137 1 0.000 0.980 1.000 0.000
#> SRR1475062 1 0.000 0.980 1.000 0.000
#> SRR1340028 1 0.000 0.980 1.000 0.000
#> SRR1070789 2 0.000 0.994 0.000 1.000
#> SRR1097728 2 0.000 0.994 0.000 1.000
#> SRR1447172 2 0.000 0.994 0.000 1.000
#> SRR1472486 2 0.000 0.994 0.000 1.000
#> SRR1377881 1 0.000 0.980 1.000 0.000
#> SRR1420912 1 0.988 0.228 0.564 0.436
#> SRR1313747 2 0.000 0.994 0.000 1.000
#> SRR1414447 2 0.000 0.994 0.000 1.000
#> SRR1358238 1 0.000 0.980 1.000 0.000
#> SRR1322115 1 0.000 0.980 1.000 0.000
#> SRR1330474 1 0.000 0.980 1.000 0.000
#> SRR1093124 1 0.000 0.980 1.000 0.000
#> SRR1456354 1 0.000 0.980 1.000 0.000
#> SRR820859 1 0.821 0.652 0.744 0.256
#> SRR1401860 2 0.932 0.448 0.348 0.652
#> SRR1095599 2 0.000 0.994 0.000 1.000
#> SRR1417130 1 0.000 0.980 1.000 0.000
#> SRR1362597 2 0.000 0.994 0.000 1.000
#> SRR1328464 2 0.000 0.994 0.000 1.000
#> SRR1323957 1 0.000 0.980 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1089106 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1401403 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1080534 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1487638 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1320650 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1073045 2 0.5810 0.4968 0.000 0.664 0.336
#> SRR1397030 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1439976 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1454050 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1070286 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1344185 3 0.0592 0.9623 0.000 0.012 0.988
#> SRR1084228 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1101907 3 0.0592 0.9623 0.000 0.012 0.988
#> SRR1079686 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1089761 3 0.0592 0.9623 0.000 0.012 0.988
#> SRR811403 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1440560 3 0.0592 0.9623 0.000 0.012 0.988
#> SRR1079706 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1459101 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1335089 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1337840 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR808682 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1443224 3 0.1860 0.9291 0.000 0.052 0.948
#> SRR1439831 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1087463 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1457949 3 0.0592 0.9623 0.000 0.012 0.988
#> SRR1455969 3 0.0592 0.9623 0.000 0.012 0.988
#> SRR1415529 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1330018 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1370597 3 0.0592 0.9623 0.000 0.012 0.988
#> SRR1385524 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1351605 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1460148 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1354159 3 0.0592 0.9623 0.000 0.012 0.988
#> SRR1318390 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1073095 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1340989 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1481375 2 0.5882 0.4680 0.000 0.652 0.348
#> SRR1079356 1 0.6168 0.2913 0.588 0.000 0.412
#> SRR1455545 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1406157 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1420259 3 0.0747 0.9601 0.000 0.016 0.984
#> SRR1376963 3 0.2878 0.8822 0.000 0.096 0.904
#> SRR1101061 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1330450 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1409108 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1416865 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1071832 3 0.6140 0.2913 0.404 0.000 0.596
#> SRR1093814 3 0.0592 0.9623 0.000 0.012 0.988
#> SRR1381821 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR811675 1 0.0592 0.9753 0.988 0.000 0.012
#> SRR1082423 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1417296 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR815944 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1332775 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1079143 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1476807 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1456634 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1083171 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1083337 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1377672 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1435816 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1080580 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1366672 3 0.0592 0.9623 0.000 0.012 0.988
#> SRR1075150 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR814137 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1475062 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1097728 3 0.0592 0.9623 0.000 0.012 0.988
#> SRR1447172 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1472486 3 0.6305 0.0114 0.000 0.484 0.516
#> SRR1377881 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1420912 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1313747 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1414447 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1358238 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1322115 1 0.0592 0.9753 0.988 0.000 0.012
#> SRR1330474 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1456354 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR820859 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1401860 3 0.0000 0.9640 0.000 0.000 1.000
#> SRR1095599 3 0.0592 0.9623 0.000 0.012 0.988
#> SRR1417130 1 0.0000 0.9850 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.9737 0.000 1.000 0.000
#> SRR1328464 3 0.1289 0.9467 0.000 0.032 0.968
#> SRR1323957 1 0.0000 0.9850 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.0000 0.9768 0.000 1.000 0.000 0.000
#> SRR1089106 4 0.4830 0.3568 0.392 0.000 0.000 0.608
#> SRR1401403 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1080534 4 0.1557 0.8728 0.000 0.000 0.056 0.944
#> SRR1487638 2 0.0000 0.9768 0.000 1.000 0.000 0.000
#> SRR1320650 3 0.1557 0.9293 0.000 0.056 0.944 0.000
#> SRR1073045 3 0.1557 0.9293 0.000 0.056 0.944 0.000
#> SRR1397030 3 0.1557 0.9293 0.000 0.056 0.944 0.000
#> SRR1439976 4 0.4843 0.3469 0.396 0.000 0.000 0.604
#> SRR1454050 3 0.1557 0.9293 0.000 0.056 0.944 0.000
#> SRR1070286 4 0.4955 0.3108 0.444 0.000 0.000 0.556
#> SRR1344185 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1084228 3 0.1557 0.9293 0.000 0.056 0.944 0.000
#> SRR1101907 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1079686 3 0.1557 0.9293 0.000 0.056 0.944 0.000
#> SRR1089761 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR811403 3 0.1557 0.9293 0.000 0.056 0.944 0.000
#> SRR1440560 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1079706 3 0.4830 0.3592 0.000 0.000 0.608 0.392
#> SRR1459101 3 0.4830 0.3592 0.000 0.000 0.608 0.392
#> SRR1335089 4 0.1557 0.8728 0.000 0.000 0.056 0.944
#> SRR1337840 1 0.1474 0.9367 0.948 0.000 0.000 0.052
#> SRR808682 2 0.0000 0.9768 0.000 1.000 0.000 0.000
#> SRR1443224 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1439831 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1087463 4 0.1557 0.8728 0.000 0.000 0.056 0.944
#> SRR1457949 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1455969 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1415529 4 0.1474 0.8732 0.000 0.000 0.052 0.948
#> SRR1330018 2 0.2011 0.8992 0.000 0.920 0.080 0.000
#> SRR1370597 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1385524 3 0.3688 0.7627 0.000 0.208 0.792 0.000
#> SRR1351605 4 0.4830 0.3568 0.392 0.000 0.000 0.608
#> SRR1460148 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1354159 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1318390 3 0.1557 0.9293 0.000 0.056 0.944 0.000
#> SRR1073095 2 0.0000 0.9768 0.000 1.000 0.000 0.000
#> SRR1410612 2 0.0000 0.9768 0.000 1.000 0.000 0.000
#> SRR1076892 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1340989 4 0.1557 0.8728 0.000 0.000 0.056 0.944
#> SRR1481375 3 0.1557 0.9293 0.000 0.056 0.944 0.000
#> SRR1079356 4 0.1474 0.8732 0.000 0.000 0.052 0.948
#> SRR1455545 1 0.2281 0.8982 0.904 0.000 0.000 0.096
#> SRR1406157 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.9768 0.000 1.000 0.000 0.000
#> SRR1420259 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1376963 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1101061 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.9768 0.000 1.000 0.000 0.000
#> SRR1334791 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.9768 0.000 1.000 0.000 0.000
#> SRR1330450 4 0.1474 0.8732 0.000 0.000 0.052 0.948
#> SRR1409108 3 0.1557 0.9293 0.000 0.056 0.944 0.000
#> SRR1416865 4 0.1557 0.8728 0.000 0.000 0.056 0.944
#> SRR1071832 4 0.0000 0.8416 0.000 0.000 0.000 1.000
#> SRR1093814 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1381821 4 0.1474 0.8732 0.000 0.000 0.052 0.948
#> SRR811675 4 0.1474 0.8415 0.052 0.000 0.000 0.948
#> SRR1082423 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1417296 2 0.0000 0.9768 0.000 1.000 0.000 0.000
#> SRR815944 3 0.1118 0.9143 0.000 0.000 0.964 0.036
#> SRR1332775 3 0.1557 0.9293 0.000 0.056 0.944 0.000
#> SRR1079143 4 0.1557 0.8728 0.000 0.000 0.056 0.944
#> SRR1476807 1 0.1474 0.9367 0.948 0.000 0.000 0.052
#> SRR1456634 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1083171 3 0.1557 0.9293 0.000 0.056 0.944 0.000
#> SRR1083337 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1377672 4 0.1557 0.8728 0.000 0.000 0.056 0.944
#> SRR1435816 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1080580 4 0.1557 0.8728 0.000 0.000 0.056 0.944
#> SRR1366672 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1075150 3 0.1557 0.9293 0.000 0.056 0.944 0.000
#> SRR814137 4 0.4776 0.3913 0.376 0.000 0.000 0.624
#> SRR1475062 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1070789 2 0.0000 0.9768 0.000 1.000 0.000 0.000
#> SRR1097728 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1447172 2 0.0000 0.9768 0.000 1.000 0.000 0.000
#> SRR1472486 3 0.1557 0.9293 0.000 0.056 0.944 0.000
#> SRR1377881 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1420912 4 0.1474 0.8732 0.000 0.000 0.052 0.948
#> SRR1313747 2 0.3266 0.7904 0.000 0.832 0.168 0.000
#> SRR1414447 3 0.1302 0.9076 0.000 0.000 0.956 0.044
#> SRR1358238 1 0.1474 0.9367 0.948 0.000 0.000 0.052
#> SRR1322115 4 0.1474 0.8415 0.052 0.000 0.000 0.948
#> SRR1330474 1 0.0336 0.9614 0.992 0.000 0.000 0.008
#> SRR1093124 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1456354 1 0.4941 0.0764 0.564 0.000 0.000 0.436
#> SRR820859 4 0.1474 0.8732 0.000 0.000 0.052 0.948
#> SRR1401860 4 0.1474 0.8732 0.000 0.000 0.052 0.948
#> SRR1095599 3 0.0000 0.9390 0.000 0.000 1.000 0.000
#> SRR1417130 1 0.0000 0.9653 1.000 0.000 0.000 0.000
#> SRR1362597 2 0.0000 0.9768 0.000 1.000 0.000 0.000
#> SRR1328464 3 0.0469 0.9377 0.000 0.012 0.988 0.000
#> SRR1323957 1 0.1474 0.9367 0.948 0.000 0.000 0.052
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1380523 4 0.2891 0.826 0.000 0.176 0.000 0.824 0.000
#> SRR1089106 5 0.4425 0.535 0.296 0.024 0.000 0.000 0.680
#> SRR1401403 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1080534 5 0.4045 0.236 0.000 0.000 0.356 0.000 0.644
#> SRR1487638 2 0.4291 -0.264 0.000 0.536 0.000 0.464 0.000
#> SRR1320650 2 0.3508 0.781 0.000 0.748 0.252 0.000 0.000
#> SRR1073045 2 0.3561 0.778 0.000 0.740 0.260 0.000 0.000
#> SRR1397030 2 0.0703 0.744 0.000 0.976 0.024 0.000 0.000
#> SRR1439976 5 0.4540 0.491 0.320 0.024 0.000 0.000 0.656
#> SRR1454050 2 0.3774 0.758 0.000 0.704 0.296 0.000 0.000
#> SRR1070286 5 0.4101 0.475 0.372 0.000 0.000 0.000 0.628
#> SRR1344185 3 0.0000 0.704 0.000 0.000 1.000 0.000 0.000
#> SRR1084228 2 0.3177 0.785 0.000 0.792 0.208 0.000 0.000
#> SRR1101907 2 0.3932 0.731 0.000 0.672 0.328 0.000 0.000
#> SRR1079686 2 0.0703 0.744 0.000 0.976 0.024 0.000 0.000
#> SRR1089761 3 0.0000 0.704 0.000 0.000 1.000 0.000 0.000
#> SRR811403 2 0.3508 0.781 0.000 0.748 0.252 0.000 0.000
#> SRR1440560 3 0.0000 0.704 0.000 0.000 1.000 0.000 0.000
#> SRR1079706 3 0.2891 0.623 0.000 0.000 0.824 0.000 0.176
#> SRR1459101 3 0.3143 0.602 0.000 0.000 0.796 0.000 0.204
#> SRR1335089 3 0.4294 0.239 0.000 0.000 0.532 0.000 0.468
#> SRR1337840 1 0.1965 0.914 0.924 0.024 0.000 0.000 0.052
#> SRR808682 2 0.0703 0.721 0.000 0.976 0.000 0.024 0.000
#> SRR1443224 3 0.4060 0.107 0.000 0.360 0.640 0.000 0.000
#> SRR1439831 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.4268 0.286 0.000 0.000 0.556 0.000 0.444
#> SRR1457949 3 0.4256 -0.378 0.000 0.436 0.564 0.000 0.000
#> SRR1455969 3 0.0290 0.698 0.000 0.008 0.992 0.000 0.000
#> SRR1415529 5 0.1270 0.773 0.000 0.000 0.052 0.000 0.948
#> SRR1330018 2 0.0703 0.721 0.000 0.976 0.000 0.024 0.000
#> SRR1370597 3 0.0000 0.704 0.000 0.000 1.000 0.000 0.000
#> SRR1385524 2 0.0703 0.744 0.000 0.976 0.024 0.000 0.000
#> SRR1351605 5 0.4425 0.535 0.296 0.024 0.000 0.000 0.680
#> SRR1460148 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.0000 0.704 0.000 0.000 1.000 0.000 0.000
#> SRR1318390 2 0.3305 0.786 0.000 0.776 0.224 0.000 0.000
#> SRR1073095 4 0.0000 0.946 0.000 0.000 0.000 1.000 0.000
#> SRR1410612 4 0.0000 0.946 0.000 0.000 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.4294 0.239 0.000 0.000 0.532 0.000 0.468
#> SRR1481375 2 0.4294 0.557 0.000 0.532 0.468 0.000 0.000
#> SRR1079356 5 0.1270 0.773 0.000 0.000 0.052 0.000 0.948
#> SRR1455545 1 0.2653 0.876 0.880 0.024 0.000 0.000 0.096
#> SRR1406157 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1445920 4 0.0000 0.946 0.000 0.000 0.000 1.000 0.000
#> SRR1420259 2 0.4294 0.557 0.000 0.532 0.468 0.000 0.000
#> SRR1376963 2 0.3816 0.745 0.000 0.696 0.304 0.000 0.000
#> SRR1101061 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 4 0.0000 0.946 0.000 0.000 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1072129 4 0.0000 0.946 0.000 0.000 0.000 1.000 0.000
#> SRR1330450 5 0.1608 0.759 0.000 0.000 0.072 0.000 0.928
#> SRR1409108 2 0.2020 0.767 0.000 0.900 0.100 0.000 0.000
#> SRR1416865 3 0.4294 0.239 0.000 0.000 0.532 0.000 0.468
#> SRR1071832 5 0.0000 0.763 0.000 0.000 0.000 0.000 1.000
#> SRR1093814 3 0.1732 0.613 0.000 0.080 0.920 0.000 0.000
#> SRR1381821 5 0.1341 0.771 0.000 0.000 0.056 0.000 0.944
#> SRR811675 5 0.1270 0.767 0.052 0.000 0.000 0.000 0.948
#> SRR1082423 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1417296 4 0.4030 0.593 0.000 0.352 0.000 0.648 0.000
#> SRR815944 3 0.0963 0.700 0.000 0.000 0.964 0.000 0.036
#> SRR1332775 2 0.4161 0.606 0.000 0.608 0.392 0.000 0.000
#> SRR1079143 3 0.4278 0.272 0.000 0.000 0.548 0.000 0.452
#> SRR1476807 1 0.1965 0.914 0.924 0.024 0.000 0.000 0.052
#> SRR1456634 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1083171 2 0.3452 0.783 0.000 0.756 0.244 0.000 0.000
#> SRR1083337 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.4294 0.239 0.000 0.000 0.532 0.000 0.468
#> SRR1435816 3 0.0000 0.704 0.000 0.000 1.000 0.000 0.000
#> SRR1080580 5 0.3177 0.571 0.000 0.000 0.208 0.000 0.792
#> SRR1366672 2 0.4294 0.557 0.000 0.532 0.468 0.000 0.000
#> SRR1075150 2 0.0703 0.744 0.000 0.976 0.024 0.000 0.000
#> SRR814137 5 0.4338 0.559 0.280 0.024 0.000 0.000 0.696
#> SRR1475062 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1070789 4 0.0000 0.946 0.000 0.000 0.000 1.000 0.000
#> SRR1097728 3 0.0000 0.704 0.000 0.000 1.000 0.000 0.000
#> SRR1447172 4 0.0000 0.946 0.000 0.000 0.000 1.000 0.000
#> SRR1472486 2 0.3561 0.778 0.000 0.740 0.260 0.000 0.000
#> SRR1377881 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1420912 5 0.1270 0.773 0.000 0.000 0.052 0.000 0.948
#> SRR1313747 2 0.0703 0.721 0.000 0.976 0.000 0.024 0.000
#> SRR1414447 3 0.0510 0.704 0.000 0.000 0.984 0.000 0.016
#> SRR1358238 1 0.1965 0.914 0.924 0.024 0.000 0.000 0.052
#> SRR1322115 5 0.1270 0.767 0.052 0.000 0.000 0.000 0.948
#> SRR1330474 1 0.0290 0.955 0.992 0.000 0.000 0.000 0.008
#> SRR1093124 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1456354 1 0.4249 0.111 0.568 0.000 0.000 0.000 0.432
#> SRR820859 5 0.1270 0.773 0.000 0.000 0.052 0.000 0.948
#> SRR1401860 5 0.1270 0.773 0.000 0.000 0.052 0.000 0.948
#> SRR1095599 3 0.0000 0.704 0.000 0.000 1.000 0.000 0.000
#> SRR1417130 1 0.0000 0.960 1.000 0.000 0.000 0.000 0.000
#> SRR1362597 4 0.0000 0.946 0.000 0.000 0.000 1.000 0.000
#> SRR1328464 3 0.4287 -0.448 0.000 0.460 0.540 0.000 0.000
#> SRR1323957 1 0.1965 0.914 0.924 0.024 0.000 0.000 0.052
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.2911 0.8027 0.000 0.832 0.000 0.024 0.000 0.144
#> SRR1089106 5 0.3684 0.4895 0.000 0.000 0.000 0.372 0.628 0.000
#> SRR1401403 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1080534 5 0.4167 0.1746 0.000 0.000 0.344 0.024 0.632 0.000
#> SRR1487638 6 0.4788 -0.1149 0.000 0.396 0.000 0.056 0.000 0.548
#> SRR1320650 6 0.3133 0.7558 0.000 0.000 0.212 0.008 0.000 0.780
#> SRR1073045 6 0.3688 0.7346 0.000 0.000 0.256 0.020 0.000 0.724
#> SRR1397030 6 0.1411 0.7088 0.000 0.000 0.004 0.060 0.000 0.936
#> SRR1439976 4 0.3717 0.8674 0.160 0.000 0.000 0.776 0.064 0.000
#> SRR1454050 6 0.3859 0.7137 0.000 0.000 0.288 0.020 0.000 0.692
#> SRR1070286 5 0.4954 0.4659 0.260 0.000 0.000 0.112 0.628 0.000
#> SRR1344185 3 0.1745 0.6432 0.000 0.000 0.924 0.020 0.000 0.056
#> SRR1084228 6 0.2738 0.7606 0.000 0.000 0.176 0.004 0.000 0.820
#> SRR1101907 6 0.3934 0.6988 0.000 0.000 0.304 0.020 0.000 0.676
#> SRR1079686 6 0.1204 0.7078 0.000 0.000 0.000 0.056 0.000 0.944
#> SRR1089761 3 0.1462 0.6584 0.000 0.000 0.936 0.008 0.000 0.056
#> SRR811403 6 0.3161 0.7547 0.000 0.000 0.216 0.008 0.000 0.776
#> SRR1440560 3 0.0363 0.6800 0.000 0.000 0.988 0.012 0.000 0.000
#> SRR1079706 3 0.3766 0.5582 0.000 0.000 0.748 0.040 0.212 0.000
#> SRR1459101 3 0.4089 0.5177 0.000 0.000 0.696 0.040 0.264 0.000
#> SRR1335089 3 0.4584 0.3709 0.000 0.000 0.556 0.040 0.404 0.000
#> SRR1337840 4 0.2996 0.9248 0.228 0.000 0.000 0.772 0.000 0.000
#> SRR808682 6 0.1204 0.7078 0.000 0.000 0.000 0.056 0.000 0.944
#> SRR1443224 3 0.4219 0.0491 0.000 0.000 0.592 0.020 0.000 0.388
#> SRR1439831 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.4584 0.3709 0.000 0.000 0.556 0.040 0.404 0.000
#> SRR1457949 3 0.4310 -0.3402 0.000 0.000 0.540 0.020 0.000 0.440
#> SRR1455969 3 0.1745 0.6432 0.000 0.000 0.924 0.020 0.000 0.056
#> SRR1415529 5 0.0790 0.8128 0.000 0.000 0.000 0.032 0.968 0.000
#> SRR1330018 6 0.1204 0.7078 0.000 0.000 0.000 0.056 0.000 0.944
#> SRR1370597 3 0.1176 0.6627 0.000 0.000 0.956 0.020 0.000 0.024
#> SRR1385524 6 0.1204 0.7078 0.000 0.000 0.000 0.056 0.000 0.944
#> SRR1351605 4 0.2003 0.6240 0.000 0.000 0.000 0.884 0.116 0.000
#> SRR1460148 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 3 0.0363 0.6800 0.000 0.000 0.988 0.012 0.000 0.000
#> SRR1318390 6 0.2730 0.7608 0.000 0.000 0.192 0.000 0.000 0.808
#> SRR1073095 2 0.0000 0.9351 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.9351 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1076892 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 3 0.4584 0.3709 0.000 0.000 0.556 0.040 0.404 0.000
#> SRR1481375 6 0.4314 0.5207 0.000 0.000 0.444 0.020 0.000 0.536
#> SRR1079356 5 0.1957 0.8044 0.000 0.000 0.000 0.112 0.888 0.000
#> SRR1455545 4 0.2996 0.9248 0.228 0.000 0.000 0.772 0.000 0.000
#> SRR1406157 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.9351 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1420259 6 0.4314 0.5207 0.000 0.000 0.444 0.020 0.000 0.536
#> SRR1376963 6 0.3555 0.7168 0.000 0.000 0.280 0.008 0.000 0.712
#> SRR1101061 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.0000 0.9351 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1334791 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0000 0.9351 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1330450 5 0.0790 0.7931 0.000 0.000 0.032 0.000 0.968 0.000
#> SRR1409108 6 0.2404 0.7497 0.000 0.000 0.112 0.016 0.000 0.872
#> SRR1416865 3 0.4584 0.3709 0.000 0.000 0.556 0.040 0.404 0.000
#> SRR1071832 5 0.1957 0.8044 0.000 0.000 0.000 0.112 0.888 0.000
#> SRR1093814 3 0.2790 0.5363 0.000 0.000 0.840 0.020 0.000 0.140
#> SRR1381821 5 0.0405 0.8032 0.000 0.000 0.004 0.008 0.988 0.000
#> SRR811675 5 0.1957 0.8044 0.000 0.000 0.000 0.112 0.888 0.000
#> SRR1082423 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1417296 2 0.4438 0.5561 0.000 0.628 0.000 0.044 0.000 0.328
#> SRR815944 3 0.1480 0.6820 0.000 0.000 0.940 0.040 0.020 0.000
#> SRR1332775 6 0.4631 0.5939 0.000 0.000 0.320 0.060 0.000 0.620
#> SRR1079143 3 0.4584 0.3709 0.000 0.000 0.556 0.040 0.404 0.000
#> SRR1476807 4 0.2996 0.9248 0.228 0.000 0.000 0.772 0.000 0.000
#> SRR1456634 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1083171 6 0.2823 0.7594 0.000 0.000 0.204 0.000 0.000 0.796
#> SRR1083337 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1377672 3 0.4584 0.3709 0.000 0.000 0.556 0.040 0.404 0.000
#> SRR1435816 3 0.0713 0.6811 0.000 0.000 0.972 0.028 0.000 0.000
#> SRR1080580 5 0.2823 0.5518 0.000 0.000 0.204 0.000 0.796 0.000
#> SRR1366672 6 0.4314 0.5207 0.000 0.000 0.444 0.020 0.000 0.536
#> SRR1075150 6 0.1204 0.7078 0.000 0.000 0.000 0.056 0.000 0.944
#> SRR814137 5 0.3684 0.4895 0.000 0.000 0.000 0.372 0.628 0.000
#> SRR1475062 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340028 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.0000 0.9351 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1097728 3 0.0806 0.6694 0.000 0.000 0.972 0.020 0.000 0.008
#> SRR1447172 2 0.0000 0.9351 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1472486 6 0.3665 0.7364 0.000 0.000 0.252 0.020 0.000 0.728
#> SRR1377881 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1420912 5 0.0937 0.8130 0.000 0.000 0.000 0.040 0.960 0.000
#> SRR1313747 6 0.1204 0.7078 0.000 0.000 0.000 0.056 0.000 0.944
#> SRR1414447 3 0.2001 0.6803 0.000 0.000 0.912 0.040 0.048 0.000
#> SRR1358238 4 0.2996 0.9248 0.228 0.000 0.000 0.772 0.000 0.000
#> SRR1322115 5 0.1957 0.8044 0.000 0.000 0.000 0.112 0.888 0.000
#> SRR1330474 1 0.0146 0.9562 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR1093124 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1456354 1 0.5400 -0.0169 0.484 0.000 0.000 0.116 0.400 0.000
#> SRR820859 5 0.0000 0.8071 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1401860 5 0.0000 0.8071 0.000 0.000 0.000 0.000 1.000 0.000
#> SRR1095599 3 0.1745 0.6432 0.000 0.000 0.924 0.020 0.000 0.056
#> SRR1417130 1 0.0000 0.9607 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1362597 2 0.0000 0.9351 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1328464 3 0.4333 -0.4192 0.000 0.000 0.512 0.020 0.000 0.468
#> SRR1323957 4 0.2996 0.9248 0.228 0.000 0.000 0.772 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 17633 rows and 97 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'ATC' method.
#> Subgroups are detected by 'mclust' method.
#> Performed in total 1250 partitions by row resampling.
#> Best k for subgroups seems to be 2.
#>
#> Following methods can be applied to this 'ConsensusPartition' object:
#> [1] "cola_report" "collect_classes" "collect_plots"
#> [4] "collect_stats" "colnames" "compare_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.All the plots in panels can be made by individual functions and they are plotted later in this section.
select_partition_number()
produces several plots showing different
statistics for choosing “optimized” k
. There are following statistics:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower PAC score, higher mean silhouette score or higher
concordance corresponds to better partition. Rand index and Jaccard index
measure how similar the current partition is compared to partition with k-1
.
If they are too similar, we won't accept k
is better than k-1
.
select_partition_number(res)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 0.857 0.888 0.957 0.4862 0.514 0.514
#> 3 3 0.613 0.776 0.890 0.3033 0.777 0.597
#> 4 4 0.676 0.810 0.864 0.1578 0.865 0.643
#> 5 5 0.714 0.631 0.788 0.0637 0.945 0.791
#> 6 6 0.721 0.555 0.741 0.0400 0.874 0.528
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
#> SRR1397242 1 0.0000 0.957 1.000 0.000
#> SRR1093410 1 0.0000 0.957 1.000 0.000
#> SRR1380523 2 0.0000 0.949 0.000 1.000
#> SRR1089106 1 0.0000 0.957 1.000 0.000
#> SRR1401403 1 0.0000 0.957 1.000 0.000
#> SRR1080534 1 0.9881 0.191 0.564 0.436
#> SRR1487638 2 0.0000 0.949 0.000 1.000
#> SRR1320650 2 0.0000 0.949 0.000 1.000
#> SRR1073045 2 0.0000 0.949 0.000 1.000
#> SRR1397030 2 0.0000 0.949 0.000 1.000
#> SRR1439976 1 0.0000 0.957 1.000 0.000
#> SRR1454050 2 0.0000 0.949 0.000 1.000
#> SRR1070286 1 0.0000 0.957 1.000 0.000
#> SRR1344185 2 0.0000 0.949 0.000 1.000
#> SRR1084228 2 0.0000 0.949 0.000 1.000
#> SRR1101907 2 0.0000 0.949 0.000 1.000
#> SRR1079686 2 0.0000 0.949 0.000 1.000
#> SRR1089761 2 0.0000 0.949 0.000 1.000
#> SRR811403 2 0.0000 0.949 0.000 1.000
#> SRR1440560 2 0.0000 0.949 0.000 1.000
#> SRR1079706 2 0.3114 0.898 0.056 0.944
#> SRR1459101 2 0.0000 0.949 0.000 1.000
#> SRR1335089 2 0.9491 0.434 0.368 0.632
#> SRR1337840 1 0.0000 0.957 1.000 0.000
#> SRR808682 2 0.0000 0.949 0.000 1.000
#> SRR1443224 2 0.0000 0.949 0.000 1.000
#> SRR1439831 1 0.0000 0.957 1.000 0.000
#> SRR1087463 2 0.0376 0.945 0.004 0.996
#> SRR1457949 2 0.0000 0.949 0.000 1.000
#> SRR1455969 2 0.0000 0.949 0.000 1.000
#> SRR1415529 1 0.0938 0.949 0.988 0.012
#> SRR1330018 2 0.0000 0.949 0.000 1.000
#> SRR1370597 2 0.0000 0.949 0.000 1.000
#> SRR1385524 2 0.0000 0.949 0.000 1.000
#> SRR1351605 1 0.0000 0.957 1.000 0.000
#> SRR1460148 1 0.0000 0.957 1.000 0.000
#> SRR1354159 2 0.0000 0.949 0.000 1.000
#> SRR1318390 2 0.0000 0.949 0.000 1.000
#> SRR1073095 2 0.0000 0.949 0.000 1.000
#> SRR1410612 2 0.0000 0.949 0.000 1.000
#> SRR1076892 1 0.0000 0.957 1.000 0.000
#> SRR1340989 2 0.9552 0.415 0.376 0.624
#> SRR1481375 2 0.0000 0.949 0.000 1.000
#> SRR1079356 1 0.9754 0.280 0.592 0.408
#> SRR1455545 1 0.0000 0.957 1.000 0.000
#> SRR1406157 1 0.0000 0.957 1.000 0.000
#> SRR1445920 2 0.0000 0.949 0.000 1.000
#> SRR1420259 2 0.0000 0.949 0.000 1.000
#> SRR1376963 2 0.0000 0.949 0.000 1.000
#> SRR1101061 1 0.0000 0.957 1.000 0.000
#> SRR1414496 2 0.0000 0.949 0.000 1.000
#> SRR1334791 1 0.0000 0.957 1.000 0.000
#> SRR1072129 2 0.0000 0.949 0.000 1.000
#> SRR1330450 2 0.9686 0.366 0.396 0.604
#> SRR1409108 2 0.0000 0.949 0.000 1.000
#> SRR1416865 2 0.9635 0.386 0.388 0.612
#> SRR1071832 1 0.0938 0.949 0.988 0.012
#> SRR1093814 2 0.0000 0.949 0.000 1.000
#> SRR1381821 2 0.9710 0.356 0.400 0.600
#> SRR811675 1 0.6712 0.759 0.824 0.176
#> SRR1082423 1 0.0000 0.957 1.000 0.000
#> SRR1417296 2 0.0000 0.949 0.000 1.000
#> SRR815944 2 0.1184 0.935 0.016 0.984
#> SRR1332775 2 0.0000 0.949 0.000 1.000
#> SRR1079143 2 0.8713 0.583 0.292 0.708
#> SRR1476807 1 0.0000 0.957 1.000 0.000
#> SRR1456634 1 0.0000 0.957 1.000 0.000
#> SRR1083171 2 0.0000 0.949 0.000 1.000
#> SRR1083337 1 0.0000 0.957 1.000 0.000
#> SRR1377672 2 0.9686 0.366 0.396 0.604
#> SRR1435816 2 0.0000 0.949 0.000 1.000
#> SRR1080580 1 0.0938 0.949 0.988 0.012
#> SRR1366672 2 0.0000 0.949 0.000 1.000
#> SRR1075150 2 0.0000 0.949 0.000 1.000
#> SRR814137 1 0.0000 0.957 1.000 0.000
#> SRR1475062 1 0.0000 0.957 1.000 0.000
#> SRR1340028 1 0.0000 0.957 1.000 0.000
#> SRR1070789 2 0.0000 0.949 0.000 1.000
#> SRR1097728 2 0.0000 0.949 0.000 1.000
#> SRR1447172 2 0.0000 0.949 0.000 1.000
#> SRR1472486 2 0.0000 0.949 0.000 1.000
#> SRR1377881 1 0.0000 0.957 1.000 0.000
#> SRR1420912 1 0.9795 0.263 0.584 0.416
#> SRR1313747 2 0.0000 0.949 0.000 1.000
#> SRR1414447 2 0.0000 0.949 0.000 1.000
#> SRR1358238 1 0.0000 0.957 1.000 0.000
#> SRR1322115 1 0.0000 0.957 1.000 0.000
#> SRR1330474 1 0.0000 0.957 1.000 0.000
#> SRR1093124 1 0.0000 0.957 1.000 0.000
#> SRR1456354 1 0.0000 0.957 1.000 0.000
#> SRR820859 1 0.0938 0.949 0.988 0.012
#> SRR1401860 1 0.0938 0.949 0.988 0.012
#> SRR1095599 2 0.0000 0.949 0.000 1.000
#> SRR1417130 1 0.0000 0.957 1.000 0.000
#> SRR1362597 2 0.0000 0.949 0.000 1.000
#> SRR1328464 2 0.0000 0.949 0.000 1.000
#> SRR1323957 1 0.0000 0.957 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1380523 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1089106 3 0.3267 0.7555 0.116 0.000 0.884
#> SRR1401403 1 0.5760 0.4719 0.672 0.000 0.328
#> SRR1080534 3 0.0000 0.8071 0.000 0.000 1.000
#> SRR1487638 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1320650 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1073045 2 0.5216 0.7113 0.000 0.740 0.260
#> SRR1397030 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1439976 3 0.5706 0.5418 0.320 0.000 0.680
#> SRR1454050 2 0.1860 0.8322 0.000 0.948 0.052
#> SRR1070286 3 0.2796 0.7683 0.092 0.000 0.908
#> SRR1344185 2 0.5216 0.7113 0.000 0.740 0.260
#> SRR1084228 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1101907 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1079686 2 0.3267 0.8050 0.000 0.884 0.116
#> SRR1089761 2 0.5216 0.7113 0.000 0.740 0.260
#> SRR811403 2 0.1860 0.8322 0.000 0.948 0.052
#> SRR1440560 2 0.4002 0.7390 0.000 0.840 0.160
#> SRR1079706 3 0.5882 0.3456 0.000 0.348 0.652
#> SRR1459101 3 0.6225 -0.0277 0.000 0.432 0.568
#> SRR1335089 3 0.2537 0.7958 0.000 0.080 0.920
#> SRR1337840 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR808682 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1443224 2 0.2066 0.8281 0.000 0.940 0.060
#> SRR1439831 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1087463 3 0.2959 0.7816 0.000 0.100 0.900
#> SRR1457949 2 0.5216 0.7113 0.000 0.740 0.260
#> SRR1455969 2 0.5254 0.7065 0.000 0.736 0.264
#> SRR1415529 3 0.0000 0.8071 0.000 0.000 1.000
#> SRR1330018 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1370597 2 0.6225 0.4009 0.000 0.568 0.432
#> SRR1385524 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1351605 3 0.5058 0.6410 0.244 0.000 0.756
#> SRR1460148 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1354159 2 0.4291 0.7150 0.000 0.820 0.180
#> SRR1318390 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1073095 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1076892 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1340989 3 0.4702 0.6879 0.000 0.212 0.788
#> SRR1481375 2 0.5216 0.7113 0.000 0.740 0.260
#> SRR1079356 3 0.4249 0.7848 0.028 0.108 0.864
#> SRR1455545 3 0.5706 0.5418 0.320 0.000 0.680
#> SRR1406157 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1445920 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1420259 2 0.5138 0.7175 0.000 0.748 0.252
#> SRR1376963 2 0.2448 0.8180 0.000 0.924 0.076
#> SRR1101061 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1414496 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1334791 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1072129 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1330450 3 0.3412 0.7573 0.000 0.124 0.876
#> SRR1409108 2 0.1860 0.8322 0.000 0.948 0.052
#> SRR1416865 3 0.2537 0.7956 0.000 0.080 0.920
#> SRR1071832 3 0.0000 0.8071 0.000 0.000 1.000
#> SRR1093814 2 0.2165 0.8258 0.000 0.936 0.064
#> SRR1381821 3 0.1643 0.8083 0.000 0.044 0.956
#> SRR811675 3 0.3670 0.7790 0.092 0.020 0.888
#> SRR1082423 1 0.0237 0.9559 0.996 0.000 0.004
#> SRR1417296 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR815944 2 0.5785 0.4730 0.000 0.668 0.332
#> SRR1332775 2 0.5178 0.7148 0.000 0.744 0.256
#> SRR1079143 3 0.3879 0.7256 0.000 0.152 0.848
#> SRR1476807 1 0.6079 0.3365 0.612 0.000 0.388
#> SRR1456634 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1083171 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1083337 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1377672 3 0.5905 0.4702 0.000 0.352 0.648
#> SRR1435816 2 0.5948 0.5559 0.000 0.640 0.360
#> SRR1080580 3 0.0000 0.8071 0.000 0.000 1.000
#> SRR1366672 2 0.5216 0.7113 0.000 0.740 0.260
#> SRR1075150 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR814137 3 0.1031 0.8024 0.024 0.000 0.976
#> SRR1475062 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1340028 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1070789 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1097728 2 0.5254 0.7065 0.000 0.736 0.264
#> SRR1447172 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1472486 2 0.5216 0.7113 0.000 0.740 0.260
#> SRR1377881 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1420912 3 0.2066 0.8064 0.000 0.060 0.940
#> SRR1313747 2 0.1860 0.8322 0.000 0.948 0.052
#> SRR1414447 2 0.5138 0.6163 0.000 0.748 0.252
#> SRR1358238 3 0.5706 0.5418 0.320 0.000 0.680
#> SRR1322115 3 0.5706 0.5418 0.320 0.000 0.680
#> SRR1330474 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1093124 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1456354 3 0.5706 0.5418 0.320 0.000 0.680
#> SRR820859 3 0.0000 0.8071 0.000 0.000 1.000
#> SRR1401860 3 0.0000 0.8071 0.000 0.000 1.000
#> SRR1095599 2 0.5216 0.7113 0.000 0.740 0.260
#> SRR1417130 1 0.0000 0.9593 1.000 0.000 0.000
#> SRR1362597 2 0.0000 0.8528 0.000 1.000 0.000
#> SRR1328464 2 0.5254 0.7065 0.000 0.736 0.264
#> SRR1323957 1 0.0000 0.9593 1.000 0.000 0.000
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.0000 0.96509 1.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.96509 1.000 0.000 0.000 0.000
#> SRR1380523 2 0.3219 0.87312 0.000 0.836 0.164 0.000
#> SRR1089106 4 0.0592 0.82401 0.016 0.000 0.000 0.984
#> SRR1401403 1 0.3080 0.84021 0.880 0.000 0.024 0.096
#> SRR1080534 4 0.3037 0.80680 0.000 0.020 0.100 0.880
#> SRR1487638 2 0.3219 0.87312 0.000 0.836 0.164 0.000
#> SRR1320650 2 0.4996 0.17917 0.000 0.516 0.484 0.000
#> SRR1073045 3 0.2760 0.87770 0.000 0.128 0.872 0.000
#> SRR1397030 3 0.3942 0.72127 0.000 0.236 0.764 0.000
#> SRR1439976 4 0.1211 0.81913 0.040 0.000 0.000 0.960
#> SRR1454050 2 0.2921 0.87048 0.000 0.860 0.140 0.000
#> SRR1070286 4 0.1297 0.82525 0.000 0.016 0.020 0.964
#> SRR1344185 3 0.2760 0.87770 0.000 0.128 0.872 0.000
#> SRR1084228 2 0.3266 0.87198 0.000 0.832 0.168 0.000
#> SRR1101907 2 0.4040 0.79034 0.000 0.752 0.248 0.000
#> SRR1079686 3 0.4164 0.66987 0.000 0.264 0.736 0.000
#> SRR1089761 3 0.2760 0.87770 0.000 0.128 0.872 0.000
#> SRR811403 2 0.1706 0.81252 0.000 0.948 0.036 0.016
#> SRR1440560 2 0.1706 0.81252 0.000 0.948 0.036 0.016
#> SRR1079706 3 0.4164 0.39207 0.000 0.000 0.736 0.264
#> SRR1459101 4 0.6690 0.49127 0.000 0.144 0.248 0.608
#> SRR1335089 4 0.4284 0.77581 0.000 0.012 0.224 0.764
#> SRR1337840 1 0.0188 0.96518 0.996 0.000 0.000 0.004
#> SRR808682 2 0.3219 0.87312 0.000 0.836 0.164 0.000
#> SRR1443224 2 0.1706 0.81252 0.000 0.948 0.036 0.016
#> SRR1439831 1 0.0188 0.96518 0.996 0.000 0.000 0.004
#> SRR1087463 4 0.4716 0.77026 0.000 0.040 0.196 0.764
#> SRR1457949 3 0.0921 0.84274 0.000 0.028 0.972 0.000
#> SRR1455969 3 0.3052 0.87313 0.000 0.136 0.860 0.004
#> SRR1415529 4 0.0000 0.82432 0.000 0.000 0.000 1.000
#> SRR1330018 2 0.3266 0.87139 0.000 0.832 0.168 0.000
#> SRR1370597 3 0.2412 0.73154 0.000 0.008 0.908 0.084
#> SRR1385524 2 0.3311 0.86859 0.000 0.828 0.172 0.000
#> SRR1351605 4 0.0921 0.82223 0.028 0.000 0.000 0.972
#> SRR1460148 1 0.0000 0.96509 1.000 0.000 0.000 0.000
#> SRR1354159 2 0.3245 0.74709 0.000 0.872 0.100 0.028
#> SRR1318390 2 0.3219 0.87312 0.000 0.836 0.164 0.000
#> SRR1073095 2 0.2760 0.86633 0.000 0.872 0.128 0.000
#> SRR1410612 2 0.2760 0.86633 0.000 0.872 0.128 0.000
#> SRR1076892 1 0.0000 0.96509 1.000 0.000 0.000 0.000
#> SRR1340989 4 0.5710 0.71782 0.000 0.192 0.100 0.708
#> SRR1481375 3 0.2760 0.87770 0.000 0.128 0.872 0.000
#> SRR1079356 4 0.4253 0.77595 0.000 0.016 0.208 0.776
#> SRR1455545 4 0.2081 0.80022 0.084 0.000 0.000 0.916
#> SRR1406157 1 0.0188 0.96518 0.996 0.000 0.000 0.004
#> SRR1445920 2 0.2760 0.86633 0.000 0.872 0.128 0.000
#> SRR1420259 3 0.2760 0.87770 0.000 0.128 0.872 0.000
#> SRR1376963 2 0.1706 0.81252 0.000 0.948 0.036 0.016
#> SRR1101061 1 0.0000 0.96509 1.000 0.000 0.000 0.000
#> SRR1414496 2 0.2760 0.86633 0.000 0.872 0.128 0.000
#> SRR1334791 1 0.0000 0.96509 1.000 0.000 0.000 0.000
#> SRR1072129 2 0.2760 0.86633 0.000 0.872 0.128 0.000
#> SRR1330450 4 0.5710 0.71782 0.000 0.192 0.100 0.708
#> SRR1409108 2 0.1706 0.81252 0.000 0.948 0.036 0.016
#> SRR1416865 4 0.4122 0.77413 0.000 0.004 0.236 0.760
#> SRR1071832 4 0.0000 0.82432 0.000 0.000 0.000 1.000
#> SRR1093814 2 0.1706 0.81252 0.000 0.948 0.036 0.016
#> SRR1381821 4 0.3873 0.77875 0.000 0.000 0.228 0.772
#> SRR811675 4 0.4277 0.71304 0.000 0.000 0.280 0.720
#> SRR1082423 1 0.0188 0.96335 0.996 0.000 0.004 0.000
#> SRR1417296 2 0.3219 0.87312 0.000 0.836 0.164 0.000
#> SRR815944 4 0.7379 0.42788 0.000 0.364 0.168 0.468
#> SRR1332775 3 0.1109 0.83871 0.000 0.028 0.968 0.004
#> SRR1079143 4 0.6352 0.69655 0.000 0.188 0.156 0.656
#> SRR1476807 1 0.4998 0.00702 0.512 0.000 0.000 0.488
#> SRR1456634 1 0.0188 0.96518 0.996 0.000 0.000 0.004
#> SRR1083171 2 0.3219 0.87312 0.000 0.836 0.164 0.000
#> SRR1083337 1 0.0000 0.96509 1.000 0.000 0.000 0.000
#> SRR1377672 4 0.6750 0.50156 0.000 0.356 0.104 0.540
#> SRR1435816 3 0.1389 0.77243 0.000 0.000 0.952 0.048
#> SRR1080580 4 0.1059 0.82477 0.000 0.016 0.012 0.972
#> SRR1366672 3 0.3052 0.87313 0.000 0.136 0.860 0.004
#> SRR1075150 2 0.4967 0.30682 0.000 0.548 0.452 0.000
#> SRR814137 4 0.0592 0.82401 0.016 0.000 0.000 0.984
#> SRR1475062 1 0.0000 0.96509 1.000 0.000 0.000 0.000
#> SRR1340028 1 0.0188 0.96518 0.996 0.000 0.000 0.004
#> SRR1070789 2 0.3219 0.87312 0.000 0.836 0.164 0.000
#> SRR1097728 3 0.2197 0.86317 0.000 0.080 0.916 0.004
#> SRR1447172 2 0.2760 0.86633 0.000 0.872 0.128 0.000
#> SRR1472486 3 0.2760 0.87770 0.000 0.128 0.872 0.000
#> SRR1377881 1 0.0000 0.96509 1.000 0.000 0.000 0.000
#> SRR1420912 4 0.5820 0.71340 0.000 0.192 0.108 0.700
#> SRR1313747 2 0.1706 0.81252 0.000 0.948 0.036 0.016
#> SRR1414447 2 0.6267 0.43356 0.000 0.664 0.148 0.188
#> SRR1358238 4 0.2814 0.77054 0.132 0.000 0.000 0.868
#> SRR1322115 4 0.3876 0.76872 0.124 0.000 0.040 0.836
#> SRR1330474 1 0.0188 0.96518 0.996 0.000 0.000 0.004
#> SRR1093124 1 0.0188 0.96518 0.996 0.000 0.000 0.004
#> SRR1456354 4 0.2216 0.79912 0.092 0.000 0.000 0.908
#> SRR820859 4 0.0592 0.82385 0.000 0.016 0.000 0.984
#> SRR1401860 4 0.3166 0.78533 0.000 0.016 0.116 0.868
#> SRR1095599 3 0.1211 0.84972 0.000 0.040 0.960 0.000
#> SRR1417130 1 0.0188 0.96518 0.996 0.000 0.000 0.004
#> SRR1362597 2 0.3219 0.87312 0.000 0.836 0.164 0.000
#> SRR1328464 3 0.3052 0.87313 0.000 0.136 0.860 0.004
#> SRR1323957 1 0.0188 0.96518 0.996 0.000 0.000 0.004
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.0000 0.96278 1.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.96278 1.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.1018 0.78992 0.000 0.968 0.016 0.000 0.016
#> SRR1089106 4 0.0404 0.54635 0.000 0.000 0.000 0.988 0.012
#> SRR1401403 1 0.3182 0.87070 0.844 0.000 0.000 0.032 0.124
#> SRR1080534 4 0.4874 -0.18689 0.000 0.000 0.032 0.600 0.368
#> SRR1487638 2 0.1012 0.78963 0.000 0.968 0.020 0.000 0.012
#> SRR1320650 2 0.4891 0.40477 0.000 0.640 0.316 0.000 0.044
#> SRR1073045 3 0.2074 0.74837 0.000 0.036 0.920 0.000 0.044
#> SRR1397030 3 0.2707 0.71924 0.000 0.100 0.876 0.000 0.024
#> SRR1439976 4 0.2127 0.52412 0.000 0.000 0.000 0.892 0.108
#> SRR1454050 2 0.4748 0.60901 0.000 0.660 0.300 0.000 0.040
#> SRR1070286 4 0.1478 0.52554 0.000 0.000 0.000 0.936 0.064
#> SRR1344185 3 0.2478 0.74346 0.000 0.028 0.904 0.008 0.060
#> SRR1084228 2 0.1915 0.78633 0.000 0.928 0.032 0.000 0.040
#> SRR1101907 2 0.5112 0.28922 0.000 0.496 0.468 0.000 0.036
#> SRR1079686 3 0.3368 0.65240 0.000 0.156 0.820 0.000 0.024
#> SRR1089761 3 0.2074 0.74837 0.000 0.036 0.920 0.000 0.044
#> SRR811403 2 0.2438 0.77765 0.000 0.900 0.040 0.000 0.060
#> SRR1440560 2 0.5759 0.55465 0.000 0.568 0.324 0.000 0.108
#> SRR1079706 3 0.5935 0.23859 0.000 0.008 0.516 0.084 0.392
#> SRR1459101 3 0.7366 -0.35280 0.000 0.028 0.364 0.348 0.260
#> SRR1335089 5 0.5410 0.86989 0.000 0.008 0.056 0.332 0.604
#> SRR1337840 1 0.0290 0.96213 0.992 0.000 0.000 0.008 0.000
#> SRR808682 2 0.1997 0.78695 0.000 0.924 0.036 0.000 0.040
#> SRR1443224 2 0.5268 0.59991 0.000 0.612 0.320 0.000 0.068
#> SRR1439831 1 0.0000 0.96278 1.000 0.000 0.000 0.000 0.000
#> SRR1087463 5 0.5294 0.87166 0.000 0.004 0.056 0.332 0.608
#> SRR1457949 3 0.4283 0.55604 0.000 0.012 0.692 0.004 0.292
#> SRR1455969 3 0.2616 0.74079 0.000 0.036 0.888 0.000 0.076
#> SRR1415529 4 0.1965 0.52293 0.000 0.000 0.000 0.904 0.096
#> SRR1330018 2 0.1608 0.76943 0.000 0.928 0.072 0.000 0.000
#> SRR1370597 3 0.4801 0.41431 0.000 0.008 0.584 0.012 0.396
#> SRR1385524 2 0.4957 0.56482 0.000 0.624 0.332 0.000 0.044
#> SRR1351605 4 0.1478 0.54636 0.000 0.000 0.000 0.936 0.064
#> SRR1460148 1 0.0000 0.96278 1.000 0.000 0.000 0.000 0.000
#> SRR1354159 2 0.6080 0.50373 0.000 0.528 0.332 0.000 0.140
#> SRR1318390 2 0.4161 0.69870 0.000 0.752 0.208 0.000 0.040
#> SRR1073095 2 0.1205 0.77944 0.000 0.956 0.004 0.000 0.040
#> SRR1410612 2 0.1205 0.77944 0.000 0.956 0.004 0.000 0.040
#> SRR1076892 1 0.0000 0.96278 1.000 0.000 0.000 0.000 0.000
#> SRR1340989 4 0.7094 -0.13280 0.000 0.016 0.356 0.392 0.236
#> SRR1481375 3 0.2074 0.74837 0.000 0.036 0.920 0.000 0.044
#> SRR1079356 5 0.4891 0.67331 0.000 0.004 0.016 0.480 0.500
#> SRR1455545 4 0.2286 0.52341 0.004 0.000 0.000 0.888 0.108
#> SRR1406157 1 0.0290 0.96213 0.992 0.000 0.000 0.008 0.000
#> SRR1445920 2 0.1444 0.78093 0.000 0.948 0.012 0.000 0.040
#> SRR1420259 3 0.2189 0.74137 0.000 0.084 0.904 0.000 0.012
#> SRR1376963 2 0.4490 0.69845 0.000 0.724 0.224 0.000 0.052
#> SRR1101061 1 0.0000 0.96278 1.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.1205 0.77944 0.000 0.956 0.004 0.000 0.040
#> SRR1334791 1 0.0000 0.96278 1.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.1205 0.77944 0.000 0.956 0.004 0.000 0.040
#> SRR1330450 4 0.6822 -0.18137 0.000 0.004 0.296 0.432 0.268
#> SRR1409108 2 0.1830 0.77160 0.000 0.932 0.040 0.000 0.028
#> SRR1416865 5 0.5216 0.87333 0.000 0.004 0.048 0.344 0.604
#> SRR1071832 4 0.1965 0.52293 0.000 0.000 0.000 0.904 0.096
#> SRR1093814 2 0.5268 0.59991 0.000 0.612 0.320 0.000 0.068
#> SRR1381821 5 0.5606 0.81502 0.000 0.004 0.068 0.380 0.548
#> SRR811675 4 0.5215 -0.22279 0.000 0.000 0.052 0.576 0.372
#> SRR1082423 1 0.2669 0.89668 0.876 0.000 0.000 0.020 0.104
#> SRR1417296 2 0.0609 0.78837 0.000 0.980 0.020 0.000 0.000
#> SRR815944 3 0.8139 -0.24883 0.000 0.120 0.364 0.312 0.204
#> SRR1332775 3 0.3696 0.67302 0.000 0.016 0.772 0.000 0.212
#> SRR1079143 5 0.5885 0.79575 0.000 0.012 0.080 0.348 0.560
#> SRR1476807 1 0.4713 0.55373 0.676 0.000 0.000 0.280 0.044
#> SRR1456634 1 0.0000 0.96278 1.000 0.000 0.000 0.000 0.000
#> SRR1083171 2 0.4748 0.60901 0.000 0.660 0.300 0.000 0.040
#> SRR1083337 1 0.0000 0.96278 1.000 0.000 0.000 0.000 0.000
#> SRR1377672 4 0.7883 -0.10807 0.000 0.088 0.356 0.360 0.196
#> SRR1435816 3 0.4841 0.40622 0.000 0.008 0.600 0.016 0.376
#> SRR1080580 4 0.5141 0.31198 0.000 0.000 0.092 0.672 0.236
#> SRR1366672 3 0.2221 0.74475 0.000 0.036 0.912 0.000 0.052
#> SRR1075150 3 0.5036 0.00692 0.000 0.404 0.560 0.000 0.036
#> SRR814137 4 0.1270 0.54249 0.000 0.000 0.000 0.948 0.052
#> SRR1475062 1 0.1671 0.92527 0.924 0.000 0.000 0.000 0.076
#> SRR1340028 1 0.0290 0.96213 0.992 0.000 0.000 0.008 0.000
#> SRR1070789 2 0.0798 0.78771 0.000 0.976 0.016 0.000 0.008
#> SRR1097728 3 0.2734 0.74314 0.000 0.028 0.888 0.008 0.076
#> SRR1447172 2 0.1205 0.77944 0.000 0.956 0.004 0.000 0.040
#> SRR1472486 3 0.2074 0.74837 0.000 0.036 0.920 0.000 0.044
#> SRR1377881 1 0.1671 0.92527 0.924 0.000 0.000 0.000 0.076
#> SRR1420912 4 0.6338 0.18190 0.000 0.004 0.172 0.532 0.292
#> SRR1313747 2 0.1579 0.77656 0.000 0.944 0.032 0.000 0.024
#> SRR1414447 2 0.7707 0.19690 0.000 0.380 0.368 0.080 0.172
#> SRR1358238 4 0.2574 0.52120 0.012 0.000 0.000 0.876 0.112
#> SRR1322115 4 0.7043 0.12698 0.260 0.000 0.044 0.520 0.176
#> SRR1330474 1 0.0404 0.96003 0.988 0.000 0.000 0.012 0.000
#> SRR1093124 1 0.0290 0.96213 0.992 0.000 0.000 0.008 0.000
#> SRR1456354 4 0.1082 0.54589 0.008 0.000 0.000 0.964 0.028
#> SRR820859 4 0.3016 0.45593 0.000 0.000 0.020 0.848 0.132
#> SRR1401860 4 0.5442 0.31025 0.000 0.000 0.116 0.644 0.240
#> SRR1095599 3 0.3239 0.69736 0.000 0.012 0.828 0.004 0.156
#> SRR1417130 1 0.0290 0.96213 0.992 0.000 0.000 0.008 0.000
#> SRR1362597 2 0.1018 0.78992 0.000 0.968 0.016 0.000 0.016
#> SRR1328464 3 0.2616 0.74079 0.000 0.036 0.888 0.000 0.076
#> SRR1323957 1 0.0290 0.96213 0.992 0.000 0.000 0.008 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.0000 0.9755 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1093410 1 0.0000 0.9755 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1380523 2 0.1863 0.8259 0.000 0.896 0.000 0.000 0.000 0.104
#> SRR1089106 4 0.4250 0.2343 0.000 0.000 0.016 0.528 0.456 0.000
#> SRR1401403 1 0.1382 0.9379 0.948 0.000 0.008 0.036 0.008 0.000
#> SRR1080534 5 0.4372 0.4367 0.000 0.000 0.184 0.080 0.728 0.008
#> SRR1487638 2 0.2048 0.8225 0.000 0.880 0.000 0.000 0.000 0.120
#> SRR1320650 2 0.4857 0.3407 0.000 0.532 0.060 0.000 0.000 0.408
#> SRR1073045 6 0.3852 0.3963 0.000 0.000 0.384 0.000 0.004 0.612
#> SRR1397030 6 0.2837 0.5307 0.000 0.056 0.088 0.000 0.000 0.856
#> SRR1439976 4 0.1556 0.6817 0.000 0.000 0.000 0.920 0.080 0.000
#> SRR1454050 6 0.3126 0.4494 0.000 0.248 0.000 0.000 0.000 0.752
#> SRR1070286 5 0.4326 -0.0382 0.000 0.000 0.024 0.404 0.572 0.000
#> SRR1344185 6 0.3915 0.3512 0.000 0.000 0.412 0.000 0.004 0.584
#> SRR1084228 2 0.4473 0.4334 0.000 0.584 0.036 0.000 0.000 0.380
#> SRR1101907 6 0.3518 0.4645 0.000 0.256 0.012 0.000 0.000 0.732
#> SRR1079686 6 0.2350 0.5278 0.000 0.036 0.076 0.000 0.000 0.888
#> SRR1089761 6 0.3817 0.3195 0.000 0.000 0.432 0.000 0.000 0.568
#> SRR811403 2 0.4893 0.4170 0.000 0.536 0.000 0.000 0.064 0.400
#> SRR1440560 6 0.4958 0.4227 0.000 0.224 0.008 0.000 0.108 0.660
#> SRR1079706 3 0.3536 0.5813 0.000 0.000 0.804 0.004 0.060 0.132
#> SRR1459101 6 0.6087 -0.2586 0.000 0.000 0.352 0.000 0.276 0.372
#> SRR1335089 3 0.3126 0.5605 0.000 0.000 0.752 0.000 0.248 0.000
#> SRR1337840 1 0.0146 0.9737 0.996 0.000 0.000 0.004 0.000 0.000
#> SRR808682 2 0.3515 0.6306 0.000 0.676 0.000 0.000 0.000 0.324
#> SRR1443224 6 0.4727 0.4106 0.000 0.240 0.000 0.000 0.100 0.660
#> SRR1439831 1 0.0000 0.9755 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1087463 3 0.3743 0.5576 0.000 0.000 0.724 0.000 0.252 0.024
#> SRR1457949 3 0.4155 0.1245 0.000 0.000 0.616 0.000 0.020 0.364
#> SRR1455969 6 0.3955 0.4069 0.000 0.000 0.340 0.008 0.004 0.648
#> SRR1415529 5 0.3403 0.3411 0.000 0.000 0.020 0.212 0.768 0.000
#> SRR1330018 2 0.1714 0.8390 0.000 0.908 0.000 0.000 0.000 0.092
#> SRR1370597 3 0.3487 0.5130 0.000 0.000 0.756 0.000 0.020 0.224
#> SRR1385524 6 0.4067 0.4496 0.000 0.260 0.040 0.000 0.000 0.700
#> SRR1351605 4 0.3843 0.3182 0.000 0.000 0.000 0.548 0.452 0.000
#> SRR1460148 1 0.0000 0.9755 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1354159 6 0.5465 0.4373 0.000 0.208 0.040 0.000 0.108 0.644
#> SRR1318390 6 0.3789 0.0903 0.000 0.416 0.000 0.000 0.000 0.584
#> SRR1073095 2 0.0000 0.8463 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.8463 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1076892 1 0.0000 0.9755 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1340989 5 0.6544 -0.2957 0.000 0.004 0.332 0.024 0.424 0.216
#> SRR1481375 6 0.3852 0.3963 0.000 0.000 0.384 0.000 0.004 0.612
#> SRR1079356 5 0.5549 0.2556 0.000 0.000 0.376 0.140 0.484 0.000
#> SRR1455545 4 0.0632 0.6899 0.000 0.000 0.000 0.976 0.024 0.000
#> SRR1406157 1 0.0000 0.9755 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1445920 2 0.0000 0.8463 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1420259 6 0.3835 0.4365 0.000 0.012 0.320 0.000 0.000 0.668
#> SRR1376963 6 0.5056 0.2534 0.000 0.312 0.000 0.000 0.100 0.588
#> SRR1101061 1 0.0000 0.9755 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1414496 2 0.0260 0.8446 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1334791 1 0.0000 0.9755 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1072129 2 0.0146 0.8474 0.000 0.996 0.000 0.000 0.000 0.004
#> SRR1330450 5 0.5364 -0.0164 0.000 0.000 0.364 0.016 0.544 0.076
#> SRR1409108 2 0.3063 0.8027 0.000 0.840 0.000 0.000 0.068 0.092
#> SRR1416865 3 0.3136 0.5514 0.000 0.000 0.768 0.000 0.228 0.004
#> SRR1071832 5 0.3432 0.3373 0.000 0.000 0.020 0.216 0.764 0.000
#> SRR1093814 6 0.4727 0.4106 0.000 0.240 0.000 0.000 0.100 0.660
#> SRR1381821 3 0.4444 0.2799 0.000 0.000 0.612 0.024 0.356 0.008
#> SRR811675 5 0.5922 0.2756 0.000 0.000 0.228 0.184 0.564 0.024
#> SRR1082423 1 0.1194 0.9486 0.956 0.000 0.004 0.032 0.008 0.000
#> SRR1417296 2 0.0865 0.8484 0.000 0.964 0.000 0.000 0.000 0.036
#> SRR815944 3 0.6776 0.1607 0.000 0.040 0.380 0.000 0.300 0.280
#> SRR1332775 6 0.4234 0.2278 0.000 0.000 0.440 0.000 0.016 0.544
#> SRR1079143 3 0.3508 0.5228 0.000 0.000 0.704 0.000 0.292 0.004
#> SRR1476807 1 0.3547 0.5122 0.668 0.000 0.000 0.332 0.000 0.000
#> SRR1456634 1 0.0000 0.9755 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1083171 6 0.3126 0.4494 0.000 0.248 0.000 0.000 0.000 0.752
#> SRR1083337 1 0.0000 0.9755 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1377672 5 0.7241 -0.3003 0.000 0.044 0.328 0.024 0.376 0.228
#> SRR1435816 3 0.2783 0.5669 0.000 0.000 0.836 0.000 0.016 0.148
#> SRR1080580 5 0.5165 0.4299 0.000 0.000 0.180 0.092 0.684 0.044
#> SRR1366672 6 0.3774 0.4199 0.000 0.008 0.328 0.000 0.000 0.664
#> SRR1075150 6 0.3861 0.5375 0.000 0.184 0.060 0.000 0.000 0.756
#> SRR814137 5 0.3782 0.0361 0.000 0.000 0.004 0.360 0.636 0.000
#> SRR1475062 1 0.0748 0.9620 0.976 0.000 0.004 0.016 0.004 0.000
#> SRR1340028 1 0.0000 0.9755 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1070789 2 0.0632 0.8490 0.000 0.976 0.000 0.000 0.000 0.024
#> SRR1097728 6 0.4378 0.3198 0.000 0.008 0.388 0.000 0.016 0.588
#> SRR1447172 2 0.0260 0.8446 0.000 0.992 0.000 0.000 0.000 0.008
#> SRR1472486 6 0.3852 0.3963 0.000 0.000 0.384 0.000 0.004 0.612
#> SRR1377881 1 0.0603 0.9645 0.980 0.000 0.004 0.016 0.000 0.000
#> SRR1420912 5 0.3136 0.2604 0.000 0.000 0.004 0.228 0.768 0.000
#> SRR1313747 2 0.3063 0.8027 0.000 0.840 0.000 0.000 0.068 0.092
#> SRR1414447 6 0.7652 0.2722 0.000 0.176 0.260 0.008 0.180 0.376
#> SRR1358238 4 0.0632 0.6899 0.000 0.000 0.000 0.976 0.024 0.000
#> SRR1322115 4 0.5616 0.5022 0.124 0.000 0.024 0.664 0.164 0.024
#> SRR1330474 1 0.0405 0.9696 0.988 0.000 0.000 0.008 0.004 0.000
#> SRR1093124 1 0.0000 0.9755 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1456354 4 0.2692 0.6569 0.000 0.000 0.012 0.840 0.148 0.000
#> SRR820859 5 0.3630 0.3867 0.000 0.000 0.040 0.176 0.780 0.004
#> SRR1401860 5 0.5544 0.4120 0.000 0.000 0.172 0.112 0.656 0.060
#> SRR1095599 6 0.4566 0.1478 0.000 0.008 0.484 0.000 0.020 0.488
#> SRR1417130 1 0.0000 0.9755 1.000 0.000 0.000 0.000 0.000 0.000
#> SRR1362597 2 0.1663 0.8291 0.000 0.912 0.000 0.000 0.000 0.088
#> SRR1328464 6 0.3955 0.4069 0.000 0.000 0.340 0.008 0.004 0.648
#> SRR1323957 1 0.0146 0.9737 0.996 0.000 0.000 0.004 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", "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 17633 rows and 97 columns.
#> Top rows (1000, 2000, 3000, 4000, 5000) are extracted by 'ATC' method.
#> Subgroups are detected by 'NMF' method.
#> Performed in total 1250 partitions by row resampling.
#> Best k for subgroups seems to be 2.
#>
#> Following methods can be applied to this 'ConsensusPartition' object:
#> [1] "cola_report" "collect_classes" "collect_plots"
#> [4] "collect_stats" "colnames" "compare_signatures"
#> [7] "consensus_heatmap" "dimension_reduction" "functional_enrichment"
#> [10] "get_anno_col" "get_anno" "get_classes"
#> [13] "get_consensus" "get_matrix" "get_membership"
#> [16] "get_param" "get_signatures" "get_stats"
#> [19] "is_best_k" "is_stable_k" "membership_heatmap"
#> [22] "ncol" "nrow" "plot_ecdf"
#> [25] "rownames" "select_partition_number" "show"
#> [28] "suggest_best_k" "test_to_known_factors"
collect_plots()
function collects all the plots made from res
for all k
(number of partitions)
into one single page to provide an easy and fast comparison between different k
.
collect_plots(res)
The plots are:
k
and the heatmap of
predicted classes for each k
.k
.k
.k
.All the plots in panels can be made by individual functions and they are plotted later in this section.
select_partition_number()
produces several plots showing different
statistics for choosing “optimized” k
. There are following statistics:
k
;k
, the area increased is defined as \(A_k - A_{k-1}\).The detailed explanations of these statistics can be found in the cola vignette.
Generally speaking, lower PAC score, higher mean silhouette score or higher
concordance corresponds to better partition. Rand index and Jaccard index
measure how similar the current partition is compared to partition with k-1
.
If they are too similar, we won't accept k
is better than k-1
.
select_partition_number(res)
The numeric values for all these statistics can be obtained by get_stats()
.
get_stats(res)
#> k 1-PAC mean_silhouette concordance area_increased Rand Jaccard
#> 2 2 0.936 0.941 0.976 0.4874 0.510 0.510
#> 3 3 0.615 0.759 0.851 0.3354 0.725 0.510
#> 4 4 0.642 0.579 0.763 0.1080 0.779 0.485
#> 5 5 0.647 0.579 0.775 0.0480 0.862 0.594
#> 6 6 0.630 0.496 0.720 0.0355 0.916 0.695
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
#> SRR1397242 1 0.0000 0.9807 1.000 0.000
#> SRR1093410 1 0.0000 0.9807 1.000 0.000
#> SRR1380523 2 0.0000 0.9647 0.000 1.000
#> SRR1089106 1 0.0000 0.9807 1.000 0.000
#> SRR1401403 1 0.0000 0.9807 1.000 0.000
#> SRR1080534 1 0.0000 0.9807 1.000 0.000
#> SRR1487638 2 0.0000 0.9647 0.000 1.000
#> SRR1320650 2 0.0000 0.9647 0.000 1.000
#> SRR1073045 2 0.0000 0.9647 0.000 1.000
#> SRR1397030 2 0.0000 0.9647 0.000 1.000
#> SRR1439976 1 0.0000 0.9807 1.000 0.000
#> SRR1454050 2 0.0000 0.9647 0.000 1.000
#> SRR1070286 1 0.0000 0.9807 1.000 0.000
#> SRR1344185 1 0.8144 0.6567 0.748 0.252
#> SRR1084228 2 0.0000 0.9647 0.000 1.000
#> SRR1101907 2 0.0672 0.9589 0.008 0.992
#> SRR1079686 2 0.0000 0.9647 0.000 1.000
#> SRR1089761 1 0.0938 0.9701 0.988 0.012
#> SRR811403 2 0.0000 0.9647 0.000 1.000
#> SRR1440560 2 0.8499 0.6257 0.276 0.724
#> SRR1079706 1 0.0000 0.9807 1.000 0.000
#> SRR1459101 1 0.0000 0.9807 1.000 0.000
#> SRR1335089 1 0.0000 0.9807 1.000 0.000
#> SRR1337840 1 0.0000 0.9807 1.000 0.000
#> SRR808682 2 0.0000 0.9647 0.000 1.000
#> SRR1443224 2 0.0000 0.9647 0.000 1.000
#> SRR1439831 1 0.0000 0.9807 1.000 0.000
#> SRR1087463 1 0.0000 0.9807 1.000 0.000
#> SRR1457949 2 0.0938 0.9557 0.012 0.988
#> SRR1455969 1 0.9460 0.4146 0.636 0.364
#> SRR1415529 1 0.0000 0.9807 1.000 0.000
#> SRR1330018 2 0.0000 0.9647 0.000 1.000
#> SRR1370597 1 0.5842 0.8273 0.860 0.140
#> SRR1385524 2 0.0000 0.9647 0.000 1.000
#> SRR1351605 1 0.0000 0.9807 1.000 0.000
#> SRR1460148 1 0.0000 0.9807 1.000 0.000
#> SRR1354159 2 0.8144 0.6663 0.252 0.748
#> SRR1318390 2 0.0000 0.9647 0.000 1.000
#> SRR1073095 2 0.0000 0.9647 0.000 1.000
#> SRR1410612 2 0.0000 0.9647 0.000 1.000
#> SRR1076892 1 0.0000 0.9807 1.000 0.000
#> SRR1340989 1 0.0000 0.9807 1.000 0.000
#> SRR1481375 2 0.0000 0.9647 0.000 1.000
#> SRR1079356 1 0.0000 0.9807 1.000 0.000
#> SRR1455545 1 0.0000 0.9807 1.000 0.000
#> SRR1406157 1 0.0000 0.9807 1.000 0.000
#> SRR1445920 2 0.0000 0.9647 0.000 1.000
#> SRR1420259 2 0.0000 0.9647 0.000 1.000
#> SRR1376963 2 0.0000 0.9647 0.000 1.000
#> SRR1101061 1 0.0000 0.9807 1.000 0.000
#> SRR1414496 2 0.0000 0.9647 0.000 1.000
#> SRR1334791 1 0.0000 0.9807 1.000 0.000
#> SRR1072129 2 0.0000 0.9647 0.000 1.000
#> SRR1330450 1 0.0000 0.9807 1.000 0.000
#> SRR1409108 2 0.0000 0.9647 0.000 1.000
#> SRR1416865 1 0.0000 0.9807 1.000 0.000
#> SRR1071832 1 0.0000 0.9807 1.000 0.000
#> SRR1093814 2 0.0000 0.9647 0.000 1.000
#> SRR1381821 1 0.0000 0.9807 1.000 0.000
#> SRR811675 1 0.0000 0.9807 1.000 0.000
#> SRR1082423 1 0.0000 0.9807 1.000 0.000
#> SRR1417296 2 0.0000 0.9647 0.000 1.000
#> SRR815944 1 0.0000 0.9807 1.000 0.000
#> SRR1332775 2 0.0000 0.9647 0.000 1.000
#> SRR1079143 1 0.0000 0.9807 1.000 0.000
#> SRR1476807 1 0.0000 0.9807 1.000 0.000
#> SRR1456634 1 0.0000 0.9807 1.000 0.000
#> SRR1083171 2 0.0000 0.9647 0.000 1.000
#> SRR1083337 1 0.0000 0.9807 1.000 0.000
#> SRR1377672 1 0.0000 0.9807 1.000 0.000
#> SRR1435816 1 0.1414 0.9625 0.980 0.020
#> SRR1080580 1 0.0000 0.9807 1.000 0.000
#> SRR1366672 2 0.0938 0.9557 0.012 0.988
#> SRR1075150 2 0.0000 0.9647 0.000 1.000
#> SRR814137 1 0.0000 0.9807 1.000 0.000
#> SRR1475062 1 0.0000 0.9807 1.000 0.000
#> SRR1340028 1 0.0000 0.9807 1.000 0.000
#> SRR1070789 2 0.0000 0.9647 0.000 1.000
#> SRR1097728 1 0.7815 0.6918 0.768 0.232
#> SRR1447172 2 0.0000 0.9647 0.000 1.000
#> SRR1472486 2 0.0376 0.9619 0.004 0.996
#> SRR1377881 1 0.0000 0.9807 1.000 0.000
#> SRR1420912 1 0.0000 0.9807 1.000 0.000
#> SRR1313747 2 0.0000 0.9647 0.000 1.000
#> SRR1414447 1 0.0000 0.9807 1.000 0.000
#> SRR1358238 1 0.0000 0.9807 1.000 0.000
#> SRR1322115 1 0.0000 0.9807 1.000 0.000
#> SRR1330474 1 0.0000 0.9807 1.000 0.000
#> SRR1093124 1 0.0000 0.9807 1.000 0.000
#> SRR1456354 1 0.0000 0.9807 1.000 0.000
#> SRR820859 1 0.0000 0.9807 1.000 0.000
#> SRR1401860 1 0.0000 0.9807 1.000 0.000
#> SRR1095599 2 0.8499 0.6254 0.276 0.724
#> SRR1417130 1 0.0000 0.9807 1.000 0.000
#> SRR1362597 2 0.0000 0.9647 0.000 1.000
#> SRR1328464 2 0.9993 0.0691 0.484 0.516
#> SRR1323957 1 0.0000 0.9807 1.000 0.000
cbind(get_classes(res, k = 3), get_membership(res, k = 3))
#> class entropy silhouette p1 p2 p3
#> SRR1397242 1 0.0747 0.8344 0.984 0.000 0.016
#> SRR1093410 1 0.0237 0.8322 0.996 0.000 0.004
#> SRR1380523 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1089106 3 0.3482 0.8137 0.128 0.000 0.872
#> SRR1401403 1 0.0747 0.8345 0.984 0.000 0.016
#> SRR1080534 1 0.4605 0.6960 0.796 0.000 0.204
#> SRR1487638 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1320650 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1073045 2 0.6730 0.6131 0.284 0.680 0.036
#> SRR1397030 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1439976 3 0.2448 0.8036 0.076 0.000 0.924
#> SRR1454050 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1070286 1 0.5591 0.4992 0.696 0.000 0.304
#> SRR1344185 2 0.6737 0.6163 0.272 0.688 0.040
#> SRR1084228 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1101907 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1079686 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1089761 2 0.8050 0.2000 0.436 0.500 0.064
#> SRR811403 2 0.0237 0.9054 0.000 0.996 0.004
#> SRR1440560 3 0.2261 0.7487 0.000 0.068 0.932
#> SRR1079706 1 0.2356 0.7816 0.928 0.000 0.072
#> SRR1459101 1 0.9617 0.0932 0.472 0.280 0.248
#> SRR1335089 1 0.6045 0.2856 0.620 0.000 0.380
#> SRR1337840 3 0.5882 0.6399 0.348 0.000 0.652
#> SRR808682 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1443224 2 0.5591 0.6006 0.000 0.696 0.304
#> SRR1439831 1 0.1529 0.8327 0.960 0.000 0.040
#> SRR1087463 1 0.4291 0.7312 0.820 0.000 0.180
#> SRR1457949 1 0.7773 0.3340 0.612 0.316 0.072
#> SRR1455969 2 0.4920 0.8103 0.108 0.840 0.052
#> SRR1415529 3 0.5497 0.7198 0.292 0.000 0.708
#> SRR1330018 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1370597 1 0.7694 0.4267 0.632 0.292 0.076
#> SRR1385524 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1351605 3 0.4121 0.8058 0.168 0.000 0.832
#> SRR1460148 1 0.0237 0.8322 0.996 0.000 0.004
#> SRR1354159 3 0.3412 0.7079 0.000 0.124 0.876
#> SRR1318390 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1073095 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1410612 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1076892 1 0.1529 0.8327 0.960 0.000 0.040
#> SRR1340989 3 0.2448 0.8036 0.076 0.000 0.924
#> SRR1481375 2 0.6004 0.7583 0.156 0.780 0.064
#> SRR1079356 1 0.5650 0.6340 0.688 0.000 0.312
#> SRR1455545 3 0.3941 0.8094 0.156 0.000 0.844
#> SRR1406157 1 0.4750 0.6778 0.784 0.000 0.216
#> SRR1445920 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1420259 2 0.0237 0.9057 0.000 0.996 0.004
#> SRR1376963 3 0.4555 0.6251 0.000 0.200 0.800
#> SRR1101061 1 0.0237 0.8322 0.996 0.000 0.004
#> SRR1414496 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1334791 1 0.0237 0.8322 0.996 0.000 0.004
#> SRR1072129 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1330450 3 0.5178 0.7584 0.256 0.000 0.744
#> SRR1409108 2 0.4654 0.7375 0.000 0.792 0.208
#> SRR1416865 3 0.5327 0.6003 0.272 0.000 0.728
#> SRR1071832 3 0.3340 0.8127 0.120 0.000 0.880
#> SRR1093814 2 0.6244 0.2971 0.000 0.560 0.440
#> SRR1381821 1 0.3619 0.8020 0.864 0.000 0.136
#> SRR811675 1 0.2448 0.8156 0.924 0.000 0.076
#> SRR1082423 1 0.1529 0.8327 0.960 0.000 0.040
#> SRR1417296 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR815944 3 0.8427 0.5991 0.148 0.240 0.612
#> SRR1332775 2 0.2590 0.8696 0.004 0.924 0.072
#> SRR1079143 3 0.1529 0.7871 0.040 0.000 0.960
#> SRR1476807 3 0.5327 0.7423 0.272 0.000 0.728
#> SRR1456634 1 0.4062 0.7455 0.836 0.000 0.164
#> SRR1083171 2 0.0237 0.9058 0.000 0.996 0.004
#> SRR1083337 1 0.2448 0.8172 0.924 0.000 0.076
#> SRR1377672 3 0.2625 0.8063 0.084 0.000 0.916
#> SRR1435816 1 0.2590 0.7790 0.924 0.004 0.072
#> SRR1080580 1 0.1031 0.8349 0.976 0.000 0.024
#> SRR1366672 2 0.0237 0.9058 0.000 0.996 0.004
#> SRR1075150 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR814137 3 0.3686 0.8127 0.140 0.000 0.860
#> SRR1475062 1 0.0237 0.8322 0.996 0.000 0.004
#> SRR1340028 1 0.2959 0.8020 0.900 0.000 0.100
#> SRR1070789 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1097728 2 0.2297 0.8800 0.036 0.944 0.020
#> SRR1447172 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1472486 2 0.6228 0.5508 0.316 0.672 0.012
#> SRR1377881 1 0.0237 0.8322 0.996 0.000 0.004
#> SRR1420912 3 0.2165 0.7993 0.064 0.000 0.936
#> SRR1313747 2 0.2261 0.8649 0.000 0.932 0.068
#> SRR1414447 3 0.1964 0.7960 0.056 0.000 0.944
#> SRR1358238 3 0.4842 0.7777 0.224 0.000 0.776
#> SRR1322115 1 0.1289 0.8342 0.968 0.000 0.032
#> SRR1330474 3 0.6204 0.4727 0.424 0.000 0.576
#> SRR1093124 1 0.2711 0.8104 0.912 0.000 0.088
#> SRR1456354 3 0.5291 0.7459 0.268 0.000 0.732
#> SRR820859 3 0.5905 0.4928 0.352 0.000 0.648
#> SRR1401860 1 0.0237 0.8322 0.996 0.000 0.004
#> SRR1095599 2 0.4179 0.8433 0.052 0.876 0.072
#> SRR1417130 1 0.4931 0.6503 0.768 0.000 0.232
#> SRR1362597 2 0.0000 0.9073 0.000 1.000 0.000
#> SRR1328464 2 0.6577 0.2911 0.420 0.572 0.008
#> SRR1323957 3 0.5905 0.6329 0.352 0.000 0.648
cbind(get_classes(res, k = 4), get_membership(res, k = 4))
#> class entropy silhouette p1 p2 p3 p4
#> SRR1397242 1 0.1022 0.72279 0.968 0.000 0.032 0.000
#> SRR1093410 1 0.3074 0.65948 0.848 0.000 0.152 0.000
#> SRR1380523 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1089106 4 0.5607 -0.47568 0.488 0.000 0.020 0.492
#> SRR1401403 1 0.2814 0.69371 0.868 0.000 0.132 0.000
#> SRR1080534 1 0.4706 0.60208 0.748 0.000 0.028 0.224
#> SRR1487638 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1320650 2 0.0188 0.91752 0.000 0.996 0.000 0.004
#> SRR1073045 2 0.2944 0.80186 0.004 0.868 0.128 0.000
#> SRR1397030 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1439976 1 0.4941 0.54724 0.564 0.000 0.000 0.436
#> SRR1454050 2 0.1302 0.88875 0.000 0.956 0.000 0.044
#> SRR1070286 1 0.5970 0.50837 0.668 0.000 0.244 0.088
#> SRR1344185 3 0.5263 0.04671 0.008 0.448 0.544 0.000
#> SRR1084228 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1101907 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1079686 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1089761 3 0.6008 0.00827 0.040 0.464 0.496 0.000
#> SRR811403 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1440560 4 0.1059 0.47069 0.012 0.000 0.016 0.972
#> SRR1079706 3 0.2408 0.41867 0.000 0.000 0.896 0.104
#> SRR1459101 1 0.6127 0.40403 0.624 0.320 0.012 0.044
#> SRR1335089 3 0.7677 -0.08717 0.372 0.000 0.412 0.216
#> SRR1337840 1 0.3400 0.70575 0.820 0.000 0.000 0.180
#> SRR808682 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1443224 4 0.6492 0.33527 0.000 0.144 0.220 0.636
#> SRR1439831 1 0.0707 0.72632 0.980 0.000 0.020 0.000
#> SRR1087463 3 0.5696 -0.12808 0.024 0.000 0.496 0.480
#> SRR1457949 3 0.4656 0.44272 0.072 0.136 0.792 0.000
#> SRR1455969 2 0.8224 -0.30107 0.012 0.372 0.352 0.264
#> SRR1415529 1 0.4790 0.59878 0.620 0.000 0.000 0.380
#> SRR1330018 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1370597 3 0.5220 -0.01088 0.000 0.008 0.568 0.424
#> SRR1385524 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1351605 1 0.4941 0.54736 0.564 0.000 0.000 0.436
#> SRR1460148 1 0.2647 0.68879 0.880 0.000 0.120 0.000
#> SRR1354159 4 0.2778 0.49252 0.004 0.016 0.080 0.900
#> SRR1318390 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1073095 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1410612 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1076892 1 0.0817 0.72611 0.976 0.000 0.024 0.000
#> SRR1340989 1 0.4981 0.51575 0.536 0.000 0.000 0.464
#> SRR1481375 2 0.4999 0.03137 0.000 0.508 0.492 0.000
#> SRR1079356 4 0.5000 0.02741 0.000 0.000 0.496 0.504
#> SRR1455545 1 0.4877 0.57547 0.592 0.000 0.000 0.408
#> SRR1406157 1 0.1940 0.72884 0.924 0.000 0.000 0.076
#> SRR1445920 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1420259 2 0.1488 0.89330 0.000 0.956 0.032 0.012
#> SRR1376963 4 0.2928 0.46905 0.000 0.108 0.012 0.880
#> SRR1101061 1 0.2149 0.69953 0.912 0.000 0.088 0.000
#> SRR1414496 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1334791 1 0.1716 0.71149 0.936 0.000 0.064 0.000
#> SRR1072129 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1330450 1 0.5755 0.59346 0.624 0.000 0.044 0.332
#> SRR1409108 4 0.4972 0.10527 0.000 0.456 0.000 0.544
#> SRR1416865 4 0.4907 0.18217 0.000 0.000 0.420 0.580
#> SRR1071832 1 0.4989 0.50491 0.528 0.000 0.000 0.472
#> SRR1093814 4 0.4608 0.28207 0.000 0.304 0.004 0.692
#> SRR1381821 3 0.5168 -0.14847 0.004 0.000 0.504 0.492
#> SRR811675 3 0.3494 0.40994 0.172 0.000 0.824 0.004
#> SRR1082423 1 0.1716 0.71777 0.936 0.000 0.064 0.000
#> SRR1417296 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR815944 4 0.5445 0.46449 0.040 0.100 0.080 0.780
#> SRR1332775 3 0.4829 0.38015 0.000 0.068 0.776 0.156
#> SRR1079143 4 0.4697 0.28634 0.000 0.000 0.356 0.644
#> SRR1476807 1 0.4643 0.62479 0.656 0.000 0.000 0.344
#> SRR1456634 1 0.1576 0.73138 0.948 0.000 0.004 0.048
#> SRR1083171 2 0.3402 0.72905 0.000 0.832 0.164 0.004
#> SRR1083337 1 0.0188 0.72976 0.996 0.000 0.004 0.000
#> SRR1377672 1 0.4992 0.49921 0.524 0.000 0.000 0.476
#> SRR1435816 3 0.3172 0.42617 0.160 0.000 0.840 0.000
#> SRR1080580 1 0.4406 0.46534 0.700 0.000 0.300 0.000
#> SRR1366672 2 0.1978 0.86510 0.004 0.928 0.068 0.000
#> SRR1075150 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR814137 1 0.4955 0.53974 0.556 0.000 0.000 0.444
#> SRR1475062 1 0.3907 0.56142 0.768 0.000 0.232 0.000
#> SRR1340028 1 0.0469 0.73117 0.988 0.000 0.000 0.012
#> SRR1070789 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1097728 2 0.6245 0.38795 0.000 0.636 0.268 0.096
#> SRR1447172 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1472486 2 0.0592 0.90816 0.016 0.984 0.000 0.000
#> SRR1377881 1 0.2760 0.67340 0.872 0.000 0.128 0.000
#> SRR1420912 4 0.6640 0.28209 0.268 0.000 0.128 0.604
#> SRR1313747 2 0.2149 0.84255 0.000 0.912 0.000 0.088
#> SRR1414447 4 0.2593 0.48785 0.016 0.000 0.080 0.904
#> SRR1358238 1 0.4916 0.56175 0.576 0.000 0.000 0.424
#> SRR1322115 1 0.6090 0.17331 0.564 0.000 0.384 0.052
#> SRR1330474 1 0.3123 0.71378 0.844 0.000 0.000 0.156
#> SRR1093124 1 0.0524 0.73124 0.988 0.000 0.004 0.008
#> SRR1456354 1 0.4624 0.62830 0.660 0.000 0.000 0.340
#> SRR820859 4 0.6602 0.19302 0.092 0.000 0.356 0.552
#> SRR1401860 1 0.4761 0.34242 0.628 0.000 0.372 0.000
#> SRR1095599 3 0.2441 0.46319 0.004 0.056 0.920 0.020
#> SRR1417130 1 0.1716 0.73020 0.936 0.000 0.000 0.064
#> SRR1362597 2 0.0000 0.91999 0.000 1.000 0.000 0.000
#> SRR1328464 2 0.3351 0.74002 0.148 0.844 0.008 0.000
#> SRR1323957 1 0.3356 0.70702 0.824 0.000 0.000 0.176
cbind(get_classes(res, k = 5), get_membership(res, k = 5))
#> class entropy silhouette p1 p2 p3 p4 p5
#> SRR1397242 1 0.1485 0.7375 0.948 0.000 0.032 0.020 0.000
#> SRR1093410 1 0.2179 0.7289 0.888 0.000 0.112 0.000 0.000
#> SRR1380523 2 0.0162 0.8828 0.000 0.996 0.000 0.000 0.004
#> SRR1089106 4 0.7535 0.2524 0.220 0.000 0.048 0.392 0.340
#> SRR1401403 1 0.3513 0.6892 0.800 0.000 0.180 0.020 0.000
#> SRR1080534 1 0.5445 0.6041 0.704 0.000 0.116 0.156 0.024
#> SRR1487638 2 0.0404 0.8790 0.000 0.988 0.000 0.000 0.012
#> SRR1320650 2 0.0162 0.8824 0.000 0.996 0.000 0.000 0.004
#> SRR1073045 2 0.2179 0.7918 0.000 0.888 0.112 0.000 0.000
#> SRR1397030 2 0.0000 0.8832 0.000 1.000 0.000 0.000 0.000
#> SRR1439976 4 0.4995 0.2376 0.420 0.000 0.024 0.552 0.004
#> SRR1454050 2 0.0451 0.8809 0.000 0.988 0.000 0.004 0.008
#> SRR1070286 1 0.6160 0.2486 0.508 0.000 0.020 0.080 0.392
#> SRR1344185 2 0.6041 0.0170 0.036 0.556 0.364 0.036 0.008
#> SRR1084228 2 0.0000 0.8832 0.000 1.000 0.000 0.000 0.000
#> SRR1101907 2 0.0324 0.8805 0.000 0.992 0.004 0.004 0.000
#> SRR1079686 2 0.0000 0.8832 0.000 1.000 0.000 0.000 0.000
#> SRR1089761 3 0.8103 0.4764 0.084 0.196 0.512 0.164 0.044
#> SRR811403 2 0.0162 0.8828 0.000 0.996 0.000 0.000 0.004
#> SRR1440560 4 0.3732 0.3532 0.000 0.008 0.008 0.776 0.208
#> SRR1079706 3 0.4252 -0.0169 0.000 0.000 0.652 0.008 0.340
#> SRR1459101 2 0.6512 0.2225 0.216 0.584 0.028 0.172 0.000
#> SRR1335089 5 0.5784 0.6016 0.080 0.000 0.172 0.060 0.688
#> SRR1337840 1 0.4938 0.3874 0.648 0.000 0.040 0.308 0.004
#> SRR808682 2 0.0000 0.8832 0.000 1.000 0.000 0.000 0.000
#> SRR1443224 5 0.2438 0.6298 0.000 0.060 0.000 0.040 0.900
#> SRR1439831 1 0.2450 0.7240 0.900 0.000 0.052 0.048 0.000
#> SRR1087463 3 0.7395 0.3251 0.152 0.000 0.544 0.156 0.148
#> SRR1457949 3 0.5021 0.5194 0.032 0.156 0.748 0.004 0.060
#> SRR1455969 3 0.8640 0.4098 0.088 0.360 0.364 0.112 0.076
#> SRR1415529 1 0.5392 -0.0236 0.500 0.000 0.032 0.456 0.012
#> SRR1330018 2 0.1405 0.8610 0.000 0.956 0.008 0.016 0.020
#> SRR1370597 5 0.3635 0.6415 0.000 0.004 0.248 0.000 0.748
#> SRR1385524 2 0.0162 0.8825 0.000 0.996 0.000 0.000 0.004
#> SRR1351605 4 0.4270 0.4897 0.320 0.000 0.012 0.668 0.000
#> SRR1460148 1 0.2843 0.7159 0.848 0.000 0.144 0.008 0.000
#> SRR1354159 4 0.5753 0.2342 0.000 0.092 0.016 0.632 0.260
#> SRR1318390 2 0.0162 0.8828 0.000 0.996 0.000 0.000 0.004
#> SRR1073095 2 0.0000 0.8832 0.000 1.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.8832 0.000 1.000 0.000 0.000 0.000
#> SRR1076892 1 0.1281 0.7409 0.956 0.000 0.032 0.012 0.000
#> SRR1340989 4 0.3662 0.5556 0.252 0.000 0.000 0.744 0.004
#> SRR1481375 3 0.5836 0.3541 0.008 0.420 0.516 0.040 0.016
#> SRR1079356 5 0.4826 0.2544 0.000 0.000 0.472 0.020 0.508
#> SRR1455545 1 0.5192 -0.0642 0.492 0.000 0.032 0.472 0.004
#> SRR1406157 1 0.2735 0.7059 0.880 0.000 0.036 0.084 0.000
#> SRR1445920 2 0.0000 0.8832 0.000 1.000 0.000 0.000 0.000
#> SRR1420259 2 0.1913 0.8373 0.000 0.932 0.008 0.044 0.016
#> SRR1376963 5 0.5365 0.4193 0.000 0.124 0.008 0.180 0.688
#> SRR1101061 1 0.1478 0.7392 0.936 0.000 0.064 0.000 0.000
#> SRR1414496 2 0.0162 0.8828 0.000 0.996 0.000 0.000 0.004
#> SRR1334791 1 0.1270 0.7388 0.948 0.000 0.052 0.000 0.000
#> SRR1072129 2 0.0000 0.8832 0.000 1.000 0.000 0.000 0.000
#> SRR1330450 1 0.7738 -0.0116 0.376 0.000 0.064 0.224 0.336
#> SRR1409108 2 0.5251 0.4820 0.000 0.680 0.000 0.184 0.136
#> SRR1416865 5 0.2249 0.6858 0.000 0.000 0.096 0.008 0.896
#> SRR1071832 4 0.3762 0.5584 0.244 0.000 0.004 0.748 0.004
#> SRR1093814 4 0.7067 -0.1604 0.000 0.340 0.012 0.388 0.260
#> SRR1381821 5 0.2966 0.6736 0.000 0.000 0.184 0.000 0.816
#> SRR811675 5 0.6304 0.4790 0.072 0.000 0.340 0.040 0.548
#> SRR1082423 1 0.2625 0.7267 0.876 0.000 0.108 0.016 0.000
#> SRR1417296 2 0.1041 0.8643 0.000 0.964 0.004 0.000 0.032
#> SRR815944 4 0.6564 -0.0298 0.004 0.400 0.024 0.476 0.096
#> SRR1332775 5 0.4694 0.5923 0.000 0.032 0.288 0.004 0.676
#> SRR1079143 5 0.6215 0.3338 0.000 0.000 0.152 0.348 0.500
#> SRR1476807 4 0.4884 0.3235 0.404 0.000 0.020 0.572 0.004
#> SRR1456634 1 0.2208 0.7167 0.908 0.000 0.020 0.072 0.000
#> SRR1083171 2 0.4420 0.1023 0.000 0.548 0.004 0.000 0.448
#> SRR1083337 1 0.1216 0.7393 0.960 0.000 0.020 0.020 0.000
#> SRR1377672 4 0.3351 0.5679 0.132 0.000 0.028 0.836 0.004
#> SRR1435816 3 0.3752 0.4023 0.124 0.000 0.812 0.000 0.064
#> SRR1080580 1 0.3835 0.6231 0.744 0.000 0.244 0.012 0.000
#> SRR1366672 2 0.1403 0.8541 0.024 0.952 0.024 0.000 0.000
#> SRR1075150 2 0.0000 0.8832 0.000 1.000 0.000 0.000 0.000
#> SRR814137 4 0.4121 0.5493 0.264 0.000 0.012 0.720 0.004
#> SRR1475062 1 0.3319 0.6883 0.820 0.000 0.160 0.020 0.000
#> SRR1340028 1 0.2659 0.7181 0.888 0.000 0.060 0.052 0.000
#> SRR1070789 2 0.0000 0.8832 0.000 1.000 0.000 0.000 0.000
#> SRR1097728 2 0.6693 -0.1958 0.000 0.440 0.208 0.004 0.348
#> SRR1447172 2 0.0162 0.8828 0.000 0.996 0.000 0.000 0.004
#> SRR1472486 2 0.0932 0.8710 0.000 0.972 0.020 0.004 0.004
#> SRR1377881 1 0.1792 0.7355 0.916 0.000 0.084 0.000 0.000
#> SRR1420912 5 0.3090 0.6438 0.004 0.000 0.032 0.104 0.860
#> SRR1313747 2 0.3053 0.7223 0.000 0.828 0.000 0.008 0.164
#> SRR1414447 4 0.3861 0.2935 0.000 0.000 0.008 0.728 0.264
#> SRR1358238 4 0.4165 0.4938 0.320 0.000 0.008 0.672 0.000
#> SRR1322115 1 0.5306 0.5988 0.716 0.000 0.156 0.024 0.104
#> SRR1330474 1 0.4415 0.2248 0.604 0.000 0.008 0.388 0.000
#> SRR1093124 1 0.1403 0.7389 0.952 0.000 0.024 0.024 0.000
#> SRR1456354 4 0.5465 0.4421 0.348 0.000 0.056 0.588 0.008
#> SRR820859 5 0.1757 0.6607 0.012 0.000 0.004 0.048 0.936
#> SRR1401860 1 0.3728 0.6394 0.748 0.000 0.244 0.008 0.000
#> SRR1095599 3 0.5652 0.5180 0.016 0.172 0.700 0.016 0.096
#> SRR1417130 1 0.3586 0.6862 0.828 0.000 0.076 0.096 0.000
#> SRR1362597 2 0.0162 0.8828 0.000 0.996 0.000 0.000 0.004
#> SRR1328464 2 0.6559 0.4878 0.100 0.676 0.120 0.044 0.060
#> SRR1323957 1 0.4644 0.4450 0.680 0.000 0.040 0.280 0.000
cbind(get_classes(res, k = 6), get_membership(res, k = 6))
#> class entropy silhouette p1 p2 p3 p4 p5 p6
#> SRR1397242 1 0.2339 0.644540 0.896 0.000 0.012 0.020 0.000 0.072
#> SRR1093410 1 0.2092 0.641903 0.876 0.000 0.000 0.000 0.000 0.124
#> SRR1380523 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1089106 4 0.7097 0.375991 0.092 0.000 0.224 0.532 0.104 0.048
#> SRR1401403 1 0.3851 0.612377 0.784 0.000 0.004 0.064 0.004 0.144
#> SRR1080534 1 0.6797 0.249647 0.520 0.000 0.244 0.116 0.008 0.112
#> SRR1487638 2 0.0458 0.857736 0.000 0.984 0.000 0.000 0.016 0.000
#> SRR1320650 2 0.1152 0.844305 0.000 0.952 0.044 0.004 0.000 0.000
#> SRR1073045 2 0.2742 0.764081 0.000 0.852 0.008 0.012 0.000 0.128
#> SRR1397030 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1439976 4 0.4502 0.485856 0.384 0.000 0.008 0.588 0.004 0.016
#> SRR1454050 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1070286 1 0.7467 0.124401 0.448 0.000 0.076 0.144 0.284 0.048
#> SRR1344185 2 0.6727 0.128418 0.068 0.540 0.080 0.012 0.020 0.280
#> SRR1084228 2 0.0508 0.860007 0.000 0.984 0.012 0.004 0.000 0.000
#> SRR1101907 2 0.1138 0.849250 0.000 0.960 0.024 0.004 0.000 0.012
#> SRR1079686 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1089761 4 0.8198 -0.285496 0.012 0.020 0.284 0.288 0.136 0.260
#> SRR811403 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1440560 3 0.5691 0.340374 0.000 0.036 0.512 0.396 0.044 0.012
#> SRR1079706 5 0.4696 0.000317 0.008 0.000 0.020 0.004 0.488 0.480
#> SRR1459101 2 0.5954 0.282249 0.136 0.592 0.016 0.236 0.000 0.020
#> SRR1335089 5 0.4891 0.451291 0.032 0.000 0.060 0.132 0.744 0.032
#> SRR1337840 1 0.4465 -0.232045 0.512 0.000 0.000 0.460 0.000 0.028
#> SRR808682 2 0.0291 0.862891 0.000 0.992 0.000 0.004 0.004 0.000
#> SRR1443224 5 0.5135 0.054313 0.000 0.044 0.372 0.008 0.564 0.012
#> SRR1439831 1 0.3353 0.618150 0.836 0.000 0.016 0.068 0.000 0.080
#> SRR1087463 1 0.8254 -0.161898 0.308 0.000 0.220 0.084 0.088 0.300
#> SRR1457949 6 0.5693 0.486150 0.028 0.108 0.004 0.008 0.216 0.636
#> SRR1455969 3 0.7943 0.031712 0.132 0.236 0.368 0.008 0.016 0.240
#> SRR1415529 4 0.5266 0.436255 0.400 0.000 0.024 0.536 0.012 0.028
#> SRR1330018 2 0.3532 0.739591 0.000 0.828 0.028 0.012 0.112 0.020
#> SRR1370597 5 0.3418 0.490248 0.000 0.000 0.032 0.000 0.784 0.184
#> SRR1385524 2 0.0436 0.862087 0.000 0.988 0.004 0.004 0.004 0.000
#> SRR1351605 4 0.3853 0.584781 0.304 0.000 0.016 0.680 0.000 0.000
#> SRR1460148 1 0.2664 0.636635 0.848 0.000 0.000 0.016 0.000 0.136
#> SRR1354159 3 0.6634 0.493151 0.000 0.148 0.568 0.192 0.072 0.020
#> SRR1318390 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1073095 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1410612 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1076892 1 0.1265 0.646741 0.948 0.000 0.000 0.044 0.000 0.008
#> SRR1340989 4 0.4205 0.611341 0.204 0.000 0.064 0.728 0.000 0.004
#> SRR1481375 6 0.8458 0.223973 0.024 0.276 0.180 0.108 0.052 0.360
#> SRR1079356 5 0.4936 0.243335 0.000 0.000 0.048 0.012 0.576 0.364
#> SRR1455545 4 0.4350 0.398780 0.428 0.000 0.000 0.552 0.004 0.016
#> SRR1406157 1 0.3381 0.561878 0.800 0.000 0.000 0.156 0.000 0.044
#> SRR1445920 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1420259 2 0.3078 0.749638 0.012 0.844 0.112 0.000 0.000 0.032
#> SRR1376963 3 0.6087 0.151645 0.000 0.096 0.492 0.032 0.372 0.008
#> SRR1101061 1 0.1219 0.657064 0.948 0.000 0.000 0.004 0.000 0.048
#> SRR1414496 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1334791 1 0.1124 0.656222 0.956 0.000 0.000 0.008 0.000 0.036
#> SRR1072129 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1330450 5 0.8264 -0.047775 0.168 0.000 0.104 0.268 0.364 0.096
#> SRR1409108 3 0.5171 0.239822 0.000 0.400 0.524 0.068 0.008 0.000
#> SRR1416865 5 0.2968 0.518567 0.000 0.000 0.128 0.004 0.840 0.028
#> SRR1071832 4 0.5781 0.514430 0.268 0.000 0.184 0.540 0.000 0.008
#> SRR1093814 3 0.5813 0.468235 0.004 0.200 0.632 0.124 0.032 0.008
#> SRR1381821 5 0.2740 0.533925 0.000 0.000 0.076 0.000 0.864 0.060
#> SRR811675 5 0.3853 0.456175 0.036 0.000 0.008 0.008 0.780 0.168
#> SRR1082423 1 0.2812 0.639135 0.860 0.000 0.008 0.028 0.000 0.104
#> SRR1417296 2 0.3472 0.742957 0.000 0.840 0.084 0.028 0.040 0.008
#> SRR815944 2 0.6631 0.107578 0.004 0.532 0.228 0.188 0.024 0.024
#> SRR1332775 5 0.3263 0.487811 0.000 0.020 0.004 0.000 0.800 0.176
#> SRR1079143 3 0.6729 0.261319 0.000 0.000 0.504 0.116 0.252 0.128
#> SRR1476807 4 0.4475 0.527950 0.356 0.000 0.024 0.612 0.004 0.004
#> SRR1456634 1 0.3705 0.458327 0.748 0.000 0.000 0.224 0.004 0.024
#> SRR1083171 2 0.3809 0.470401 0.000 0.684 0.008 0.004 0.304 0.000
#> SRR1083337 1 0.1682 0.641017 0.928 0.000 0.000 0.052 0.000 0.020
#> SRR1377672 4 0.5052 0.384058 0.052 0.000 0.220 0.676 0.000 0.052
#> SRR1435816 6 0.4765 0.362505 0.132 0.000 0.000 0.000 0.196 0.672
#> SRR1080580 1 0.5526 0.329422 0.572 0.000 0.040 0.052 0.004 0.332
#> SRR1366672 2 0.3372 0.741697 0.084 0.840 0.016 0.004 0.000 0.056
#> SRR1075150 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR814137 4 0.5360 0.588254 0.160 0.000 0.148 0.660 0.000 0.032
#> SRR1475062 1 0.4162 0.580523 0.780 0.000 0.028 0.036 0.012 0.144
#> SRR1340028 1 0.4116 0.586526 0.780 0.000 0.024 0.088 0.000 0.108
#> SRR1070789 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1097728 5 0.7125 -0.184705 0.000 0.360 0.100 0.020 0.416 0.104
#> SRR1447172 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1472486 2 0.1534 0.839579 0.004 0.944 0.000 0.016 0.004 0.032
#> SRR1377881 1 0.1663 0.650999 0.912 0.000 0.000 0.000 0.000 0.088
#> SRR1420912 5 0.5483 0.348481 0.012 0.000 0.228 0.064 0.652 0.044
#> SRR1313747 2 0.4526 0.434438 0.000 0.656 0.288 0.000 0.052 0.004
#> SRR1414447 3 0.6171 0.374392 0.020 0.000 0.488 0.348 0.136 0.008
#> SRR1358238 4 0.4219 0.569946 0.320 0.000 0.032 0.648 0.000 0.000
#> SRR1322115 1 0.5860 0.490647 0.664 0.000 0.052 0.028 0.112 0.144
#> SRR1330474 1 0.4820 -0.116401 0.540 0.000 0.020 0.420 0.004 0.016
#> SRR1093124 1 0.2743 0.561325 0.828 0.000 0.000 0.164 0.000 0.008
#> SRR1456354 4 0.6227 0.479955 0.124 0.000 0.208 0.596 0.012 0.060
#> SRR820859 3 0.4636 0.008473 0.008 0.000 0.508 0.008 0.464 0.012
#> SRR1401860 1 0.4052 0.531316 0.708 0.000 0.012 0.020 0.000 0.260
#> SRR1095599 6 0.6505 0.493519 0.040 0.208 0.012 0.004 0.180 0.556
#> SRR1417130 1 0.4670 0.531689 0.732 0.000 0.028 0.128 0.000 0.112
#> SRR1362597 2 0.0000 0.864905 0.000 1.000 0.000 0.000 0.000 0.000
#> SRR1328464 2 0.8692 -0.302271 0.028 0.348 0.156 0.056 0.256 0.156
#> SRR1323957 1 0.4504 -0.160928 0.536 0.000 0.000 0.432 0.000 0.032
Heatmaps for the consensus matrix. It visualizes the probability of two samples to be in a same group.
consensus_heatmap(res, k = 2)
consensus_heatmap(res, k = 3)
consensus_heatmap(res, k = 4)
consensus_heatmap(res, k = 5)
consensus_heatmap(res, k = 6)
Heatmaps for the membership of samples in all partitions to see how consistent they are:
membership_heatmap(res, k = 2)
membership_heatmap(res, k = 3)
membership_heatmap(res, k = 4)
membership_heatmap(res, k = 5)
membership_heatmap(res, k = 6)
As soon as we have had the classes for columns, we can look for signatures which are significantly different between classes which can be candidate marks for certain classes. Following are the heatmaps for signatures.
Signature heatmaps where rows are scaled:
get_signatures(res, k = 2)
get_signatures(res, k = 3)
get_signatures(res, k = 4)
get_signatures(res, k = 5)
get_signatures(res, k = 6)
Signature heatmaps where rows are not scaled:
get_signatures(res, k = 2, scale_rows = FALSE)
get_signatures(res, k = 3, scale_rows = FALSE)
get_signatures(res, k = 4, scale_rows = FALSE)
get_signatures(res, k = 5, scale_rows = FALSE)
get_signatures(res, k = 6, scale_rows = FALSE)
Compare the overlap of signatures from different k:
compare_signatures(res)
get_signature()
returns a data frame invisibly. TO get the list of signatures, the function
call should be assigned to a variable explicitly. In following code, if plot
argument is set
to FALSE
, no heatmap is plotted while only the differential analysis is performed.
# code only for demonstration
tb = get_signature(res, k = ..., plot = FALSE)
An example of the output of tb
is:
#> which_row fdr mean_1 mean_2 scaled_mean_1 scaled_mean_2 km
#> 1 38 0.042760348 8.373488 9.131774 -0.5533452 0.5164555 1
#> 2 40 0.018707592 7.106213 8.469186 -0.6173731 0.5762149 1
#> 3 55 0.019134737 10.221463 11.207825 -0.6159697 0.5749050 1
#> 4 59 0.006059896 5.921854 7.869574 -0.6899429 0.6439467 1
#> 5 60 0.018055526 8.928898 10.211722 -0.6204761 0.5791110 1
#> 6 98 0.009384629 15.714769 14.887706 0.6635654 -0.6193277 2
...
The columns in tb
are:
which_row
: row indices corresponding to the input matrix.fdr
: FDR for the differential test. mean_x
: The mean value in group x.scaled_mean_x
: The mean value in group x after rows are scaled.km
: Row groups if k-means clustering is applied to rows.UMAP plot which shows how samples are separated.
dimension_reduction(res, k = 2, method = "UMAP")
dimension_reduction(res, k = 3, method = "UMAP")
dimension_reduction(res, k = 4, method = "UMAP")
dimension_reduction(res, k = 5, method = "UMAP")
dimension_reduction(res, k = 6, method = "UMAP")
Following heatmap shows how subgroups are split when increasing k
:
collect_classes(res)
If matrix rows can be associated to genes, consider to use functional_enrichment(res,
...)
to perform function enrichment for the signature genes. See this vignette for more detailed explanations.
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