Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2014 Oct 17;4:6662. doi: 10.1038/srep06662

A Novel Algorithm for the Precise Calculation of the Maximal Information Coefficient

Yi Zhang 1,a, Shili Jia 1, Haiyun Huang 2, Jiqing Qiu 1, Changjie Zhou 1
PMCID: PMC4200418  PMID: 25322794

Abstract

Measuring associations is an important scientific task. A novel measurement method maximal information coefficient (MIC) was proposed to identify a broad class of associations. As foreseen by its authors, MIC implementation algorithm ApproxMaxMI is not always convergent to real MIC values. An algorithm called SG (Simulated annealing and Genetic) was developed to facilitate the optimal calculation of MIC, and the convergence of SG was proved based on Markov theory. When run on fruit fly data set including 1,000,000 pairs of gene expression profiles, the mean squared difference between SG and the exhaustive algorithm is 0.00075499, compared with 0.1834 in the case of ApproxMaxMI. The software SGMIC and its manual are freely available at http://lxy.depart.hebust.edu.cn/SGMIC/SGMIC.htm.


All kinds of relationships determine the development of things1,2,3. Relationships and associations should therefore be identified and measured to explore the rules of development. A typical example is measuring the relationships between genes by determining the associations between their expression profiles4,5. Many methods have been developed to measure associations through calculation of correlation coefficients, such as Pearson's, Spearman's, mutual information6,7, CorGC8, and maximal correlation9. Recently, Reshef et al.10 proposed a novel correlation measurement “maximal information coefficient” (MIC), and gave a 1-D dynamic programming algorithm, ApproxMaxMI, to calculate MIC. MIC does not rely on the distributional assumptions of measured data and could identify a broad class of associations compared with previous studies. The MIC of two vectors x and y is defined as follows.

graphic file with name srep06662-m1.jpg

nx·ny<B(n), B(n) = n0.6. In calculating MIC for gene expression profile vectors x and y, n is the number of data points of gene expression profiles, and nx, ny is the number of bins of the partition of the x- and y-axis10, respectively. After MIC and its algorithm were published, many applications and discussions appeared11,12,13,14,15. Reshef et al. also foresaw the possible disadvantage of the algorithm “ApproxMaxMI”, and suggested it should be replaced in the future if a method efficiently finds solutions that are closer to optimal or even optimal is developed10. Here, we conducted an initial attempt in this direction.

Results

ApproxMaxMI does not optimize the partition of the y-axis

