A computational framework named SENNA establishes curve-based coordinate systems to model continuous spatial variation and evaluate spatially variable genes across diverse spatial omics modalities. Spatially resolved transcriptomics and related spatial profiling technologies preserve the visual architecture of biological specimens, yet conventional computational analysis frameworks typically restrict spatial exploration to rigid Cartesian grids or cropped rectangular fields of view. These rectangular boundaries often fail to reflect the non-linear, curvilinear geometries characteristic of anatomical structures, such as irregular tumor margins or organ layers. To address this misalignment between standard computational coordinates and biological tissue shapes, researchers developed SENNA to mathematically project profiled tissue spots onto user-defined curves that represent anatomical boundaries or progression paths.
The mathematical architecture of the framework converts user-selected anchor points into continuous functional curves across two-dimensional spatial datasets. Within an interactive graphical interface implemented in R, an investigator selects an ordered sequence of anchor spots, termed knots, placed along an observed morphological boundary or a putative biological trajectory. The algorithm connects these knots using natural polynomial spline interpolation to establish an analytical curve axis over the tissue space. For configurations defined by four or more knots, the system applies natural cubic spline interpolation with continuous second derivatives across the domain. When users designate exactly three knots, the algorithm constructs quadratic polynomials constrained to share identical leading coefficients to preserve structural smoothness, whereas two knots generate a direct linear trajectory between the designated coordinates.
After generating the functional curve axis, the system transforms each spot’s original two-dimensional Cartesian coordinates into an analytical coordinate pair comprising its relative position along the curve and its perpendicular Euclidean distance from the curve. This mapping relies on an exact mathematical projection rather than heuristic approximations. For each profiled spot, the algorithm calculates candidate projection coordinates by identifying the real roots of a polynomial equation derived from the dot product of the curve’s tangent vector and the displacement vector linking the spot to the curve. Because the distance between a spot and a piecewise polynomial curve is minimized when these vectors are perpendicular, computing polynomial roots via the eigenvalues of a companion matrix reveals all candidate positions. If multiple real roots occur, the framework computes the Euclidean distance for each candidate point and selects the coordinate corresponding to the absolute minimum distance.
To support specific biological questions, the software derives scenario-specific spatial metrics from the projected coordinates and provides three distinct curve-aware linear regression models. In the progression scenario, which tracks directional biological change along an open spatial path, the model estimates gene expression trends as a function of an adjusted curve parameter that reflects cumulative physical arc length computed via Gauss-Legendre quadrature. Spots analyzed under this progression model are weighted using a box threshold or an optional Gaussian decay function that downweights distant cells. In the regionation scenario, where an open curve acts as an anatomical interface separating distinct histological zones, the algorithm assigns spots signed curve-spot distances based on a 90-degree counterclockwise rotation of the curve’s tangent vector. In the islet scenario, which analyzes enclosed tissue compartments such as tumor nodules using closed curves, the model evaluates absolute scaled curve-spot distances to track molecular gradients from an outer periphery toward an internal core.
The stability of the coordinate projection algorithm and its sensitivity to user input were validated using spatial simulation datasets comprising 2,000 genes and 3,852 spots generated on an empirical tissue grid coordinate matrix. For the progression and regionation scenarios, researchers introduced controlled perturbations by displacing baseline knots within a defined jitter radius, demonstrating that downstream linear regression results and feature recovery remained stable up to a jitter radius threshold before deteriorating. For closed-curve islet simulations, subsampling knot sets from dense contours revealed that geometric alignment and feature identification remained consistent across varying starting positions, although gradient estimation error increased when knot counts dropped below ten. In benchmarking evaluations against eight widely used spatially variable gene detection tools across thirty incremental signal strengths, the curve-aware models achieved comparable or higher detection rates at lower signal intensities while maintaining low empirical false positive rates across permuted negative controls.
Application of the framework to high-resolution human lung adenocarcinoma specimens profiled with matched Visium HD and Xenium 5K platforms revealed distinct molecular and cellular microenvironments across adjacent tumor compartments. By delineating closed spline curves around two adjacent tumor areas characterized by high epidermal growth factor receptor expression, designated R1 and R2, the investigators applied the islet model to examine periphery-to-core gradients. The molecular analyses revealed that immune and inflammatory programs, including interferon and complement signaling pathways, were enriched toward the interior core of region R1. In contrast, immune pathways in region R2 were concentrated primarily at the outer margin, with core regions showing decreased expression of these markers. Cellular deconvolution and spatial density estimation in the paired single-cell resolution dataset demonstrated corresponding cellular differences, showing natural killer cells, macrophages, and classical monocytes positioned further into the core of R1 relative to R2.
To analyze biological patterns replicated across multiple anatomical structures within a single tissue slice, the investigators implemented a multi-curve model termed mSENNA that incorporates curve-specific intercept terms. The utility of this approach was evaluated on Visium spatial transcriptomics datasets obtained from three infant human thymus samples, where 32 closed curve axes were constructed around distinct medullary regions identified from histological images. Joint regression modeling identified 242 spatially variable genes that exhibited shared periphery-to-core expression gradients across all 32 medullary structures. Biological process enrichment analysis of 172 core-increasing genes revealed coordinated modules governing epithelial differentiation, leukocyte recruitment, and immune signaling, consistent with the localized maturation of medullary thymic epithelial cells and lymphocyte recruitment within deep medullary microenvironments.
The applicability of the coordinate transformation system across non-transcriptomic spatial modalities was confirmed using mouse brain spatial epigenomics and human lymph node spatial proteomics. In a postnatal mouse brain sample profiled with spatial RNA-ATAC co-profiling, the progression model tracked gene activity scores and corresponding RNA levels along a parietal-to-lateral cortical trajectory, identifying concordant regulatory elevation for cortex markers Mef2c and Neurod6. In a 28-marker CODEX dataset of human lymph node architecture, Louvain clustering originally grouped the cortex and paracortex into a single contiguous compartment. Applying the regionation model along an open boundary constructed at the junction between the medulla and paracortex revealed selective enrichment of the T cell marker CD3 epsilon within the paracortical zone and CD68 enrichment within the medullary region, matching established histological organization.
The researchers noted operational constraints inherent to the mathematical properties of polynomial splines and linear regression modeling. Because natural polynomial splines can experience geometric distortion or rigidity when fitting sharp corners, the framework includes an alternative piecewise linear formulation that connects knots with straight line segments, though non-differentiable vertices require specialized heuristic classification. Additionally, the primary regression models are designed to identify monotonic spatial gradients and do not detect complex non-monotonic profiles, such as mid-trajectory expression peaks, unless the trajectory is partitioned into discrete segments. Residual spatial autocorrelation is also not explicitly parameterized within the ordinary weighted regression framework. Despite these boundaries, the framework provides an open-source analytical tool for incorporating anatomical knowledge and continuous geometric coordinates into spatial multi-omics investigations.
Beyond structural spline selection, the authors assessed how knot parameterization influences curve construction and downstream coordinate assignment. By default, SENNA uses uniform parameterization, allocating sequential integer values to knots regardless of their physical spacing across the tissue grid. When evaluating an alternative chord-length parameterization that adjusts knot intervals according to physical distances between anchors, the researchers observed coordinate differences primarily when knot spacing was uneven. In progression testing, however, these spatial coordinate deviations remained modest and produced negligible shifts in downstream spatially variable gene detection, confirming that uniform indexing provides a dependable baseline while preserving physical arc length during downstream metric adjustment.
The empirical investigations also highlighted specific metabolic and architectural programs uncovered by the framework’s directional modeling. Within the lung adenocarcinoma analysis, which utilized eight-micrometer binning to optimize resolution and computational throughput across hundreds of thousands of spots, the islet model separated distinct transcriptional gradients, identifying hypoxia and glycolysis pathways enriched among genes decreasing toward the core of region R1. In the infant thymus investigation, which examined tissue from donors aged one to six months across 2,800 shared genes, core-increasing spatially variable genes included IFI6, KRT13, S100A8, and S100A9. These coordinated expression patterns reflected localized cellular maturation corresponding to Hassall’s corpuscle-associated microenvironments within the deep medullary interior.
Evaluation of computational efficiency demonstrated that SENNA completed both coordinate projection and regression testing within a relatively short runtime across sixty benchmark iterations, outperforming several heavier statistical frameworks. Because the mapping relies on an analytically derived optimization that minimizes Euclidean distance, the resulting coordinate transformations remain entirely deterministic for any given curve axis and input dataset. Furthermore, the underlying mathematical architecture is directly adaptable beyond two-dimensional tissue sections, allowing investigators to incorporate volumetric three-dimensional spatial coordinates simply by introducing a third spatial axis into the distance minimization equations.
Subject of Research: Curve-based coordinate modeling for hypothesis-driven spatial omics analysis
Article Title: SENNA: hypothesis-driven spatial omics analysis via curve-based coordinate systems
Article References: Lee, M., Shin, D. R., Kim, Y., Lee, Y., Lee, B. H., Nam, H. J., Lee, H.-S., Kim, E. R., Kim, H. J., & Han, B. (2026). SENNA: hypothesis-driven spatial omics analysis via curve-based coordinate systems. Molecular Systems Biology. https://doi.org/10.1038/s44320-026-00258-x
Image Credits: AI Generated
DOI: 10.1038/s44320-026-00258-x
Keywords: spatial omics, spatially resolved transcriptomics, computational biology, spline interpolation, spatial coordinate systems, spatially variable genes, tumor microenvironment, Visium HD, Xenium, CODEX proteomics, spatial epigenomics, thymus medulla, linear regression modeling, cell type mapping, spatial profiling, bioinformatics software
Cite Scienmag News
Drew Townsend. (November 27, 2026). Computational Framework Maps Complex Biological Tissues Using Curved Coordinate Systems. Scienmag. https://scienmag.com/computational-framework-maps-complex-biological-tissues-using-curved-coordinate-systems/
Drew Townsend. "Computational Framework Maps Complex Biological Tissues Using Curved Coordinate Systems." Scienmag, 27 November 2026, https://scienmag.com/computational-framework-maps-complex-biological-tissues-using-curved-coordinate-systems/. Accessed 27 November 2026.
Drew Townsend. "Computational Framework Maps Complex Biological Tissues Using Curved Coordinate Systems." Scienmag. November 27, 2026. https://scienmag.com/computational-framework-maps-complex-biological-tissues-using-curved-coordinate-systems/








