NAU-CHINA 队员
Mathematical Modeling
Mathematical Modeling

"ESM-2 weights map RGG phase behavior,

and PDE capture condensate dynamics."

—— NAU-CHINA

Abstract

Mathematical modeling framework diagram.

Figure 1. Mathematical modeling framework diagram.

In the mathematical modeling section, we established a multiscale computational framework to characterize RGG phase separation, intracellular ELP distribution, and intein-mediated protein replacement. To estimate the saturation concentration threshold and temperature-dependent phase behavior of RGG, we combined ESM-2-derived residue weights with the Stickers-And-Spacers and Flory-Huggins theory. For ELP, we integrated polar localization and coalescence kinetics, fluorescence image quantification, and a Cahn-Hilliard PDE model to resolve temperature-dependent condensate morphology and spatial organization. Regarding intein-mediated replacement, we compared intein kinetics and solved coupled ODE to evaluate scaffold-state switching, feedback regulation, and experimental schedules, providing quantitative guidance for construct selection and protocol design.

RGG Phase Separation Model

Introduction

The Static Sequestration Module in our toolbox is a phase separation module characterized by static, unconditional and weak multivalent interactions. This module can perform liquid‑liquid phase separation (LLPS) spontaneously[1]. Phase separation may be more effectively in vitro, but this was not achieveable in our experimental setting. Therefore, we turned to a computational strategy. We use the protein language model ESM-2 to reverse the residue weight, and combine the Stickers-And-Spacers theory with the Flory-Huggins mean field theory to predict whether phase separation will occur in the amino acid sequence. By solving the simultaneous equations, we obtained the concentration threshold of RGG phase separation in vitro.

Assumptions

  • Stochastic fluctuations in molecular copy number and conformational state are assumed negligible, consistent with a well-mixed steady-state regime.
  • Bond cooperativity is neglected: binding sites are treated as independent, so the occupancy of one site does not alter the affinity or kinetics of its neighbors.
  • Ignoring the macromolecular crowding effect and steric hindrance effect caused by sfGFP fused in RGG domain.

Parameters

Table 1. Symbol explanation.

Symbol Explanation
$L$ Sequence Length
$W_{\mathrm{i}}$ The virtual mutation weight of the sticker residue
$\tilde{w}_{\mathrm{i}}$ Sticker weight of residue normalized by Min-Max
$\rho_{\mathrm{s}}$ Sticker density
$\kappa_{\mathrm{s}}$ Arrangement index
$\chi_{\mathrm{i}}$ Flory-Huggins interaction parameters
$\chi_{\mathrm{0}}$ Baseline interaction parameters
$\alpha$ Slope of sequence feature expression
$\chi_{\mathrm{eff}}$ Flory-Huggins effective interaction parameters
$N$ Polymer chain length
$\varphi$ Polymer volume fraction
$f(\varphi)$ Grid point mixed free energy
$\mu_{\mathrm{1}}$ Chemical potential of solvents
$\mu_{\mathrm{2}}$ Chemical potential of polymers
$(\varphi_{\mathrm{c}}, \chi_{\mathrm{c}})$ Flory-Huggins critical point
$\varphi_{\mathrm{dilute}}$ Dilute phase volume fraction
$\varphi_{\mathrm{dense}}$ Volume fraction of dense phase
$\overline{v}$[2] Protein specific volume
$c$ Molar concentration
$C_{\mathrm{sat}}$ Saturation concentration

Applicability

The Stickers-And-Spacers theory and Flory-Huggins mean field theory are applicable to intrinsic disorder regions (IDR) dominated by cation-π/π-π weak multivalent interactions and without specific spatial arrangements. Static Sequestration Module falls within this range. At the same time, it is necessary to satisfy the premise that the contribution of residues to the interaction force can be additive and ignore bond synergy and fluctuations[3].

Stickers-And-Spacers and Flory-Huggins Theory

ESM-2 Residue Weight Inversion

The weights of Sticker residues[4] are obtained through unsupervised inversion by the masked language model ESM-2. When the i-th position is masked, the conditional probability output by the model is $P(x_{\mathrm{i}}|X_{\mathrm{\backslash i}})$, reflecting the evolutionary constraints required to maintain protein function at that site. Based on this, the weight of each sticker position is defined by the log-likelihood ratio:

$$W_{\mathrm{i}} =\ln P(x_{\mathrm{i}}=WT|X_{\mathrm{\backslash i}}) − \ln P(x_{\mathrm{i}}=Ala|X_{\mathrm{\backslash i}}) \approx -\frac{\Delta \Delta G}{k_{\mathrm{B}}T}$$

Ala serves as a neutral background residue to eliminate background noise in absolute probabilities.

After Min-Max normalization:

$$\tilde{w}_{\mathrm{i}}=\frac{W_{\mathrm{i}}−\min W}{\max W-\min W}$$

Obtain continuous weights in the [0, 1] interval. We employ ESM-2_t12_35M (Hugging face), load the tokenizer and masked language model head, and set them to evaluation mode. For each 170 aa sequence, we replace each position with $mask$ and perform a forward pass, yielding a $L\times20$ conditional log probability matrix. Sticker sites are set to W/R/Y/F/K, while background residues are set to Alanine. The entire sequence undergoes 170 forward passes to complete one inversion. Degenerate cases with equal weights are uniformly set to one for protection. The overall process is illustrated in Figure 2.

Figure 2. ESM-2 residue weight inversion process.

Key Parameters Formula

After obtaining continuous weights, we aggregate the entire sequence into two scalar features.

The valence state density is defined as:

$$\rho_{\mathrm{s}}=\sum_{\mathrm{i}}^{}\frac{\tilde{w}_{\mathrm{i}}}{L}$$

The arrangement index is the coefficient of variation of the 10 residue sliding window[5], defined as:

$$\kappa_{\mathrm{s}}=\frac{\sqrt{\mathrm{Var(x)}}}{\mathrm{E(x)}}$$

We use two literature anchors LAF-1[6] and DDx4[7] to inverse solve the baseline interaction and constant $\alpha$, and define the effective interaction:

$$\chi_{\mathrm{eff}} = \chi_{\mathrm{0}} + \alpha·\rho_{\mathrm{s}}·(1 + \kappa_{\mathrm{s}})$$

Free Energy and Chemical Potentials

The free energy of mixing per lattice point of polymer solvent mixed system is:

$$f(\varphi)=\frac{\varphi}{N}·\ln\varphi+(1−\varphi)·\ln(1−\varphi)+\chi·\varphi·(1−\varphi)$$

Two phase coexistence requires equal chemical potential:

$$\begin{cases}\mu_{\mathrm{1}}(\varphi)=\ln(1−\varphi) + (1−\frac{1}{N})·\varphi + \chi·\varphi^{²}\\ \mu_{\mathrm{2}}(\varphi)= \ln\varphi+(1−N)·(1−\varphi) + N·\chi·(1−\varphi)^{²}\end{cases}$$

Critical Point

The critical point satisfies that the second-order and third-order derivatives of free energy to $\varphi$ are zero at the same time,

$$\varphi_{\mathrm{c}}=\frac{1}{1+\sqrt{N}}$$

$$\chi_{\mathrm{c}}=\frac{(1+\sqrt{N})^{²}}{2N}$$

When the effective interaction parameter is larger than the critical point, phase separation occurs. We get the volume fraction of dilute phase and dense phase by solving that $\mu_{\mathrm{1}}$ and $\mu_{\mathrm{2}}$ are equal at the same time under the set conditions.

Results

Phase Diagram

Figure 3. Flory-Huggins phase diagram.

Figure 4. Temperature phase diagram.

As shown in Figure 3, the marked point of the dilute phase arm gives a saturated concentration of about 19.81 μmol/L in vitro, which is the same order of magnitude as the LAF1 anchor used in our inverse solution. This distribution also means that the vast majority of molecules converge into the close packed dense phase, and only a few remain in the dilute phase. Therefore, “whether phase separation occurs” generally depends on “whether the expression level crosses the threshold”, rather than linearly varying with the concentration. However, this concentration is the threshold in vitro, which may be 1-2 orders of magnitude different from the intracellular concentration[8].

The result in Figure 4 shows that the system is UCST-type[9]. Cooling makes the system go deeper into the two-phase region, and heating drives it back to single-phase, UCST ≈ 342.4K[6]. Beyond this value, phase separation and dissociation may not occur in the system. Therefore, phase separation and dissociation become switches that can be adjusted along the temperature axis, which also provides a way to follow for future design.

Sensitivity Analysis

We take the variable $N$ as the only disturbance and recalculate the whole process for $N$ in the set interval. This is because if only $N$ is changed without synchronous recalibration, the parameters on both sides will no longer be in the state of the same aperture, so the comparison will be meaningless.

Figure 5. Sensitivity Analysis regarding chain length.

Under the premise of fixed interaction strength, the saturated concentration decreases exponentially with the increase of chain length, spanning about six orders of magnitude, which is consistent with Flory-Huggins theory. The dilute phase concentration is determined by the chain length and the interaction strength, and is more sensitive to the chain length. The longer the chain, the lower the concentration required to achieve phase separation, and the easier the phase separation. In contrast, when only coarsening is changed, the saturation concentration is almost unchanged. In addition, when we tried to use the "one residue per lattice" commonly used in the literature as the standard of polymer chain length, after the complete recalibration path, we obtained a saturated concentration of 18.57 μmol/L, which was almost consistent with the previous result of 19.81 μmol/L. It should be noted that the chain length and interaction parameters of the polymer must be taken from the same coarse-grained standard.

