Chapter 11 Pattern Clustering Module
This functional module in Quickomics helps cluster genes/proteins based on their expression profiles across different groups. Two different algorithms, soft (fuzzy) clustering and k-means, are implemented.
The current version adds three major updates. First, the genes can be clustered by any sample attribute, not only by group: “Select Pattern Variable” chooses the attribute, such as Age or Genotype, and each gene is summarized by its mean expression in each level of that attribute. Second, “Cluster On” decides what the clusters are based on: the trend only (z-score, the default), the trend together with the size of the change (centred values), or the mean expression without any transformation. Third, the levels of the attribute can be easily re-ordered or removed by dragging them above the plot, which sets the order of the levels in the plot and leaves the removed levels out of the clustering.
The means are computed from the samples selected in the “Groups and Samples” module (Chapter 3); if the pattern differs between conditions, the samples can first be limited to one condition there.
11.1 Clustering of Centroid Profiles
Users have the option to either select the DEGs/DEPS as the list of genes/proteins to cluster based off on or upload a custom gene list. DEGs/DEPs can be selected from one of the comparisons selected in “Groups and Samples” or from all of them (“ALL”), and cutoffs can be applied to limit the number of genes.
Users also choose the sample attribute to plot, how the expression values are transformed before clustering (“Cluster On”, described in the guide above the plot), and the order of the groups; then click “Plot/Refresh”. “Cluster Method” chooses between the two algorithms, and “Cluster Number” sets the number of clusters (2 to 12, 6 by default). K-means assigns each gene to one cluster and draws the cluster mean as a thick line. Soft clustering (Mfuzz fuzzy c-means) gives each gene a membership between 0 and 1 in every cluster, and draws the genes with a membership of at least 0.4, colored by membership from red (strong member) to yellow (weak member).
In this example below, we select the DEGs/DEPs from all comparisons with a Fold Change cutoff of 3 and a P value cutoff of 0.01, which gives 177 genes, and identify 6 clusters of genes.
Please note that this visualization for this dataset is novel and was not previously reported in Gyoneva et al., 2019. The genes in each cluster can be viewed in the “Data Table” tab.
11.2 Data Table
The data table contains genes from the previous clusters, along with their gene names and the values used for clustering, here the z-scores of the group means; the “cluster” column gives the cluster number shown in the previous tab. The layout of the table is set by “Data Output Format” in the left panel. By default, the table is shown in the wide format: each gene is shown in one row, the values of the groups are in separate columns, from 2mo_WT to 2yr_KO, followed by the cluster number.
In the long format, each gene is shown in one row per group. In this example there are nine groups, so each gene appears in nine rows, and the table has 1,593 rows for the 177 genes. Each row gives the group, the gene, the “mean” column with the mean expression of the gene in that group, the “value” column with the z-score used for clustering, and the cluster number. For example, Clec10a has a mean expression of 3.33 in 2mo_WT and 1.38 in 2yr_WT; after the z-score transformation these become 1.69 and -0.391, and the gene belongs to cluster 2, the genes that are high in the 2mo groups and low in the 1yr and 2yr groups. The long format is useful when the table is downloaded to make plots or to filter the data in other software.


