Skip to main content
Advertisement
  • Loading metrics

Energy landscapes of peptide-MHC binding

  • Laura Collesano,

    Roles Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Validation, Visualization, Writing – original draft, Writing – review & editing

    Affiliation Institute for Biological Physics, University of Cologne, Cologne, Germany

  • Marta Łuksza,

    Roles Conceptualization, Supervision, Writing – review & editing

    Affiliation Tisch Cancer Institute, Departments of Oncological Sciences and Genetics and Genomic Sciences, Icahn School of Medicine at Mount Sinai, New York, New York, United States of America

  • Michael Lässig

    Roles Conceptualization, Funding acquisition, Methodology, Project administration, Resources, Supervision, Validation, Writing – original draft, Writing – review & editing

    mlaessig@uni-koeln.de

    Affiliation Institute for Biological Physics, University of Cologne, Cologne, Germany

?

This is an uncorrected proof.

Abstract

Molecules of the Major Histocompatibility Complex (MHC) present short protein fragments on the cell surface, an important step in T cell immune recognition. MHC-I molecules process peptides from intracellular proteins; MHC-II molecules act in antigen-presenting cells and present peptides derived from extracellular proteins. Here we show that the sequence-dependent energy landscapes of MHC-peptide binding encode class-specific nonlinearities (epistasis). MHC-I has a smooth landscape with global epistasis; the binding energy is a simple deformation of an underlying linear trait. This form of epistasis enhances the discrimination between strong-binding peptides. In contrast, MHC-II has a rugged landscape with idiosyncratic epistasis: binding depends on detailed amino acid combinations at multiple positions of the peptide sequence. The form of epistasis affects the learning of energy landscapes from training data. For MHC-I, a low-complexity problem, we derive a simple matrix model of binding energies that outperforms current models trained by machine learning. For MHC-II, higher complexity prevents learning by simple regression methods. Epistasis also affects the energy and fitness effects of mutations in antigen-derived peptides (epitopes). In MHC-I, large-effect mutations occur predominantly in anchor positions of strong-binding epitopes. In MHC-II, large effects depend on the background epitope sequence but are broadly distributed over the epitope, generating a bigger target for escape mutations due to loss of presentation. Together, our analysis shows how an energy landscape of protein-protein binding constrains the target of escape mutations from T cell immunity, linking the complexity of the molecular interactions to the dynamics of adaptive immune response.

Author summary

T cell immunity involves the binding of short peptides to the intracellular MHC recognition machinery. Understanding how the peptide-MHC binding energy depends on the peptide sequence is key to computationally predict immune recognition and immune escape evolution, for example, of pathogens and cancer cells. By analyzing experimental binding affinity data, we find that peptide-MHC interactions are described by nonlinear energy landscapes that depend on the recognition pathway: smooth and easy to learn for MHC class I, rugged and difficult to learn for MHC class II. The different forms of nonlinearity—or epistasis—suggest the most suitable strategy to infer these landscapes. In addition, the nonlinearity has direct implications on the energy and fitness of single mutations, generating distinct distributions of possible targets for immune escape. Together, this work establishes links between biophysical origin, nonlinear structure, learnability from data, and biological implications of peptide-MHC interactions, which can be applicable also to other protein interaction landscapes.

Introduction

The antigen presentation pathway is pivotal for immune surveillance [1, 2]. Class I and class II Major Histocompatibility Complex (MHC) enable this process by binding and presenting small peptides to CD8+ and CD4+ T cells, respectively. Although there are several steps between the processing of an antigen and its presentation [3], peptide-MHC complex formation is considered the most discriminating stage [4]. Therefore, a peptide with high binding affinity has also a higher chance of being presented and recognized by the immune system [5]. Quantitatively understanding protein-MHC binding is therefore a critical step for vaccine design and cancer immunology [68].

In the context of cytotoxic T cell recognition, the antigen is presented on the cell surface in a complex with a MHC-I molecule. The peptides able to bind MHC-I are short chains, on average 8 to 11 amino acids long, resulting from the degradation of intracellular proteins carried out by the proteasome [9, 10]. MHC-II acts in specific antigen-presenting cells, presenting peptides transported from the extracellular space for interaction with helper T cells [11]. The amino acid chains that bind to MHC-II are more variable in length, on average 15–20 amino acids, and the relevant binding occurs in a subset of about 9 amino acids [12, 13]. MHC-I and MHC-II have different binding mechanisms. The MHC-I binding pocket is closed at both ends, causing peptides to be anchored at their extremities, usually in positions 2 and 9, while a weaker interaction acts in the center [14, 15]. In contrast, MHC-II has an open binding pocket, allowing the peptide to be anchored at multiple positions [12, 16].

The complexity of interactions between binding positions represents the key challenge for affinity models [17, 18]. Initial studies on MHC-I include pairwise interactions among specific peptide positions in otherwise additive models [17, 19].

In contrast, state-of-the-art computational tools based on neural networks trained on experimental data contain pervasive nonlinearities in the binding energy function, albeit implicit in the model output. These models are highly effective for MHC-I alleles [2027], they are also increasingly successful in addressing the higher complexity of the binding mechanism for MHC-II alleles [13, 18, 2830].

However, given their high number of parameters and their complexity, training becomes difficult for rare alleles insufficiently represented in empirical datasets. Despite their performance in binding affinity prediction, the usage of neural networks can limit the understanding of the relationship between binding energy and peptide sequence, because we lack a mechanistic interpretation of the model output [31].

This paper presents a systematic study of the energy landscapes of protein-MHC binding, which map a given peptide sequence onto the binding affinity to a given MHC allele. These landscapes have nonlinearities, or epistasis [3237], caused by interactions of multiple peptide and MHC amino acids—a common feature of peptide-MHC binding [17]. The form of epistasis, however, depends on the MHC class. For MHC-II, we find rugged landscapes where the binding energy depends on specific amino acid combinations of a peptide in a network of several binding positions. The MHC-I landscapes are much simpler: the binding energy is a nonlinear function of an intermediate trait that is additive in the peptide sequence [34], a less complex alternative to the pairwise interactions approach, already well studied in previous works [19]. In the literature on evolution, these two types of epistasis, characterizing MHC-II and MHC-I energy landscapes, are referred to as idiosyncratic and global, respectively [3841].

In the first part of the paper, we infer global and idiosyncratic epistasis in energy landscapes from empirical data of several MHC-I and MHC-II alleles. We show that data and predictive models for MHC-I and MHC-II have low and high complexity, respectively. In the second part, we discuss two important consequences of the form of epistasis. First, we infer a matrix energy model for MHC-I that outperforms state-of-the-art machine-learning models (NetMHC 4.0), providing predictions of very similar quality with a drastically reduced number of model parameters. This model can be learned by simple regression, demonstrating that the complexity of epistasis sets the optimal learning algorithm. Second, we infer spectra of mutational effects in energy landscapes for MHC-I and MHC-II, and we discuss the differences between these spectra induced by the form of epistasis.

