Welcome to MCube’s documentation!

Sticker

The R package MCube (GitHub repository) implements the methods in the MMM paper. MMM, standing for the Mixture of Mixed Models, is a unified framework for the statistical identification of cell-type-specific spatially variable genes (SVGs) in spatial transcriptomic (ST) studies.

MMM’s effectiveness stems from our innovations in model and algorithm design:

  • Beginning with the raw count data, MMM uses a log-mixture structure to account for cell type composition while simultaneously correcting for the spot and platform effects between ST and single‐cell RNA sequencing (scRNA-seq) data.

  • The mixed-effects model decomposes the cell-type-specific gene expression in ST data into three components: the average gene expression of the same cell type obtained from scRNA-seq data, spatial variations, and non-spatial variations.

  • The statistical significance of spatial variations is then examined using a powerful non-parametric test capable of detecting diverse spatial patterns.

On this tutorial website, we provide guidelines for using MCube along with real data analysis examples. The source code for building the website can be found at https://github.com/statwangz/MCube-tutorial.

Contents

Reference

If you find the MCube package or any of the source code in this repository useful for your work, please cite:

A unified framework for identification of cell-type-specific spatially variable genes in spatial transcriptomic studies.
Zhiwei Wang, Yeqin Zeng, Ziyue Tan, Yuheng Chen, Xinrui Huang, Hongyu Zhao, Zhixiang Lin, and Can Yang.
Proceedings of the National Academy of Sciences of the United States of America, 2025.

Development

The R package MCube is developed and maintained by Zhiwei Wang.

Contact

Please feel free to contact Zhiwei Wang, Prof. Hongyu Zhao, Prof. Zhixiang Lin, or Prof. Can Yang if any inquiries.