Understanding the spatial architecture of tissues has emerged as a central frontier in modern biology, yet standard methods for analyzing spatial transcriptomics data often struggle to align observed gene variation with defined biological pathways. Conventional techniques typically focus on detecting spatially variable genes without accounting for specific anatomical orientations or developmental schedules, leaving researchers with broad expression patterns that lack immediate mechanistic interpretation. To address this persistent computational and biological challenge, investigators introduced a unified modeling framework named STAVAG, designed to systematically identify directionally variable genes and temporally variable genes across complex multicellular environments. By anchoring expression profiling directly to established physical vectors, developmental timelines, or pathological gradients, the approach provides an axis-conditioned methodology that translates high-dimensional spatial sequencing measurements into structured, biologically meaningful trajectories.
At the computational core of STAVAG is a regression architecture based on a light gradient-boosting machine that directly captures nonlinear relationships between transcript abundance and spatial or temporal coordinates. Rather than treating physical space as an isotropic or directionless continuum, the algorithm accepts normalized gene expression matrices alongside coordinate vectors representing arbitrary two-dimensional directions, three-dimensional axes, or sequential time steps. During iterative model training, decision trees are constructed using a leaf-wise growth strategy that discretizes gene expression measurements into histograms, selecting splits that maximize information gain along the target trajectory. The method calculates an empirical importance metric termed the STAVAG contribution score, which sums the information gain attributable to each individual gene across tree splits. To distinguish true directional or temporal variation from stochastic noise, the algorithm compares observed scores against a null distribution generated through permutation, deriving a STAVAG priority score that selects candidates exceeding the ninety-fifth percentile threshold.
To evaluate the framework across complex pathological architectures, the researchers first applied STAVAG to human cutaneous squamous cell carcinoma tissue profiled with ten-times spatial transcriptomics across seventeen thousand one hundred thirty-eight genes. The examined malignant tissue exhibited a distinct top-to-bottom spatial hierarchy along its vertical axis, spanning from the invasive leading edge of the tumor down into adjacent stromal regions. Integrating cell-type deconvolution revealed that tumor-specific keratinocytes and cycling tumor cells localized primarily at the invasive upper margin, whereas mature immune cells accumulated within the central tumor bed, and fibroblasts alongside endothelial cells clustered at the bottom boundary. Applying STAVAG along the horizontal dimension captured lateral asymmetry, identifying markers such as CTAG2 on the left margin and keratinocyte terminal differentiation factors including KRT1, KRT2, KRT10, and CALML5 on the right margin.
When the computational model was aligned with the vertical invasion gradient of the carcinoma, it identified two hundred sixty-six directionally variable genes that grouped into six distinct hierarchical modules. Module one showed selective enrichment at the invasive tumor margin occupied by tumor-specific keratinocytes, significantly overlapping with nine validated marker genes including IL24, SERPINE1, and CAV1, which regulate keratinocyte proliferation, migration, and adhesion. Modules two and three predominated within upper-middle tumor cell domains enriched for epidermal differentiation pathways, while module four comprised sixty-six immune-related genes reflecting interferon-gamma signaling and antimicrobial responses in the lymphocyte-rich core. Survival analyses conducted on an external cohort of five hundred nineteen head and neck squamous cell carcinoma patients from The Cancer Genome Atlas demonstrated that elevated expression of module two was linked to poorer overall survival, whereas elevated module four expression correlated with increased infiltration of T cells and natural killer cells and predicted significantly more favorable patient outcomes.
The analytical flexibility of STAVAG was further demonstrated in three-dimensional spatial datasets where transcriptional heterogeneity varies across multiple spatial planes. In an eighty-nine-slice three-dimensional STARmap block of the mouse cortex comprising twenty-eight targeted genes, evaluating the vertical z-axis identified expression gradients for neuromodulatory and regulatory genes such as Pvalb, Egr2, Npy, and Cck. Furthermore, because cortical laminae follow a laminar progression from deep layers to superficial surfaces, projecting cell coordinates along an axis tilted thirty degrees from the upper-left margin uncovered layered marker trajectories, including Mbp in oligodendrocytes, Pcp4 across layer four and five neurons, Cux2 in outer layers two and three, and Gja1 in astrocytes. Notably, Pcp4 exhibited robust directional variation along this tilted radial trajectory but showed no significant change along the vertical z-axis, underscoring that gene expression variability can remain strictly dependent on the spatial vector chosen for investigation.
To assess directional modeling in whole-organism tissue patterning, the team analyzed a three-dimensional atlas of the planarian flatworm composed of twelve aligned spatial transcriptomics sections encompassing nineteen thousand five hundred ninety-four genes. Regeneration in planarians is governed by distinct tissue polarity, particularly along the anterior-posterior axis, which dictates head, trunk, and tail regrowth following injury. Along this primary body axis, STAVAG isolated two hundred ninety directionally variable genes, successfully capturing twelve of the twenty-nine established anterior-posterior polarization genes, an overlap supported by a hypergeometric enrichment p-value of 3.7 times ten to the negative fifteenth power. The remaining seventeen known polarization genes exhibited near-zero baseline expression in the dataset and were consequently undetected, whereas conventional spatially variable gene algorithms ranked the detected polarization genes poorly, yielding a median rank of two thousand nine hundred sixty-eight compared to their top-tier prioritization under the direction-aware model.
Beyond physical geometric orientations, the investigators evaluated the capacity of STAVAG to track chronological disease progression using temporal coordinate modeling in longitudinal tissue samples. In a mouse model of acute myocardial infarction sampled across one, four, seventy-two, and one hundred sixty-eight hours, the framework identified one hundred twenty-four temporally variable genes that segregated into five distinct kinetic modules. Module two, which remained active during later phases within the border zone, was significantly enriched for eleven RHO GTPase signaling components involved in structural tissue remodeling. In contrast, module three displayed pronounced early induction at one and four hours post-infarction across the ischemic zone, accompanied by an enrichment of mitochondrial metabolic pathways that subsequently declined by seventy-two hours, capturing the acute bioenergetic disruption occurring within vulnerable cardiomyocytes.
To test whether these temporally dynamic genes could serve as clinically useful diagnostic indicators in humans, the researchers examined circulating protein counterparts in plasma samples collected from eighty-eight patients presenting with acute chest pain within three hours of symptom onset. Target proteomic profiling using proximity extension assays quantified seven hundred thirty-six circulating proteins, identifying five detectable markers corresponding to genes within the early-response module three: LPL, MB, PTGDS, FABP3, and the established cardiac biomarker TNNI3. Evaluating a support vector machine classifier with leave-one-out cross-validation demonstrated that the combined five-protein panel derived from STAVAG reached an area under the receiver operating characteristic curve of 0.976, markedly outperforming single measurements of cardiac troponin I, which achieved an area under the curve of 0.913 in the same cohort.
The framework was also deployed to resolve normal developmental transitions across high-resolution spatiotemporal transcriptomics datasets capturing mouse placentation from embryonic day 7.5 through day 14.5. Profiling over one hundred two thousand individual cells across sixteen thousand one hundred twenty-seven genes, STAVAG isolated one hundred forty-eight temporally variable genes partitioned into distinct developmental modules. An early-stage module predominated within the anti-mesometrial and mesometrial decidua and exhibited enrichment for oxidative stress management and foundational maternal-fetal interactions. A reciprocal late-stage module peaked within the mature yolk sac and junctional zone, enriched for insulin-like growth factor transport and lactation regulation. Parallel sub-analyses of the maternal myometrium identified eighty-three temporal genes, tracing an orderly transition from early secretory programs to late structural maturation marked by progressive increases in IGFBP2 expression.
Finally, the authors examined organogenesis using a comprehensive Stereo-seq mouse embryonic development atlas spanning embryonic days 9.5 through 16.5 across twenty-three thousand seven hundred sixty-one genes. STAVAG identified three hundred fifty-eight temporally variable genes clustered into seventeen modules that mapped onto structural development in specific lineages, including the developing epidermis, skeleton, and digestive tract. Notably, the analysis detected an interactive module that was initially restricted to hepatic tissue, where it drove heme biosynthesis, before exhibiting delayed activation in cardiac tissue at embryonic day 16.5, reflecting inter-organ metabolic coordination during fetal growth. A separate neural module steadily increased across the developing brain, spinal cord, and dorsal root ganglia, coordinating axon guidance, neurogenesis, and cytoskeletal remodeling across central and peripheral nervous system compartments.
Despite its proven computational utility across diverse biological systems, the researchers noted essential interpretive parameters and methodological considerations governing the use of STAVAG. The algorithm is inherently conditioned on predefined spatial or temporal axes, requiring prior anatomical, pathological, or experimental justification to ensure that tested trajectories reflect genuine physiological structures. Furthermore, non-biological technical covariates such as spatial variations in cell density, uneven slice thickness, differential permeabilization, or sequencing depth gradients can align artifactually with chosen axes, potentially producing false-positive directional signals. In sensitivity benchmarks using the planarian dataset, controlling for total transcript counts preserved all twelve validated polarization genes, indicating that biological variation can be retained when technical variables are appropriately evaluated. The authors concluded that by directly modeling designated biological axes, STAVAG complements existing spatial algorithms, providing a scalable foundation for biomarker prioritization and functional hypothesis generation across developmental biology and clinical medicine.
Subject of Research: Computational identification of directionally and temporally variable genes in spatial transcriptomics using gradient-boosting trees
Article Title: Uncovering directionally and temporally variable genes with STAVAG
Article References: Shen, Q., Gai, K., Li, S., Yang, F., Cui, H., Zhang, S., & Zhang, S. (2026). Uncovering directionally and temporally variable genes with STAVAG. Nature Genetics. https://doi.org/10.1038/s41588-026-02853-y
Image Credits: AI Generated
DOI: 10.1038/s41588-026-02853-y
Keywords: spatial transcriptomics, STAVAG, directionally variable genes, temporally variable genes, gradient boosting, LightGBM, cutaneous squamous cell carcinoma, tumor microenvironment, myocardial infarction, biomarker discovery, mouse embryogenesis, placentation, planarian regeneration, cortical hierarchy, STARmap, Stereo-seq
News Source: Juliet Wilcox. (November 25, 2026). Machine Learning Framework STAVAG Maps Directional and Temporal Gene Expression Across Tissues. Scienmag.