Results

Datasets of peptide-MHC binding affinities

For training and testing, we analyze peptide sequences and MHC binding data from the Immune Epitope Database (IEDB) [42]. The datasets are curated before training (Material and methods). For MHC-I, we include the most frequent alleles of HLA-A and HLA-B: HLA-A*02:01, HLA-A*11:01, and HLA-B*07:02 with 6953, 1981, and 1024 curated peptides of length 9 aa. The resulting dataset is similar but not identical to the data used for benchmarking and retraining of NetMHC 4.0 [21, 43]. For MHC-II, our dataset contains 7434 peptides from allele HLA-DRB1*01:01 of length 15 aa with a binding core of length 9 aa. In these data, binding affinities are reported as half-inhibitory concentration (IC50), other peptides are annotated qualitatively as binding or non-binding. Throughout this paper, we describe binding affinities by the free energy ΔG = log(IC50/ρ0), which is measured in units of kBT and has its zero point at the commonly used binding threshold for strong binders, ρ0 = 500nM (MHC-I) and ρ0 = 1000nM (MHC-II) [44, 45].

Inference of a linear energy model

Fig 1A shows position-weight matrices, or binding motifs, for two representative alleles HLA-A*02:01 for MHC-I and HLA-DRB1*01:01 for MHC-II. These matrices record the frequencies pi(a) of amino acid a at a given position in the binding core (i = 1, …, ), evaluated in the set of binding peptides (ΔG ≤ 0). The resulting position-specific sequence information, ΔSi = ∑a pi(a) log(pi(a)/p0(a)), is defined as the Kullback-Leibler distance between the observed amino acid frequency distribution and a null distribution (here p0(a) = 1/20). For MHC-I, the sequence information is concentrated in positions 2 and 9, the known anchor positions of peptide-MHC binding [46] (Fig 1B). In contrast, MHC-II has a more homogeneously distributed sequence information, i.e., less bias towards the anchor positions 1, 4, 6, and 9. The total additive information, , which measures the power of linear sequence models to discriminate peptides presented on the cell surface. We find ΔS = 4.5 for MHC-I and a substantially lower value, ΔS = 2.4, for MHC-II. This suggests that an additive model is insufficient for MHC-II; that is, the discrimination of presented peptides depends on interactions (epistasis).

thumbnail
Fig 1. Binding motifs, sequence information, and linear model.

A: Position weight matrix for HLA-A*02:01 (left) and HLA-DRB1*01:01 (right) inferred from training data. Letter size indicates the frequency of a given amino acid at a given position, pi(a), in the sample of MHC-binding peptides (ΔG ≤ 0). Yellow bars highlight anchor positions, and the color of letters shows the chemical properties of the amino acids (black: hydrophobic, red: acidic, blue: basic, green: polar, purple: neutral) [51]. B: Position-specific sequence information, ΔSi, defined as the Kullback-Leibler distance of the observed distribution pi(a) from an equidistribution. C: Error plot comparing observed energies, ΔG, and predictions of the linear model, L (contours give densities above 0.01).

https://doi.org/10.1371/journal.pcbi.1012380.g001

As a starting point for the inference of energy models, we construct a linear energy matrix, (1) where a = (a1, …, a) denotes the peptide sequence and ϵi(a) is the energy contribution of amino acid a at position i. Energy models of this kind are widely used for transcription factor binding and for protein-protein binding, including early-stage predictions of peptide-MHC-I interactions [19, 47]. Here we obtain an optimized 20 × 9 energy matrix, which minimizes the mean squared error (MSE), via 10-fold cross-validation for each of the selected alleles (Material and methods). At each position, the energy ranking of amino acids reproduces the frequency ranking in the position weight matrix (S2 and S8 Tables).

The heat maps of Fig 1C show the optimized linear energy L plotted against the validation data for the two representative alleles. For MHC-I, the linear model systematically underestimates the affinity of strong binders (L > ΔG). A similar effect is observed for the weakest binders, albeit supported by fewer data points. For MHC-II, the linear model has a more drastic mismatch with the data and only explains about half of the variation in ΔG. Likely factors contributing to this mismatch include the variation of binding cores and additional energy contributions of peptide flanking regions not included in the model [4850]. In what follows, we will complement the linear model by epistasis, the form of which depends on the MHC class.

Energy landscapes with global and idiosyncratic epistasis

Nonlinear energy landscapes provide a better representation of peptide-MHC binding. Here we refer to such nonlinearities as energy epistasis and parametrize them by interaction terms involving pairs of amino acids in the peptide binding core. For MHC-II, we use a generic landscape of the form (2) for each pair of positions, the 20 × 20 matrix βij(a, b) characterizes the interaction energy between amino acid a at position i and b at position j. For MHC-I, we use a simpler landscape, (3) where the interactions are given by the linear energy terms, βij = λϵi(ai)ϵj(aj). Following the literature on fitness landscapes, we refer to these two types of nonlinearities as idiosyncratic and global epistasis, respectively [38, 41]. Under idiosyncratic epistasis, the energy effect of a mutation at a given position, ΔΔG, depends on the detailed sequence content at other positions. Under global epistasis, it depends only on the energy of the wildtype sequence. In other words, the full energy can be written as a nonlinear function of an intermediate linear trait, here ΔG = L + λL2 [34, 52].

These two types of energy landscapes are strongly different in model complexity. The idiosyncratic interaction term in Eq (2) has 20 × 20 energy parameters for the amino acid combinations at each pair of interacting peptide positions. The global epistasis model of Eq (3) requires only 20 × parameters for the linear term and a single additional parameter λ measuring the strength of epistasis.

A common approach to infer epistasis from data is to compare the effect of a mutation on different sequence backgrounds, for example, by analyzing pairs of mutations at two positions in two different orders (ababab′ and abab′ → ab′). Here, given the limited availability of such pairs in our datasets, we map instead the deviations of partial data from the previously inferred linear model [53].

For MHC-I, we form data subsamples containing sequences with particular amino acid pairings in positions 2 and 9. For each subsample, we perform a linear regression, the slope and offset of which compare validation data with the linear model L (dashed line). Fig 2A shows these regressions for a few subsamples of peptides binding HLA-A*02:01; all subsamples are shown in S2 Fig. We observe a systematic modulation of subsample slopes with linear energy L: deviations from the linear model increase from weak to strong binders (from left to right panel), but are similar for different subsamples in the same range of L. This pattern is consistent with global epistasis of the form ΔG(L) = L + λL2, as described by Eq (3).

thumbnail
Fig 2. Inference of epistasis.

