Tutorials › Statistical Methods for Single-Cell RNA Sequencing › Quantifying Root Uncertainty on an MST

Pseudotime and Trajectory Inference · Tutorial 369 of 700

Quantifying Root Uncertainty on an MST

You will compare candidate roots on a fixed minimum spanning tree and summarize how much each cell’s path and pseudotime depend on that choice.

Advanced 12 min read

What You'll Learn

  • Define candidate roots on a fixed, connected minimum spanning tree.
  • Compare root-to-cell paths and pseudotime across plausible roots.
  • Calculate per-cell ranges and weighted means and standard deviations.
  • Detect root-sensitive cell orderings with rank comparisons.
  • Distinguish root uncertainty from uncertainty in the inferred tree.
  • Recognize when summaries conceal branch-specific changes.

Why Root Choice Needs a Sensitivity Analysis

An MST gives a connected tree of cells, but an unrooted tree does not specify which cell represents the start of a biological process. Assigning pseudotime requires a root: each cell’s time is calculated along its path from that root. When the starting state is uncertain, choosing one plausible cell and reporting only the resulting pseudotime can make a root-dependent ordering look definitive.

This tutorial measures that dependence while holding the inferred tree fixed. The question is not which root is biologically correct; it is how much the resulting paths, distances, and cell orderings vary over a stated set of plausible roots. This conditional analysis does not capture uncertainty in the tree itself, its edge weights, or the choice of cells.

Definition: Let \(T=(V,E)\) be a connected tree whose vertices \(V\) are cells or trajectory-skeleton nodes, and let each edge \(e\) have a nonnegative length \(w_e\). Let \(R\subseteq V\) be a specified set of candidate roots. For a candidate root \(r\in R\) and cell \(v\in V\), the root-to-cell path is the unique path in \(T\) from \(r\) to \(v\). Its weighted length is the sum of the edge lengths on that path, denoted \(d_T(r,v)\). In the unnormalized convention used here, the MST pseudotime for \(v\) under root \(r\) is \(\tau_r(v)=d_T(r,v)\).

The earlier material on assigning pseudotime along an MST establishes this distance-based assignment. Here the essential change is to calculate it for more than one root. Use the same tree, edge lengths, cell-to-tree mapping, and pseudotime convention for every candidate. Otherwise, differences cannot be attributed to root choice alone.

If pseudotime is rescaled to run from zero to one, do that separately and explicitly for each root. For example, one common rescaling is \(\tilde{\tau}_r(v)=\tau_r(v)/\max_{u\in V}\tau_r(u)\), provided the maximum is positive. Raw and rescaled values answer different questions: raw distances retain the tree’s length units, while rescaled values express position relative to the farthest cell from each root. Do not compare them as if they were interchangeable.

Summarizing Root-Induced Variation

For each cell, the simplest summary is the range of its pseudotime over the candidate roots. If the candidate roots have prespecified plausibility weights \(q_r\), where \(q_r\geq 0\) and \(\sum_{r\in R}q_r=1\), a weighted mean and standard deviation can summarize the values. The weights encode the analyst’s stated plausibility assessment; unless they come from a defined probabilistic model, they are not probabilities that the roots are biologically true.

$$ \bar{\tau}_q(v)=\sum_{r\in R}q_r\tau_r(v),\qquad s_{\tau,q}(v)=\sqrt{\sum_{r\in R}q_r\left(\tau_r(v)-\bar{\tau}_q(v)\right)^2} $$

The range is \(\max_{r\in R}\tau_r(v)-\min_{r\in R}\tau_r(v)\). These are descriptive sensitivity summaries, not confidence intervals: they do not quantify sampling uncertainty or assign coverage to an unknown parameter. Report them with the candidate-root set and the pseudotime units. Also inspect cell ordering. Two roots can give similar distances for a cell while reversing its order relative to another cell.

Worked Example: Comparing Root-to-Cell Paths

Consider a hypothetical MST with edges A–B of length 1, B–C of length 2, C–D of length 2, C–E of length 1, and E–F of length 2. Suppose A and E are the two plausible roots. All lengths are hypothetical distance units.

From A, the path to D is A–B–C–D, so \(\tau_A(D)=1+2+2=5\). From E, the path to D is E–C–D, so \(\tau_E(D)=1+2=3\). The root-to-cell route changes as well as its length: A–B–C–D starts at A, whereas E–C–D starts at E.

