← Latest papers
💻 bioinformatics

smoothclust: Spatial smoothing and boundary-density summaries for spatial transcriptomics

The paper introduces **smoothclust**, an R package that provides a spatial-smoothing-based clustering workflow and a novel boundary-density metric to generate interpretable spatial domain labels and quantify tissue architecture organization in spatial transcriptomics data.

Original authors: Rusnak, L., Weber, L. M.

Published 2026-10-30
📖 7 min read🧠 Deep dive

Original authors: Rusnak, L., Weber, L. M.

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ⚕️ This is an AI-generated explanation of a preprint that has not been peer-reviewed. It is not medical advice. Do not make health decisions based on this content. Read full disclaimer

Tissues are not merely bags of cells; they are intricate cities where geography dictates function. In a healthy organ, cells of the same type tend to cluster together, forming distinct neighborhoods that perform specific tasks, while the boundaries between these districts are often sharp and well-defined. When disease strikes, such as in cancer, this orderly architecture can dissolve, with different cell types becoming jumbled or the borders between regions becoming fuzzy and chaotic. For decades, scientists have been able to read the genetic instructions inside individual cells, but capturing where those cells sit within the tissue has been a newer, more difficult challenge. Modern tools now allow researchers to map gene activity while preserving the cell's original location, creating a spatial map of the tissue. However, turning these complex maps into simple, comparable numbers has remained a hurdle. Researchers often struggle to quantify exactly how organized a tissue is or how mixed up its neighborhoods have become, making it hard to compare one patient's sample to another or to track how a tissue changes over time.

A team of researchers at Boston University has developed a new way to measure this spatial order, offering a straightforward method to summarize the architecture of tissue samples. They call their approach smoothclust, and it functions in two parts. First, it provides a workflow to group cells into meaningful regions based on their gene activity and their neighbors, smoothing out the noise that often plagues raw data. Second, and perhaps more importantly, it introduces a metric called "boundary density." Imagine looking at a map of a city and counting how often a house on one street has a neighbor on the next street that belongs to a completely different neighborhood. If the city is well-organized, you will see long stretches of similar houses, and the number of times you cross a boundary will be low. If the city is chaotic, with different neighborhoods jumbled together, you will cross boundaries constantly. The researchers use this same logic to count how often a cell's genetic "identity" differs from the cells immediately surrounding it. This count provides a single number that describes how mixed or how distinct the tissue is.

The researchers tested this method on a variety of real-world datasets, starting with samples from brain tumors known as glioblastomas. They compared their new smoothing-based approach against standard methods that do not account for spatial location. The results showed that their method produced much cleaner maps, with fewer abrupt, random switches between cell types. In one specific tumor sample, the standard method suggested that the tissue was highly fragmented, with a high rate of boundary crossings. In contrast, the new method revealed a more coherent structure, with far fewer transitions, suggesting that the tissue was actually more organized than the standard tools indicated. This difference mattered because it meant the new method could better reflect the true biological reality of the tumor's structure. The researchers also applied their metric to labels generated by other existing software and even to maps created by human pathologists. In every case, the boundary density metric successfully summarized the tissue's organization, proving that the tool works regardless of how the initial cell groups were identified.

To ensure their metric was robust, the team ran simulations where they knew the exact answer. They created artificial grids of cells with known patterns, ranging from perfectly separated halves to completely random mixtures. As expected, the metric correctly identified that the perfectly separated halves had very few boundary crossings, while the random mixtures had many. They also tested what happens when the labels are adjusted for the sheer number of different cell types present. Sometimes, a tissue might have many different cell types simply because the sample is diverse, not because it is disorganized. The researchers developed a "relative" version of their metric that accounts for this, comparing the observed number of crossings to what would be expected by pure chance. This adjustment allowed them to distinguish between a tissue that is naturally diverse and one that is genuinely chaotic.

The utility of this approach extends beyond brain tumors. The researchers applied their method to heart tissue samples from patients who had suffered heart attacks. They found that different types of damaged heart tissue showed distinct patterns of organization. Some sections, which were rich in muscle cells, showed a higher frequency of transitions between different cell niches, suggesting a complex intermingling of cell types. Other sections, dominated by scar tissue or specific injury responses, showed more uniform regions. The metric was sensitive enough to detect these differences even when the samples had very unbalanced compositions, such as a section where one cell type made up nearly all the spots. This suggests the tool can provide reliable summaries even when the biological makeup of a sample is heavily skewed.

The researchers also explored how the size of the neighborhood used for counting affects the results. They found that while the exact numbers changed depending on whether they looked at immediate neighbors or a slightly wider circle, the overall ranking of the samples remained consistent. This indicates that the metric is stable and not overly sensitive to minor changes in how the data is viewed. Furthermore, they tested the method on extremely high-resolution datasets containing hundreds of thousands of individual cells, such as those from colorectal cancer tissue. Despite the massive size of these datasets, the software ran efficiently on a standard laptop, processing the data in under a minute. This demonstrates that the method is not just theoretically sound but also practical for the massive amounts of data being generated by modern technology.

One of the most revealing aspects of the study was how the metric responded to the way researchers define their regions. When the team took a detailed map of the brain's cortex, which distinguished between three different layers of white matter, and merged them into a single "white matter" category, the boundary density dropped significantly. This makes intuitive sense: if you stop distinguishing between three similar layers and treat them as one big region, there are fewer boundaries to cross. However, the researchers noted that this change also altered the relative ranking of the samples. This finding serves as a crucial reminder that the numbers produced by the metric depend on how the biological regions are defined in the first place. It does not provide a single, absolute truth about a tissue, but rather a precise summary of the organization based on the specific map being used.

The study concludes that this framework offers a transparent and reusable way to translate complex spatial maps into understandable summaries. By quantifying how often cell identities change from one spot to the next, the method allows scientists to compare tissue organization across different patients, different disease states, and different biological conditions without needing to align every single cell perfectly. It bridges the gap between the visual complexity of a tissue map and the need for simple, comparable numbers. Whether used to evaluate the success of a clustering algorithm, to compare manual annotations from different experts, or to explore how tissue architecture changes in disease, the boundary density metric provides a clear, data-driven way to ask and answer questions about the spatial order of life. The tools are freely available to the scientific community, ready to be applied to new datasets as the field of spatial biology continues to grow.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →