Abstract
Motivation
Antibodies are proteins that the immune system produces in response to foreign pathogens. Designing antibodies that specifically bind to antigens is a key step in developing antibody therapeutics. The complementarity determining regions (CDRs) of the antibody are mainly responsible for binding to the target antigen, and therefore must be designed to recognize the antigen.
Results
We develop an antibody design model, AbFlex, that exhibits state-of-the-art performance in terms of structure prediction accuracy and amino acid recovery rate. Furthermore, >38% of newly designed antibody models are estimated to have better binding energies for their antigens than wild types. The effectiveness of the model is attributed to two different strategies that are developed to overcome the difficulty associated with the scarcity of antibody–antigen complex structure data. One strategy is to use an equivariant graph neural network model that is more data-efficient. More importantly, a new data augmentation strategy based on the flexible definition of CDRs significantly increases the performance of the CDR prediction model.
Availability and implementation
The source code and implementation are available at https://github.com/wsjeon92/AbFlex.
1 Introduction
An antibody is an immunoglobulin protein secreted from B cells. It explicitly recognizes foreign molecules called antigens and triggers our body's immune response. An antibody is shaped like a character “Y,” and at the ends of two arms of Y shape, there are loop structures called complementarity determining regions (CDRs), which are the part that complementarily binds to antigens. An antibody usually comprises two protein chains: a heavy chain and a light chain (Murzin et al. 1995, Chothia et al. 1998). Each chain has three CDRs: HCDR1, HCDR2, and HCDR3 for the heavy chain and LCDR1, LCDR2, and LCDR3 for the light chain. Among them, HCDR3 has a larger sequence variety than the other types of CDR (Xu and Davis 2000), and is more likely to bind complementarily to the antigen, while the other types of CDRs have relatively small variance so that they are clustered into several canonical conformations (Chothia and Lesk 1987, Al-Lazikani et al. 1997, Adolf-Bryfogle et al. 2015).
Because different CDR sequences produce different antigen-binding surfaces, antibodies can bind to different antigens in a specific manner (Rosenberg and Goldblum 2006, Lippow and Tidor 2007, Karanicolas and Kuhlman 2009). Therefore, a rational design of CDR structures and sequences, especially HCDR3, is important for developing antibody therapeutics that target a specific antigen (Kuroda et al. 2012, Sela-Culang et al. 2013, Norman et al. 2019). In antigen-specific CDR design tasks, one attempts to generate both structures and sequences of CDRs conditioned on a particular antigen, given the antigen–antibody complex structure. Recently, numerous studies have been conducted to design CDRs utilizing various deep learning techniques. Ever since the advent of AlphaFold (Jumper et al. 2021), the accuracy of predicting CDR structures from their sequences has increased by deep learning-based models (Ruffolo et al. 2020, Abanades et al. 2022, Ruffolo et al. 2022). Additionally, many deep learning models capable of generating not only CDR structures but also sequences have been proposed (Jin et al. 2021, Saka et al. 2021, Akbar et al. 2022, Eguchi et al. 2022, Jin et al. 2022, Kong et al. 2022, Luo et al. 2022).
One of the challenges in developing a deep learning model for antibody design is that there is not enough data for antibody–antigen complex structures (Norman et al. 2019) to train the model. Therefore, it is necessary to develop a CDR design model capable of learning 3D structures and sequences in a data-efficient manner. One way to overcome this challenge is to design a deep learning model architecture that exploits the invariant nature of 3D antibody–antigen complex structures under the translational and rotational transformations by using the equivariant neural networks, such as E(n) equivariant graph neural network (EGNN) (Satorras et al. 2021), which are known to be more data efficiently. The other way is to artificially expand the training data by adopting an appropriate data augmentation scheme. By effectively employing both approaches, we were able to develop the state-of-the-art antibody design model, AbFlex.
For antibody studies, many different antibody numbering schemes have been developed. The most commonly used numbering schemes include IMGT (Lefranc 1999) and Chothia (Chothia and Lesk 1987) schemes. The largest difference between those numbering schemes is where CDR residues' start and end positions are located. Consequently, CDR residues may differ depending on the numbering scheme chosen, even for the same antibody. To our knowledge, previous studies have used only one particular definition of CDRs, either IMGT or Chothia schemes, for training their models. This could, however, result in a bias in the model. For example, when the prediction models are trained on the dataset created using the Chothia numbering scheme, the models may not perform well for the IMGT scheme-based data.
On the other hand, this flexibility in CDR definition provides us an opportunity to develop an effective data augmentation strategy. By flexibly adjusting the anchor residue positions of CDRs, we can create many different sequences with different sizes for a single CDR. As shown in Fig. 1, the augmented CDRs are created by changing the two anchor residue positions within ±k residues from the original anchor positions according to a specific numbering scheme (in this study, Chothia scheme), where k is a certain threshold value (in this study, k = 5). For a single original CDR, as many as (2k + 1)2 sequences can be created. We found that, along with the equivariant graph neural network model, this data augmentation strategy significantly increased the performance of our design model.
Figure 1.
Example of CDR augmentation. The original CDR sequence is highlighted as bold and the anchor residues are indicated with an underline in the upper panel. The augmented CDRs are created by changing the two anchor residue positions within ±k, where k is a certain threshold value (in this example, k = 3). For a single original CDR, as many as (2k + 1)2 sequences can be created. In this example, there are (6 + 1)2 = 49 augmented CDR sequences.
In this work, we developed AbFlex, a new antibody design model trained on augmented data using flexible CDR definition. AbFlex can predict the structures and sequences of CDRs simultaneously for a given antibody–antigen complex structure, with state-of-the-art performance in terms of structure prediction accuracy and amino acid recovery rate. Furthermore, AbFlex not only reproduces the correct structures and sequences of antibodies accurately but also generates new antibody sequences estimated to have better binding affinity for their antigens than wild types. As a case study, we illustrate the practical application of AbFlex to redesign HCDR3 of an antibody for binding to a SARS-CoV-2 spike protein.
2 Materials and methods
A schematic workflow of our antibody design method is shown in Fig. 2. From the antibody–antigen complex structures, the training dataset was created where the CDRs were augmented by the CDR augmentation procedure. During data preprocessing, each antibody–antigen complex structure in the training set was converted into a graph, and its CDR residues to be designed were masked. In a graph representing a protein structure, structures and sequences of the protein were replaced by the node attributes consisting of 3D coordinates of residue Cα atoms and node features. AbFlex was then trained to predict both the structure and sequence of each CDR in the training set, one CDR at a time. A full-atom antibody–antigen complex structure model can be built from the predicted results when desired. It is also possible to estimate the binding affinity of the newly designed antibody using the full-atom structure model.
Figure 2.
Schematic workflow of AbFlex. The antibody–antigen complex structure data are fed into AbFlex through data augmentation and preprocessing. The CDR augmentation strategy augments the CDR residues in the training set (highlighted as a foreground loop). AbFlex predicts the structures and the amino acid types of the masked CDR residues (highlighted as foreground dots and a foreground loop). It is also able to build a full-atom antibody structure from the predicted results.
AbFlex was developed based on EGNN (Satorras et al. 2021), a graph neural network equivariant to 3D rotational and translational transformations. EGNN produces robust outputs regardless of the position or rotation of the input in 3D space. It is known that EGNN can learn 3D graph data efficiently without data augmentation by 3D transformation of objects (Satorras et al. 2021). By representing protein as a graph (Brinda and Vishveshwara 2005), EGNN can handle 3D protein structure and sequence simultaneously. We hypothesized that these characteristics of EGNN would be suitable for learning protein structures, especially where available structural data is scarce. AbFlex only uses Cα atom coordinates to represent the 3D structure of an antibody–antigen complex to reduce computational cost. The predicted amino acid types appear as probabilities of 20 amino acids from which multiple candidate sequences can be generated through sampling. The predicted CDR Cα coordinates and sampled sequences can generate a new antibody, including backbone and side chains, as shown in Fig. 2.
2.1 Dataset
We collected the antibody structure data (PDB file format) from the antibody database, SAbDab (Dunbar et al. 2013). From SabDab, data were filtered by antibody–antigen complexes having complete CDR residues (no missing residues in a PDB file) and protein-type antigens. The CDRs of the collected data were defined by the Chothia numbering scheme. The training data having identical CDR sequences to the test set CDRs were removed. Eventually, 32 596 CDR-antigen pairs were generated from 4312 PDB files. The dataset was randomly split by 95:5 for the training and validation sets. We did not remove redundant data with identical CDR sequences within the training set because we desired the model to learn minor structural differences. The test dataset was prepared from the Rosetta AntibodyDesign (Adolf-Bryfogle et al. 2018) (RAbD) dataset containing 60 PDBs. The CDRs of the RAbD dataset were defined by both the Chothia and IMGT numbering schemes.
2.2 Input
As input, AbFlex takes a graph representing an antibody–antigen complex structure. The input consists of two attributes: the 3D coordinates and the node feature. The coordinates, , which contain structural information about the antibody–antigen complex, are 3D coordinates of Cα atoms of protein residues, where L is the length of the input structure. We used only the Cα atoms to represent a residue-level protein structure in order to reduce the computational cost; required memory size and computation time. The node feature consists of the protein sequence and the chain type. The protein sequence feature is defined as a 256D learnable embedding vector, , which embeds 20 amino acid types and the special token, <MASK>, for the masked residues. The chain type feature is a 2D learnable embedding vector, , that distinguishes the residues belonging to the antibody or the antigen. Eventually, the input node feature, , is defined as a concatenation of two features along the axis of the feature dimension.
As we use antibody–antigen complex data, the input includes multiple protein chains of antigens and antibodies. Coordinates and node features from the multiple chains are concatenated along the axis of the chain-length dimension. For example, if an antibody chain has residues, and an antigen chain has residues, then the shape of input coordinates and features will be and . In addition, to discard the protein chains unrelated to antigen-CDR interactions, we only use antigen residues close to the antibody chain to be designed within a Cα atom distance of 16 Å. Consequently, one input data contains one antibody chain to be designed, its closely located antigen residues, and the counterpart antibody chain (e.g. the light chain for a heavy chain if it exists). Before feeding the input to the model, the coordinates and the sequence of a CDR to be designed are masked. As in ABlooper (Abanades et al. 2022), the coordinates of the CDR residues are placed on evenly spaced points along the line connecting two anchor residues. The sequence of CDR residues is masked by <MASK> token.
2.3 AbFlex's model architecture
AbFlex consists of 16 sequential EGNN (Satorras et al. 2021) layers, as shown in Fig. 3. Each EGNN layer takes the node features and coordinates as input and produces as output the node features and coordinates of the same size as the input. In AbFlex, one node is connected to the 64 nearest nodes forming an edge. A node feature and coordinates are updated through the 64 nearest nodes. Then, the output CDR coordinates are updated using a masking vector, , as follows.
| (1) |
where and is the output and updated coordinate of the EGNN layer, respectively. is the number of EGNN layers of the model. This operation is done after every EGNN layer to ensure that the residue coordinates, except CDR, remain the same. The multiple EGNN layers update masked coordinates and node features to design appropriate CDR structure and sequence for the antibody–antigen complex. The last output node feature from the last EGNN layer is fed into a shallow feedforward network to produce 20D likelihood logits for 20 amino acid types. The feedforward network consists of two fully connected layers with a nonlinear activation function in between. The detailed hyperparameters can be found at https://github.com/wsjeon92/AbFlex.
Figure 3.