For F, the path from A is A–B–C–E–F, giving \(\tau_A(F)=1+2+1+2=6\). From E, the path is E–F, giving \(\tau_E(F)=2\). Thus F’s root-induced range is \(6-2=4\) distance units. By comparison, C has \(\tau_A(C)=1+2=3\) and \(\tau_E(C)=1\), a range of \(2\) units.

The path between D and F remains D–C–E–F regardless of root; a tree has one unique path between any two vertices. What changes is which root-to-cell paths are used to assign pseudotime and how those paths orient the branches. Root uncertainty therefore changes rooted distances and ordering, not the underlying unrooted tree in this analysis.

Calculating Cell-Level Sensitivity

The following table gives the full distance calculation for the same hypothetical tree. For each entry, add the edge lengths on the unique path from the listed root. The two root choices are given equal weight only for illustrating a weighted summary.

Cell\(\tau_A(v)\)\(\tau_E(v)\)RangeEqual-weight mean
A0442
B1322
C3122
D5324
E4042
F6244

For instance, A’s distance from E follows A–B–C–E, so \(\tau_E(A)=1+2+1=4\). The equal-weight mean is \((0+4)/2=2\), and its range is \(4-0=4\). A mean across roots is a compact summary, not necessarily a pseudotime that corresponds to any single valid root or rooted traversal. Here A and E both have mean 2, even though each is at time zero under one root and time four under the other.

Worked Example: Weighted Mean and Standard Deviation

Suppose the analyst assigns plausibility weights \(q_A=0.6\) and \(q_E=0.4\). These are hypothetical assessment weights, not estimated biological probabilities. For D, the two pseudotimes are \(\tau_A(D)=5\) and \(\tau_E(D)=3\), in distance units.

The weighted mean is \(\bar{\tau}_q(D)=0.6(5)+0.4(3)=3+1.2=4.2\) distance units.

The weighted standard deviation follows by centering each value at 4.2: \(s_{\tau,q}(D)=\sqrt{0.6(5-4.2)^2+0.4(3-4.2)^2} =\sqrt{0.6(0.64)+0.4(1.44)} =\sqrt{0.384+0.576} =\sqrt{0.96}\approx 0.980\) distance units.

The standard deviation describes variation across these two weighted scenarios. It is not a standard error for a population mean, and it should not be interpreted as one. A report should say that D’s weighted mean pseudotime is 4.2 distance units and its root-sensitivity standard deviation is about 0.980 distance units under the stated candidate set and weights.

How Root Choice Changes Ordering

Pseudotime is often used to order cells, so distance summaries alone can miss important changes. For example, under root A, B precedes C because \(\tau_A(B)=1<3=\tau_A(C)\). Under root E, C precedes B because \(\tau_E(C)=1<3=\tau_E(B)\). This reversal is a direct warning against presenting one ordering as insensitive to root choice.

One useful diagnostic is to compare pairwise orderings across candidate roots. For each pair of cells, record whether \(\tau_r(u)<\tau_r(v)\), whether the ordering reverses across roots, and whether either root produces a tie. A global rank-correlation summary can also be reported when there are many cells, but it does not identify which branch or cells drive disagreement. Pairwise reversals and per-cell ranges help locate the sensitivity.

Worked Example: Quantifying an Ordering Reversal

For cells B and C in the hypothetical tree, root A gives \(\tau_A(B)=1\) and \(\tau_A(C)=3\), so B precedes C. Root E gives \(\tau_E(B)=3\) and \(\tau_E(C)=1\), so C precedes B. The ordering reverses.

For a simple two-root summary, define the reversal indicator for a pair as 1 when the strict order differs across roots and 0 otherwise. Here it is 1. Across all \(\binom{6}{2}=15\) cell pairs in this tree, this indicator can be calculated pair by pair; it should not be replaced by comparing only mean pseudotimes. For the pair B and C, both equal-weight means are 2, which would conceal the strict reversal entirely.

The practical conclusion is specific: the relative pseudotime order of B and C is not robust to the two stated roots. This does not establish that either root, or either ordering, is biologically correct.

A Short Justification for the Distance Calculation

The sensitivity calculation rests on two simple facts: the graph is a tree, and its edge lengths are nonnegative. A tree has exactly one path between any two vertices. Therefore each candidate root defines one unambiguous route to each cell. Summing the edge lengths along that route gives the root-to-cell distance used for pseudotime.