Scatter plots of experimental ΔG values and the linear energy model L for subsamples with given amino acid pairs in selected positions (max 50 random points are displayed). Top: HLA-A*02:01, selected positions 2 and 9; bottom: HLA-DRB1*01:01, selected positions 4 and 6. From left to right: subsamples containing stronger binders, marginal binders, and non-binders, respectively. Lines give linear regressions for each subsample. See S2 Fig for regression lines of all subsamples.

https://doi.org/10.1371/journal.pcbi.1012380.g002

For MHC-II, here allele HLA-DRB1*01:01, we select subsamples with specific amino acid pairings in positions 4 and 6. In this case, the subsample slopes scatter strongly in the same range of L and there is no global trend from weak to strong binders (Fig 2B and S2 Fig). For example, the pairing Hystidine-Serine (H-S) shows a positive correlation between observed ΔG and L in peptides with marginal binding, the pairing Leucine-Methionine (L-M) shows a negative correlation in the same range of L. Such disorder is seen ubiquitously, pointing to idiosyncratic epistasis depending on individual amino acid pairings, as described by Eq (2).

Complexity of epistatic landscapes

The above analysis can be summarised using the difference between two errors: the MSE produced by a global function ΔG(L), fitted in the same L region, compared to the MSE produced by a family of functions ΔG(L) fitted on subsamples of L characterized by different amino-acid pairing in anchor positions (Fig 2 and S2 Fig, Materials and Methods). For the MHC-I allele HLA-A*02:01, we find an error difference ΔMSE = 0.6 ± 0.4, indicating that a global model is sufficient to describe the data and the marginal decrease in MSE of the subsample regressions does not justify the increase in model complexity. For the MHC-II allele HLA-DRB1*01:01, we obtain ΔMSE = 2.0 ± 0.9, suggesting that a more complex epistatic model is appropriate.

For comparison, we also analyze epistatic landscapes with random parameters. For idiosyncratic epistasis, we use energy landscapes of the form (2), where the parameters ϵi(a) and βij(a, b) are Gaussian random variables with mean 0 and variance and , respectively. For a given landscape, we evaluate the energy for a sample of random peptides, subject to an additional measurement error of variance . The strength of epistasis is given by (details of the simulations are given in Materials and Methods). With an appropriate strength (), the simulated data generate a regression pattern strikingly similar to the empirical data of MHC-II (Fig 3B and S2 Fig), a similar error of the linear model (MSE = 6.2±0.2), and a similar error difference between ΔMSE = 2.3 ± 1.0, computed over 10 realizations. For global-epistasis landscapes of the form (3), the energy parameters ϵi(a) are again Gaussian random variables with variance , which is chosen according to the empirical values inferred for MHC-I alleles (S2 Table). The simulated data are drawn with a measurement error of variance . For intermediate strength of epistasis (λ = −0.04), the regression pattern is again similar to the empirical data (Fig 3A) and produces a similar error difference (ΔMSE = 0.20 ± 0.1).

thumbnail
Fig 3. Global and idiosyncratic epistasis in simulations.

Linear regression for subsamples of simulated data (one realization) according to the global epistasis model and the idiosyncratic epistasis model. A: From left to right, weak global epistasis with λ = −0.01, moderate with λ = −0.04 and strong λ = −0.1. The lines are color-coded based on the minimum L value spanned by the given subsample. B: From left to right, weak idiosyncratic epistasis with , moderate with and strong . The transparency of each regression line is proportional to the number of data points in the given subsample.

https://doi.org/10.1371/journal.pcbi.1012380.g003

Energy landscapes with global epistasis for MHC-I

The type of epistasis has immediate consequences for the learnability of landscape models from training data. For MHC-I, we can infer a global-epistasis model by regression: we learn the linear model L(a) together with the parameter λ of the nonlinear function ΔG(L). For the allele HLA-A*02:01, we infer an optimal quadratic model of the form (3) with λ = −0.04. This curvature is associated with moderate increasing-return epistasis: the global nonlinearity reduces the systematic error of the linear model in the strong-binding regime (Figs 1C and 4A), leading to a reduced mean square error (MSE = 4.3) compared to the linear model (MSE = 4.6) in the 10 fold cross-validation procedure. Adding a cubic nonlinearity to the function does not further reduce the MSE in a significant way. As shown below, the nonlinearity substantially increases the effects of mutations in strong binders. Very similar global energy landscapes are inferred for the other MHC-I alleles included in our analysis (S1 Fig).

thumbnail
Fig 4. Global-epistasis model for MHC-I.

A: Error plot comparing observed energies, ΔG, and predictions of the optimal global-epistasis model (λ = −0.04) for HLA-A*02:01. To be compared with the linear model of Fig 1; see S1 Fig for other alleles. B: Model comparison of the global-epistasis model and NetMHC-4.0: error function (dark shading) and total Bayesian Information Criterion (BIC) score accounting for model complexity (full bars) for allele HLA-A*02*01 (orange) and aggregated over all 3 MHC-I alleles (blue), evaluated by blind testing (see text for details).

https://doi.org/10.1371/journal.pcbi.1012380.g004

Next, we compare the performance of the global epistasis model with the most widely used neural network model, NetMHC 4.0 [21], in both binding energy predictions and classification. As validation data for binding energy predictions, we use the set of all IEDB peptides that are not contained in the training data for NetMHC 4.0 (obtained from IEDB Analysis Resources [42, 43]). The set contains 465, 69 and 183 sequences for HLA*A-02:01, HLA*A-11:01 and HLA*B-07:02, respectively. These peptides are also excluded from the training of our model. The global-epistasis model for HLA*A-02:01 reaches a smaller error than NetMHC 4.0 (MSE = 6.8 compared to MSE = 7.2). The aggregated error computed on all MHC-I alleles included in the analysis reaches a slightly larger value (MSE = 6.9 compared to MSE = 6.8 for NetMHC 4.0), reflecting the reduced availability of training sequences (S3 Fig). To assess the classification performance, we collect sets of positive and negative binders from IEDB. We exclude sequences used for training and present in the referenced dataset [42, 43]. The performance metric is reported as the Area Under the Curve (AUC, see Material and methods). For HLA*A-02:01, we obtain a score of 0.837 for the global epistasis model and 0.843 using NetMHC 4.0. Scores for other alleles are detailed in S1 Table.

This level of performance is achieved with drastically lower model complexity: the global-epistasis model has 20 × 9 + 1 parameters per allele, significantly less than the number of parameters required to account for all the pairwise interaction terms between each positions [17, 19]. In comparison, the network model employs > 900 parameters [21].

Factoring in the difference in model complexity by a Bayesian Information Criterion (Materials and Methods), the global-epistasis model strongly outperforms NetMHC 4.0 (Fig 4B). Hence, for the smooth energy landscapes of MHC-I alleles, neural network models are an overkill: they apply a complex multi-level learning procedure to an inference problem that can be solved by simple regression. In contrast, neural network models are an appropriate tool for the intrinsically more complex idiosyncratic energy landscapes of MHC-II. For HLA-DRB1*01:01, low-complexity models of the form (3) fail to map the energy variation (within-dataset MSE = 5.7), similar to the linear model shown in Fig 1C (cross-validated MSE = 5.9), while NetMHCII-2.3 still provides a faithful representation of the data (within-dataset MSE = 1.6).