Robustness Validation

To test the robustness of the main model, we used another route for cross validation under the same background. The calculation of total amino acid matrix gives the average attraction intensity of each residue, which is mainly obtained by adding the net charge term, RPA charge arrangement term and the constituent short-range term. The reference density, Bjerrum length, salt shielding parameters and other parameters involved in the calculation are fixed values, and the official example of EPIC-IDP is used to ensure that they can be reproduced, and the meaning and dimension are consistent with the reference[10]. In the matrix calculation part, Mpipi[11] is the main method to give the formal results, while CALVADOS2[12] and Urry derived matrix[13] are the comparison.

The master matrix Mpipi[11]:

$$\varepsilon^{\mathrm{Mpipi}}_{\mathrm{ab}}$$

It is $20\times20$ pairs of independent parameters, where $a,b\in\{A, G, V, L, I, M, F, W, Y, S, T, N, Q, C, P, R, K, D, E, H\} $ carries the independent information of each pair of residues;

Comparison matrix CALVADOS2[12]:

$$\varepsilon^{\mathrm{CALVADOS2}}_{\mathrm{ab}} = -\tfrac{(\lambda_{\mathrm{a}} + \lambda_{\mathrm{b}})}{2}$$

Where $\lambda_{\mathrm{i}}$is the one-dimensional scale of the $i$ residue;

Comparison matrix Urry[13]:

$$\varepsilon^{\mathrm{Urry}}_{\mathrm{ab}} = -\left[\tfrac{\lambda_{\mathrm{a}} + \lambda_{\mathrm{b}}}{2} - 0.08\right]$$

The values in the latter two comparison matrices are only attracted by the parameters corresponding to the physicochemical properties of a single residue after addition and synthesis, and do not carry pair by pair independent information; The charge tables of the three are also different. The main matrix Mpipi is taken as $\pm 0.75$, while the two comparison matrix is taken as $\pm 1.0$.

$\varepsilon_{\mathrm{ab}}$ is the paired short-range attraction strength of residues $a$, $b$. The more negative it is, the stronger the attraction is.

The average attraction intensity per residue calculated by the total amino acid matrix is:

$$\chi_{\mathrm{B}}=\chi_{\mathrm{elec}}+\chi_{\mathrm{rpa}}+\chi_{\mathrm{short}}$$

It should be noted that the rank of the two comparison matrices is only 2, while the rank of the main matrix is 18, so the criterion tests the robustness of the structure selection of the main matrix, rather than three independent measurements.

Table 2. Amino acid matrix calculation results.

Sequence Mpipi CALVADOS2 Urry
LAF-1 RGG 1.1071 1.3068 1.2030
Ddx4N1 RGG 1.3219 2.2543 2.2282
Team RGG 1.1044 1.2995 1.1976

Note: the data in the table are the corresponding amino acid attraction intensity under each matrix calculation.

The attraction intensity of the three full amino acid matrices to our team's RGG and natural LAF-1 is almost the same. Therefore, we draw the following conclusion. Under the premise of fixed other conditions of the model, only calculating the interaction force of sticker residues does not bring too much systematic deviation to the effective interaction parameters of the team's RGG. This approximation holds true for this sequence, and does not rely on the specific structure of the main matrix, eliminating the contingency of a single matrix structure.

Click here to show the core code

ELP Spatial Distribution Model

Polar Localization and Coalescence Model

Introduction

Literature indicates that S20I30 is a LCST-type ELP: above the transition temperature $T_{\mathrm{t}}$, liquid–liquid phase separation occurs, forming protein condensates. Inside E. coli cells, at 37°C the ELP appears as discrete PPSS clusters, whereas at 20°C condensates are predominantly enriched at the cell poles[14]. To determine the critical temperature for morphological switching and to guide the selection of experimental temperatures, we developed a kinetic model to elucidate how temperature regulates the spatial morphology of Liquid–Liquid Phase Separation (LLPS) of S20I30 in E. coli.

Assumptions

  • In a phase separation system, the condensates are subject only to competition between two mechanisms: polar localization and coalescence into discrete large clusters.
  • The influence of pH on the steady-state morphological distribution is disregarded here.
  • ELP expression and phase separation have reached a quasi-steady state, and the total amount of condensate material is conserved within the observation window.
  • Protein condensates have been shown to behave as viscoelastic Maxwell fluids with a strong, glass-like temperature dependence[15]. The interior of a condensate is a concentrated protein liquid phase whose viscosity deviates markedly from Arrhenius behavior as temperature varies. It is therefore described in the VFT form.
  • Polar localization is a conformational or transport rearrangement process controlled by an energy barrier, and is described by Eyring absolute reaction rate theory.
  • The coalescence timescale is given by Taylor–Cox–Grace viscous droplet fusion theory[15].

Parameters

Table 3. Symbol explanation.

Parameter Explanation
$T_{\mathrm{0}}$ VFT Vogel temperature
$B$ VFT activation parameter
$\eta_{\mathrm{0}}$ VFT pre-exponential factor
$\gamma_{\mathrm{0}}$ Interfacial tension at 20°C
$\alpha$ Temperature coefficient of interfacial tension
$k_{\mathrm{c0}}$ Proportionality coefficient of coalescence rate
$\Delta H^{\ddagger}$ Activation enthalpy of polar localization
$\Delta S^{\ddagger}$ Activation entropy of polar localization

Mathematical Framework

Governing Equation

The fraction of polar-localized condensates is chosen as the state variable, and the two competing kinetic pathways correspond to a first-order linear ODE:

$$\frac{\mathrm{d}P}{\mathrm{d}t}=k_\mathrm{p}(T)\,(1-P)-k_\mathrm{c}(T)\,P$$

This linear ordinary differential equation has the analytical solution:

$$P(t)=P^{*}+\left(P_{\mathrm{0}}-P^{*}\right)\mathrm{e}^{-\left(k_\mathrm{p}+k_\mathrm{c}\right)t},\qquad P^{*}=\frac{k_\mathrm{p}}{k_\mathrm{p}+k_\mathrm{c}}$$

The steady-state morphology of the system is determined by the ratio of the two rates. The initial value $P_{\mathrm{0}}$ affects only the trajectory by which the system approaches the steady state. Numerical solutions were obtained using the ode15s solver in MATLAB.

Parameterization of the Rate Constants

The polar localization rate is described by Eyring absolute reaction rate theory:

$$k_\mathrm{p}(T)=\frac{k_\mathrm{B}T}{h}\exp\!\left(-\frac{\Delta G^{\ddagger}}{RT}\right),\qquad \Delta G^{\ddagger}=\Delta H^{\ddagger}-T\,\Delta S^{\ddagger}$$

The interior of a condensate is a concentrated protein liquid phase whose viscosity deviates markedly from Arrhenius behavior with temperature and exhibits glass-like viscoelasticity, it is described by the VFT equation:

$$\eta(T)=\eta_{\mathrm{0}}\exp\!\left(\frac{B}{T-T_{\mathrm{0}}}\right)$$

Within the experimental range of 15-40°C, the interfacial tension varies approximately linearly with temperature:

$$\gamma(T)=\gamma_{\mathrm{0}}+\alpha\,(T-T_\mathrm{r}),\qquad T_\mathrm{r}=293.15\ \mathrm{K}$$

According to Taylor–Cox–Grace viscous droplet fusion theory, the characteristic coalescence time is:

$$\tau_\mathrm{coal}\approx\frac{\eta(T)\,R_\mathrm{d}}{\gamma(T)}$$

Taking the coalescence rate as $k_{\mathrm{c}} = 1/\tau_{\mathrm{coal}}$ and introducing the geometric prefactor $k_{\mathrm{c0}}$:

$$k_\mathrm{c}(T)=k_\mathrm{c0}\,\frac{\gamma(T)}{\eta(T)},\qquad k_\mathrm{c0}=\frac{1}{C\,R_\mathrm{d}}$$

Nondimensionalization

Defining the dimensionless control parameter $\Pi = k_{\mathrm{p}}/k_{\mathrm{c}}$ yields a closed-form expression:

$$\Pi(T)=\frac{C\,T\exp\!\left[-\dfrac{\Delta H^{\ddagger}}{RT}+\dfrac{B}{T-T_{\mathrm{0}}}\right]}{\gamma(T)}$$

The steady-state polar fraction is $P^{*} = \Pi/(1 + \Pi)$. Three asymptotic regimes follow:

  • $\Pi \gg 1$: $P^{*} \approx 1$, polar localization morphology.
  • $\Pi \ll 1$: $P^{*} \approx 0$, discrete PPSS cluster morphology.
  • $\Pi = 1$: $P^{*} = 0.5$, boundary between the two morphologies.

Results

Temperature-Dependent Trends

Figure 6. Dual-panel temperature scan.

The left panel shows $\Pi(T)$ as a function of temperature. Its intersection with the horizontal line $\Pi = 1$ (yellow marker) is the phase-boundary point. The right panel shows the monotonically decreasing curve of the steady-state fraction $P^{*}(T)$ together with a vertical line marking the phase boundary.

Figure 7. Temperature-regulated phase diagram.

The figure above shows the temperature-regulated phase diagram, colored by $\Pi$. In the yellow region ($\Pi > 1$), polar localization is favored, whereas in the blue region ($\Pi < 1$), the formation of discrete PPSS clusters is favored. The black dashed line denotes the temperature (30.34 °C) at which the competing effects of polar localization and coalescence are balanced.

Figure 8. ODE kinetics at six temperature nodes.

With the initial condition $P_{\mathrm{0}} = 0.1$, the analytical solutions at each temperature node within the 20-40°C range are plotted.

Global Parameter Sensitivity Analysis

Figure 9. PRCC bar chart.

The sensitivity analysis shows that $\Delta H^{\ddagger}$, $T_{\mathrm{0}}$, and $B$ each have an absolute partial rank correlation coefficient $|\mathrm{PRCC}| > 0.88$, indicating that the morphology of the system is governed mainly by the temperature responses of the energy barrier and viscosity.

Monte Carlo Analysis

Figure 10. Three-panel Monte Carlo distribution plot.

  • The peaks of both steady-state distributions deviate markedly from 0.5, indicating that the determination of the temperature-driven phenotypic transition is deterministic.
  • $\Delta P$ shows no accumulation of mass near 0, indicating that the model does not fluctuate randomly near the critical point.

These results indicate that the morphology of ELP condensates exhibits a clear tendency toward temperature regulation. It should be emphasized that 30.34°C is only a central estimate of the trend: we recommend sampling the experimental temperature gradient more densely within the 20-40°C range so as to evaluate more accurately the effect of temperature on the steady-state spatial distribution of ELP.

Experimental observations show that intracellular ELP in the 30°C field of view tends to localize at the cell poles, whereas discrete PPSS clusters form more readily at 37°C, which is in general agreement with the model-predicted phase boundary of 30.34°C.

Quantification of Spatial Features in Fluorescence Images

Introduction

To provide quantitative metrics for reference in the analysis of experimental fluorescence images, this module sequentially performs background correction, condensate segmentation, and spatial autocorrelation function (ACF) analysis to yield a series of quantitative metrics. Owing to image noise, the identification is stochastic, and the results are for reference only. The experimental conditions were 1 mmol/L IPTG, 7 h induction, neutral pH, and imaging temperatures of 16, 20, 25, 30, 37, and 40°C. Based on identification performance, fluorescence fractions were finally extracted at three temperature nodes (20, 37, and 40°C) and at 25°C under pH 6, 7, and 9.

Parameters

Table 4. Symbol explanation.

Parameter Explanation
$I'$ Background-corrected fluorescence image
$\sigma_{\mathrm{s}}$ Small-scale Gaussian standard deviation in the DoG background correction
$\sigma_{\mathrm{L}}$ Large-scale Gaussian standard deviation in the DoG background correction
$M_{\mathrm{cell}}$ Binary cell mask segmented from the bright-field image
$M_{\mathrm{c}}$ Binary condensate mask
$r_{\mathrm{TH}}$ Disk structuring-element radius of the white top-hat transform
$p$ Pixel size (µm/px)
$A_{\mathrm{c}}$ Total condensate area
$A_{\mathrm{cell}}$ Cell area
$\phi$ Condensate area fraction
$f$ Fluorescence partition fraction
$K$ Enrichment factor
$C(r)$ Radially averaged ACF
$\ell_{\mathrm{c}}$ Characteristic length scale, the radius at which $C(r)$ first decays to $e^{-1}$
$Q$ ACF integral index

Algorithm Principles

Background Correction

The difference between Gaussians (DoG) is used to remove the slowly varying intracellular background: the large-scale Gaussian-smoothed image ($\sigma_{\mathrm{L}} = 20\ \mathrm{px}$) is subtracted from the original image ($\sigma_{\mathrm{s}} = 0\ \mathrm{px}$), the median is subtracted, and negative values are set to zero, yielding the corrected image $I'$.

Cell Segmentation

The bright-field image is smoothed with a Gaussian filter ($\sigma = 1\ \mathrm{px}$), after which the large-scale Gaussian background is subtracted and the result is normalized, yielding response maps of two polarities (dark and bright). Each map undergoes adaptive binarization, debris removal, morphological closing, and hole filling, and the connected component with the higher fluorescence-signal score is selected as the cell mask $M_{\mathrm{cell}}$.

Condensate Segmentation

Condensates are small-scale, bright structures. First, a white top-hat transform (disk structuring element, $r = 3\ \mathrm{px}$) is applied to $I'$ to enhance bright spots. The image is then normalized using the 25th percentile of the intracellular intensity as the noise floor, and the union of the Otsu global threshold and an adaptive local threshold is taken and restricted to within $M_{\mathrm{cell}}$. Finally, 4-connected component labeling and filtering by a minimum condensate area (1 px) yield the condensate mask region $M_{\mathrm{c}}$.

Scalar Metrics

From $M_{\mathrm{c}}$ and $M_{\mathrm{cell}}$, the area fraction $\phi$, the fluorescence partition fraction $f$, and the enrichment factor $K$ are calculated:

$$\phi=\frac{A_{\mathrm{c}}}{A_{\mathrm{cell}}}$$

$$f=\frac{\sum_{\mathbf{x}\in M_{\mathrm{c}}}I'(\mathbf{x})}{\sum_{\mathbf{x}\in M_{\mathrm{cell}}}I'(\mathbf{x})}$$

$$K=\frac{f/\phi}{(1-f)/(1-\phi)}=\frac{\bar{I}_{\mathrm{c}}}{\bar{I}_{\mathrm{d}}}$$

Spatial Autocorrelation Function and Characteristic Length Scale

Within the cell mask, the mean of $I'$ is subtracted to obtain the intensity fluctuation, and the autocorrelation $G$ is then computed via a zero-padded FFT according to the Wiener–Khinchin theorem:

$$\delta I(\mathbf{x})=\left[I'(\mathbf{x})-\langle I'\rangle_{\mathrm{cell}}\right]M_{\mathrm{cell}}(\mathbf{x})$$

$$G(\boldsymbol{\Delta})=\mathcal{F}^{-1}\left\{\left|\mathcal{F}\{\delta I\}\right|^{2}\right\}$$

Because of the cell boundary, the number of overlapping pixels at displacement $\Delta$ decays with $|\Delta|$. The result is therefore corrected by the mask autocorrelation $W$ and normalized by its zero-displacement value:

$$W(\boldsymbol{\Delta})=\mathcal{F}^{-1}\left\{\left|\mathcal{F}\{M_{\mathrm{cell}}\}\right|^{2}\right\}$$

$$C_{\mathrm{2D}}(\boldsymbol{\Delta})=\frac{G(\boldsymbol{\Delta})/W(\boldsymbol{\Delta})}{G(\mathbf{0})/W(\mathbf{0})}$$

Radial averaging over annuli of unit pixel width yields $C(r)$:

$$C(r_{k})=\frac{1}{|\mathcal{A}_{k}|}\sum_{\boldsymbol{\Delta}\in\mathcal{A}_{k}}C_{\mathrm{2D}}(\boldsymbol{\Delta}),\; \mathcal{A}_{k}=\{\boldsymbol{\Delta}:k-1\le|\boldsymbol{\Delta}|<k\},\; r_{k}=\left(k-\tfrac{1}{2}\right)p$$

The characteristic length scale $\ell_{\mathrm{c}}$ is defined as the radius at which $C(r)$ first decays to $e^{-1}$. The ACF integral index $Q$ is defined as the ratio of the radial integral of the positive part of $C(r)$ to the cell area:

$$C(\ell_{\mathrm{c}})=e^{-1},\quad \ell_{\mathrm{c}}=r_{\mathrm{k-1}}+\frac{e^{-1}-C(r_{\mathrm{k-1}})}{C(r_{k})-C(r_{\mathrm{k-1}})}\left(r_{\mathrm{k}}-r_{\mathrm{k-1}}\right)$$

$$Q=\frac{2\pi}{A_{\mathrm{cell}}}\int_{\mathrm{0}}^{r_{\mathrm{max}}}\max\left[C(r),0\right]r\,\mathrm{d}r$$

Results

Condensate Identification and ACF Diagnostic Plots

Figure 11. Condensate identification and ACF diagnostic plot at 20°C.

(A) fluorescence (color scale shows normalized intensity). (B) bright-field image and cell mask. (C) background-corrected image overlaid with the cell outline (cyan), condensate boundaries (yellow), and centroids (red+). (D) radial ACF $C(r)$, where the red dashed line indicates $e^{-1}$ and the blue dashed line indicates $\ell_{\mathrm{c}}$.

At 20°C, fluorescence is concentrated at the two poles, and three condensates were identified, one of which is a weak-signal region in the middle of the cell and represents false detection caused by weak signals. $C(r)$ decays to $e^{-1}$ at $\ell_{\mathrm{c}} = 8.66\ \mathrm{px}$ and subsequently exhibits a negative-correlation trough of approximately −0.25 at $r \approx 18\ \mathrm{px}$, corresponding to the spatial separation between the polar enriched regions and the depleted middle region.

