Reuse & Permissions

It is not necessary to obtain permission to reuse this article or its components as it is available under the terms of the Creative Commons Attribution 4.0 International license. This license permits unrestricted use, distribution, and reproduction in any medium, provided attribution to the author(s) and the published article's title, journal citation, and DOI are maintained. Please note that some figures may have been included with permission from other third parties. It is your responsibility to obtain the proper permission from the rights holder directly for these figures.

Export citation

Export citation

Choose format for download:

Download Citation
  • Open Access

Data-Driven Discovery of Biophysical T Cell Receptor Cospecificity Rules

Andrew G. T. Pyo1, Yuta Nagano2,3, Martina Milighetti2,4, James Henderson2,5, Curtis G. Callan, Jr.1,6, Benny Chain2,7, Ned S. Wingreen8,9, and Andreas Tiffeau-Mayer2,5

PRX Life 3, 033005 – Published 15 July, 2025

DOI: https://doi.org/10.1103/14j1-wrh5

Abstract

The biophysical interactions between the T cell receptor (TCR) and its ligands determine the specificity of the cellular immune response. However, the immense diversity of receptors and ligands has made it challenging to discover generalizable rules across the distinct binding affinity landscapes created by different ligands. Here, we present an optimization framework for discovering biophysical rules that predict whether TCRs share specificity to a ligand. Applying this framework to TCRs associated with a collection of SARS-CoV-2 peptides, we systematically characterize how cospecificity depends on the type and position of amino-acid differences between receptors. We also demonstrate that the inferred rules generalize to ligands highly dissimilar to any seen during training. Our analysis reveals that the matching of steric properties between substituted amino acids is more important for receptor cospecificity than the hydrophobic properties that prominently determine evolutionary substitutability. Our analysis also quantifies the substantial importance of positions not in direct contact with the peptide for specificity. These findings highlight the potential for data-driven approaches to uncover the molecular mechanisms underpinning the specificity of adaptive immune responses.

View figure in article

Physics Subject Headings (PhySH)

Article Text

Supplemental Material

