Tutorials › Quantitative Systems Pharmacology (QSP) › T-Cell Egress, Retention, and Compartment Exchange

Immuno-Oncology: Checkpoint Inhibitors and Cell Therapy · Tutorial 281 of 799

T-Cell Egress, Retention, and Compartment Exchange

Learn to write conservative compartment-exchange equations and quantify how changing T-cell egress or retention changes intratumoral counts.

Advanced 11 min read

What You'll Learn

  • Define directional cell fluxes between blood, lymphoid tissue, and tumor using first-order exchange rates.
  • Write a three-compartment model and verify that internal exchange conserves total cell number.
  • Distinguish tumor entry, tumor egress, and local cell loss in the tumor count equation.
  • Calculate steady-state and time-dependent tumor counts under specified influx and egress rates.
  • Recognize when a change in tumor counts cannot distinguish altered recruitment from altered retention.
  • Diagnose violations of mass balance and understand when a well-mixed compartment model is inadequate.

Why Exchange Must Be Modelled in Both Directions

A rise in the number of T cells measured in a tumor does not, by itself, show why the rise occurred. More cells may have entered, fewer may have left, or both processes may have changed. A compartment model makes these possibilities explicit by tracking the cell counts in blood, lymphoid tissue, and tumor and assigning a rate to each directional movement. The focus here is movement and cell retention, not the functions T cells perform after arriving in the tumor.

The preceding material on chemokine-driven T-cell recruitment describes entry into tumors. A mass-balanced exchange model adds the complementary point: entry is one side of a flux, and cells may also leave the tumor. If the model omits egress, it treats tumor entry as one-way accumulation unless another loss term is added. That can be a poor representation when cells recirculate between tissues.

Definition: A compartment count is the number of cells assigned to a specified population or anatomical region. For compartments \(i\) and \(j\), a first-order transfer rate \(k_{ij}\) has units of inverse time and describes movement from \(i\) to \(j\). The corresponding flux is \(k_{ij}N_i\), with units of cells per time, where \(N_i\) is the count in compartment \(i\). The subscripts here are ordered as source, then destination.

This model assumes each compartment is well mixed, so a cell in a given compartment has the same instantaneous transfer rate regardless of its location within that compartment. Rates are nonnegative and may be constant or specified as time-varying functions. In the simplest exchange-only model, cells neither proliferate nor die, and there are no external sources or sinks. These assumptions allow a direct test of mass balance. Later additions such as local cell loss or external input must be written as separate terms rather than concealed inside an exchange flux.

A Three-Compartment Exchange Model

Let \(B(t)\), \(L(t)\), and \(T(t)\) denote T-cell counts in blood, lymphoid tissue, and tumor at time \(t\). Include a directional transfer rate for each connection in both directions: blood to lymphoid tissue and back, blood to tumor and back, and lymphoid tissue to tumor and back. The exchange-only equations are:

$$ \begin{aligned} \frac{dB}{dt} &= -k_{BL}B + k_{LB}L - k_{BT}B + k_{TB}T,\\ \frac{dL}{dt} &= k_{BL}B - k_{LB}L - k_{LT}L + k_{TL}T,\\ \frac{dT}{dt} &= k_{BT}B + k_{LT}L - k_{TB}T - k_{TL}T. \end{aligned} $$

Each negative term is an outgoing flux from the compartment on the left; each positive term is an incoming flux. For example, \(k_{BT}B\) leaves blood and enters tumor at the same rate. The rate constants \(k_{BT}\) and \(k_{TB}\) need not be equal: mass balance requires matching each flux between the two equations, not equal rates in opposite directions.

A useful accounting rule is to write every internal flux exactly twice: subtract it from its source equation and add it to its destination equation. This makes conservation visible and helps prevent sign errors. Summing the three equations gives:

$$ \frac{d}{dt}(B+L+T)=0. $$

Thus, in this exchange-only model, the total \(B+L+T\) remains constant, even while each individual compartment count can change. This is a statement about the model's cell accounting, not a claim that a real organism has no cell production or loss.

Model extension: If cells enter from an external source at rate \(u_i(t)\), or are lost locally at per-cell rate \(d_i\), add \(+u_i(t)-d_iN_i\) to the equation for compartment \(i\). The source \(u_i(t)\) has units of cells per time; \(d_i\) has units of inverse time. Exchange terms still cancel in the total-count equation, while sources and losses remain.

For example, the tumor equation with local loss is:

$$ \frac{dT}{dt}=k_{BT}B+k_{LT}L-(k_{TB}+k_{TL}+d_T)T+u_T(t). $$

Here \(k_{BT}B+k_{LT}L\) is the total tumor influx, \(k_{TB}T+k_{TL}T\) is egress to blood and lymphoid tissue, and \(d_TT\) is local loss. Egress is not the same process as local death: egress moves cells to another tracked compartment, whereas local loss removes them from this modelled system unless a destination is explicitly represented.

Worked Examples

Worked Example: Checking Mass Balance at an Instant

Consider a hypothetical system with \(B=1{,}000\), \(L=500\), and \(T=200\) cells. Suppose the rates, per day, are \(k_{BL}=0.10\), \(k_{LB}=0.20\), \(k_{BT}=0.03\), \(k_{TB}=0.15\), \(k_{LT}=0.04\), and \(k_{TL}=0.05\). Calculate the instantaneous rates of change and check the total.

For blood, outgoing fluxes are \(0.10(1{,}000)=100\) cells/day to lymphoid tissue and \(0.03(1{,}000)=30\) cells/day to tumor. Incoming fluxes are \(0.20(500)=100\) cells/day from lymphoid tissue and \(0.15(200)=30\) cells/day from tumor. Therefore:

$$ \frac{dB}{dt}=-100+100-30+30=0\ \text{cells/day}. $$

For lymphoid tissue, the blood-to-lymphoid and reverse fluxes are 100 cells/day each; lymphoid-to-tumor flux is \(0.04(500)=20\) cells/day, and tumor-to-lymphoid flux is \(0.05(200)=10\) cells/day. Hence:

$$ \frac{dL}{dt}=100-100-20+10=-10\ \text{cells/day}. $$

For tumor, the incoming flux is 30 cells/day from blood plus 20 cells/day from lymphoid tissue. Egress is 30 cells/day to blood plus 10 cells/day to lymphoid tissue, so:

$$ \frac{dT}{dt}=30+20-30-10=10\ \text{cells/day}. $$

The total rate is \(0-10+10=0\) cells/day, as required. The tumor count is increasing at this instant, but the increase is a redistribution of cells, not creation of cells.

Worked Example: How Lower Egress Changes the Steady-State Tumor Count

Suppose, hypothetically, that the combined influx to tumor is held at 120 cells/day and combined egress has a first-order rate \(k_{\mathrm{out}}=0.30\) per day. Ignore local loss, and treat the supply to tumor as constant. Find the steady-state tumor count, then recalculate it if egress falls to \(0.15\) per day.

Under these assumptions, the tumor equation is \(dT/dt=120-k_{\mathrm{out}}T\). At steady state, \(dT/dt=0\), so the influx balances egress:

$$ T_{\mathrm{ss}}=\frac{120\ \text{cells/day}}{k_{\mathrm{out}}}. $$

At \(k_{\mathrm{out}}=0.30\) per day:

$$ T_{\mathrm{ss}}=\frac{120}{0.30}=400\ \text{cells}. $$

After egress falls to \(0.15\) per day, with influx unchanged:

$$ T_{\mathrm{ss}}=\frac{120}{0.15}=800\ \text{cells}. $$

The steady-state count doubles because the same influx is balanced by a halved per-cell egress rate. This conclusion depends on the stated assumptions, especially constant influx and no local loss. It does not imply that every reduction in egress in a full system must double tumor counts.

Worked Example: Including Local Loss and a Changing Egress Rate

In a hypothetical simplified tumor compartment, influx is 120 cells/day, local loss is \(d_T=0.10\) per day, and the initial tumor count is 100 cells. Egress is initially \(0.30\) per day and remains constant for five days. Calculate the tumor count after five days. Then calculate it for a second scenario in which egress is \(0.10\) per day throughout.

With constant influx and a combined first-order removal rate \(r=k_{\mathrm{out}}+d_T\), the equation is \(dT/dt=120-rT\). Its steady state is \(120/r\), and the solution from initial count \(T(0)\) is \(T(t)=120/r+[T(0)-120/r]e^{-rt}\). In the first scenario, \(r=0.30+0.10=0.40\) per day, so the steady state is \(120/0.40=300\) cells. At five days:

$$ T(5)=300+(100-300)e^{-0.40(5)} =300-200e^{-2} \approx 272.9\ \text{cells}. $$

In the second scenario, \(r=0.10+0.10=0.20\) per day, so the steady state is \(120/0.20=600\) cells. Therefore:

$$ T(5)=600+(100-600)e^{-0.20(5)} =600-500e^{-1} \approx 416.1\ \text{cells}. $$

The lower-egress scenario has more tumor cells at five days, even though both scenarios have the same influx and local-loss rate. The computation separates egress from local loss and shows the approach toward each scenario's own steady state.

Retention, Residence Time, and Interpretation

In a tumor equation with constant influx \(I_T\), combined first-order egress \(k_{\mathrm{out}}\), and local loss \(d_T\), the steady-state count is:

$$ T_{\mathrm{ss}}=\frac{I_T}{k_{\mathrm{out}}+d_T}. $$

The denominator is the total per-cell rate of leaving the counted tumor population, whether by egress or local loss. Lowering egress increases the steady-state tumor count when influx and local loss are fixed. However, retention is a description of reduced departure, not an independent source of cells. If influx is zero and there is no cell production, reducing egress can slow decline but cannot create a rising count.

For a single first-order exit process with rate \(k_{\mathrm{out}}\), the mean time to exit is \(1/k_{\mathrm{out}}\). With competing egress and local loss, the mean time until either event is \(1/(k_{\mathrm{out}}+d_T)\), under constant rates. This distinction matters: a longer residence in the tumor can result from reduced egress, reduced local loss, or both, but those mechanisms have different implications for the number of cells remaining in the tracked system.

Diagnostics, Alternatives, and Limitations

A basic diagnostic is the total-count check. In an exchange-only implementation, compute the sum of the three derivatives. If it is not zero, some internal flux may be missing from one equation or have an inconsistent sign. Check units as well: each term in a count equation must be cells per time. Negative rates, negative counts, or an unexplained total-cell increase indicate a coding, parameterization, or model-structure problem. With sources and local losses, the total derivative should equal the sum of the sources minus the sum of the losses; internal exchange should still cancel.

The model also implies nonnegative counts for nonnegative initial counts when all transfer rates and local loss rates are nonnegative and sources are nonnegative. At a boundary such as \(T=0\), the tumor derivative has no negative tumor-originating terms; with nonnegative influx it cannot point below zero. A numerical simulation that produces negative counts can therefore signal a step-size or solver issue, or an inconsistent model term.

A one-way recruitment model is simpler when tumor entry is the only relevant movement and egress can reasonably be neglected over the time window of interest. It cannot represent recirculation or distinguish a large influx balanced by substantial egress from a smaller influx with strong retention. A bidirectional compartment model is more informative about those balances, but it requires more rates and data to estimate them. A spatial model may be preferable when gradients or distinct tumor regions are central; a single well-mixed tumor compartment cannot resolve where cells are located or how local barriers affect movement.

Tumor counts alone often do not identify influx and egress separately. At steady state, the same count can arise from many combinations of \(I_T\) and \(k_{\mathrm{out}}+d_T\), because only their ratio is directly represented by \(T_{\mathrm{ss}}\). Time-course data, measurements in other compartments, or independent information about particular rates may help distinguish mechanisms, but a mathematical fit does not guarantee that the rates are uniquely determined. Treat estimated exchange parameters cautiously when the observations only constrain net accumulation.

Common pitfall: “Tumor T-cell counts increased, so recruitment must have increased.” This does not follow from the count alone. The tumor balance is influx minus egress and local loss, so a rising count may instead reflect reduced egress or loss. Compare the measured change with the full balance equation, and do not attribute it to one mechanism without evidence that separates the alternatives.

Check Your Understanding

Answer each question, then compare with the brief solutions below.

  1. If 40 cells/day move from blood to tumor, what term does this contribute to the blood equation and to the tumor equation?
  2. In an exchange-only three-compartment model, what should the derivative of \(B+L+T\) equal? Give the reason.
  3. With constant influx of 90 cells/day, egress rate \(0.20\) per day, and local loss rate \(0.10\) per day, calculate the steady-state tumor count.
  4. If a tumor count rises while measured influx is unchanged, name two balance terms that could explain the rise without increased influx.

Solutions. (1) The blood equation receives \(-40\) cells/day and the tumor equation receives \(+40\) cells/day; the flux is subtracted at its source and added at its destination. (2) It equals zero, because every internal transfer appears once with a minus sign and once with a plus sign, so all exchange terms cancel. (3) The total removal rate is \(0.20+0.10=0.30\) per day, giving \(T_{\mathrm{ss}}=90/0.30=300\) cells. (4) Egress may have decreased, or local loss may have decreased; either change can make the net tumor balance more positive even with influx unchanged.

Clinical Biostats