Figure 12. Condensate identification and ACF diagnostic plot at 37°C.

At 37°C, seven condensates were identified, with clusters present at both the poles and the middle of the cell. $\ell_{\mathrm{c}} = 9.49\ \mathrm{px}$, reflecting the long-range correlation arising from multiple clusters distributed along the long axis.

Figure 13. Condensate identification and ACF diagnostic plot at 40°C.

At 40°C, four condensates are distributed along the cell, with $\ell_{\mathrm{c}} = 6.69\ \mathrm{px}$ and $Q = 0.596$. The cell outline forms an incomplete ring, and the mask does not cover part of the intracellular region, $A_{\mathrm{cell}}$ may therefore be underestimated, so $\phi$ and $f$ may be overestimated.

Quantitative Summary

Table 5. Quantitative condensate metrics at different temperatures.

Temperature (°C) 20 37 40
Number of condensates 3 7 4
Condensate area (px) 676 646 605
Cell area (px) 3346 1923 1449
Area fraction (%) 20.2 33.6 41.8
Total condensate fluorescence intensity 61.5 190.3 214.3
Total cell fluorescence intensity 253.0 259.4 266.7
Fluorescence partition fraction (%) 24.3 73.4 80.3
Enrichment factor 1.27 5.45 5.70

At 20°C, the fluorescence partition fraction is low, corresponding to the initial stage of phase separation. Above 37°C, a substantial fraction of fluorescence is enriched within the condensates, indicating clear phase separation.

Table 6. Condensate size and ACF metrics.

Temperature (°C) 20 37 40
Characteristic length scale (px) 8.66 9.49 6.69
ACF integral index 0.435 0.748 0.596

The characteristic length scale and the ACF integral index were both taken from the diagnostic images. Overall, elevated temperature enhanced the spatial heterogeneity of intracellular ELP condensates. At 40°C, the ACF integral index and characteristic length decreased, presumably because sufficient ELP induction at high temperature increased nucleation sites and promoted coalescence into multiple large, diffuse, evenly distributed PPSS clusters, thereby increasing system homogeneity.

Table 7. Fluorescence partition fraction at different pH (25°C).

pH 6 7 9
Fluorescence partition fraction (%) 31.7 38.8 41.4

The fluorescence partition fraction at 25°C increases with pH, indicating that a higher pH favors the enrichment of ELP in condensates.

PDE Model of ELP Intracellular Phase Separation

Introduction

In this section, a partial differential equation (PDE) model of ELP (S20I30) phase separation was established on a two-dimensional cross-section of E. coli, elucidating how temperature and pH regulate the spatial distribution of intracellular condensates through the Flory–Huggins interaction parameter $\chi(T,\mathrm{pH})$.

Parameters

Table 8. Symbol explanation.

Parameter Explanation
$N$ Effective degree of polymerization
$\phi_{0}$ Mean volume fraction
$k_{\mathrm{B}}T$ Thermal energy
$\kappa$ Interfacial gradient coefficient
$T_{\mathrm{c}}$ Phase transition temperature
$[\chi_{\mathrm{min}}, \chi_{\mathrm{max}}]$ Range of $\chi$
$M_{\mathrm{ref}}$, $E_{\mathrm{a}}/R$, $T_{\mathrm{ref}}$ Mobility parameters
$\sigma_{\mathrm{rel}}$, $\delta$ Fluorescence-fraction error and Huber threshold
$c_{\mathrm{1}}$ Linear pH coefficient of $\chi$
$d_{\mathrm{0}}$ Offset of $\chi$ at the reference pH
$\mathrm{pH}_{\mathrm{ref}}$ Reference pH

Fitting Objectives

Density, area fraction, and fluorescence fraction were obtained from the experimental fluorescence images through the image segmentation described in the previous section. Because of certain deviations between the fluorescence-image recognition algorithm of the previous section and the PDE simulation, this model fits only the fluorescence-fraction data.

Table 9. Experimental values of condensate metrics at different temperatures.

Temperature Density Area fraction Fluorescence fraction
20°C 0.897 0.202 0.243
37°C 3.641 0.336 0.734
40°C 2.761 0.418 0.803

Figure 14. ELP fluorescence images in E. coli at two temperatures. (A) 16°C. (B) 25°C.

The figure above provides the qualitative constraints for the model:

  • At 16°C, condensates are distributed along the cell wall, suggesting that this temperature is close to the phase transition. Therefore, we take 16°C as the phase transition temperature.
  • At 25°C, although phase separation has occurred, the diffuse distribution results in a low system heterogeneity.

In addition, the fluorescence partition fraction measured at different pH values (Table 7) constrain the pH dependence of $\chi$.

Assumptions

  • The cytoplasm is treated as a binary ELP-solvent system, and fluorescence is linearly related to the concentration $\phi$.
  • The longitudinal cell cross-section is represented by a capsule-shaped two dimensional domain, with zero-flux and neutral-wetting boundary conditions. This simplification retains the confinement effect of the rod-shaped geometry while requiring significantly less computation than a three-dimensional model.
  • The total amount of ELP remains constant within the observation window, with no synthesis or degradation terms.
  • pH affects the system only through the interaction parameter $\chi$, which varies linearly with pH within the experimental range.

Model Framework

Cahn–Hilliard Phase Field Model

The model is discretized by the finite volume method on a two-dimensional capsule domain and solved with a semi-implicit time-marching scheme. The free energy density of the system is:

$$f(\phi)=k_{\mathrm{BT}}\left[\frac{\phi}{N}\ln\phi+(1-\phi)\ln(1-\phi)+\chi\,\phi(1-\phi)\right]$$

where $N$ is the effective degree of polymerization and $\chi$ is the ELP–solvent interaction parameter, which depends on temperature and pH:

$$\chi(T,\mathrm{pH})=a+\frac{b}{T}+c_1\left(\mathrm{pH}-\mathrm{pH}_{\mathrm{ref}}\right)+d_0,\qquad c_1\ge 0$$

The critical point is given by[17]:

$$\chi_{\mathrm{c}}=\frac{1}{2}\left(1+\frac{1}{\sqrt{N}}\right)^{2},\qquad \phi_{\mathrm{c}}=\frac{1}{1+\sqrt{N}}$$

With the interfacial gradient energy, the free energy functional and the chemical potential are:

$$F[\phi]=\int_{\Omega}\left[f(\phi)+\frac{\kappa}{2}\left|\nabla\phi\right|^{2}\right]\mathrm{d}\Omega$$

$$\mu=\frac{\partial f}{\partial\phi}-\kappa\nabla^{2}\phi,\qquad \frac{\partial f}{\partial\phi}=k_BT\left[\frac{\ln\phi+1}{N}-\ln(1-\phi)-1+\chi(1-2\phi)\right]$$

The dynamics follow the Cahn–Hilliard equation with a degenerate Arrhenius-type mobility:

$$\frac{\partial\phi}{\partial t}=\nabla\cdot\left[M(\phi,T)\,\nabla\mu\right]$$

$$M(\phi,T)=M_T(T)\,\phi(1-\phi),\qquad M_T(T)=M_{\mathrm{ref}}\exp\left[-\frac{E_a}{R}\left(\frac{1}{T}-\frac{1}{T_{\mathrm{ref}}}\right)\right]$$

At the cell membrane, zero-flux and neutral-wetting boundary conditions are imposed:

$$\mathbf{n}\cdot\nabla\phi=0,\qquad \mathbf{n}\cdot\left(M\nabla\mu\right)=0\quad$$

Spinodal Decomposition Criterion and Linear Stability

When the second derivative $f_{\phi\phi} = \partial^{2}f/\partial\phi^{2}\big|_{\phi_{0}} = -2k_{\mathrm{B}}T(\chi - \chi_{\mathrm{s}})$ is negative, the homogeneous state becomes unstable, which yields the spinodal:

$$\chi_s=\frac{1}{2}\left[\frac{1}{N\phi_0}+\frac{1}{1-\phi_0}\right]$$

The growth rate of a perturbation mode $q$, the fastest-growing wavenumber, and the maximum growth rate are:

$$\omega(q)=-M_0\,q^{2}\left(f_{\phi\phi}+\kappa q^{2}\right),\qquad q_m=\sqrt{\frac{-f_{\phi\phi}}{2\kappa}},\qquad \omega_{\max}=\frac{M_0\,f_{\phi\phi}^{2}}{4\kappa}$$

Therefore, $\omega_{\mathrm{max}} \propto (\chi - \chi_{\mathrm{s}})^{2}$: a larger $\kappa$ gives a longer wavelength and a lower growth rate of the fastest-growing mode.

Numerical Methods

Spatially, a five-point finite-volume discretization is used, with the mobility taken as the arithmetic mean of adjacent grid points. Temporally, a semi-implicit scheme is employed[18]:

$$\left(\mathbf{I}+\Delta t\,\kappa\,\mathbf{L}_M\mathbf{A}\right)\boldsymbol{\phi}^{n+1}=\boldsymbol{\phi}^{n}+\Delta t\,\mathbf{L}_M\,\boldsymbol{\mu}_b\!\left(\boldsymbol{\phi}^{n}\right)$$

