Immune2vec: Embedding B/T Cell Receptor Sequences in ℝ N Using Natural Language Processing

Front Immunol. 2021 Jul 22:12:680687. doi: 10.3389/fimmu.2021.680687. eCollection 2021.

Abstract

The adaptive branch of the immune system learns pathogenic patterns and remembers them for future encounters. It does so through dynamic and diverse repertoires of T- and B- cell receptors (TCR and BCRs, respectively). These huge immune repertoires in each individual present investigators with the challenge of extracting meaningful biological information from multi-dimensional data. The ability to embed these DNA and amino acid textual sequences in a vector-space is an important step towards developing effective analysis methods. Here we present Immune2vec, an adaptation of a natural language processing (NLP)-based embedding technique for BCR repertoire sequencing data. We validate Immune2vec on amino acid 3-gram sequences, continuing to longer BCR sequences, and finally to entire repertoires. Our work demonstrates Immune2vec to be a reliable low-dimensional representation that preserves relevant information of immune sequencing data, such as n-gram properties and IGHV gene family classification. Applying Immune2vec along with machine learning approaches to patient data exemplifies how distinct clinical conditions can be effectively stratified, indicating that the embedding space can be used for feature extraction and exploratory data analysis.

Keywords: BCR repertoire; NLP; biological sequence embedding; computational immunology; word2vec.

Publication types

  • Research Support, Non-U.S. Gov't
  • Review

MeSH terms

  • Algorithms
  • Animals
  • Computational Biology / methods*
  • Gene Rearrangement, B-Lymphocyte*
  • Gene Rearrangement, T-Lymphocyte*
  • High-Throughput Nucleotide Sequencing*
  • Humans
  • Natural Language Processing
  • Receptors, Antigen, B-Cell / genetics*
  • Receptors, Antigen, B-Cell / metabolism
  • Receptors, Antigen, T-Cell / genetics*
  • Receptors, Antigen, T-Cell / metabolism
  • Software*
  • Workflow

Substances

  • Receptors, Antigen, B-Cell
  • Receptors, Antigen, T-Cell