minicore: Fast scRNA-seq clustering with various distance measures
Daniel N. BakeriD, Nathan Dyjack, Vladimir BravermaniD, Stephanie C. HicksiD, Ben LangmeadiD
Abstract
Single-cell RNA-sequencing (scRNA-seq) analyses typically begin by clustering a gene-by-cell expression matrix to empirically define groups of cells with similar expression profiles. We describe new methods and a new open source library, minicore, for efficient k-means++ center finding and k-means clustering of scRNA-seq data. Minicore works with sparse count data, as it emerges from typical scRNA-seq experiments, as well as with dense data from after dimensionality reduction. Minicores novel vectorized weighted reservoir sampling algorithm allows it to find initial k-means++ centers for a 4-million cell dataset in 1.5 minutes using 20 threads. Minicore can cluster using Euclidean distance, but also supports a wider class of measures like Jensen-Shannon Divergence, Kullback-Leibler Divergence, and the Bhattacharyya distance, which can be directly applied to count data and probability distributions. Further, minicore produces lower-cost centerings more efficiently than scikit-learn for scRNA-seq datasets with millions of cells. With careful handling of priors, minicore implements these distance measures with only minor (<2-fold) speed differences among all distances. We show that a minicore pipeline consisting of k-means++, localsearch++ and minibatch k-means can cluster a 4-million cell dataset in minutes, using less than 10GiB of RAM. This memory-efficiency enables atlas-scale clustering on laptops and other commodity hardware. Finally, we report findings on which distance measures give clusterings that are most consistent with known cell type labels. AvailabilityThe open source library is at https://github.com/dnbaker/minicore. Code used for experiments is at https://github.com/dnbaker/minicore-experiments.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 1
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- mbkmeans: fast clustering for single cell data using mini-batch k-means
Stephanie C. Hicks, Ruoxi Liu, … Davide Risso·PLoS Computational BiologyPeer-reviewed·Jan 26, 2021
- SC3s - efficient scaling of single cell consensus clustering to millions of cells
Fu Xiang Quah, Martin Hemberg·BMC BioinformaticsPeer-reviewed·Dec 11, 2022
- constclust: Consistent Clusters for scRNA-seq
Isaac Virshup, Jarny Choi, … Christine Anne Wells·bioRxiv·Dec 8, 2020
- New algorithms for unsupervised cell clusteringfrom scRNA-seq data
Melissa Robles, Jorge Díaz-Riaño, … Jorge Duitama·Bioinformatics AdvancesPeer-reviewed·Jan 1, 2026
- SSCC: a computational framework for rapid and accurate clustering of large-scale single cell RNA-seq data
Xianwen Ren, Liangtao Zheng, Zemin Zhang·Genomics Proteomics & BioinformaticsPeer-reviewed·Apr 1, 2019
- A completely parameter-free method for graph-based single cell RNA-seq clustering
Maryam Zand, Jianhua Ruan·bioRxiv·Jul 15, 2021