where $\mathbf{A}$ is the discrete Laplacian operator, $\mathbf{L}_{M}$ is the mobility-weighted discrete operator $\nabla\cdot(M\nabla\cdot)$, and $\mu_{\mathrm{b}} = \partial f/\partial\phi$.

Adaptive time stepping: when the new solution is non-finite or falls outside [-0.02, 1.02], $\Delta t$ is halved. After 8 consecutive accepted steps, $\Delta t$ is multiplied by 1.1 (upper limit 0.4). At each step, $\phi$ is clipped to $[10^{-7},1-10^{-7}]$, and the resulting mass error is redistributed with the weight $(\phi - 10^{-7})(1 - 10^{-7} - \phi)$ to ensure strict conservation of the total amount:

$$\sum_{i}\phi_i^{\,n+1}=\sum_{i}\phi_i^{\,0},\qquad 10^{-7}\le\phi_i^{\,n+1}\le 1-10^{-7}$$

The step budget depends on temperature $T$. The base step count and the slow-quench step count are respectively set to $N_{0} = 300$ and $N_{\mathrm{s}} = 700$:

$$N_{\mathrm{step}}(T)=\operatorname{round}\!\left[N_0+\operatorname{clip}\!\left(\frac{35-T}{15},\,0,\,1\right)^{1.4}\left(N_s-N_0\right)\right]$$

Constrained Fitting of $\chi(T)$

Parameters $(a, b)$ are fitted via Nelder–Mead with variables $(\chi(\bar{T}), b/10^3)$. The transition temperature of $16^\circ\mathrm{C}$ is imposed as a soft quadratic prior. The objective function is:

$$J = J_{\mathrm{data}} + J_{\mathrm{prior}}$$

$$J_{\mathrm{data}}=\frac{1}{3}\sum_{i=1}^{3}\rho_\delta\left(\frac{F_i^{\mathrm{model}}-F_i^{\mathrm{exp}}}{\max(0.15F_i^{\mathrm{exp}}, 10^{-3})}\right)$$

$$\rho_\delta(r)=\begin{cases} \frac{1}{2}r^2, & |r|\leq 1.5 \\ 1.5(|r|-0.75), & |r|>1.5 \end{cases}$$

$$J_{\mathrm{prior}}=\lambda_{16}\left[\chi(16^\circ\mathrm{C})-\chi_c\right]^2+\lambda_{12}\left[\max(0,\chi(12^\circ\mathrm{C})-\chi_c)\right]^2$$

Since pH acts only through $\chi$, $F(\chi)$ is simulated once. Parameters $(c_1,d_0)$ are then obtained via interpolation and multi-start Nelder–Mead:

$$J_{\mathrm{pH}}=\sum_{i=1}^{3}r_i^{2}+0.05\left(\frac{d_0}{0.1}\right)^{2}$$

where $r_i$ uses $F_i^{\mathrm{model}}$ evaluated at $\chi(25^{\circ}\mathrm{C},\mathrm{pH}_i)$. A final PDE solve verifies the curve.

Evaluation Metrics

The condensate fluorescence fraction $F$ is defined as the ratio of condensate fluorescence to total intracellular fluorescence:

$$F=\frac{\sum_{i\in\Omega_c}\phi_i}{\sum_{i\in\Omega}\phi_i}$$

A spatial heterogeneity index $H$ is introduced to quantify the non-uniformity of the condensate distribution within the cell. The larger $H$ is, the more non-uniform the spatial distribution of the condensates:

$$H=\frac{\mathrm{std}(\phi)}{\mathrm{mean}(\phi)}$$

Results

Fitting Results

Figure 15. Fitted $\chi(T) = a + b/T$ curve and phase transition temperature (pH = 7).

The fit yields $a = 8.3773$ and $b = -2233.93$. In Figure 16, $\chi$ increases monotonically with temperature, exhibiting LCST behavior. The transparent blue shaded area denotes the valid range for the phase transition temperature. Based on experimental results, the phase transition temperature is set to 16°C.

Fluorescence-Fraction Fitting and Spatial Heterogeneity

Figure 16. Model–experiment comparison of the condensate fluorescence fraction and the variation of spatial concentration heterogeneity with temperature.

At 37°C and 40°C, the model-predicted fluorescence fractions both fall within the error bands of the experimental values. At 20°C, the predicted fraction lies below the experimental value, representing the principal deviation. This deviation may stem from 20°C lying only marginally above the spinodal, corresponding to a shallow-quench condition with slow evolution. $H$ increases monotonically with temperature, indicating that the degree of phase separation progressively intensifies with increasing temperature.

pH Dependence of the Fluorescence Fraction

Figure 17. Model–experiment comparison of the condensate fluorescence fraction versus pH at 25°C and fitted pH dependence of $\chi$.

The fit yields $c_1 = 0.003628$ and $d_0 = -0.005868$. In the left panel, the model reproduces the monotonic increase of the fluorescence fraction with pH. In the right panel, $\chi$ increases linearly with pH and remains above the spinodal value. The small $c_1$ and $d_0$ indicate that pH acts as a weak modulation of $\chi$ compared with temperature.

Final Concentration Fields

Figure 18. Final ELP concentration fields $\phi$ at six temperatures (pH = 7).

At 20-24°C, the spatial heterogeneity index is low, corresponding to the early stage of phase separation. Above 28°C, the heterogeneity index increases markedly, consistent with fluorescence images.

Numerical Diagnostics

Figure 19. Temperature-resolved numerical diagnostics: degree of phase separation, mean fluorescence, and mass conservation check.

As temperature increases, the degree of phase separation increases markedly. The vertical fluctuation of mean fluorescence intensity is negligible, and the relative mass drift remains at round-off level, confirming good numerical stability and strict mass conservation.

Parameter Sensitivity

Figure 20. Sensitivity of final-state heterogeneity and mean fluorescence to the interfacial gradient coefficient $\kappa$ at 37°C.

$H$ decreases monotonically with $\kappa$, indicating moderate sensitivity. This arises because increasing $\kappa$ reduces the characteristic wavenumber and maximum growth rate, suppressing small-scale structures and lowering contrast. Mean fluorescence remains essentially unchanged, consistent with mass conservation.

Interactive Panel

Introduction

We developed an interactive simulation panel: by adjusting the temperature and pH, users can observe in real time the evolution of the intracellular ELP (S20I30) volume-fraction field $\phi$ from a homogeneous state to a condensed state, thereby revealing the regulatory rules governing the steady-state spatial distribution of ELP in E. coli.

Assumptions

  • Curvature coupling is introduced: the membrane curvature at the two poles of E. coli is high, and the free energy of the system is lower in regions of high curvature.

User Guide

1.Download the interactive_part.pdf and copy four codes to a folder;

2.Open a terminal, change the directory to this folder, and install the required modules (Flask, Flask-CORS, NumPy, SciPy, Matplotlib, Pillow, Gunicorn):

pip install flask flask-cors numpy scipy matplotlib pillow gunicorn

3.Run the program:

  • pip install -r requirements.txt
  • python app.py

4.Open http://127.0.0.1:5000 in a browser, the interface shown in Figure 21 appears. Drag the sliders to set $T$ and pH, and click Generate Animation to generate the animation;

5.Mean of the metrics:

  • Polarization Index PI: the proportion of the ELP volume fraction in the polar regions relative to the total amount within the cell
  • Mass Conservation Deviation: the relative change of the final-state total mass with respect to the initial state

Figure 21. Simulation result of intracellular phase separation at $T = 37^{\circ}\mathrm{C}$ and pH = 7.

Click here to show the core code

Protein Transposition Model

Selecting Two Intein Pairs

Introduction

Protein replacement experiments need two splicing ends that form the intended product within an observable time window while limiting unintended pairing[19]. We evaluate Gp41-1/NrdJ-1 for reaction speed and Cat/mut-Cfa for coordination. The calculations help prioritize constructs and junction controls.

Assumptions

  • Both splicing ends are modeled as independent first-order processes starting at the same time.
  • Progress at each end is normalized to its respective plateau.
  • No additional binding or transport limitation is included in the independent-end model.

Parameters

Table 10. Symbol explanation.

Symbol Explanation
$k_{\mathrm{Gp41-1}}; k_{\mathrm{NrdJ-1}}$
Native, 25°C
Gp41-1: 4.200 min−1; reported yield 83 ± 3%.
NrdJ-1: 1.122 min−1; reported yield 100 ± 7%.
$k_{\mathrm{Gp41-1}}; k_{\mathrm{NrdJ-1}}$
Non-native, 25°C
Gp41-1: 0.00780 min−1; reported yield 30 ± 1%.
NrdJ-1: 0.00174 min−1; reported yield 21 ± 2%.
$k_{\mathrm{Gp41-1}}; k_{\mathrm{NrdJ-1}}$
Non-native, 37°C
Gp41-1: 0.01920 min−1; reported yield 37 ± 1%.
NrdJ-1: 0.00372 min−1; reported yield 40 ± 2%.
$t$; $k_{\mathrm{A}}$, $k_{\mathrm{B}}$ Time (min); apparent first-order rates of the two ends (min−1)
$f_{\mathrm{A}}$, $f_{\mathrm{B}}$; $F_{\mathrm{both}}$ Normalized single-end progress; ideal benchmark for both ends completing (0–1)
$T_{\mathrm{both}}$; $t_{90}$; $R_{\mathrm{k}}$ Waiting time for both ends (min); time to 90% normalized completion (min); faster/slower rate ratio
$k_{\mathrm{Cat,ref}}$; $k_{\mathrm{Cfa,ref}}$ Cross-study reference rates: 0.7049 and 2.0794 min−1
$k_{\mathrm{mut}}$; $m$ Unknown mut-Cfa rate; illustrative matching factor m=2
$\beta$; $\kappa$ Effective rate of binding at the other end; premature Cfa splicing rate (min−1)
$\chi$; $\rho$; $\Pi$ β/kCat,ref; κ/kCat,ref; conditional probability that the other end binds first

