TL;DR
This paper introduces a novel computational approach using "bag-of-words" and Support Vector Machines (SVMs) to analyze T cell receptor (TCR) repertoires. They demonstrate that short amino acid sequence motifs within the CDR3 region can effectively distinguish between immunised and unimmunised mice, revealing a distributed immune response rather than the expansion of a few dominant clones.
What Problem Does This Paper Address?
Understanding how the immune system responds to complex antigens is a significant challenge. The clonal theory of immunity suggests that specific lymphocytes proliferate upon encountering an antigen, leading to an increase in their frequency. However, the T cell receptor (TCR) repertoire is incredibly diverse, with each individual possessing millions of unique TCRs. Identifying which TCRs are involved in a specific immune response, especially to complex antigens like whole bacteria, is difficult. Traditional methods struggle to capture the global changes in this vast repertoire. This paper aims to develop a method to track these global changes and identify features that characterize an immune response at a population level, even when the response is distributed across many different TCRs.
Methods
The core of this paper's methodology lies in adapting a "bag-of-words" approach, commonly used in text and image analysis, to TCR sequence data. Here's a breakdown:
- CDR3 Sequence Extraction: High-throughput sequencing (HTS) was used to obtain TCR beta chain sequences. The crucial CDR3 region, believed to be key for antigen binding, was extracted.
- Feature Engineering (Bag-of-Words): Instead of treating entire CDR3 sequences as single units, the authors broke them down into short, contiguous amino acid "p-tuples" (initially triplets, p=3). These p-tuples act as "words" in their vocabulary.
- Physicochemical Representation: Each amino acid within a p-tuple was represented by its Atchley factors, a set of five physicochemical properties. This converts each p-tuple into a numerical vector.
- Codeword Generation: These Atchley vectors were then clustered using k-means clustering to create a fixed-size "codebook" of "codewords" (initially 100 clusters). These codewords represent groups of similar amino acid motifs.
- Feature Vector Creation: For each mouse, a feature vector was generated by counting the frequency of each codeword within its sampled CDR3 sequences. This transforms the complex TCR repertoire of a mouse into a manageable numerical representation.
- Classification: Support Vector Machines (SVMs) were employed to classify these feature vectors, distinguishing between different experimental groups (e.g., immunised vs. unimmunised, different time points post-immunisation). Hierarchical clustering was also used for unsupervised analysis.
This approach is novel in its application of these techniques to TCR repertoire analysis, particularly in using physicochemical properties of amino acids to define the "words" and then clustering these to create a robust feature space.
Datasets
The study utilized spleen samples from C57BL/6 mice. These mice were divided into groups:
- Unimmunised control mice.
- Mice immunised with heat-killed Mycobacterium tuberculosis (M. tb) at three different time points: 5 days, 14 days, and 60 days post-immunisation.
The high-throughput sequencing generated approximately 120 million raw sequence reads, from which a significant portion was classified as functional TCR sequences.
Key Insights and Ideas
- Distributed Immune Response: The most striking insight is that the immune response to a complex antigen like M. tb is not driven by the massive expansion of a few dominant TCR clones. Instead, it appears to be a "distributed" response, involving changes in the frequency of many different TCRs, both high and low frequency.
- Local Sequence Features are Powerful: Short amino acid motifs (p-tuples) within the CDR3 region, when analyzed using their physicochemical properties, are surprisingly effective at distinguishing between different immune states. This suggests that these local features carry significant information about TCR specificity and function.
- Time-Dependent Repertoire Shift: The TCR repertoire shows a clear temporal evolution following immunisation. While early responses (days 5-14) are distinct from unimmunised states, the repertoire continues to evolve and becomes even more distinct by day 60.
- High Dimensionality and Efficiency: The "bag-of-words" approach, combined with SVMs, can achieve very high classification accuracy (100% for immunised vs. unimmunised) even with a large number of features (codewords). This highlights the power of machine learning in dissecting complex biological data.
- Private Specificities Dominate: The study reinforces the idea that a large proportion of TCRs are "private" (unique to an individual), even within genetically identical mice. This underlying diversity is a key characteristic of the adaptive immune system.
Key Results
- 100% Classification Accuracy: The SVM classifier, using the bag-of-words approach with p=3 (triplets) and k=100 codewords, achieved 100% accuracy in distinguishing between immunised and unimmunised mice. This was robust across different sampling sizes (q).
- Time-Course Discrimination: The classifier could distinguish between unimmunised mice and those at days 5, 14, and 60 post-immunisation. While day 5 and day 14 repertoires were often indistinguishable from each other, the day 60 repertoire was consistently distinct from earlier time points.
- Low vs. High Frequency Clones: Classification accuracy remained high even when analyzing only the lowest 1% of clones (those appearing once per sample), suggesting that the changes are not solely due to a few highly expanded clones.
- Jaccard Index: The Jaccard index analysis showed that repertoires from pairs of immunised mice were more similar to each other than to unimmunised mice, and vice-versa. However, the index was significantly lower when comparing an immunised mouse to an unimmunised mouse, indicating a shift in the repertoire state.
Limitations and Future Work
- Antigen Specificity Inference: While the method can distinguish between immune states, it doesn't directly identify the specific antigen recognized by individual TCRs. This is due to the complexity of the antigen, the unknown alpha chain pairing, and the difficulty in inferring 3D structure from primary sequence.
- Computational Challenges: The "distributed" nature of the immune response, involving many low-frequency clones, poses significant computational challenges for future analysis, especially when scaling up to clinical samples.
- Future Directions: The authors suggest extending the feature space to include V and J gene information, positional information within CDR3, and exploring non-continuous string kernels. They also highlight the potential for applying this approach to clinical samples for prognosis, diagnosis, and stratification of patients in various diseases. Further studies are planned to investigate responses to more defined model antigen systems.
Summary updated