| Literature DB >> 34367141 |
Miri Ostrovsky-Berman1,2, Boaz Frankel1,2, Pazit Polak1,2, Gur Yaari1,2.
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.Entities:
Keywords: BCR repertoire; NLP; biological sequence embedding; computational immunology; word2vec
Year: 2021 PMID: 34367141 PMCID: PMC8340020 DOI: 10.3389/fimmu.2021.680687
Source DB: PubMed Journal: Front Immunol ISSN: 1664-3224 Impact factor: 7.561
Figure 1The research structure and workflow. (A) The analogy between natural language and the immunological language, on which we base our research. (B) The steps of Immune2vec model generation, described in details in the Methods section. (C) Word-level implementation of Immune2vec on amino acid 3-grams (D) Sequence-level classification on CDR3 embedded vectors, classifying them according to the IGHV family of the adjacent IGHV sequence. (E) Repertoire-level classification approach based on a nearest neighbors approach presented here. Created using the Weblogo tool (15).
Figure 2Work flows applied to the different levels. (A) Training Immune2Vec. (B) Applying Immune2Vec for sequence level classification. (C) Applying Immune2Vec to repertoire level representation. (D) CDR3 sequence logo for 17 amino acids. Created using the Weblogo tool (15).
Figure 33-gram embedding analysis using several tools (A) 3-grams embeddings divided to clusters using k-means clustering (B) The same embedding whereeach point is colored according to its basic property value. (C) A box plot describing the distribution of basic property distances among all the points, vs. its distancedistribution in each cluster. Comparing distances between all data to the distances within clusters using the Mann Whitney test yielded a p value <10-20. (D) Moran’s index spatial auto-correlation analysis of properties in the embedding space.
Amino acids properties distribution.
| Property name | General variance | K-means (400 clusters) | K-means (180 clusters) | ||
|---|---|---|---|---|---|
| In-cluster variance | Ratio | In-cluster variance | Ratio | ||
| Gravy | 2.83 | 1.08 | 1.37 | 2.1 | 2.3 |
| Bulkiness | 6.8 | 3.6 | 1.9 | 4.06 | 1.7 |
| Polarity | 2.29 | 0.91 | 2.5 | 1.14 | 2.0 |
| Aliphatic | 0.55 | 0.24 | 2.3 | 0.3 | 1.8 |
| Charge | 0.6 | 0.25 | 2.5 | 0.33 | 1.8 |
| Acidic | 0.03 | 0.01 | 2.2 | 0.02 | 1.8 |
| Basic | 0.04 | 0.01 | 3.0 | 0.02 | 1.9 |
| Aromatic | 0.05 | 0.02 | 2.3 | 0.03 | 1.8 |
The table compares the general variance of each property for all sequences with the in-cluster variance, and the ratio between them, for three kinds of clustering methods. A high ratio indicates a strong similarity of the property within the cluster.
Figure 4(A) A description of the trimmed CDR3 sequences from the Ig heavy chain germline locus, used for the research. (B) F1-score of IGHV family classification based on CDR3 sequences using decision tree and kNN methods.
IGHV family classification based on CDR3 sequence using Decision Tree (DT), Random Forest (RF) and K-nearest neighbor (KNN).
| Model (corpus) | Data set | DT f1-scoree | RF f1-score | KNN f1-score | Number of samples per family |
|---|---|---|---|---|---|
| IVM1 | DS1 | 0.65 | 0.67 | 0.58 | 150K |
| IVM1 | DS2 | 0.50 | 0.51 | 0.46 | 300K |
| IVM1 | DS3 | 0.67 | 0.69 | 0.61 | 100K |
| IVM2 | DS1 | 0.65 | 0.66 | 0.64 | 150K |
| IVM2 | DS2 | 0.50 | 0.52 | 0.46 | 300K |
| IVM2 | DS3 | 0.67 | 0.69 | 0.59 | 100K |
Figure 5Accuracy of the SC-CI BCR and TCR repertoires classification. For validation purposes, the model was trained and applied on randomly labeled data.
Figure 6(A) Model prediction total accuracy using different data sets as corpora for creating the embedding model. (B) Number of sequences in each corpus. DS6 was generated by randomly sampling sequences from DS5.