Applicability

We list the published mean rates used for the results[20], noting that each intein was measured in its own external construct and that the non-native junctions refer to the specific sequences tested in that study. We use mut-CfaN with team-reported L75/L81, consistent with the M75L/M81L key sites, and published experiments support coordinated replacement by Cat/mut-Cfa in the tested constructs[21]. The reference half-times for Cat and original-Cfa are 59 s[22] and 20 s[23], respectively, at 30°C in separate studies.

Mathematical Model

The equations below describe normalized progress and completion times, using literature means rather than fitted project data, 90% normalized completion is not 90% absolute product yield.

$$\begin{gather*} F_{\mathrm{both}}(t) = f_{\mathrm{A}}(t)f_{\mathrm{B}}(t) \\ F_{\mathrm{both}}(t_{90}) = 0.90 \\ R_{\mathrm{k}} = \frac{\max(k_{\mathrm{A}},k_{\mathrm{B}})}{\min(k_{\mathrm{A}},k_{\mathrm{B}})} \\ \mathbb{E}[T_{\mathrm{both}}] = \frac{1}{k_{\mathrm{A}}}+\frac{1}{k_{\mathrm{B}}}-\frac{1}{k_{\mathrm{A}}+k_{\mathrm{B}}} \\ k_{\mathrm{A}}=k_{\mathrm{B}}=k \implies t_{90} = \frac{-\ln(1-\sqrt{0.90})}{k}\approx\frac{2.970}{k} \end{gather*}$$

The equations convert the reference half-times and define a mut-Cfa target interval; the last assumes that only the Cfa end is initially bound, with competing exponential binding and splicing events and no dissociation, and at fixed $\beta > 0$, reducing ${\kappa}$ increases the chance that the other end binds first.

$$\begin{aligned} \Pi &= \frac{\beta}{\beta+\kappa}=\frac{\chi}{\chi+\rho} \\ \chi &= \frac{\beta}{k_{\mathrm{Cat,ref}}}, \qquad \rho=\frac{\kappa}{k_{\mathrm{Cat,ref}}} \\ \left.\frac{\partial\Pi}{\partial\kappa}\right|_{\beta} &= -\frac{\beta}{(\beta+\kappa)^2}<0 \end{aligned}$$

Results

Figure 22. Splice junction dependence of Gp41-1 and NrdJ-1 completion.

The results demonstrate that Gp41-1/NrdJ-1 reaches 90% completion in approximately 2 min under native junctions, indicating that this intein pair possesses rapid splicing capability. Gp41-1/NrdJ-1 is used to assess reaction speed, whereas Cat/mut-Cfa is used to assess coordination. These results support the selection of Gp41-1/NrdJ-1 as a rapid-splicing candidate, while its overall design still requires integration with the coordination model of Cat/mut-Cfa.

Figure 23. Matching targets and coordination for Cat and mut-Cfa.

The vertical lines mark Cat and original-Cfa references from separate studies[22,23]. An illustrative target interval for mut-Cfa was derived from the Cat reference rate and a twofold margin, providing a reference range within which the mut-Cfa splicing rate can be matched to that of Cat. The results indicate that the mut-Cfa rate can be tuned into the target interval near the Cat reference rate, thereby facilitating coordinated splicing at both ends.

Input Dependent Changes in Three Color Scaffold States

Introduction

Experiments need to determine when sequential inputs produce detectable replacement intermediates and when to sample each state. We connect inducer responses, splicing and repressor release to predict the accumulation and decline of green, red and blue scaffold states.

Assumptions

  • $P_1$ converts $S_0$ to $S_1$ and releases CymR; $P_2$ converts $S_1$ to $S_2$ and releases TetR.
  • TetR represses Ptet-driven $P_1$, while CymR represses Pcym-driven $P_2$. ATc and cumate relieve the respective repression.
  • Each effective event consumes one precursor, converts one site and releases the corresponding repressor and old complex.
  • The deterministic model assumes constant cell volume, growth and expression capacity.
  • Green scaffold is replenished continuously, and released repressors are immediately available.
  • Individual sites move only $S_0$ → $S_1$ → $S_2$. Population-level decreases may result from dilution and replenishment.

Parameters

Table 11. Symbol explanation.

Symbol Explanation
$P_1$, $P_2$ Precursors for the first and second steps; mean molecules/cell
$T$, $C$ Free TetR and CymR available for feedback; mean molecules/cell
$S_0$, $S_1$, $S_2$ Green, red and blue scaffold states; effective sites/cell
$F_1$, $F_2$ Released old green and red complexes; mean complexes/cell
$\mu$ 0.025 min−1. Growth dilution; team-reported measurement
$\eta_1$, $\eta_2$ 0.90; 0.78. Efficiency factors; team-reported
$k_{\mathrm{cat},1}$ 0.04 / 0.023 min−1. Figure 24 / dynamic baseline
$k_{\mathrm{cat},2}$ 0.03 / 2.08 min−1. Figure 24 / dynamic baseline
$K_{m1}$, $K_{m2}$ 9.2; 50 nM. Precursor saturation scales; binding-Kd proxy
$m_{\mathrm{a}}$, $m_{\mathrm{c}}$ 3.126; 2. Inducer-response exponents; external aTc-response proxy
$n_1$, $n_2$ 2; 2. Repression Hill exponents
$K_1$, $K_2$ 8; 140 nM. Half-repression scales
$K_{\mathrm{a}}$, $K_{\mathrm{c}}$ 100 ng/mL; 3 μM. Effective inducer-response scales; team-provided
$\alpha_1$, $\alpha_2$ 7800 each. Maximum precursor production; molecules·cell−1·min−1, team estimates
$\alpha_{\mathrm{S}}$ 1560. Scaffold production; sites·cell−1·min−1, team estimate
$k_{\mathrm{deg},P1}$, $k_{\mathrm{deg},P2}$ 0; 0 min−1. Additional precursor removal
$k_{\mathrm{deg},F1}$, $k_{\mathrm{deg},F2}$ 0; 0 min−1. Additional released-complex removal
$k_{\mathrm{LVA}}$ 0 min−1. Additional TetR removal
$V_{\mathrm{cell}}$ 10−15 L/cell. Reference cell volume
$\theta_1$, $\theta_2$ 1; 1. Effective-flux corrections; implicit in Figure 24, explicit in the dynamic baseline

Conditions

$P_1$ = $P_2$=1 molecule/cell, $S_0$=62400 sites/cell, and all other states start at zero. Inputs are zero until 30 min; aTc then becomes 200 ng/mL, and cumate becomes 10 μmol/L at 90 min while aTc remains present through 250 min.

Mathematical Model

The state equations use per-cell quantities, while repression and saturation functions use nmol/L. $M = N_{\mathrm{A}} V_{\mathrm{cell}} \times 10^{-9} \approx 0.602214076$ converts quantities to concentrations using Avogadro’s constant $N_{\mathrm{A}}$. Inputs $u(t)$ and $w(t)$ are aTc (ng/mL) and cumate (μmol/L), $x(t) = \frac{u(t)}{K_{\mathrm{a}}} \quad \text{and} \quad q(t) = \frac{w(t)}{K_{\mathrm{c}}}$ are their normalized values. Effective repressor concentrations determine precursor production rates $r_1$ and $r_2$ (molecules·cell−1·min−1).

$$\begin{aligned} x(t) &= \frac{u(t)}{K_{\mathrm{a}}} &\quad q(t) &= \frac{w(t)}{K_{\mathrm{c}}} \\[1ex] T_{\mathrm{eff}} &= \frac{T/M}{1+x^{m_{\mathrm{a}}}} &\quad C_{\mathrm{eff}} &= \frac{C/M}{1+q^{m_{\mathrm{c}}}} \\[1ex] r_1 &= \frac{\alpha_1}{1+(T_{\mathrm{eff}}/K_1)^{n_1}} &\quad r_2 &= \frac{\alpha_2}{1+(C_{\mathrm{eff}}/K_2)^{n_2}} \end{aligned}$$

Splicing fluxes $v_1$ and $v_2$ (sites·cell−1·min−1) use effective saturation functions. Only the product $a_i = \theta_i k_{\mathrm{cat},i}\eta_i$ is identifiable from these equations. Its factors should not be fitted freely together. The historical symbol $k_{\mathrm{cat}}$ does not imply repeated catalytic turnover.

