# AffMB: affinity maturation analysis with SHM-guided B-cell lineage trees

**Authors:** Jiaqi Luo, Yiping Zou, Shuai Cheng Li

PMC · DOI: 10.1093/bioinformatics/btaf346 · 2025-07-17

## TL;DR

AffMB is a new tool that builds accurate B-cell lineage trees to study how antibodies improve their binding during immune responses.

## Contribution

AffMB introduces a SHM-guided lineage tree algorithm that ensures mutation inheritance and outperforms existing methods.

## Key findings

- AffMB's algorithm outperformed state-of-the-art methods in simulated data.
- AffMB successfully analyzed real-world BNT162b2 vaccination data to infer immune responses.
- The tool can identify potential high-affinity antibody sequences from sequencing data.

## Abstract

B-cell lineage trees describe the evolutionary process of immunoglobulin genes during affinity maturation. Existing methods for building B-cell lineage trees generally do not guarantee the parent-to-child inheritance and accumulation of advantageous mutations under successive rounds of somatic hypermutation (SHM) and selection, and are often incompatible with repertoire input.

To address previous limitations, we developed AffMB (Affinity Maturation of B-cell receptor), a comprehensive toolkit for tracking affinity maturation through the generation and visualization of SHM-ordered, inheritance-based B-cell lineage trees from single-cell or bulk B-cell receptor sequencing data. The SHM-ordered inheritance tree algorithm outperformed state-of-the-art benchmarks in simulations. When applied to single-cell data from BNT162b2 vaccination (n = 42), AffMB demonstrated the ability to infer immunization responses and showed the feasibility of identifying potential high-affinity antibody sequences.

AffMB is an open-source Python package that supports contig FASTA or AIRR rearrangement TSV inputs. The source code for AffMB is freely available at https://github.com/deepomicslab/AffMB.

## Full-text entities

- **Genes:** LOC102723407 (immunoglobulin heavy variable 4-38-2-like) [NCBI Gene 102723407] {aka IGHV4, IGHV4-30, IGHV4-38-2, IGHV4-39, IGHV4-b, IGVH4-39}, S (surface glycoprotein) [NCBI Gene 43740568] {aka spike glycoprotein}, BCR (BCR activator of RhoGEF and GTPase) [NCBI Gene 613] {aka ALL, BCR1, CML, D22S11, D22S662, PHL}, IGKV3-15 (immunoglobulin kappa variable 3-15) [NCBI Gene 28913] {aka IGKV315, L2}, CDR1 (cerebellar degeneration related 1) [NCBI Gene 1038] {aka CDR, CDR34, CDR62A}, MLC1 (modulator of VRAC current 1) [NCBI Gene 23209] {aka LVM, MLC, VL}, IGHV4-4 (immunoglobulin heavy variable 4-4) [NCBI Gene 28401] {aka IGHV44, VH}, IGHV4-39 (immunoglobulin heavy variable 4-39) [NCBI Gene 28394] {aka IGHV439, VH}
- **Diseases:** SHM (MESH:D013001), COVID-19 (MESH:D000086382)
- **Chemicals:** amino acid (MESH:D000596)
- **Species:** Severe acute respiratory syndrome coronavirus 2 (no rank) [taxon 2697049], Homo sapiens (human, species) [taxon 9606]
- **Mutations:** U to S

## Figures

3 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12282942/full.md

---
Source: https://tomesphere.com/paper/PMC12282942