Mutational effect spectra in epistatic landscapes

We can use the energy data of MHC-I and MHC-II for a comparative analysis of mutational effects. In Fig 5A and 5B, we show the distribution of energy changes, ΔΔG, plotted separately for mutations at anchor and non-anchor positions and for ancestral sequences in two affinity windows: typical binders (ΔGanc ≈ −1) and strong binders (ΔGanc ≈ −5). For MHC-I, we observe homogeneously upscaled effects for mutations of strong binders, reflecting the larger slope of the global epistasis function ΔG(L) (Fig 5A). This upscaling increases mean and variance of magnitude effects, E(|ΔΔG|) and Var(|ΔΔG|), in non-anchor and, at larger amplitudes, in anchor positions (inserts in Fig 5). For MHC-II, the mean effect E(|ΔΔG|) is also enhanced in strong binders (Fig 5B). This is the known global pattern of idiosyncratic epistasis [41]: strong binders have a higher fraction of affinity-increasing bonds (i.e., amino acid pairings for which βij(ai, aj) < 0), generating an additional energy increase for mutations breaking these bonds. However, the variance of magnitude effects is largely independent of ΔGanc, and the effect distributions are similar in anchor and non-anchor positions. This is again consistent with strong idiosyncratic epistasis: large mutational effects at non-anchor positions can be generated by energy bonds to anchor positions.

thumbnail
Fig 5. Mutational effect distributions.

A-B: Distribution of energy changes, ΔΔG, for mutations from ancestral peptides in different energy windows: strong binders (ΔG ≈ −5, top) and typical binders (ΔG ≈ −1). The total distribution (black) is shown together with the components from anchor positions (blue) and non-anchor positions (orange). For strong binders, red shading marks escape mutations leading to loss of presentation (ΔΔG ≳ 5). Inserts give mean and variance of magnitude effects |ΔΔG|. A: MHC-I, allele HLA-A*02:01 (anchor positions 2 and 9). B: MHC-II, allele HLA-DRB1*01:01 (anchor positions 1, 4, 6 and 9). C: Distribution of escape from MHC binding in HIV. Position-dependent fraction of loss-of-binding mutations inferred from a set of HIV epitopes presented by MHC-I or MHC-II; see text and S9 Table.

https://doi.org/10.1371/journal.pcbi.1012380.g005

To quantify idiosyncratic epistasis directly, we record mutational effect spectra generated by background sequence variation from calibrated and random energy models for MHC-II (these spectra are undersampled in the data). For a given mutation aa′ of a peptide with given energy ΔGanc, we resample the ancestral background sequence at the other positions subject to the constraint of maintaining ΔGanc; the resulting effect spectrum is then shifted to mean 0. In S4 Fig, we plot these spectra for a sample of mutations in typical binders (ΔGanc ≈ −1) and strong binders (ΔGanc ≈ −5), together with the corresponding sample-averaged distributions. The rms effect given by these distributions measures idiosyncratic deviations from global epistasis. This effect is sizeable for typical and strong binders and similar to the global shift in E(|ΔΔG|) between the two binding regimes (Fig 5B and S4 Fig). Hence, in MHC-II, the energy effect of a given mutation depends strongly on the specific amino acid pairings of the ancestral peptide.

Immune escape evolution

The energy statistics of peptide-MHC binding affect the escape evolution of antigens from T cell immune recognition. In both MHC classes, even strong-binding antigenic epitopes can effectively suppress presentation by large-effect mutations (ΔΔG ≳ 5, shaded areas in Fig 5A and 5B). For MHC-I, large-effect mutations occur in anchor positions, while most mutations in non-anchor positions maintain presentation. This reflects the modularity of presentation and T cell recognition encoded in peptide sequences. For MHC-II, escape mutations acting on presentation are broadly distributed across anchor and non-anchor positions. The overall target for this type of escape evolution is larger for MHC-II: 21% of all mutated strong binders have ΔΔG ≥ 5, compared to 12% for MHC-I. This suggests that the idiosyncrasy of peptide-MHC-II binding facilitates the escape evolution of antigens by generating large epistatic mutation steps.

To test our analysis, we compare mutations of MHC ligands in HIV-derived epitopes for multiple alleles of MHC-I and MHC-II. From IEDB, we collect 1299 pairs of HIV epitopes that differ in a single amino acid affecting MHC binding (Materials and Methods). In a subset of these pairs, the epitopes have different binding annotations (positive, negative), indicating a likely escape mutation from MHC binding. A limitation of this inference is that the two epitopes are, in general, from viral probes of different individuals. In Fig 5C, we plot the position-specific fraction of inferred escape mutations. For MHC-I, the majority of escape mutations are at positions 2 and 9. MHC-II shows a higher overall fraction of escape mutations and a broader distribution of positions. This is consistent with our inference of mutational targets and suggests that HIV can escape T cell immune response by suppressing presentation.

Discussion

Peptide-MHC binding interactions have strong, class-specific nonlinearities. For MHC-I, these interactions can be described by an energy landscape with global epistasis, ΔG(L), where the intermediate trait L is additive in the peptide sequence. The curvature of the landscape increases in slope at strong binding. This enhances the energy discrimination of presented peptides and increases selection on affinity-decreasing escape mutations in pathogen evolution. Moreover, the recognition chain of class I is modular: strong MHC binding energy effects governing peptide presentation are predominantly determined by the anchor positions 2 and 9, while non-anchor positions encode the extracellular interactions of presented peptides with T cell receptors. For MHC-II, we find rugged energy landscapes with idiosyncratic epistasis, describing cooperative binding that depends on the amino acid content at multiple peptide binding positions. Mutational effects at a given binding position depend strongly on the peptide sequence background, and there is no modularity: weak and strong effects are found at anchor and non-anchor positions.

These differences in epistasis between energy landscapes are in tune with distinct biophysical binding mechanisms. MHC-I molecules bind short peptides in a fixed contact map; global epistasis of the binding energy is consistent with mutual reinforcement of binding between the anchor positions that is mediated by the intermediate chain. In contrast, MHC-II binds longer peptides with variable contact maps [16], suggesting that idiosyncratic epistasis can partly be attributed to changes in the core contact points and in the peptide configuration in between these points.

