Tutorials › Statistical Methods for Single-Cell RNA Sequencing › Using Clonal Labels to Constrain Lineage Models

Branching and Lineage Models · Tutorial 421 of 700

Using Clonal Labels to Constrain Lineage Models

Use shared clone assignments to constrain branch models while accounting for clone timing, uncertainty, and limitations of lineage labels.

Advanced 12 min read

What You'll Learn

  • Write a joint model for expression, latent branch assignments, and shared clone labels.
  • Derive the clone-level branch-assignment likelihood under a Dirichlet-multinomial model.
  • Calculate how shared labels change the probability of branch assignments.
  • Distinguish evidence from clonal ancestry from evidence supplied by expression.
  • Identify when barcode collisions, timing, and sampling can mislead lineage inference.

Why Clonal Labels Add a Different Kind of Evidence

Expression measurements describe the molecular state of a cell. A barcode or fate-mapping label instead records information about ancestry: cells with the same reliable label may descend from a shared marked ancestor. In a branching lineage model, these sources of information are useful together, but they are not interchangeable. Expression can support assigning a cell to a branch; a shared label links cells through a common clone and can make their branch assignments statistically dependent.

The central modeling choice is how a clone can be distributed across branches. A label introduced after a branchpoint may be expected to appear in descendants of only one branch. A label introduced earlier can be inherited by descendants that later enter different branches. Thus, the observation that two cells share a label is evidence of shared ancestry under the assay assumptions, not proof that they must occupy the same terminal branch.

Definition: Let \(Y_i\) denote the expression data for cell \(i\), \(C_i\) its observed clonal label, \(Z_i\) its latent branch assignment, and \(T\) a specified branching structure. A shared clone assignment model includes the fact that cells with the same \(C_i\) belong to one clone, and uses this grouping to model their branch assignments jointly rather than treating each cell's assignment as independent.

Here, \(Z_i\) takes one of \(K\) terminal-branch values, \(1,\ldots,K\). The expression model supplies a likelihood \(f(Y_i\mid Z_i,T,\theta)\), where \(\theta\) denotes expression-model parameters. The clonal component supplies a distribution for the assignments of cells sharing a label. This tutorial focuses on combining those components, not on selecting among alternative tree structures.

A Clone-Level Model for Branch Assignments

One flexible model gives each clone \(c\) a branch-propensity vector \(\boldsymbol{\pi}_c=(\pi_{c1},\ldots,\pi_{cK})\). Conditional on that vector, cells in the clone receive branch assignments independently. The vectors vary around a population-level vector \(\boldsymbol{\pi}\), allowing clones to differ in their branch representation.

Model: For each clone \(c\), let \(\boldsymbol{\pi}_c\sim\operatorname{Dirichlet}(\kappa\boldsymbol{\pi})\), where \(\pi_k>0\), \(\sum_{k=1}^K\pi_k=1\), and \(\kappa>0\). Given \(\boldsymbol{\pi}_c\), let \(Z_i\mid\boldsymbol{\pi}_c\sim\operatorname{Categorical}(\boldsymbol{\pi}_c)\) for cells with \(C_i=c\). Conditional on branch assignments and model parameters, expression data have likelihood \(\prod_i f(Y_i\mid Z_i,T,\theta)\).

The shared vector \(\boldsymbol{\pi}_c\) induces dependence between assignments within a clone. The concentration \(\kappa\) controls how much clone-specific propensities vary: large \(\kappa\) makes them concentrate near \(\boldsymbol{\pi}\), while smaller \(\kappa\) allows stronger clone-to-clone variation. This model is a statistical representation of shared clone-level tendencies; it is not, by itself, a complete biological model of when a barcode was introduced or how a cell migrated through the tree.

For clone \(c\), let \(n_{ck}\) be the number of its cells assigned to branch \(k\), and \(n_c=\sum_k n_{ck}\). Integrating out the shared vector gives the probability of a particular ordered set of branch assignments:

$$ P(\{Z_i:i\in c\}\mid\boldsymbol{\pi},\kappa) = \frac{\Gamma(\kappa)}{\Gamma(\kappa+n_c)} \prod_{k=1}^{K} \frac{\Gamma(\kappa\pi_k+n_{ck})}{\Gamma(\kappa\pi_k)}. $$

This is the Dirichlet-multinomial assignment probability. It depends on the group of cells sharing the label, not just on the total number of cells assigned to each branch across the entire data set. The full likelihood for observed expression and labels, conditional on the clone groupings, sums over possible latent assignments:

$$ P(Y\mid C,T,\theta,\boldsymbol{\pi},\kappa) = \prod_c \sum_{\{Z_i:i\in c\}} \left[ P(\{Z_i:i\in c\}\mid\boldsymbol{\pi},\kappa) \prod_{i:C_i=c} f(Y_i\mid Z_i,T,\theta) \right]. $$

The sum is over assignment configurations for each clone. It preserves uncertainty: a cell with ambiguous expression need not be forced onto one branch before the clonal information is used. The clonal factor and expression factor contribute distinct parts of the joint model.

Why the Integrated Assignment Probability Has This Form

The derivation follows by multiplying the conditional categorical probabilities by the Dirichlet density and integrating over the clone-specific propensities. For a fixed assignment configuration, the conditional probability is \(\prod_k \pi_{ck}^{n_{ck}}\). The Dirichlet density has normalizing constant \(\Gamma(\kappa)/\prod_k\Gamma(\kappa\pi_k)\) and kernel \(\prod_k\pi_{ck}^{\kappa\pi_k-1}\). Their product has powers \(\kappa\pi_k+n_{ck}-1\). Integrating over the simplex uses the Dirichlet integral, whose normalizing constant for those powers is \(\prod_k\Gamma(\kappa\pi_k+n_{ck})/\Gamma(\kappa+n_c)\). Multiplying by the original density's normalizing constant yields the displayed formula.

This derivation assumes that labels correctly identify clone membership, that clone assignments follow the specified shared-propensity model, and that expression observations are conditionally independent given their branch assignments and parameters. It also treats the observed clone grouping as given. If labels collide, are misread, or are missing selectively, that grouping may be wrong or incomplete; the likelihood above does not automatically correct those errors.

Worked Example: Integrating Over a Clone's Branch Propensity

Suppose there are two branches, with \(\boldsymbol{\pi}=(0.5,0.5)\) and \(\kappa=2\). One clone has four cells assigned in a particular configuration: three to branch 1 and one to branch 2. Calculate the probability of this ordered assignment configuration after integrating out \(\boldsymbol{\pi}_c\).

Here \(\kappa\pi_1=\kappa\pi_2=1\), \(n_{c1}=3\), \(n_{c2}=1\), and \(n_c=4\). Substitution gives

$$ P(\{Z_i\}\mid\boldsymbol{\pi},\kappa) = \frac{\Gamma(2)}{\Gamma(6)} \frac{\Gamma(4)}{\Gamma(1)} \frac{\Gamma(2)}{\Gamma(1)} = \frac{1}{120}\cdot 6\cdot 1 = 0.05000. $$

The result is for one particular ordered assignment of the four cells. If the question were the probability of any assignment with three cells on branch 1 and one on branch 2, there are \(\binom{4}{1}=4\) possible positions for the branch-2 cell, so the probability would be \(4(0.05000)=0.2000\). Keeping ordered configurations distinct from counts avoids a common combinatorial error.

Combining Expression and Clonal Evidence

For a fixed tree, an expression likelihood may favor one branch for a cell while leaving substantial uncertainty for another. The clonal term then connects those uncertain assignments through their shared label. The model does not simply “vote” once for expression and once for lineage: it combines probability contributions under explicit assumptions. The resulting branch probabilities depend on both the expression likelihoods and the clone-level assignment model.

Worked Example: Normalizing Assignment Probabilities

For one cell whose label places it in a known clone, suppose four candidate assignment configurations have prior-times-likelihood weights \(0.0375\), \(0.1500\), \(0.0125\), and \(0.0500\). These weights already combine the relevant expression likelihood and clone-level assignment probability. Find the normalized probabilities.

The normalizing constant is

$$ 0.0375+0.1500+0.0125+0.0500=0.2500. $$

Divide each weight by \(0.2500\): \(0.0375/0.2500=0.150\), \(0.1500/0.2500=0.600\), \(0.0125/0.2500=0.0500\), and \(0.0500/0.2500=0.200\). The four probabilities sum to \(1.000\). Thus, the second configuration has the largest conditional probability, \(0.600\), among these candidates. This is not a 60% probability that a particular biological topology is true; it is a normalized assignment probability conditional on the model, the candidates, and the supplied data.

Notice that clonal evidence is not a substitute for expression evidence. If expression strongly distinguishes branches, it can dominate the assignment for a cell. Conversely, when expression is weakly informative, a reliable clone grouping can alter the joint assignment probabilities. In either case, interpretation should identify which component is providing support.

Worked Example: A Clone Can Span Branches