ApproxMaxMI first fixes an equipartition of n data points with horizontal lines, and then calculates MIC values by moving vertical lines to optimize the x-axis partition. However, the partition of the y-axis should be optimized simultaneously instead of being fixed as an equipartition. MIC value of a pair of gene expression profiles (YAL001C:YAL020C) of yeast16 was 0.30732 according to ApproxMaxMI, but the MIC value optimized by exhaustive algorithm was 0.51582, this value can be obtained directly from the partition scheme in Fig. 1A. Similarly, the MIC value of YAL001C:YAL039C was 0.28519 according to ApproxMaxMI, but the MIC value optimized by exhaustive algorithm was 0.42340 which can be obtained directly from the partition scheme in Fig. 1B. Such significant differences can also be identified from the gene expression profiles of fruit fly (Fig. S1–S4; Droso174figure.zip at http://lxy.depart.hebust.edu.cn/SGMIC/SGMIC.htm). From the observations, as foreseen by Reshef et al., the MIC values calculated by ApproxMaxMI were not always convergent to optimum MIC values for the following simple proposition:

Figure 1. The optimal grid for MIC.

Figure 1

(A, B): optimal x-by-y grid of gene pairs YAL001C:YAL020C and YAL001C:YAL039C obtained by the exhaustive algorithm. Each subfigure includes 23 discrete points.

Proposition 1.1: Fixing an equipartition of n data points by horizontal lines is neither a sufficient nor a necessary condition to obtain MIC = max{I(x, y)/log2min{nx, ny}}.

Proposition 1.1 is proven in Supplementary Section 2.1. In this sense, ApproxMaxMI does not achieve the equivalent transformation from a 2-D search to a 1-D search. Theorem 1 and Proposition 6.12 of Reshef et al10 are related to algorithm convergence of ApproxMaxMI, however they only discuss the convergence to 0 of the MIC value of independent X and Y as the number of data points n→∞ rather than the convergence to the global optimum MIC value. The convergence of ApproxMaxMI cannot be proven by the approaches because of the following proposition:

Proposition 1.2: The limit property of a series is not equivalent to the property of the series items. For example, Inline graphic but Inline graphic when n is finite.

Flow and Theory of SG

Based on Simulated annealing17,18 and Genetic algorithms19,20, we proposed a novel algorithm called SG to calculate MIC values. This algorithm was implemented in SGMIC software (Algorithms 1 and 2 of Supplementary Section 2.2). The convergence of SG is proven according to Propositions 1.3 to 1.6, which are shown below. The proof of Propositions 1.3 to 1.6 is shown in Supplementary Section 2.3 to 2.6.

Proposition 1.3: If the transition matrix P of SG is derived from proportional selection, mutation probability Inline graphic, crossover probability Inline graphic, and simulation annealing Inline graphic17,18, then P = SCMA is primitive.

Proposition 1.4: In the SG algorithm, initial state i can be transited into any state j in finite expected transition time.

It's worth noting that this proposition guarantees that SG can reach the state corresponding to the optimum MIC values in finite steps from any given initial state. In fact, SG can converge to the global optimum of MIC values shown as follows.

Proposition 1.5: SG is convergent.

Proposition 1.6: SG is equivalent to the exhaustive algorithm with a sufficient number of iterations.

The equivalence of SG and the exhaustive algorithm is shown in Table S1 of Supplementary Section 3.1.

To set a gold standard for these algorithms, we provide an exhaustive algorithm (Algorithm 3 of Supplementary Section 2.2) to calculate MIC values. The flow chart of SG (Fig. S5) is shown in Supplementary Section 3.2.

Optimizing the Calculation of MIC Values with SG

SG can optimize the calculation of MIC values. Most MIC values from SG were much larger than those from ApproxMaxMI (Fig. 2 and Table S2 of Supplementary Section 3.3.) To compare the performance of SG with that of ApproxMaxMI, we employed the exhaustive algorithm to calculate 1,000,000 MIC values for fruit fly. There are 999,807 relationships having MIC values from SG and the exhaustive algorithm that matched. However, the match ratio of ApproxMaxMI was only 24,478/1,000,000 = 2.4%. Two-tailed t test showed that the average of the MIC values by SG (0.4787) was significantly different from that by ApproxMaxMI (0.3417), with a p-value of 10−100. Moreover, the mean squared difference between SG and the exhaustive algorithm is 0.00075499, compared with 0.1834 in the case of ApproxMaxMI. Therefore, SG can optimize the calculation of MIC values more effectively than ApproxMaxMI (Fig. S6 of Supplementary Section 3.4). The exhaustive algorithm is very time-consuming with more time points. It takes four and a half hours to calculate an MIC value for yeast (23 time points), so we only calculated the MIC values for YAL001C:YAL020C and YAL001C:YAL039C with the use of the exhaustive algorithm (Fig. 1A and 1B). We also compared SG with ApproxMaxMI on a larger data set of three species. From the 4,498,500 relationships mentioned above in the 3,000 genes of yeast16, fruit fly21, and locust22, our SG algorithm can obtain 4,348,253, 4,377,054, and 4,046,571 MIC values (http://lxy.depart.hebust.edu.cn/SGMIC/SGMIC.htm), respectively, which are much larger than those of ApproxMaxMI. Therefore, SG can calculate MIC values more optimal than ApproxMaxMI.

Figure 2. Comparison of MIC values between SG and ApproxMaxMI for three species.

Figure 2

The solid line represents the function y = x. (A–C): The MIC value comparison of the two algorithms for yeast, fruitfly and locust.

For random clouds at sample size n, the larger the value of n is, the more individuals (or chromosomes) and longer running time are needed to show the advantage of SG method over ApproxMaxMI. Specifically, for n < 30 points, 20 individuals are usually enough; for 30 < n < 50, 100 individuals are needed; for 50 < n < 100, we need 1000 individuals; while for 100 < n < 200, at least 10000 individuals are required. These data and running time are available in file populationchangewithN.xlsx (http://lxy.depart.hebust.edu.cn/SGMIC/SGMIC.htm). For 200 < n < 500, perhaps over 100000 individuals are needed. In this sense, for gene expression profile data, which usually have less than 50 time points, 100 individuals are enough. Because computing MIC value by SG for 500 random points need over 100000 individuals and over 12 hours, we can only calculate a SGMIC value for an example in points500example.xlsx (http://lxy.depart.hebust.edu.cn/SGMIC/SGMIC.htm), and the MIC value by SG with 100000 individuals is 0.150593, while the MIC by ApproxMaxMI is 0.14799.

For non-random relationships, the efficiency of SG is good, as shown in next section, where the majority of MIC values by SG were near 1 when the relationships had no noise, although only 20 individuals are used in SG.

Discussion

Properties of MIC Values by SG

Because SG is a precise method in calculating MIC values, we redescribed the main properties of MIC values for four classes of main relationships, namely, function relationship, non-function relationship, function with noise, and non-function with noise. Fourteen relationships without noise were drawn by us in Fig. 3, and their formulas are presented in Table S4 of Supplementary Section 4. Function relations are represented by trigonometric functions (e.g., sin and tan), power functions (e.g., y = x2), exponential functions (e.g., y = 10x), inverse proportion functions (e.g., Inline graphic), and composite functions. Meanwhile, some non-function relationships, such as the taijitu (symbol for the yin-yang principle, which originated from Yi Jing of ancient China), galaxy figure, heart-shaped line, and polygonal line, were also selected. To investigate the effect of noise on relation-measure algorithms, three relationships with increasing noise for each of the 14 relationships were drawn by us in Fig. 3. To compare different algorithms, we calculated MIC values by SG, mutual information through Covshrink-KPM (Hausser, J., Strimmer, K. Entropy inference and the James-Stein estimator, with application to nonlinear gene association networks. J. Mach. Learn. Res. 10, 1469–1484 (2009)), maximal correlation10 (ACE), Spearman's, Pearson's, and distance correlation (RIZZO, M. L., SZÉKELY, G. J. Energy: E-statistics (energy statistics). R package version 1.1-0 (2008)) for all 56 figures. Then we calculated these correlations with 2,000 random points from each figure. We came to the following conclusions after analyzing the results of the calculations (Table S5 of Supplementary Section 5):

Figure 3. 14 figures of representative relationships without noise and their 42 figures with noise.

Figure 3

In calculating correlation, 2,000 points are randomly selected from each figure.

First, the majority of MIC values by SG were near their full score of 1 when the relationships had no noise, although only 20 individuals are used in GA, it confirmed the efficiency of SG in computing MIC values. However, when some relationships (e.g., Fig. 3 A–E) were involved, SG and maximal correlation (ACE) algorithm exhibited a much better performance than that of ApproxMaxMI. Second, the MIC values by SG strictly decreased with increasing noise, a finding indicating that SG has a strong ability to distinguish noise from real signals. However, a strict decreasing trend was not observed with other algorithms. For example, the maximal correlation (ACE) of d1, d2, d3, and d4 was 0.33508, 0.64533, 0.55032, and 0.22122, respectively.

The Application in Predicting Yeast Protein Interaction

To describe the performance of SG more intuitively, we use the Data Repository Yeast Genetic Interactions (DRYGIN for short)23, which are derived from large-scale Synthetic Genetic Array (SGA) genetic analysis and the Genetic interaction score (ε) can represent the genetic interaction quite accurately. The file sgadata_costanzo2009_intermediateCutoff_101120.txt.gz contains 76406 genetic interactions with an intermediate cutoff applied (|ε| > 0.08, p-value < 0.05). The MIC value of 96.46% (73702 out of 76406) genetic interaction by SG is larger than that by ApproxMaxMI, though the maximum MIC values by both methods are the same, i.e. 0.9986. We found 125 interactions (Fig. 4) with high SG score but low ApproxMaxMI, these interactions are not included in the DRYGIN but appear in CCSB interactome24. For example, the ApproxMaxMI values of interactions YDR382W and YDL082W, YDR447C and YDL083C, YGL076C and YBR048W, YGR034W and YGL076C are 0.54236, 0.56215, 0.52781 and 0.57648 respectively, while the SG values are all 0.932112. The four interactions are all verified by CCSB interactome but are not included in DRYGIN, which shows the advantage of SG over ApproxMaxMI.

Figure 4. The 125 interactions of yeast proteins with high SG value and low ApproxMaxMI values.

Figure 4

They are not included in the DRYGIN database but appear in CCSB interactome. The associations between genes in yellow circles have very low MIC values by ApproxMaxMI but high MIC values by SG.

Methods

Datasets

The gene expression profile datasets used are from transcriptome of yeast16, fruit fly21 and locust22. These datasets also can be downloaded at http://lxy.depart.hebust.edu.cn/SGMIC/SGMIC.htm

Simulated Annealing and Genetic Algorithm in SG

Simulation annealing algorithm17,18 is used in the process of genetic algorithm, and the simulation annealing can enhance the optimization result of GA. For example, in calculating MIC values for 1,225 pairs of vectors consisting of 200 random numbers, simulation annealing increases MIC values of 762 pairs of vectors (as shown in Table S6 in supplementary section 6 and file needsimulationanneal.xlsx in http://lxy.depart.hebust.edu.cn/SGMIC/SGMIC.htm). We used a multithread method to calculate MIC values with the use of genetic algorithm19,20. In each thread, the number of chromosomes is 20 by default. Each chromosome consists of genes, which are the abscissa (xgene) of vertical partition lines and the ordinate (ygene) of horizontal partition lines, and these genes form an x-by-y grid. We crossed over an xgene only with another xgene and a ygene only with another ygene during the genetic crossover step. After the mutation, crossover, and simulation annealing, we calculated the fitness of each chromosome and kept the optimum solution. In the annealing, the reproduction operator was derived from Metropolis criteria. The fitness value, championed for over 30 generations, was considered as the MIC value from SG.

Exhaustive Algorithm

Inputting the expression profiles of a pair of genes, we transformed them into a consecutive integer series, kept the order relation of the original x and y coordinates, and denoted the maximum number of the series as n. The computation loop for the x and y coordinates was 1 to 2n-1-1. For both x and y coordinates, we transformed the number of the current loop into binary number. Using the binary number, we determined whether to insert a partition line between two space-adjacent expression points (1 indicates a partition line and 0 means no partition line). MIC values were saved for each loop out of (2n-1-1)2 loops, and the maximum value was considered as the MIC value by the exhaustive algorithm.

Mutation Procedure

The mutation with self-adapting parameters is used, and the mutation frequency is defined as: Inline graphic, where fmax is the largest fitness of current population, fave is the average fitness of current population, f is the individual fitness. Parameters pm1 > pm2 with 0 < pm1,pm2 < 1 are mutation parameters. First, an individual (or chromosome) is assigned a random number in (0,1): if the random number is no less than pm, then the individual will mutate; skip the step otherwise. Here, an individual (or chromosome) is a set of vertical or horizontal lines constituting the bins of the partition of the x- and y-axis10. Mutating an individual is changing the positions of some vertical or horizontal lines along the x- or y-axis. The first and last horizontal (or vertical) lines are only allowed to move between its original position and the next line, and the other lines are allowed to move between its left and right neighbor lines freely.

P-value of SG algorithm

We use a non-parameter test method: Wilcoxon Rank-sum Test to calculate the p value, the Rank-sum Test is capable of determining if two gene profiles are independent. The p-value can be seen from file Pvalue.xlsx in http://lxy.depart.hebust.edu.cn/SGMIC/SGMIC.htm.

The optimization of B(n)

The setting nx·ny < B(n), B(n) = n0.6 is mainly based on the following consideration. Based on the Theorems 1 and 2 in Section 6.2 of Reshef et al.10, we know that setting B(n) < n can avoid inflated MIC scores with large B(n). Then we search for an optimal value of B(n), above which statistically independent data receive scores bounded away from zero as sample size grows, and below which they receive scores approaching zero. The Supplementary Section 7 Fig. S7 shows the alpha = 0.6 meets the criterion.

Author Contributions

Y.Z. designed and proved the algorithms, analyzed the data, and wrote the article. S.J. programmed the SGMIC software, drew the figures, and analyzed the data. H.H., J.Q. and C.Z analyzed the data and wrote the article. All the authors reviewed the manuscript.

Supplementary Material

Supplementary Information

supplimentary material

srep06662-s1.doc (1.4MB, doc)

Acknowledgments

The authors thank Dr. J.Y. Wu, X.D. Fang, C.S. Li, X.L. Ling, J.L. Yang, and Professor L. Kang, F.C. Li for their valuable discussion and critical comments. This work was supported by grant from the National Natural Science Foundation of China (11171088 to YZ), the Key Project of the Chinese Ministry of Education (212011 to YZ), the Province Natural Science Foundation of Hebei (A2011208002 to YZ), the Science Fund of the Hebei University of Science and Technology Foundation (SW17).

References

  1. Caspi A. et al. Influence of Life Stress on Depression: Moderation by a Polymorphism in the 5-HTT Gene. Science 301, 386–389 (2003). [DOI] [PubMed] [Google Scholar]
  2. Clayton R. N. & Mayeda T. K. Oxygen isotope studies of achondrites. Geochim. Cosmochim. Acta 60, 1999–2017 (1996). [Google Scholar]
  3. Algeo T. J. & Lyons T. W. Mo–total organic carbon covariation in modern anoxic marine environments: Implications for analysis of paleoredox and paleohydrographic conditions. Paleoceanography 21, PA1016 (2006). [Google Scholar]
  4. Doniger S. W. MAPPFinder: using Gene Ontology and GenMAPP to create a global gene-expression profile from microarray data. Genome Biology 4, R7 (2003). [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Sørlie T. et al. Gene expression patterns of breast carcinomas distinguish tumor subclasses with clinical implications. Proc. Natl Acad. Sci. USA 98, 10869–10874 (2001). [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Kraskov A., Stögbauer H. & Grassberger P. Estimating mutual information. Phys. Rev. E Stat. Nonlin. Soft Matter Phys. 69, 066138 (2004). [DOI] [PubMed] [Google Scholar]
  7. Moon Y. I., Rajagopalan B. & Lall U. Estimation of mutual information using kernel density estimators. Phys. Rev. E Stat. Phys. Plasmas Fluids Relat. Interdiscip. Topics 52, 2318–2321 (1995). [DOI] [PubMed] [Google Scholar]
  8. Székely G. & Rizzo M. Brownian distance covariance. Ann. Appl. Stat. 3, 1236–1265 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Wang D. L. & Murphy M. Estimating Optimal Transformations for Multiple Regression Using the ACE Algorithm. J.Data Sc. 2, 329–346 (2004). [Google Scholar]
  10. Reshef D. N. et al. Detecting Novel Associations in Large Data Sets. Science 334, 1518–1524 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Anonymous. Finding correlations in big data. Nat Biotechnol 30, 334–335 (2012). [DOI] [PubMed] [Google Scholar]
  12. Simon N. & Tibshirani R. Comment on ‘Detecting novel associations in large data sets' by Reshef et al. Science arXiv:1401.7645 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Albanese D. et al. Minerva and minepy: A C engine for the MINE suite and its R, Python and MATLAB wrappers. Bioinformatics 29, 407–408 (2013). [DOI] [PubMed] [Google Scholar]
  14. Kinney J. B. & Atwal G. S. Equitability, mutual information, and the maximal information coefficient. Proc. Natl Acad. Sci. USA 111, 3354–3359 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Reshef Y. A., et al. Theoretical Foundations of Equitability and the Maximal Information Coefficient. eprint arXiv:1408.4908 1–45 (2014). [Google Scholar]
  16. Spellman P. T. et al. Comprehensive Identification of Cell Cycle–regulated Genes of the Yeast Saccharomyces cerevisiae by Microarray Hybridization. Mol. Biol. Cell 9, 3273–3297 (1998). [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Kirkpatrick S., Gelatt C. D. Jr. & Vecchi M. P. Optimization by simulated annealing. Science 220, 671–680 (1983). [DOI] [PubMed] [Google Scholar]
  18. Bolte A. & Thonemann U. W. Optimization simulated annealing schedules with genetic programming. EUR. J. OPER.RES. 92, 402–416 (1996). [Google Scholar]
  19. Zhang J., Chung H. & Lo W. L. Clustering-Based Adaptive Crossover and Mutation Probabilities for Genetic Algorithms. IEEE Transactions on Evolutionary Computation 11, 326–335 (2007). [Google Scholar]
  20. Srinivas M. & Patnaik L. Adaptive probabilities of crossover and mutation in genetic algorithms. IEEE Transactions on System, Man and Cybernetics 24, 656–667 (1994). [Google Scholar]
  21. Graveley B. R. et al. The developmental transcriptome of Drosophila melanogaster. Nature 471, 473–479 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  22. Chen S., Yang F., Wei Y., Ma Z. & Kang L. De novo analysis of transcriptome dynamics in the migratory locust during the development of phase traits. PLoS ONE 5, e15633 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Koh J. L. Y. et al. DRYGIN: a database of quantitative genetic interaction networks in yeast. Nucleic Acids Res. 38, D502–D507 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Yu H. Y. et al. High-Quality Binary Protein interaction map of the yeast interactome network. Science 322, 104–110 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary Information

supplimentary material

srep06662-s1.doc (1.4MB, doc)

Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES