Skip to main content
. 2021 Apr 1;118(14):e2023141118. doi: 10.1073/pnas.2023141118

Fig. 4.

Fig. 4.

Cell type- and tissue-specific selection on TCRs. (A) Jensen–Shannon divergences (DJS) (Eq. 8) computed from models trained on different subrepertoires are shown. (B) Difference in the marginal probability for amino acid composition along the CDR3, PpostCD8(a)PpostCD4(a), between CD8+ and CD4+ Tconv (Left) and the mean difference in the corresponding log-selection factors for amino acid usage ΔlogQ=logQCD8logQCD4 (Right) are shown (the mean is taken over the distribution (PpostCD8+PpostCD4)/2). The negatively charged amino acids (Aspartate, D, and Glutamate, E) and the positively charged amino acids (Lysine, K, and Arginine, R) are indicated in red and blue, respectively. Other amino acids are shown in gray. (C) Maximum likelihood inference of the fraction of CD8+ TCRs in mixed repertoires of conventional CD4+ T cells (Tconvs) and CD8+ cells from spleen (Eq. 4) is shown. Each repertoire comprises 5×103 unique TCRs. (D) Same as C but for a mixture of Tconv and Treg TCRs. (E) Mean squared error of the inferred sample fraction from C as a function of sample size N, averaged over all fractions, using models of increasing complexity: “QVJL” is a linear model with only features for CDR3 length and VJ usage, “linear” is linear SONIA model, and “deep” is the full soNNia model (Fig. 1C). (F) ROC for classifying individual sequences coming from CD8+ cells or from CD4+ Tconvs from spleen, using the log-likelihood ratios. Curves are generated by varying the threshold in Eq. 5. The accuracy of the classifier is compared with a traditional logistic classifier inferred on the same set of features as our selection models. The training set for the logistic classifier has N=3×105 Tconv CD4+ and N=8.7×104 CD8+ TCRs, and the test set has N=2×104 CD4+ and N=2×104 CD8+ TCR sequences.