Use the two-branch model with \(\pi_1=\pi_2=0.5\) and \(\kappa=2\). For a clone with two cells, calculate the probability that both are assigned to branch 1 and the probability that the first is assigned to branch 1 and the second to branch 2.

The Dirichlet parameters are \((1,1)\). For the ordered assignment \((1,1)\), the integrated probability is

$$ P(1,1)=\frac{\Gamma(2)}{\Gamma(4)} \frac{\Gamma(3)}{\Gamma(1)} \frac{\Gamma(1)}{\Gamma(1)} = \frac{1}{6}\cdot 2\cdot 1 = \frac{1}{3}. $$

For the ordered assignment \((1,2)\), the probability is

$$ P(1,2)=\frac{\Gamma(2)}{\Gamma(4)} \frac{\Gamma(2)}{\Gamma(1)} \frac{\Gamma(2)}{\Gamma(1)} = \frac{1}{6}\cdot 1\cdot 1 = \frac{1}{6}. $$

A shared label therefore makes same-branch assignments more probable in this example, but it does not make a cross-branch assignment impossible. Biologically, a clone spanning branches can be compatible with an early marking event followed by later fate divergence. Whether that explanation is appropriate depends on the experiment's labeling time and the lineage process being modeled.

Assumptions, Diagnostics, and Alternatives

A clonal constraint is credible only to the extent that the label measures shared ancestry. Before interpreting results, verify that the marking mechanism is heritable over the relevant divisions, that barcode collisions are sufficiently rare or modeled, and that sequencing and cell assignment errors are understood. The timing of marking matters: a label applied before a branchpoint can be shared across descendant branches, whereas a later label may imply a more restricted distribution. The model's \(\kappa\) and \(\boldsymbol{\pi}\) should reflect the intended biological assumptions, not just produce convenient assignments.

Useful diagnostics include examining clone sizes and branch-assignment counts, checking whether a few large clones dominate the result, and inspecting cells whose expression-based and clone-informed assignments differ. Large unexplained discordance may indicate label error, an inadequate expression model, a mismatch between labeling time and assumed clone behavior, or an overly restrictive concentration model. Very small clones provide little information about clone-level branch proportions. If clone labels are uncertain, treating them as error-free can give misleadingly confident assignments.

There are three common modeling choices. An expression-only model uses \(f(Y_i\mid Z_i,T,\theta)\) and ignores shared labels; it avoids assumptions about clone behavior but discards ancestry information. A hard constraint forces every cell in a clone onto one branch; it can be appropriate only when the experimental timing and biology justify that restriction, and is unsuitable for labels expected to precede divergence. A shared-propensity model such as the one derived here allows within-clone dependence and cross-branch descendants, but adds assumptions about the distribution of clone propensities. None of these approaches makes clonal association causal evidence that a particular expression state caused a fate.

A frequent mistake is to argue, “These cells share a barcode, so they must be on the same branch.” The correction is to ask when the barcode was introduced and what branch patterns are possible under that marking scheme. Shared labels support common ancestry under assay assumptions; branch identity remains an inference combining expression, lineage structure, and the model for clone distribution. A second mistake is to count every cell with the same label as independent lineage evidence. Their assignments are linked by shared clone membership, so the likelihood must represent that dependence.

Key takeaway: Clonal labels constrain branching models by grouping cells with shared ancestry and linking their branch assignments. They complement expression-based evidence; they do not, on their own, determine terminal branch identity or the direction of differentiation.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. In the shared-propensity model, what role does \(\kappa\) play?
  2. Why does a clone label not always imply that all labeled cells occupy one terminal branch?
  3. For two branches with \(\pi_1=\pi_2=0.5\), \(\kappa=2\), and a clone's assignment counts \((2,0)\), calculate the probability of one particular ordered assignment.
  4. Name one diagnostic that could reveal a problem with using clonal labels as error-free shared-ancestry indicators.

Solutions. (1) \(\kappa\) controls concentration of clone-specific propensities around \(\boldsymbol{\pi}\); larger values imply less clone-to-clone variation. (2) A label introduced before a branchpoint can be inherited by descendants that later enter distinct branches. (3) The Dirichlet parameters are \((1,1)\), so the probability is \(\Gamma(2)/\Gamma(4)\times[\Gamma(3)/\Gamma(1)]\times[\Gamma(1)/\Gamma(1)]=(1/6)(2)(1)=1/3\). (4) Examples include checking for implausibly large clones, barcode collision or sequencing error, or persistent discordance between expression-based and clone-informed assignments.

Clinical Biostats