Deconvolving Bulk Transcriptomes on a Thermal Clock

Bulk RNA sequencing grinds up a tissue and reports one averaged expression profile. That average hides which cell types are present and in what amounts, a problem called cellular heterogeneity masking. Deconvolution methods recover the hidden composition by matching the bulk profile against a single-cell reference atlas. In plants, insects and other cold-blooded organisms there is an extra trap. These organisms develop by accumulated heat, not by calendar days. A leaf harvested on day 20 after a warm spell is developmentally older than a day-20 leaf from a cool chamber. Its cells look different even when the cell-type mix is identical. A deconvolution method that uses a reference captured at a different temperature will read this shift in cell state as a shift in cell proportions.

We propose to index the single-cell reference by thermal time, meaning accumulated heat above a species' base temperature (the familiar growing degree days). Each bulk sample's developmental position is then estimated jointly with its composition. The sample's own temperature record supplies a prior on where it sits along that clock. The claim is that this external anchor makes two explanations separable. One is "the tissue contains more of cell type B." The other is "the type-A cells have progressed further." Without the anchor, the two are largely interchangeable in a bulk average.

Core Claim

When a target bulk sample and its reference differ in thermal history, deconvolution error is dominated by confusion between composition and state. That confusion cannot be fixed by better regression, by more flexible warping, or by calendar alignment. It can be fixed by anchoring each sample's latent developmental age to its measured heat accumulation. The anchor has two parts: a temperature-to-development rate curve whose base temperature and upper cutoff are learned, and a cell-type-specific reference trajectory expressed in that thermal age.

The new ingredient is not "add time to deconvolution." It is the use of a physically measured, sample-specific covariate to resolve an identifiability problem that free latent-time models leave open.

Model

Let $y_s$ be the bulk count vector of sample $s$. Let $\mu_k(\tau)$ be the mean expression profile of cell type $k$ at thermal age $\tau$, learned from a time-resolved single-cell reference whose capture times have been converted to thermal age. Let $\pi_{s}$ be the composition vector of sample $s$, and $\tau_s$ its latent thermal age. The likelihood is

$$y_s \sim \text{NegBin}\Big(\textstyle\sum_k \pi_{s,k}\, c_k\, \mu_k(\tau_s),\ \phi\Big),$$

where $c_k$ is a per-type RNA-content factor, reusing the cell-size correction of CSsingle, and $\phi$ is a dispersion parameter. The thermal age prior is

$$\tau_s \sim \mathcal{N}\Big(\textstyle\sum_{d \in D_s} r_\theta(T_{s,d}),\ \sigma^2\Big).$$

Here $T_{s,d}$ is the mean temperature sample $s$ experienced on day $d$ of its growth period $D_s$. The function $r_\theta$ is a monotone-then-declining rate curve with learnable base temperature, optimum and ceiling. It reduces to linear degree days when the ceiling is set to infinity. The parameter $\sigma$ controls how far an individual sample may deviate from its thermal expectation; such deviations play the role of the "precocious" cells of the pseudotime work.

A natural extension lets each cell type have its own age offset. Inference uses variational EM: the rate parameters $\theta$ are shared across samples, while $\pi_s$ and $\tau_s$ are fit per sample.

Research Program

The work has three pieces.

The first is a reference builder. It fits smooth trajectories $\mu_k(\tau)$ with Gaussian processes per cell type from a time-course single-cell atlas.

The second is the anchored deconvolver described above.

The third is an identifiability analysis. We will characterize, in simulation and analytically for the two-type case, when a free $\tau_s$ and $\pi_s$ trade off along a ridge of near-equal likelihood. We will also measure how much a prior of width $\sigma$ collapses that ridge.

The analysis also yields a usable diagnostic: for any dataset, how much thermal information is needed before composition becomes estimable.

The method borrows from three lines of temporal transcriptomics. Pseudotime estimation: deconfounding single cell time series places a Gaussian process prior on pseudotime centered on the experimental capture time. This anchoring raised Spearman correlation with withheld capture times from 0.927 (Monocle) to 0.996 on an Arabidopsis developmental series. We take the anchoring idea but replace calendar capture time with thermal age, and we apply it to unmixing bulk samples rather than ordering cells.

A supervised Bayesian method for time (re)annotation of transcriptomics data assigns timestamps to legacy bulk samples by likelihood against a reference time course, placing 97% of annotations within 0.5 hours on noisy simulations. It treats each bulk sample as one cell population, so it cannot separate composition from time. Our method can.

DTWscore aligns single-cell time series by unconstrained dynamic time warping, with no rate model. It is the data-driven pole of the tension our experiments test.

On the thermal side, the motivation comes from remote sensing. Out-of-year corn yield prediction resampled Sentinel-2 series onto degree-day windows and gained 0.25 to 0.42 in out-of-year $R^2$. Thermal Positional Encoding raised cross-region macro F1 on TimeMatch from 68.0% to 83.3% by encoding degree days with a recurrent unit. It also found that calendar encodings did worse than no encoding at all. That "No-PE paradox" warns us that a calendar-time baseline may be actively harmful, not merely weak.

The bulk side comes from three sources. CSsingle shows that physical corrections (cell size) beat generic adjustment. Count Bridges treats single-cell counts as latent variables that sum to the bulk. Sources of variation in cell-type RNA-Seq profiles finds that cell subtype explains only about half the variance of marker genes. That finding leaves room for state effects such as thermal age.

None of these methods lets the reference profile move with the sample's developmental position.

Baselines

The naive reference is static deconvolution with a pooled reference. All time points of the atlas are merged into one signature per cell type and deconvolved with non-negative least squares. This is what a practitioner does by default. Beating it is a minimum bar, not evidence for the thermal anchor.

The strongest existing static method is CSsingle. It was reported to outperform 10 deconvolution baselines across references, and it shares our RNA-content correction, so differences isolate the temporal component. CSsingle will receive the same reference cells, the same genes and the same content factors.

We also run Count Bridges with its EM deconvolution. It is the strongest generative competitor and is given matched compute.

The file contains no reported proportion-error figure for either method on any benchmark: no reported result found on Lacuna for CSsingle or Count Bridges deconvolution error. We will therefore establish their numbers ourselves under identical inputs.

To beat them, we require a statistically significant reduction in per-sample composition error, measured as Jensen–Shannon divergence and root mean squared error against known proportions. The reduction must hold in the temperature-shifted condition and must not degrade the matched-temperature condition.

Three ablations isolate the anchor. The free-time variant estimates $\tau_s$ with a flat prior; this is the reannotation approach extended to mixtures. The calendar variant centers the prior on days after sowing. The fixed-clock variant uses linear degree days with a textbook base temperature and does not learn $r_\theta$.

Every variant shares the reference trajectories, optimizer and number of restarts. Hyperparameters, including $\sigma$, are tuned on a held-out temperature regime that is never used for testing, with the same search budget for every method.

Why not just…?

Why not just pool all reference time points and deconvolve statically? Pooling averages each cell type's profile over development. A bulk sample at an extreme thermal age then matches a blend of types better than it matches the right type at the wrong age. The variance partition in Sources of variation in cell-type RNA-Seq profiles suggests non-type factors carry roughly half of marker variance, which is room for this failure. The pooled-reference and CSsingle arms test this directly. If they match our method in the shifted condition, the thermal state effect is too small to matter and we will report that.

Why not just let the model infer each sample's developmental age from expression, with no temperature data? This is the serious threat. Transcriptomes do carry developmental information, as the 97% within-half-hour accuracy of the reannotation method shows for single-population samples. Our argument is that in mixtures, age and composition can trade off. The free-time ablation and the composition-versus-state swap test below settle this. If free time recovers both quantities as well as the anchored model, then our contribution shrinks to the time-indexed reference. We would say so, and recommend the cheaper method.

Why not just align by days after sowing? Calendar alignment assumes equal developmental speed across environments, which the thermal literature repeatedly contradicts. Days needed to reach a stage varied strongly across years in the corn study. In TimeMatch, calendar encodings fell below no encoding at all. The calendar ablation measures whether the same holds for transcriptomes. We expect it to help at matched temperature and hurt under shift.

Why not just batch-correct the bulk samples against the reference? When temperature regime and harvest batch coincide, batch correction removes exactly the developmental signal we need, along with real composition differences. It will be included as a preprocessing arm feeding CSsingle.

Proposed Experiments

The first experiment is semi-synthetic. We take a time-resolved single-cell atlas with known capture times, such as the myoblast differentiation series used by DTWscore or the MOSTA organogenesis series used by SOCS. We assign each pseudo-bulk sample a synthetic daily temperature history. Its true age is generated by a rate curve deliberately outside our model family: a smooth asymmetric curve, with per-type rate differences. We then sample cells at that age with known proportions.

To avoid a self-fulfilling benchmark, we vary three things: the mismatch between the generating and assumed curves, the noise in the temperature record, and the gap between reference and target regimes. The outputs are composition error, recovered base temperature against truth, and the breakdown point as temperature noise grows.

The decisive check is a composition-versus-state swap test. We construct pairs of pseudo-bulks in which either only proportions change at fixed age, or only age changes at fixed proportions. We then score how often each method attributes the change to the correct cause. A method that cannot pass this test is not separating masking from development, whatever its average error.

The second experiment uses the Arabidopsis developmental microarray series from the pseudotime study. It tests only the age-recovery component on real plant data, against the reported 0.996 Spearman correlation of the calendar-anchored Gaussian process.

The third experiment is real and new, because the file contains no ectotherm dataset pairing single-cell references, bulk profiles, temperature records and known proportions. We will build a single-cell time-course reference of Arabidopsis leaf at one chamber temperature. Plants of the same line will be grown at two further temperatures and harvested on identical calendar days. Bulk libraries will be made from physical mixtures of protoplast fractions in known ratios, modeled on the HEK293/Jurkat mixture design of CSsingle.

This experiment is the final arbiter. The anchored model must beat CSsingle, Count Bridges and the free-time ablation on composition error at the off-reference temperatures. It must also recover a base temperature consistent with independent growth measurements.