The type of epistasis also governs the efficient learning of energy landscapes from data. For MHC-I, we derive a simple energy matrix model that outperforms state-of-the-art machine-learning models [21] in BIC score. This model can be inferred by a joint regression procedure for the linear trait L(a) and for the nonlinear function ΔG(L). Such regression methods fail for MHC-II, while neural networks still produce a faithful energy landscape [13, 28]. The difference in learnabilty is not surprising, given the strongly different complexity of global and idiosyncratic energy models. This compression can be understood as a dimensionality reduction in phenotype space. In the idiosyncratic case, sequence variation affects not only the focal trait, here the binding energy ΔG, but also a number of co-varying traits A, B, …, including the spatial configuration of the interaction surface and allosteric interactions. A given mutation aa′ on two different backgrounds b, b′ has effects ΔΔGb = ΔΔGGab, Aab, Bab, …) and ΔΔGb = ΔΔGGab, Aab, Bab, …). These effects differ because they probe the slope of the energy landscape at different values of the co-varying traits, even if they start from similar energies, ΔGab ≈ ΔGab. Under global epistasis, the ensemble of traits collapses to a single relevant trait ΔG. This implies ΔΔGb = ΔΔGGab) and ΔΔGb = ΔΔGGab); the only remaining source of epistasis for the mutation aa′ is the energy effect of the background mutation bb′. The (lack of) collapse from idiosyncratic to global epistasis can be evaluated in a given training dataset and serve as a diagnostic for the appropriate learning procedure. The main limitation of energy model inference remains the availability of binding data for less common MHC alleles.

In summary, we have highlighted the roles of epistasis in the peptide-MHC energy landscapes for T cell immunity. The type of epistasis is linked to the underlying biophysical mechanism, governs the learnabilty of landscape models from data, and shapes the evolution of binding agents (here, antigenic peptides). Accounting explictly for global and position-specific epistasis may provide an avenue towards better MHC-binding models, which is critical to efficiently scan pathogen and cancer genomes for likely T cell antigens. The broad picture of trait-based epistasis is expected to be applicable to other protein-protein interaction landscapes.

Material and Methods

Dataset curation

The datasets for both MHC-I and MHC-II are sourced from the IEDB database [42] (version April 2023 for HLA-A*02:01, May 2023 for all other alleles), reporting measured IC50 values in nM. The experimental methods involve only in vitro binding assays, no mass spectrometry measurements are selected. This dataset contains quantitative and qualitative measurements. We first discard peptides containing non-canonical amino acids. Several sequences contain multiple measurements, which are curated in the following way. For a set of quantitative ΔG, we average ΔG values over multiple measurements relative to the same sequence from training and test data. We accept values within one standard deviation from the mean and discard others. For sets of qualitative measurements (ΔG > ΔGthr), we select the minimum ΔGthr. We generate cross-validation training and test sets, taking care not to include the same sequence in both sets at the same time.

Extraction of MHC-II cores

From IEDB, we collect sequences of 15-mers along with their binding affinities. However, our binding model assumes that, in good approximation, the binding involves mainly their core of 9 aa that directly binds to the complex. This assumption allows us to extract the binding core and infer a 20 × 9 energy matrix, in the same fashion as MHC-I. An estimation of the core for longer sequences in input is provided by NetMHCII-2.3 [28]. The extracted 9-mers are paired with the experimental measures provided by IEDB and used for the inference of the linear model.

Model optimisation

The energy matrix and coefficients are trained and tested using a 10-fold cross-validation approach: we randomly divide the data in 10 subsets, 9 of which are used for training and one for testing. We optimize the error function (4) where n is the number of sequences within the test set.

The function in Eq (4) is adapted for inequalities present in the datasets. For qualitative data with ΔG > ΔGthr, we use the error 0 if ΔGmodel > ΔGthr and (ΔGmodel − ΔGthr)2 otherwise. For the linear model, we start from a matrix of randomly generated ϵ, each drawn by a Gaussian distribution with σ2 = 1/180. In order to speed up the minimization, we add another degree of freedom, ϵ0, which can be inserted back into a 20 × 9 energy matrix without changes in the outcome of the minimization. The results of the linear optimization are used as a starting point to optimize the global epistasis model. For this reason, we use the same training partitions to avoid biased results. The minimized global model is of the form ΔG = k + aL′ + bL2, where 2 degrees of freedom are added in order to speed up the computation. Via the transformation for L = k + aL′, we can express ΔG as L + λL2, where λ has units of 1/kbT. With this transformation, we bring the essential parameters to 181. The linear and epistatic energy matrices trained on the full datasets of all alleles studied are given in S2S8 Tables.

Complexity estimates

For the analysis of Fig 2, we divide linear predictions into bins of the linear trait L. For each bin, we fit the data ΔG to an average trait and to subset-specific forms for specific combinations of alleles at anchor positions. The difference between the corresponding errors, , serves as an estimate for the added value of models with idiosyncratic epistasis, as given by Eq (2).

For estimating the complexity of the given MHC class, we compute ΔMSE in bins of L with size 2, spanning L values from -11 to 15 for both MHC classes (other bin sizes give broadly consistent results). In each bin, we evaluate ΔMSE = MSEave − MSEp over a set of p subsamples with specific allele combinations, including only subsamples with more than 2 data points.

The ΔMSE values from simulations are derived from randomly generated sets of 20,000 peptides. The values reported in the main text are obtained by averaging over 10 realizations, and the standard deviation is computed across bins over these realizations. The range of L spanned in the simulated data is determined based on the minimum and maximum values observed in the specific realization under consideration.

Simulations of random energy models

The idiosyncratic model used for simulations incorporates 4 pairwise interactions among positions 2 and 6, 2 and 9, 4 and 6, 4 and 9. We draw randomly the energy and interaction matrices from a Gaussian distribution centered at 0. The distribution of experimental data exhibits a total variance . From data relative to HLA-DRB1*01:01, we estimate as a measure of the experimental noise. We can then choose and by fixing their ratio, defined as . We simulate 3 different regimes of epistatic strength: strong (), moderate () and weak ().

In the simulations of the global epistasis model, each column of the energy matrix is inferred from a Gaussian distribution with a zero mean and a standard deviation corresponding to the respective column of the linear energy matrix (S2 Table). We consider 3 different regimes of epistatic strength: weak (λ = −0.01), moderate (λ = −0.04) and strong (λ = −0.1). The systematic noise, denoted as σm, is introduced from a Gaussian distribution with a variance of 1, computed from data for HLA-A*02:01.

For both classes, we perform 10 separate realizations for each and λ, characterized by different random sets of training sequences and initial conditions for ϵ. A linear model is optimized and tested on random test sets. The partial regressions, performed on similar L ranges, are used to estimate the complexity of each landscape.

Classification score

The classification score is computed on a set of positive and negative binders, sourced from IEDB on March, 4th 2024 for all the considered alleles. After curations, the validation sets consist of 2488 positive and 1497 negative binders for HLA*A-02:01, 391 positive and 184 negative binders for HLA*A-11:01 and 382 positive and 505 negative binders for HLA*B-07:02.