$$\begin{aligned} a_i &= \theta_i k_{\mathrm{cat},i}\eta_i & v_1 &= a_1 S_0\times\frac{P_1/M}{K_{\mathrm{m1}}+P_1/M} \\ \frac{\mathrm{d}P_1}{\mathrm{d}t} &= r_1-v_1-\delta_{P_1}P_1 & v_2 &= a_2 S_1\times\frac{P_2/M}{K_{\mathrm{m2}}+P_2/M} \\ \frac{\mathrm{d}P_2}{\mathrm{d}t} &= r_2-v_2-\delta_{P_2}P_2 & \frac{\mathrm{d}S_0}{\mathrm{d}t} &= \alpha_S-v_1-\mu S_0 \\ \frac{\mathrm{d}T}{\mathrm{d}t} &= v_2-(\mu+k_{\mathrm{LVA}})T & \frac{\mathrm{d}S_1}{\mathrm{d}t} &= v_1-v_2-\mu S_1 \\ \frac{\mathrm{d}C}{\mathrm{d}t} &= v_1-\mu C & \frac{\mathrm{d}S_2}{\mathrm{d}t} &= v_2-\mu S_2 \\ \frac{\mathrm{d}F_1}{\mathrm{d}t} &= v_1-\gamma_{F_1}F_1 & \frac{\mathrm{d}F_2}{\mathrm{d}t} &= v_2-\gamma_{F_2}F_2 \\ \delta_{P_i} &= \mu+k_{\mathrm{deg},P_i} & \gamma_{F_i} &= \mu+k_{\mathrm{deg},F_i}, \quad i=1,2 \end{aligned}$$

Total removal rates $\delta$ and $\gamma$ include dilution plus additional degradation. Scaffold replenishment and dilution set the total. At the stated initial total, $S_{\mathrm{tot}}$=62400 sites/cell. The green, red and blue fractions sum to one.

$$\begin{aligned} S_{\mathrm{tot}} &= S_0+S_1+S_2, & \qquad g(t) &= \frac{S_0}{S_{\mathrm{tot}}} \\ \frac{\mathrm{d}S_{\mathrm{tot}}}{\mathrm{d}t} &= \alpha_{\mathrm{S}}-\mu S_{\mathrm{tot}}, & \qquad r(t) &= \frac{S_1}{S_{\mathrm{tot}}} \\ S_{\mathrm{tot}}(t) &= \frac{\alpha_{\mathrm{S}}}{\mu}+\left[S_{\mathrm{tot}}(0)-\frac{\alpha_{\mathrm{S}}}{\mu}\right]e^{-\mu t}, & \qquad b(t) &= \frac{S_2}{S_{\mathrm{tot}}} \end{aligned} \begin{aligned} \boldsymbol{I}_{\mathrm{obs}}(t) &= A\boldsymbol{z}_{\mathrm{mature}}(t)+\boldsymbol{b}_{\mathrm{bg}}(t)+\boldsymbol{\varepsilon}(t) \end{aligned}$$

In the last one, $\boldsymbol{I}_{\mathrm{obs}}$ is the instrument signal, ${z}_{\mathrm{mature}}$ the detected mature fluorescent components, A the brightness/crosstalk matrix, ${b}_{\mathrm{bg}}$ the background, and $\varepsilon$ the error. This observation layer is not fitted in the current plots.

Results

Figure 24. Scaffold state dynamics under demonstration parameters.

The result demonstrates that the three-state switching framework is experimentally feasible in principle and changes in the number of spots essentially reflect variations in the instrument's fluorescence signal.With aTc added at 30 min and cumate at 90 min, the red state reaches ~5,168 sites/cell (8.28%) at ~90.4 min and the blue state reaches ~1,496 sites/cell (2.40%) at ~118.6 min, while the green state remains dominant. This provides an inducer schedule, sampling windows, and abundance references for experiments, and indicates that the red and blue states are low-abundance and require sensitive detection.

Dynamic Testing and Wet Lab Protocol Optimization

Introduction

Wet lab tests need an input schedule that produces observable switching within the available culture time and controls that distinguish memory from slow response. We analyze stable states and compare hold times, dose placement and preparation histories. On this basis, the results present a candidate scanning workflow along with shared-input controls, which help wet lab experiments reduce unnecessary conditions and explain differences arising from transient history and discrepancies in results.

Assumptions

  • Inputs switch instantaneously and growth remains constant.
  • Serial scans carry the full state continuously from one input level to the next.
  • Independent-history tests transfer separately prepared samples to each test input.

Parameters

Table 12. Symbol explanation.

Symbol Explanation
$x$, $q$ Inputs and backgrounds: $x = \frac{u}{K_{\mathrm{a}}}$; $q = \frac{\mathrm{w}}{K_{\mathrm{c}}}$; q=1.2, 1.5, 3 in Figure 25; q=1.5 in Figures 26–28
$T_{\mathrm{prep}}$ Preparation histories: Low: (x,q)=(0,10); high: (10,0). Tprep=240 min for scans; 0, 30, 120, 240 min in Figure 28 (left panel)
$h$, $N$ Hold time h and levels N: h=30, 120, 240 min; N=7 or 13. The highest level is held once
$x$ (coarse / fine ladders) Coarse / fine ladders: x=0,1,…,6 / x=0,0.5,…,6
$x$ (Protocol B ladder) Protocol B ladder: x=0,0.75,1.25,2.25,3.25,4,6, followed by the reverse sequence without repeating 6
$t$, $x$ (history readouts) History readouts: Figure 28 (left panel): 240 min after transfer. Figure 28 (right panel): x=4.5, up to 1200 min
$r_*$, $\Delta r_{\mathrm{return}}$ Screening thresholds: r*=0.225; allowed return difference=0.02.
$\varepsilon_{\mathrm{abs}}$, $\varepsilon_{\mathrm{rel}}$, $\lambda_{\max}$ Steady-state checks: εabs=10−9 in the corresponding rate units; εrel=10−8. Stable if λmax<−10−8 min−1

Applicability

We use the dynamic baseline in the table, giving $a_1$=0.0207 and $a_2$=1.6224 min−1. Before preparation, $S_0$=62400 and all other states are zero. The table lists the settings and diagnostic conventions.

Mathematical Model

For fixed inputs, we solve $F(y;u,w)=0$, check the production/loss residuals $G_j$ and $L_j$, and evaluate the full Jacobian J. $\lambda_{\max}$ is its largest eigenvalue real part. $F$ denotes the ODE vector field.

$$\begin{aligned} R_{\max} &= \max_{\mathrm{j}}\frac{|G_{\mathrm{j}}-L_{\mathrm{j}}|}{\varepsilon_{\mathrm{abs}}+\varepsilon_{\mathrm{rel}}\max(|G_{\mathrm{j}}|,|L_{\mathrm{j}}|)}\leq 1 \\ \varepsilon_{\mathrm{abs}} &= 10^{-9}, \qquad \varepsilon_{\mathrm{rel}}=10^{-8} \end{aligned}$$

$$\begin{aligned} F(\boldsymbol{y}^{*};u,w) &= 0, \qquad J=\left.\frac{\partial F}{\partial\boldsymbol{y}}\right|_{\boldsymbol{y}^{*}} \\ \lambda_{\max} &= \max_{\mathrm{j}}\operatorname{Re}[\lambda_{\mathrm{j}}(J)]<0 \end{aligned}$$

The reduced steady-state function ${H}$ uses $v_1 = \frac{v_{1,\max}}{1 + e^{-z}}$, with $v_1,\mathrm{max} = \frac{\alpha S a_1}{\mu + a_1}$. Folds satisfy the equation below and are checked against the full system. The width Wlog is reported only for two verified positive folds enclosing two stable equilibria. Gray branches in the figures are these steady-state references.

$$\begin{aligned} \mathcal{H}(z;u,w) &= 0, \qquad \frac{\partial\mathcal{H}}{\partial z}=0 \\ \frac{\partial^2\mathcal{H}}{\partial z^2} &\neq 0, \qquad \frac{\partial\mathcal{H}}{\partial u}\neq 0 \end{aligned}$$

$$\begin{aligned} W_{\log} &= \log_{10}\left(\frac{u_{\mathrm{fold,high}}}{u_{\mathrm{fold,low}}}\right), \qquad u_{\mathrm{fold,low}}>0 \end{aligned}$$

For $N$ increasing input levels, Tprep denotes preparation time and h the hold per level. For independent histories, ${H/L}$ denotes high/low preparation and Φ the ODE evolution at a specified input. Both preparations start in the all-green state.

$$\begin{aligned} n_{\mathrm{stage}} &= 2N-1 \\ T_{\mathrm{serial}} &= T_{\mathrm{prep}}+(2N-1)h \end{aligned}$$

$$\begin{aligned} \boldsymbol{y}_{\mathrm{prep}}^{H} &= \Phi_{T_{\mathrm{prep}}}^{(10,0)}(\boldsymbol{y}_{\mathrm{green}}) \\ \boldsymbol{y}_{\mathrm{prep}}^{L} &= \Phi_{T_{\mathrm{prep}}}^{(0,10)}(\boldsymbol{y}_{\mathrm{green}}) \\ \boldsymbol{y}^{H/L}(t;x,q) &= \Phi_{t}^{(x,q)}(\boldsymbol{y}_{\mathrm{prep}}^{H/L}) \end{aligned}$$

