mixMC Methodology


mixMC is a multivariate framework implemented in mixOmics for microbiome data analysis. The framework takes into account the inherent characteristics of microbiome data, namely sparsity (a large number of zeros in the data) and compositionality (occurring naturally in ecosystems, as well as resulting sequencing artefacts). The mixMC framework aims to identify key microbial communities associated with their habitat or environment.

mixMC addresses the limitations of existing multivariate methods for microbiome studies and proposes unique analytical capabilities: it handles compositional and sparse data, repeated-measures experiments and multiclass problems. It also highlights important discriminative features, and provides interpretable graphical outputs to better understand the microbial communities' contribution to each habitat. The framework from our paper is summarised below:


Functionality of mixMC within mixOmics

mixMC is a pipeline set up for microbial communities, using some of the standards methods in mixOmics but with a bit of tweaking. The method sPLS-DA has been improved with CLR (centered log ratio) transformation and includes a multilevel decomposition for repeated measurements design that are commonly encountered in microbiome studies. The multilevel approach we developed in [4] enables the detection of subtle differences when high inter-subject variability is present due to microbial sampling performed repeatedly on the same subjects but in multiple habitats. To account for subject variability, the data variance is decomposed into within variation (due to habitat) and between subject variation [5], similar to a within-subjects ANOVA in univariate analyses.

mixMC going forward

  • In collaboration with colleagues from INRA Toulouse, France, the package mixKernel is available on our website. This package allows for the integration of different types of data using kernel models. It internally calls functions from the mixOmics package. An example of its usage can be found in the first case study listed below.

  • We are working on how to manage batch effects in microbiome studies, see [6] and soon a new multivariate method to correct for batch effects.

Case Studies

This site features three different case studies which exemplify the usage the mixMC framework in different microbial contexts. Under each of the below listed case studies, a link to download the full 16S dataset can be found (each case study uses a subset of this data).

Further Reading

The mixOmics mixMC methodology has been applied in real research contexts. A few examples can be seen below:


  1. Lê Cao KA, Costello ME, Lakis VA, Bartolo F, Chua XY, et al. (2016) MixMC: A Multivariate Statistical Framework to Gain Insight into Microbial Communities. PLOS ONE 11(8): e0160169

  2. Aitchison, J., 1982. The statistical analysis of compositional data. Journal of the Royal Statistical Society. Series B (Methodological), pp.139-177.

  3. Filzmoser, P., Hron, K. and Reimann, C., 2009. Principal component analysis for compositional data with outliers. Environmetrics, 20(6), pp.621-632.

  4. Liquet, B., Lê Cao, K.A., Hocini, H. and Thiébaut, R., 2012. A novel approach for biomarker selection and the integration of repeated measures experiments from two assays. BMC bioinformatics, 13(1), p.325.

  5. Westerhuis, J.A., van Velzen, E.J., Hoefsloot, H.C. and Smilde, A.K., 2010. Multivariate paired data analysis: multilevel PLSDA versus OPLSDA. Metabolomics, 6(1), pp.119-128.

  6. Wang Y and Lê Cao K-A (2019). Managing Batch Effects in Microbiome Data. Briefings in Bioinformatics