Abstract
Motivation
Resolving cellular heterogeneity requires methods that capture both discrete cell types and their functional relationships. Existing single-cell clustering approaches often produce flat partitions, limiting their ability to reveal rare cell states and continuous biological transitions. Here, we introduce scMustree, a computational framework that constructs a multi-scale hierarchy of single-cell transcriptomes, enabling integrated analysis of cellular organization and functional relationships. scMustree employs a top-down iterative decomposition to isolate transcriptionally homogeneous populations, followed by a bottom-up merging strategy guided by cluster-specific functional rankings—derived from differential expression and an isolation-forest-based scoring mechanism that quantifies functional distinctness. This unified approach captures lineage structures, functional similarities, and transitional states.
Results
Across 11 benchmark datasets, scMustree achieves competitive clustering accuracy while offering substantially enhanced biological interpretability. In diverse biological systems, it uncovers biologically consistent hierarchies and identifies previously uncharacterized cell states, including fibroblast and T-cell subsets in cancer and lipid-associated microglial populations in Alzheimer’s disease. By integrating structural and functional information, scMustree provides a scalable and biologically grounded framework for multi-resolution exploration of single-cell ecosystems, enabling discovery of rare and disease-relevant cell states across diverse biological contexts.
Availability and implementation
Freely available at Github (https://github.com/xuyp-csu/scMustree) and Zenodo (https://zenodo.org/records/17480562).
1 Introduction
Single-cell RNA sequencing (scRNA-seq) has revolutionized our ability to resolve cellular heterogeneity within tissue microenvironments (Kinker et al. 2020). Clustering algorithms, as a cornerstone of scRNA-seq analysis, group cells by transcriptional similarity to enable critical downstream applications, including cell type annotation, differential expression analysis, and intercellular communication inference.
Current clustering approaches fall into two paradigms: Traditional frameworks (e.g. Seurat (Hao et al. 2024), Scanpy (Wolf et al. 2018)) remain widely adopted, employing highly variable gene selection with linear dimensionality reduction followed by graph-based community detection. In recent years, building upon these foundations, deep learning-enhanced methods have emerged to further improve clustering performance by capturing complex, nonlinear patterns in the data. For instance, DESC (Li et al. 2020) optimizes feature representation through autoencoders, scDCC (Tian et al. 2021) integrates Gaussian mixture models for joint feature learning and clustering, and scGNN (Wang et al. 2021) employs graph neural networks to model cellular topological relationships. These methods enhance clustering precision through nonlinear feature extraction.
Despite these advancements, three fundamental challenges persist in single-cell clustering analysis. First, algorithmic dependence on predefined cluster numbers contradicts the biological reality of unknown cell-type quantities (Yu et al. 2022), risking oversimplification of cellular heterogeneity and obscuring rare or transitional populations. Moreover, optimization-driven convergence criteria often fail to align with biologically meaningful distinctions, potentially yielding biologically irrelevant groupings. Second, current methods primarily produce discrete partitions, overlooking the continuous nature of cellular differentiation and functional transitions. As a result, important biological insights, such as functional similarities (Wang et al. 2022), lineage trajectories (Bibby et al. 2022), hierarchical structures (Mayer et al. 2023), or subtle gradations between cell states (Jerber et al. 2021), may remain hidden. This limitation underscores the need for approaches capable of capturing both discrete groupings and the underlying relational structure among cells. Third, evaluation metrics exhibit inherent biases due to resolution discrepancies in reference annotations (Luecken and Theis 2019): coarse-grained labels inadequately assess performance, while fine-grained annotations struggle with increasing data scales and class imbalance (Xu et al. 2023). This biological complexity highlights the critical need for multi-scale analytical frameworks that can integrate hierarchical and functional information to comprehensively interpret single-cell data.
Recent advancements in leveraging hierarchical structures for optimizing single-cell analysis have shown promise. For instance, Zhong et al. (2025) constructed cell type evolutionary trajectories—a “cell type tree of life”—by integrating cross-species single-cell RNA-seq data across broad phylogenetic distances, demonstrating that such hierarchical structures inherently reflect underlying biological organization. In addition, several methods have been developed to construct and analyze hierarchical cellular representations. AGAC (Zhou et al. 2025) employs a mixed attention mechanism to hierarchically aggregate graph structural features and multi-scale node attribute features, enabling adaptive fusion of information across network layers for improved clustering performance. scSHC (Grabski et al. 2023) improves hierarchical clustering through statistical significance analysis but is sensitive to the initial clustering configuration. Similarly, CHOIR (Sant et al. 2025) adopts a top-down hierarchical tree construction approach, integrating random forest classifiers with permutation testing to mitigate over-clustering. However, its initialization process may be influenced by initial clustering outcomes and may not fully capture relationships among clusters at the same hierarchical level. SEAT (Chen and Li 2023) establishes a hierarchy based on the cell graph and structural entropy reduction, yet faces fundamental limitations in quantifying intercellular relationships within high-dimensional sparse datasets. CHETAH (De Kanter et al. 2019) and MRtree (Peng et al. 2021) require pre-existing reference datasets or multi-resolution clustering results. While Wu and Wu (2020) proposed hierarchy-sensitive metrics (wRI/wNMI), their work focuses on evaluation rather than construction of hierarchical representations.
To address these challenges, we propose scMustree (single-cell Multi-scale tree), a computational framework that constructs multi-scale hierarchies to infer and visualize the organizational structure of cellular populations. Rather than treating cell populations as isolated entities, scMustree organizes them into a multi-scale hierarchy, where each node or branch captures distinct functional characteristics or transitional potential. By analyzing the topology of this hierarchy—such as branch relationships, divergence points, and nested substructures—researchers can perform an in-depth exploration of functional associations, lineage progressions, and intermediate cellular states. Through comprehensive benchmarking across 11 single-cell datasets, scMustree achieves competitive clustering accuracy while offering substantially enhanced biological interpretability. Notably, it identifies previously unannotated cellular subtypes and states, such as lipid-associated microglial states in Alzheimer’s disease and activated muscle satellite cells within the tumor stroma. These discoveries are supported by differential expression analysis and cross-dataset correlation. Collectively, these results establish scMustree as a powerful tool for multi-scale single-cell analysis across diverse biological contexts.
2 Materials and methods
2.1 Overview of scMustree
In contrast to conventional approaches that analyze scRNA-seq data based on cell discrete partitions, scMustree introduces a new perspective that treats single-cell analysis as the exploration of hierarchical organization, capturing both global structures and fine-grained cellular relationships. This approach naturally reveals intercellular functional relationships through branching patterns, enabling multi-scale and multi-resolution analysis of cellular composition and providing deeper insights into cellular heterogeneity and functional diversity. A schematic of the scMustree pipeline can be found in Fig. 1. scMustree integrates three core components: (1) the determination of terminal populations through cluster decomposition, (2) the inference of cluster-specific functional orders (CFR) using decision trees, and (3) rank correlation-guided merging. The methodology for each step is described below.
Figure 1.

Overview of scMustree. The scMustree pipeline begins with top-down iterative clustering, decomposing initial clusters into reliable decomposed populations (leaf populations). Next, it identifies differentially expressed genes (DEGs) for each cluster, constructs decision trees based on their expression patterns, and defines the cluster-specific functional ranking (CFR). Using pairwise CFR rank correlations, scMustree performs bottom-up hierarchical merging, resulting in a multi-scale hierarchy that captures functional relationships between cell types.
2.1.1 Step 1: data preprocessing
The pipeline begins with data preprocessing. The gene expression matrix is preprocessed by first filtering out lowly expressed genes that may not provide informative signals. Specifically, only genes detected in at least three cells are retained for downstream analysis. Next, each cell’s raw UMI counts are divided by its total library size to yield relative frequencies, and subsequently scaled by the median library size across all cells. The resulting normalized values are then log-transformed using the natural logarithm after adding a pseudo-count of 1. This step ensures that the data are suitable for downstream analysis.
2.1.2 Step 2: terminal population determination via cluster decomposition
scMustree employs a top-down, iterative refinement strategy to generate reliable decomposed clusters (which form the terminal populations of the hierarchy). Starting from the preprocessed expression matrix X (of dimensions N cells G genes), the method first partitions all cells into I-clusters (initial clusters). Each I-cluster is then iteratively decomposed in two rounds of clustering to produce D-clusters (decomposed clusters), which are designated as the terminal populations. This number of decomposition rounds was chosen based on an empirical analysis of cluster size reduction across multiple datasets. We observed that after two decompositions, the average cluster size typically falls below 1% of the total data (see Fig. S1, available as supplementary data at Bioinformatics online for the size distribution of decomposed clusters across all benchmark datasets).
To perform the cluster decomposition, scMustree repeatedly applies a fast single-cell clustering module. At each round, the module takes the cells in the current cluster as input and uses all retained genes after the initial filtering step. Principal component analysis (PCA) is then performed on this cell subset to obtain the top principal components that capture the major variance structure within the current cluster. Thus, although no additional round-specific gene selection is performed, the low-dimensional representation is dynamically updated at each decomposition step because PCA is recomputed within the current cell subset. In the resulting PCA-reduced space, an undirected cell graph is constructed using Euclidean distance and the k-nearest neighbors (KNN) algorithm. Finally, a graph-based community detection algorithm (e.g. Louvain) is employed to assign cluster labels to the cells.
2.1.3 Step 3: cluster-specific functional gene selection
We posit that genes differentially expressed in a cluster relative to others reflect the functional programs active in those cells, and thus select them as cluster-specific functional genes. For each cluster in D-clusters, scMustree first identifies genes with expression rates greater than or equal to the median expression rate in . Let represents the expression vector of gene g across cells in cluster , where denotes the expression value of gene g in cell j. The number of expressing cells for gene g in is computed as: , where is an indicator function that equals 1 if and 0 otherwise. Genes satisfying are retained. For these genes, we compute intra-cluster () and extra-cluster () mean expression values ( denotes all cells outside ). The log2-fold change is calculated as: . Genes are ranked by , and the top genes with positive fold changes are selected as cluster-specific functional genes ().
2.1.4 Step 4: functional ranking calculation using functional isolation score
To evaluate the relationship between each cluster and a reference cluster-specific functional gene set, scMustree constructs an isolation forest model for each functional gene set. Unlike its conventional application for anomaly detection, scMustree exploits the isolation mechanism to quantify how specifically cells represent a reference functional program (Liu et al. 2008). Specifically, for a given gene set , an Isolation Forest model is trained using the expression matrix of all cells in the dataset restricted to the genes in . The cells exhibiting this functional program tend to occupy a distinct region in the corresponding functional feature space. Consequently, these cells can be separated from the background population using shorter isolation paths, indicating stronger representation of the reference functional signature. Therefore, the isolation process in scMustree measures functional specificity relative to the reference gene signature. The functional isolation score for cell j under the reference functional gene set is calculated as:
| (1) |
where is the path length (edge count from root to leaf node), is the average path length across all trees, and represents the expected path length for N cells:
| (2) |
where is the harmonic number that can be estimated by (Euler’s constant) (Liu et al. 2008). Under this definition, cells with shorter isolation paths generate smaller functional isolation scores, indicating stronger consistency with the reference functional program represented by .
For each cluster , scMustree summarizes the cell-level functional isolation scores by taking their median:
| (3) |
where a smaller value indicates that cluster contains cells that more strongly exhibit the functional expression pattern represented by . Because all clusters are evaluated using the same Isolation Forest model for a given , these median scores provide a comparable measure of functional similarity among clusters. Clusters are therefore sorted in ascending order of , producing a cluster functional ranking (CFR), where populations at the top of the ranking represent the closest functional neighbors of the reference cluster :
| (4) |
where k is the total number of clusters in the D-clusters.
2.1.5 Step 5: cluster similarity calculation using Rank-Biased Overlap (RBO)
Because the top-ranked clusters in each CFR represent the closest functional neighbors of the reference cluster, the agreement between the top portions of two CFRs reflects the similarity of their functional neighborhoods. scMustree therefore uses Rank-Biased Overlap (RBO), which emphasizes top-ranked agreement, to quantify functional similarity between clusters. Specifically, the similarity between clusters and is computed using their corresponding CFRs, and , via the Rank-Biased Overlap (RBO) metric (Webber et al. 2010):
| (5) |
where d is the ranking depth, k is the total number of nodes (i.e. the number of elements in , and the parameter p (with ) controls the rate at which the weight decays with increasing depth. A smaller p results in faster decay of contributions from increasing ranking depths and therefore places greater emphasis on top-ranked populations, whereas a larger p allows deeper ranking positions to contribute more substantially.
To determine the appropriate value of p, we aim to ensure that the closest functional neighbors at the top of the CFR contribute the majority of the RBO similarity. First, we quantify the contribution associated with each ranked element. This distinction is necessary because an element appearing at rank position d contributes not only to the overlap at depth d, but also to all subsequent prefix overlaps where this element remains included. Therefore, the contribution weight associated with the element located at rank position d is calculated by accumulating its influence across the current depth and all subsequent depths:
| (6) |
where the summation from d to infinity reflects that the element at rank position d contributes to every prefix overlap with depth greater than or equal to d. Subsequently, the cumulative contribution of the first d ranked elements is obtained by summing the contributions of the elements appearing in the top-d positions, which gives:
| (7) |
which, after rearrangement, gives:
| (8) |
After counting the number of terminal populations dominated by different types across all datasets (Fig. S2, available as supplementary data at Bioinformatics online), we find that the median number of clusters corresponding to each type in most datasets is close to 5. Therefore, we focus on the top 5 clusters’ rankings as the primary parameter (accounting for 90%) for measuring local population-to-population functional relationships. That is, and the value of p satisfying .
2.1.6 Step 6: iterative merging for tree construction
scMustree iteratively executes Steps 3–4 for all D-clusters. Guided by the RBO similarity scores from Step 5, the algorithm merges the two most similar clusters (populations) into a new merged group that aggregates all constituent cells. The merged node’s cluster-specific functional gene set () is recalculated through Steps 3–4 to reflect its updated cellular composition. This recalculation-triggered similarity update propagates through Step 5, refreshing all pairwise RBO relationships across the remaining populations. The process iterates until convergence, where all populations coalesce into a single root group, yielding the complete multi-scale hierarchy.
3 Results
3.1 Benchmarking multi-scale hierarchical construction
To comprehensively assess the performance of multi-scale hierarchical construction methods, we conduct benchmarking through algorithmic accuracy and biological interpretability. For algorithmic comparisons, we select a range of representative methods, including the multi-resolution-based Louvain algorithm, dimensionality-reduction-based hierarchical clustering (scSHC), structure entropy optimization (SEAT), and deep learning-based approaches such as scDCC and scGNN. Our experiments utilize 11 single-cell datasets, covering diverse anatomical regions (e.g. airway, hippocampus) and species models (e.g. human, mouse). Notably, a subset of cell type annotations in these datasets is validated through experimental techniques such as immunofluorescence staining, flow cytometry sorting, and cross-platform dataset consistency analysis, ensuring high biological credibility. The specifics of these datasets can be found in Table S1, available as supplementary data at Bioinformatics online.
Algorithmic accuracy is quantified using normalized mutual information (NMI) and adjusted Rand index (ARI) against cell type annotations. For hierarchical methods, including scMustree, scSHC, and SEAT, we evaluate the hierarchy using an oracle pruning protocol designed to assess whether the inferred tree contains biologically meaningful partitions at an appropriate resolution. Specifically, we apply a bottom-up tree-pruning algorithm to extract a set of non-overlapping nodes whose cell assignments best match the reference cell-type annotations, and use the selected node set as the cluster assignment for computing ARI and NMI. This protocol, which balances node purity and global recall while discouraging over-fragmentation, is fully described in Supplementary Note 1. For the non-hierarchical method Louvain, which produces flat partitions but depends on the resolution parameter, we evaluate a range of resolution values and report the best-performing result. Implementation details and parameter settings for all comparative methods are given in Supplementary Note 2, available as supplementary data at Bioinformatics online. Benchmarking results are shown in Fig. 2a. scMustree achieves the best overall performance, with average NMI and ARI values of 0.832 and 0.834, and outperforms the second-ranked method (SEAT: NMI = 0.803, ARI = 0.800) by 3.61% and 4.25%, respectively. In addition, compared to partition-based clustering methods, hierarchical approaches show significant advantages in clustering accuracy. These methods can reflect the relationships between clusters, which helps mitigate the issues of over-clustering (incorrectly dividing cells from the same type into multiple clusters) and under-clustering (incorrectly merging cells from different types into a single cluster). For instance, the hierarchy of the Louvain algorithm is composed of clustering results at different resolutions. The algorithm may distinguish clusters that are hard to define clearly under high-resolution settings. At the same time, in low-resolution mode, it may merge clusters that are originally distinct but belong to the same type. The detailed performance of Louvain across a range of resolutions is provided in Tables S2 and S3, available as supplementary data at Bioinformatics online, which report NMI and ARI values, respectively, for each dataset and indicate the selected resolution. As a result, this algorithm demonstrates acceptable clustering performance across different datasets.
Figure 2.

Benchmarking multi-scale hierarchical construction methods in algorithmic precision and biological interpretability. (a) Algorithmic precision comparison of four hierarchical methods methods (Louvain, scSHC, SEAT, scMustree) and two deep learning-based approaches (scDCC, scGNN) in terms of NMI and ARI. (b) Cell type-resolved hierarchies generated by these methods in the Hippocampus dataset. Nodes are colored by dominant cell types. (c) Biological interpretability assessment across three datasets with reliable ground-truth relationships (left panels) and corresponding method performance (right panels).
We visualize the hierarchies generated by the four hierarchical methods across all datasets, coloring nodes according to the cell types they primarily represent. Visualization results for the hippocampus dataset are shown in Fig. 2b, with visualizations for other datasets provided in Fig. S3, available as supplementary data at Bioinformatics online. scMustree achieves branch-level type discrimination, with each major branch predominantly containing a single cell type.
To evaluate the biological interpretability of constructed hierarchies, we analyze the topological consistency between hierarchical architectures and reliable cell-type relationships derived from original dataset studies and known biological relationships. We use three representative datasets with well-defined cellular relationships: (1) Developmental trajectories (Airway): lineage-committed transitions from basal to secretory cells; (2) Spatial subtypes (Hippocampus): Anatomically distinct neuronal subtypes (CA1–CA3); (3) Functional modules (iLNs): Lymphocyte subtypes with coordinated immune responses.
The airway dataset published by Montoro et al. is predominantly composed of basal cells and club cells (Montoro et al. 2018). To investigate differentiation dynamics, the authors developed an innovative “pulse-seq” methodology that integrates single-cell RNA sequencing (scRNA-seq) with in vivo genetic lineage tracing, enabling temporal monitoring of cell fate transitions. Their lineage tracing analysis revealed a hierarchical differentiation pathway: basal cells initially differentiate into club cells, which subsequently generate goblet and ciliated cells (Fig. 2c). Among the hierarchies generated by the four methods, the Louvain algorithm, operating through multi-resolution clustering, faces inherent constraints in lineage reconstruction. While lower clustering resolutions naturally yield fewer cell groups, this parameter reduction does not guarantee biologically meaningful merging of distinct cell types. While SEAT captures the overall differentiation hierarchy, it inaccurately positions goblet and ciliated cells of equivalent differentiation states at distant branches. scSHC exhibits structural similarities to scMustree in preserving differentiation relationships. However, scSHC incorrectly clusters other cell types primarily along the branch dominated by club cells. In the Hippocampus dataset (Habib et al. 2016), focusing on the CA1, CA2, and CA3 subregions that form interconnected neuronal circuits, scMustree successfully clusters these subregions into three distinct branches within a unified sub-hierarchy, aligning with their known biological interplay. In contrast, scSHC and Louvain disperse these subregions across unrelated branches, while SEAT clusters them within a single branch but fails to maintain CA1 spatial coherence. Analysis of the iLNs dataset (Huang et al. 2021), which contains diverse immune cell populations, specifically highlights scMustree’s precision in segregating lymphocyte types into discrete branches of a shared sub-hierarchy. Other methods exhibit erroneous adjacency relationships between distinct lymphocyte types (Fig. 2c).
In summary, scMustree demonstrates significant advantages in both algorithmic accuracy and biological interpretability. Its superior clustering performance and accurate representation of biological relationships between cell types establish scMustree as a powerful tool for constructing multi-scale cellular hierarchies in single-cell data analysis.
3.2 scMustree identifies multi-scale cell subtypes in the tumor microenvironment
Transcriptomic profiling has revolutionized our understanding of regulatory programs and disease subtypes across human malignancies (Chen et al. 2020). Emerging evidence highlights that functional diversification of non-malignant cells within the tumor microenvironment (TME) critically influences tumor progression and therapeutic responses (Kürten et al. 2021). To investigate this cellular complexity, we analyze the Puram dataset comprising 3363 non-malignant cells from 18 head and neck squamous cell carcinoma (HNSCC) patients (Puram et al. 2017). Initial clustering categorizes these cells into 8 major types: T cells, B/plasma cells, macrophages, dendritic cells, mast cells, endothelial cells, fibroblasts, and myocytes. The spatial relationships of these types are visualized through UMAP dimensionality reduction (Fig. 3a).
Figure 3.

Multi-scale hierarchical analysis of tumor microenvironment (TME) cellular functional diversification using scMustree in the Puram dataset. (a) UMAP projection of single-cell transcriptomes color-coded by annotated cell types. (b) The complete multi-scale hierarchy constructed by scMustree, with node colors denoting dominant cell type annotations. (c) Flattened representation of the immune-cell-dominated sub-hierarchy, with node colors distinguishing dominant immune cell types. (d) Fibroblast-dominated sub-hierarchy with dual-color highlighting of its two principal branches. Branch 1 (marker genes: ACTA2, MYH11, MYL9) and Branch 2 (marker genes: FAP, PDGFRA, MMP2). (e) Joint plot showing branch-specific expression patterns of myofibroblast and CAF markers across single cells (central scatter plot) with marginal density distributions. Statistical significance is assessed using a two-sided Wilcoxon rank sum test, with P-value adjustment via Bonferroni correction based on the total number of genes. (f) Comparative visualization of mean marker expression levels between branches for myofibroblasts and CAFs. (g) CAF-dominated sub-hierarchy with quad-color differentiation of its four major branches. Branch 2-1 (marker genes: APOD, CXCL12), Branch 2-2 (marker genes: COL1A1, COL3A1), Branch 2-3 (marker genes: DES, ACTA1), and Branch 2-4 (marker genes: S100A4, VIM, PAX7). (h) Comparative visualization of mean marker expression levels between branches for five cell types.
Applying scMustree to this dataset reconstructs a multi-scale hierarchical architecture that comprehensively maps functional relationships between cell types across multiple scales (Fig. 3b). This architecture aligns with established cell type annotations, as evidenced by the distinct expression patterns of markers in branch-specific nodes (Fig. S4, available as supplementary data at Bioinformatics online; marker lists in Table S4, available as supplementary data at Bioinformatics online). Beyond validating established classifications, the hierarchical topology reveals functional relationships and intra-population heterogeneity. For instance, macrophages and dendritic cells occupy neighboring branches due to shared myeloid lineage characteristics, and the fibroblast-dominated sub-hierarchy exhibits spatial segregation corresponding to molecularly distinct subtypes. The differential expression levels of fibroblast markers within its branches point to the existence of functionally distinct subtypes.
To further validate the topology of this hierarchy, we first examine the immune-cell-dominated sub-hierarchy in its flattened representation (Fig. 3c). The structure separates lymphoid lineages (T cells, B/plasma cells) from myeloid lineages (macrophages, dendritic cells, mast cells), consistent with established immunological hierarchies. Given the emerging clinical significance of tumor-associated fibroblasts, subsequent analysis focuses on the fibroblast-dominated sub-hierarchy (Fig. 3d). Through differential expression analysis, scMustree identifies two major fibroblast subtypes originally described in the dataset: myofibroblasts (Branch 1) characterized by elevated ACTA2, MYH11, and MYL9 expression, and cancer-associated fibroblasts (CAFs, Branch 2) marked by FAP, PDGFRA, and MMP2 expression. The detailed analytical pipeline and statistical thresholds for the identification of differential genes are provided in Supplementary Note 3, available as supplementary data at Bioinformatics online. A scatter plot with marginal distributions visualizes the average expression levels of these subtype-specific markers across individual cells, color-coded by branch (Fig. 3e), with comparative average expression levels of each marker between branches in Fig. 3f.
To delineate finer functional subdivisions within CAFs, we perform progressive branching analysis along the CAF sub-hierarchy, which reveals four distinct sub-branches (Branches 2–1 to 2–4, Fig. 3g). The average expression levels of each marker in these branches are shown in Fig. 3h. Differential expression analysis identifies Branches 2–1 and 2–2 as corresponding to previously reported CAF1/CAF2 subtypes. Cells in Branch 2–3 exhibit myocyte-like features (DES, ACTA1) which are previously annotated as myocytes. Notably, after merging with Branch 2–4, this composite branch localizes adjacent to the fibroblast-dominated branches (Branches 2–1 and 2–2). Further characterization reveals that Branch 2–4 cells co-express fibroblast markers (S100A4, VIM) and muscle satellite cell markers (PAX7), suggesting they may represent activated muscle satellite cells with increased gene expression related to extracellular matrix remodeling and fibrosis processes, representing a previously unrecognized cell population in the original study. Building on this multi-scale hierarchy, scMustree similarly enables multi-scale analysis of T cell heterogeneity. Through differential expression analysis and the analysis of the average expression of markers, we confirm that its four main branches match four reported subtypes: regulatory T cells, conventional CD4 T helpers, and two cytotoxic CD8 T cell states (activated and exhausted) (Fig. S5, available as supplementary data at Bioinformatics online).
In summary, the multi-scale hierarchy constructed by scMustree not only captures the multi-scale type relationships obtained through multiple rounds of analysis in the original study but also uncovers novel TME-associated cell types. This demonstrates its utility for decoding functional diversity in complex environments.
3.3 scMustree identifies Alzheimer’s-related microglial subtypes in the human hippocampus
The diversity in the functions of brain cell types is of great significance for gaining a deeper understanding of neurodegenerative diseases such as Alzheimer’s disease (AD). Leveraging an Alzheimer dataset comprising 1 18 240 cells across 13 cell types from human brain samples (hippocampus and superior/middle temporal gyrus (SMTG)) of six AD patients and six matched controls, we apply scMustree to investigate cellular dynamics (Sziraki et al. 2023). The spatial relationships among cell types are visualized through UMAP dimensionality reduction (Fig. 4a).
Figure 4.

Analysis of cell type relationships and functional diversification in the Alzheimer dataset using scMustree. (a) UMAP projection of single-cell transcriptomes, color-coded by annotated cell types. (b) The complete multi-scale hierarchy is constructed by scMustree, with node colors denoting dominant cell type annotations. (c) Key branching patterns in the refined topology of scMustree’s hierarchy. (d) Microglia-specific hierarchy structure constructed by scMustree with cell sources (AD/WT in hippocampus/SMTG). (e) Microglia sub-hierarchy highlighting two AD hippocampal-enriched branches. (f) Comparative cell source composition in microglial sub-branches from AD hippocampus. (g, h) Expression levels of specific markers for LDAM (g) and DAM (h) in the Alzheimer dataset across different hierarchical nodes. The color intensity of each node reflects the relative expression level of the marker.
scMustree constructs a multi-scale hierarchical architecture that captures cell type relationships (Fig. 4b), with refined topological analysis showcasing its capacity to identify adjacent branches of cell types that may reflect functional modules potentially linked to AD pathogenesis (Fig. 4c). Specifically, three cortical projection neuron subsets (1, 2, and 3) and two interneuron subsets (1 and 2) are adjacent after each being merged into their respective main branches. Cortical projection neurons and interneurons form adjacent branches, reflecting their complementary roles in neural circuit balance. Vascular leptomeningeal cells and endothelial cells are grouped together, consistent with their shared involvement in blood-brain barrier function—a key pathological axis in AD (Gold et al. 2007, Van De Haar et al. 2016). Similarly, choroid plexus epithelial cells and ependymal cells are adjacent, both participating in cerebrospinal fluid circulation and waste clearance, processes implicated in A accumulation (Erickson et al. 2012).
Given the complex and multifaceted role of microglia in Alzheimer’s disease (AD), we used scMustree to reconstruct their developmental hierarchy. We then examine the distribution of cells from Alzheimer’s patients (AD) and wild-type (WT) controls across this microglia-specific hierarchical architecture (Fig. 4d). Combining the distribution of cells, we find two main branches of microglia composed of cells in the hippocampus of AD patients, Branch 1 and Branch 2, accounting for 92.62% and 95.29% respectively (Figs 4e and f). To explore their potential relevance to AD, we conduct differential gene expression analysis and GO enrichment analysis to analyze their functions which show distinct functional profiles, highlighting their potential roles in the disease. The detailed procedures for the Gene Ontology functional enrichment analysis are presented in Supplementary Note 4, available as supplementary data at Bioinformatics online. Branch 1 is mainly characterized by the high expression of heat shock protein family genes (such as HSP90AA1, HSPH1, HSPA1A) and the lysosomal sorting receptor SORL1, which is significantly enriched in the negative regulation pathways of the unfolded protein response (UPR) and inclusion body assembly. As for Branch 2, it shows characteristics closely related to metabolism and inflammation. Its highly expressed genes, such as ACSL1, HIF1A, and SPP1, drive hypoxia-induced glycolytic reprogramming and the activation of pro-inflammatory signals. This metabolic reprogramming may lead to the accumulation of lipid droplets, which is closely related to intracellular lipid metabolic disorders. Therefore, the microglia of Branch 2 may promote the accumulation of lipid droplets through these metabolic changes, thereby affecting cell function and the pathological process of AD. Interestingly, we find that this subtype is very similar to the lipid-associated ACSL1 microglia subtype reported by Haney et al. (2024) They report LD-accumulating microglia (LDAM), a state of disease-associated microglia (DAM) microglia, which co-expresses more metabolic state regulators such as NAMPT and DPYD. We visualize the expression distribution of LDAM and DAM-related markers in the hierarchical architecture, further confirming their identities (Fig. 4g and h).
In conclusion, scMustree can not only comprehensively reflect the relationships among cell types in disease states but also display disease-related cell type subtypes, which play different functions in the disease, thus providing further insights for disease analysis.
4 Discussion
In this study, we present scMustree, a computational framework that overcomes the limitations of conventional clustering by inferring multi-scale hierarchies that capture both global and local heterogeneity. scMustree advances single-cell analysis by treating clustering as a dynamic hierarchical discovery process rather than static partitioning. Through iterative cluster decomposition and biologically informed merging strategies, scMustree generates high-purity cell clusters (Supplementary Note 5, available as supplementary data at Bioinformatics online) and establishes functional relationships between cell types. By identifying differentially expressed genes (DEGs) for each cluster and constructing ensemble decision trees based on their expression patterns, scMustree defines cluster-specific functional rankings (CFR). These CFR guide hierarchical merging and offer insights into the expression dynamics of cluster-specific genes.
To evaluate the contribution of individual components, we perform an ablation study comparing the full scMustree model with three variants that removed iterative decomposition, replaced the CFR-based RBO similarity with Euclidean distance, or substituted RBO with Kendall’s tau (Supplementary Note 6; Tables S5 and S6, available as supplementary data at Bioinformatics online). The full model consistently outperforms all variants. The CFR-based RBO similarity contributes the largest performance gain, substantially surpassing conventional pseudobulk distance measures. The CFR representation itself also provides meaningful information beyond simple expression proximity, as the Kendall’s tau variant—which retains CFR but replaces RBO—outperforms the Euclidean-based variant. Furthermore, while a single clustering round suffices for relatively simple datasets, the iterative decomposition strategy proves particularly beneficial for resolving complex and deeply structured cellular hierarchies. Collectively, these results confirm that the performance advantages of scMustree arise from the synergistic combination of its core components, with the functional ranking-based similarity metric serving as the primary driver.
The framework’s branch-level type discrimination and accurate representation of biological relationships further validate its utility for constructing multi-scale cellular hierarchies. Beyond the applications in the tumor microenvironment and Alzheimer’s disease discussed above, scMustree has been further validated across diverse biological scenarios, including evolutionarily conserved cell-type relationships in glaucoma, patient-specific pathological subtypes in Alzheimer’s disease, novel cellular subtypes in dendritic cells and retinal bipolar cells, and spatial organization principles during mouse embryonic development. Detailed results are provided in Supplementary Notes 7–10, available as supplementary data at Bioinformatics online.
The successful application of scMustree to various diseases highlights its potential as a valuable tool for biomedical research. By enabling deeper understanding of cellular heterogeneity and functional diversity, scMustree facilitates the identification of disease-specific cell states and their associated molecular mechanisms, potentially guiding targeted therapies and improved diagnostic strategies. The framework’s integration of multi-scale and multi-resolution analyses makes it applicable to a wide range of biological systems, from developmental biology to immunology and neuroscience. Scalability analysis on a PBMC dataset of up to 68 579 cells further confirms that scMustree’s runtime scales with the number of terminal populations rather than total cell count (Supplementary Note 11, available as supplementary data at Bioinformatics online), supporting its application to datasets exceeding one hundred thousand cells.
In conclusion, scMustree provides a robust and comprehensive framework for decoding functional diversity within complex tissues, enabling researchers to explore intricate cellular landscapes underlying biological processes and diseases.
Supplementary Material
Contributor Information
Yunpei Xu, School of Computer Science and Engineering, Central South University, Changsha 410083, China; Xiangjiang Laboratory, Changsha 410205, China.
Shaokai Wang, School of Computer Science and Engineering, Central South University, Changsha 410083, China; Xiangjiang Laboratory, Changsha 410205, China.
Liqing Ding, School of Computer Science and Engineering, Central South University, Changsha 410083, China; Xiangjiang Laboratory, Changsha 410205, China.
Hong-Dong Li, School of Computer Science and Engineering, Central South University, Changsha 410083, China; Xiangjiang Laboratory, Changsha 410205, China.
Jianxin Wang, School of Computer Science and Engineering, Central South University, Changsha 410083, China; Xiangjiang Laboratory, Changsha 410205, China.
Author contributions
Yunpei Xu (Conceptualization [Equal], Data curation [Equal], Methodology [Equal], Software [Equal], Validation [Equal], Visualization [Equal], Writing—original draft [Equal]), Shaokai Wang (Formal analysis [Equal], Investigation [Equal], Validation [Equal], Visualization [Equal], Writing—review & editing [Equal]), Liqing Ding (Investigation [Equal], Methodology [Equal], Validation [Equal], Visualization [Equal]), Hongdong Li (Investigation [Equal], Methodology [Equal], Validation [Equal], Writing—review & editing [Equal]), and Jianxin Wang (Conceptualization [Equal], Funding acquisition [Lead], Investigation [Equal], Project administration [Lead], Supervision [Lead], Writing—review & editing [Equal])
Supplementary material
Supplementary material is available at Bioinformatics online.
Conflicts of interest
None declared.
Funding
This work was supported in part by the National Natural Science Foundation of China under Grants [Nos. 62332020, 62473382] and the Project of Xiangjiang Laboratory [No. 23XJ01011]. This work was carried out in part using computing resources at the High-Performance Computing Center of Central South University.
Data availability
The details of the datasets used in this study are reported in Table S1, available as supplementary data at Bioinformatics online. All described datasets are obtained from various public databases and can be accessed using the accession numbers provided in Table S1, available as supplementary data at Bioinformatics online. These databases include the NCBI Gene Expression Omnibus (GEO) https://www.ncbi.nlm.nih.gov/geo/ and the Single Cell Portal https://singlecell.zendesk.com/hc/en-us. The Dendritic cell dataset from the 68k PBMC dataset is obtained from the website of 10X genomics (https://www.10xgenomics.com/datasets/fresh-68-k-pbm-cs-donor-a-1-standard-1-1-0). The Bipolar cell dataset from the mouse retina dataset is available on GitHub https://github.com/OSU-BMBL/marsgt/tree/main/Data. Source data are provided in this paper.
References
- Bibby JA, Agarwal D, Freiwald T et al. Systematic single-cell pathway analysis to characterize early T cell activation. Cell Rep 2022;41:111697. 10.1016/j.celrep.2022.111697 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Chen L, , Li SC. Incorporating cell hierarchy to decipher the functional diversity of single cells. Nucleic Acids Res 2023;51:e9. 10.1093/nar/gkac1044 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Chen Y-P, Yin J-H, Li W-F et al. Single-cell transcriptomics reveals regulators underlying immune cell diversity and immune subtypes associated with prognosis in nasopharyngeal carcinoma. Cell Res 2020;30:1024–42. 10.1038/s41422-020-0374-x [DOI] [PMC free article] [PubMed] [Google Scholar]
- De Kanter JK, Lijnzaad P, Candelli T et al. CHETAH: a selective, hierarchical cell type identification method for single-cell RNA sequencing. Nucleic Acids Res 2019;47:e95. 10.1093/nar/gkz543 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Erickson MA, Hartvigson PE, Morofuji Y et al. Lipopolysaccharide impairs amyloid beta efflux from brain: altered vascular sequestration, cerebrospinal fluid reabsorption, peripheral clearance and transporter function at the blood–brain barrier. J Neuroinflammation 2012;9:150. 10.1186/1742-2094-9-150 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Gold G, Giannakopoulos P, Herrmann FR et al. Identification of alzheimer and vascular lesion thresholds for mixed dementia. Brain 2007;130:2830–6. 10.1093/brain/awm228 [DOI] [PubMed] [Google Scholar]
- Grabski IN, Street K, Irizarry RA. Significance analysis for clustering with single-cell RNA-sequencing data. Nat Methods 2023;20:1196–202. 10.1038/s41592-023-01933-9 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Habib N, Li Y, Heidenreich M et al. Div-Seq: single-nucleus RNA-Seq reveals dynamics of rare adult newborn neurons. Science 2016;353:925–8. 10.1126/science.aad7038 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Haney MS, Pálovics R, Munson CN et al. APOE4/4 is linked to damaging lipid droplets in Alzheimer’s disease microglia. Nature 2024;628:154–61. 10.1038/s41586-024-07185-7 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hao Y, Stuart T, Kowalski MH et al. Dictionary learning for integrative, multimodal and scalable single-cell analysis. Nat Biotechnol 2024;42:293–304. 10.1038/s41587-023-01767-y [DOI] [PMC free article] [PubMed] [Google Scholar]
- Huang S, Ziegler CGK, Austin J et al. Lymph nodes are innervated by a unique population of sensory neurons with immunomodulatory potential. Cell 2021;184:441–59.e25. 10.1016/j.cell.2020.11.028 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jerber J, Seaton DD, Cuomo ASE et al. Population-scale single-cell RNA-seq profiling across dopaminergic neuron differentiation. Nat Genet 2021;53:304–12. 10.1038/s41588-021-00801-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kinker GS, Greenwald AC, Tal R et al. Pan-cancer single-cell RNA-seq identifies recurring programs of cellular heterogeneity. Nat Genet 2020;52:1208–18. 10.1038/s41588-020-00726-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kürten CHL, Kulkarni A, Cillo AR et al. Investigating immune and non-immune cell interactions in head and neck tumors by single-cell RNA sequencing. Nat Commun 2021;12:7338. 10.1038/s41467-021-27619-4 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Li X, Wang K, Lyu Y et al. Deep learning enables accurate clustering with batch effect removal in single-cell RNA-seq analysis. Nat Commun 2020;11:2338. 10.1038/s41467-020-15851-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Liu FT, Ting KM, Zhou Z-H. Isolation forest. In: 2008 Eighth IEEE International Conference on Data Mining (ICDM), Pisa, Italy, p. 413–22, 2008. 10.1109/ICDM.2008.17 [DOI]
- Luecken MD, Theis FJ. Current best practices in single-cell RNA-seq analysis: a tutorial. Mol Syst Biol 2019;15:e8746. 10.15252/msb.20188746 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Mayer S, Milo T, Isaacson A et al. The tumor microenvironment shows a hierarchy of cell-cell interactions dominated by fibroblasts. Nat Commun 2023;14:5810. 10.1038/s41467-023-41518-w [DOI] [PMC free article] [PubMed] [Google Scholar]
- Montoro DT, Haber AL, Biton M et al. A revised airway epithelial hierarchy includes CFTR-expressing ionocytes. Nature 2018;560:319–24. 10.1038/s41586-018-0393-7 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Peng M, Wamsley B, Elkins AG et al. Cell type hierarchy reconstruction via reconciliation of multi-resolution cluster tree. Nucleic Acids Res 2021;49:e91. 10.1093/nar/gkab481 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Puram SV, Tirosh I, Parikh AS et al. Single-cell transcriptomic analysis of primary and metastatic tumor ecosystems in head and neck cancer. Cell 2017;171:1611–24.e24. 10.1016/j.cell.2017.10.044 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sant C, Mucke L, Corces MR. Choir improves significance-based detection of cell types and states from single-cell data. Nat Genet 2025;57:1309–19. 10.1038/s41588-025-02148-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sziraki A, Lu Z, Lee J et al. A global view of aging and Alzheimer’s pathogenesis-associated cell population dynamics and molecular signatures in human and mouse brains. Nat Genet 2023;55:2104–16. 10.1038/s41588-023-01572-y [DOI] [PMC free article] [PubMed] [Google Scholar]
- Tian T, Zhang J, Lin X et al. Model-based deep embedding for constrained clustering analysis of single cell RNA-seq data. Nat Commun 2021;12:1873. 10.1038/s41467-021-22008-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Van De Haar HJ, Burgmans S, Jansen JFA et al. Blood-brain barrier leakage in patients with early Alzheimer disease. Radiology 2016;281:527–35. 10.1148/radiol.2016152244 [DOI] [PubMed] [Google Scholar]
- Wang J, Ma A, Chang Y et al. scGNN is a novel graph neural network framework for single-cell RNA-Seq analyses. Nat Commun 2021;12:1882. 10.1038/s41467-021-22197-x [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wang C, Yu Q, Song T et al. The heterogeneous immune landscape between lung adenocarcinoma and squamous carcinoma revealed by single-cell RNA sequencing. Signal Transduct Target Ther 2022;7:289. 10.1038/s41392-022-01130-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Webber W, Moffat A, Zobel J. A similarity measure for indefinite rankings. ACM Trans Inf Syst 2010;28:1–38. 10.1145/1852102.1852106 [DOI] [Google Scholar]
- Wolf FA, Angerer P, Theis FJ. SCANPY: large-scale single-cell gene expression data analysis. Genome Biol 2018;19:15. 10.1186/s13059-017-1382-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wu Z, Wu H. Accounting for cell type hierarchy in evaluating single cell RNA-seq clustering. Genome Biol 2020;21:123. 10.1186/s13059-020-02027-x [DOI] [PMC free article] [PubMed] [Google Scholar]
- Xu Y, Li H-D, Lin C-X et al. CellBRF: a feature selection method for single-cell clustering using cell balance and random forest. Bioinformatics 2023;39:i368–76. 10.1093/bioinformatics/btad216 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Yu L, Cao Y, Yang JYH et al. Benchmarking clustering algorithms on estimating the number of cell types from single-cell RNA-sequencing data. Genome Biol 2022;23:49. 10.1186/s13059-022-02622-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Zhong H, Han W, Gomez-Cabrero D et al. Benchmarking cross-species single-cell RNA-seq data integration methods: towards a cell type tree of life. Nucleic Acids Res 2025;53:gkae1316. 10.1093/nar/gkae1316 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Zhou W, Song W, Zhang Z et al. Hierarchical feature aggregation with mixed attention mechanism for single-cell RNA-seq analysis. Expert Syst Appl 2025;260:125340. 10.1016/j.eswa.2024.125340 [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
The details of the datasets used in this study are reported in Table S1, available as supplementary data at Bioinformatics online. All described datasets are obtained from various public databases and can be accessed using the accession numbers provided in Table S1, available as supplementary data at Bioinformatics online. These databases include the NCBI Gene Expression Omnibus (GEO) https://www.ncbi.nlm.nih.gov/geo/ and the Single Cell Portal https://singlecell.zendesk.com/hc/en-us. The Dendritic cell dataset from the 68k PBMC dataset is obtained from the website of 10X genomics (https://www.10xgenomics.com/datasets/fresh-68-k-pbm-cs-donor-a-1-standard-1-1-0). The Bipolar cell dataset from the mouse retina dataset is available on GitHub https://github.com/OSU-BMBL/marsgt/tree/main/Data. Source data are provided in this paper.