We use the curated sets to construct the Receiver Operating Characteristic (ROC) curves, illustrating the relationship between sensitivity, representing the ratio of true positives to the total number of positives, and 1−specificity, which denotes the ratio of false positives to the total negatives [17, 54]. We define positives and negatives based on the binding probability defined below: (5)

We calculate these metrics by varying the thresholds that distinguish positives from negatives and computing the corresponding variables. The area under this curve provides the AUC score, which is presented for the relevant alleles in S1 Table.

Model comparison

We use the BIC score [55], (6) where n is the number of sequences in the test set and k the number of parameters, respectively. For NetMHC 4.0, we compute k = kh + kout, in which kh = (nin + 1) × nh, where nin and nh are the number of inputs and hidden neurons. Similarly, kout = (nh + 1) × nout, where nout is the number of output neurons [56]. With the architecture information provided in reference [21], nin = 180, nh = 5 and nout = 1, we obtain k is 911. The total BIC is reported in Fig 4B.

Mutational effect spectra

The mutational effect in Fig 5 is computed by collecting all pairs of single mutants available in the data. Specifically, we collect 156 pairs in the strong binders regime and 119 for typical binders regime for HLA-A*02:01. For HLA-DRB1*01:01, we collect 214 and 230 sequence pairs for strong and typical binders regimes, respectively. For each energy window, both quantitative and qualitative measurements are collected. For mutations with qualitative data, ΔGwt > ΔGthr, we define ΔΔG = 0 if ΔGmut > ΔGthr and ΔΔG = ΔGmut − ΔGthr otherwise; mutations with a qualitative ΔGmut are treated in an analogous way. The spectra of background mutations in S4 Fig are computed based on 50 single mutants presenting the same mutation at the chosen position. The ancestral peptides are selected in the same energy window for strong and typical binders, as above. For both the idiosyncratic model and NetMHCII 2.3, positions 4 and 6 are chosen as main anchors.

HIV mutations

HIV-derived sequences have been downloaded from IEDB [42] on May 29, 2024. We collect 9-mers for MHC-I and sequences of length ≤ 20 aa for MHC-II. We restrict the analysis to alleles with >10 available sequences and compute the binding core of MHC-II sequences with NetMHCII-2.3. We extract pairs of peptides that differ by one amino acid and infer escape mutations from a change in binding annotation between the two peptides (Positive vs. Negative). We record the fraction of inferred escape mutations for each position of the binding core (Fig 5C).

Supporting information

S1 Fig. Error plots for HLA-A*11:01 and HLA-B*07:02.

Error plot compares ΔG from validation data and predictions of the linear model (in red), L (dashed line, left). On the right (in green), validation data for ΔG are compared to the global epistasis model (for both alleles, λ = −0.04). The error is computed across 10 cross-validation test sets (contours give densities above 0.01). A: HLA-A*11:01 (Linear model MSE = 5.0, Global model MSE = 4.4) B: HLA-B*07:02 (Linear model MSE = 6.3, Global model MSE = 5.6).

https://doi.org/10.1371/journal.pcbi.1012380.s001

(PDF)

S2 Fig. Inference of epistasis on full datasets.

Linear regressions summarising errors of L with respect to ΔG, for each subsample available for HLA-A*02:01 (194 linear fits, on the left) and HLA-DRB1*01:01 (351 linear fits, on the right). Each line is color-coded depending on the start of the L region spanned by the given subsample. The transparency of each regression line is proportional to the number of data points in the given subsample.

https://doi.org/10.1371/journal.pcbi.1012380.s002

(PDF)

S3 Fig. Blind set validation for MHC-I alleles.

Error plot compares observed energies contained in the blind set, ΔG, and predictions of the global epistasis model with λ = −0.04 for all the tested alleles (A, on top) and NetMHC 4.0 (B, bottom). Contours give densities above 0.01. The blind set contains 465 sequences for HLA-A*02:01, 69 for HLA-A*11:01 and 183 for HLA-B*07:02.

https://doi.org/10.1371/journal.pcbi.1012380.s003

(PDF)

S4 Fig. Idiosyncratic deviations from global epistasis.

Background mutation spectra, shifted to mean 0, for samples of mutations in allele HLA-DRB1*01:01 for strong binders (ΔG ≈ −5, top) and typical binders (ΔG ≈ −1, bottom). A: Spectra computed from the random idiosyncratic model with ; B: spectra computed with NetMHCII-2.3.

https://doi.org/10.1371/journal.pcbi.1012380.s004

(PDF)

S1 Table. Classification comparison.

AUC score computed between the global epistasis model and NetMHC 4.0 for all alleles included in this work. The allele name is reported in the first column, the second column contains the score obtained for the Global epistasis model in Eq 3, and the third column the score obtained using NetMHC 4.0.

https://doi.org/10.1371/journal.pcbi.1012380.s005

(CSV)

S2 Table. Position weight matrix for the linear model, L(a), in HLA-A*02:01.

Linear energy matrix inferred from experimental data for HLA-A*02:01. The first column reports the amino acid name. The following columns report the amino acid-dependent contribution to the total energy for each peptide position.

https://doi.org/10.1371/journal.pcbi.1012380.s006

(CSV)

S3 Table. Position weight matrix for the global epistasis model, with λ = − 0.04 in HLA-A*02:01.

Energy matrix inferred according to the global epistasis model. The first column reports the amino acid name. The following columns report the amino acid-dependent contribution to the linear energy term for each peptide position.

https://doi.org/10.1371/journal.pcbi.1012380.s007

(CSV)

S4 Table. Position weight matrix for the linear model, L(a), in HLA-A*11:01.

Linear energy matrix inferred from experimental data for HLA-A*11:01. The first column reports the amino acid name. The following columns report the amino acid-dependent contribution to the total energy for each peptide position.

https://doi.org/10.1371/journal.pcbi.1012380.s008

(CSV)

S5 Table. Position weight matrix for the global epistasis model, with λ = − 0.04 in HLA-A*11:01.

Energy matrix inferred according to the global epistasis model. The first column reports the amino acid name. The following columns report the amino acid-dependent contribution to the linear energy term for each peptide position.

https://doi.org/10.1371/journal.pcbi.1012380.s009

(CSV)

S6 Table. Position weight matrix for the linear model, L(a), in HLA-B*07:02.

Linear energy matrix inferred from experimental data for HLA-B*07:02. The first column reports the amino acid name. The following columns report the amino acid-dependent contribution to the total energy for each peptide position.

https://doi.org/10.1371/journal.pcbi.1012380.s010

(CSV)

S7 Table. Position weight matrix for the global epistasis model, with λ = − 0.04 in HLA-B*07:02.

Energy matrix inferred according to the global epistasis model. The first column reports the amino acid name. The following columns report the amino acid-dependent contribution to the linear energy term for each peptide position.

https://doi.org/10.1371/journal.pcbi.1012380.s011

(CSV)