An operational round trip requires upward and downward threshold crossings and a return difference no greater than 0.02. Rstart and rend are the first and last scan endpoints. Crossings are assigned the dose held at that time. History difference $\begin{aligned}\Delta r\end{aligned}$ compares the same input and readout time. Multiplying by 100 gives percentage points.

$$\begin{aligned} r_* &= 0.225, \qquad \Delta r_{\mathrm{return}}=|r_{\mathrm{end}}-r_{\mathrm{start}}| \\ N_{\uparrow}\geq 1 &\land N_{\downarrow}\geq 1\land r_{\mathrm{start}}<r_*\land\Delta r_{\mathrm{return}}\leq 0.02 \end{aligned}$$

$$\begin{aligned} \Delta r(t;x,q) &= r^H(t;x,q)-r^L(t;x,q) \\ \Delta r_{\mathrm{pp}} &= 100\Delta r \end{aligned}$$

$D_i$ is the same-dose branch difference, Agap its discrete area, and dlate,k the red-fraction change during the last 20% of hold k starting at $t_k$. A loop area can arise from delay and small red-state drift alone does not establish full equilibrium.

$$\begin{aligned} D_{\mathrm{i}} &= |r_{\mathrm{i}}^{\uparrow}-r_{\mathrm{i}}^{\downarrow}| \\ A_{\mathrm{gap}} &= \sum_{i=1}^{N-1}\frac{D_{\mathrm{i}}+D_{\mathrm{i+1}}}{2}(x_{\mathrm{i+1}}-x_{\mathrm{i}}) \\ d_{\mathrm{late},k} &= |r(t_{\mathrm{k}}+h)-r(t_{\mathrm{k}}+0.8h)| \end{aligned}$$

We checked scalar roots on 1025 and 2049 points over $z \in [-36,\,36]$, with refinement near folds. BDF integration used $rtol=2\times10^{-8}$, $atol=10^{-10}$ and a maximum step of 10 min. Checks covered state continuity, nonnegativity, scaffold balance and numerical tolerances. An independent Radau run differed by at most 4.54×10−9 in the red fraction. These checks verify numerical implementation.

Results

Table 13. Steady state fold positions.

Background q Lower fold x Upper fold x Wlog
1.2 0.4831 3.2750 0.8312
1.5 0.9859 3.5981 0.5622
3 2.4987 5.1818 0.3168

Figure 25. Hold time and background affect round trip responses.

These results collectively demonstrate that bistable switching is jointly governed by hold time and background input and cannot be optimized independently; otherwise, complete round-trip switching may not be achieved. The conditions of q=1.5 and hold times of 120–240 min provide a quantitative basis for selecting the concentration ladder, hold time, and background in subsequent experimental protocols.

Figure 26. Dose placement and time cost.

These results indicate that dose placement and cumulative exposure time jointly determine whether a complete operational round trip can be achieved, and that this cannot be accomplished simply by shortening the experiment or simplifying the ladder. The uniform fine ladder was designated Protocol B and subsequently selected as the candidate protocol for further experimental testing.

Table 14. Concentration ladders and return performance.

Ladder Total time Final red fraction Operational round trip
Coarse, 7 levels 30 h 3.84% Not met
Uniform fine, 13 levels 54 h 0.0037% Met
Protocol B, 7 levels 30 h 0.00037% Met

Figure 27. Timeline of candidate protocol.

The result demonstrates that Protocol B can complete the concentration-ladder scan according to the designed timeline and successfully cross the operational threshold, thereby meeting the basic requirements for round-trip switching. The timeline specifies the preparation time, the duration of each stage, the threshold-crossing times, and the total experimental duration, thus providing a temporal framework for subsequent experimental sampling, data interpretation, and history-dependent studies.

Figure 28. History dependence and delayed convergence.

The result predicts that different preparation histories can produce distinguishable finite-time outputs under a common input, providing candidate conditions for reading out input history. Longer holds at inputs outside the coexistence region reveal delayed convergence, indicating that history-dependent differences depend on both input and observation time. Together, the two panels guide the selection of test doses, preparation durations, and readout windows, while delayed readouts help distinguish transient response delays from persistent state separation.

Click here to show the core code

References

  • [1] ELBAUM-GARFINKLE S, KIM Y, SZCZEPANIAK K, et al. The disordered P granule protein LAF-1 drives phase separation into droplets with tunable viscosity and dynamics[J]. PNAS, 2015, 112(23): 7189-7194.
  • [2] ZAMYATNIN A A. Protein volume in solution[J]. Progress in Biophysics and Molecular Biology, 1972, 24: 107-123.
  • [3] CHOI J M, HYMAN A A, PAPPU R V. Generalized models for bond percolation transitions of associative polymers[J]. Physical Review E, 2020, 102(4): 042403.
  • [4] BREMER A, FARAG M, BORCHERDS W M, et al. Deciphering how naturally occurring sequence features impact the phase behaviours of disordered prion-like domains[J]. Nature Chemistry, 2022, 14(2): 196-207.
  • [5] DAS R K, PAPPU R V. Conformations of intrinsically disordered proteins are influenced by linear sequence distributions of oppositely charged residues[J]. PNAS, 2013, 110(33): 13392-13397.
  • [6] MARTIN E W, HOLEHOUSE A S, PERAN I, et al. Identifying sequence perturbations to an intrinsically disordered protein that determine its phase-separation behavior[J]. PNAS, 2020, 117(21): 11421-11429.
  • [7] BRADY J P, FARBER P J, SEKHAR A, et al. Structural and hydrodynamic properties of an intrinsically disordered region of a germ cell-specific protein on phase separation[J]. PNAS, 2017, 114(39): E8194-E8203.
  • [8] FARAHI N, LAZAR T, WODAK S J, et al. Integration of data from liquid–liquid phase separation databases highlights concentration and dosage sensitivity of LLPS drivers[J]. International Journal of Molecular Sciences, 2021, 22(6): 3017.
  • [9] DIGNON G L, ZHENG W, KIM Y C, et al. Temperature-controlled liquid–liquid phase separation of disordered proteins[J]. ACS Central Science, 2019, 5(5): 821-830.
  • [10] WESSEN J, DAS S, PAL T, et al. Analytical formulation and field-theoretic simulation of sequence-specific phase separation of protein-like heteropolymers with short- and long-spatial-range interactions[J]. The Journal of Physical Chemistry B, 2022, 126(45): 9222-9245.
  • [11] JOSEPH J A, REINHARDT A, AGUIRRE A, et al. Physics-driven coarse-grained model for biomolecular phase separation with near-quantitative accuracy[J]. Nature Computational Science, 2021, 1(11): 732-743.
  • [12] TESEI G, SCHULZE T K, CREHUET R, et al. Data-driven model of the liquid–liquid phase behavior of intrinsically disordered proteins (CALVADOS 2)[J]. Open Research Europe, 2022, 2: 79.
  • [13] REGY R M, THOMPSON J, KIM Y C, et al. Improved coarse-grained model for studying sequence dependent phase separation of disordered proteins[J]. Protein Science, 2021, 30(7): 1371-1379.
  • [14] DE HAAS R J, GANAR K A, DESHPANDE S, et al. pH-responsive elastin-like polypeptide designer condensates[J]. ACS Applied Materials & Interfaces, 2023, 15(38): 45336–45344.
  • [15] JAWERTH L, FISCHER-FRIEDRICH E, SAHA S, et al. Protein condensates as aging Maxwell fluids[J]. Science, 2020, 370(6522): 1317–1323.
  • [16] CAHN J W, HILLIARD J E. Free energy of a nonuniform system. I. Interfacial free energy[J]. The Journal of Chemical Physics, 1958, 28(2): 258–267.
  • [17] FLORY P J. Thermodynamics of high polymer solutions[J]. The Journal of Chemical Physics, 1942, 10(1): 51–61.
  • [18] ZHU J, CHEN L Q, SHEN J, et al. Coarsening kinetics from a variable-mobility Cahn-Hilliard equation: application of a semi-implicit Fourier spectral method[J]. Physical Review E, 1999, 60(4): 3564–3572.
  • [19] PINTO F, THORNTON E L, WANG B. An expanded library of orthogonal split inteins enables modular multi-peptide assemblies[J]. Nature Communications, 2020, 11(1): 1529.
  • [20] ROMERO-CASAÑAS A, GARCÍA-LIZARRIBAR A, CASTRO J, et al. Ligation of multiple protein domains using orthogonal inteins with non-native splice junctions[J]. Protein Science, 2024, 33(7): e5070.
  • [21] HUA Y, TAY N E S, YE X, et al. Protein editing using a coordinated transposition reaction[J]. Science, 2025, 388(6742): 68-74.
  • [22] STEVENS A J, SEKAR G, GRAMESPACHER J A, et al. An atypical mechanism of split intein molecular recognition and folding[J]. Journal of the American Chemical Society, 2018, 140(37): 11791-11799.
  • [23] STEVENS A J, BROWN Z Z, SHAH N H, et al. Design of a split intein with exceptional protein splicing activity[J]. Journal of the American Chemical Society, 2016, 138(7): 2162-2165.
  • [24] KELLEY F M, FAVETTA B, REGY R M, et al. Amphiphilic proteins coassemble into multiphasic condensates and act as biomolecular surfactants[J]. PNAS, 2021, 118(51): e2109967118.
Top