References (57)

  1. M. M. Davis and P. J. Bjorkman, The T cell receptor genes and T cell recognition, Nature (London) 334, 395 (1988).
  2. H. Chi, M. Pepper, and P. G. Thomas, Principles and therapeutic applications of adaptive immunity, Cell 187, 2052 (2024).
  3. P. Dash, A. J. Fiore-Gartland, T. Hertz, G. C. Wang, S. Sharma, A. Souquette, J. C. Crawford, E. B. Clemens, T. H. O. Nguyen, K. Kedzierska, N. L. La Gruta, P. Bradley, and P. G. Thomas, Quantifiable predictive features define epitope-specific T cell receptor repertoires, Nature (London) 547, 89 (2017).
  4. J. Glanville, H. Huang, A. Nau, O. Hatton, L. E. Wagar, F. Rubelt, X. Ji, A. Han, S. M. Krams, C. Pettus, N. Haas, C. S. L. Arlehamn, A. Sette, S. D. Boyd, T. J. Scriba, O. M. Martinez, and M. M. Davis, Identifying specificity groups in the T cell receptor repertoire, Nature (London) 547, 94 (2017).
  5. C. S. Dobson, A. N. Reich, S. Gaglione, B. E. Smith, E. J. Kim, J. Dong, L. Ronsard, V. Okonkwo, D. Lingwood, M. Dougan, S. K. Dougan, and M. E. Birnbaum, Antigen identification and high-throughput interaction mapping by reprogramming viral entry, Nat. Methods 19, 449 (2022).
  6. A. V. Joglekar, M. T. Leonard, J. D. Jeppson, M. Swift, G. Li, S. Wong, S. Peng, J. M. Zaretsky, J. R. Heath, A. Ribas et al., T cell antigen discovery via signaling and antigen-presenting bifunctional receptors, Nat. Methods 16, 191 (2019).
  7. S. Sureshchandra, J. Henderson, E. Levendosky, S. Bhattacharyya, J. M. Kastenschmidt, A. M. Sorn, M. T. Mitul, A. Benchorin, K. Batucal, A. Daugherty et al., Tissue determinants of the human T cell receptor repertoire, bioRxiv (2024), doi:10.1101/2024.08.17.608295.
  8. D. V. Bagaev, R. M. A. Vroomans, J. Samir, U. Stervbo, C. Rius, G. Dolton, A. Greenshields-Watson, M. Attaf, E. S. Egorov, I. V. Zvyagin, N. Babel, D. K. Cole, A. J. Godkin, A. K. Sewell, C. Kesmir, D. M. Chudakov, F. Luciani, and M. Shugay, VDJdb in 2019: Database extension, new analysis infrastructure and a T-cell receptor motif compendium, Nucl. Acids Res. 48, D1057 (2020).
  9. N. Tickotsky, T. Sagiv, J. Prilusky, E. Shifrut, and N. Friedman, McPAS-TCR: A manually curated catalogue of pathology-associated T cell receptor sequences, Bioinformatics 33, 2924 (2017).
  10. R. Vita, S. Mahajan, J. A. Overton, S. K. Dhanda, S. Martini, J. R. Cantrell, D. K. Wheeler, A. Sette, and B. Peters, The immune epitope database (IEDB): 2018 update, Nucl. Acids Res. 47, D339 (2018).
  11. S. Nolan, M. Vignali, M. Klinger, J. N. Dines, I. M. Kaplan, E. Svejnoha, T. Craft, K. Boland, M. W. Pesesky, R. M. Gittelman et al., A large-scale database of T-cell receptor beta sequences and binding associations from natural and synthetic exposure to SARS-CoV-2, Front. Immunol. 16, 1488851 (2025).
  12. S. Gielis, P. Moris, W. Bittremieux, N. De Neuter, B. Ogunjimi, K. Laukens, and P. Meysman, Detection of enriched T cell epitope specificity in full T cell receptor sequence repertoires, Front. Immunol. 10, 2820 (2019).
  13. X. Lin, J. T. George, N. P. Schafer, K. Ng Chau, M. E. Birnbaum, C. Clementi, J. N. Onuchic, and H. Levine, Rapid assessment of T-cell receptor specificity of the immune repertoire, Nat. Comput. Sci. 1, 362 (2021).
  14. D. S. Fischer, Y. Wu, B. Schubert, and F. J. Theis, Predicting antigen specificity of single T cells based on TCR CDR3 regions, Mol. Syst. Biol. 16, e9416 (2020).
  15. E. Jokinen, J. Huuhtanen, S. Mustjoki, M. Heinonen, and H. Lähdesmäki, Predicting recognition between T cell receptors and epitopes with TCRGP, PLoS Comput. Biol. 17, e1008814 (2021).
  16. G. Croce, S. Bobisse, D. L. Moreno, J. Schmidt, P. Guillame, A. Harari, and D. Gfeller, Deep learning predictions of TCR-epitope interactions reveal epitope-specific chains in dual alpha T cells, Nat. Commun. 15, 3211 (2024).
  17. A. Wang, X. Lin, K. N. Chau, J. N. Onuchic, H. Levine, and J. T. George, RACER-m leverages structural features for sparse T cell specificity prediction, Sci. Adv. 10, eadl0161 (2024).
  18. B. Meynard-Piganeau, C. Feinauer, M. Weigt, A. M. Walczak, and T. Mora, TULIP: A transformer-based unsupervised language model for interacting peptides and T cell receptors that generalizes to unseen epitopes, Proc. Natl. Acad. Sci. USA 121, e2316401121 (2024).
  19. Y. Zhang, Z. Wang, Y. Jiang, D. R. Littler, M. Gerstein, A. W. Purcell, J. Rossjohn, H.-Y. Ou, and J. Song, Epitope-anchored contrastive transfer learning for paired CD8+ T cell receptor–antigen recognition, Nat. Mach. Intell. 6, 1344 (2024).
  20. Y. Nagano, A. G. Pyo, M. Milighetti, J. Henderson, J. Shawe-Taylor, B. Chain, and A. Tiffeau-Mayer, Contrastive learning of T cell receptor representations, Cell Syst. 16, 101165 (2025).
  21. M. Nielsen, A. Eugster, M. F. Jensen, M. Goel, A. Tiffeau-Mayer, A. Pelissier, S. Valkiers, M. R. Martínez, B. Meynard-Piganeeau, V. Greiff, T. Mora, A. M. Walczak, G. Croce, D. L. Moreno, D. Gfeller, P. Meysman, and J. Barton, Lessons learned from the IMMREP23 TCR-epitope prediction challenge, ImmunoInformatics 16, 100045 (2024).
  22. A. Bellet, A. Habrard, and M. Sebban, A survey on metric learning for feature vectors and structured data, arXiv:1306.6709
  23. O. Vinyals, C. Blundell, T. Lillicrap, K. Kavukcuoglu, and D. Wierstra, Matching networks for one shot learning, arXiv:1606.04080.
  24. S. Henikoff and J. G. Henikoff, Amino acid substitution matrices from protein blocks., Proc. Natl. Acad. Sci. USA 89, 10915 (1992).
  25. M. Milighetti, J. Shawe-Taylor, and B. Chain, Predicting T cell receptor antigen specificity from structural features derived from homology models of receptor-peptide-major histocompatibility complexes, Front. Physiol. 12, 730908 (2021).
  26. A. Mayer and C. G. Callan, Measures of epitope binding degeneracy from T cell receptor repertoires, Proc. Natl. Acad. Sci. USA 120, e2213264120 (2023).
  27. A. Tiffeau-Mayer, Unbiased estimation of sampling variance for Simpson's diversity index, Phys. Rev. E 109, 064411 (2024).
  28. J. Henderson, Y. Nagano, M. Milighetti, and A. Tiffeau-Mayer, Limits on inferring T cell specificity from partial information, Proc. Natl. Acad. Sci. USA 121, e2408696121 (2024).
  29. F. Drost, L. Schiefelbein, and B. Schubert, meTCRs - Learning a metric for T-cell receptors, bioRxiv (2022), doi: 10.1101/2022.10.24.513533.
  30. M. Pertseva, O. Follonier, D. Scarcella, and S. T. Reddy, TCR clustering by contrastive learning on antigen specificity, Brief. Bioinform. 25, bbae375 (2024).
  31. A. Murugan, T. Mora, A. M. Walczak, and C. G. Callan, Statistical inference of the generation probability of T-cell receptors from sequence repertoires, Proc. Natl. Acad. Sci. USA 109, 16161 (2012).
  32. Z. Sethna, G. Isacchini, T. Dupic, T. Mora, A. M. Walczak, and Y. Elhanati, Population variability in the generation and selection of T-cell repertoires, PLoS Comput. Biol. 16, e1008394 (2020).
  33. Y. Elhanati, A. Murugan, C. G. Callan, T. Mora, and A. M. Walczak, Quantifying selection in immune receptor repertoires, Proc. Natl. Acad. Sci. USA 111, 9875 (2014).
  34. B. Bravi, A. Di Gioacchino, J. Fernandez-de Cossio-Diaz, A. M. Walczak, T. Mora, S. Cocco, and R. Monasson, A transfer-learning approach to predict antigen immunogenicity and T-cell receptor specificity, ELife 12, e85126 (2023).
  35. S. F. Edwards and P. W. Anderson, Theory of spin glasses, J. Phys. F 5, 965 (1975).
  36. P. Khosla, P. Teterwak, C. Wang, A. Sarna, Y. Tian, P. Isola, A. Maschinot, C. Liu, and D. Krishnan, Supervised Contrastive Learning, arXiv:2004.11362.
  37. M. Ekeberg, C. Lövkvist, Y. Lan, M. Weigt, and E. Aurell, Improved contact prediction in proteins: Using pseudolikelihoods to infer Potts models, Phys. Rev. E 87, 012707 (2013).
  38. T. Wang and P. Isola, Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere, arXiv:2005.10242.
  39. S. F. Altschul, Amino acid substitution matrices from an information theoretic perspective, J. Mol. Biol. 219, 555 (1991).
  40. J. Bekker and J. Davis, Learning from positive and unlabeled data: A survey, Mach. Learn. 109, 719 (2020).
  41. M. Goncharov, D. Bagaev, D. Shcherbinin, I. Zvyagin, D. Bolotin, P. G. Thomas, A. A. Minervina, M. V. Pogorelyy, K. Ladell, J. E. McLaren, D. A. Price, T. H. O. Nguyen, L. C. Rowntree, E. B. Clemens, K. Kedzierska, G. Dolton, C. R. Rius, A. Sewell, J. Samir, F. Luciani, K. V. Zornikova, A. A. Khmelevskaya, S. A. Sheetikov, G. A. Efimov, D. Chudakov, and M. Shugay, VDJdb in the pandemic era: A compendium of T cell receptors specific for SARS-CoV-2, Nat. Methods 19, 1017 (2022).
  42. W. D. Chronister, A. Crinklaw, S. Mahajan, R. Vita, Z. Koşaloğlu-Yalçın, Z. Yan, J. A. Greenbaum, L. E. Jessen, M. Nielsen, S. Christley, L. G. Cowell, A. Sette, and B. Peters, TCRMatch: predicting T-cell receptor specificity based on sequence similarity to previously characterized receptors, Front. Immunol. 12, 640725 (2021).
  43. K. Mayer-Blackwell, S. Schattgen, L. Cohen-Lavi, J. C. Crawford, A. Souquette, J. A. Gaevert, T. Hertz, P. G. Thomas, P. Bradley, and A. Fiore-Gartland, TCR meta-clonotypes for biomarker discovery with tcrdist3 enabled identification of public, HLA-restricted clusters of SARS-CoV-2 TCRs, Elife 10, e68605 (2021).
  44. V. I. Levenshtein, Binary codes capable of correcting deletions, insertions and reversals, Sov. Phys. Dokl. 10, 707 (1966).
  45. See Supplemental Material at http://link.aps.org/supplemental/10.1103/14j1-wrh5 for additional figures.
  46. A. Košmrlj, A. K. Jha, E. S. Huseby, M. Kardar, and A. K. Chakraborty, How the thymus designs antigen-specific and self-tolerant T cell receptor sequences, Proc. Natl. Acad. Sci. USA 105, 16671 (2008).
  47. J. Leem, S. H. P. de Oliveira, K. Krawczyk, and C. M. Deane, STCRDab: the structural T-cell receptor database, Nucl. Acids Res. 46, D406 (2017).
  48. H. Mei, Z. H. Liao, Y. Zhou, and S. Z. Li, A new set of amino acid descriptors and its application in peptide QSARs, Peptide Sci. 80, 775 (2005).
  49. J. Jankauskaitė, B. Jiménez-García, J. Dapkūnas, J. Fernández-Recio, and I. H. Moal, SKEMPI 2.0: An updated benchmark of changes in protein–protein binding energy, kinetics and thermodynamics upon mutation, Bioinformatics 35, 462 (2019).
  50. A. Postovskaya, K. Vercauteren, P. Meysman, and K. Laukens, tcrBLOSUM: An amino acid substitution matrix for sensitive alignment of distant epitope-specific TCRs, Brief. Bioinform. 26, bbae602 (2024).
  51. A. S. Perelson and G. F. Oster, Theoretical studies of clonal selection: minimal antibody repertoire size and reliability of self-non-self discrimination, J. Theor. Biol. 81, 645 (1979).
  52. B. D. Stadinski, K. Shekhar, I. Gómez-Touriño, J. Jung, K. Sasaki, A. K. Sewell, M. Peakman, A. K. Chakraborty, and E. S. Huseby, Hydrophobic CDR3 residues promote the development of self-reactive T cells, Nat. Immunol. 17, 946 (2016).
  53. V. K. Karnaukhov, D. S. Shcherbinin, A. O. Chugunov, D. M. Chudakov, R. G. Efremov, I. V. Zvyagin, and M. Shugay, Structure-based prediction of T cell receptor recognition of unseen epitopes using TCRen, Nat. Comput. Sci. 4, 510 (2024).
  54. A. Y. Leary, D. Scott, N. T. Gupta, J. C. Waite, D. Skokos, G. S. Atwal, and P. G. Hawkins, Designing meaningful continuous representations of T cell receptor sequences with deep generative models, Nat. Commun. 15, 4271 (2024).
  55. H. F. Jones, Z. Molvi, M. G. Klatt, T. Dao, and D. A. Scheinberg, Empirical and rational design of T cell receptor-based immunotherapies, Front. Immunol. 11, 585385 (2021).
  56. A. Paszke, S. Gross, S. Chintala, G. Chanan, E. Yang, Z. DeVito, Z. Lin, A. Desmaison, L. Antiga, and A. Lerer, Automatic differentiation in PyTorch, in Conference on Neural Information Processing System, Long Beach, CA, USA (NIPS, 2017).
  57. A. Pyo, Inference code for TCR co-specificity prediction, Zenodo repository (2025), 10.5281/zenodo.15707892.

Outline

Information

Sign In to Your Journals Account

Filter

Filter

Article Lookup

Enter a citation