Characterizing antibodies binding to the same epitope reveals limited contribution by heavy chain CDR3 sequences relative to other CDRs

preprint OA: closed
📄 Open PDF Full text JSON View at publisher
Full text 77,695 characters · extracted from preprint-html · click to expand
Characterizing antibodies binding to the same epitope reveals limited contribution by heavy chain CDR3 sequences relative to other CDRs | bioRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-M677548'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search New Results Characterizing antibodies binding to the same epitope reveals limited contribution by heavy chain CDR3 sequences relative to other CDRs View ORCID Profile Jarjapu Mahita , Haeuk Kim , Marcus De Almeida Mendes , Eve Richardson , View ORCID Profile Jason A. Greenbaum , View ORCID Profile Alessandro Sette , View ORCID Profile Morten Nielsen , View ORCID Profile Bjoern Peters doi: https://doi.org/10.1101/2025.05.24.655967 Jarjapu Mahita 1 Center for Vaccine Innovation, La Jolla Institute for Immunology , La Jolla, CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Jarjapu Mahita Haeuk Kim 3 LJI Bioinformatics Core, La Jolla Institute for Immunology , La Jolla, CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Marcus De Almeida Mendes 1 Center for Vaccine Innovation, La Jolla Institute for Immunology , La Jolla, CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Eve Richardson 1 Center for Vaccine Innovation, La Jolla Institute for Immunology , La Jolla, CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Jason A. Greenbaum 3 LJI Bioinformatics Core, La Jolla Institute for Immunology , La Jolla, CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Jason A. Greenbaum Alessandro Sette 1 Center for Vaccine Innovation, La Jolla Institute for Immunology , La Jolla, CA, USA 2 Department of Medicine, University of California San Diego , La Jolla, CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Alessandro Sette Morten Nielsen 4 Department of Health Technology, Technical University of Denmark , Lyngby, Denmark Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Morten Nielsen Bjoern Peters 1 Center for Vaccine Innovation, La Jolla Institute for Immunology , La Jolla, CA, USA 2 Department of Medicine, University of California San Diego , La Jolla, CA, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Bjoern Peters For correspondence: bpeters{at}lji.org Abstract Full Text Info/History Metrics Supplementary material Preview PDF Abstract The antigen specificity of antibodies is defined mainly by their highly-variable complementarity-determining regions (CDRs), of which the CDR3 is considered to be the most important. Similar antibodies are expected to bind the same epitope on an antigen, but how this similarity should be quantified is unclear. Here, we utilized a large body of publicly available data to identify features that are most informative in predicting if two antibodies are likely to bind to the same epitope. We examined features such as pairwise sequence identities, CDR structural similarity, and geometrical similarity of antibody paratopes. We found that, for antibodies with high overall sequence similarity, the CDR sequence identity alone is sufficient to predict if a pair of antibodies binds to the same epitope. Strikingly, the sequence identity of CDR1 and CDR2 had as much or more predictive power than CDR3, which is commonly thought of as the main determinant of antibody specificity. In addition, for antibody pairs with lower overall sequence identity, including structural information led to significant improvements in predictive performance. Guided by these results, we developed BCRMatch ( https://github.com/IEDB/BCRMatch ) which uses an ensemble machine-learning approach to predict if pairs of antibodies target the same epitope based on antibody sequence alone. This can be applied to identify potential targets of an antibody of interest by comparing it to antibodies with known specificities. INTRODUCTION B cells are a major arm of the adaptive immune system, capable of generating highly diverse membrane-bound B-cell receptors (BCRs), which can be secreted as antibodies. A typical monomeric antibody is a Y-shaped protein complex containing two heavy and light-chain pairs. The high specificity of antibodies is mediated by their complementarity-determining regions (CDRs) which are also the main sources of variability in antibody sequences ( 1 ). Each heavy and light-chain encodes for three CDRs. The site of an antibody that binds to the antigen is known as the paratope and typically includes major portions of the CDRs. In contrast, the epitope is the region on the antigen that directly interacts with the antibody. The diversity of BCRs arises due to two main processes. The first is somatic gene rearrangement of the variable (V), diversity (D) and joining (J) gene segments to form the heavy-chain V-domain (only V and J in the case of light-chain V-domain). The CDR1 and CDR2 are directly encoded in the V-gene segment while the CDR3 corresponds to the junction at which V(D)J (or VJ) gene segments are joined together, resulting in increased variability. The pairing of heavy-chain and light-chain at this stage results in a naïve BCR which has not yet been exposed to antigen. Depending on the V, D, and J gene segments that comprise the V-domains of both chains, the naïve BCR can have pre-determined specificity ( 2 ). In the second phase, the naïve BCR binds an antigen, gets activated and subsequently migrates to the dark zone of the germinal center where it undergoes further mutation through a process called somatic hypermutation (SHM). This introduces random point mutations in the V-domains, mainly in the CDRs ( 3 ). B-cells having BCRs with mutations that increase affinity to the antigen are selected and may go through further rounds of SHM, eventually resulting in high-affinity antigen-specific antibodies ( 4 ). Identifying the epitope specificity of antibodies is a widely researched topic. Traditional methods to experimentally characterize antibody epitopes entail isolating antigen-specific antibodies followed by binding assays and/or structural studies. The last decade has witnessed major advances made in high-throughput sequencing (HTS) technologies which has enabled their routine use for investigating antigen-specific immune responses ( 5 - 15 ). This has led to an exponential increase in available BCR/antibody sequences. To mine antigen-specific and epitope-specific antibodies from this repertoire of sequences, several computational methods have been developed. These methods work mainly by clustering together antibodies with high sequence identity to one another ( 7 ), ( 16 - 18 ). High sequence similarity between antibodies can be caused by two factors: First, antibodies can originate from the same ancestral BCR and consequently be members of the same clonal lineage. Second, convergent evolution can lead antibodies from different clonal lineages to gain similarity – both in terms of sequence and structure - through somatic mutations, which is favored if they bind the same epitope ( 19 - 22 ). In this work, we investigate which features of antibodies predict whether they bind to a shared epitope. We utilized sequence-and structure-based features to encompass all aspects relevant to antibody specificity and compared different machine-learning models using these features to predict shared epitope specificity. Based on these results, we present a newly developed tool ‘BCRMatch’, which accepts sequences of CDRs of antibodies and uses an ensemble of machine-learning models developed in this study to predict which antibodies share an epitope. Thus, our study provides quantitative insights into feature importance for antibody-epitope recognition and a directly applicable implementation of these findings into a freely available tool. RESULTS Assembling datasets of antibody pairs To delineate the contributions of sequence and structural features of antibodies in predicting their specificity, we assembled three different datasets of antibody pairs along with their features. As detailed in the methods, we used three separate sources for obtaining variable heavy-chain (VH) and light-chain (VL) sequence and structural data on antibodies used to populate the datasets: 1) the Ab-Ligity study ( 12 ), 2) the Coronavirus Antibody Database (Cov-AbDb) ( 13 ), and 3) the Immune Epitope Database (IEDB, www.iedb.org ) ( 14 , 15 ). The Ab-Ligity study also has a pre-constructed dataset of antibody pairs and their corresponding class labels which we have used in this work. The list of features present in each dataset is provided in Table 1 . Figure 1 provides a schematic illustration of the overall process of feature extraction and dataset construction. Download figure Open in new tab Figure 1: Outline of the process used to construct the datasets for training and testing the machine-learning models. View this table: View inline View popup Table 1: Description of antibody features present in the Ab-Ligity, SARS-CoV-2 and IEDB datasets We performed all-against-all comparisons of antibodies separately from each source, to estimate their similarity in sequence and structure. To compare sequence features, two types of sequence alignments were generated for the full-length VH and VL sequences using MUSCLE ( 16 ) and ANARCI ( 17 ). The MUSCLE algorithm aligns sequences of general proteins and is not restricted to antibody sequences. ANARCI is an antibody-aware algorithm as it is based on Hidden Markov Models (HMMs) of variable domain germline sequences. CDR sequences were extracted and aligned based on the ANARCI-annotated full-length VH and VL sequences. These alignments were used to calculate the pairwise sequence identity of either the full-length sequences or just the CDR sequences for every pair of antibodies derived from each source. In addition to using the identity of the CDR sequences as a metric, we also used an approach that scores a given pair of CDR sequences using a k-mer matching algorithm ( 18 ). Thus, there are 4 full-length sequence identity features (two pairwise sequence identity values for each of the full-length VH and VL sequences), 6 CDR sequence identity features (one sequence identity value per CDR loop), and 6 CDR k-mer scores ( 18 ) for each antibody pair. Antibody pairs having 100% sequence identity over their VH and VL sequences aligned using ANARCI were removed from each dataset. Additionally, antibodies in the SARS-CoV-2 and IEDB datasets identical to antibodies in the Ab-Ligity dataset were excluded from the respective datasets to avoid redundancy. The final Ab-Ligity dataset contained a total of 334,968 unique antibody-antibody pairs out of which 333,956 pairs bind to different epitopes and 1,012 pairs bind to a common epitope. Similarly, there are 1,154 antibody-antibody pairs in the SARS-CoV-2 dataset. 910 pairs bind different epitopes and 244 pairs bind shared epitopes. Finally, the IEDB dataset consists of 174,324 antibody-antibody pairs out of which 174,039 pairs bind different epitopes and 285 bind shared epitopes. To assess the 3D structural similarity between pairs of antibodies, we evaluated the paratope shape and the CDR loops. The geometrical similarity of the paratopes was calculated using two different binding site similarity algorithms, resulting in two similarity scores for each paratope pair. The first, G-LoSA (Graph-based Local Structural Alignment) ( 19 ) is a protein binding site similarity tool that employs an iterative maximum clique search algorithm and fragment superposition to identify the best alignment between two local structures. The protein structures being aligned are represented as chemical feature points, and the similarity between the two structures is quantified as a score, referred to as the GA-score, whose values range between 0 and 1. The GA-score of a random pair of structures is 0.49, while the GA-score between identical structures is 1. Ab-Ligity ( 12 ), is adapted from the Ligity method that uses pharmacophores for virtual screening of small molecules ( 20 ). It generates tokens for residues based on their physicochemical properties and employs a hashing algorithm for distance-based grouping of these residues. The outcome of this step is further used to calculate the similarity. The root mean square deviation (RMSD) metric was used to quantify the structural similarity of corresponding CDR loops between a pair of antibodies. There are 6 CDR RMSD values, one for each CDR loop, for each antibody pair. These datasets of antibody pairs containing the respective sequence and structural features were then used to investigate the role of various features in predicting if antibodies share an epitope. Evaluating the predictive ability of individual features To assess how well different sequence and/or structural features can predict whether a pair of antibodies binds to the same epitope, we split the Ab-Ligity full dataset into a training (“Ab-Ligity Full”) and test set in the ratio 3:1 (see methods) while the entire SARS-CoV-2 dataset was used as a second test dataset. For each feature, we calculated the area under the receiver operator characteristic curve (ROC-AUC) of each dataset on 1,000 simulated copies of the test dataset generated by bootstrapping with replacement to estimate a 90% confidence interval of the true ROC-AUC. To emphasize the performance of the prediction at low false positive rates, we also calculated the partial AUC capped at maximum false positive rate of 10% (AUC0.1) ( 21 ). We find that the top-ranking features for the Ab-Ligity dataset include the G-LoSA score (mean ROC-AUC=0.920, AUC0.1=0.859), Ab-Ligity score (ROC-AUC=0.884, AUC0.1=0.821), features associated with the light-chain CDR3 loop (CDRL3) (CDRL3 k-mer score, CDRL3 sequence identity, CDRL3 RMSD) ( Figs. 2a,b red arrows). The heavy-chain CDR2 loop (CDRH2) sequence features also perform closely to the CDRL3 sequence features ( Figs. 2a,b ). For the SARS-CoV-2 dataset, the CDRH2 k-mer score and sequence identity were the best predictors, with mean ROC-AUC values of 0.916 and 0.901, respectively (AUC0.1 = 0.826 and 0.819, Figs. 2c,d ). This was followed by the full-length heavy-chain variable domain (VH) sequence identity (AUC=0.883), and the G-LoSA (AUC=0.868) and Ab-Ligity scores (AUC=0.879) ( Figs. 2c,d ). It is worth noting that for both datasets, the geometrical similarity of the paratope shape as defined by the G-LoSA or Ab-Ligity scores consistently shows a higher predictive performance, compared to that of the individual CDR structural features. Thus, independent of the CDR sequence, the shape of the paratope can also act as a good predictor of antibodies targeting similar epitopes. Download figure Open in new tab Figure 2: ROC-AUC and ROC-AUC0.1 values when using individual features to predict antibodies targeting a common epitope in the Ab-Ligity test dataset (a, b) , and the SARS-CoV-2 dataset (c, d) . Error bars represent the 90% confidence interval (CI). Red arrows indicate top-ranking features.L: the length of the longer sequence was used for calculating the sequence identity. Machine-learning models identify subsets of features important for predicting antibodies sharing an epitope Next, we wanted to gauge whether combining two or more features would improve the prediction of antibodies binding to the same epitope. To achieve this, we trained five different machine-learning classifiers: Random Forest (RF), Logistic Regression (LR), Gaussian Naive Bayes (GNB), XGBoost (XGB) and a Feed Forward Neural Network (FFNN) with four hidden layers on the training subset of the Ab-Ligity full dataset (“Ab-Ligity Full”) ( Fig. 3a ), using a strategy in which we gradually increased the types and numbers of features included in the prediction in order to determine how important they were for successful training. Normalization of features was done by setting their mean and variance values to 0 and 1, respectively. 1,000 bootstrap samples with replacement were generated for the Ab-Ligity and SARS-CoV-2 test datasets ( Fig. 3a ) to calculate 90% confidence interval (CI) of the true AUC for each model. Download figure Open in new tab Figure 3: a) . The Ab-Ligity dataset was split into the training and test dataset. The training dataset was used to train five machine-learning models, whose performance was evaluated on the test subset, as well as two external datasets – the SARS-CoV-2 full dataset, and IEDB full dataset. b. ) Each dataset was then split into “high-similarity” and “low-similarity” datasets using a sequence identity cutoff of 80% averaged over the VH and VL sequences. c.) At high levels of sequence identity, Logistic Regression models trained only on sequence features show comparable performance to models trained using a combination of sequence and structural features ((i).top panel,). Structural features, mainly represented by the binding site similarity (G-LoSA or Ab-Ligity score), lead to performance gain over models trained only on sequence features, when tested on the Ab-Ligity low-similarity dataset ((ii).bottom panel). Error bars represent the 90% confidence interval. The “No Classifier” column represents the performance of the respective features when used directly as predictors on the test dataset. Avg CDR RMSD is the average RMSD of the six CDR loops while Avg CDR Seq ID is the average percent sequence identity of the six CDR loops. d.) Models that learn from both structural and sequence features outperform models trained on sequence features alone, when evaluated on the SARS-CoV-2 high-similarity dataset ((i).top panel). Inclusion of structural features does not improve performance of models trained on sequence-only features when tested on the SARS-CoV-2 low-similarity dataset ((ii).bottom panel). Error bars denote the 90% confidence interval. When assessing performance on the Ab-Ligity test dataset, we found that performance of the RF model using only pairwise sequence identity of the six CDR loops (6 features) was similar to that obtained using only pairwise RMSD of the CDR loops (6 features) ( Fig. S1a,S1b , AUC=0.943, AUC0.1=0.929 for only CDR sequence features; AUC = 0.951, AUC0.1=0.940 for only CDR RMSD features). This pattern was observed across the other four ML models as well ( Fig. S1a,S1b ). Training the models on a combined set of CDR sequence identity and CDR RMSD features (12 features in total) resulted in a RF AUC of 0.952 and AUC0.1 of 0.944 ( Fig. S1a,S1b ). Substituting the CDR RMSD features by either the G-LoSA score or Ab-Ligity score, which quantifies the similarity between the shapes of the paratopes, negligibly improved the performances of the models (RF AUC=0.952, AUC0.1=0.929 for CDR sequence identity and G-LoSA score; RF AUC=0.956, AUC0.1=0.932 for CDR sequence identity and Ab-Ligity score, Fig. S1a,S1b ). Next, we trained the models on the entire set of 13 features (CDR sequence identity, CDR RMSD, and either the G-LoSA score or Ab-Ligity score). The top performing models (RF and XGB) showed a marginal improvement (AUC=0.966, AUC0.1=0.951) over the corresponding models trained on combined features of CDR sequence identity and paratope shape similarity (G-LoSA/Ab-Ligity scores) (AUC=0.956) ( Fig. S1a,S1b ). Thus, these results demonstrate that the CDR sequences retain most of the information about antibody specificity for the present task. Testing on the SARS-CoV-2 dataset indicated that models trained on only CDR sequence identity features (RF AUC = 0.898, AUC0.1=0.763) outperformed models trained on CDR RMSD features (RF AUC = 0.811, AUC0.1=0.761, Fig. S1c,S1d ). However, it should be noted that, unlike the Ab-Ligity dataset, the SARS-CoV-2 dataset includes antibody pairs where the CDR3 loops are not of the same length. Therefore, the lower performance of CDR RMSD features in comparison to CDR sequence identity features might result from the RMSD being a poor measure for structural similarity between sequences of different lengths. When substituting the CDR RMSD by other structural features such as the G-LoSA or Ab-Ligity score, which represents the paratope shape similarity, performance was improved. A combination of CDR sequence identity and paratope shape similarity features resulted in RF AUC and AUC0.1 values of 0.920 and 0.862, respectively ( Fig. S1c,S1d ). It is possible that since G-LoSA and Ab-Ligity encode the overall geometrical structure of the paratope, they capture information about antibody specificity that might be excluded from the structure of the CDR loops. Together these results further underscore the importance of CDR sequence identity and paratope shape for predicting if antibodies share a common epitope. Structural features improve prediction performance when antibodies have low sequence similarity Given that antibodies with highly similar sequences are likely to adopt highly similar structures, it is possible that the benefit of including structural information in predictions is more pronounced for antibodies that have lower sequence similarity ( 12 ), ( 33 , 34 ). We examined this using two approaches. First, we investigated the impact of the sequence similarity between the Ab-Ligity training and test data which is described in more detail in the supplementary text. Second, we split the Ab-Ligity and SARS-CoV-2 datasets each into two subsets of “high-similarity” and “low-similarity” antibody pairs ( Fig. 3b ) using a cutoff of 80% sequence identity averaged over the full-length heavy (VH) and light-chain (VL) variable domain sequences. The cutoff was chosen so that the number of antibody pairs in the positive class was approximately similar in both the high-similarity and low-similarity subsets of the Ab-Ligity and SARS-CoV-2 datasets. The details of the resulting subsets are listed in Table 2 . View this table: View inline View popup Download powerpoint Table 2: Details of antibody pairs present in the high-similarity and low-similarity subsets of each dataset We used 12 different train-test combinations along with bootstrapping to evaluate model performance ( Fig. S2 ). Models were trained on one of the following: the full SARS-CoV-2 dataset, the SARS-CoV-2 high-similarity dataset, and the SARS-CoV-2 low-similarity dataset ( Fig. S2a ). Evaluation of these trained models on the Ab-Ligity high-similarity dataset showed that irrespective of the type of training dataset used (full, high-similarity, or low-similarity), sequence identity features alone could strongly predict if two antibodies share an epitope and including structural features did not have any advantage ( Fig 3c.i ; AUC of striped blue bar=0.989, Fig. S3a ). In contrast, when the models were tested on the Ab-Ligity low-similarity dataset, structural features became important for improving predictions. Moreover, models trained on only the low-similarity subset of the SARS-CoV-2 dataset showed comparable performances to the corresponding models trained on the full dataset. For these models, combinations of CDR sequence identity and the G-LoSA score had the highest predictive performance (LR AUC=0.838, AUC0.1=0.753,) followed by CDR sequence identity combined with either CDR RMSD (LR AUC=0.831, AUC0.1=0.754.) or Ab-Ligity score (AUC=0.827, AUC0.1=0.706) ( Fig 3c.ii , Fig. S3c,S3f) . The models that utilized only CDR sequence identity features underperformed. The AUC and AUC0.1 values of the other ML models are shown in Figs. S4-S7 . Models trained on only the high-similarity dataset demonstrated substantial performance loss across all feature combinations on the low-similarity test dataset, when compared with models trained on the full or low-similarity datasets ( Fig. 3c.ii ). Within this category, models that utilized a combination of CDR sequence identity and G-LoSA score had the highest performance ( Fig. 3c.ii , LR AUC=0.807,AUC0.1=0.695, Figs S3d,S3f ). Overall, these results highlight that structural features become more informative when the sequence identity between two antibodies is low. Including antibody pairs with low sequence identity in the training dataset is thus vital for reliable model performance. We then repeated this process by swapping the training and test datasets. Models were trained on the full, high- and low-similarity subsets of the Ab-Ligity dataset and tested on the SARS-CoV-2 datasets ( Fig. S2b ). As expected, the sequence similarity of antibody pairs in the training dataset again did not make a difference when the models were evaluated on the high-similarity SARS-CoV-2 dataset. When models were tested on the low-similarity SARS-CoV-2 dataset, models which were trained on the full- or low-similarity datasets performed better than those trained on high-similarity datasets alone. Models utilizing only CDR sequence identity features had similar performance to models that used both sequence identity and structural features ( Fig. 3d.ii . , Figs. S8-S11 ). For example, the LR models that used only CDR sequence identity features in the full or low-similarity training datasets had AUC values of 0.829 and 0.847, respectively ( Fig.3d.ii. ). Addition of the G-LoSA or Ab-Ligity scores did not improve their performances. ( Fig.3d.ii. ). This contrasts with what we observed with models evaluated on the Ab-Ligity low-similarity dataset. This suggests that despite the models learning from structural features in the training dataset, the structural features in the SARS-CoV-2 test dataset do not provide additional information beyond those encoded in the sequence. This could be due to the SARS-CoV-2 dataset being comprised of antibodies obtained early in the Covid19 pandemic, which is expected to consist of antibodies that were generated after a single priming, resulting in low levels of somatic hypermutation (SHM) and their sequences being very close to the germline sequences, as demonstrated in other studies ( 24 ).This could result in the antibodies having very similar structures with low structural variation which limits the ability of structural features to distinguish between antibodies binding different epitopes. Testing on IEDB dataset reveals importance of having the right training dataset The Immune Epitope Database (IEDB) ( 25 ) contains experimentally validated B cell epitopes and sequences of the antigen receptors recognizing them, if available. We saw earlier that the five ML models showed good performances on the Ab-Ligity test dataset and the SARS-CoV-2 dataset, even when only CDR sequence identity features were used. Therefore, we wanted to test how well these models perform on the IEDB dataset if we restricted the features to only CDR sequence identities. We first trained the five ML models on the training component of the full Ab-Ligity dataset (“Ab-Ligity Full”) taking into account only the sequence identities of the six CDR loops, and tested their predictive performance on the full IEDB dataset. All five models showed similar mean AUC values between 0.786 and 0.802 ( Fig. S12 ). Next, we split the IEDB dataset into the “high-similarity” and “low-similarity” subsets using an average sequence identity of 80% over the VH and VL sequences. The number of pairs in the positive and negative classes is listed in Table 2 . The five ML models were each trained separately on three datasets: Ab-Ligity Full, Ab-Ligity high-similarity dataset, and Ab-Ligity low-similarity dataset. The performance of each trained model was tested on the IEDB high-similarity dataset ( Fig. 4a , Fig. S13a ), and the IEDB low-similarity dataset ( Fig. 4b , Fig. S13b ). As expected, all models showed higher predictive performance (AUC ranges between 0.884 to 0.911) on the high-similarity test dataset than on the low-similarity test dataset (range of mean AUC values:0.546 to 0.717). For the low-similarity test dataset, we again noticed that the models trained on the high-similarity dataset performed worse than models trained on the full or low-similarity datasets ( Fig. 4b , Fig. S13b ). This observation further reinforces the importance of having antibody pairs with diverse sequence identities in the training dataset for model performance. Download figure Open in new tab Figure 4: Training on low sequence identity pairs leads to better model performance on the IEDB low-similarity dataset. ROC-AUC values of the different ML models when tested on the IEDB high-similarity dataset (top) and the IEDB low-similarity dataset (bottom). Error bars represent the 90% confidence interval. Replacing sequence identity score metric with k-mer similarity score metric does not substantially impact model performance Our group previously developed a method to evaluate the similarity of TCR sequences ( 18 ) using a “k-mer similarity score”, to quantify the similarity between pairs of TCR sequences without the need of aligning sequences. We investigated whether substituting aligned CDR sequence identity with their corresponding k-mer similarity scores would affect the performance of the ML models. We trained models on either the full Ab-Ligity training dataset or the full SARS-CoV-2 dataset, using CDR k-mer scores instead of CDR sequence identities ( Fig 5 , Fig. S14 ). Evaluation on the full test datasets (Ab-Ligity, SARS-CoV-2, and IEDB) showed that using the CDR k-mer score in place of the CDR sequence identity feature did not substantially influence the performance of models trained on equivalent feature combinations ( Fig. S14 ). When the low-similarity datasets were used for testing, we observed a slight reduction in model performance after substituting the CDR sequence identities by the CDR k-mer scores ( Fig 5 ). For instance, the LR model trained on the SARS-CoV-2 dataset and tested on the Ab-Ligity low-similarity dataset had an AUC of 0.706 when only CDR k-mer scores were used ( Fig. 5a ), and an AUC of 0.802 if only CDR sequence identities were used ( Fig 3c.ii . , “Full”). Testing on the IEDB low-similarity dataset revealed no major differences in performance for the LR model when interchanging between CDR k-mer score features ( Fig. 5c ) and CDR sequence identity features ( Fig. 4 , lower panel ). The other models also displayed a similar trend ( Figs. S15-17 ). Overall, these results show that the CDR k-mer score can be used instead of CDR sequence identity, as no sequence alignment is required, which is beneficial if no full-length sequences are available. Download figure Open in new tab Figure 5: Replacing the CDR sequence identity by its corresponding k-mer score does not lead to major differences in model performance. a.) ROC-AUC values of the LR models tested on the Ab-Ligity low-similarity dataset (trained on the SARS-CoV-2 full dataset). The “No Classifier” column indicates the performance of the average CDR k-mer score when it is used directly as a predictor on the test dataset. b.) Performance on the SARS-CoV-2 low-similarity dataset (trained on Ab-Ligity full dataset). c.) AUC values of the five ML models when tested on the IEDB low-similarity dataset (trained on Ab-Ligity full dataset). RF:Random Forest, LR:Logistic Regression, GNB:Gaussian Naive Bayes, XGB:XGBoost, FFNN:Feedforward Neural Network. The BCRMatch standalone tool The results of this study were used to inform the design of a standalone tool termed ‘BCRMatch’ that can be freely downloaded and used as a Docker container or installed locally ( https://github.com/IEDB/BCRMatch ). Since we evaluated five different ML methods in this work, we also tested the performance of an ensemble obtained by combining different classifiers. Each ML classifier was used to predict the probabilities of antibody pairs in the entire IEDB and SARS-CoV-2 datasets sharing an epitope. The scores from both datasets were combined into a single dataset. Random antibody pairs were chosen from both positive and negative classes in the IEDB dataset and assigned to a test dataset. Percentile ranks were calculated for each antibody pair in this test dataset, using the distribution of scores previously calculated on the IEDB and SARS-CoV-2 datasets. Following this, we calculated the harmonic mean of the percentile ranks of the five classifiers, as well as only that of the top-ranking classifiers (LR and GNB), for each antibody pair. The ROC-AUC values of the individual classifiers’ percentile ranks and the harmonic mean of the percentile ranks are shown in Fig. S18 . Based on these findings, we define the BCRMatch tool as an ensemble of the LR and GNB classifiers. The tool can accept either the full-length VH and VL sequences, or the sequences of the six CDR loops of antibodies as input. The tool extracts the CDR sequences if VH and VL sequences are provided. It then calculates the k-mer scores of corresponding CDR sequences for each antibody pair, and uses the pre-trained machine-learning models to make the predictions. The output of the tool is a table containing the probability values of the LR and GNB classifiers, their corresponding percentile ranks, and the harmonic mean of the percentile rank, for each antibody pair. In the future, we plan to build a BCRMatch webserver that will be hosted on the IEDB tools website. Examining the impact of gene usage vs. CDRs We were intrigued by the high performance of the CDRH2 sequence identity feature on both the Ab-Ligity and SARS-CoV-2 datasets when it is used directly as a predictor, and in particular how it outperformed the CDRH3 performance. To confirm this finding, we repeated this step on the IEDB dataset and observed that the CDRH1 and CDRH2 sequence identity features also had better performance than CDRH3 sequence identity ( Fig. 6 and Fig. S19 ). Since, the CDRH1 and CDRH2 sequences are encoded by the V germline genes, we asked if predicting shared epitopes could simply be done by identifying common V genes. We used ANARCI to assign the closest-matching V germline gene to each of the heavy-chain and light-chain sequences of the antibodies. Antibody pairs that had the same heavy-chain or light-chain V gene were assigned a score of 1 while pairs that have different V genes were assigned a score of 0. A score of 2 was assigned to pairs that have both same heavy-chain and light-chain V genes. The performances of these three V gene features as predictors were evaluated in the same manner as the other individual features, on the Ab-Ligity and IEDB datasets. Remarkably, the V gene features showed high performance on both datasets ( Fig. 6 ) indicating that many antibodies binding a common epitope also share the same V genes. However, the performance of CDRH1 and CDRH2 sequence identity features still outperformed the V gene features ( Fig. 6 ). This strongly indicates that the CDRH1 and CDRH2 sequences are of vital importance, possibly more than CDRH3, in predicting antibody specificity. Download figure Open in new tab Figure 6. Same V genes are highly predictive of antibodies sharing an epitope but not as much as the CDR1 and CDR2 sequences. Comparison of ROC-AUC values when using same heavy-chain V gene, light-chain V-gene, or both, as predictors, alongside CDR sequence identity in the i. Ab-Ligity test dataset. ii. IEDB dataset. DISCUSSION Many machine-learning tools for predicting antibody specificity, antibody epitopes, or antigen-antibody interactions exist ( 36 - 39 ). These tools adopt various methodologies such as training on only antibody sequences ( 28 ), on sequences of antibodies specific to a particular antigen such as the SARS-CoV-2 Spike or influenza HA proteins ( 41 , 42 ), on heavy-chain variable domain sequences ( 31 ), or on structures of antibody-antigen complexes ( 44 -( 33 ) 46 ). Fewer studies have described and compared clustering methods that use both sequence and structural information to predict groups of antibodies common to an epitope. Xu and colleagues trained a support vector machine (SVM) classifier on sequence and structure-based features of pairs of BCRs and used this to derive a similarity score ( 35 ). This similarity score was then used to hierarchically cluster the BCRs. The authors also state that the information in the classifier comes mainly from sequence features although structural features also help improve classifier accuracy. They further build on that work by developing a method that clusters antibodies based on only CDR sequences of the heavy chain variable region (CDRH) ( 36 ). Another study by Chomicz and colleagues performed a benchmarking of different clustering methods for antibodies and created an online tool CLAP that enables users to visualize clusters grouped using the different clustering methods ( 37 ). Our study here expands on this previous work by specifically investigating the contribution of different features of the antibodies to their overlapping binding specificity while controlling for high vs. low-sequence similarity. An interesting finding from this study was how the model performances on the low-similarity test datasets varied with the type of training data used. When the ML models were trained on the high-similarity datasets, using only CDR sequence identity features, they showed reduced performance on all low-similarity test datasets. Their performance on the low-similarity test datasets improved when either a mix of both high- and low-similarity, or only low-similarity antibody pairs were used to train them. It also became clear that when only high-similarity antibody pairs were used to train the ML models, the contribution of structural features greatly improved model performance on the low-similarity test datasets. This demonstrates that including antibody pairs with a wide range of sequence similarities in the training dataset can boost model performance. A surprising revelation was how the CDRH1 and CDRH2 sequence features consistently outperformed CDRH3 sequence features and V gene identity. While antibody pairs that bind a common epitope share the same V genes in the majority of cases, pairs having different heavy-chain or light-chain V genes binding the same epitope were also present in our datasets. This prompted us to investigate if these V gene pairs occurred more frequently than what would be expected by chance, since they would need to share similar sequence or structural features that enable them to bind the same epitope. We calculated the observed and expected frequency of the co-occurrences of the V gene pairs, as well as the fold change of observed over expected frequency. The fold change values are plotted as a heatmap in Fig. S20a, S20b . The heavy-chain V gene IGHV1-46 co-occurred often with IGHV1-2 and IGHV1-18. These genes were present mainly in antibodies that target the CD4 binding site on HIV gp120 ( 38 ). The high similarity between the CDRH2 sequences of these antibodies made it hard to distinguish whether they originated from IGHV1-2 or IGHV1-18 germline genes. Among gene pairs in the IEDB dataset, heavy-chain genes IGHV7-1 and IGHV3-1 had the highest fold change, followed by the gene pair IGHV3-33 and IGHV1-2. Upon closer inspection of the antibody pairs which were encoded by the frequently co-occurring heavy-chain V genes (IGHV1-46 and IGHV1-18, IGHV7-1 and IGHV3-1, IGHV3-33 and IGHV1-2), we observed shared motifs in the CDRH2 and CDRH1 sequences of these genes ( Fig. S20c ). Our findings here are supported by previous studies which showed that antibodies use germline-encoded amino acid binding (GRAB) motifs to recognize public epitopes ( 39 ). In their study, the authors discovered lysine-specific GRAB motifs and suggest that these motifs could also have specificity for certain amino acid combinations. Further extensive work will be needed to discover additional motifs. Findings from this study and our study both suggest a mechanism in which the CDR1 and CDR2 regions are involved in initial recognition of the epitope while the CDR3 region contributes to increasing the affinity between the antibody and antigen without changing the epitope. This highlights the importance of the CDRH1 and H2 loops in mediating antibody specificity to epitopes. A highly cited study for the importance of CDRH3 for antibody epitope specificity was published by Xu and Davis ( 40 ). In their study, the authors use transgenic mice harboring only a single human V H 5-51 gene, and different D H and J H genes. Immunization of these mice with different antigens and sequencing of these antigen-specific antibodies derived from the immunized mice revealed that these antibodies differed in their CDRH3 sequences while the rest of the sequences remained the same. They attributed the specificity of the antigen-specific antibodies to the differences in their CDRH3 sequences. While this is true, the study does not show the relative importance of the CDR1/CDR2 versus the CDR3 loops since the CDR1/2 sequences are genetically set in this mouse model and could obtain diversity only due to somatic hypermutation. The study by Shrock and co-authors ( 39 ), shows that antibodies containing the IGHV5-51 gene bind to different antigens using a similar binding motif and reveal the presence of a GRAB motif in IGHV5-51. This GRAB motif can also be found in the sequences of the antibodies described in the study by Xu and Davis. Therefore, this raises a possibility that while the CDRH3 can lead to recognition of different antigens, it may not be as important as the CDRH1 and CDRH2 for conferring specificity/initial epitope recognition to the antibody when a diversity of V genes is available. The BCRMatch tool described here is built on the insights gained from this work, and can be used for predicting epitopes of antibodies based on shared features with other antibodies having known epitopes, thereby enabling researchers to rapidly predict epitope candidates for their antibodies of interest. The tool will be made publicly available and we anticipate that it will become increasingly valuable as we continue to gather more antibodies with known specificities in the IEDB. One caveat of this work is that the antibody pairs that do not share an epitope, which we consider as the negative data in this study, has not been experimentally validated. Another caveat is the limited number of antibodies included in the SARS-CoV-2 dataset. The dataset was built using antibodies downloaded from the Cov-AbDab in late 2020, when the original SARS-CoV-2 virus dominated the pandemic, and structures added later were not included in the dataset. However, the datasets will be updated and models re-trained on a periodic basis, to leverage the ever-expanding amount of publicly available antibody data. MATERIALS AND METHODS Antibody sources for constructing the datasets IEDB dataset Curated BCR entries were retrieved from the Immune Epitope Database (IEDB, www.iedb.org ) (Vita et al., 2024) ( 15 ) and are provided in Table S1 . Each entry contains information about the receptor group to which the BCR entry belongs, the receptor id, the variable heavy (V, D, J) and light-chain (V,J) genes, the full-length variable domain sequences of the heavy- and light-chains, the CDR sequences, the epitope, antigen containing the epitope, organism to which the antigen belongs, PDB ID of any available structures, and number of assays describing the specific BCR. The receptor id is a numeric IEDB identifier that is assigned to a specific immune receptor. Receptors sharing the same CDR3 sequence are grouped under a “receptor group” ( 15 ). The IEDB definition of a B-cell epitope requires mapping to a molecular structure of not more than 5 kiloDaltons. These must have been experimentally validated for binding to a BCR/ antibody. The residues comprising the epitope are defined in the “Epitopes” data field in the Results page after a query is performed in the search interface of the IEDB home page ( 25 ). Receptors without full-length variable domain sequence data were excluded. For each unique epitope entry in the dataset, which is the set of residues in the epitope not identical to another entry in the same dataset, BCRs with non-redundant receptor ids that bind the particular epitope were compiled into a list. Receptor ids listed under a specific epitope are considered to bind to the same epitope. Therefore, all possible pairs of B-cell receptor ids falling under this epitope are assigned to the positive class. Pairs of B-cell receptor ids where each B-cell receptor binds to a different epitope were included in the negative class. Ab-Ligity dataset The original dataset of antibody pairs used in the Ab-Ligity study ( 12 ) contains 920 antigen-antibody complexes and their corresponding Ab-Ligity scores and is restricted to only antibody pairs in which their CDRH3 loops are of equal length. Only a single copy of each antibody is present in the original Ab-Ligity dataset. For the purpose of our study, upon request to the authors, we also obtained antibody models and predicted paratopes used to test the Ab-Ligity method. In their study, the authors used ABodyBuilder ( 41 ) to build antibody models, and for predicting paratope residues, another method, Parapred ( 42 ) was utilized. Parapred assigns scores to CDR residues that reflects their likelihood of binding. Only those entries for which modelled antibody structures were available were included in the final dataset. SARS-CoV-2 dataset SARS-CoV-2 antibody-antigen complex structures were manually retrieved from the Coronavirus Antibody Database (CovAbDb) ( 13 ) in October 2020. Atomic coordinates of epitope residues from every complex were extracted using an in-house script. A residue on the antigen chain was defined to be part of the epitope if any of its non-hydrogen atoms were located within a 5 Å distance from any non-hydrogen atom on the antibody chain. These epitope residues were saved into separate files in PDB format. Using a protein binding site similarity algorithm (G-LoSA) ( 19 ), described in detail in the next section, we quantified the epitope similarity by calculating G-LoSA scores for every pair of epitopes. These scores are illustrated as a heatmap in ( Supp. Fig. 1 ). Based on this and combined with visual inspection of each antibody-antigen complex structure, the epitopes were categorized into one of the epitope classes defined in ( 43 ) ( Fig. S21 ). Class 1 overlaps with the angiotensin-converting enzyme 2 (ACE2)-binding site on the receptor-binding domain (RBD) of SARS-CoV-2 and is accessible only when the RBD is in the “up” conformation. Class 2 also overlaps with the ACE2 binding site but can be accessed when the RBD is both in the “up” or “down” conformation. Class 3 does not overlap with the ACE2 binding site and can be accessed in both the “up” and “down” conformations, while Class 4 also does not overlap with the ACE2 binding site but is accessible only in the “up” conformation. Due to the highly overlapping nature of the epitopes on the RBD, we set a stringent G-LoSA score (which translates to high epitope similarity) of 0.75 as the threshold for assigning class labels. Antibody pairs whose corresponding epitopes had a G-LoSA score of 0.75 or above were considered to belong to the positive class (binding to a common epitope), and the rest were assigned to the negative class (binding to a different epitope). Estimating three-dimensional (3D) similarity of paratopes The geometrical similarity/similarity of the 3-D binding site was assessed using two methods. G-LoSA The Ab-Ligity study ( 12 ) contains information about predicted paratope residues on the modelled antibodies in their dataset. To calculate the paratope similarity of these paratopes using G-LoSA ( 19 ), the atomic coordinates of the predicted paratope residues were extracted from the pre-generated full-length 3D models of the antibodies ( 12 ) using in-house scripts. All-against-all pairwise comparison of the paratopes was carried out to obtain the G-LoSA scores. For the SARS-CoV-2 dataset, experimentally-determined 3D structures of the antigen-antibody complexes were used in which the CDR loops can be in a different conformation from the unbound state. A two-step process was therefore used to extract paratope residues. In the first step, residue details such as residue number, residue name and atomic coordinates of paratope residues located within 5 Å of any antigen non-hydrogen atom were extracted and saved into separate PDB files. In the second step, antibody-antigen complex structures were separated, and the side-chain residues of all antibody structures were subjected to conformational rearrangement using the SCWRL4 algorithm to mimic the unbound state of the antibody. Using the details of residue ids obtained in the first step, the modified atomic coordinates of the paratope residues were extracted from the SCRWL4 processed antibody structures and saved into separate files in PDB format. These files were used for all-against-all G-LoSA similarity comparison of the paratopes in the SARS-CoV-2 dataset. Ab-Ligity In addition to G-LoSA, we also used Ab-Ligity ( 12 ) to measure the paratope similarity. The Ab-Ligity algorithm tokenizes both paratope and epitope residues according to their chemical properties (aliphatic, aromatic, basic, acidic to name a few) and then uses a hashing function to bin these tokenized residues based on their pairwise distance. The final outcome of this process is a hash table for each binding site. The Tversky index of the pair of hash tables corresponding to the two binding sites is used to quantify the similarity between the binding sites. Calculation of sequence similarity For assessing sequence similarity between antibodies, sequences of the corresponding PDB structures of antibodies present in the Ab-Ligity and SARS-CoV-2 dataset were retrieved from the Protein Data Bank. Full-length variable domain sequence data, as well as CDR sequence data were also extracted from the IEDB ( www.iedb.org ) ( 14 ). 1. All-against-all pairwise sequence identity of full-length heavy and light-chain variable domain sequences aligned using MUSCLE Heavy and light-chain sequences were aligned using MUSCLE (Multiple Sequence Alignment with Log-Expectation) ( 16 ) which is a general algorithm not restricted to only antibody or T-cell receptor sequences. Sequence identity between each sequence and every other sequence in the alignment was estimated by counting the number of identical residues divided by either the length of the shorter sequence or the length of the longer sequence. 2. All-against-all pairwise sequence identity of full-length heavy and light-chain variable domain sequences aligned using ANARCI ANARCI ( 17 ) works by aligning the query sequence to a database of Hidden Markov Models (HMMs). Each HMM is based on the putative germline sequences of a particular variable domain type for a specific species. This is followed by annotating the aligned residues according to one of the numbering schemes (Kabat, Chothia, IMGT, Martin) ( 44 ). The heavy and light-chain sequences were aligned using ANARCI, and the sequence identity calculated in the same manner as done for MUSCLE-aligned sequences. 3. All-against-all pairwise sequence identity of the CDR loop regions From the output of ANARCI, the aligned sequences of each CDR loop region were extracted into separate FASTA files. Pairwise sequence identity for each of the six CDR regions was calculated by dividing the number of identical residues by the minimum length of the aligned sequences. 4. All-against-all pairwise CDR k-mer scores Apart from calculating the pairwise sequence identity of the CDR loops, we also used another approach to estimate the similarity between CDR sequences. This method is an alignment-free k-mer approach currently implemented in the TCRMatch algorithm ( 18 ). In this approach, each sequence within the pair is broken down into sets of k-mers, with k ranging from 1 to length of the shortest sequence. K-mer pairs between both sequences are compared and a series of calculations ultimately lead to a final ‘k-mer’ score between 0 and 1. Calculating structural similarity of CDR loops Structural similarity was assessed by calculating the root mean square deviation (RMSD) of backbone C α atoms in each CDR loop between pairs of antibodies. CDR loops were defined based on the IMGT numbering scheme. For antibodies in the Ab-Ligity dataset, the RMSD was calculated on the modeled antibody structures rather than on the experimental structures since, in a real-world scenario, structures of many antibodies are not available, and it is more likely that an antibody model would be used instead. Structures of antibodies present in the SARS-CoV-2 dataset were first processed using SCWRL4 to rearrange side-chain orientations and the RMSD was calculated for each CDR loop on the processed antibody structures. Building supervised machine-learning models Splitting dataset into training and test dataset Each of the three datasets (Ab-Ligity, SARS-CoV-2 and IEDB) contain antibody pairs that are either annotated as binding to the same epitope, and assigned to the positive class (‘1’), or annotated as not binding the same epitope and assigned to the negative class (‘0’). We excluded antibody pairs already present in the Ab-Ligity dataset, from the SARS-CoV-2 and IEDB datasets by identifying and removing antibodies having 100% sequence identity in both their heavy-chain and light-chain sequences with antibodies in the Ab-Ligity dataset. We used different train-test strategies for building and assessing the performance of the machine-learning models. First, using Scikit-learn’s train_test split module along with the StratifiedKFold module, the full Ab-Ligity dataset was then shuffled and split into 75% training and 25% test, with a fixed random seed set to 0 to ensure reproducibility. Since the dataset is imbalanced, the random splitting in a stratified manner was done to ensure that the training and test datasets each have the same percentage of positive and negative classes as in the undivided dataset. In addition to the test set of the Ab-Ligity dataset, we also used the external SARS-CoV-2 and IEDB datasets for testing the performance of the models. Second, each of the full Ab-Ligity, SARS-CoV-2 and IEDB datasets were split into sub-datasets of “high-similarity” and “low-similarity” antibody pairs based on a sequence identity threshold of 80% averaged over the VH and VL sequences. The training component of the full Ab-Ligity dataset, the “high-similarity” subset or the “low-similarity” subsets of Ab-Ligity dataset were considered as different training datasets, and the “high-similarity” and “low-similarity” subsets of the SARS-CoV-2 or IEDB datasets were considered as different test datasets. Third, the full SARS-CoV-2 dataset, its “high-similarity” subset, or “low-similarity” subset were used as separate training datasets, while the “high-similarity and “low-similarity” subsets of the Ab-Ligity dataset were used as separate test datasets. Training the binary classifiers We trained five machine-learning classifiers, Random Forest (RF), Logistic Regression (LR), Gaussian Naive Bayes (GNB), XGBoost (XGB) and a Feed Forward Neural Network (FFNN) in order to build models capable of predicting if a pair of antibodies bind to the same epitope based on selected antibody features. We used the scikit-learn package to implement and train the RF, LR and GNB classifiers. The XGB classifier was implemented using the XGBoost Python package and the FFNN classifier implemented in Tensorflow with Keras as the application programming interface. Prior to training, we carried out normalization of the data present only in the training dataset using scikit-learn’s StandardScaler module. This module calculates the mean and variance of each feature, from the values present only in the training dataset, and then transforms each feature by subtracting the mean and dividing by the variance. Values of features in the test data were normalized by using the scaling values computed on the training dataset. For the RF classifier, the number of decision trees was set to 100, and the maximum depth of each decision tree was set to 10. To decide the best split, the ‘entropy’ criterion was selected, and the number of features to be considered at each split was set to the square root of the number of features included. A random state of 0 was specified to ensure the reproducibility of results since the results vary due to the bootstrapping of the samples as well as the features considered at each split in the decision tree. GNB and LR models were trained using the default hyperparameters of scikit-learn. For the XGB and FFNN classifiers, hyperparameter tuning was carried out to identify the best combination of hyperparameters. In order to test combinations of hyperparameters for training the XGB classifier, a grid search with stratified 10-fold cross-validation was performed on the training dataset over the following parameters (i). maximum depth: 3,6. (ii). number of estimators: 100, 150, 200. (iii). Learning rate: 0.05, 0.1,0.2,0.3. The final set of hyperparameters chosen was 200 for number of estimators, maximum depth of 6 and a learning rate of 0.1. Hyperparameter tuning for the FFNN classifier was carried out in two steps. First, a random search stratified 2-fold cross-validation on the training dataset, which tries out random combinations of user-provided hyperparameters. The following hyperparameters were tested during this step. (i). Optimizer: Stochastic Gradient Descent (SGD), Adam, Adagrad, Momentum. (ii). Number of epochs: 10, 20, 40. (iii). Learning rate: 0.0001, 0.005, 0.001,0.005. (iv). L2 regularization: 0.01, 0.02. (v). Dropout rate: 0.2, 0.5, 0.8. (vi). Number of Neurons: 5, 10,20, 30, 40, 50, 60, 70. (vii). Batch size: 40, 64, 100. (viii). Number of hidden layers: 3, 4, 5. In the second step, a grid search stratified 5-fold cross-validation was performed on the training data over all possible combinations of these hyperparameters: (i). Optimizer: SGD, Adam. (ii). Number of epochs: 20, 30, 50. (iii). Learning rate: 0.005, 0.001, 0.05. (iv). L2 regularization: 0.01. (v). Dropout rate: 0.5, 0.8. Number of Neurons: 20, 30. (vii). Batch size: 64, 128. The best combination of hyperparameters after monitoring the loss on the training set and validation set was found to be with SGD as the optimizer, number of epochs set to 70, number of hidden layers equal to 4, learning rate of 0.001, dropout rate of 0.5, number of neurons set to 30, batch size of 128 and L2 regularization 0.01. Developing a command line tool for BCRMatch Models were trained separately on the Ab-Ligity and IEDB datasets and serialized as pickle files. These models, along with the code, are included with the standalone ( https://github.com/IEDB/BCRMatch ). Models will be periodically retrained with updated datasets and will be made available via the IEDB Downloads server as well as through updated container images. Competing interests Authors declare that they have no competing interests. Data and materials availability All data are available in the main text and supplementary information. The code used to perform the analysis described in this paper, and additional sequence and structural data are available upon request. ACKNOWLEDGMENTS We are grateful to the members of the IEDB, the Bioinformatics Core, and the IT team at the La Jolla Institute for Immunology for their help. We also thank Dr. Wing Ki Wong, the author behind the Ab-Ligity study, for sharing the modelled structures of the antibodies, as well as their predicted paratopes. The research described in this study was supported by the National Institute of Allergy and Infectious Diseases of NIH award no. 75N93019C00001. Funder Information Declared National Institute of Allergy and Infectious Diseases, https://ror.org/043z4tv69 REFERENCES 1. ↵ N. Hozumi , S. Tonegawa, Evidence for somatic rearrangement of immunoglobulin genes coding for variable and constant regions. 1976 [classical article] . Proc. Natl. Acad. Sci. U. S. A. 73 , 3628 – 3632 ( 1976 ). OpenUrl Abstract / FREE Full Text 2. ↵ I. Mikocziova , V. Greiff , L. M. Sollid , Immunoglobulin germline gene variation and its impact on human disease . ( 2021 ). doi: 10.1038/s41435-021-00145-5 . OpenUrl CrossRef PubMed 3. ↵ L. Wei , R. Chahwan , S. Wang , X. Wang , P. T. Pham , M. F. Goodman , A. Bergman , M. D. Scharff , T. MacCarthy , Overlapping hotspots in CDRs are critical sites for V region diversification . Proc. Natl. Acad. Sci. U. S. A . 112 , E728 – E737 ( 2015 ). OpenUrl Abstract / FREE Full Text 4. ↵ L. Mesin , J. Ersching , G. D. Victora , Germinal Center B Cell Dynamics . ( 2016 ). doi: 10.1016/j.immuni.2016.09.001 . OpenUrl CrossRef PubMed 5. ↵ B. J. Dekosky , G. C. Ippolito , R. P. Deschner , J. J. Lavinder , Y. Wine , B. M. Rawlings , N. Varadarajan , C. Giesecke , T. Dörner , S. F. Andrews , P. C. Wilson , S. P. Hunicke-Smith , C. G. Willson , A. D. Ellington , G. Georgiou , High-throughput sequencing of the paired human immunoglobulin heavy and light chain repertoire . Nat. Biotechnol . 31 , 166 – 169 ( 2013 ). OpenUrl CrossRef PubMed 6. A. Pedrioli , A. Oxenius , Single B cell technologies for monoclonal antibody discovery . ( 2021 ). doi: 10.1016/j.it.2021.10.008 . OpenUrl CrossRef PubMed 7. ↵ N. Chaudhary , D. R. Wesemann , Analyzing immunoglobulin repertoires . ( 2018 ). doi: 10.3389/fimmu.2018.00462 . OpenUrl CrossRef PubMed 8. V. Greiff , E. Miho , U. Menzel , S. T. Reddy , Bioinformatic and Statistical Analysis of Adaptive Immune Repertoires . ( 2015 ). doi: 10.1016/j.it.2015.09.006 . OpenUrl CrossRef PubMed 9. B. Zheng , Y. Yang , L. Chen , M. Wu , S. Zhou , B-cell receptor repertoire sequencing: Deeper digging into the mechanisms and clinical aspects of immune-mediated diseases . ( 2022 ). doi: 10.1016/j.isci.2022.105002 . OpenUrl CrossRef PubMed 10. J. Pons , J. R. Stratton , J. F. Kirsch , How do two unrelated antibodies, HyHEL-10 and F9.13.7, recognize the same epitope of hen egg-white lysozyme? Protein Sci. 11 ( 2009 ). 11. V. Lorin , I. Fernández , G. Masse-Ranson , M. Bouvin-Pley , L. M. Molinos-Albert , C. Planchais , T. Hieu , G. Péhau-Arnaudet , D. Hrebík , G. Girelli-Zubani , O. Fiquet , F. Guivel-Benhassine , R. W. Sanders , B. D. Walker , O. Schwartz , J. F. Scheid , J. D. Dimitrov , P. Plevka , M. Braibant , M. S. Seaman , F. Bontems , J. P. Di Santo , F. A. Rey , H. Mouquet , Epitope convergence of broadly HIV-1 neutralizing IgA and IgG antibody lineages in a viremic controller . J. Exp. Med . 219 ( 2022 ). 12. ↵ W. K. Wong , S. A. Robinson , A. Bujotzek , G. Georges , A. P. Lewis , J. Shi , J. Snowden , B. Taddese , C. M. Deane , Ab-Ligity: identifying sequence-dissimilar antibodies that bind to the same epitope . MAbs 13 ( 2021 ). 13. ↵ M. I. J. Raybould , A. Kovaltsuk , C. Marks , C. M. Deane , CoV-AbDab: The coronavirus antibody database . Bioinformatics 37 , 734 – 735 ( 2021 ). OpenUrl CrossRef PubMed 14. ↵ R. Vita , N. Blazeska , D. Marrama , D. Shackelford , L. Zalman , G. Foos , L. Zarebski , K. Chan , B. Reardon , S. Fitzpatrick , M. Busse , S. Coleman , C. Sedwick , L. Edwards , C. Macfarlane , M. Ennis , S. Duesing , J. Bennett , J. Greenbaum , M. De Almeida Mendes , J. Mahita , D. K. Wheeler , J. R. Cantrell , J. A. Overton , D. A. Natale , A. Sette , B. Peters , The Immune Epitope Database (IEDB): 2024 update . Nucleic Acids Res . 53 , D436 – D443 ( 2025 ). OpenUrl CrossRef PubMed 15. ↵ 15. S. Mahajan , R. Vita , D. Shackelford , J. Lane , V. Schulten , L. Zarebski , M. C. Jespersen , P. Marcatili , M. Nielsen , A. Sette , B. Peters , Epitope specific antibodies and T cell receptors in the immune epitope database . Front. Immunol. 9 , doi: 10.3389/fimmu.2018.02688 ( 2018 ). OpenUrl CrossRef PubMed 16. ↵ R. C. Edgar , MUSCLE: multiple sequence alignment with high accuracy and high throughput . Nucleic Acids Res . 32 , 1792 – 7 ( 2004 ). OpenUrl CrossRef PubMed Web of Science 17. ↵ J. Dunbar , C. M. Deane , ANARCI: Antigen receptor numbering and receptor classification . Bioinformatics 32 , 298 – 300 ( 2016 ). OpenUrl CrossRef PubMed 18. ↵ W. D. Chronister , A. Crinklaw , S. Mahajan , R. Vita , Z. Koşaloğlu-Yalçın , Z. Yan , J. A. Greenbaum , L. E. Jessen , M. Nielsen , S. Christley , L. G. Cowell , A. Sette , B. Peters , TCRMatch: Predicting T-Cell Receptor Specificity Based on Sequence Similarity to Previously Characterized Receptors . Front. Immunol . 12 ( 2021 ). 19. ↵ H. S. Lee , W. Im , G-LoSA: An efficient computational tool for local structure-centric biological studies and drug design . Protein Sci . 25 , 865 – 876 ( 2016 ). OpenUrl CrossRef PubMed 20. ↵ J. P. Ebejer , P. W. Finn , W. K. Wong , C. M. Deane , G. M. Morris , Ligity: A Non-Superpositional, Knowledge-Based Approach to Virtual Screening . J. Chem. Inf. Model . 59 , 2600 – 2616 ( 2019 ). OpenUrl CrossRef PubMed 21. ↵ E. Richardson , R. Trevizani , J. A. Greenbaum , H. Carter , M. Nielsen , B. Peters , The receiver operating characteristic curve accurately assesses imbalanced datasets . Patterns 5 ( 2024 ). 22. ↵ F. C. Spoendlin , B. Abanades , M. I. J. Raybould , W. K. Wong , G. Georges , C. M. Deane , Improved computational epitope profiling using structural models identifies a broader diversity of antibodies that bind to the same epitope . Front. Mol. Biosci . 10 ( 2023 ). 23. A. Ghanbarpour , M. Jiang , D. Foster , Q. Chai , Structure-free antibody paratope similarity prediction for in silico epitope binning via protein language models . iScience 26 ( 2023 ). 24. ↵ B. B. Banach , G. Cerutti , A. S. Fahad , C. H. Shen , M. Oliveira De Souza , P. S. Katsamba , Y. Tsybovsky , P. Wang , M. S. Nair , Y. Huang , I. M. Francino-Urdániz , P. J. Steiner , M. Gutiérrez-González , L. Liu , S. N. López Acevedo , A. F. Nazzari , J. R. Wolfe , Y. Luo , A. S. Olia , I. T. Teng , J. Yu , T. Zhou , E. R. Reddem , J. Bimela , X. Pan , B. Madan , A. D. Laflin , R. Nimrania , K. Y. Yuen , T. A. Whitehead , D. D. Ho , P. D. Kwong , L. Shapiro , B. J. DeKosky , Paired heavy- and light-chain signatures contribute to potent SARS-CoV-2 neutralization in public antibody responses . Cell Rep . 37 ( 2021 ). 25. ↵ R. Vita , S. Mahajan , J. A. Overton , S. K. Dhanda , S. Martini , J. R. Cantrell , D. K. Wheeler , A. Sette , B. Peters , The Immune Epitope Database (IEDB): 2018 update . Nucleic Acids Res . 47 , D339 – D343 ( 2019 ). OpenUrl CrossRef PubMed 26. R. A. Norman , F. Ambrosetti , A. M. J. J. Bonvin , L. J. Colwell , S. Kelm , S. Kumar , K. Krawczyk , Computational approaches to therapeutic antibody design: Established methods and emerging trends . Brief. Bioinform . 21 ( 2020 ). 27. F. Guarra , G. Colombo , Computational Methods in Immunology and Vaccinology: Design and Development of Antibodies and Immunogens . ( 2023 ). doi: 10.1021/acs.jctc.3c00513 . OpenUrl CrossRef 28. ↵ J. Leem , L. S. Mitchell , J. H. R. Farmery , J. Barton , J. D. Galson , Deciphering the language of antibodies using self-supervised learning . Patterns 3 ( 2022 ). 29. Y. Wang , M. Yuan , H. Lv , J. Peng , I. A. Wilson , N. C. Wu , A large-scale systematic survey reveals recurring molecular features of public antibody responses to SARS-CoV-2 . Immunity 55 ( 2022 ). 30. Y. W. Lim , A. S. Adler , D. S. Johnson , Predicting antibody binders and generating synthetic antibodies using deep learning . MAbs 14 ( 2022 ). 31. ↵ Y. Wang , G. Mai , M. Zou , H. Long , Y. Q. Chen , L. Sun , D. Tian , Y. Zhao , G. Jiang , Z. Cao , X. Du , Heavy chain sequence-based classifier for the specificity of human antibodies . Brief. Bioinform . 23 ( 2022 ). 32. M. C. Jespersen , S. Mahajan , B. Peters , M. Nielsen , P. Marcatili , Antibody specific B-cell epitope predictions: Leveraging information from antibody-antigen protein complexes . Front. Immunol . 10 ( 2019 ). 33. ↵ S. Pittala , C. Bailey-Kellogg , Learning context-aware structural representations to predict antigen and antibody binding interfaces . Bioinformatics 36 , 3996 – 4003 ( 2020 ). OpenUrl CrossRef PubMed 34. ↵ P. A. Robert , R. Akbar , R. Frank , M. Pavlović , M. Widrich , I. Snapkov , A. Slabodkin , M. Chernigovskaya , L. Scheffer , E. Smorodina , P. Rawat , B. B. Mehta , M. H. Vu , I. F. Mathisen , A. Prósz , K. Abram , A. Olar , E. Miho , D. T. T. Haug , F. Lund-Johansen , S. Hochreiter , I. H. Haff , G. Klambauer , G. K. Sandve , V. Greiff , Unconstrained generation of synthetic antibody–antigen structures to guide machine learning methodology for antibody specificity prediction . Nat. Comput. Sci . 2 , 845 – 865 ( 2022 ). OpenUrl CrossRef PubMed 35. ↵ Z. Xu , S. Li , J. Rozewicki , K. Yamashita , S. Teraguchi , T. Inoue , R. Shinnakasu , S. Leach , T. Kurosaki , D. M. Standley , Functional clustering of B cell receptors using sequence and structural features . Mol. Syst. Des. Eng . 4 ( 2019 ). 36. ↵ D. S. Saputri , H. S. Ismanto , D. K. Nugraha , Z. Xu , Y. Horiguchi , S. Sakakibara , D. M. Standley , Deciphering the antigen specificities of antibodies by clustering their complementarity determining region sequences . mSystems 8 ( 2023 ). 37. ↵ D. Chomicz , J. Kończak , S. Wróbel , T. Satława , P. Dudzic , B. Janusz , M. Tarkowski , P. Deszyński , T. Gawłowski , A. Kostyn , M. Orłowski , T. Klaus , L. Schulte , K. Martin , S. R. Comeau , K. Krawczyk , Benchmarking antibody clustering methods using sequence, structural, and machine learning similarity measures for antibody discovery applications . Front. Mol. Biosci . 11 , 1 – 14 ( 2024 ). OpenUrl 38. ↵ J. F. Scheid , H. Mouquet , B. Ueberheide , R. Diskin , F. Klein , T. Y. K. Oliveira , J. Pietzsch , D. Fenyo , A. Abadir , K. Velinzon , A. Hurley , S. Myung , F. Boulad , P. Poignard , D. R. Burton , F. Pereyra , D. D. Ho , B. D. Walker , M. S. Seaman , P. J. Bjorkman , B. T. Chait , M. C. Nussenzweig , Sequence and Structural Convergence of Broad and Potent HIV Antibodies That Mimic CD4 Binding . Science (80-. ) . 333 , 1633 – 1637 ( 2011 ). OpenUrl Abstract / FREE Full Text 39. ↵ E. L. Shrock , R. T. Timms , T. Kula , E. L. Mena , A. P. West , R. Guo , I. H. Lee , A. A. Cohen , L. G. A. McKay , C. Bi , Keerti , Y. Leng , E. Fujimura , F. Horns , M. Li , D. R. Wesemann , A. Griffiths , B. E. Gewurz , P. J. Bjorkman , S. J. Elledge , Germline-encoded amino acid–binding motifs drive immunodominant public antibody responses . Science (80-. ). 380 ( 2023 ). 40. ↵ J. L. Xu , M. M. Davis , Diversity in the CDR3 region of V(H) is sufficient for most antibody specificities . Immunity 13 , 37 – 45 ( 2000 ). OpenUrl CrossRef PubMed Web of Science 41. ↵ J. Leem , J. Dunbar , G. Georges , J. Shi , C. M. Deane , ABodyBuilder: Automated antibody structure prediction with data–driven accuracy estimation . MAbs 8 , 1259 – 1268 ( 2016 ). OpenUrl CrossRef PubMed 42. ↵ E. Liberis , P. Velickovic , P. Sormanni , M. Vendruscolo , P. Lio , Parapred: Antibody paratope prediction using convolutional and recurrent neural networks . Bioinformatics 34 , 2944 – 2950 ( 2018 ). OpenUrl CrossRef PubMed 43. ↵ C. O. Barnes , C. A. Jette , M. E. Abernathy , K. M. A. Dam , S. R. Esswein , H. B. Gristick , A. G. Malyutin , N. G. Sharaf , K. E. Huey-Tubman , Y. E. Lee , D. F. Robbiani , M. C. Nussenzweig , A. P. West , P. J. Bjorkman , SARS-CoV-2 neutralizing antibody structures inform therapeutic strategies . Nature 588 , 682 – 687 ( 2020 ). OpenUrl CrossRef PubMed 44. ↵ M. Dondelinger , P. Filée , E. Sauvage , B. Quinting , S. Muyldermans , M. Galleni , M. S. Vandevenne , Understanding the significance and implications of antibody numbering and antigen-binding surface/residue definition . ( 2018 ). doi: 10.3389/fimmu.2018.02278 . OpenUrl CrossRef View the discussion thread. Back to top Previous Next Posted May 28, 2025. Download PDF Supplementary Material Email Thank you for your interest in spreading the word about bioRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following Characterizing antibodies binding to the same epitope reveals limited contribution by heavy chain CDR3 sequences relative to other CDRs Message Subject (Your Name) has forwarded a page to you from bioRxiv Message Body (Your Name) thought you would like to see this page from the bioRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share Characterizing antibodies binding to the same epitope reveals limited contribution by heavy chain CDR3 sequences relative to other CDRs Jarjapu Mahita , Haeuk Kim , Marcus De Almeida Mendes , Eve Richardson , Jason A. Greenbaum , Alessandro Sette , Morten Nielsen , Bjoern Peters bioRxiv 2025.05.24.655967; doi: https://doi.org/10.1101/2025.05.24.655967 Share This Article: Copy Citation Tools Characterizing antibodies binding to the same epitope reveals limited contribution by heavy chain CDR3 sequences relative to other CDRs Jarjapu Mahita , Haeuk Kim , Marcus De Almeida Mendes , Eve Richardson , Jason A. Greenbaum , Alessandro Sette , Morten Nielsen , Bjoern Peters bioRxiv 2025.05.24.655967; doi: https://doi.org/10.1101/2025.05.24.655967 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Bioinformatics Subject Areas All Articles Animal Behavior and Cognition (7618) Biochemistry (17635) Bioengineering (13859) Bioinformatics (41843) Biophysics (21401) Cancer Biology (18534) Cell Biology (25422) Clinical Trials (138) Developmental Biology (13352) Ecology (19860) Epidemiology (2067) Evolutionary Biology (24283) Genetics (15582) Genomics (22463) Immunology (17700) Microbiology (40296) Molecular Biology (17141) Neuroscience (88423) Paleontology (666) Pathology (2825) Pharmacology and Toxicology (4813) Physiology (7633) Plant Biology (15107) Scientific Communication and Education (2042) Synthetic Biology (4284) Systems Biology (9808) Zoology (2267)

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00