T cells recognize short antigen fragments, called epitopes, when they are displayed by MHC molecules. The researchers created T-cell specificity profiles to summarize receptor features that distinguish epitope-specific groups from background receptor repertoires, including both receptor sequence segments and gene usage.

Across datasets covering hundreds of epitopes in humans and mice, the profiles revealed how recognition changed among related peptide variants and different MHC restrictions. The approach also helped predict cross-reactivity—when receptors recognize more than one related epitope—and showed that AlphaFold3 structural predictions could reproduce several experimentally observed patterns for a yellow-fever epitope.