Clustering of the structures by using “snakes-&-dragons” approach, or correlation matrix as a signal
Authors:
Victor P. Andreev aff001; Gang Liu aff001; Jarcy Zee aff001; Lisa Henn aff001; Gilberto E. Flores aff002; Robert M. Merion aff001
Authors place of work:
Arbor Research Collaborative for Health, Ann Arbor, Michigan, United States of America
aff001; Department of Biology, California State University, Northridge, California, United States of America
aff002
Published in the journal:
PLoS ONE 14(10)
Category:
Research Article
doi:
https://doi.org/10.1371/journal.pone.0223267
Summary
Biological, ecological, social, and technological systems are complex structures with multiple interacting parts, often represented by networks. Correlation matrices describing interdependency of the variables in such structures provide key information for comparison and classification of such systems. Classification based on correlation matrices could supplement or improve classification based on variable values, since the former reveals similarities in system structures, while the latter relies on the similarities in system states. Importantly, this approach of clustering correlation matrices is different from clustering elements of the correlation matrices, because our goal is to compare and cluster multiple networks–not the nodes within the networks. A novel approach for clustering correlation matrices, named “snakes-&-dragons,” is introduced and illustrated by examples from neuroscience, human microbiome, and macroeconomics.
Keywords:
functional magnetic resonance imaging – Microbiome – Snakes – Macroeconomics – Tongue – Hierarchical clustering – Shannon index – Consensus clustering
Introduction
Inherent in our human nature is the desire to group similar objects together to better understand the world around us. It is easy to compare and group objects characterized by a single (scalar) attribute. It becomes more complex when an object is characterized by a vector of multiple attributes, although numerous clustering methods already allow for useful classifications of vectors [1]. A classification task becomes challenging with increasing complexity of the object, for example, where the interaction of object parts and attributes constitutes important characteristics of an object or a system. Indeed, some of the most engaging and challenging unresolved questions in biological and social sciences center on the comparison of functions and structures of complex systems. In this case, a system can be characterized by a matrix of interdependencies between its parts and attributes. By collecting data on the attribute levels over time or another dimension resulting in repeated measures, one can generate correlation matrices that characterize attribute interdependence and reveal important structural features of the system. In this paper, we aim to extend clustering methods to a task of comparing and classifying objects characterized by correlation matrices.
Existing methods for comparison of correlation matrices were developed mainly in evolutionary biology and applied to genetic and phenotypic variance-covariance matrices. These methods represent the differences between two matrices as one number—a similarity measure or a pairwise distance calculated by random skewers (RS), T-, or S-statistics [2–5]. Briefly, the existing methods to compare matrices are as follows: Cheverud [3] applied Pielou’s “random skewers” (RS) technique [4], which multiplies target matrices by the same randomly-generated vector (“skewer”) and averages results across numerous realizations of the vector to yield a matrix distance measure. Roff et al [2] proposed the T-method that measures the distance between matrices using a single summary statistic. More recently, Garcia proposed S-statistics, which estimates matrix distance by comparing the variance explained by the eigenvectors of each matrix [5]. These reductionist approaches have at least two limitations: (a) one number cannot adequately represent multidimensional differences; and (b) pairwise distance admits only hierarchical clustering, while other clustering methods use vectors representing multidimensional attributes of the object and might better suit the problem.
Several other approaches or variations of the above methods have also been proposed, e.g., by Goodnight and Schwartz, Calsbeek and Goodnight, Phillips and Arnold, and Flury [6–10]. However, these methods are either only applicable to a specific field of study or make strict assumptions that are not plausible in many settings. For these reasons, we focus on the distance measures from Roff et al’s T-method [2], Chevrud’s random skewers [3], and Garcia’s S-statistics [5] for comparison in the current study.
The innovative solution proposed in our paper is to create a novel although intuitively simple theoretical concept called a “snake” vector (Fig 1A), formed by making a serpentine path through the off-diagonal terms of the correlation matrix. The “snake” vector captures information on interactions between attribute variables and thus represents the system structure. Combining “snake” vectors with various other vectors representing the state of the system, e.g., vector of attribute means and variances, and overall properties of the system, e.g. number of hubs, connectedness, and small-worldness and the degree distribution [11] of the corresponding network, yields a concatenated segmental structure. We term this more complex object a “dragon” vector (Fig 1B) to designate that the analogous structure is more elaborate than the “snake”. Dragon vectors reflect not only the structural properties, but also the state of the system and allow classification based on multiple types of characterizations of complex systems. For instance, information on the initial (or average) state of the system can be described as a vector of the initial (or average) values of its attributes (creating the “head of the dragon”), while the snake formed from the correlation matrix of repeated measures will form the “tail of the dragon”. More information on the details of the snakes-&-dragons approach is provided in the Methods section. Importantly, the proposed approach allows the use of a legion of existing methods developed for clustering of multidimensional vectors.
The proposed “snakes-&-dragons” approach is illustrated by several examples. First, we clustered brain connectivity matrices derived from resting state functional magnetic resonance imaging (fMRI) experiments [12]. Then we clustered correlation matrices describing co-occurrence of the over 10,000 microorganisms in the microbiome of gut, palm, forehead, and tongue regions of 52 students over seven weeks [13]; and finally we clustered the correlation matrices of macroeconomic development indicators from over 200 economies collected by the World Bank [14]. We clustered these correlation matrices using our proposed “snakes-&-dragons” approach and compared results with those derived from clustering based on existing measures of pairwise distances (random skewers, T- and S-statistics). We evaluated the quality of clusters by using internal validation criteria comparing within-cluster variability with between-cluster variability [15–17]. In the cases where the true cluster membership can be hypothesized, e.g., from the demographic data (for instance young vs. old), or is known as in the case of the simulated data, we determined misclassification error rates [18], and compared them using our and other approaches. Next, we examined the number of significantly different variables across the clusters, testing all the variables used for clustering and other variables such as demographics. This provides not only the proof of cluster distinctiveness but also the information about the possible factors driving cluster membership. We believe that the high values of cluster validation criteria together with the high percentage of significantly different variables across the clusters could illustrate that identified clusters meet the concise definition of clustering given by Liao [19] as: “identifying structure in an unlabeled data set by objectively organizing data into homogeneous groups where the within-group-object dissimilarity is minimized and the between-group-object dissimilarity is maximized.”
Materials and methods
Data sets
First, we briefly describe data sets used to illustrate and validate our proposed snakes-&-dragons approach to clustering correlation matrices.
Brain connectivity matrices from old and young healthy subjects
Brain connectivity matrices arise from the observation that the blood oxygen level-dependent (BOLD) fMRI signal is correlated between spatially separated but functionally related brain regions [20–21]. Multiple fMRI studies of resting state brain activity showed that matrices of correlation coefficients of BOLD signal between brain regions (connectivity matrices) differ in health and disease, especially in mental disorders [21–22]. Several studies demonstrated changes in brain connectivity matrices related to aging [23–24]. A pilot data set of brain connectivity matrices used in our study was created at Washington University in St. Louis. It includes connectivity matrices from 20 healthy subjects older than 60 (#1- #20) and 17 subjects younger than 27 (#21- #37). The data set of older subjects was obtained with permission from the Washington University Alzheimer’s Disease Research Center and served in their study as a control group (Clinical Dementia Rating = 0 and CSF biomarker negative). The data set of younger subjects is the same as used in [25–26] with mean age 23.1 years and range 18–27; all of them were screened to exclude neurological impairment and use of psychotropic medications. Connectivity matrices with 36 functional areas were then calculated from the fMRI scans using the Washington University pipeline described in [27]. Then the 37 connectivity matrices were clustered by using our snake vector approach, without using any demographic information.
Brain connectivity matrices from the Brain Genomics Superstruct Project
The Brain Genomics Superstruct Project Open Access Data Release (GSP) is a carefully vetted collection of neuroimaging, behavior, cognitive, and personality data for 1,570 human participants (ages 18–35) [12]. GSP data include not only demographic data (age, handedness, sex) for all participants, but also anatomical information on the brain and its regions for each of participants. The 169 brain areas were divided into 10 networks: visual foveal (VFN), visual peripheral (VPN), dorsal attention (DAN), motor (MN), auditory (AN), cingulo-opercular (CON), ventral attention (VAN), language (LN), fronto-parietal (FPN), and default mode (DMN) [26]. Connectivity matrices were calculated from the fMRI scans using the Washington University pipeline [27] for the first 500 participants of the GSP cohort that had two BOLD fMRI runs and cognitive behavioral data.
Microbiome data for healthy college-age adults
Flores et al collected longitudinal (10 weeks) data to analyze temporal dynamics of forehead, gut, palm, and tongue microbial communities among 85 healthy college-age adults from three US universities [13]. A 49-question demographic, lifestyle, and hygiene survey augmented the weekly sample collection. Based on relative abundance of over 10,000 microbial species measured as operational taxonomic units (OTUs) in each sample, investigators found high variability in the microbiome over time. In our study, we aim to characterize the temporal changes in the microbiome by exploring correlations between weekly samples of microbiomes within each individual. By clustering individuals’ correlation matrices, we identified subgroups of students representing different patterns of microbiome dynamics.
Macroeconomics development indicators from the World Bank
Since 1960, the World Bank has collected 1,500 yearly macroeconomic development indicators from over 200 economies, including: 1) gross domestic product (GDP), 2) unemployment, 3) inflation, 4) net trade in goods, 5) labor force participation, 6) foreign direct investment, and 7) gross domestic savings [14]. As a proof-of-concept example, we used the time series data on the seven indicators to create 7-by-7 correlation matrices for each of the 200 economies and then clustered them by using snake vectors.
Analytical methods
In this paper, we compare and cluster correlation matrices from the above four data sets by using existing methods for matrix comparison and our novel “snakes-&-dragons” approach.
Existing methods to compare matrices: random skewers, T-statistic, S-statistic
Approaches to compare and calculate distances between matrices were developed in evolutionary biology and might be unfamiliar to researchers outside of that field. Therefore, we briefly describe three of the existing approaches used in this paper: random skewers (RS), T-statistic, and S-statistics. The RS procedure samples from a uniform [–1, 1] distribution to form random vectors [28]. Multiplying correlation matrices by these vectors yields response vectors. If the compared correlation matrices are similar, the responses to the same selection vector should be similar as well. The correlation among response vectors is averaged over multiple random vectors—100 replicates in our example—to estimate similarity between two objects. Another method for comparing matrices is the T-statistic [2], describing dissimilarity between two matrices as the sum of the absolute differences between corresponding matrix elements. The third method is the so-called S-statistic [5]. Garcia introduced three S-statistics to represent the divergence between two correlation matrices, all based on the idea that if two covariance matrices are similar, an eigenvector set resulting from principal component analysis (PCA) of one matrix will explain a similar amount of variation in the other matrix. We considered the first, S1, which Garcia described as a general measure of differentiation, characterizing the ability of eigenvectors from one sample to explain the variation in the other sample. By contrast, S2 compares orientation of eigenvectors of the same ordinal position in the two sets and S3 evaluates differences in shape of eigenvectors in the same ordinal position between the two sets. We performed hierarchical clustering based on the resulting similarity matrices.
Creating “snakes-&-dragons”
We propose to extract details from correlation matrices into a new object that we call a “snake” vector. The “snake” vector forms from a serpentine path through the off-diagonal terms of a correlation matrix and captures information on interactions of the variables, i.e., the system structure (Fig 1A). Many methods exist for clustering of vectors, allowing for the choice of the optimal clustering method for a given data set or problem. To augment and complement the information on the structure of the systems with the information on the state of the systems, we additionally introduce the class of objects that we call “dragon vectors” or “dragons”. Here we suggest four types of dragons. Dragon 1 integrates state descriptors and structural descriptors by concatenating the snake vector with a vector of variable means and a vector of variable variances (Fig 2A). Dragon 2 (Fig 2B) integrates structural descriptors with overall network property information. While the snake vector contains individual correlations between system attributes or between nodes of a network to represent structural descriptors, measures of network integration can describe the system in a different way. For example, average connectivity, number of nodes/hubs, average or shortest path length, or number of first neighbors have previously been used to characterize networks [11, 29–30]. These measures can be concatenated with the snake vector to form a dragon for clustering. Dragon 3 (Fig 2C) is created by combining correlations along multiple dimensions or locations. We used this approach in the analysis of the microbiome data set, which contains measures of microbial OTUs at four sites on the human body at several time points in many subjects. The correlation matrix for each body site yields a different snake vector. By concatenating multiple snakes, all data descriptions can influence the clustering. Similarly, Dragon 4 (Fig 2D) can be created by combining different types of data, e.g., correlation matrices of clinical, transcriptomic, proteomic, and metabolomic variables derived from repeated measures combined with the genomics data and baseline demographics and clinical data, which would create the “head” of the “dragon”. While snake vectors can be clustered as they are, since the elements of the correlation matrices are always in the range from -1 to 1, dragon vectors require several refinements prior to processing. First, clustering algorithms often gravitate toward elements of greater magnitude. We thus put all variables on a common scale to ensure all variables can fairly influence the decision-making. When a data set has a natural comparison group, e.g., with cases and controls, observations on cases can be centered and scaled using the mean and standard deviation of the corresponding variable among controls. In the absence of such a control group, as in this study, we center variables by each variable’s mean and scale by the square root of its average variance. Additionally, cluster results should not be affected by including variables reflecting redundant information. To mitigate that prospect, we suggest performing PCA on the matrix of assembled dragon vectors and then clustering based on the principal components (PCs). We provide more detail on clustering of the PCs of the dragon vectors in the Supplemental Material, where we compare three approaches and illustrate the possible advantage of weighting PCs by the percentage of variance each of them explains.
Clustering methods
Many clustering methods exist, including k-means clustering, fuzzy k-means clustering, hierarchical clustering, k-medoids, affinity propagation, and others [1]. Choosing among algorithms and choosing the number of clusters is often achieved using internal validation statistics, such as Calinski, silhouette, or connectivity [15–16]. None of the clustering methods is ideal in all settings, and the optimal choice depends on the underlying data’s properties, which is not always recognized by the users of clustering algorithms. For example, Dolnicar found that clustering studies typically do not match data conditions with clustering methodology, but instead just use Ward’s hierarchical and k-means clustering [31]. Halkidi et al noted that many studies omit cluster validation, despite its importance and the availability of tools for implementation [17]. They suggested that new clustering algorithm development should include simulated data sets that mimic the properties of biological data to allow for controlled study of an algorithm’s sensitivity. Our group recently compared three clustering methods—hierarchical, k-means, and k-medoids—using simulated targeted proteomics data [18]. We demonstrated that k-means had the lowest misclassification error for identifying biomarker signatures, but also that results varied with different correlations between biomarker levels. The study illuminated the importance of the structure of the correlation matrix of the variables in determining the optimal clustering method [18].
Clustering of snake vectors and dragon vectors in this study is performed using a resampling-based consensus clustering method introduced by Monti et al [32]. As implemented in our study, this method can be briefly described as follows. We performed 1,000 instances of random samplings with replacement, each selecting a subset including 80% of N objects (snake or dragon vectors under study). We then partitioned each of the subsets into clusters using a k-means clustering algorithm (implemented as the MATLAB® function kmeans; MathWorks, Natick, MA) with k value scanned from 2 to 8. Then the N x N consensus matrix was created representing the results of these 1,000 partitions. Each element of the matrix represented the proportion of times that the two objects were included in the same cluster, i.e., the ratio of the number of times a given pair of objects were included in the same cluster to the number of times both of the objects were selected in the random 80% subset. Therefore, each element of the matrix can be interpreted as a probability that two objects belong to the same cluster. Hierarchical clustering (using MATLAB® function clustergram) was then performed using elements of the consensus matrix as the distance measure between objects. Resulting clusters (for each scanned value of k) were then examined by using Calinski’s “quality of clustering” criterion, which compared the between-cluster differences with the within-cluster differences and allowed determination of the optimal number of clusters [15].
For RS, T-, and S- statistics, hierarchical clustering was used since it is the only method that can work with these measures of pairwise distances between objects (vectors, matrices). Hierarchical clustering was used also to cluster snake vectors when comparing with hierarchical clustering based on RS, T-, and S-statistics. Hierarchical clustering was performed using the clustergram MATLAB function with the Ward distance option.
Comparison with Rasero’s approach to clustering of brain connectivity matrices
There are some similarities between the consensus clustering approach to group brain connectivity matrices developed by Rasero et al [33–34] and our snake-&-dragon approach, especially at first glance: both approaches are used to cluster brain connectivity matrices (although our method is illustrated by other applications as well) and in both approaches consensus clustering is involved. However, closer examination reveals important differences. First, consensus clustering constitutes the necessary part of Rasero’s approach, while clustering of snake vectors can be performed by any clustering method, including hierarchical and k-means (as shown in the Results section). Consensus clustering just happens to work better than other tested methods, but is not necessary for the implementation of our snakes-&-dragons approach. Second, our approaches use very different types of consensus clustering. We use resampling-based consensus clustering introduced by Monti et al [32], where the essence of the method is in creation of multiple (e.g., 1000) overlapping subsets by random resampling (with replacement) from the cohort of individuals. Then, each subset of individuals is clustered, and finally, consensus on the cluster membership is established based on the frequency of occurrence of the individuals in the same clusters. The advantage of resampling-based consensus clustering is that it ensures the robustness of the clustering results to random fluctuations of the composition of the cohort of individuals. In contrast, consensus clustering in Rasero’s approach does not resample individuals. They “apply a clustering algorithm separately to the connectivity map of each node” and then “the consensus strategy is exploited to combine the information arising from the different nodes.” Therefore, at each clustering attempt they use only limited information about the similarity in the connectivity patterns for the given element of the connectivity matrix, while in our approach, information on the whole connectivity matrix (in the form of a snake vector) is used at each clustering attempt. As formulated in the second paper by Rasero et al [34]: “consensus strategy was used to combine the information about the data structure arising from different features so as to summarize them in a single consensus matrix.” Since similarities among individuals can differ dramatically across the features (two individuals can be quite similar with regard to feature A and dissimilar with regard to feature B), the level of consensus in the consensus matrices generated by this approach is quite low. See Fig 2, Rasero et al 2017[33]: the fraction of partitions for which subjects i and j are assigned to the same group is below 0.35. In contrast, the typical values of consensus in our approach of clustering snake vectors is above 0.8. Low levels of consensus in Rasero’s approach could make clustering decisions difficult. We believe that our approach has important advantages such as robustness to the random fluctuations of the composition of the cohort and seamless integration of all features in each clustering attempt. Future studies combining the two approaches might lead to the enhancement of both methods.
Simulating correlation matrices with a controlled noise level
When working with real data, one disadvantage is that the true cluster membership is not known, so it might be difficult to evaluate the misclassification error rate. Thus, in order to evaluate clustering of connectivity matrices using snake vectors, we created simulated data that had clear “labels” (e.g., older or younger brain connectivity matrices). In this study, we selected two substantially different brain connectivity matrices, #1 and #29, as representatives of old and young brains, respectively (from the 37 healthy young and old subjects pilot data set described above). Based on these two prototype matrices, we simulated two matrix classes by adding a controlled amount of noise. Since correlation matrices need to satisfy certain conditions (i.e., being a positive-semidefinite matrix), we cannot just add noise to each component of the matrix. Instead, we used the procedure suggested by Schafer et al, which simulates noise by repeatedly sampling from multivariate normal distributions with given standardized covariance matrices [35]. Briefly: we take the q x q brain connectivity matrix and use it as a covariance matrix to simulate the multivariate normal distribution from which we sample n times to generate a q x n data matrix. Then, we calculate the q x q correlation matrix from this data matrix. The higher the n the closer the new correlation matrix to the original connectivity matrix will be. Decreasing n may be viewed as adding noise, since the role of randomness is higher when the normal distribution is sampled more sparsely. This procedure allows the amount of noise to vary by changing a q/n ratio, where q is the number of variables (here number of brain regions q = 36) and n the number of times the multivariate normal distribution is sampled to create a data matrix used to calculate the correlation matrix. Importantly, each time we randomly sample the multivariate normal distribution, we get a different q x n data matrix and the q x q correlation matrix, even for the same value of n. Fig 3 shows single instances of simulated correlation matrices when the q/n ratio is set to 0.1, 3, 6, 9, and 12 for brain connectivity matrix #1. The similarity of the simulated matrices with the original prototypic connectivity matrix #1 is clearly decreasing.
Fig 4A and 4B demonstrate how the instances of simulated correlation matrices differ from each other for given values of n. As seen, the variability across the instances is higher the lower the n. To test and compare the performance of the snake vector approach with the existing measures of matrix dissimilarity, we simulated 20 such matrices for each value of the q/n ratio for prototypic old and prototypic young brain connectivity matrices (#1 and #29) and conducted clustering on the 40 simulated connectivity matrices for each q/n value. This enabled us to compare the ability of the various clustering methods to correctly classify the correlation matrices as young or old in the presence of an increased level of noise. To make better sense of what q/n means in terms of added noise and variability of the simulated connectivity matrices, we calculated the histograms of standard deviations of the elements of the simulated connectivity matrices for various q/n values (shown in Fig 5A). Clearly, standard deviations are higher for larger q/n values. Then, we defined the signal/noise ratio (SNR) describing difference between two clusters of correlation matrices as follows:
Statistical tests
The statistical tests for differences across clusters in this paper include Chi-square tests (MATLAB® function crosstab) for categorical data, analysis of variance (ANOVA, MATLAB® function anova1) for continuous data that follow a normal distribution, and the Kruskal-Wallis test (MATLAB® function kruskalwallis) for continuous data that do not follow a normal distribution. We controlled for the false discovery rate from multiple hypothesis testing using the Benjamini-Hochberg procedure (MATLAB® function mafdr).
Results and discussion
Here we demonstrate the results of cluster analysis of the four data sets described above by using the snakes-&-dragons approach. In clustering brain connectivity matrices from the 37 young and old healthy subjects pilot data set and the GSP data set, we provide not only the results of clustering but also the comparison with existing methods of correlation matrix comparison (RS, T-, and S-statistics), and evaluation of the quality of clustering. The microbiome example serves to illustrate the use of the dragon concept and demonstrates the Dragon 3 vector described above. The World Bank example demonstrates the broadness of the snakes-&-dragons approach and its applicability outside of the biomedical field.
Brain connectivity matrices. Conventional measures vs. clustering of the snakes
The pilot data set of brain connectivity matrices of young and old healthy subjects was first used to examine the existing methods of matrix comparison. Pairwise distances between 37 brain connectivity matrices were determined by using RS, T-, and S-statistics. Then, hierarchical clustering was performed using the pairwise distances. The resulting dendrograms are presented in Fig 6; Fig 6A presents clustering based on RS, 6b on T-statistics, and 6c on S-statistics, while Fig 6D presents the results of hierarchical clustering of snake vectors. Dendrograms differ for the above four approaches, although all of them define two large clusters. Assuming that the true cluster membership is determined by the age of the participants, with 20 old participants and 17 young, we can calculate confusion matrices (Fig 6E–6H) as well as the misclassification error rate (Table 1) for each of the dendrograms. Note that the misclassification error is the lowest when the snake vector approach is used. Note that here we used hierarchical clustering with RS, T-, and S- statistics, as well as with the snake vector approach to allow for direct comparison. The reduced misclassification error here should be attributed to the use of the snake vectors approach, which preserves more information on the geometrical structure of the clusters in the multidimensional space and allows the usage of any clustering method with appropriate distance measure.
Interestingly, the snake vector approach clustered three older brains (#10, 12, and 16) into the younger brain group, while all 17 young brains were correctly clustered together (Fig 6D). Notably, the use of random skewers also resulted in clustering of these three brains into the younger group (Fig 6A), while the use of the T-statistic clustered brain #10 into the younger group, and using the S-statistic clustered both brains #10 and #16 into the younger group. The problem with clustering real data is that one never knows the true class membership. Given the consensus between the four methods with regard to brain #10 and the consensus of three methods with regard to brain #16, it is possible that these brains preserved the properties of the young brains due to genetic or lifestyle factors despite their older age.
In order to further evaluate the quality of clustering with the snakes approach, we used the simulated data created from the prototypical young (#29) and old (#1) brain connectivity matrices, as described in the Methods section. Note that brains #29 and #1 are distinctly different according to dendrograms from all four clustering methods (Fig 6). Since we know the true cluster memberships for the simulated data, we can calculate misclassification error for each clustering algorithm (Fig 7). Here in addition to using hierarchical clustering with RS, T- and S-statistics, and with snake vectors, we examined the use of snake vectors with k-means clustering and with resampling-based consensus clustering (as described in Methods section). Misclassification errors up to q/n = 4 (SNR≥1.203 as defined by Eq 1) are all zero for all methods. For q/n > 6 (SNR<0.95), clustering correlation matrices using the snake vectors approach outperforms the clustering using RS, T-, and S-statistics by having the lowest misclassification error rates, regardless of whether the hierarchical, k-means, or consensus clustering method is used. The best performance at q/n = 12 (SNR = 0.45) is demonstrated by consensus clustering of snake vectors due to higher robustness to the added random noise.
Clustering of 500 brain connectivity matrices from the GSP project
Next, we applied our snake vectors approach to the clustering of 500 brain connectivity matrices from the GSP project. To cluster snake vectors derived from the connectivity matrices we used the resampling-based consensus clustering method as described in the Methods section. Fig 8A presents the heat map for the 500 x 500 consensus matrix. Each element of the matrix provides the probability that two brain connectivity matrices belong to the same cluster. Consensus clustering identified two distinct clusters with sample sizes N1 = 160 and N2 = 340. Use of the Calinski criterion also confirmed the number of clusters as two (Fig 8B).
Table 2 presents some anatomical and demographic variables of interest describing GSP participants but not used for clustering. Eight out of 81 such variables were significantly different across the two clusters; two of the variables remained significantly different after the correction for multi-testing (FDR corrected p-values < 0.05) [36]. Ethnicity was significantly different (FDR corrected p-value = 0.004) between the two clusters and sex was borderline significant (FDR corrected p-value = 0.055 and uncorrected p-value = 0.006), with cluster 2 having more white and female participants. Right vs. left handedness was not significant (p = 0.9).
Even more interesting is the comparison across the clusters of the variables that were used for clustering, i.e., the elements of the connectivity matrices. Fig 9A presents the average connectivity matrix for cluster 1 and Fig 9B for cluster 2. Fig 9C provides mean differences between connectivity matrices averaged across brains in cluster 2 and brains in cluster 1, while Fig 9D indicates by black dots which of the differences were significant (FDR corrected p-value < 0.05). A total of 8395 (out of 14196) elements of the connectivity matrices were significantly different even after the FDR correction for multi-testing [36]. Importantly, most of the significantly different elements of the connectivity matrices were not randomly distributed; they are rather concentrated within known brain subnetworks (defined in the Methods section and Fig 9 caption). Average correlation within the default mode network is significantly and substantially (over 26%) higher in cluster 2 than cluster 1, while the motor network is 26% more highly correlated in cluster 1 than cluster 2. Multiple average correlations between the known subnetworks were significantly different (FDR corrected p-value < 0.05) between cluster 1 and 2 as well, as shown in Table 3, e.g., VFN and CON are almost 215% more correlated in cluster 2 than in cluster 1. Importantly, the use of the snake vector approach allows identification of these distinctly different clusters.
Using snakes-&-dragons for clustering of microbiomes of healthy college-age adults
For the microbiome data described in [13] and briefly in the Methods section, we calculated the correlations across OTU counts observed at seven time points (weeks) at four body sites (gut, tongue, palm, and forehead) to explore the temporal changes in each subject’s microbiome. We created 7x7 correlation matrices for each person and each body site to represent the similarities between the observed seven weeks in terms of the microbiome composition. We then conducted a cluster analysis using these correlation matrices and our snake vectors approach to identify subgroups of individuals sharing similar patterns of microbiome changes over time. We used three approaches to compare the above correlation matrices: 1) we clustered individuals by using data only from the gut and explored the correlation matrices for the other three sites; 2) we clustered the individuals using data from the gut, tongue, palm, and forehead separately; 3) we created dragon vectors by concatenating snake vectors for the gut, tongue, palm, and forehead and then clustered these dragon vectors. Analyses were performed on 52 students (out of 85 total) who provided samples from all four body sites for at least seven consecutive weeks. Figs 10 and 11 present the correlation matrices averaged across the members of the identified clusters. Note that students were clustered not by the composition of their microbiome, but rather by the pattern of change of their microbiomes over time, i.e., the dynamics of their microbiomes.
Fig 10 illustrates the first approach, where clustering is based on gut microbiome data, which resulted in three clusters named Gut 1 (n = 9), Gut 2 (n = 16), and Gut 3 (n = 27). As seen in Fig 10A, for students in cluster Gut 1, the gut microbiome was highly correlated during weeks 2 through 5, while at weeks 1 and 6 their microbiomes were quite different from other weeks. There seems to have been some abrupt changes in the gut microbiomes of these students during weeks 1 and 6. For students in cluster Gut 2, the gut microbiome was moderately correlated across all 7 weeks and the level of correlation between the adjacent weeks was slightly oscillating in time. Students in cluster Gut 3 had stable gut microbiomes that did not change much over time. Comparison of the correlation matrices of tongue, palm, and forehead microbiomes for the Gut 1, 2, and 3 clusters (Fig 10B–10D) demonstrates that forehead and tongue microbiomes were relatively stable over time for all gut-based clusters, while the palm microbiome was less correlated over time. This is not surprising since palm microbiome communities are most affected by the environment in daily life.
In the second analysis, we clustered individuals based on the data from each of the four sites separately. The correlation matrices for each site averaged across each cluster are shown in Fig 11. We have identified three clusters in each of the four sites. Among these three clusters for each site, we have one cluster that has generally large correlation across all the weeks and one cluster that has relatively small correlation across all the weeks. We also have one or two clusters for each site that has one or two weeks that are quite different from the others; it is most pronounced in Gut 1, but is also present in Palm 1, Palm 2, Forehead 1, and Tongue 1. These peculiar weeks vary from site to site, which demonstrates different dynamics of the temporal evolution of microbial communities over the seven weeks.
Fig 12 provides Sankey diagrams for pairwise comparison of cluster membership across the four body sites. Note that cluster membership was similar when clustering was based on gut and tongue microbiomes—the most similar clusters being Gut 3 and Tongue 3.
In the third analysis, we clustered individuals using data from all four sites together. For each individual, we concatenated snakes from each site (forehead, tongue, gut, and palm) to form a “dragon” vector. We found three clusters: Body 1, 2, 3 (Fig 13A) with 12, 18, and 22 subjects in each cluster. For cluster Body 1, only the tongue microbiomes were highly correlated over time. For cluster Body 2, both tongue and gut microbiomes were highly correlated, while only the forehead microbiome was highly correlated over time for cluster Body 3. These results suggest the existence of subtypes representing different dynamics of microbial communities throughout the body. Sankey diagrams (Fig 13B) demonstrate that the cluster Body 3 is similar in membership to Forehead 2 and is driven by the high temporal stability of the forehead microbiome in this cluster. Cluster Body 2 is mostly formed by the members of the Tongue 3 cluster with highly stable tongue microbiome, and cluster Body 1 includes members of various site-specific clusters.
Table 4 provides overall microbiome, demographic, and behavioral data for each of the clusters identified in the above analyses, allowing interpretation and providing possible reasons for the similarities and differences in the patterns of microbiome dynamics. Note that the actual microbiomes within the clusters could be quite different while the patterns of microbiome dynamics are similar. The top three rows of the table characterize the diversity of the microbiome within the given site averaged across the members of each cluster. The total number of OTUs (which can serve as one of the measures of microbiome diversity) was calculated by counting the OTUs that were observed in a sample from any week for each student and then averaged across all the students in the given cluster and rounded to the closest integer. Each OTU was counted only once even if it was observed at multiple weeks. Another important measure of diversity is the Shannon Index (SI), defined as SI=−∑i=1Rrilnri, where ri is the measure of relative abundance of the given OTU, i.e., the ratio of the abundance of the given OTU to the abundance of all observed OTUs, and R is the total number of observed OTUs for the given sample. The values of the SI for each student, site, and week from the supplementary data of [13] were averaged across the weeks and across the members of the identified clusters. The SI characterizes the diversity of the microbiome by taking into account not only the number of OTUs but their abundances as well [37]. Higher values of the index describe diverse populations; lower values of the index describe populations dominated by a single taxon (OTU). In the case of a single taxon, SI = 0, while in the case of all taxa (OTUs) being represented equally SI = ln(R). In order to simplify the comparison of sites and students with different numbers of OTUs, we also calculated the normalized SI equal to SI/ln(R), which has the maximum possible value of one and minimum of zero.
As noted in [13], the highest diversity in terms of the number of OTUs and the highest SI values were observed at the skin surfaces (palm and forehead) which are most exposed to contacts with the environment. However, the highest values of SI and normalized SI of all skin sites were observed for Palm 3 (SI = 6.10) and Forehead 3 (SI = 5.61), which demonstrated low correlation of microbiomes across the 7 weeks. The microbiomes of the forehead-based clusters were significantly affected by the use facial cosmetics (p-value 0.036), e.g., Forehead 2 is characterized by the highest percentage (67%) of members using facial cosmetics daily, relatively low value of SI = 4.08, and high value of normalized SI = 0.9, indicating nearly equal representation of all OTUs.
Gut-based and tongue-based clusters demonstrated lower diversity in terms of lower numbers of OTUs, and lower SI and normalized SI values. The lowest values of the Shannon Index were observed in Tongue 1 (SI = 3.42) and Gut 1 (SI = 4.69), which also demonstrated abrupt changes in microbiomes at least twice in 7 weeks. The important role of the Shannon Index in predicting stability of the microbiome was already discussed in [13]; here we confirm this observation for the sites less exposed to environmental influences and identify clusters of participants with lower gut and tongue microbiome stability, which also demonstrated lower microbiome diversity. The explanation for lower diversity or stability of the microbiome in these groups of students is not clear. It might be related to race and ethnicity since the less stable clusters Gut 1 and Tongue 1 have a higher proportion of non-Caucasians and non-Hispanics (reported as race/ethnicity = other in Table 4). These clusters also have a higher proportion of students from the University of Colorado, Boulder and may be hypothetically related to some of them eating at the same places (e.g., school cafeterias). It is possible that the lower diversity and stability is caused by the actual composition of the microbiomes and its evolution over time, analysis of which would require construction of the covariance matrices (and snakes-&-dragons) not across weeks, but across OTUs, which will be the focus of our next paper. Nevertheless, having the ability to group individuals by microbiome variability instead of microbiome composition may prove to be a powerful tool in identifying disease predilection especially given the personalized nature of the human microbiome [38–39]. Future studies could also leverage our tool using case-control studies of disease with known microbiome components to determine if temporal groupings have health relevance.
Clustering snakes based on macroeconomics development indicators from the World Bank
To demonstrate the use of the snake vectors approach outside of the biomedical field, we created 7x7 correlation matrices for economies of 200 countries using annual data collected by the World Bank. In particular, we looked at seven important macroeconomic indices: 1) gross domestic product (GDP); 2) unemployment; 3) inflation; 4) net trade in goods; 5) labor force participation; 6) foreign direct investment; and 7) gross domestic savings. Fig 14 illustrates the results of clustering of these correlation matrices using our snake vectors approach. Each of the presented matrices are the average of the correlation matrices of the above seven macroeconomic indices across the economies belonging to the given cluster. We also fit linear regression models to assess the amount of variability (R2) in 170 other development indicators that could be explained by the eight cluster groups. Among those with highest R2 was annual GDP growth, which had a significant (p<0.001) association with the eight cluster groups and therefore may help to elucidate the different mechanisms that can drive economic growth. For example, cluster 6 had high positive correlations between GDP and unemployment, yet had the highest growth. Although initially unexpected, this result may inform novel strategies and new macroeconomic models for economic growth in developing countries such as India, Mongolia, and Egypt, all of which were in cluster 6. Thus, clustering on correlations between macroeconomic indicators may identify novel subgroups representing different economic structures.
Conclusions
We presented a novel method named “snakes-&-dragons” for comparing and subtyping of complex systems through clustering of vectors derived from the correlation matrices of the variables describing these systems. Using a real dataset and a simulated dataset on brain connectivity matrices, we showed that the novel approach outperformed the existing methods for comparison of correlation matrices (RS, T-, and S-statistics). In the analysis of brain connectivity matrices from the GSP project, our approach allowed identification of two clusters with distinctly different patterns of brain connectivity not explained by differences in demographic variables. In the analysis of the microbiome of healthy students, it allowed identification of clusters of students with distinctly different patterns of microbiome dynamics. It also allowed formulation of the hypothesis that stability of gut and tongue microbiomes is affected by the diversity of the microbiome (as described by the Shannon Index). The macroeconomic example illustrated the possibility of using the snakes-&-dragons approach outside of the biomedical field.
We have developed a clustering method capable of unsupervised classification of objects based on their structures and interactions of their parts and attributes, therefore uncovering new patterns/groupings based on previously unexplored characteristics of the systems. As for limitations, we have not yet demonstrated all of the capabilities of the dragon vectors. For instance, in the analysis of the microbiome data it would be meaningful to combine in a dragon vector the snake vectors formed from the correlation matrices across the weeks and the correlation matrices across the OTUs. In drug discovery, it would be informative to combine correlation matrices formed from the multidimensional time series of transcriptomics and proteomics data collected at various time points after the perturbation of a cell culture with the drugs of interest. We plan to explore these capabilities in our future research.
A reader of this paper may be inclined to ask, “Does it really matter how to form a snake vector, or is it just about forming a vector that includes all the elements of the upper triangle of the correlation matrix?” Our answer to this question evolved from “Not really” to “Yes and No”, and eventually to “Well, yes”, and is worth explaining here. If there is no intrinsic order of the variables upon which correlations are calculated, then the order in which correlation matrices and snakes are formed does not matter; it is important, however, that the order of variables should be the same in all correlation matrices under comparison and that the order of correlation coefficients used in snake formation should be the same as well. Similarly, the concatenation of multiple snakes or other data elements in the formation of dragons should be consistent across objects. In case an intrinsic order of variables does exist, the situation is different. Take, for instance, the situation where different time points are compared as in our microbiome example; in this case, the first “off-diagonal” of the matrix demonstrates the correlations between measurements separated by one week, the second “off-diagonal” separated by two weeks, etc. Creating snakes in any other way than the serpentine of “off-diagonals” would violate this natural order. Imagine now the situation where the system has “memory” of limited duration (such as in a Markov process); in this case, the correlation matrix would look like a ribbon of nonzero elements along the diagonal and several “off-diagonals” with zeros everywhere else, so the snake vectors representing such matrices could be truncated. Another case of intrinsic order is physical distance. We believe that the snake vector approach could be useful in analysis of Hi-C data [40–42], where the conformation of DNA in the chromosomes is derived from the matrix of distances between the nucleotides or larger elements of genome. In this case, the intrinsic variable is the distance from the beginning of the DNA chain. The periodicity of the elements of the snake vectors constructed as an off-diagonal serpentine would be informative of the DNA conformation. These matrices are huge, so the truncation of the snake vectors that represent them are computationally beneficial when possible. Even more interesting is the situation where the intrinsic order is distance in 3D space, e.g., the distance from the tumor or a lesion to the multiple locations in which biomarkers are measured. In this case, a higher dimensional analog of a correlation matrix is required which should be described by objects more complex than snakes-&-dragons, bringing to mind creatures like Zmey Gorynych from Russian folk tales–a dragon with 3 heads [43].
Supporting information
S1 Appendix [docx]
Scaling and weighting variables in constructing dragon vectors.
Zdroje
1. Duda RO, Hart PE, Stork DG. Pattern classification, 2nd ed. 2001. Wiley, New York.
2. Roff DA, Mousseau TA, Howard DJ. Variation in genetic architecture of calling song among populations of Allonemobius socius, A. fasciatus and a hybrid population: drift or selection? Evolution. 1999; 53:216–224. doi: 10.1111/j.1558-5646.1999.tb05347.x 28565178
3. Cheverud JM. Quantitative genetic analysis of cranial morphology in the cotton-top (Saguinus oedipus) and saddle-back (S. fuscicollis) tamarins. J Evol Biol. 1996; 9:5–42
4. Pielou EC. Probing multivariate data with random skewers: a preliminary to direct gradient analysis. Oikos. 1984; 42:161–165.
5. Garcia C. A simple procedure for the comparison of covariance matrices. BMC Evol Biol. 2012; 12:222. doi: 10.1186/1471-2148-12-222 23171139
6. Goodnight CJ, Schwartz JM. A bootstrap comparison of genetic covariance matrices. Biometrics. 1997; 53:1026–1039.
7. Calsbeek B, Goodnight CJ. Empirical comparison of G matrix test statistics: Finding biologically relevant change. Evolution. 2009; 63:2627–2635. doi: 10.1111/j.1558-5646.2009.00735.x 19490079
8. Phillips PC, Arnold SJ. Hierarchical comparison of genetic variance-covariance matrices. I. Using the Flury hierarchy. Evolution. 1999; 53:1506–1515. doi: 10.1111/j.1558-5646.1999.tb05414.x 28565553
9. Flury B. Common principal components and related multivariate models. 1988. John Wiley & Sons.
10. Haber A. A comparative analysis of integration indices. Evol Biol. 2011; 38:476–488.
11. Barabasi A-L, Oltvai ZN. Network Biology: Understanding the cell’s functional organization. Nature Reviews. Genetics. 2004; 5:101. doi: 10.1038/nrg1272 14735121
12. Holmes AJ, Hollinshead M, O’Keefe TM, Petrov VI, Fariello GR, Wald LL, et al. Brain Genomics Superstruct Project initial data release with structural, functional, and behavioral measures. Scientific data. 2015; 2: 150031. doi: 10.1038/sdata.2015.31 26175908
13. Flores GE, Caporaso JG, Henley JB, Rideout JR, Domogala D, Chase J, et al. Temporal variability is a personalized feature of the human microbiome. Genome Biology. 2014; 15:531. doi: 10.1186/s13059-014-0531-y 25517225
14. The World Bank 2016. World development indicators. Washington, DC: The World Bank (producer and distributor). Available at: http://data.worldbank.org/data-catalog/world-development-indicators. Accessed 9/21/16.
15. Calinski RB, Harabasz J. A dendrite method for cluster analysis. Commun Stat. 1974; 3:1–27.
16. Rouseeuw PJ. Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. J Comput Appl Math. 1987; 20(1):53–65.
17. Halkidi M, Batistakis Y, Vazirgiannis M. On clustering validation techniques. J Intell Inf Syst. 2001; 17:107.
18. Andreev VP, Gillespie BW, Helfand BT, Merion RM. Misclassification errors in unsupervised classification methods. Comparison based on the simulation of targeted proteomics data. J Proteomics Bioinform. 2016; S14:005.
19. Liao TW. Clustering of time series data -a survey. Pattern Recognit. 2005; 38:1857–1874.
20. Biswal B, Yetkin FZ, Haughton VM, Hyde JS. Functional connectivity in the motor cortex of resting human brain using echo-planar MRI. Magn Reson Med. 1995; 34: 537–541. doi: 10.1002/mrm.1910340409 8524021
21. Uddin LQ, Menon V. Introduction to special topic–resting state brain activity: implications for systems neuroscience. Frontiers in Systems Neuroscience. 2010; 4: 5–6. doi: 10.3389/neuro.06.005.2010
22. Fox MD, Greicius M. Clinical applications of resting state functional connectivity. Frontiers in Systems Neuroscience. 2010; 4:126–134.
23. Andrews-Hanna JR, Snyder A Z, Vincent JL, Lustig C, Head D, Raichle ME, Buckner RL. Disruption of large-scale brain systems in advanced aging. Neuron. 2007; 56: 924–935. doi: 10.1016/j.neuron.2007.10.038 18054866
24. Langan J, Peltier SJ, Bo J, Fling BW, Welsh RC, Seidler RD. Functional implications of age differences in motor system connectivity. Frontiers in Systems Neuroscience. 2010; 4:78–88.
25. Hacker CD, Laumann TO, Szrama NP, Baldassarre A, Snyder AZ, Leuthardt EC, et al. Resting state network estimation in individual subjects. Neuroimage. 2013; 82:616–633. doi: 10.1016/j.neuroimage.2013.05.108 23735260
26. Fox MD, Raichle ME. Spontaneous fluctuations in brain activity observed with functional magnetic resonance imaging. Nat Rev Neurosci. 2007; 8: 700–711. doi: 10.1038/nrn2201 17704812
27. Power JD, Mitra A, Laumann TO, Snyder AZ, Schlaggar BL, Petersen SE. Methods to detect, characterize, and remove motion artifact in resting state fMRI. NeuroImage. 2014;84:320–41. doi: 10.1016/j.neuroimage.2013.08.048 23994314
28. Cheverud JM, Marroig G. Comparing covariance matrices: random skewers method compared to the common principal components model. Genet Mol Biol 2007; 30(2):461–469.
29. Sun SY, Liu ZP, Zeng T, Wang Y, Chen L. Spatio-temporal analysis of type 2 diabetes mellitus based on differential expression networks. Scientific Reports. 2013; 3:2268. doi: 10.1038/srep02268 23881262
30. Albert R, Barabasi AL. Statistical mechanics of complex networks. Reviews of Modern Physics. 2002; 74:47–97.
31. Dolnicar S. A review of unquestioned standards in using cluster analysis for data-driven market segmentation. CD Conference Proceedings of the Australian and New Zealand Marketing Academy Conference 2002 (ANZMAC 2002). Deakin University, Melbourne, December 2–4, 2002.
32. Monti S, Tamayo P, Mesirov J, Golub T. Consensus clustering: A resampling-based method for class discovery and visualization of gene expression microarray data. Machine Learning. 2003; 52:91–118.
33. Rasero J, Pellicoro M, Angelini L, Cortes JM, Marinazzo D, Stramaglia S. Consensus clustering approach to group brain connectivity matrices. Network Neuroscience, 2017,1 (3): 242–253 doi: 10.1162/NETN_a_00017 29601048
34. Rasero J, Diez I, Cortes JM, Stramaglia S. Connectome sorting by consensus clustering increases separability in group neuroimaging studies. Network Neuroscience, 2019, 3(2): 325–343. doi: 10.1162/netn_a_00074 30793085
35. Schafer J, Strimmer K. A shrinkage approach to large-scale covariance matrix estimation and implications for functional genomics. Stat Appl Genet Mol Biol. 2005; 4:32.
36. Benjamini Y, Hochberg Y. Controlling the false discovery rate—a practical and powerful approach to multiple testing. J Royal Statistical Society, Ser B. 1995; 57:289–300.
37. Magurran A. Measuring Biological Diversity. Oxford: Blackwell Publishing; 2004.
38. Turnbaugh PJ, Ley RE, Hamady M, Frazer-Liggett CM, Knight R, Gordon JI. The human microbiome project. Nature. 2007; 449:804–10. doi: 10.1038/nature06244 17943116
39. Costello EK, Lauber CL, Hamady M, Frierer N, Gordon JI, Knight R. Bacterial community variation in human body habitats across space and time. Science. 2009; 326: 1694–7. doi: 10.1126/science.1177486 19892944
40. Dekker J, Marti-Renom MA, Mirny LA. Exploring the three-dimensional organization of genomes: interpreting chromatin interaction data. Nat Rev Genet. 2013; 14(6):390–403. doi: 10.1038/nrg3454 23657480
41. Yaffe E, Tanay A. Probabilistic modeling of Hi-C contact maps eliminates systematic biases to characterize global chromosomal architecture. Nature Genetics. 2011; 43:1059–1065. doi: 10.1038/ng.947 22001755
42. Flot J-F, Marie-Nelly H, Koszul R. Contact genomics: scaffolding and phasing (meta)genomes using chromosome 3D physical signatures. FEBS Letters. 2015; 589: 2966–2974. doi: 10.1016/j.febslet.2015.04.034 25935414
43. https://en.wikipedia.org/wiki/Slavic_dragon
Článek vyšel v časopise
PLOS One
2019 Číslo 10
- Řekněte mi, co jíte, a já vám řeknu, jaká je úroveň vaší kognice
- Původní český test ALBA pro odhalení mírných kognitivních deficitů získal certifikaci MZ ČR
- Duševní onemocnění se u teenagerů přenáší v rámci školní třídy
- Od kostiček k lidské kůži. Jak si postavit 3D biotiskárnu?
- Prof. Libor Grubhoffer: Nová varianta mpox je příležitostí pokročit v poznání původce varioly
Nejčtenější v tomto čísle
- Correction: Low dose naltrexone: Effects on medication in rheumatoid and seropositive arthritis. A nationwide register-based controlled quasi-experimental before-after study
- Combining CDK4/6 inhibitors ribociclib and palbociclib with cytotoxic agents does not enhance cytotoxicity
- Risk factors associated with IgA vasculitis with nephritis (Henoch–Schönlein purpura nephritis) progressing to unfavorable outcomes: A meta-analysis
- Prevalence of pectus excavatum (PE), pectus carinatum (PC), tracheal hypoplasia, thoracic spine deformities and lateral heart displacement in thoracic radiographs of screw-tailed brachycephalic dogs