TRIBAL: Tree Inference of B Cell Clonal Lineages

Leah L. Weber, Derek Reiman, Mrinmoy Saha Roddur, Yuanyuan Qi, Mohammed El-Kebir, Aly A. Khan

Reconstructing how B cells evolve during an infection or vaccination is like trying to build a massive family tree where most of the ancestors are missing and the surviving relatives look almost identical. In a new paper, researchers introduce TRIBAL (Tree Inference of B cell Clonal Lineages), a computational framework that uses a clever biological "one-way street" to bring much-needed clarity to these complex evolutionary histories.

TL;DR

TRIBAL is a new method that reconstructs B cell lineage trees by jointly analyzing B cell receptor (BCR) sequences and isotype data from single-cell RNA sequencing. By leveraging the irreversible nature of isotype switching, TRIBAL significantly reduces phylogenetic uncertainty, producing more accurate evolutionary models than sequence-only methods.

What Problem Does This Paper Address?

When your body fights a pathogen, B cells undergo a high-speed evolutionary process called affinity maturation. They rapidly mutate their receptors (Somatic Hypermutation, or SHM) to bind better to the enemy. Simultaneously, they undergo Class Switch Recombination (CSR), changing their "isotype" (e.g., from IgM to IgG or IgA) to alter their functional role in the immune system.

For researchers, reconstructing this history is vital for understanding vaccine efficacy or autoimmune diseases. However, BCR sequences are short (~600 base pairs) and mutations are relatively sparse. This leads to "phylogenetic uncertainty," where many different family trees look equally plausible based on sequence data alone. Standard methods often produce "polytomies"—unresolved nodes where a single ancestor appears to give rise to many descendants simultaneously—which doesn't reflect the actual bifurcating nature of cell division.

Methods

TRIBAL’s key innovation is treating isotypes as a primary evolutionary signal rather than an afterthought. Crucially, CSR is a genomic deletion process: once a cell switches from IgM to IgG, it physically cuts out the DNA required to make IgM. It can never go back.

TRIBAL uses a two-stage "lexicographical" optimization approach:

  1. Maximum Parsimony Forest: It first uses standard methods (like dnapars) to generate a set of candidate trees that minimize the number of mutations.
  2. Isotype Refinement: It then "refines" these trees—resolving polytomies into specific branching events—to maximize the likelihood of the observed isotype transitions.

To do this, TRIBAL employs a coordinate ascent algorithm. It simultaneously learns the isotype transition probabilities (the "rules" of switching for that specific biological sample) and the most likely trees. The refinement step is formulated as a Mixed-Integer Linear Programming (MILP) problem, ensuring that the final trees respect the biological law of irreversible switching.

Datasets

The authors evaluated TRIBAL using three distinct sources:

  • In Silico Simulations: 1,500 ground-truth trees generated under two different CSR models: "Direct" (where cells can jump to any isotype) and "Sequential" (where they follow a specific order).
  • NP-KLH Dataset: Real-world scRNA-seq data from mice immunized with a classic model antigen. This dataset is a benchmark for studying high-affinity antibody development.
  • Age-Associated B Cell (ABC) Dataset: Data from autoimmune-prone mice, used to test the method in complex, non-standard immune environments.

Key Insights and Ideas

  • Isotypes as Evolutionary Milestones: Because class switching is irreversible, it acts as a "hard" constraint on the tree. A descendant cannot have an isotype that appears "earlier" in the genomic locus than its ancestor.
  • Resolving the "Tie-Breaks": In many cases, multiple trees have the same mutation score. TRIBAL uses the isotype data to break these ties, drastically reducing the number of "optimal" solutions.
  • Learning the Dynamics: TRIBAL doesn't just assume how switching happens; it infers the transition probabilities from the data. This allows researchers to distinguish between direct and sequential switching, providing insight into the underlying immune signaling environment.

Key Results

  • Superior Accuracy: In simulations, TRIBAL achieved significantly lower Robinson-Foulds (RF) distances (a measure of tree topology error) and MRCA distances (accuracy of ancestral sequence reconstruction) compared to established tools like IgPhyML and dnaml.
  • Reduced Uncertainty: In the NP-KLH dataset, TRIBAL reduced the average number of optimal trees per B cell family from 31.5 down to just 1.3.
  • Biological Validation: TRIBAL correctly recapitulated known biological trends. For example, in the NP-KLH system, it correctly placed the W33L mutation (which appears early in the immune response) closer to the root of the trees than later-stage mutations like K59R.
  • Lower Entropy: TRIBAL-inferred trees yielded lower "isotype clade entropy," meaning the isotypes were more logically clustered within the tree branches compared to sequence-only methods.

Limitations and Future Work

  • The "One Matrix" Assumption: TRIBAL currently assumes a single isotype transition matrix for all B cell families in a sample. Future versions could allow for multiple matrices to account for different micro-environments (e.g., different germinal centers).
  • Complex Mutations: The current model focuses on point mutations and does not yet account for insertions or deletions (indels), which can be important in some antibody lineages.
  • Initial Tree Dependency: Since TRIBAL refines an initial set of parsimony trees, it is limited by the quality of that starting "forest." Integrating likelihood-based sequence models directly into the refinement step is a promising future direction.

Availability: TRIBAL is open-source and available at https://github.com/elkebir-group/tribal.

Summary updated

BibTeX
@inproceedings{weber2024tribal,
  author = {Leah L. Weber and Derek Reiman and Mrinmoy Saha Roddur and Yuanyuan Qi and Mohammed El-Kebir and Aly A. Khan},
  title = {{TRIBAL: Tree Inference of B Cell Clonal Lineages}},
  booktitle = {RECOMB},
  year = {2024},
  doi = {10.1007/978-1-0716-3989-4\_32},
}
Figure