A method for designing antibody structure and sequence based on a generative neural network model
Through graph message propagation and discrete variational autoencoders based on generative neural networks, the problem of insufficient transparency and interpretability in antibody design is solved, and the sequence-structure joint design and affinity prediction of antibody functional fragments are realized, improving Improve design efficiency and accuracy.
Patent Information
- Application Number
- CN202410752382.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-12
AI Technical Summary
The existing technology lacks transparency and interpretability in antibody design, and it is difficult to generate specific antibody functional fragments according to functions. Especially in scenarios where optimization of multiple properties (such as binding specificity and affinity) needs to be considered, the design process is time-consuming. Time and resource consumption is large.
Using a neural network based on a generative neural network model, combined with graph message propagation, discrete variational autoencoders and attention mechanisms, a graph data set was constructed from the public experimental observation of antigen-antibody complex structure data sets and open source sequence models. Generate sequences and structures of antibody CDR regions and predict the affinity of antibody fragments.
It achieves the joint sequence-structure design of antibody functional fragments that target specific antigen binding sites, improves the accuracy of affinity prediction of newly generated antibody fragments, and reflects the network's ability to capture universal biochemical laws, which is of groundbreaking significance.
Smart Images

Figure CN118335202B
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of artificial intelligence generative algorithms, machine learning regression models, antibody structure prediction, and antibody sequence characterization learning, and specifically to a method for simultaneously generating the three-dimensional structure of the complementarity determining region skeleton and the amino acid sequence of an antibody protein and predicting its affinity with a target protein. Background Art
[0002] Antibodies are one of the important immune response proteins produced by B lymphocytes. They can specifically bind to the surface of foreign pathogens, preventing them from invading the body or clearing them by activating downstream immune mechanisms. The success of the neutralization function of antibodies depends on their ability to recognize various molecules. In order to adapt to the highly diverse foreign structures of pathogens, the body pre-constructs a huge sequence library through gene recombination and somatic hypermutation. In the process of interaction with antigen proteins, only antibodies with higher affinity will be replicated in large quantities and evolve into major functional antibodies. As therapeutic macromolecule drugs, antibodies are widely used to treat various human diseases ranging from neurodegenerative diseases.
[0003] Therapeutic antibody development is a time-consuming process that requires iterative evaluation. Multiple rounds of screening are performed in large in vitro antibody libraries to find candidate antibodies with the best performance. These candidate antibodies may contain other unfavorable biophysical properties, such as poor solubility or stability. These properties are optimized through mutations, and new additional modifications may affect the previously optimized performance, so only repeated iterations can be used to obtain the best results.
[0004] In recent years, computational methods based on machine learning have provided an efficient computer design solution, reducing the burden of screening new antibodies. Machine learning models can be used to synthesize potent antibody functional fragments, i.e., single sequence variable region binding proteins. This type of method performs high-throughput binding quantitative determination on a specific antigen, and then extrapolates the fitness landscape trained based on experimental data to obtain a completely new antibody functional fragment. This preliminary analysis of key properties accelerates the screening process, but is not applicable to any random pathogen. Large language models applied to protein sequence libraries can capture complex dependencies between sequence, structure, and function in higher-dimensional space. After fine-tuning, general protein sequence models can be used to predict protein binding thermal stability, antibody three-dimensional structure prediction, and affinity optimization of clinical therapeutic antibodies. However, the use of such models for the design of new antibody monomers requires continuous "mutation-prediction" operations. This iterative optimization is effective for improving a single target property, but in scenarios where multiple property optimizations (such as binding specificity and affinity) need to be considered, this sampling strategy will consume a lot of time and resources. Therefore, many methods aim to directly generate the structure and sequence of functional antibody fragments from scratch, thereby saving redundant high-dimensional space search operations.
[0005] As an end-to-end method, generative neural networks have become a new paradigm for de novo design of new antibodies. Luo et al. (Luo, Shitong, et al. "Antigen-specific antibody design and optimization with diffusion-based generative models for protein structures." Advances in Neural Information Processing Systems 35 (2022): 9754-9767) designed a diffusion network-based antibody CDR region design model that allows prior biological knowledge to be used as a condition. Although the model can perceive the environmental information of the binding site, they were trained and tested on six independent antibody functional loop datasets. This data segmentation ensures accurate learning of the dynamics of different functional loops, but ignores the effects of functional loop combinations under natural conditions. In addition, as the most critical region that undertakes multiple functions (such as recognition, binding, and neutralization), the newly designed antibody complementary determining region (CDR) needs to be both novel and have better clinical properties. This requires the generative model to understand the dependency between protein topology and function, while the current de novo generation scheme lacks transparency and interpretability, making it difficult to achieve function-specific antibody functional fragment generation. Summary of the invention
[0006] In response to the technical gap in the above-mentioned antibody design, the present invention aims to provide a method for designing antibody structure and sequence based on a generative neural network model, so as to achieve the sequence-structure joint design of antibody functional fragments that target and bind to specific antigen binding sites, and predict the affinity of newly generated antibody fragments for antigens.
[0007] In order to achieve the above technical objectives, the present invention adopts the following technical solutions:
[0008] A method for designing antibody structure and sequence based on a generative neural network model. The method uses a publicly available experimentally observed antigen-antibody complex structure dataset and an open source sequence model to construct a graph dataset, builds a neural network based on graph message propagation, discrete variational autoencoder and attention mechanism, and completes network training. Given an antigen and template antibody complex structure, the sequence and structure of the antibody CDR region are generated from scratch. The method specifically includes the following steps:
[0009] 1) Establish a graph dataset of antigen-CDR complexes, including:
[0010] 1a) Preprocess the publicly available three-dimensional molecular experimental observation structure dataset of antigen-antibody complexes to obtain a dataset of antigen-CDR complexes, which is then clustered based on CDR sequence similarity and split into training and test sets;
[0011] 1b) The three-dimensional structure of the antigen-CDR complex is represented by a graph abstraction, and each antigen-CDR complex is converted into an undirected heterogeneous graph G(V, E), where V represents a node set and E represents an edge. V contains two types of nodes {Vp, Ve}, which actually map to the Cα atoms of the antibody epitope residues or antigen epitope residues respectively;
[0012] 1c) Obtaining embedded representation vectors from the protein sequence pre-training model as graph node feature vectors;
[0013] 2) Using the graph dataset of antigen-CDR complexes, a graph neural network encoder is constructed to obtain a latent space representation tensor containing the overall information of the graph;
[0014] 3) Based on the latent space representation tensor output by the graph neural network encoder, a discrete variational sampler is constructed to sample the nearest neighbor generation tensor;
[0015] 4) Construct an attention-based decoder that perceives antigen epitopes. At this point, the encoder-sampler-decoder generation network is constructed;
[0016] 5) Training of the generative network and affinity prediction network: Use the antigen-CDR complex data set obtained by preprocessing in step 1) to complete the generative network training; use some antigen-CDR complex data with experimental calibration data to complete the supervised network training for predicting binding affinity;
[0017] 6) Sampling a new generation tensor from the sampler constructed in step 3), obtaining the feature vector of the target antigen according to the method described in step 1c), and inputting both into the decoder constructed and trained in step 4) to obtain the newly generated three-dimensional structure and sequence of the antibody CDR region.
[0018] As a preferred solution, the preprocessing of step 1a) includes: excluding all nanobodies (without light chain), unbound antibodies (without antigen), and antibodies with sugar molecules or nucleic acids as antigens from the public antigen-antibody complex structure data set; filtering out structures below 8 angstroms based on the overall resolution of the antibody flexible region; for the complex structure of antigens bound to multiple antibodies, split each file into multiple files, each file containing only one pair of antibodies and their bound antigen chains. In each pair of structures obtained, the antibody molecules are renumbered according to the Chothia standard, and the CDR regions containing three heavy chain loops (H1, H2, H3) and three light chain loops (L1, L2, L3) are cut out and form a new complex with the bound antigen chain, namely the antigen-CDR complex. In order to deal with the situation of unequal sequence length, the residues from the adjacent fragment regions are filled at both ends of the six loops. The filling length is determined according to the distribution of the lengths of the six loops in the data set, and more than 90% of the data are included as much as possible.
[0019] As a preferred solution, the method for dividing the training set and the test set in step 1a) is: divide the data into multiple piles according to the CDR sequence similarity, use Mmseqs2 to cluster the joint CDR loop sequences with a homology higher than 40%; for the generated class sets, split them into training sets and test sets in a ratio of 4:1.
[0020] In the above step 2), the graph neural network encoder is composed of a propagation layer, a pooling layer, and a linear output layer. The propagation layer updates the feature vector of each graph node by aggregating the feature vectors of other nodes in the neighborhood based on the neighborhood message passing model; the aggregation method is to perform weighted addition of the feature vectors of all neighboring nodes through the neighborhood attention matrix. The pooling layer combines multiple important node vectors into a one-dimensional vector representing the entire graph based on the gating mechanism. The one-dimensional vector is passed to the linear output layer, which includes activation and normalization operations to obtain a compressed latent space representation tensor.
[0021] As a preferred solution, the propagation layer in step 2) refers to the vector of the graph node After the neighborhood node vector is aggregated, it is updated and the operation is performed as follows:
[0022]
[0023] in, represents the number of propagation layers, i , j Represents a node, A vector representing a single node, W 0 , W v Represents different weight matrices, N (i ) represents the set of all points in the neighborhood, α Represents the neighborhood attention matrix.
[0024] The neighborhood attention matrix in step 2) α It is a scaled dot product attention matrix used for representation learning and feature extraction of dependencies between different nodes in the adjacent range. It is calculated as follows:
[0025]
[0026] in softmax represents the normalized exponential function, which is used to obtain the target amino acid with the final maximum weight; W q , W k represents two trainable weight matrices, d v Represents the node vector dimension.
[0027] The pooling layer in step 2) obtains the overall representation vector of the antigen-CDR complex graph from all CDR nodes h pool , calculated as follows:
[0028]
[0029] in, W g represents the trainable weight matrix, ; N cdr Indicates the number of CDR area nodes.
[0030] As a preferred solution, the discrete variational sampler in step 3) above refers to the latent space representation tensor from the encoder The resulting tensor that is mapped to its nearest neighbor of the same size , Retrieved from a learnable codebook m vectors; latent space represents tensor Encouraged to use L2 loss function to generate tensors move, is encouraged to keep approaching the tensor represented by all nearby The specific form of the L2 loss function is:
[0031]
[0032] in, Represents the stop of gradient backpropagation, which is used to update the latent space representation tensor ; β Set to 0.1; Represents the adjacent generated tensor The latent space representation tensor of the number of EMA Stands for Exponential Moving Average.
[0033] In the above step 4), the attention-based decoder includes a fully connected linear layer, a cross-attention layer, and a SE (3) equivariant structure restoration layer. The generated tensor output from the sampler is After being processed by the fully connected linear layer, an antibody feature vector of the same dimension as the generated sequence is obtained, and the CDR type code is added as a condition. The cross-attention layer uses the external antigen conditional feature vector to update the antibody feature vector; the SE(3) equivariant structure restoration layer includes operations with the transformer in the Euclidean space to obtain the CDR sequence and three-dimensional coordinates directly from the antibody feature vector.
[0034] As a preferred solution, in step 4), the fully connected linear layer in the decoder transforms the sampled generated tensor through a multi-layer perceptron to obtain a high-dimensional feature vector N cdr , the specific form is:
[0035]
[0036] Among them, C pe Unique hot vectors representing the 6 CDR regions, used as conditions and sampling to generate tensors Addition; represents multi-layer perceptron transformation; W z Represents a trainable weight matrix.
[0037] The cross attention layer in step 4) has two layers. A multi-head cross attention matrix is calculated between the amino acids in a given antigen epitope and the generated antibody feature vector, so as to integrate the binding surface feature information into the antibody vector. The specific form is:
[0038]
[0039] in, LayerNorm Represents normalization between different dimensions within the same multidimensional input tensor; MHA Represents the multi-head attention mechanism; FFN Represents two fully connected linear layers with a dropout rate of 0.1; and Represent the antigen condition feature vector and the generated antibody feature vector respectively; Represents the layer number;
[0040] The SE(3) equivariant structure restoration layer in step 4) includes two invariant point attention layers, which calculate the attention matrix with SE(3) equivariant properties between the structural units of the antibody main chain; the predicted skeleton frame and the corresponding rotation matrix and translation vector can be used to reconstruct the skeleton three-dimensional coordinates of the fragment; the antibody feature vector is converted into N cdr Project to a 21-dimensional vector to recover the amino acid sequence content.
[0041] As a preferred solution, the affinity prediction network in step 5) uses a Gaussian mixture model to predict the affinity of a small number of data points annotated with binding free energy in the data set. The input vector is a latent space representation tensor compressed by the encoder, representing the posterior distribution; or a sample generation tensor sampled from the codebook, representing the prior distribution.
[0042] As a preferred solution, the sampling in step 6) is implemented by a masked self-attention network. The sampled generated tensor is composed of a series of generated vectors in the codebook. These generated vectors have their own numbers, so each sampled generated tensor can be represented by a string of numbers and constitute a latent space number data set. For this data set, we use a masked self-attention network to predict the number content of a certain position based on the previous number. The network can be regarded as a high-precision fit to the distribution of the encoded latent space, and generating new data points is equivalent to conditional sampling from the fitted distribution.
[0043] Beneficial effects of the present invention:
[0044] The antibody design method of the present invention realizes the sequence-structure joint design of antibody functional fragments that target and bind to specific antigen binding sites through an antibody sequence-structure co-generation algorithm based on a deep attention network. At the same time, a machine learning model based on discrete latent space tensors is used to effectively measure the degree of improvement in the affinity of the newly generated antibody fragments. The results have a good correspondence with the experimental data, and the analysis of the intermediate feature layer of the model reflects the network's capture of universal biochemical laws, which is of pioneering significance for realizing function-guided antibody molecule generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 .Flowchart of the method for designing antibody structure and sequence based on the generative neural network model of the present invention.
[0046] Figure 2 .In a specific implementation of the present invention, the latent space representation tensor is used as input to fit the Gaussian process model to perform affinity prediction.
[0047] Figure 3.In a specific implementation of the present invention, the sampling generated tensor is used as the input to fit the Gaussian process model to perform affinity prediction.
[0048] Figure 4 .The sequence and structure of the CDR region of the allosteric antibody Fab40 that binds to HGFA generated in a specific embodiment of the present invention.
[0049] Figure 5 . Sequence and structure of the CDR region of humanized Fab 31A.v11 binding to trypsin inhibitor generated in a specific embodiment of the present invention. DETAILED DESCRIPTION
[0050] The present invention is further described in detail below by way of examples, but those skilled in the art should understand that the scope of the present invention is not limited thereto. Any modification or equivalent replacement of the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention should be covered by the protection of the present invention.
[0051] Antibody proteins consist of three parts: two antigen-binding fragments (Fab) and one crystallization fragment (Fc). The Fab region consists of two chains, called heavy chain and light chain, each of which can be divided into a variable region and a constant region. Single-chain variable fragment (scFv) refers to the variable region combined on the heavy chain and light chain. At the outer end of the scFv, there are six hypervariable region loops that act as antigen-binding sites, called complementarity determining regions (CDRs). The sequence of the CDR loop is determined by genetic recombination of the V, D, and J gene segments, resulting in a high degree of variation in length and residue content. When in contact with the antigen, this loop structure provides sufficient conformational plasticity for the backbone and side chains to better adapt to the surface topology. CDR is the core module of antibody function, including specific recognition and neutralization, so in this invention, we formulate the antibody design task as the joint generation of the sequences and atomic coordinates of the six CDR loops. In order to include the dependency between the binding site and CDR in the generation process, we provide the antigen as context information in the form of the antigen-CDR complex structure. This can be analogized to the more general case of protein design, where interface motifs of a protein complex are masked and redesigned.
[0052] Combine the following Figure 1-Figure 5 The method for designing antibody structure and sequence based on the generative neural network model provided by the present invention is introduced.
[0053] The present invention utilizes a publicly available experimentally observed antigen-antibody complex structure dataset and an open source sequence model to construct a graph dataset; builds a generative network based on graph message propagation, discrete variational autoencoders, and an attention mechanism and completes network training; uses the trained generative network to completely redesign the antibody sequence structure for a newly designated target; and extracts the output of the network intermediate module to predict the relative value of the binding affinity of the newly generated antibody fragment. Figure 1 A flowchart of a method for designing antibody structure and sequence based on a generative neural network model provided by the present invention, comprising the following steps:
[0054] 1. Create a dataset of antigen-antibody complexes
[0055] a. Preprocessing of the three-dimensional molecular experimental observation structure set of antigen-antibody complex
[0056] We constructed the graph dataset using data from the SAbDab database. This database contains all annotated antigen-antibody complex structures collected from the Protein Data Bank (PDB) and is still being updated. We excluded all nanobodies (no light chain) and unbound antibodies (no antigen) from the dataset. Since we used the embedding of the amino acid sequence as initialization, only antigens in amino acid form (proteins or peptides) were considered, and antigens with sugar molecules or nucleic acids were removed. Since the identified antibody structures are highly dynamic in general, we filtered out structures with a resolution lower than 8 angstroms to avoid possible errors in the true labels. For complex structures bound to multiple antibodies, we split each file into multiple files, each containing only one pair of antibodies and their bound antigen chains. After data cleaning, we obtained 9273 antigen-antibody pairs. In each pair of structures, the antibodies were reindexed according to the Chothia numbering and inserted. The CDR regions containing three heavy chain loops (H1, H2, H3) and three light chain loops (L1, L2, L3) were cut out and formed new complexes together with the bound antigen chains. The decoder part of the model requires the generated sequences to be of equal length, so we fill each end of the six loops with residues from their neighboring fragment regions. The target lengths of the six loops were set to different values according to their maximum lengths in the entire dataset. After data preprocessing, we obtained a final dataset containing 6142 antigen-CDR complexes. In order to reveal the generalization ability of the model to new CDR sequences, we divided the data into multiple classes based on CDR sequence similarity. We used Mmseqs2 to cluster joint CDR loop sequences with a homology higher than 40%. For the clustered classes, we split them into training and test sets in a ratio of 4:1.
[0057] b. Graphical abstract representation of the three-dimensional structure of the complex
[0058] Each antigen-CDR complex is converted into an undirected heterogeneous graph, denoted as G(V, E). V contains two types of nodes {Vp, Ve}, which are actually mapped to the Cα atoms of antibody epitope residues and antigen epitope residues, respectively. For any two nodes, if the distance between them is less than 12 angstroms, there is an edge.
[0059] c. Obtain the embedded representation vector from the protein sequence pre-training model as the graph node feature vector
[0060] Feature extraction of the input antigen-antibody complex requires semantic information of the sequence and geometric information of the structure, while the limited number of resolved complex structures is not conducive to large-scale training. We leverage the representations learned by the pre-trained ESM-v2-35M protein language model to extend its knowledge scope. ESM-v2-35M is trained on the UniProt database, has 35 million parameters, and has been shown to accomplish tasks such as complex 3D structure prediction. We collected the final hidden layer state tensors of a single sequence from ESM-v2-35M. These embedded state tensors are the initial features of the residues in the complex.
[0061] 2. Building a Graph Neural Network Encoder
[0062] In order to incorporate spatial geometry information during training, we adopted a graph neural network scheme in the encoder. For each antigen-antibody complex represented by a graph abstraction, the initial feature tensor of the node is the output residue feature of the ESM-v2-35M model mentioned above. In each training iteration, both types of node features are updated by aggregating messages from neighboring nodes with edges connected to it. The scaled dot product attention matrix calculated from the neighboring nodes is applied to the linearly transformed node feature vector. After two layers of message passing, the feature vectors of all CDR nodes are pooled through an attention weight matrix to obtain a single representation vector for the entire graph. The graph embedding vector is converted into a latent space representation tensor through a three-layer multi-layer perceptron with an activation function of ReLU and a dropout rate of 0.1.
[0063] 3. Building a discrete variational sampler
[0064] We use a variational autoencoder network (VAE) to form the framework of the entire model. VAE is one of the Bayesian inference methods, which maximizes the log-likelihood logp(x) of the true data distribution by optimizing the evidence variational lower bound (ELBO). Under the autoencoder framework, high-dimensional data x is mapped to low-dimensional variables z for feature extraction. The intractable posterior distribution p(z|x) is approximated by a parameterized distribution q(z|x). The latent variables sampled from the prior distribution are projected back to the data space through the decoder. When applied to complex data, trivial VAEs experience posterior collapse. In this case, the latent vector loses its dependence on the input data, preventing the VAE from building a meaningful prior distribution.
[0065] To better parameterize the posterior distribution for inherently discrete data like protein sequences, we use VQ-VAE (Vector Quantised Variational AutoEncoder) to replace the multivariate Gaussian distribution in the VAE with a series of discrete vectors stored in a learnable password. We find that this replacement promotes a more reasonable mapping from raw data to latent space representation tensors.
[0066] Latent space representation tensor from encoder is mapped to its most recently generated tensor of the same size , which consists of m vectors retrieved from the learnable codebook. Similar to the KL divergence in the vanilla VAE, It is encouraged to use L2 loss Move. For each , which gradually approaches the center of the cluster formed by all the recent z under the exponential moving average (EMA) technique, which is commonly used in the K-means algorithm.
[0067] 4. Construction of decoder for antigen epitope perception
[0068] Tensor sampled from the latent codebook Flattened to the total length of the target CDR. Since the decoder based on the self-attention mechanism architecture loses the residue order information of the original CDR sequence, it needs to be supplemented. The position encoding is created using a sine function form, but the index number is replaced by a loop type (H1, H2, H3, L1, L2, L3). For residues in the CDR loop region, the region they are in is more meaningful in addition to the order in the original protein. In other words, this improved position encoding increases the degree of freedom of network generation by removing unimportant factors. After addition, we use a multi-layer perceptron to obtain the embedding tensor of the generated sequence.
[0069] As in vivo antibody maturation depends on the surface topology of the binding site, we believe that providing epitope context information as a condition will enhance the specificity of generated CDRs. We introduced multi-head attention between L generated residues and M closest epitope residues to encourage awareness of the binding site. Here, the antigen node embedding vector of the closest epitope was obtained from ESM-v2-35M. In addition, self-attention within the generated residues was used to update the sequence representation vector. Both the cross-attention and self-attention layers were followed by layer normalization and a feed-forward module with two linear layers (dropout rate 0.1). This hybrid cross-attention operation was performed for two layers, and then the updated epitope embeddings were passed to the backbone structure module, which was modified from the structure module of AlphaFold2. The final module aims to simultaneously reconstruct the backbone 3D coordinates of the fragment and recover the sequence content from the representation tensor. The backbone is abstracted into rigid transformation units, denoted as backbone frames. Each backbone frame consists of four atoms (N, Cα, C, Cβ) connected by bonds following ideal lengths and angles, so its entire coordinates can be recovered by the rotation moment and translation vector of the Cα atom. All frames are initialized at the origin. The backbone frames predicted by the invariant attention layer are used to reconstruct the backbone coordinates of the generated CDRs. The sequence is recovered by a linear layer followed by a Softmax, which projects the representation vector to a 21-dimensional (20 standard residues and 1 gap symbol) vector. For the generated side chains demonstrated here, we used the side chain stacking algorithm.
[0070] 5. Training the Generative Model and Affinity Prediction Model
[0071] a. Generative model training
[0072] The model used for inference was trained for 50 epochs on an Nvidia A100 GPU equipped with CPU cores. The batch size was set to 32. We used a warm-up strategy for the learning rate with a number of warm-up steps of 3000. Model optimization was performed using the Adam optimizer with . We conducted multiple rounds of experiments to select better model hyperparameters for the generation task. We set 2 decoder layers, a latent tensor size of 12, and a latent tensor dimension of 8. Increasing the codebook size can improve the accuracy of the generated structure, and setting a higher encoder dropout rate helps to enhance the generation diversity. We replaced the position encoding setting of the original Transformer with an antibody-customized loop type encoding to improve the accuracy of the residue sequence. The additional species classifier contributes greatly to the overall performance, and imposing strict position encoding leads to severe overfitting. Increasing the number of encoder layers, dropout rate, and codebook size can slightly improve the accuracy of the sequence and structure.
[0073] b. Affinity prediction model training
[0074] We used Gaussian processes to construct regression models to predict affinity values for input complex structures, specified as the binding free energy deviation ΔΔG between unbound and bound complex proteins. Figure 2 and Figure 3 As shown, corresponding to the model structure, we tested the latent space representation tensor and the generated tensor sampled from the codebook as input to fit the Gaussian process model. The two selected intermediate layers correspond to the posterior distribution and prior distribution in the probabilistic reasoning process. The horizontal axis represents the experimental data, and the vertical axis represents the model prediction data. The closer the scatter points are to the diagonal represented by the dotted line, the more accurate they are. Points of different shapes show the data of the training set and the validation set respectively. From the results, the training set data are almost all distributed on the diagonal, and the validation set data are also near the diagonal, demonstrating the excellent generalization ability of this method. Comparing the two different inputs, the posterior distribution sampling vector has better downstream fitting ability.
[0075] 6. Sample from the codebook to generate a new tensor, input into the decoder to obtain the newly generated three-dimensional structure and sequence of the antibody fragment
[0076] The non-continuous latent space cannot be directly used for sampling, so we train a probabilistic model on the latent codebook to fit the latent space distribution. We choose to use the autoregressive (AR) model based on the self-attention mechanism because of its strong high-dimensional tensor prediction capabilities. In the inference step, we first pass the training dataset to the encoder, whose output tensor will be used as the input of the sampler, and obtain its generated tensor from the codebook. Next, we sample 100 times from the established distribution p according to the nearest neighbor principle, and finally input it into the trained decoder to obtain 10 new samples after deduplication. Figure 4 and Figure 5 The CDR sequences and structures that are ultimately generated by the network and bind to specific targets are shown. Figure 4 This is the CDR region of the allosteric antibody Fab40 that binds to HGFA (PDB: 3k2u). The first row of the sequence display compares the real CDR-H / L sequences, and the second row compares the generated non-redundant CDR-H / L sequence set. The upper and lower figures of the structure display are the side view and top view of the 6 heavy chain loops and light chain loops, respectively. Figure 5 The CDR region of humanized Fab 31A.v11 that binds to trypsin inhibitor (PDB: 6o1f).
Claims
1. A method for designing antibody structure and sequence based on a generative neural network model, characterized in that: This method uses a publicly available experimentally observed antigen-antibody complex structure dataset and an open source sequence model to construct a graph dataset, build a neural network based on graph message propagation, discrete variational autoencoder and attention mechanism, and complete network training. Given the antigen and template antibody complex structure, the sequence and structure of the antibody CDR region are generated from scratch. The specific steps include: 1) Establish a graph dataset of antigen-CDR complexes, including: 1a) Preprocess the publicly available three-dimensional molecular experimental observation structure dataset of antigen-antibody complexes to obtain a dataset of antigen-CDR complexes, which is then clustered based on CDR sequence similarity and split into training and test sets; 1b) The three-dimensional structure of the antigen-CDR complex is represented by a graph abstraction, and each antigen-CDR complex is converted into an undirected heterogeneous graph G(V, E), where V represents a node set and E represents an edge. V contains two types of nodes {Vp, Ve}, which actually map to the Cα atoms of the antibody epitope residues or antigen epitope residues respectively; 1c) Obtaining embedded representation vectors from the protein sequence pre-training model as graph node feature vectors; 2) A graph neural network encoder is constructed using a graph dataset of antigen-CDR complexes to obtain a latent space representation tensor containing the overall information of the graph; the graph neural network encoder is composed of a propagation layer, a pooling layer, and a linear output layer, wherein the propagation layer updates the feature vector of each graph node in a mode of aggregating the feature vectors of other nodes in the neighborhood based on a neighborhood message passing model, and the aggregation method is to perform weighted addition of the feature vectors of all neighboring nodes through a neighborhood attention matrix; the pooling layer, based on a gating mechanism, merges multiple important node vectors into a one-dimensional vector representing the entire graph; the one-dimensional vector is passed to the linear output layer, which includes activation and normalization operations, to obtain a compressed latent space representation tensor; 3) Construct a discrete variational sampler in which the latent space representation tensor z from the graph neural network encoder is i The resulting tensor that is mapped to its nearest neighbor of the same size , Retrieved from a learnable codebook m vectors; latent space represents tensor Encouraged to use L2 loss function to generate tensors move, is encouraged to keep approaching the tensor represented by all nearby latent spaces The center of the set that it consists of; 4) Construct an epitope-aware decoder based on an attention mechanism, wherein the decoder comprises a fully connected linear layer, a cross attention layer, and a SE (3) equivariant structure restoration layer; the generated tensor output from the sampler After being processed by the fully connected linear layer, an antibody feature vector of the same dimension as the generated sequence is obtained, and the CDR type code is added as a condition; the cross-attention layer uses the external antigen conditional feature vector to update the antibody feature vector; the SE(3) equivariant structure restoration layer includes operations with the transformation operator in the Euclidean space to directly obtain the CDR sequence and three-dimensional coordinates from the antibody feature vector; At this point, the encoder-sampler-decoder generation network construction is completed; 5) Training of the generative network and affinity prediction network: Use the antigen-CDR complex graph dataset obtained by preprocessing in step 1) to complete the generative network training; use some antigen-CDR complex data with experimental calibration data to complete the supervised network training for predicting binding affinity; 6) Sampling a new generation tensor from the sampler constructed in step 3), obtaining the feature vector of the target antigen according to the method described in step 1c), and inputting both into the decoder constructed and trained in step 4) to obtain the newly generated three-dimensional structure and sequence of the antibody CDR region.
2. The method according to claim 1, characterized in that The preprocessing in step 1a) includes: excluding nanobodies, unbound antibodies, and antibodies with sugar molecules or nucleic acids as antigens from the structural data set; filtering out structures below 8 angstroms based on the overall resolution of the flexible region of the antibody; for complex structures of antigens bound to multiple antibodies, splitting each file into multiple files, each file containing only a pair of antibodies and their bound antigen chains; in each pair of structures obtained, renumbering the antibody molecules according to the Chothia standard, cutting out the CDR region, and forming a new complex together with the bound antigen chain, namely the antigen-CDR complex.
3. The method according to claim 1, characterized in that In step 2), the propagation layer transforms the vectors of the graph nodes After the neighborhood node vector is aggregated, it is updated and the operation is performed as follows: ; in, Represents the layer number, i , j Represents a node, A vector representing a single node, W 0 , W v Represents different weight matrices, represents the set of all points in the neighborhood, α represents the neighborhood attention matrix, which is calculated as follows: ; in softmax represents the normalized exponential function, which is used to obtain the target amino acid with the final maximum weight; W q , W k represents two trainable weight matrices, d v Represents the node vector dimension; The pooling layer obtains the overall representation vector of the antigen-CDR complex graph from all CDR nodes. h pool , calculated as follows: ; in, W g represents the trainable weight matrix, ; N cdr Indicates the number of CDR area nodes.
4. The method according to claim 1, characterized in that In step 3), the specific form of the L2 loss function is: ; in, Represents the stop of gradient backpropagation, which is used to update the latent space representation tensor z i ; β Set to 0.1; Represents the adjacent generated tensor The latent space representation tensor z i, j the number of EMA Stands for Exponential Moving Average.
5. The method according to claim 1, characterized in that Step 4) The fully connected linear layer in the decoder transforms the sampled generated tensor through a multi-layer perceptron to obtain a high-dimensional feature vector H cdr , the specific form is: Among them, C pe Unique hot vectors representing the 6 CDR regions, used as conditions and sampling to generate tensors Addition; represents multi-layer perceptron transformation; W z Represents a trainable weight matrix; The cross attention layer has two layers. A multi-head cross attention matrix is calculated between the amino acids in a given antigen epitope and the generated antibody feature vector, so as to integrate the binding surface feature information into the antibody vector. The specific form is: ; in, LayerNorm Represents normalization between different dimensions within the same multidimensional input tensor; MHA Represents the multi-head attention mechanism; FFN represents two fully connected linear layers with a dropout rate of 0.1; and Represent the antigen condition feature vector and the generated antibody feature vector respectively; Represents the layer number; The SE(3) equivariant structure restoration layer includes two invariant point attention layers, which calculate the attention matrix with SE(3) equivariant properties between the structural units of the antibody main chain; reconstruct the skeleton three-dimensional coordinates of the fragment using the predicted skeleton frame and the corresponding rotation matrix and translation vector; and transform the antibody feature vector into the target vector through a fully connected linear layer and a softmax function. H cdr Project to a 21-dimensional vector to recover the amino acid sequence content.
6. The method according to claim 1, characterized in that The affinity prediction network described in step 5) uses a Gaussian mixture model to predict the affinity of a small number of data points annotated with binding free energy in the data set. The input vector is a latent space representation tensor compressed by the encoder, representing the posterior distribution; or, the input vector is a sample generation tensor sampled from the codebook, representing the prior distribution.
7. The method according to claim 1, characterized in that In step 6), a masked self-attention network is used to implement sampling.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
9. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