The neural network architecture of the AbFlex. AbFlex consists of 16 EGNN layers and a feed-forward network.
2.4 Loss design
Since our model predicts CDR structure and sequence, the model uses two types of losses: structure-related and sequence-related losses.
2.4.1 Structure-related losses
We used the root mean squared deviation (RMSD) loss function, , as a measure of structural prediction error. Here, only the CDR residues were considered to calculate RMSD. is calculated for all the output coordinates of every EGNN layer.
| (2) |
where is the output coordinates of CDR residues from the EGNN layer, and is the ground truth. The operation is similar to the local loss method suggested by Nøkland and Eidnes (2019)
We also defined the structural violation losses, and , which help to prevent the model’s output CDR coordinates from having an unrealistic shape. gives a penalty when each output node coordinate of CDR is within a distance threshold τ of the other non-CDR nodes. The τ value is set to 4.2 Å, determined through statistical analysis of the training data. We first defined the loss for the kth EGNN layer as follows:
| (3) |
where is the number of CDR residues and is the number of non-CDR residues. is a distance between ith and jth residues. Another structural violation loss is a loss that gives a penalty when the consecutive Cα atom distances of the output CDR coordinates are different from its ground truth. For the kth EGNN layer,
| (4) |
where and is a distance between (i − 1)th and ith nodes of a predicted and ground truth structure, respectively. We designed and tested various forms of loss function, and we found that the model performed best when and were applied after the 4th EGNN layer. Therefore, at the beginning of training, the model focuses on reducing the RMSD of the overall structure, and after reasonably good structural prediction has been made (after the fourth layer), structural plausibility measures such as distances between nodes are considered. The overall structure violation losses are given by Equation (5).
| (5) |
The total structural loss, , is defined as a simple sum of the above three losses.
| (6) |
2.4.2 Sequence-related losses
We used a cross-entropy loss for the CDR sequence prediction. Unlike the coordinates, the node features of all the residues are updated without distinguishing CDR and non-CDR residues after passing each EGNN layer. Therefore, we applied the cross-entropy loss function to both the CDR residues, , and the non-CDR residues, as follows:
| (7) |
| (8) |
where the output node features of both non-CDR residues, , and CDR residues, are converted into 20D logits corresponding to the 20 amino acid types by a simple feedforward network (FFN) and then compared with the true amino acid label of the non-CDR residues (and CDR residues.
A structure and a sequence of proteins are interrelated. Therefore, we directed the model to learn sequence prediction ability after the model can reasonably predict the structures. Consequently, are implemented only for the outputs of the last four EGNN layers. The total cross-entropy loss, , is defined as a sum of and . To prevent overconfidence in the model, we set label smoothing as 0.1.
2.4.3 Total loss
The total loss of the model is defined as the weighted sum of and . We gave more weight to than to induce the model to learn the structural features first.
| (9) |
2.5 Training and evaluation
We trained two models with the same architecture in different ways; one trained with the data of the Chothia numbering scheme, and the other trained with the CDR augmentation. Both models were trained until their performances were saturated. We saved optimal models based on the accuracy of the validation data. The learning rate was set to 1e−6, and an Adam optimizer was used. The models' performance was evaluated by how accurately the trained models reconstructed the CDRs of the test set. We supposed CDRs in an antibody–antigen complex should have optimal structures and sequences to bind the antigen. Therefore, if the predictions of AbFlex are similar to ones with the test set, it implies that AbFlex could design CDR structures and sequences for the target antigens.
Since AbFlex consisted of 16 EGNN layers, there was a gradient vanishing problem despite the residual connection between EGNN layers. To solve this, we implemented loss calculations for not only the last EGNN layer but all the EGNN layers, similar to the local loss technique (Nøkland and Eidnes 2019). Layer-wise training via local loss enables efficient learning even in complex systems. We improved AbFlex's training efficiency and prediction performance by leveraging local loss.
2.6 Building a full-atom antibody–antigen complex model from the predicted CDR Cα coordinates and amino acid types
We describe how we build a full-atom antibody–antigen complex model from the predicted CDR Cα coordinates and amino acid types. First, we generate a PDB file of a single antibody chain that contains the designed CDR residues. The designed CDR residues have only the predicted Cα atom coordinates and the corresponding predicted amino acid types. The rest of the antibody atoms remain as the wild-type. The predicted CDR amino acid types are sampled from the probability distributions of the predicted amino acid type for each CDR residue. Then, we merge the generated antibody chain and the rest of the protein chains in the original PDB file. Only the binding chains close to the CDR of design within 16 Å are merged for efficient computation. We use PyMOL (2.4.0 Open-Source) Python library to combine them. Next, we reconstruct the rest of the CDR atoms, including backbone and side chain atoms, using PDBFixer (Eastman et al. 2017). PDBFixer cleans up a PDB file that recovers missing atoms and adds hydrogen atoms for a given pH condition. Finally, we relax the complex structure using OpenMM (Eastman et al. 2017). OpenMM minimizes the energy potential of the complex structure with the Amber14 forcefield. The rest of the hyperparameters are set as default.
2.7 Measuring binding energies
We measure the binding energy between an antibody and an antigen using FoldX AnalyzeComplex (Schymkowitz et al. 2005) and Rosetta InterfaceAnalzer (Lewis and Kuhlman 2011, Stranges and Kuhlman 2013). Both methods estimate the binding energy of the complex by calculating energy differences between the bound state and the unbound state of antibodies and antigens. For example, if a complex structure comprises an antibody heavy chain, chain H, light chain, chain L, and antigen, chain A, the binding energy is calculated between the antibody chains and the antigen chain, the interface between HL and A. We relax the complex structure ten times with OpenMM. The relaxed structures are different each time, resulting in different binding affinities. We used the minimum binding energy among the ten relaxed structures. The Rosetta energy unit (REU) was calculated with the REF2015 score function (Alford et al. 2017).
3 Results
3.1 AbFlex performs well regardless of the antibody numbering scheme
We tested AbFlex on the Rosetta AntibodyDesign dataset (RAbD) (Adolf-Bryfogle et al. 2018) containing 60 PDBs. We evaluated the model's performance by considering both the structure prediction accuracy and sequence prediction accuracy. The structure prediction accuracy was measured by RMSD of CDR Cα coordinates. The sequence prediction accuracy was measured by CDR's amino acid recovery (Adolf-Bryfogle et al. 2018) (AAR), which measures how many predicted amino acid types exactly match their true amino acid types. In “Top1 AAR,” only the most likely amino acid type for each position was considered, while in “Top3 AAR,” if any of the three most likely amino acid types were matched to the true amino acid type, it was accepted as the correct answer. The test sets were prepared with three different CDR number definitions [CDR, IMGT, and North et al. (2011)]. North et al. define CDRs by clustering structural conformations, and we used PyIgClassify server (Adolf-Bryfogle et al. 2015) to define CDRs of the RAbD dataset. AbFlex was evaluated using all three different CDR numbering definitions to examine whether it performed well regardless of the antibody numbering scheme.
The prediction results summarized in Table 1 clearly indicate that we achieved similarly high prediction accuracies on both test sets through the CDR augmentation procedure. All the CDR types except for heavy chain CDR3 (HCDR3) showed sub-Ångstrom RMSD and 54%–80% of AAR in both test sets. The results are explained by the fact that CDR1 and CDR2 have relatively small sequence variety and usually have canonical structures (Chothia and Lesk 1987). Thereby, predicting sequences and structures of CDR1 and CDR2 is considered a relatively easier task than CDR3. While the prediction accuracy of HCDR3 was relatively lower than the other CDR types, our model achieved an RMSD of 1.568 Å and the Top 1 AAR of 37.54% for the IMGT test set, the new state-of-the-art results. In addition, because HCDR3 of IMGT covers a wider range of sequences than HCDR3 of Chothia, it tends to contain a greater number of conserved sequence patterns such as conserved sequences after cysteine. Consequently, sequence prediction of HCDR3 of IMGT tends to have a higher AAR because the conserved patterns are easier to predict. Considering the three most probable amino acid types (Top 3 AAR), the accuracies go up to 48%–88% for all the CDR types.
Table 1.
Prediction results of AbFlex on RAbD for heavy chain CDRs (HCD1, HCDR2, HCDR3) and light chain CDRs (LCDR1, LCDR2, LCDR3).
| HCDR1 | HCDR2 | HCDR3 | LCDR1 | LCDR2 | LCDR3 | ||
|---|---|---|---|---|---|---|---|
| Chothia |
|
0.603 | 0.594 | 1.684 | 0.351 | 0.321 | 0.657 |
|
69.36 | 54.44 | 29.64 | 80.12 | 71.88 | 64.41 | |
|
81.55 | 69.17 | 48.09 | 88.58 | 84.87 | 75.93 | |
| IMGT |
|
0.622 | 0.568 | 1.568 | 0.387 | 0.26 | 0.657 |
|
65.99 | 58.96 | 37.54 | 69.82 | 70.65 | 64.41 | |
|
79.07 | 71.90 | 54.47 | 81.36 | 82.99 | 75.93 | |
| North et al. |
|
0.562 | 0.541 | 1.579 | 0.351 | 0.323 | 0.657 |
|
71.66 | 55.26 | 37.64 | 80.12 | 74.38 | 64.41 | |
|
82.48 | 68.67 | 54.22 | 88.58 | 85.58 | 75.93 |
3.2 AbFlex exhibits the state-of-the-art performance
It is known that the sequences and structures of HCDR3s are the most diverse among all CDRs, and they play a significant role in binding specific antigens. Due to the variety of sequences and structures, predicting the structures and sequences of HCDR3 is a very challenging task. Moreover, it is the most crucial task for antibody design because of its importance in antigen binding. We compared AbFlex's performance for HCDR3 against the other methods. Here we re-trained the AbFlex model with a strict train dataset, which have CDR sequence similarities <50% with the test set (a CDR is defined by Chothia). Eventually, 10349 CDR-antigen pairs (for HCDR3, 2274 pairs were used) were used as the training data and 550 CDR-antigen pairs were used as the validation set. The prediction results are summarized in Table 2, which shows that AbFlex outperforms all the other methods in terms of RMSD and AAR. Compared to the most recent CDR design method, MEAN, the structure prediction accuracy of AbFlex was not significantly different when performing a paired t-test. While the sequence prediction accuracy of AbFlex was significantly (P-value <.005) better than ones of MEAN. All the comparison results (RMSD and AAR per PDB id) between AbFlex and MEAN are available in Supplementary Data S1.
Table 2.
Comparison with other studies for designing HCDR3 of RAbD dataset.a
| Model | AAR (%, ↑) | RMSD (Å, ↓) |
|---|---|---|
| RosettaAD | 22.50 | 5.52 |
| LSTM | 22.36 | |
| C-LSTM | 22.18 | |
| RefineGNN | 29.79 | 7.55 |
| C-RefineGNN | 28.90 | 7.21 |
| MEAN | 36.77 | 1.81 |
| AbFlex | 40.64 | 1.88 |
The prediction results (AAR and RMSD) of the models in italics are derived from Kong et al. (2022).
The results except AbFlex were derived from Kong et al. (2022), and the training data for each model did not include any identical CDR to the RAbD dataset. All the CDRs were numbered according to the IMGT scheme. RosettaAD is a conventional CDR design method developed by Adolf-Bryfogle et al. (2018) that grafts CDRs from the antibody structure database. Saka et al. (2021) and Akbar et al. (2022) (LSTM) suggested an LSTM-based CDR sequence prediction model with antibody chains only. C-LSTM is an LSMT model that also utilizes an antibody–antigen complex (Kong et al. 2022). RefineGNN by Jin et al. (2021) is a graph neural network-based generative model that only predicts CDR structures and sequences autoregressively with antibody chains. C-RefineGNN is a RefineGNN model conditioned to antigen structures. MEAN by Kong et al. (2022) predicts CDR structures and sequences conditioned on an antibody–antigen complex by the multi-channel equivariant attention network.
3.3 Effect of CDR augmentation
To figure out the effect of the CDR augmentation, we tested our prediction model on the same test set but using the model trained on the dataset prepared by the Chothia scheme only (Table 3). The prediction results on the RAbD dataset prepared by the Chothia scheme were similar to those in Table 1. However, the prediction accuracies for the IMGT and North et al.-numbered RAbD dataset became much worse (except LCDR1 and LCDR3, which have identical sequences between Chothia, IMGT, and North et al. numbering schemes). These results indicate that the model trained on the training set prepared using a particular CDR definition could produce inconsistent predictions on the test sets prepared using different CDR definitions. Moreover, these results, together with the results shown in Table 1, suggest that antibody design models trained with a single antibody numbering scheme may have been over-trained to that particular training set. We speculate that our data augmentation method improved AbFlex's performance not only by providing more training data but also by helping to avoid over-training.
Table 3.
Prediction results of AbFlex trained on the training set prepared by the Chothia numbering scheme (without the CDR augmentation).
| HCDR1 | HCDR2 | HCDR3 | LCDR1 | LCDR2 | LCDR3 | ||
|---|---|---|---|---|---|---|---|
| Chothia |
|
0.566 | 0.552 | 1.766 | 0.358 | 0.343 | 0.701 |
|
71.32 | 58.61 | 31.56 | 78.65 | 73.29 | 66.12 | |
|
81.51 | 71.44 | 46.76 | 87.20 | 84.24 | 75.79 | |
| IMGT |
|
1.935 | 3.468 | 3.181 | 3.007 | 3.132 | 0.701 |
|
40.90 | 17.51 | 15.83 | 14.04 | 14.41 | 66.12 | |
|
53.37 | 34.66 | 25.71 | 30.07 | 29.03 | 75.79 | |
| North et al. |
|
2.284 | 4.708 | 3.213 | 0.358 | 2.789 | 0.701 |
|
20.38 | 8.59 | 15.58 | 78.65 | 34.65 | 66.12 | |
|
33.96 | 21.54 | 25.47 | 87.20 | 48.61 | 75.79 |
3.4 Binding energy analysis on designed HCDR3 sequences
We compared the predicted binding energies of the antibodies with newly designed HCDR3 sequences to those of the wild types to examine whether our design model could produce novel antibody sequences with improved binding energy. The predicted binding energies of the designed antibodies were measured using FoldX AnalyseComplex (Schymkowitz et al. 2005) and Rosetta InterfaceAnalzer (Lewis and Kuhlman 2011, Stranges and Kuhlman 2013). Although predictions of binding affinity using these tools do not completely reflect reality, they are helpful in observing overall trend to some extent. For one antibody–antigen complex structure in the RAbD dataset, we generated ten antibody sequences by sampling ten HCDR3 sequences (sampling in Table 4). We then built full-atom antibody–antigen complex models following the procedure described in the Method section. Also, we generated antibodies with maximum likelihood of sequence prediction(max. likelihood). In addition to the original antibody–antigen complex structures (native), we also built the full-atom models of the wild-type antibodies (reconstructed native) with the CDR Cα coordinates and sequences of the wild-type. In order to achieve an unbiased comparison between the designed antibodies and their wild types, reconstructed native models are needed to correct for the artifacts created during the full-atom building procedure which includes structure relaxation and side chain packing. The binding energies of the sampled antibodies were compared with the native structures and the reconstructed native structures.
Table 4.
The binding affinity improvement ratio and the success rates of the designed HCDR3s measured by FoldX and InterfaceAnalzer on the RAbD dataset.
| FoldX | Interface Analyzer | |
|---|---|---|
| Imp. Ratio versus Native (sampling) | 18.83% | 28.83% |
| Imp. Ratio versus Reconstructed native (sampling) | 38.50% | 44.50% |
| Imp. Ratio versus Native (max. likelihood) | 20.00% | 23.33% |
| Imp. Ratio versus Reconstructed native (max. likelihood) | 53.33% | 41.67% |
| Success rate versus Native | 32/60 | 42/60 |
| Success rate versus Reconstructed native | 51/60 | 52/60 |
Table 4 shows the improvement ratio of the designed antibodies with lower (better) predicted binding energy than the native (Imp. Ratio versus Native) and the reconstructed native structures (Imp. Ratio versus Reconstructed native). In the case of the designed antibodies with sequence sampling, compared to the natives, the improvement ratio estimated by Foldx and InterfaceAnalyzer was 18.83% and 28.83%, respectively. For reconstructed natives, the improvement ratio estimated by Foldx and InterfaceAnalyzer was 38.5% and 44.50%, respectively. Cases of the designed antibodies with the maximum likelihood sequences are also described in Table 4. Table 4 also shows the success rates. We considered the sequence design a success if at least one out of 10 generated antibodies per one antibody–antigen complex structure had better predicted binding energy. Out of 60 cases in the RAbD dataset, the generated antibodies had better FoldX binding energy than the reconstructed native structures in 51 cases, while in 32 cases, the generated antibodies had better FoldX binding energy than the native structures. Based on InterfaceAnalyzer, 52 and 42 cases had better binding energy than the reconstructed natives and the natives, respectively. Figure 4a and b shows examples of improved predicted binding energy for both small and large RMSD cases. The generated antibody may have a better binding energy than the wild-type antibody despite the predicted structure being quite different from that of the wild-type, as shown in Fig. 4b. This suggests that the predicted CDR structure with a large RMSD may not be a prediction error but a potential CDR structure with a better predicted binding energy. Note that a recently developed model, DiffAb (Luo et al. 2022), showed a 23.63% improvement ratio estimated by InterfaceAnalyzer on independent test data of 19 manually selected antibodies.
Figure 4.

Samples of the designed CDRs compared to their wild types. The designed CDRs are displayed in the right panel of each row. (a) Small RMSD case. (b) Large RMSD case. (c) Redesigned CDR for the SARS-CoV-2 spike protein.
3.5 Case study: SARS-CoV-2 spike protein
Using AbFlex, we redesigned an HCDR3 of the antibody that binds to the SARS-CoV-2 spike receptor-binding domain (PDB ID: 7BZ5), which has been removed from the train set. We masked HCDR3 of 7BZ5 with the Chothia numbering scheme and designed a new structure and sequences using AbFlex. Ten different CDR sequences were sampled, and the full-atom models were built. Finally, the binding energies were estimated by FoldX and InterfaceAnalyzer.
The redesigned structure, sample 6, with a RMSD of 1.50 Å is shown in Fig. 4c, and the newly designed HCDR3 sequences with estimated binding energies are shown in Table 5. According to InterfaceAnalyzer, sample 6 had the best binding energy, −48.482, better than its native or reconstructed native, −35.454 and −34.293, respectively. Sample 4 and 5 was better than the natives for both binding energies. This case study indicates that we can design a potential CDR structure and corresponding sequences that could be expected to bind stronger than the native structure using our CDR prediction model.
Table 5.
The samples of redesigned sequences of HCDR3 of 7BZ5 and corresponding binding energies compared to its native structures.a
| binding energy |
HCDR3 sequence | ||
|---|---|---|---|
| FoldX (kcal/mol, ↓) | Interface Analyzer (REUb, ↓) | ||
| Native | -19.7139 | -35.454 | EAYGMDV |
| Reconstructed native | -16.6631 | -34.293 | |
| Sample 1 | −17.6671 | −34.293 | HDDGFDY |
| Sample 2 | −17.3002 | −22.153 | DSDGMDY |
| Sample 3 | −17.0891 | −40.36 | DDYYSDY |
| Sample 4 | −20.6832 | −36.364 | GFDGFKY |
| Sample 5 | −20.991 | −40.576 | DYDGMDY |
| Sample 6 | −14.8731 | −48.482 | QDKGFDY |
| Sample 7 | −14.142 | −34.107 | DDVFGDH |
| Sample 8 | −19.5959 | −37.9 | DSDGYDY |
| Sample 9 | −15.5665 | −35.636 | DDDGIDY |
| Sample 10 | −12.7517 | −35.183 | QRYGKDY |
Bolds are the samples having better binding energies than wild-type models.
Rosetta Energy Unit.
4 Conclusion
In this work, we developed a CDR design model, AbFlex, that predicts the structures and sequences of CDRs for a given antibody–antigen complex. Based on an equivariant graph neural network architecture, AbFlex could efficiently learn CDR structures and sequences despite insufficient antibody structure data. Additionally, AbFlex learned various loop conformations around CDR through the CDR augmentation. As a result, AbFlex's prediction performance became robust regardless of the CDR numbering method. A new data augmentation method appears to have improved AbFlex's performance by providing more training data, in addition to helping to prevent overtraining. In the HCDR3 design task, AbFlex showed state-of-the-art accuracy in terms of structure prediction accuracy and amino acid recovery rate, and >38% of the designed antibodies were estimated to have improved binding energies compared to wild types. In addition, AbFlex can be used to design CDRs whose lengths are different from those of the original CDR by adding or removing residues. To illustrate a practical application of our model, we suggested candidate antibody structures and sequences designed by AbFlex that were expected to bind a SARS-CoV-2 spike protein.
There are several limitations to AbFlex. First, AbFlex predicts only one optimal CDR structure for an antibody–antigen complex, so it cannot generate a variety of structures as many generative models do (Luo et al. 2022). Second, when training an AbFlex model, we did not fully consider the binding affinities of antibody and antigen complexes. Although some antibody–antigen complexes may have weaker binding energy than others, we treated all the complexes equally when we trained the model. Third, AbFlex predicts CDRs under the assumption that structural and sequence changes in CDRs do not alter other non-CDR structures of the complex structures. Lastly, AbFlex's prediction accuracy still has room for improvement.
Despite these limitations, AbFlex can be a valuable tool for designing antibodies with improved binding affinity, as we have demonstrated in this work that in >80% of cases, newly designed antibodies were estimated to have better binding energies than wild types in the 60 complexes in RAbD dataset. Through sequence sampling, a large number of antibodies with high binding energies to the target antigen can be generated in a relatively short time. For example, in the case of 7BZ5, generating 100 full-atom antibody models with ten relaxations by openMM and Rosetta InterfaceAnalyzer took around 6.5 h with Nvidia Quadro RTX 5000 GPU and Intel(R) Xeon(R) W-2225 CPU 4.10 GHz. It is also possible to build the full-atom complex structure models for further structural analysis via the provided source code at https://github.com/wsjeon92/AbFlex.
Supplementary Material
Contributor Information
Woosung Jeon, Department of Bio and Brain Engineering, Korea Advanced Institute of Science and Technology, 291 Daehak-ro, Yuseong-gu, Daejeon 34141, Republic of Korea.
Dongsup Kim, Department of Bio and Brain Engineering, Korea Advanced Institute of Science and Technology, 291 Daehak-ro, Yuseong-gu, Daejeon 34141, Republic of Korea.
Supplementary data
Supplementary data are available at Bioinformatics online.
Conflict of interest
None declared.
Funding
This work was supported by the National Research Foundation of Korea (NRF) grants funded by the Korean Government [2019M3E5D6063871, 2021M3H9A2097443, 2022R1A2C1006609].
References
- Abanades B, Georges G, Bujotzek A. et al. ABlooper: fast accurate antibody CDR loop structure prediction with accuracy estimation. Bioinformatics 2022;38:1877–80. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Adolf-Bryfogle J, Kalyuzhniy O, Kubitz M. et al. RosettaAntibodyDesign (RAbD): a general framework for computational antibody design. PLoS Comput Biol 2018;14:e1006112. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Adolf-Bryfogle J, Xu Q, North B. et al. PyIgClassify: a database of antibody CDR structural classifications. Nucleic Acids Res 2015;43:D432–8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Akbar R, Robert PA, Weber CR. et al. In silico proof of principle of machine learning-based antibody design at unconstrained scale. MAbs 2022;14:2031482. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Al-Lazikani B, Lesk AM, Chothia C. et al. Standard conformations for the canonical structures of immunoglobulins. J Mol Biol 1997;273:927–48. [DOI] [PubMed] [Google Scholar]
- Alford RF, Leaver-Fay A, Jeliazkov JR. et al. The Rosetta all-atom energy function for macromolecular modeling and design. J Chem Theory Comput 2017;13:3031–48. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Brinda K, Vishveshwara S.. A network representation of protein structures: implications for protein stability. Biophys J 2005;89:4159–70. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Chothia C, Gelfand I, Kister A. et al. Structural determinants in the sequences of immunoglobulin variable domain. J Mol Biol 1998;278:457–79. [DOI] [PubMed] [Google Scholar]
- Chothia C, Lesk AM.. Canonical structures for the hypervariable regions of immunoglobulins. J Mol Biol 1987;196:901–17. [DOI] [PubMed] [Google Scholar]
- Dunbar J, Krawczyk K, Leem J. et al. SAbDab: the structural antibody database. Nucleic Acids Res 2013;42:D1140–6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Eastman P, Swails J, Chodera JD. et al. OpenMM 7: rapid development of high performance algorithms for molecular dynamics. PLoS Comput Biol 2017;13:e1005659. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Eguchi RR, Choe CA, Huang P-S. et al. Ig-VAE: generative modeling of protein structure by direct 3D coordinate generation. PLoS Comput Biol 2022;18:e1010271. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jin W, Barzilay R, Jaakkola T. Antibody–antigen docking and design via hierarchical equivariant refinement. arXiv, arXiv:2207.06616, 2022, preprint: not peer reviewed.
- Jin W, Wohlwend J, Barzilay R. et al. Iterative refinement graph neural network for antibody sequence-structure co-design. arXiv, arXiv:2110.04624, 2021, preprint: not peer reviewed.
- Jumper J, Evans R, Pritzel A. et al. Highly accurate protein structure prediction with AlphaFold. Nature 2021;596:583–9. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Karanicolas J, Kuhlman B.. Computational design of affinity and specificity at protein–protein interfaces. Curr Opin Struct Biol 2009;19:458–63. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kong X, Huang W, Liu Y. Conditional antibody design as 3D equivariant graph translation. arXiv, arXiv:2208.06073, 2022, preprint: not peer reviewed.
- Kuroda D, Shirai H, Jacobson MP. et al. Computer-aided antibody design. Protein Eng Des Sel 2012;25:507–21. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Lefranc M-P. The IMGT unique numbering for immunoglobulins, T-cell receptors, and Ig-like domains. Immunologist 1999;7:132–6. [Google Scholar]
- Lewis SM, Kuhlman BA.. Anchored design of protein-protein interfaces. PLoS One 2011;6:e20872. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Lippow SM, Tidor B.. Progress in computational protein design. Curr Opin Biotechnol 2007;18:305–11. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Luo S, Su Y, Peng X. et al. Antigen-specific antibody design and optimization with diffusion-based generative models for protein structures. Adv Neural Inf Process Syst 2022;35:9754–67. [Google Scholar]
- Murzin AG, Brenner SE, Hubbard T. et al. SCOP: a structural classification of proteins database for the investigation of sequences and structures. J Mol Biol 1995;247:536–40. [DOI] [PubMed] [Google Scholar]
- Norman RA, Ambrosetti F, Bonvin AMJJ. et al. Computational approaches to therapeutic antibody design: established methods and emerging trends. Brief Bioinform 2019;21:1549–67. [DOI] [PMC free article] [PubMed] [Google Scholar]
- North B, Lehmann A, Dunbrack RL. et al. A new clustering of antibody CDR loop conformations. J Mol Biol 2011;406:228–56. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Nøkland A, Eidnes LH. Training neural networks with local error signals. In: Chaudhuri K and Salakhutdinov R (eds) Proceedings of the 36th International Conference on Machine Learning, (ICML) 2019, 9-15 June 2019, Long Beach, California, USA. PMLR, 2019, 4839–50. http://proceedings.mlr.press/v97/nokland19a.html
- Rosenberg M, Goldblum A.. Computational protein design: a novel path to future protein drugs. Curr Pharm Des 2006;12:3973–97. [DOI] [PubMed] [Google Scholar]
- Ruffolo JA, Guerra C, Mahajan SP. et al. Geometric potentials from deep learning improve prediction of CDR H3 loop structures. Bioinformatics 2020;36:i268–75. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ruffolo JA, Sulam J, Gray JJ. et al. Antibody structure prediction using interpretable deep learning. Patterns 2022;3:100406. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Saka K, Kakuzaki T, Metsugi S. et al. Antibody design using LSTM based deep generative model from phage display library for affinity maturation. Sci Rep 2021;11:5852. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Satorras VG, Hoogeboom E, Welling M. E (n) equivariant graph neural networks. In: Meila M and Zhang T (eds) International Conference on Machine Learning. PMLR, 2021, 9323–332. http://proceedings.mlr.press/v139/satorras21a/satorras21a.pdf.
- Schymkowitz J, Borg J, Stricher F. et al. The FoldX web server: an online force field. Nucleic Acids Res 2005;33:W382–8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sela-Culang I, Kunik V, Ofran Y. et al. The structural basis of antibody–antigen recognition. Front Immunol 2013;4:302. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Stranges PB, Kuhlman B.. A comparison of successful and failed protein interface designs highlights the challenges of designing buried hydrogen bonds. Protein Sci 2013;22:74–82. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Xu JL, Davis MM.. Diversity in the CDR3 region of VH is sufficient for most antibody specificities. Immunity 2000;13:37–45. [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.