For a change of root from \(r\) to \(s\), the distance difference can be understood by comparing their paths to \(v\). Any shared segment contributes to both sums and cancels when the distances are subtracted. The nonshared segments determine the change. In the example, the paths from A and E to F share E–F, but the A-root path also includes A–B–C–E. Thus \(\tau_A(F)-\tau_E(F)=(1+2+1+2)-2=4\) distance units, exactly the length of the extra segment from A to E.

This argument also clarifies the scope of the result. It justifies comparing distances on a fixed tree; it does not justify the candidate roots, the edge weights, or the tree as a model of biological progression.

Practical Workflow, Diagnostics, and Alternatives

1
Specify the candidates.
List the biologically plausible root cells or skeleton nodes and state why they are included. If using weights, state how they were assigned and what they represent.
2
Hold the representation fixed.
Use one connected MST, one set of edge lengths, and one cell-to-tree mapping. Check that all candidates are vertices in the same component.
3
Recalculate for every root.
Compute the unique root-to-cell path and sum its edge lengths for each candidate and each cell. Apply any normalization separately and consistently for each root.
4
Report more than one summary.
Give per-cell ranges or weighted variation, and inspect rank reversals or branch-specific path changes. State the units and candidate set.
5
Separate sources of uncertainty.
Explain that this analysis varies the root only. If the tree, edge weights, or cell set could also change, root sensitivity alone does not measure that additional uncertainty.

Several failures are detectable. A candidate outside the tree’s connected component has no finite path distance to the other cells, so it cannot be included in this comparison without first resolving the disconnected representation. A zero maximum distance makes max-rescaling undefined. Very large ranges concentrated on one branch suggest that the root choice particularly affects that branch. If all candidate roots produce identical pseudotimes for a cell, its distance is insensitive within the chosen candidate set, but that does not prove the set includes all plausible roots.

A single prespecified root is simpler and appropriate when independent biological evidence strongly supports it, but it hides sensitivity if plausible alternatives exist. Reporting every candidate-root result is transparent for a small set. For many candidates, ranges, weighted summaries, and ordering comparisons provide compact descriptions, as long as the underlying candidate set and weights remain available. A consensus or average pseudotime can be convenient for visualization, but averaging does not generally produce a valid root-to-cell distance system for any actual root.

Common Mistake and Limitations

A common mistake is to interpret a weighted average across roots as the cell’s expected biological time, or to treat plausibility weights as posterior probabilities without a probabilistic model. The correction is to call these quantities root-sensitivity summaries, state the weights and their source, and avoid biological interpretations that the calculation does not support.

Root sensitivity is conditional on the chosen MST and its edge lengths. It does not account for uncertainty in how the tree was constructed, whether an edge is spurious, or whether a different geometric representation would be more appropriate. Nor does pseudotime, by itself, establish elapsed clock time, causation, or a unique biological direction. If roots are plausible in different components, or if the candidate set excludes a credible start state, the summary can be incomplete or undefined. Interpret the results alongside the evidence used to define plausible roots.

Key takeaway: Quantify root uncertainty by recomputing root-to-cell paths and pseudotime on the same fixed MST for each plausible root. Summarize cell-level variation and ordering changes, and label the result as conditional sensitivity—not uncertainty in the entire trajectory or proof of biological direction.

Check Your Understanding

Answer the questions, then compare with the solutions.

  1. On a fixed tree, a cell has pseudotimes 2 and 7 distance units under two candidate roots. What are its range and equal-weight mean?
  2. Why can two cells have identical mean pseudotimes across roots even when their ordering reverses?
  3. What does a weighted root-sensitivity standard deviation describe, and what does it not describe?
  4. A candidate root lies in a different connected component from the other cells. Can its root-to-cell pseudotimes be included as ordinary finite distances?

Solutions. (1) The range is \(7-2=5\) distance units; the equal-weight mean is \((2+7)/2=4.5\) distance units. (2) Averaging removes the root-specific ordering information: each cell may have the same average while being earlier under one root and later under another. Compare the per-root values or pairwise orderings. (3) It describes weighted variation across the stated candidate-root scenarios, conditional on the fixed tree and chosen weights. It is not a standard error, confidence interval, or probability statement about a biological root. (4) No. There is no path in the tree between disconnected components, so the distance is undefined or infinite rather than an ordinary finite pseudotime; resolve the disconnected representation before making this comparison.

Clinical Biostats