{"id":421879,"date":"2026-01-22T01:09:17","date_gmt":"2026-01-22T01:09:17","guid":{"rendered":"https:\/\/www.newsbeep.com\/us\/421879\/"},"modified":"2026-01-22T01:09:17","modified_gmt":"2026-01-22T01:09:17","slug":"temporal-tissue-dynamics-from-a-spatial-snapshot","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/us\/421879\/","title":{"rendered":"Temporal tissue dynamics from a spatial snapshot"},"content":{"rendered":"<p>The number of cells of a given type in a tissue section can change by division or death, moving in or out of the section (flux) or transdifferentiation<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 40\" title=\"Weinreb, C., Wolock, S., Tusi, B. K., Socolovsky, M. &amp; Klein, A. M. Fundamental limits on dynamic inference from single-cell snapshots. Proc. Natl Acad. Sci. USA 115, E2467&#x2013;E2476 (2018).\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#ref-CR40\" id=\"ref-link-section-d57465605e1391\" rel=\"nofollow noopener\" target=\"_blank\">40<\/a>. If we restrict ourselves to modelling cell types that do not transdifferentiate at appreciable rates, such as T cells and macrophages, and analyse tissues in which flux is negligible relative to rates of death or division (or where we can\u00a0add flux terms post\u00a0hoc), we remain with the following equation for the rate of change of a population of cells of type \\(i\\): <\/p>\n<p>$$\\frac{d{X}_{i}}{{dt}}=\\frac{{\\rm{\\#}}\\mathrm{Divisions}}{{dt}}-\\frac{{\\rm{\\#}}\\mathrm{Deaths}}{{dt}}$$<\/p>\n<p>OSDR aims to transition from static observations of cell division or death in a tissue into rates. The key insight is: if we obtain a marker for cell division (or death), and in each cell division the marker remains above a defined threshold for a time period \\({dt}\\), then all observed divisions occurred within the last \\({dt}\\) hours. Thus:<\/p>\n<p>$$\\frac{d{X}_{i}}{{dt}}=\\frac{{\\rm{\\#}}\\mathrm{Divisions}}{\\mathrm{Time}\\,{\\rm{a}}\\,\\mathrm{division}\\,\\mathrm{remains}\\,\\mathrm{observable}}-\\frac{{\\rm{\\#}}\\mathrm{Deaths}}{\\mathrm{Time}\\,{\\rm{a}}\\,\\mathrm{death}\\,\\mathrm{remains}\\,\\mathrm{observable}}$$<\/p>\n<p>The rate of division or death of a cell is influenced by the signals that it receives from its environment, its access to nutrients, its genetics and factors such as physical contact with other cells. We call this complete set of factors the \u2018neighbourhood\u2019 of the cell. This definition sets an ideal, and we denote the particular set of features used to approximate this ideal as \\(N(x)\\), where \\(x\\) is some cell in the tissue.<\/p>\n<p>If we consider cells with identical neighbourhoods, a fraction of them will be dividing. This fraction is higher if the neighbourhood induces a high rate of division. We thus viewed the observations of division or death as random events whose probabilities are determined by the neighbourhood of the cell. Thus, for cell \\(x\\) of type \\(i\\), the distribution of the observation \\({O}_{i,t}(x)\\) of a division or death event is modelled as:<\/p>\n<p>$${O}_{i,t}(x)=\\left\\{\\begin{array}{cc}+1\/d{t}^{+} &amp; \\text{with probability}\\,{p}_{i}^{+1}(N(x))\\\\ -1\/d{t}^{-} &amp; \\text{with probability}\\,{p}_{i}^{-1}(N(x))\\\\ 0 &amp; \\text{remaining}\\end{array}\\right..$$<\/p>\n<p>Where pi+1 and pi\u22121 are the statistical inference models for division or death, and dt+ and dt\u2212 are the durations of observed division or death markers, respectively. In this study, dt+ is defined as 1 time unit (roughly a few hours; ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 27\" title=\"Uxa, S. et al. Ki-67 gene expression. Cell Death Differ. 28, 3357&#x2013;3370 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#ref-CR27\" id=\"ref-link-section-d57465605e1910\" rel=\"nofollow noopener\" target=\"_blank\">27<\/a>), and the approximation of the death rate as the mean division rate is defined using the same time units. Thus, in this implementation dt+\u2009=\u2009dt\u2212\u2009=\u20091. We divided by the durations so that the (stochastic) change in the number of cells in each timestep is:<\/p>\n<p>$$\\frac{d{X}_{i}}{{dt}}=\\sum _{x\\in {X}_{i}}{O}_{i,t}(x)$$<\/p>\n<p>Tissues are heterogenous, and the diverse cellular compositions in different regions result in various directions of change. To analyse the change at a certain state, rather than the change in complete tissues, we computed the expected change with respect to an initial condition where cells share the same neighbourhood:<\/p>\n<p>$${E}_{x}\\left[\\frac{d{X}_{i}}{{dt}}\\right]\\,=\\,E\\,\\left[\\sum _{x\\in {X}_{i}}{O}_{i,t}(x)\\right]\\,=\\,{\\rm{\\#}}{X}_{i}\\,[{{p}_{i}}^{+1}(N(x))-{{p}_{i}}^{-1}(N(x))]$$<\/p>\n<p>In this study, features are based on the number of neighbouring cells of each type within a predefined radius. For further discussion on this choice of features, see Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">2f<\/a>. The neighbourhoods can thus be represented as a vector of cell densities:<\/p>\n<p>$$X:= {({X}_{1},{X}_{2},\\ldots ,{X}_{k})}^{T}$$<\/p>\n<p>As a result, we can interpret the inferred\u00a0statistical\u00a0models as components of a set of ordinary differential equations (ODEs) defined over a state-space of cell densities:<\/p>\n<p>$$\\frac{\\text{d}}{\\text{d}t}X=\\left(\\begin{array}{c}{X}_{1}\\,({p}_{1}^{+1}(X)-{p}_{1}^{-1}(X))\\\\ {X}_{2}\\,({p}_{2}^{+1}(X)-{p}_{2}^{-1}(X))\\\\ \\vdots \\\\ {X}_{k}\\,({p}_{k}^{+1}(X)-{p}_{k}^{-1}(X))\\end{array}\\right)=f(X)$$<\/p>\n<p>Note that OSDR is inference-model agnostic; although we used logistic regression here, other statistical inference models can be adopted within this framework. In addition, this approach can be applied to data acquired by any technology that enables classification and spatial localization of discrete cells, together with reliable measurement of markers for division (and possibly death).<\/p>\n<p>Model inference algorithm<\/p>\n<p>For input:<\/p>\n<p>Cell-level annotations: \\(({B}_{i},{T}_{i},{\\vec{x}}_{i}{,O}_{i})\\) for cell \\(i=1,\\ldots \\,N\\)<\/p>\n<p>\\({B}_{i}\\) denotes an ID for the biopsy sample cell \\(i\\) came from. \\({B}_{i}\\) is used to formalize that a cell can only influence cells from the same tissue.<\/p>\n<p>\\({T}_{i}\\in T\\) indicates the cell type for cell \\(i\\) (for example, \\({T}_{i}\\,=\\) \u2018fibroblast\u2019), and let \\(T\\) be the set of types.<\/p>\n<p>For any \\(t\\in T\\), let \\({n}_{t}\\) be the total number of cells of type \\(t\\). We also assumed some order on the cells of type \\(t\\), such that: \\(t[\\,j]=i\\) for any index \\(j\\in \\{1,\\ldots {n}_{t}\\}\\), and the original index \\(i\\in \\{1,\\ldots ,N\\}\\).<\/p>\n<p>\\(\\vec{{x}_{i}}\\in {R}^{2}\\) denotes the 2D spatial coordinates for cell \\(i\\).<\/p>\n<p>Oi \u2208 {0,1} refers to the binary observation of division.<\/p>\n<p>For the algorithm:<\/p>\n<p>For each cell type \\(t\\in T\\):<\/p>\n<p>                  (1)<\/p>\n<p>Compute a table of features\u00a0(neighbour counts of each cell\u00a0type) \\({X}_{t}\\in {R}^{{n}_{t}\\times T}\\).<\/p>\n<p>$${X}_{t}[i,{t}^{{\\prime} }]:= \\mathop{\\sum }\\limits_{j=1}^{N}1\\,[{B}_{j}={B}_{t[i]},{T}_{j}={t}^{{\\prime} },\\Vert {\\overrightarrow{x}}_{t[i]}-\\overrightarrow{{x}_{j}}\\Vert  &lt; r]$$<\/p>\n<p>Here \\(t[i]\\) is the original index of the i-th cell of type \\(t\\). The value at row \\(i\\) and column \\(t{\\prime} \\) is a count of all cells that came from the same tissue as cell \\(t[i]\\), that have type \\(t{\\prime} \\) and are within a distance \\(r\\).<\/p>\n<p>Row \\(i\\) in \\({X}_{t}\\) is our representation for the neighbourhood of the cell \\(t[i]\\): the counts of all cell types in its proximity. Denote this vector by \\(N(t[i]):= {X}_{{T}_{i}}[i,:]\\).<\/p>\n<p>                  (2)<\/p>\n<p>Perform feature transformations on \\({X}_{t}\\), such as adding interaction terms (transformations are selected through a separate process of cross validation).<\/p>\n<p>                  (3)<\/p>\n<p>Define the binary cell-division\u00a0labels \\({y}_{t}\\in \\{\\mathrm{0,\\; 1}{\\}}^{{n}_{t}}\\):<\/p>\n<p>$${y}_{t}[i]={O}_{t[i]}$$<\/p>\n<p>                  (4)<\/p>\n<p>Fit a multivariate logistic regression model \\({p}_{t}^{+}\\) for the division rate based on the features and labels \\({X}_{t},{y}_{t}\\).<\/p>\n<p>                  (5)<\/p>\n<p>Define the death rate:<\/p>\n<p>$${p}_{t}^{-}={\\mathrm{mean}(y}_{t})$$<\/p>\n<p>For output:<\/p>\n<p>$$(({p}_{t}^{+},\\,{p}_{t}^{-}):t\\in T)$$<\/p>\n<p>Ki67 thresholds<\/p>\n<p>We used previous data to establish a Ki67 threshold for cell division events. Uxa et al.<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 27\" title=\"Uxa, S. et al. Ki-67 gene expression. Cell Death Differ. 28, 3357&#x2013;3370 (2021).\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#ref-CR27\" id=\"ref-link-section-d57465605e4099\" rel=\"nofollow noopener\" target=\"_blank\">27<\/a> have demonstrated that Ki67 levels peak towards the G2\/M phase of the cell cycle, with preserved kinetics (up to scale) across two human and one mouse cell line. We adjusted Ki67 levels to correct for different scaling and division rates between cell lines (Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1a,b<\/a>) by selecting Ki67 values above a noise threshold \\({T}_{n}\\), subtracting \\({T}_{n}\\) and dividing by the Ki67 standard deviation. We choose \\({T}_{n}=0.5\\) mean isotopic counts because this is the typical magnitude of experimental noise in this dataset (Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1c<\/a>). This produces distributions with similar shape (Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1d<\/a>) in accordance with the cell line results from Uxa et al. We defined a cell division by the normalized Ki67 above a division threshold \\({T}_{d}\\). Example fractions of dividing cells are provided in Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1e<\/a>. The resulting model estimates are robust to \\({T}_{d}\\) values between 0 and 1 on this adjusted scale (Supplementary Figs.\u2009<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">3f<\/a> and <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">4g<\/a>).<\/p>\n<p>Choice of spatial proteomics technology<\/p>\n<p>Out of the currently available spatial-omics technologies, multiplexed protein imaging<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Giesen, C. et al. Highly multiplexed imaging of tumor tissues with subcellular resolution by mass cytometry. Nat. Methods &#10;                https:\/\/doi.org\/10.1038\/nmeth.2869&#10;                &#10;               (2014).\" href=\"#ref-CR41\" id=\"ref-link-section-d57465605e4252\">41<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Keren, L. et al. MIBI-TOF: a multiplexed imaging platform relates cellular phenotypes and tissue structure. Sci. Adv. 5, eaax5851 (2019).\" href=\"#ref-CR42\" id=\"ref-link-section-d57465605e4252_1\">42<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" title=\"Goltsev, Y. et al. Deep profiling of mouse splenic architecture with CODEX multiplexed imaging. Cell 174, 968&#x2013;981.e15 (2018).\" href=\"#ref-CR43\" id=\"ref-link-section-d57465605e4252_2\">43<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 44\" title=\"Lin, J.-R. et al. Highly multiplexed immunofluorescence imaging of human tissues and tumors using t-CyCIF and conventional optical microscopes. eLife 7, e31657 (2018).\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#ref-CR44\" id=\"ref-link-section-d57465605e4255\" rel=\"nofollow noopener\" target=\"_blank\">44<\/a> was the most suitable for our setting. Current barcode-based spatial transcriptomics<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 45\" title=\"Tirado-Lee, L. Spatially resolved transcriptomics: an introductory overview of spatial gene expression profiling methods. 10X Genomics &#010;                https:\/\/www.10xgenomics.com\/blog\/spatially-resolved-transcriptomics-an-introductory-overview-of-spatial-gene-expression- profiling-methods&#010;                &#010;               (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#ref-CR45\" id=\"ref-link-section-d57465605e4259\" rel=\"nofollow noopener\" target=\"_blank\">45<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 46\" title=\"St&#xE5;hl, P. L. et al. Visualization and analysis of gene expression in tissue sections by spatial transcriptomics. Science 353, 78&#x2013;82 (2016).\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#ref-CR46\" id=\"ref-link-section-d57465605e4262\" rel=\"nofollow noopener\" target=\"_blank\">46<\/a> aggregate cells in spots of 55\u2009\u00b5m in diameter so that they do not associate transcript levels with single discrete cells. In addition, because the distance between spot centres is 100\u2009\u00b5m, if we place a cell in the centre of a spot, we measure less than one-ninth of the area immediately surrounding it (area of a circle of radius 27.5\u2009\u00b5m, within another of radius 72.5). Fluorescent-based approaches such as MERFISH allow modelling single cells but they only recover a small fraction of every transcript in the tissue. This is a barrier for basing the analysis on levels of a single transcript: Ki67. IMC provides measurements within well-defined cells, reliable measurement of Ki67 and, in terms of cost, makes datasets in the order of magnitude of hundreds of thousands of cells feasible. Classical staining methods should also be feasible for analysing specific pairs of cells. For example, for analysing fibroblasts and macrophages, we could use four markers: fibroblast and macrophage markers, a cell nucleus marker and Ki67.<\/p>\n<p>Implementing OSDR using spatial transcriptomics would allow more fine-grained definition of cell types based on transcriptional profiles. Cell division and death events could be defined based on multiple gene expression markers, rather than Ki67 used here, enhancing the accuracy of the method. In principle, OSDR can compute dynamics of many cell types and subtypes, beyond the six studied here. We expect the required number of cells to increase with the number of cell subtypes considered. Future work can add computation of transitions between cell subtypes or states to more fully capture cell population dynamics.<\/p>\n<p>Data exclusion<\/p>\n<p>We excluded outlier samples that deviated by more than six standard deviations in both cell density and number of cell divisions. These excluded outliers amounted to 3 samples out of 718 in the Danenberg dataset<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 2\" title=\"Danenberg, E. et al. Breast tumor microenvironment structures are associated with genomic features and clinical outcome. Nat. Genet. 54, 660&#x2013;669 (2022).\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#ref-CR2\" id=\"ref-link-section-d57465605e4277\" rel=\"nofollow noopener\" target=\"_blank\">2<\/a>, and 2 samples out of 771 in the Fischer dataset<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 4\" title=\"Fischer, J. R. et al. Multiplex imaging of breast cancer lymph node metastases identifies prognostic single-cell populations independent of clinical classifiers. Cell Rep. Med. 4, 100977 (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#ref-CR4\" id=\"ref-link-section-d57465605e4281\" rel=\"nofollow noopener\" target=\"_blank\">4<\/a>.<\/p>\n<p>Enforcing maximal density<\/p>\n<p>We assumed there cannot be a net positive flux at the maximal observed density of a cell type. We applied a correction in the form of:<\/p>\n<p>$${{p}_{i}}^{\\mathrm{correction}}={c}_{i}\\cdot {{d}_{i}}^{n}$$<\/p>\n<p>Where di is the density of cell I, and the power n controls the steepness: high n implies that the correction applies primarily to higher densities (Supplementary Fig.\u2009<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1f,g<\/a>). The constant term ci is defined as the minimal correction ensuring non-positive flux at maximum density (Di). We compute division minus death rates at the maximal density of one cell, over all possible values of the second cell:<\/p>\n<p>$${c}_{i}\\cdot {{D}^{n}}_{i}=\\mathop{\\max }\\limits_{N(x):{d}_{i}={D}_{i}}{{p}^{+}}_{i}(N(x))-{{p}^{-}}_{i}(N(x))$$<\/p>\n<p>In practice, the state-space region near maximal density for both cell types is unpopulated by cells, so we used values up to the 95% quantile density for each type. This is more robust to extrapolation errors\u00a0in areas with minimal data. For the fibroblast\u2013macrophage model, this correction is trivial because the estimated net flux is negative at high densities; for the T and B cell model, the correction makes a difference only to T cells (Supplementary Fig.\u2009<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1g<\/a>).<\/p>\n<p>Population versus neighbourhood dynamics<\/p>\n<p>In OSDR, we first estimated the cell-level models for division and death probabilities (see \u2018Model inference algorithm\u2019 in <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"section anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#Sec8\" rel=\"nofollow noopener\" target=\"_blank\">Methods<\/a>). We then used the cell-level models to analyse tissue dynamics in one of two ways.<\/p>\n<p>We called the first approach \u2018population-level dynamics\u2019. We started with a spatial tissue section. We then produced a temporal sequence of tissue snapshots as follows. We first computed the probabilities of division and death for each cell, taking into account the composition of the neighbourhood of each cell. We then used the probabilities to sample for each cell: division, death or none. We placed each new cell in the neighbourhood of the dividing cell. We removed cells that died (Supplementary Fig.\u2009<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1h<\/a>).<\/p>\n<p>One nuance in this process relates to cells at the edge of the tissue. When a cell near the edge of the tissue divides, its daughter cell might be placed outside the tissue. To keep tissue size fixed, we removed cells placed out of bounds. This biases the neighbourhoods of cells near the edge of the tissue. To correct this bias, we rescaled the cell counts of cells near the edge of the tissue: \\(\\mathrm{Number}\\,\\mathrm{of}\\,\\mathrm{cells}\\,\\mathrm{in}\\,\\mathrm{neighbourhood}\\cdot \\frac{1}{\\mathrm{Neighbourhood}\\,\\mathrm{fraction}\\,\\mathrm{within}\\,\\mathrm{tissue}}\\). This is an unbiased estimator of neighbourhood composition, as the \u2018neighbourhood fraction within the tissue\u2019 is also the probability of keeping a daughter cell following division.<\/p>\n<p>We can also add cell movement to this sampling procedure. We implemented a random walk by sampling a Gaussian translation to each cell at each time step. Note that a large diffusion coefficient can disperse cells out of tissue boundaries (Supplementary Fig.\u2009<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1i<\/a>), whereas a small diffusion coefficient can cause regions in the tissue to be effectively isolated (Supplementary Fig.\u2009<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1j<\/a>). More elaborate modes of cell movement include attraction towards a chemokine source, adhesion to nearby cells and migration of cells from outside the tissue. Studying the effects of different modes remains outside the present\u00a0scope.<\/p>\n<p>To study a sequence of tissue sections, we plotted\u00a0the number of cells over time (for example, Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4e,f<\/a>). Because tissues can have different sizes, we found it useful to rescale the number of cells to the area of a neighbourhood. Thus, the y axis displays: \\(\\mathrm{Number}\\,\\mathrm{of}\\,\\mathrm{cells}\\,\\mathrm{in}\\,\\mathrm{tissue}\\cdot \\frac{\\mathrm{Neighbourhood}\\,\\mathrm{area}}{\\mathrm{Tissue}\\,\\mathrm{area}}\\).<\/p>\n<p>One limitation of plotting the average density is that we do not observe the complete distribution. Of note, the average density does not necessarily coincide with the mode. Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1k<\/a> shows a simulation in which the mode locates the stable fixed point of the system, rather than average density.<\/p>\n<p>Thus, to analyse population dynamics, we needed to specify an initial spatial tissue configuration and a diffusion coefficient. We had to also consider the distribution of neighbourhood densities across the tissue. The second approach for analysing tissue dynamics did not require these choices.<\/p>\n<p>We called the second approach \u2018neighbourhood-level dynamics\u2019. Here we analysed an ODE obtained by computing the average direction of change of each cell type (<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"section anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#Sec8\" rel=\"nofollow noopener\" target=\"_blank\">Methods<\/a>). To analyse this ODE, it was convenient to plot phase portraits for 2D models (for example, Figs. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2b\u2013d<\/a>, <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3f<\/a> and <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4c<\/a>) and trajectories for higher dimensions (for example, Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5b<\/a>).<\/p>\n<p>Generally, population and neighbourhood dynamics do not have to agree. The population model is stochastic and discrete, whereas the neighbourhood model is deterministic and smooth. We constructed examples to highlight two important differences between the population and neighbourhood approaches.<\/p>\n<p>The first type of discrepancy results from collapse of a cell population. In the deterministic neighbourhood dynamics, a cell population will always flow in the average direction of change. Thus, if a cell population has a positive stable fixed point, it will deterministically flow towards it. Conversely, in the stochastic population dynamics, a cell population can move against the average direction of change. If due to a random fluctuation, all cells in a population die, the population will not recover. This can produce large differences between neighbourhood and population dynamics. A collapse is more likely to occur for cells with a low-density fixed point. It is also more likely without diffusion. Adding even small\u00a0diffusion allows neighbourhoods with higher densities to \u2018rescue\u2019 neighbourhoods that had collapsed. Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1l<\/a> shows that the macrophage population eventually collapses without diffusion. Adding diffusion produces similar steady states under both models (Supplementary Fig.\u2009<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1l<\/a>).<\/p>\n<p>A second type of discrepancy results from the initial tissue configuration. Population dynamics depend on the initial tissue configuration, whereas neighbourhood dynamics do not. Certain particularly \u2018adversarial\u2019 tissue configurations, coupled with low cell motion, can produce large discrepancies. For example, under neighbourhood dynamics, the T and B cell model produces a flare from a location of (4,1) on the TB phase portrait (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4c<\/a>). Under population dynamics, a flare also occurs when we initialize a tissue by placing cells at random (Supplementary Fig.\u2009<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1m<\/a>, first example). However, we could organize the same number of cells such that no flare occurred. For example, we can place T cells at one side of the tissue and B cells at the other. In this case, the B cell population collapses because the B cells do not have T cell neighbours (Supplementary Fig.\u2009<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1m<\/a>, second example). Another option is placing all B cells in the same place, creating a high density of B cells locally. In this case, the low density of B cells at the tissue level does not reflect their high density locally (Supplementary Fig.\u2009<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">1m<\/a>, third example). In these examples, we used our understanding of neighbourhood dynamics to design a tissue configuration that produces a discrepancy.<\/p>\n<p>Simulations of known dynamical models<\/p>\n<p>To determine the accuracy of the inferred dynamical model as a function of sample size,\u00a0we simulated spatial data based on a known dynamical model (that is, predefined functions p+ and p\u2212) using the following procedure:<\/p>\n<p>                  (1)<\/p>\n<p>Sample a random initial number of cells for each cell type.<\/p>\n<p>                  (2)<\/p>\n<p>Sample a random spatial position in the tissue for each cell.<\/p>\n<p>                  (3)<\/p>\n<p>For n steps:<\/p>\n<p>                        (i)<\/p>\n<p>Compute for each cell the probability of division or death based on its current neighbourhood.<\/p>\n<p>                        (ii)<\/p>\n<p>Sample an event of division, death or none based on the computed probabilities.<\/p>\n<p>                        (iii)<\/p>\n<p>Remove dead cells and place a new cell next to each dividing cell (here the location of new cells is sampled uniformly within the neighbourhood. It is straightforward to incorporate knowledge about cell motility at this stage, if available).<\/p>\n<p>This produces a tissue section whose density and spatial distribution is produced\u00a0by the dynamics, as we assume is the case for real tissues. We repeated the procedure 100 times from various initial densities and sample with replacement 50,000 cells evenly from all tissues. From this pool, we then sampled 1,000, 5,000, 10,000 or 25,000 cells for the model fits.<\/p>\n<p>Because empirical distributions in our data had tails towards lower cell densities, we sampled the initial cell densities from a \u03b2-distribution biased towards lower densities (parameters 2,4 scaled to a maximal value of 7). Model parameters were selected to produce division rates in ranges that resemble real data (mostly within 1\u20136%). The fraction of divisions was approximately 2% for all models. We selected the number of simulation time steps as that required to produce distributions qualitatively similar to real data.<\/p>\n<p>To evaluate model fits, we tested whether the correct location and type of stable or semi-stable fixed points were recovered (Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">2g\u2013k<\/a>), as well as accuracy of reconstructed basins of attraction (Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">2l\u2013o<\/a>). To account for discretization error, if a stable point on an axis was recovered, and an unstable point was located within less than one cell from that point, we considered it as semi-stable. Such a point has effectively no basin of attraction. The same precaution should apply to interpretation of model fits in general.<\/p>\n<p>For a detailed analysis of the simulations of each ground truth model, see Supplementary Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">2g\u2013o<\/a>.<\/p>\n<p>Plotting Ki67 levels as a function of neighbourhood composition<\/p>\n<p>Figures <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3d,e<\/a> and <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4a,b<\/a> display the measured Ki67\u2009&gt;\u2009threshold as a function of neighbourhood composition. To transform the cell-level binary division events into rates, we computed a local average and subtracted the mean division rate. For the local average, we used a Gaussian smoothing kernel over the cell-density state-space, providing a non-parametric plot of the division rate. The gamma parameter of the kernel controls the degree of smoothing. We plotted a value of gamma that produces contours of similar complexity as those of the estimated parametric models.<\/p>\n<p>Magnitude of error due to unmodelled terms<\/p>\n<p>To estimate the effect of unmodelled processes we applied a Fokker\u2013Planck approach. Each tissue is analogous to a particle moving through a space whose coordinates are defined by the densities of each cell type. For example, the location \\(x\\) could be the density of fibroblasts and macrophages (that is, \\(x=(F,M)\\)). The velocity through this space is determined by the rate of change in each cell type. This velocity has a deterministic component composed of \\(\\vec{v}(x,y)\\), the division minus removal rates that we previously estimated using division markers, and \\(\\vec{u}(x,y)\\), which includes unmodelled terms such as cell migration and differentiation from stem cells. The velocity also includes a stochastic component, which reflects fluctuations in velocity of each cell type.<\/p>\n<p>Applying the Fokker\u2013Planck equation to our setting:<\/p>\n<p>$$\\frac{{\\rm{\\partial }}}{{\\rm{\\partial }}t}\\rho ({\\boldsymbol{x}})=-\\,{\\rm{\\nabla }}\\cdot [\\rho ({\\boldsymbol{x}})\\cdot (\\overrightarrow{{\\boldsymbol{v}}}({\\boldsymbol{x}})+\\overrightarrow{{\\boldsymbol{u}}}({\\boldsymbol{x}}))]+\\mathop{\\sum }\\limits_{i,j=1}^{N}\\frac{{{\\rm{\\partial }}}^{2}}{{\\rm{\\partial }}{{\\boldsymbol{x}}}_{i}{\\rm{\\partial }}{{\\boldsymbol{x}}}_{j}}[{D}_{i,j}({\\boldsymbol{x}})\\rho ({\\boldsymbol{x}})]$$<\/p>\n<p>For the notation: \\(\\nabla \\cdot \\) is the divergence operator; \\(\\rho ({\\boldsymbol{x}})\\) is the density of tissues at location \\({\\boldsymbol{x}}\\) in the state-space; \\(\\overrightarrow{{\\boldsymbol{v}}}({\\boldsymbol{x}})+\\overrightarrow{{\\boldsymbol{u}}}({\\boldsymbol{x}})\\) is the velocity of a neighbourhood in the state-space; \\(\\overrightarrow{{\\boldsymbol{v}}}({\\boldsymbol{x}})\\) is the division minus the death rate field, estimated from data; \\(\\overrightarrow{{\\boldsymbol{u}}}({\\boldsymbol{x}})\\) is the velocity field due to unmodelled terms such as cell migration (will be estimated now); and \\(D({\\boldsymbol{x}})\\) is the diffusion coefficient matrix. We assumed that fluctuations are proportional to the number of cells (for example, changes in nutrient availability modify growth rates of existing cells, rather than adding or removing cells at a constant rate).<\/p>\n<p>Formally, \\(dX=[{\\boldsymbol{v}}({\\boldsymbol{x}})+{\\boldsymbol{u}}({\\boldsymbol{x}})]dt+{\\sigma }({\\boldsymbol{x}})\\,\\circ \\,d{W}_{t}\\). Where \\(d{W}_{t}\\) is an N-dimensional Brownian motion and \\({\\sigma }({\\boldsymbol{x}})={\\sigma }\\cdot {({{\\boldsymbol{x}}}_{1},\\ldots ,{{\\boldsymbol{x}}}_{N})}^{T}\\) multiplies each component independently. Overall, for \\(i\\ne j\\) \\({D}_{i,j}({\\boldsymbol{x}})=0\\) and for \\(i=j\\) \\({D}_{i,i}({\\boldsymbol{x}})={{\\sigma }}^{2}{{{\\boldsymbol{x}}}_{i}}^{2}\\). The diffusion term becomes: \\({{\\sigma }}^{2}{\\sum }_{i=1}^{N}\\frac{{{\\rm{\\partial }}}^{{\\bf{2}}}}{{{\\rm{\\partial }}}^{2}{{\\boldsymbol{x}}}_{i}}[{{{\\boldsymbol{x}}}_{i}}^{2}\\rho ({\\boldsymbol{x}})]\\). We henceforth denote the scalar \\({\\sum }_{i=1}^{N}\\frac{{{\\rm{\\partial }}}^{2}}{{{\\rm{\\partial }}}^{2}{{\\boldsymbol{x}}}_{i}}[{{{\\boldsymbol{x}}}_{i}}^{2}\\rho ({\\boldsymbol{x}})]\\) as \\(D({\\boldsymbol{x}})\\). The equation becomes:<\/p>\n<p>$$\\frac{{\\rm{\\partial }}}{{\\rm{\\partial }}t}\\rho (x)=-\\,{\\rm{\\nabla }}\\cdot [\\rho ({\\boldsymbol{x}})\\cdot \\overrightarrow{{\\boldsymbol{v}}}({\\boldsymbol{x}})]-{\\rm{\\nabla }}\\cdot [\\rho ({\\boldsymbol{x}})\\cdot \\overrightarrow{{\\boldsymbol{u}}}({\\boldsymbol{x}})]+{{\\sigma }}^{{\\bf{2}}}D({\\boldsymbol{x}})$$<\/p>\n<p>For a large sample of patients, we can assume that sampling the same tumours within a number of days would produce approximately the same distribution. This implies that \\(\\frac{\\partial \\rho }{\\partial t}\\approx 0\\). Thus:<\/p>\n<p>$${\\rm{\\nabla }}\\cdot \\,[\\rho ({\\boldsymbol{x}})\\cdot \\overrightarrow{{\\boldsymbol{v}}}({\\boldsymbol{x}})]=-\\,{\\rm{\\nabla }}\\cdot [\\rho ({\\boldsymbol{x}})\\cdot \\overrightarrow{{\\boldsymbol{u}}}({\\boldsymbol{x}})]+{{\\sigma }}^{2}D({\\boldsymbol{x}})$$<\/p>\n<p>The left-hand side is inferred from data for all \\({\\boldsymbol{x}}\\). Recall, \\(\\overrightarrow{{\\boldsymbol{v}}}({\\boldsymbol{x}})\\) is estimated from division markers and we estimated \\(\\rho (x)\\) by computing the location of tissue of each patient in the state-space followed by kernel density estimation. We then numerically evaluated the divergence \\({\\rm{\\nabla }}\\cdot (\\rho ({\\boldsymbol{x}})\\cdot \\overrightarrow{{\\boldsymbol{v}}}({\\boldsymbol{x}}))\\) using finite differences.<\/p>\n<p>By plotting \\({\\rm{\\nabla }}\\cdot (\\rho \\cdot \\overrightarrow{{\\boldsymbol{v}}})\\), we can visualize the net contribution (in units of change in density per unit time) of the missing terms. In the special case where \\(\\sigma \\approx 0\\), we directly obtained the divergence of the error (for example, migration) field as \\({\\rm{\\nabla }}\\cdot (\\rho \\cdot \\overrightarrow{{\\boldsymbol{u}}})=-\\,{\\rm{\\nabla }}\\cdot (\\rho \\cdot \\overrightarrow{{\\boldsymbol{v}}})\\). Plotting \\({\\rm{\\nabla }}\\cdot (\\rho \\cdot \\overrightarrow{{\\boldsymbol{v}}})\\) thus identified the sources and sinks of the error field, as well as the magnitude of error. Note, for interpretability, we divided the rates by the maximal \\(\\rho \\) so that units are in [fractions of maximal density\/\u2206t].<\/p>\n<p>To quantify the contribution of diffusion versus deterministic terms (migration, and so on) we solved an ordinary least squares problem with a single parameter \\(\\sigma \\):<\/p>\n<p>$$\\hat{{\\sigma }}=\\mathop{\\text{arg min}}\\limits_{{\\sigma }}\\sum _{x}({\\rm{\\nabla }}\\cdot (\\rho ({\\boldsymbol{x}})\\cdot \\overrightarrow{{\\boldsymbol{v}}}({\\boldsymbol{x}}))-{{\\sigma }}^{2}D{({\\boldsymbol{x}}))}^{2}$$<\/p>\n<p>The variable \\({\\boldsymbol{x}}\\) is taken over a discrete 2D grid. Solving for \\(\\sigma \\) this way implies that the deterministic error velocity \\(\\overrightarrow{{\\boldsymbol{u}}}({\\boldsymbol{x}})\\) should not include components that could be explained by stochastic diffusion.<\/p>\n<p>Reporting summary<\/p>\n<p>Further information on research design is available in the <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-025-09876-1#MOESM2\" rel=\"nofollow noopener\" target=\"_blank\">Nature Portfolio Reporting Summary<\/a> linked to this article.<\/p>\n","protected":false},"excerpt":{"rendered":"The number of cells of a given type in a tissue section can change by division or death,&hellip;\n","protected":false},"author":2,"featured_media":421880,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[74787,19585,162475,1159,201349,1160,79,201350],"class_list":{"0":"post-421879","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-science","8":"tag-cancer-models","9":"tag-computational-biophysics","10":"tag-dynamical-systems","11":"tag-humanities-and-social-sciences","12":"tag-multicellular-systems","13":"tag-multidisciplinary","14":"tag-science","15":"tag-stochastic-modelling"},"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/posts\/421879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/comments?post=421879"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/posts\/421879\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/media\/421880"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/media?parent=421879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/categories?post=421879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/tags?post=421879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}