S8 Table. Position weight matrix for the linear model, L(a), in HLA-DRB1*01:01.

Linear energy matrix inferred from experimental data for HLA-DRB1*01:01. The first column reports the amino acid name. The following columns report the amino acid-dependent contribution to the total energy for each peptide core position.

https://doi.org/10.1371/journal.pcbi.1012380.s012

(CSV)

S9 Table. MHC-I and MHC-II alleles and number of HIV-derived sequence pairs.

Total single mutations for the MHC-I and MHC-II alleles. The allele names are listed in the first column: MHC-I alleles are collected from HLA-A*02:01 to HLA-B*54:01, and the remaining rows contain all MHC-II alleles. The total number of single mutations is given in the second column.

https://doi.org/10.1371/journal.pcbi.1012380.s013

(CSV)

Acknowledgments

We thank Leon Seeger and Denny Trimcev for discussions and comments on the manuscript.

References

  1. 1. Bosselut R. T cell antigen recognition: Evolution-driven affinities. Proceedings of the National Academy of Sciences. 2019;116(44):21969–21971. pmid:31611377
  2. 2. Batalia MA, Collins EJ. Peptide binding by class I and class II MHC molecules. Peptide Science. 1997;43(4):281–302. pmid:9316393
  3. 3. Yewdell JW, Reits E, Neefjes J. Making sense of mass destruction: quantitating MHC class I antigen presentation. Nature Reviews Immunology. 2003;3(12):952–961. pmid:14647477
  4. 4. Trolle T, Metushi IG, Greenbaum JA, Kim Y, Sidney J, Lund O, et al. Automated benchmarking of peptide-MHC class I binding predictions. Bioinformatics. 2015;31(13):2174–2181. pmid:25717196
  5. 5. Yewdell JW, Bennink JR. Immunodominance in major histocompatibility complex class I–restricted T lymphocyte responses. Annual review of immunology. 1999;17(1):51–88. pmid:10358753
  6. 6. Sahin U, Türeci Ö. Personalized vaccines for cancer immunotherapy. Science. 2018;359(6382):1355–1360. pmid:29567706
  7. 7. Blass E, Ott PA. Advances in the development of personalized neoantigen-based therapeutic cancer vaccines. Nature reviews Clinical oncology. 2021;18(4):215–229. pmid:33473220
  8. 8. Lin MJ, Svensson-Arvelund J, Lubitz GS, Marabelle A, Melero I, Brown BD, et al. Cancer vaccines: the next immunotherapy frontier. Nature cancer. 2022;3(8):911–926. pmid:35999309
  9. 9. Madden DR. The three-dimensional structure of peptide-MHC complexes. Annual review of immunology. 1995;13(1):587–622. pmid:7612235
  10. 10. Pamer E, Cresswell P. Mechanisms of MHC class I–restricted antigen processing. Annual review of immunology. 1998;16(1):323–358. pmid:9597133
  11. 11. Castellino F, Zhong G, Germain RN. Antigen presentation by MHC class II molecules: invariant chain function, protein trafficking, and the molecular basis of diverse determinant capture. Human immunology. 1997;54(2):159–169. pmid:9297534
  12. 12. Brown JH, Jardetzky TS, Gorga JC, Stern LJ, Urban RG, Strominger JL, et al. Three-dimensional structure of the human class II histocompatibility antigen HLA-DR1. Nature. 1993;364(6432):33–39. pmid:8316295
  13. 13. Jensen KK, Andreatta M, Marcatili P, Buus S, Greenbaum JA, Yan Z, et al. Improved methods for predicting peptide binding affinity to MHC class II molecules. Immunology. 2018;154(3):394–406. pmid:29315598
  14. 14. Ruppert J, Sidney J, Celis E, Kubo RT, Grey HM, Sette A. Prominent role of secondary anchor residues in peptide binding to HLA-A2. 1 molecules. Cell. 1993;74(5):929–937. pmid:8104103
  15. 15. Falk K, Rötzschke O, Stevanovié S, Jung G, Rammensee HG. Allele-specific motifs revealed by sequencing of self-peptides eluted from MHC molecules. Nature. 1991;351(6324):290–296. pmid:1709722
  16. 16. Stern LJ, Brown JH, Jardetzky TS, Gorga JC, Urban RG, Strominger JL, et al. Crystal structure of the human class II MHC protein HLA-DR1 complexed with an influenza virus peptide. Nature. 1994;368(6468):215–221. pmid:8145819
  17. 17. Peters B, Tong W, Sidney J, Sette A, Weng Z. Examining the independent binding assumption for binding of peptide epitopes to MHC-I molecules. Bioinformatics. 2003;19(14):1765–1772. pmid:14512347
  18. 18. Nielsen M, Lund O, Buus S, Lundegaard C. MHC class II epitope predictive algorithms. Immunology. 2010;130(3):319–328. pmid:20408898
  19. 19. Doytchinova IA, Blythe MJ, Flower DR. Additive method for the prediction of protein- peptide binding affinity. Application to the MHC class I molecule HLA-A* 0201. Journal of proteome research. 2002;1(3):263–272. pmid:12645903
  20. 20. Hattotuwagama CK, Guan P, Doytchinova IA, Zygouri C, Flower DR. Quantitative online prediction of peptide binding to the major histocompatibility complex. Journal of Molecular Graphics and Modelling. 2004;22(3):195–207. pmid:14629978
  21. 21. Andreatta M, Nielsen M. Gapped sequence alignment using artificial neural networks: application to the MHC class I system. Bioinformatics. 2016;32(4):511–517. pmid:26515819
  22. 22. Hoof I, Peters B, Sidney J, Pedersen LE, Sette A, Lund O, et al. NetMHCpan, a method for MHC class I binding prediction beyond humans. Immunogenetics. 2009;61(1):1–13. pmid:19002680
  23. 23. Lundegaard C, Lamberth K, Harndahl M, Buus S, Lund O, Nielsen M. NetMHC-3.0: accurate web accessible predictions of human, mouse and monkey MHC class I affinities for peptides of length 8–11. Nucleic acids research. 2008;36(suppl_2):W509–W512. pmid:18463140
  24. 24. Nielsen M, Lundegaard C, Blicher T, Lamberth K, Harndahl M, Justesen S, et al. NetMHCpan, a method for quantitative predictions of peptide binding to any HLA-A and-B locus protein of known sequence. PloS one. 2007;2(8):e796. pmid:17726526
  25. 25. O’Donnell TJ, Rubinsteyn A, Bonsack M, Riemer AB, Laserson U, Hammerbacher J. MHCflurry: open-source class I MHC binding affinity prediction. Cell systems. 2018;7(1):129–132. pmid:29960884
  26. 26. Nielsen M, Andreatta M. NetMHCpan-3.0; improved prediction of binding to MHC class I molecules integrating information from multiple receptor and peptide length datasets. Genome medicine. 2016;8(1):1–9.
  27. 27. Chu Y, Zhang Y, Wang Q, Zhang L, Wang X, Wang Y, et al. A transformer-based model to predict peptide–HLA class I binding and optimize mutated peptides for vaccine design. Nature Machine Intelligence. 2022;4(3):300–311.
  28. 28. Nielsen M, Lund O. NN-align. An artificial neural network-based alignment algorithm for MHC class II peptide binding prediction. BMC bioinformatics. 2009;10(1):1–10. pmid:19765293
  29. 29. Nielsen M, Lundegaard C, Blicher T, Peters B, Sette A, Justesen S, et al. Quantitative predictions of peptide binding to any HLA-DR molecule of known sequence: NetMHCIIpan. PLoS computational biology. 2008;4(7):e1000107. pmid:18604266
  30. 30. Rappazzo CG, Huisman BD, Birnbaum ME. Repertoire-scale determination of class II MHC peptide binding via yeast display improves antigen prediction. Nature communications. 2020;11(1):4414. pmid:32887877
  31. 31. Zhang Z, Beck MW, Winkler DA, Huang B, Sibanda W, Goyal H, et al. Opening the black box of neural networks: methods for interpreting neural network models in clinical applications. Annals of translational medicine. 2018;6(11). pmid:30023379
  32. 32. Johnson MS, Martsul A, Kryazhimskiy S, Desai MM. Higher-fitness yeast genotypes are less robust to deleterious mutations. Science. 2019;366(6464):490–493. pmid:31649199
  33. 33. Chou HH, Chiu HC, Delaney NF, Segrè D, Marx CJ. Diminishing returns epistasis among beneficial mutations decelerates adaptation. Science. 2011;332(6034):1190–1192. pmid:21636771
  34. 34. Nourmohammad A, Held T, Lässig M. Universality and predictability in molecular quantitative genetics. Current opinion in genetics & development. 2013;23(6):684–693. pmid:24291213
  35. 35. Malmberg RL, Held S, Waits A, Mauricio R. Epistasis for fitness-related quantitative traits in Arabidopsis thaliana grown in the field and in the greenhouse. Genetics. 2005;171(4):2013–2027. pmid:16157670
  36. 36. Moulana A, Dupic T, Phillips AM, Chang J, Nieves S, Roffler AA, et al. Compensatory epistasis maintains ACE2 affinity in SARS-CoV-2 Omicron BA. 1. Nature Communications. 2022;13(1):7011. pmid:36384919
  37. 37. Moulana A, Dupic T, Phillips AM, Chang J, Roffler AA, Greaney AJ, et al. The landscape of antibody binding affinity in SARS-CoV-2 Omicron BA. 1 evolution. Elife. 2023;12:e83442. pmid:36803543
  38. 38. Johnson MS, Reddy G, Desai MM. Epistasis and evolution: recent advances and an outlook for prediction. BMC biology. 2023;21(1):120. pmid:37226182
  39. 39. Lyons DM, Zou Z, Xu H, Zhang J. Idiosyncratic epistasis creates universals in mutational effects and evolutionary trajectories. Nature Ecology & Evolution. 2020;4(12):1685–1693. pmid:32895516
  40. 40. Reddy G, Desai MM. Global epistasis emerges from a generic model of a complex trait. Elife. 2021;10:e64740. pmid:33779543
  41. 41. Bakerlee CW, Nguyen Ba AN, Shulgina Y, Rojas Echenique JI, Desai MM. Idiosyncratic epistasis leads to global fitness–correlated trends. Science. 2022;376(6593):630–635. pmid:35511982
  42. 42. Vita R, Mahajan S, Overton JA, Dhanda SK, Martini S, Cantrell JR, et al. The immune epitope database (IEDB): 2018 update. Nucleic acids research. 2019;47(D1):D339–D343. pmid:30357391
  43. 43. Kim Y, Sidney J, Buus S, Sette A, Nielsen M, Peters B. Dataset size and composition impact the reliability of performance benchmarks for peptide-MHC binding predictions. BMC bioinformatics. 2014;15(1):1–9. pmid:25017736
  44. 44. Sette A, Vitiello A, Reherman B, Fowler P, Nayersina R, Kast WM, et al. The relationship between class I binding affinity and immunogenicity of potential cytotoxic T cell epitopes. The Journal of Immunology. 1994;153(12):5586–5592. pmid:7527444
  45. 45. Zhao W, Sher X. Systematically benchmarking peptide-MHC binding predictors: From synthetic to naturally processed epitopes. PLoS computational biology. 2018;14(11):e1006457. pmid:30408041
  46. 46. Gfeller D, Bassani-Sternberg M. Predicting antigen presentation—what could we learn from a million peptides? Frontiers in immunology. 2018;9:1716. pmid:30090105
  47. 47. Mustonen V, Kinney J, Callan CG Jr, Lässig M. Energy-dependent fitness: a quantitative model for the evolution of yeast transcription factor binding sites. Proceedings of the National Academy of Sciences. 2008;105(34):12376–12381. pmid:18723669
  48. 48. Arnold PY, La Gruta NL, Miller T, Vignali KM, Adams PS, Woodland DL, et al. The majority of immunogenic epitopes generate CD4+ T cells that are dependent on MHC class II-bound peptide-flanking residues. The Journal of Immunology. 2002;169(2):739–749. pmid:12097376
  49. 49. Holland CJ, Cole DK, Godkin A. Re-directing CD4+ T cell responses with the flanking residues of MHC class II-bound peptides: the core is not enough. Frontiers in immunology. 2013;4:172. pmid:23847615
  50. 50. Racle J, Guillaume P, Schmidt J, Michaux J, Larabi A, Lau K, et al. Machine learning predictions of MHC-II specificities reveal alternative binding mode of class II epitopes. Immunity. 2023;56(6):1359–1375. pmid:37023751
  51. 51. Tareen A, Kinney JB. Logomaker: beautiful sequence logos in Python. Bioinformatics. 2020;36(7):2272–2274. pmid:31821414
  52. 52. Nourmohammad A, Schiffels S, Lässig M. Evolution of molecular phenotypes under stabilizing selection. Journal of Statistical Mechanics: Theory and Experiment. 2013;2013(01):P01012.
  53. 53. Otwinowski J, McCandlish DM, Plotkin JB. Inferring the shape of global epistasis. Proceedings of the National Academy of Sciences. 2018;115(32):E7550–E7558. pmid:30037990
  54. 54. Bradley AP. The use of the area under the ROC curve in the evaluation of machine learning algorithms. Pattern recognition. 1997;30(7):1145–1159.
  55. 55. Kass RE, Raftery AE. Bayes factors. Journal of the american statistical association. 1995;90(430):773–795.
  56. 56. Goodfellow I, Bengio Y, Courville A. Deep learning. MIT press; 2016.