Molecular docking method and system

By discretizing the continuous variable search space and using quantum heuristic algorithms to optimize the objective function, the problems of long calculation time and high cost of molecular docking methods in the existing technology are solved, and efficient and accurate molecular docking effects are achieved.

WO2024222570A1PCT designated stage expired Publication Date: 2024-10-31HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/088687
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-29
Filing Date
2024-04-18
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing molecular docking methods based on search algorithms are difficult to fully search and sample in the search space, resulting in long calculation time, high cost and poor docking effect.

Method used

By discretizing the search space composed of continuous variables into a search space composed of discrete variables, and searching in the discrete space, the quantum heuristic algorithm is used to optimize the objective function to achieve molecular docking.

Benefits of technology

Efficient, accurate and low-cost molecular docking is achieved, which improves search efficiency and reduces search costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024088687_31102024_PF_FP_ABST
    Figure CN2024088687_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a molecular docking method and system, by means of which efficient, accurate and low-cost molecular docking can be realized. The molecular docking method provided in the present application can be applied to a molecular docking system. The method comprises: a molecular docking system acquiring a first molecule and a second molecule, then performing discretization on each degree-of-freedom variable of the first molecule, and coding each discretized degree-of-freedom variable by using a binary variable, so as to obtain a corresponding coded vector; then, the molecular docking system constructing an objective function about a plurality of binary variables on the basis of the relationship between the first molecule and the second molecule, and obtaining a solution of each degree-of-freedom variable of the first molecule by means of performing minimization processing on the objective function; and finally, the molecular docking system performing docking on the first molecule and the second molecule on the basis of the obtained solution of each degree-of-freedom variable of the first molecule.
Need to check novelty before this filing date? Find Prior Art

Description

Molecular docking methods and systems

[0001] This application claims priority to the Chinese patent application with application number 202310483410.5 filed with the State Intellectual Property Office of China on April 27, 2023, and priority to the Chinese patent application with invention name “Molecular Docking Method and System”, as well as priority to the Chinese patent application with application number 202310786254.X filed with the State Intellectual Property Office of China on June 29, 2023, and priority to the Chinese patent application with invention name “Molecular Docking Method and System”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of artificial intelligence, and in particular to a molecular docking method and system. Background Art

[0003] In structure-based drug design, simulation calculation methods are usually used to determine the optimal docking position of the ligand molecule and the protein, as well as the orientation and conformation of the ligand molecule during docking, so as to achieve docking of the ligand molecule and the protein.

[0004] Currently, molecular docking methods based on search algorithms can achieve this process. Specifically, a systematic or random search method is used to search and sample the search space. The search results (e.g., various docking positions for the ligand and protein, as well as various orientations and conformations of the ligand during docking) are then ranked and screened using a suitable scoring function. The ligand and protein are then docked based on the optimal solution found. However, these methods struggle to fully sample the search space, resulting in long computational times, high costs, and poor docking results.

[0005] Summary of the Invention

[0006] The present application provides a molecular docking method and system, which can achieve efficient, accurate and low-cost molecular docking.

[0007] In a first aspect, the present application provides a molecular docking method. This method can be applied to a molecular docking system. The molecular docking system obtains a first molecule and a second molecule, then discretizes the degree-of-freedom variables of the first molecule, and encodes the discretized degree-of-freedom variables using binary variables to obtain corresponding encoding vectors. Afterwards, the molecular docking system constructs an objective function about multiple binary variables based on the relationship between the first molecule and the second molecule, and obtains a solution for the degree-of-freedom variables of the first molecule by minimizing the objective function. Finally, the molecular docking system docks the first molecule and the second molecule based on the solution for the degree-of-freedom variables of the first molecule obtained above.

[0008] In the technical solution provided by the present application, the molecular docking system discretizes and encodes the degree-of-freedom variables of the first molecule to construct an objective function with respect to multiple binary variables, so that the search space corresponding to the minimization problem of the objective function is a discrete space. Furthermore, when the molecular docking system determines a solution for the degree-of-freedom variables of the first molecule that meets the requirements (i.e., achieves stable docking of the first molecule and the second molecule) in the search space, it can improve search efficiency, reduce search costs, and more easily find the above-mentioned solution that meets the requirements, thereby achieving efficient, accurate, and low-cost molecular docking.

[0009] In a possible implementation of the first aspect, the first molecule is a ligand, and the second molecule is a protein.

[0010] In one possible implementation of the first aspect, the relationship between the first molecule and the second molecule is the interaction potential energy between the first molecule and the second molecule, which may include the Lennard-Jones potential energy and the electrostatic energy between the first molecule and the second molecule. Alternatively, the relationship between the first molecule and the second molecule is generated based on the values ​​of the degree-of-freedom variables of the first molecule and the second molecule in the docked state. Accordingly, the objective function constructed based on the relationship between the first molecule and the second molecule can be calculated based on the above relationship using machine learning or simulated using a simulation method.

[0011] In a possible implementation of the first aspect, the molecular docking system minimizes the objective function to obtain a solution for each degree of freedom variable of the first molecule, including: the molecular docking system minimizes the objective function based on a preset algorithm to obtain a discrete optimal solution for each degree of freedom variable of the first molecule. The preset algorithm indicates that the iterative gradient in the minimization process is the difference between the objective function values ​​corresponding to N discrete grid points near the current discrete grid point and the objective function value corresponding to the current discrete grid point, the N discrete grid points near the current discrete grid point are determined by flipping the first element, the second element, ..., the Nth element in the encoding vector corresponding to the current discrete grid point, respectively, where N is a positive integer, and the encoding vector corresponding to the current discrete grid point includes the encoding vector corresponding to each degree of freedom variable of the first molecule.

[0012] In the above implementation, since the iterative gradient obtained based on the preset algorithm can indicate the next discrete grid point, the interference of continuous variables can be avoided in the process of minimizing the objective function, which facilitates finding the discrete optimal solution of each degree of freedom variable of the first molecule.

[0013] In one possible implementation of the first aspect, the molecular docking system further locally minimizes the objective function based on the discrete optimal solution for each degree of freedom variable of the first molecule to obtain a continuous solution for each degree of freedom variable of the first molecule. The objective function value corresponding to the continuous solution for each degree of freedom variable of the first molecule is less than or equal to the objective function value corresponding to the discrete optimal solution for each degree of freedom variable of the first molecule.

[0014] In the above implementation, the molecular docking system combines global search (i.e., finding the discrete optimal solution of each degree of freedom variable of the first molecule in the global discrete space) and local search (i.e., finding a continuous solution near the discrete optimal solution of each degree of freedom variable of the first molecule). It can search for the solution of each degree of freedom variable of the first molecule corresponding to a smaller objective function value, thereby achieving a more stable docking between the first molecule and the second molecule.

[0015] In a possible implementation of the first aspect, the molecular docking system further obtains a continuous optimal solution for each degree of freedom variable of the first molecule based on multiple continuous solutions for each degree of freedom variable of the first molecule. The objective function value corresponding to the continuous optimal solution for each degree of freedom variable of the first molecule is less than or equal to the objective function values ​​corresponding to other continuous solutions. Alternatively, the comprehensive score of the continuous optimal solution for each degree of freedom variable of the first molecule is greater than or equal to the comprehensive score of other continuous solutions, and the comprehensive score of the continuous solution is determined based on the objective function value corresponding to the continuous solution and its stability. Through the above implementation, the molecular docking system can search for a solution that makes the docking between the first molecule and the second molecule more stable.

[0016] In one possible implementation of the first aspect, the degree of freedom variables of the first molecule include any one or more of the following: degree of freedom variables for translation along a coordinate axis; or degree of freedom variables for rotation about a coordinate axis; or degree of freedom variables for rotation about a rotatable bond on the first molecule. In other words, the first molecule can be either rigid or flexible. Accordingly, the molecular docking system supports both rigid and flexible docking.

[0017] In a possible implementation of the first aspect, the above-mentioned molecular docking system uses binary variables to encode each discretized degree of freedom variable to obtain a corresponding encoding vector, including: the molecular docking system encodes the trigonometric function corresponding to the discretized degree of freedom variable rotating around the coordinate axis into a high-order polynomial composed of binary variables; or, encodes the trigonometric function corresponding to the discretized degree of freedom variable rotating around the rotatable bond on the first molecule into a high-order polynomial composed of binary variables.

[0018] It should be understood that since the objective function constructed by the molecular docking system includes the calculation of the trigonometric function values ​​corresponding to the discretized degree of freedom variables for rotation around the coordinate axis or rotatable bonds, through the above implementation method, the trigonometric functions corresponding to the discretized degree of freedom variables for rotation around the coordinate axis or rotatable bonds can be directly encoded into a high-order polynomial composed of binary variables, thereby simplifying the expression of the objective function and facilitating calculation.

[0019] In a possible implementation of the first aspect, when the discrete degree of freedom variable includes 2 n When there are n discrete values, the above high-order polynomial includes n binary variables, and the number of terms in the high-order polynomial is 2 n-1 , n is a positive integer. In other words, fewer binary variables can be used to encode trigonometric functions corresponding to more discrete values, thereby improving the encoding effect.

[0020] In a possible implementation of the first aspect, before the molecular docking system minimizes the objective function, the molecular docking system also performs filtering and smoothing on the objective function. The processed objective function is a monotonic mapping of the objective function, thereby making it easier to find the discrete optimal solution of each degree of freedom variable of the first molecule.

[0021] In a possible implementation of the first aspect, the molecular docking system obtains the first molecule and the second molecule, including: the molecular docking system performs molecular expansion processing on the first molecule to obtain at least one three-dimensional conformation of the first molecule, thereby achieving more stable docking between the first molecule and the second molecule.

[0022] In a second aspect, the present application provides a molecular docking system. The system includes an acquisition module, an encoding module, an objective function construction module, an optimization module and a decoding module. The acquisition module is used to obtain a first molecule and a second molecule. The encoding module is used to discretize the degree-of-freedom variables of the first molecule, and use binary variables to encode the discretized degree-of-freedom variables to obtain corresponding encoding vectors. The objective function construction module is used to construct an objective function about multiple binary variables based on the relationship between the first molecule and the second molecule. The optimization module is used to minimize the objective function to obtain a solution for the degree-of-freedom variables of the first molecule. The decoding module is used to dock the first molecule and the second molecule based on the solution for the degree-of-freedom variables of the first molecule obtained above.

[0023] In a possible implementation of the second aspect, the first molecule is a ligand, and the second molecule is a protein.

[0024] In one possible implementation of the second aspect, the relationship between the first molecule and the second molecule is the interaction potential energy between the first molecule and the second molecule, which may include the Lennard-Jones potential energy and the electrostatic energy between the first molecule and the second molecule. Alternatively, the relationship between the first molecule and the second molecule is generated based on the values ​​of the degree-of-freedom variables of the first molecule and the second molecule in the docked state. Accordingly, the objective function constructed based on the relationship between the first molecule and the second molecule can be calculated based on the above relationship using machine learning or simulated using a simulation method.

[0025] In one possible implementation of the second aspect, the optimization module is configured to minimize the objective function based on a preset algorithm to obtain a discrete optimal solution for each degree of freedom variable of the first molecule. The preset algorithm indicates that the iterative gradient during the minimization process is the difference between the objective function values ​​corresponding to N discrete grid points near the current discrete grid point and the objective function value corresponding to the current discrete grid point, wherein the N discrete grid points near the current discrete grid point are determined by flipping the first element, the second element, ..., the Nth element in the encoding vector corresponding to the current discrete grid point, respectively, where N is a positive integer, and the encoding vector corresponding to the current discrete grid point includes the encoding vector corresponding to each degree of freedom variable of the first molecule.

[0026] In one possible implementation of the second aspect, the optimization module is further configured to locally minimize the objective function based on the discrete optimal solution for each degree of freedom variable of the first molecule, thereby obtaining a continuous solution for each degree of freedom variable of the first molecule. The objective function value corresponding to the continuous solution for each degree of freedom variable of the first molecule is less than or equal to the objective function value corresponding to the discrete optimal solution for each degree of freedom variable of the first molecule.

[0027] In one possible implementation of the second aspect, the optimization module is further configured to obtain a continuous optimal solution for each degree of freedom variable of the first molecule based on multiple continuous solutions for each degree of freedom variable of the first molecule. The objective function value corresponding to the continuous optimal solution for each degree of freedom variable of the first molecule is less than or equal to the objective function values ​​corresponding to the other continuous solutions. Alternatively, the comprehensive score of the continuous optimal solution for each degree of freedom variable of the first molecule is greater than or equal to the comprehensive scores of the other continuous solutions, and the comprehensive score of the continuous solution is determined based on the objective function value corresponding to the continuous solution and its stability.

[0028] In a possible implementation of the second aspect, the degree of freedom variables of the above-mentioned first molecule include any one or more of the following categories: degree of freedom variables for translation along the coordinate axis; or, degree of freedom variables for rotation around the coordinate axis; or, degree of freedom variables for rotation around a rotatable bond on the first molecule.

[0029] In a possible implementation of the second aspect, the above-mentioned encoding module is used to encode the trigonometric function corresponding to the discretized degree of freedom variable of rotation around the coordinate axis into a high-order polynomial composed of binary variables; or, to encode the trigonometric function corresponding to the discretized degree of freedom variable of rotation around the rotatable bond on the first molecule into a high-order polynomial composed of binary variables.

[0030] In a possible implementation of the second aspect, when the discrete degree of freedom variable includes 2 n When there are n discrete values, the above high-order polynomial includes n binary variables, and the number of terms in the high-order polynomial is 2 n-1 , n is a positive integer.

[0031] In a possible implementation manner of the second aspect, the objective function construction module is further configured to perform filtering and smoothing processing on the objective function, and the processed objective function is a monotonic mapping of the objective function.

[0032] In a possible implementation manner of the second aspect, the acquisition module is used to perform molecular expansion processing on the first molecule to obtain at least one three-dimensional conformation of the first molecule.

[0033] In a third aspect, the present application provides a computing device comprising a processor and a memory, wherein the processor executes computer program code in the memory to implement part or all of the method described in the first aspect and any implementation of the first aspect.

[0034] In a fourth aspect, the present application provides a computing device cluster. The computing device cluster includes at least one computing device, each of which includes a processor and memory. The processor of at least one computing device is configured to execute instructions stored in the memory of at least one computing device, so that the computing device cluster performs part or all of the method described in the first aspect and any implementation of the first aspect.

[0035] In a fifth aspect, the present application provides a computer program product. This computer program product may be software or a program product containing instructions that can be run on a computing device or stored in any available medium. When this computer program product is run on a computing device or a cluster of computing devices, it causes the computing device or cluster of computing devices to perform part or all of the method described in the first aspect and any implementation of the first aspect.

[0036] In a sixth aspect, the present application provides a computer-readable storage medium. The computer storage medium includes computer program instructions that, when executed by a computing device or a cluster of computing devices, cause the computing device or the cluster of computing devices to perform part or all of the method described in the first aspect and any implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0038] FIG2 is a schematic diagram of a molecular docking method provided in an embodiment of the present application;

[0039] FIG3 is a schematic diagram of the degree of freedom variables of a first molecule provided in an embodiment of the present application;

[0040] FIG4 is a schematic diagram of determining an iterative gradient using dSB according to an embodiment of the present application;

[0041] FIG5 is a comparison diagram of docking results provided in an embodiment of the present application;

[0042] FIG6 is a comparison diagram of another docking result provided in an embodiment of the present application;

[0043] FIG7 is a comparison diagram of another docking result provided in an embodiment of the present application;

[0044] FIG8 is a diagram showing a relationship between filtering and smoothing of an objective function provided in an embodiment of the present application;

[0045] FIG9 is a bifurcation diagram of a binary variable optimization process provided in an embodiment of the present application;

[0046] FIG10 is a discrete optimization evolution diagram of an objective function provided in an embodiment of the present application;

[0047] FIG11 is a diagram of the continuous optimization evolution of an objective function provided in an embodiment of the present application;

[0048] FIG12 is a schematic structural diagram of a molecular docking system provided in an embodiment of the present application;

[0049] FIG13 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;

[0050] FIG14 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;

[0051] FIG15 is a schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to facilitate understanding of the technical solution provided by this application, some of the terms involved in this application are first explained.

[0053] One-hot encoding: Also known as one-bit effective encoding, it is implemented by using an N-bit state register to encode N states, each state has an independent register bit, and only one bit is effective at any time.

[0054] Compact binary coding: is a coding scheme that represents discrete variables as binary high-order polynomials. It is implemented by using the conversion relationship between binary numbers and decimal numbers. A vector composed of n binary variables (for example, -1 and 1) will correspond to 2 n Integers are multiplied by the variable value interval and added or subtracted by constants to adjust the corresponding variable value range to achieve uniform discretization mapping within a given range.

[0055] Green code: is a coding scheme that represents integers as a set of binary variables. In this coding scheme, a vector of n binary variables can represent 2 n integers, and two consecutive numbers differ by only one digit.

[0056] Simulated bifurcation algorithm (SB): is a quantum heuristic algorithm for solving binary variable combinatorial optimization problems. Inspired by quantum adiabatic optimization based on nonlinear oscillator networks, it simulates the adiabatic evolution of classical nonlinear Hamiltonian systems to achieve -1 / +1 bifurcation of the variables to be optimized and obtain the solution to the problem.

[0057] Quantum-inspired algorithms (QIAs): Traditional optimization algorithms are often constrained by local minima, which can affect their performance. To overcome these limitations, quantum mechanics concepts (such as quantum fluctuations, quantum tunneling, and adiabatic quantum evolution) are introduced to further improve existing algorithms, enhancing their convergence speed and accuracy. These are known as quantum-inspired algorithms. The most representative quantum-inspired algorithms are those inspired by quantum annealing. Quantum annealing transforms adiabatic quantum processes into their corresponding classical dynamical processes, preserving the properties of these processes. By simulating these processes, the ground state configuration of the target complex Hamiltonian (i.e., the global optimal solution to the complex objective function) can be obtained. In recent years, a large number of classical combinatorial optimization algorithms inspired by quantum annealing have emerged, and research has shown that their performance significantly surpasses that of traditional heuristic algorithms.

[0058] Quantum annealing (QA) is an optimization process based on the properties of quantum fluctuations. It can find the global optimal solution when the objective function has multiple candidate solutions. Quantum annealing is mainly used to solve problems with multiple local minima in discrete space (i.e., combinatorial optimization problems), for example, finding the ground state of spin glass. Quantum annealing first starts with a quantum superposition of all possible states (i.e., candidate states) with the same weight. Then the physical system begins quantum evolution according to the time-dependent Schrödinger equation. According to the time-dependent intensity of the transverse field, quantum tunneling occurs between states, causing the probability amplitudes of all candidate states to continuously change, realizing quantum parallelism. The transverse field is eventually turned off, and the system is expected to have obtained the solution to the original optimization problem, that is, to reach the corresponding ground state of the classical Ising model.

[0059] Structure-based drug design: Traditional drug design is a high-investment, high-risk, and time-consuming undertaking. This is primarily due to the significant time and effort required to screen and optimize drugs during the design phase, with no guaranteed results. Structure-based drug design, based on the three-dimensional structures of ligands and receptors, utilizes molecular recognition as a foundation, and utilizes computer software to directly or indirectly design drugs based on structure-activity relationships. This approach effectively improves drug design efficiency and reduces its cost. Consequently, structure-based drug design is gradually replacing traditional drug design models and becoming the mainstream approach in the field.

[0060] Molecular docking (MD) is a key step in structure-based drug design. It leverages the high-speed computing power of computers to predict optimal docking positions for ligands and receptors based on their three-dimensional structures, as well as the orientation and conformation of the ligand during docking. Recently emerging molecular docking methods include those based on search algorithms. These methods utilize systematic or random search methods to sample the search space, then rank and filter the search results using appropriate scoring functions. The resulting results are then used to dock the ligand and receptor. The search space refers to the ligand's motion space, encompassing the range of possible positions, orientations, and conformations. Notably, the search space is comprised of continuous variables (including the ligand's position, orientation, and conformation), meaning it is a continuous space with multiple local extremes. Scoring functions are typically based on physics, empirical data, knowledge, or machine learning. The search results include multiple docking positions for the ligand and protein, as well as multiple orientations and conformations of the ligand during docking. Although the above method is highly versatile, it is difficult to conduct sufficient search sampling in the search space to find the optimal solution. Therefore, it has the disadvantages of long calculation time, high cost and poor docking effect.

[0061] In response to the above problems, an embodiment of the present application provides a molecular docking system. The system is based on a quantum heuristic algorithm, which discretizes the search space composed of continuous variables (i.e., continuous space) into a search space composed of discrete variables (i.e., discrete space), and searches in the discrete space to find a solution that meets the requirements, thereby achieving molecular docking. Since the search range of the discrete space is smaller, and the quantum heuristic algorithm has advantages in optimizing the discrete space including multiple local extreme values, compared to the prior art of searching in continuous space using traditional optimization algorithms, the molecular docking system provided by the embodiment of the present application can achieve efficient, accurate and low-cost molecular docking.

[0062] The molecular docking system provided in the embodiments of the present application can be a software device, a hardware device, or a combination of a software device and a hardware device. When the molecular docking system is a software device, the molecular docking system can specifically be a virtual machine (VM), a container, or other software with molecular docking functionality.

[0063] Moreover, the deployment of the molecular docking system is flexible. For example, the molecular docking system can be independently deployed on a data center in a cloud environment. The data center in the cloud environment includes a large number of basic resources (including computing resources, storage resources, and network resources). The computing resources in the data center in the cloud environment can be a large number of computing devices (e.g., servers). In some embodiments, the molecular docking system can be independently deployed on a server or virtual machine in the data center in the cloud environment, or distributedly deployed on multiple servers or multiple virtual machines in the data center in the cloud environment, or distributedly deployed on servers and virtual machines in the data center in the cloud environment. As shown in Figure 1, the molecular docking system is deployed on the data center in the cloud environment by a cloud service provider. Accordingly, the cloud service provider provides the functions of the molecular docking system as a cloud service to tenants, such as pharmaceutical companies, material chemical companies, or scientific research institutions. When a tenant needs to achieve a stable complex of a first molecule and a second molecule, the tenant can register an account on the cloud management platform, log in to the cloud management platform through the account, and purchase the above-mentioned cloud service on the cloud management platform (e.g., pre-charge and then settle according to the final resource usage, or purchase on an annual or monthly basis). After the purchase is successful, the tenant can use the cloud service (for example, calling the molecular docking system deployed in the data center in the form of an application programming interface (API)). When using the cloud service, the tenant can upload the first molecule and the second molecule to be docked (for example, the ligand and protein in Figure 1) to the molecular docking system, and then the molecular docking system determines the docking information of the first molecule and the second molecule (including the docking position of the first molecule and the second molecule and the orientation and conformation of the first molecule during docking). In some embodiments, the docking information of the first molecule and the second molecule can be used or downloaded by the tenant online to achieve the docking of the first molecule and the second molecule, thereby obtaining a stable complex of the first molecule and the second molecule. In other embodiments, the molecular docking system can also dock the first molecule and the second molecule based on the above-mentioned docking information to obtain a stable complex of the first molecule and the second molecule, and return the complex to the tenant (for example, the protein-ligand complex in Figure 1).

[0064] For another example, the molecular docking system can also be deployed on a computing device in an edge environment, where the edge environment is an environment that is geographically close to the user's terminal computing device. The computing device in the edge environment includes, for example, an edge server, an edge station with computing power, etc. Alternatively, the molecular docking system can also be deployed on a terminal computing device, which includes a terminal server, a smart phone, a laptop, a tablet computer, a personal desktop computer, etc. Alternatively, the molecular docking system can also be distributedly deployed in different environments (including any two or three of the data center of the cloud environment, the computing device of the edge environment, or the terminal computing device). For example, the molecular docking system can be logically divided into multiple parts (for example, the division method shown in Figure 12), each part having different functions, a part of the molecular docking system can be deployed on a computing device in a cloud environment, and another part can be deployed on a computing device in an edge environment. The various parts of the molecular docking system deployed in different environments collaborate to provide the function of molecular docking. It should be understood that the embodiment of the present application does not limit the division of the various parts of the molecular docking system, nor does it limit the deployment method of the various parts of the molecular docking system. In actual application, it can be adaptively deployed according to the specific application requirements or the computing power of the hardware device.

[0065] The following describes in detail how the molecular docking system provided in the embodiment of the present application achieves docking of a first molecule and a second molecule with reference to the flow diagram of a molecular docking method shown in FIG2 .

[0066] S101: The molecular docking system obtains a first molecule and a second molecule.

[0067] Specifically, the molecular docking system provides an interface, such as an API, a graphical user interface (GUI), a command line interface (CLI), or other communication interface. A user or other device storing the first molecule and the second molecule can upload or send the first molecule and the second molecule to the molecular docking system through the interface. Correspondingly, the molecular docking system can receive the first molecule and the second molecule through the interface, thereby obtaining the first molecule and the second molecule.

[0068] In some embodiments, the first molecule received by the molecular docking system may be a one-dimensional representation, a two-dimensional representation, or a three-dimensional representation of the first molecule, wherein a one-dimensional representation refers to a string used to represent a molecular structure, for example, smiles, a two-dimensional representation refers to a molecular structure diagram consisting of points and edges, and a three-dimensional representation is used to indicate the three-dimensional structure of a molecule. In this case, the molecular docking system needs to further perform molecular unfolding (MU) processing on the first molecule (i.e., the one-dimensional representation, two-dimensional representation, or three-dimensional representation of the first molecule) to obtain at least one three-dimensional conformation of the first molecule. Among them, the molecular docking system can use an industry-existing method with a better molecular unfolding effect to perform molecular unfolding processing on the one-dimensional representation, two-dimensional representation, or three-dimensional representation of the first molecule, for example, by looking up a table to select the three-dimensional conformation corresponding to the one-dimensional representation, two-dimensional representation, or three-dimensional representation of the first molecule, or using a molecular geometric volume maximization algorithm to generate a three-dimensional conformation of the first molecule, or using RDKit software to generate a three-dimensional conformation of the first molecule. Similarly, the second molecule received by the molecular docking system may also be a one-dimensional representation, two-dimensional representation, or three-dimensional representation of the second molecule. In this case, the molecular docking system may need to further perform a molecular expansion process on the second molecule (i.e., the one-dimensional representation, two-dimensional representation, or three-dimensional representation of the second molecule) to obtain at least one three-dimensional conformation of the second molecule. It should be understood that the molecular docking system performs a molecular expansion process on the second molecule similar to the molecular expansion process on the first molecule described above, and therefore will not be described again here.

[0069] In some embodiments, the first molecule is a ligand and the second molecule is a receptor. A receptor is a biological macromolecule composed of a glycoprotein or lipoprotein, such as a protein. A ligand is a molecule that recognizes and binds to a receptor, such as a small molecule ligand or protein. In other embodiments, the first molecule is a small molecule and the second molecule is a solid material. Alternatively, the first and second molecules are different drugs.

[0070] S102: The molecular docking system discretizes the degree-of-freedom variables of the first molecule, and encodes the discretized degree-of-freedom variables using binary variables to obtain corresponding encoding vectors.

[0071] The degree of freedom of the first molecule refers to the motion state of each atom in the first molecule in three-dimensional space, which can be used to indicate the position of each atom in the first molecule in three-dimensional space. The degree of freedom variable of the first molecule refers to that the degree of freedom of the first molecule is a continuous variable, which means that the position of the first molecule in three-dimensional space can be variable. In order to facilitate the docking of the first molecule and the second molecule, the position of the second molecule in three-dimensional space is set to fixed by the embodiment of the present application, and by changing the position of the first molecule in three-dimensional space (i.e., the degree of freedom variable of the first molecule), it is determined how the first molecule and the second molecule can be docked to form a more stable complex.

[0072] Since the docking of the first molecule and the second molecule can be rigid docking or flexible docking, the first molecule can be a rigid molecule or a flexible molecule. Rigid docking refers to docking the first molecule and the second molecule as rigid molecules. Rigid molecules refer to molecules whose conformation does not change during the molecular docking process. Flexible docking refers to docking the first molecule with the second molecule as a flexible molecule. Flexible molecules refer to molecules whose conformation changes during the molecular docking process.

[0073] When the first molecule is a rigid molecule, the movement of the first molecule in three-dimensional space has 6 degrees of freedom, namely 3 degrees of freedom of translation along the coordinate axis (hereinafter referred to as translational degrees of freedom) and 3 degrees of freedom of rotation around the coordinate axis (hereinafter referred to as rotational degrees of freedom). As shown in (a) in Figure 3, in three-dimensional space, the 3 degrees of freedom of translation are the degree of freedom of translation along the X-axis, the degree of freedom of translation along the Y-axis, and the degree of freedom of translation along the Z-axis. The 3 degrees of freedom of rotation are the degree of freedom of rotation around the X-axis, the degree of freedom of rotation around the Y-axis, and the degree of freedom of rotation around the Z-axis. Correspondingly, the degree of freedom variables of the first molecule include 6 degree of freedom variables, namely 3 degrees of freedom variables of translation along the coordinate axis (hereinafter referred to as translational degrees of freedom variables) and 3 degrees of freedom variables of rotation around the coordinate axis (hereinafter referred to as rotational degrees of freedom variables). Among them, the 3 translational degrees of freedom variables are the degrees of freedom variables of translation along the X-axis (represented as T in the figure). X ), the degree of freedom variable for translation along the Y axis (denoted as T in the figure) Y ), the degree of freedom variable of translation along the Z axis (denoted as T in the figure) Z). The three rotational degree of freedom variables are the degree of freedom variable for rotation around the X-axis (shown as A in the figure), the degree of freedom variable for rotation around the Y-axis (shown as B in the figure), and the degree of freedom variable for rotation around the Z-axis (shown as C in the figure). When the first molecule is a flexible molecule, the movement of the first molecule in three-dimensional space has 6+m degrees of freedom, that is, in addition to the above-mentioned three translational degrees of freedom and three rotational degrees of freedom, it also includes m degrees of freedom for rotation around the rotatable bonds on the first molecule (hereinafter referred to as torsional degrees of freedom), where m is a positive integer. Accordingly, the degree of freedom variables of the first molecule include three translational degree of freedom variables, three rotational degree of freedom variables and m degree of freedom variables for rotation around the rotatable bonds on the first molecule (hereinafter referred to as torsional degree of freedom variables). As shown in (b) in Figure 3, the figure shows two torsional degree of freedom variables of the first molecule, which are the degree of freedom variables for rotation around two rotatable bonds on the first molecule (shown as θ1 and θ2 in the figure).

[0074] In some embodiments, the molecular docking system uses binary variables to encode each discrete degree of freedom variable to obtain a corresponding encoding vector, including: the molecular docking system encodes one or more of the discrete translational degree of freedom variables, the discrete rotational degree of freedom variables, and the discrete torsional degree of freedom variables into a vector composed of binary variables. Alternatively, the molecular docking system encodes the trigonometric functions corresponding to the discrete rotational degree of freedom variables into a high-order polynomial composed of binary variables. Alternatively, the molecular docking system encodes the trigonometric functions corresponding to the discrete torsional degree of freedom variables into a high-order polynomial composed of binary variables. Among them, a binary variable means that the value of the variable has two possibilities, such as -1 or 1, or 0 or 1, or -1 or 0, etc. A high-order polynomial means that the order of the polynomial is greater than or equal to 2.

[0075] Furthermore, the molecular docking system may encode the discretized translational degree of freedom variable in any one or more of the following ways, so as to encode it into a vector consisting of binary variables.

[0076] Method 1: Compact binary encoding

[0077] The degree of freedom variable (T X ) as an example, the molecular docking system can use the following coding formula to encode the discrete T X Perform compact binary encoding:

[0078] In the above formula, t k Indicates T X The discrete value obtained after uniform discretization, 0≤k≤2 n -1, and n and k are both positive integers. In the embodiment of the present application, the molecular docking system can be based on T X The value range of TX Perform uniform discretization to obtain 2 n discrete values ​​(i.e. ), these 2 n The difference between adjacent discrete values ​​in the discrete values ​​(that is, Δt in the formula) is equal. For example, T X ∈[T X1 ,T X2 ),but t k =T X1 +Δt*k. It should be understood that in practical applications, T X The value range of can be set by the user, or it can be dynamically adjusted by the molecular docking system according to the actual situation. k The corresponding encoding vector is b, b=[b0,b1,…,b n-1 ], b i ∈{0,1}, 0≤i≤n-1. k and b have a one-to-one correspondence, and this correspondence can be set by the user or by the molecular docking system based on actual conditions. c represents a constant, and its specific value can be set by the user or by the molecular docking system based on discrete values.

[0079] For example, suppose n is 3, T X The range of values ​​is [-4,4), and the corresponding relationship between k and b is shown in Table 1, then Δt=1, c=-4. Further, we can determine t k The corresponding encoding vector and the corresponding relationship between the two (see Table 1).

[0080] Table 1

[0081] It should be understood that the above coding formula is only used as a X An example of compact binary coding. In practical applications, the molecular docking system can also use other coding formulas to realize the discretization of T X Compact binary coding is performed. For example, the binary variables used in the coding are -1 or 1. For another example, the coding vector obtained by the above coding formula (that is, the coding vector corresponding to the uniform discrete value, where the uniform discrete value refers to the T X The discrete value obtained after uniform discretization, that is, t k ) is further mapped to non-uniform discrete values ​​(here, T X The discrete values ​​obtained after non-uniform discretization are obtained) to obtain the encoding vector corresponding to the non-uniform discrete value. It should also be understood that for simplicity, the above embodiment only describes how the molecular docking system implements the discrete T XCompact binary encoding is performed. Similarly, for other translational degree-of-freedom variables (for example, the above-mentioned degree-of-freedom variables for translation along the Y-axis and the degree-of-freedom variables for translation along the Z-axis), the molecular docking system can also perform compact binary encoding on these discretized translational degree-of-freedom variables. The specific implementation method can refer to the above-mentioned encoding formula, which will not be repeated here.

[0082] Method 2: Green coding method

[0083] Still using the above degree of freedom variable for translation along the X-axis (i.e. T X ) as an example, the molecular docking system can use the following coding formula to encode the discrete T X Green encoding:

[0084] In the above formula, t k Indicates T X The discrete value obtained after uniform discretization, 0≤k≤2 n -1, and n and k are both positive integers, Δt represents the difference between adjacent discrete values, about t k For the detailed description of and Δt, please refer to the relevant description in the above method 1. k The corresponding encoding vector is s, s=[s0,s1,…,s n-1 ],s i ∈{-1,1}, 0≤i≤n-1. k corresponds to s, and the correspondence between the two can be set by the user or by the molecular docking system based on the actual situation. c represents a constant, and its specific value can be set by the user or by the molecular docking system based on discrete values.

[0085] For example, suppose n is 3, T X The range of values ​​is [-4,4), and the corresponding relationship between k and s is shown in Table 2, then Δt=1, c=-1. Further, we can determine t k The corresponding encoding vector and the corresponding relationship between the two (see Table 2).

[0086] Table 2

[0087] It should be understood that the above coding formula is only used as a x An example of Green coding. In practical applications, the molecular docking system can also use other coding formulas to realize the discrete T x Green coding is performed. For example, the binary variable used in the coding is 0 or 1. For another example, the coding vector obtained by the above coding formula (that is, the coding vector corresponding to the uniform discrete value, where the uniform discrete value refers to the T XThe discrete value obtained after uniform discretization, that is, t k ) is further mapped to non-uniform discrete values ​​(here, T x The discrete values ​​obtained after non-uniform discretization are obtained) to obtain the encoding vector corresponding to the non-uniform discrete value. It should also be understood that for simplicity, the above embodiment only describes how the molecular docking system implements the discrete T x Green encoding is performed. Similarly, for other translational degree-of-freedom variables (for example, the above-mentioned degree-of-freedom variables for translation along the Y-axis and the degree-of-freedom variables for translation along the Z-axis), the molecular docking system can also perform Green encoding on these discretized translational degree-of-freedom variables. The specific implementation method can refer to the above-mentioned encoding formula, which will not be repeated here.

[0088] The molecular docking system can encode the discretized rotational degree of freedom variables and the discretized torsional degree of freedom variables in any one or more of the following ways: encoding them into vectors composed of binary variables, or encoding their corresponding trigonometric functions into high-order polynomials composed of binary variables.

[0089] Method 1: Green coding method

[0090] Taking the above-mentioned degree of freedom variable (i.e. A) rotating around the X-axis as an example, the molecular docking system can use the following encoding formula to perform Green encoding on the discretized A:

[0091] In the above formula, a k Represents the discrete value obtained after uniform discretization of A, 0≤k≤2 n -1, and n and k are both positive integers. In the embodiment of the present application, the molecular docking system can uniformly discretize A based on the value range of A, thereby obtaining 2 n discrete values ​​(i.e. ), these 2 n The difference between adjacent discrete values ​​(denoted as Δa) is equal. For example, A∈[0,2π), then Δa=2π / 2 n , a k =Δa*k. It should be understood that in practical applications, the value range of A can be set by the user or dynamically adjusted by the molecular docking system according to actual conditions. k The corresponding encoding vector is s, s=[s0,s1,…,s n-1 ],s u ∈{-1,1}, 0≤i≤n-1. k corresponds to s, and the correspondence between the two can be set by the user or by the molecular docking system based on the actual situation. c represents a constant, and its specific value can be set by the user or by the molecular docking system based on discrete values.

[0092] For example, assuming n is 3, the range of A is [0, 2π), and the corresponding relationship between k and s is shown in Table 3, then Δa=π / 4, c=3π / 4. Further, we can determine a k The corresponding encoding vector and the corresponding relationship between the two (see Table 3).

[0093] Table 3

[0094] It should be understood that the above encoding formula is only an example of Green's encoding for the discretized A. In actual applications, the molecular docking system can also use other encoding formulas to implement Green's encoding for the discretized A. For example, the binary variable used in the encoding takes the value of 0 or 1. For another example, the encoding vector obtained by the above encoding formula (i.e., the encoding vector corresponding to the uniform discrete value, where the uniform discrete value refers to the discrete value obtained after uniform discretization of A, i.e., a k ) is further mapped to non-uniform discrete values ​​(here refers to the discrete values ​​obtained by non-uniform discretization of A), thereby obtaining the encoding vector corresponding to the non-uniform discrete value. It should also be understood that, for the sake of simplicity, the above embodiment only describes how the molecular docking system implements Green encoding of the discretized A. Similarly, for other rotational degree of freedom variables (for example, the above-mentioned degree of freedom variables for rotation around the Y axis and the degree of freedom variables for rotation around the Z axis) and torsional degree of freedom variables, the molecular docking system can also perform Green encoding on these discretized degree of freedom variables. The specific implementation method can refer to the above-mentioned encoding formula, which will not be repeated here.

[0095] Method 2: Trigonometric function binary encoding method

[0096] Still taking the above degree of freedom variable (i.e. A) rotating around the X-axis as an example, the molecular docking system can use the following encoding formula to encode the trigonometric function corresponding to the discretized A:

[0097] sin a k =Im(p n (s))

[0098] cos a k =Re(p n (s))

[0099] In the above formula, a k Represents the discrete value obtained after uniform discretization of A, 0≤k≤2 n -1, and b and k are both positive integers, about a k For a detailed description of the method, please refer to the related description in the above method 1. n (s) is the molecular docking system based on A constructed variable consisting of n binary variables and 2 itemsn-1 A high-order polynomial that satisfies the following conditions: k and s (i.e. [s0,s1,…,s n-1 ],s i ∈{-1,1}, 0≤i≤n-1) have one-to-one correspondence, and the correspondence between the two can be set by the user or by the molecular docking system according to the actual situation. n (s)) means taking p n The imaginary part of (s), Re(p n (s)) means taking p n (s). According to the above formula, a k The corresponding trigonometric function (ie sina k and cosa k ) is encoded as n binary variables with 2 items. n-1 A high-order polynomial with each binary variable taking the value of -1 or 1.

[0100] For example, assuming n is 3, the value range of A is [0,2π), and the corresponding relationship between k and s is shown in Table 4, then a k =πk / 4, Where s=(s0,s1,s3)∈{±1} 3 .

[0101] Table 4

[0102] According to the corresponding relationship shown in Table 4, we can get:

[0103] Accordingly, a k The corresponding trigonometric function encoding is:

[0104] It is worth noting that the above embodiments only describe how the molecular docking system can realize the k and cos a k This is because the objective function used in the embodiment of the present application (see the following description of S103 for details) involves sin a k and cos a k , but not involving a k That is to say, the molecular docking system can determine the need for a according to the actual situation (for example, the objective function). k Which trigonometric functions are encoded? k The encoding of other trigonometric functions is the same as that of sin a k and cos ak The coding idea is similar, so it will not be repeated here.

[0105] It should be understood that the above encoding formula is only an example of encoding the trigonometric function corresponding to the discretized A. In actual applications, the molecular docking system can also use other encoding formulas to encode the trigonometric function corresponding to the discretized A. For example, the value of the binary variable used in the encoding is 0 or 1. For another example, the high-order polynomial obtained by the above encoding formula (i.e., the high-order polynomial obtained by encoding the trigonometric function of the uniform discrete value, where the uniform discrete value refers to the discrete value obtained after uniform discretization of A, i.e., a k ) is further mapped to non-uniform discrete values ​​(here refers to the discrete values ​​obtained after non-uniform discretization of A), thereby achieving the purpose of encoding the trigonometric functions of the non-uniform discrete values. It should also be understood that, for the sake of simplicity, the above embodiment only describes how the molecular docking system encodes the trigonometric functions corresponding to the discretized A. Similarly, for other rotational degree of freedom variables (for example, the degree of freedom variables for rotation around the Y axis and the degree of freedom variables for rotation around the Z axis) and torsional degree of freedom variables, the molecular docking system can also encode the trigonometric functions corresponding to these discretized degree of freedom variables. The specific implementation method can refer to the above encoding formula, which will not be repeated here.

[0106] In addition to the above-mentioned encoding methods, the molecular docking system can also use other encoding methods to encode the discrete degree of freedom variables, for example, one-hot encoding. However, it is worth noting that compared with the one-hot encoding method, the compact binary encoding method, Green encoding method and trigonometric binary encoding method involved in the above embodiments have obvious advantages in computing speed. The specific reasons can be seen in Table 5 below: It can be seen from the encoding formulas of the compact binary encoding method and Green encoding method described in the above embodiments that when these two encoding methods are used to encode the discrete degree of freedom variables, only n binary variables and n terms (excluding constant terms) are required to realize 2 n The encoding of discrete values, and the underlying operations involved in the encoding are only multiplication and addition. From the encoding formula of the trigonometric function binary encoding method described in the above embodiment, it can be seen that when using this encoding method to encode the discrete degree of freedom variables, only n binary variables and 2 n-1 Item 2 can be achieved n The trigonometric functions corresponding to the discrete values ​​are encoded, and the underlying operations involved in the encoding only include multiplication and addition. When using one-hot encoding to encode the discrete degree of freedom variables, 2 n binary variables and 2 n Items can be realized to 2 nThe encoding of discrete values ​​involves multiplication and addition when encoding the discretized translational degrees of freedom variables, and multiplication, addition, and trigonometric functions when encoding the discretized rotational degrees of freedom variables and the discretized torsional degrees of freedom variables. In general, when encoding discrete translational degrees of freedom variables, the compact binary encoding and Green's encoding methods both exponentially reduce the number of binary variables and terms required for encoding compared to one-hot encoding. When encoding discrete rotational degrees of freedom variables and the discretized torsional degrees of freedom variables, Green's encoding method both exponentially reduces the number of binary variables and terms required for encoding compared to one-hot encoding, and the underlying operations do not involve trigonometric functions. The trigonometric binary encoding method exponentially reduces the number of binary variables required for encoding, does not involve the calculation of constant terms, and the underlying operations do not involve trigonometric functions.

[0107] Table 5

[0108] S103: The molecular docking system constructs an objective function based on the relationship between the first molecule and the second molecule.

[0109] The relationship between the first molecule and the second molecule can be expressed using the interaction potential between the first molecule and the second molecule, or it can be generated based on the values ​​of the degree of freedom variables of the first molecule and the second molecule in the docking state. Therefore, the molecular docking system constructs the objective function based on the relationship between the first molecule and the second molecule, including the following two implementation methods:

[0110] Method 1: The molecular docking system constructs an objective function based on the interaction potential energy between the first molecule and the second molecule.

[0111] Specifically, since the goal of docking a first molecule and a second molecule is to form a stable complex, and the lower the interaction potential energy between the first molecule and the second molecule, the more stable the complex formed by docking, the present embodiment uses the interaction potential energy between the first molecule and the second molecule as an objective function and minimizes the objective function to achieve docking of the first molecule and the second molecule.

[0112] The interaction potential energy between the first molecule and the second molecule includes the Lennard-Jones potential energy and the electrostatic energy between the first molecule and the second molecule. Accordingly, the objective function (V) constructed by the molecular docking system can be expressed as follows: V=w1V LJ +w2V e

[0113] In the above formula, V lJrepresents the Lennard-Jones potential energy between the first molecule and the second molecule. i represents an atom in the first molecule, and j represents an atom in the second molecule. In terms of value-taking, both i and j take integer values, and 0 < i ≤ W1, 0 < j ≤ W2, where W1 represents the number of atoms in the first molecule and W2 represents the number of atoms in the second molecule. r ij represents the distance between atom i and atom j, and R ij represents the sum of the radius of atom i and the radius of atom j. V e represents the electrostatic energy between the first molecule and the second molecule, and q i represents the charge of atom i, and q j represents the charge of atom j, and f(r ij ) represents a correction function with respect to r ij , and ε ij represents the potential well depth constant between atom i and atom j. V represents the objective function, and w1 and w2 are the weights of V LJ and V e respectively.

[0114] r ij is determined by the coordinates of atom i and atom j. Among them, since in the embodiment of the present application, the position of the second molecule is set as a fixed position, and the stable docking of the first molecule and the second molecule is achieved by changing the position of the first molecule, the coordinates of atom i will change with the movement (for example, translation or rotation) of the first molecule in the three-dimensional space, while the coordinates of atom j will not change. That is to say, the value-taking of the degree-of-freedom variable of the first molecule will affect r ij . Specifically, the following formula can be referred to: R(A,B,C) = R Z (C)R Y (B)R X (A)

[0115] In the above formula, represents the coordinates of atom j, represents the coordinates of atom i before change, represents the coordinates of atom i after change, represents the coordinates of the rotation center. When the first molecule is a rigid molecule, the coordinates of atom i are determined by the rotation action (R) and the translation action (T). When the first molecule is a flexible molecule, the coordinates of atom i are determined by the rotation action (R), the translation action (T), and the torsion action (R Θ ). Among them, the rotation action is an action that makes atom i rotate around the coordinate axis, and it is determined by the rotation matrix (R(A,B,C)). The translation action is an action that makes atom i translate along the coordinate axis, and it is determined by the translation vector The torsional action is the action that instructs atom i to rotate around the rotatable bond on the first molecule. z (C) represents the rotation matrix corresponding to the rotation around the Z axis, C represents the degree of freedom variable for rotation around the Z axis, R Y (B) represents the rotation matrix corresponding to the rotation around the Y axis, B represents the degree of freedom variable for rotation around the Y axis, R X (A) represents the rotation matrix corresponding to the rotation around the X axis, and A represents the degree of freedom variable for the rotation around the X axis. X represents the degree of freedom variable along the X-axis, T Y represents the degree of freedom variable along the Y axis, T z represents the degree of freedom for translation along the Z axis. represents the coordinates of atom i after rotation about a rotatable bond on the first molecule.

[0116] From the above formula we can see that r ij is a function of the degree of freedom variables of the first molecule. Combining with the above S102, it can be seen that after the degree of freedom variables of the first molecule are discretized and encoded, they are represented as a coding vector composed of multiple binary variables. Correspondingly, r ij becomes a function of multiple binary variables. Therefore, including r ij The objective function of this item is also a function of multiple binary variables. It should be understood that when the objective function is a function of multiple binary variables, the search space corresponding to the objective function minimization problem is a discrete space. Compared with the continuous space (i.e., the search space composed of the degrees of freedom variables of the first numerator), the discrete space has a smaller search range and is easier to minimize the objective function, thereby improving computational efficiency and reducing computational cost.

[0117] Method 2: The molecular docking system constructs an objective function based on the values ​​of the degree of freedom variables of the first molecule and the second molecule in the docked state.

[0118] Specifically, the molecular docking system can be calculated based on the values ​​of the degree of freedom variables of the two molecules in the docked state using methods such as machine learning, or simulated based on methods such as simulation. It should be noted that this application does not limit the specific machine learning algorithm or simulation method used to construct the objective function of the molecular docking system.

[0119] S104: The molecular docking system performs minimization processing on the objective function to obtain a solution for each degree of freedom variable of the first molecule.

[0120] In practical applications, the surface of the second molecule (e.g., protein) may be rugged due to its three-dimensional structure, which may affect r ijThe value of further causes the potential energy surface of the objective function to oscillate violently or be uneven. It should be understood that in the minimization process of the objective function, if the potential energy surface of the objective function oscillates violently or is uneven, then for existing iterative methods, even if the discrete grid points in the discrete grid are dense, there will still be a problem that the iterative gradient cannot truly reflect the direction indicated by the connection line of the discrete grid points, resulting in the inability to find the next discrete grid point with a smaller objective function value along the gradient direction. In the embodiment of the present application, the discrete grid refers to the grid formed after the various degree of freedom variables of the first molecule are discretized, and the discrete grid points refer to the discrete points in the discrete grid. Taking the improved discrete version of the simulated bifurcation algorithm (dSB) as an example, the gradient used for each iteration is the gradient of the discrete grid points near the continuous variable used in this iteration. As shown in Figure 4, point a0 represents the continuous variable used in this iteration, point a1 is the discrete grid point near point a0, and point a2 is the discrete grid point expected to be reached by iteration. As can be seen from Figure 4, the direction indicated by the gradient of point a1 (shown as a dotted arrow in the figure) is different from the direction indicated by the line connecting points a1 and a2 (shown as a realization arrow in the figure). Therefore, iterating along the direction indicated by the gradient of point a1 will not reach point a2.

[0121] To this end, the present invention proposes a hopscotch simulated bifurcation algorithm (hSB) based on the simulated bifurcation algorithm (SB). This algorithm uses a coarse-grained difference method to calculate the iterative gradient. That is, the iterative gradient in the minimization process is the difference between the objective function values ​​corresponding to the N discrete grid points near the current discrete grid point and the objective function value corresponding to the current discrete grid point. The algorithm is described below by the following formula:

[0122] In the above formula, Represents the encoding vector corresponding to the current discrete grid point, in, And N is a positive integer. u Indicates the number of binary variables in the encoding vector corresponding to the discrete value of the u-th degree of freedom variable. For example, in the above S102, the discrete T X Compact binary coding is performed, and the resulting coding vector includes n binary variables. When the first molecule is a rigid molecule, v = 6; when the first molecule is a flexible molecule, v = 6 + m. i express The i-th element in y can be any of the two values ​​corresponding to the binary variable (for example, -1 or 1), 0≤i≤N and i is a positive integer. i express The iterative gradient corresponding to the i-th element in . V represents the objective function. a(t) represents the control parameter that increases from 0 to a0, where a0 and c0 are both non-negative constants. It represents the encoding vector corresponding to the i-th discrete grid point near the current discrete grid point. It is obtained by computing the i-th element (i.e. x i ) is flipped to get The value of the i-th element in is changed to another value. For example, if i is 2, the two values ​​of the binary variable are -1 and 1. but In other words, the "N discrete grid points near the current discrete grid point" mentioned above refer to the discrete grid points determined by flipping the first, second, ..., Nth elements of the encoding vector corresponding to the current discrete grid point. Using the above example again, the N (i.e., three) discrete grid points near the current discrete grid point are: the discrete grid point corresponding to [-1, 1, 1], the discrete grid point corresponding to [1, -1, 1], and the discrete grid point corresponding to [1, 1, -1]. Represents the objective function value corresponding to the i-th discrete grid point near the current discrete grid point, Indicates the objective function value corresponding to the current discrete grid point.

[0123] It should be understood that, as can be seen from the above formula, the iterative gradient calculated using the hSB provided in the embodiments of this application can reflect the direction indicated by the lines connecting the discrete grid points. Therefore, if the potential energy surface of the objective function exhibits significant fluctuations or unevenness, the potential energy variations in the non-discrete grid area can be smoothed out, allowing the objective function minimization process to strictly focus on the potential energy relationship of the discrete variables, thereby avoiding interference from continuous variables in the minimization process.

[0124] In some embodiments, the molecular docking system minimizes the objective function to obtain a solution for each degree of freedom variable of the first molecule, including: the molecular docking system minimizes the objective function based on the hSB to obtain a discrete optimal solution for each degree of freedom variable of the first molecule. Specifically, the molecular docking system iterates the objective function multiple times based on the hSB to determine how each binary variable in the objective function takes values ​​that minimize the corresponding objective function value, and then decodes each binary variable with the determined values ​​to obtain a corresponding discrete solution, i.e., the discrete optimal solution for each degree of freedom variable of the first molecule. It should be understood that the decoding process involved in this step is the inverse process of the encoding process described in S102 above. Therefore, for simplicity, the decoding process is not described here.

[0125] Furthermore, the molecular docking system can also locally minimize the objective function based on the discrete optimal solution of each degree of freedom variable of the first molecule to obtain a continuous solution of each degree of freedom variable of the first molecule. The objective function value corresponding to the continuous solution of each degree of freedom variable of the first molecule is less than or equal to the objective function value corresponding to the discrete optimal solution of each degree of freedom variable of the first molecule. For example, referring to Figures 10 and 11 below, it can be seen from Figures 10 and 11 that the objective function value corresponding to the continuous solution of each degree of freedom variable of the first molecule obtained through this step is less than the objective function value corresponding to the discrete optimal solution of each degree of freedom variable of the first molecule.

[0126] In some embodiments, the molecular docking system locally minimizes the objective function based on the discrete optimal solution of each degree of freedom variable of the first molecule to obtain a continuous solution of each degree of freedom variable of the first molecule, including: the molecular docking system uses an adaptive gradient descent algorithm or other algorithms to perform gradient calculation at the discrete optimal solution of each degree of freedom variable of the first molecule, iterates based on the calculated gradient, and obtains a continuous solution of each degree of freedom variable of the first molecule after multiple iterations.

[0127] It is understood that in practical applications, the molecular docking system locally minimizes the objective function based on the discrete optimal solutions for each degree of freedom variable of the first molecule, thereby obtaining multiple continuous solutions for each degree of freedom variable of the first molecule. Therefore, further, the molecular docking system can also obtain a continuous optimal solution for each degree of freedom variable of the first molecule based on multiple continuous solutions for each degree of freedom variable of the first molecule.

[0128] In some embodiments, the molecular docking system obtains a continuous optimal solution for each degree of freedom variable of the first molecule based on multiple continuous solutions for each degree of freedom variable of the first molecule, including at least the following two implementation methods:

[0129] Method 1: The molecular docking system determines a continuous optimal solution among a plurality of continuous solutions based on the objective function value corresponding to the continuous solutions of each degree of freedom variable of the first molecule.

[0130] Specifically, the molecular docking system calculates the objective function values ​​corresponding to the continuous solutions for each degree of freedom variable of the first molecule based on the continuous solutions for each degree of freedom variable of the first molecule, thereby obtaining multiple objective function values. The molecular docking system then determines the minimum value among the multiple objective function values ​​and selects the continuous solution corresponding to the minimum objective function value as the continuous optimal solution. In other words, the objective function value corresponding to the continuous optimal solution for each degree of freedom variable of the first molecule is less than or equal to the objective function values ​​corresponding to the other continuous solutions.

[0131] Method 2: The molecular docking system determines a continuous optimal solution among multiple continuous solutions based on the objective function value and stability corresponding to the continuous solutions of each degree of freedom variable of the first molecule.

[0132] Specifically, the molecular docking system can obtain the objective function value and stability corresponding to the above-mentioned continuous solution by the following method: Taking a continuous solution for each degree of freedom variable of the first molecule (assuming it is the first continuous solution) as an example, the molecular docking system calculates the objective function value corresponding to the first continuous solution based on the first continuous solution. The molecular docking system also performs a perturbation stability test on the first continuous solution. Specifically, the molecular docking system changes the value of the first continuous solution through multiple small-scale random perturbations, and then calculates the objective function value after each perturbation. The standard deviation of the objective function values ​​after multiple perturbations is then calculated. The standard deviation obtained by this calculation is used to indicate the stability of the objective function value corresponding to the first continuous solution.

[0133] After obtaining the objective function value and the standard deviation of the perturbation objective function value corresponding to each continuous solution, the molecular docking system performs a comprehensive score on the multiple continuous solutions based on the objective function value and the standard deviation of the perturbation objective function value corresponding to each continuous solution, and determines the continuous solution with the highest comprehensive score as the continuous optimal solution. The molecular docking system can obtain the comprehensive score for each continuous solution by calculating the weighted average of the objective function value and the standard deviation of the perturbation objective function value corresponding to each continuous solution.

[0134] S105: The molecular docking system docks the first molecule and the second molecule based on the solution of each degree of freedom variable of the first molecule.

[0135] Specifically, the molecular docking system determines one or more of the docking position of the first molecule and the second molecule and the orientation and conformation of the first molecule during docking based on the solution of each degree of freedom variable of the first molecule, and then docks the first molecule with the second molecule based on the one or more solutions. The solution of each degree of freedom variable of the first molecule can be a discrete optimal solution of each degree of freedom variable of the first molecule, a continuous solution of each degree of freedom variable of the first molecule, or a continuous optimal solution of each degree of freedom variable of the first molecule.

[0136] It can be understood that, because the objective function value corresponding to the continuous solution for each degree of freedom variable of the first molecule is less than or equal to the objective function value corresponding to the discrete optimal solution for each degree of freedom variable of the first molecule, the stability of the complex formed by molecular docking according to the discrete optimal solution for each degree of freedom variable of the first molecule does not exceed that of the complex formed by molecular docking according to the continuous solution for each degree of freedom variable of the first molecule. Similarly, the stability of the complex formed by molecular docking according to the continuous optimal solution for each degree of freedom variable of the first molecule is greater than or equal to that of the complex formed by molecular docking according to any continuous solution for each degree of freedom variable of the first molecule.

[0137] In addition, in actual applications, the three-dimensional structure of the second molecule (e.g., protein) may have a rough surface, which may cause the potential energy surface of the objective function to fluctuate violently or be uneven, thereby increasing the difficulty of minimizing the objective function. Therefore, the molecular docking system may optionally perform the following step (i.e., S106) before executing the above S104.

[0138] S106: The molecular docking system performs filtering and smoothing processing on the objective function.

[0139] In some embodiments, the molecular docking system uses the following formula to filter and smooth the objective function:

[0140] In the above formula, V′ represents the processed objective function, V represents the objective function, V0 represents the upper bound constant of the filtering potential energy, H0 represents the potential energy constant set based on the magnitude of the crystallization potential energy, and x0 represents the upper bound constant of the expansion gully. V0, H0, and x0 can all be set by the user according to actual conditions. As can be seen from the above formula, V′ is a monotonic mapping of V, so that the potential energy surface of V′ becomes smooth while retaining monotonicity (for example, see Figure 8 below), so that in the subsequent minimization process (i.e., the above S104), it is easy to find the discrete optimal solution of each degree of freedom variable of the first molecule.

[0141] In other embodiments, the molecular docking system may also use other methods that have a better smoothing effect on functions with violent oscillations or uneven potential energy surfaces to perform filtering and smoothing on the above-mentioned target function.

[0142] The following further describes the effect that can be achieved by docking a first molecule with a second molecule using the molecular docking system provided in the embodiments of the present application through specific experimental data.

[0143] The experiment was conducted using 363 ligand-protein pairs from the DIFFDOCK test set. Furthermore, to facilitate understanding of the effects of molecular docking using the molecular docking system provided in the examples of this application, this experiment also compared the DIFFDOCK method, which currently offers superior molecular docking performance. The comparison results can be found in Table 6.

[0144] Table 6

[0145] In Table 6, RMSD represents the atomic root mean square deviation between the crystallized position and the optimized solution position. It is an indicator used to judge whether the molecular docking is successful. The academic community generally believes that The following conclusions can be drawn from Table 6: (1) In the above 363 ligand-protein tests, the molecular docking system provided by the embodiment of the present application can achieve a probability of successful docking (i.e. (2) In the above 363 ligand-protein tests, the average RMSD of molecular docking using the molecular docking system provided in the embodiment of the present application is smaller than the average RMSD of molecular docking using the DIFFDOCK method. In general, in the above 363 ligand-protein tests, the molecular docking system provided in the embodiment of the present application can achieve better results in molecular docking.

[0146] Furthermore, taking three ligand-proteins (i.e., 6s55, 6n97, and 6d08) among the above 363 ligand-proteins as examples, the docking effect that can be achieved by the molecular docking system provided in the embodiments of the present application is further illustrated in combination with Figures 5 to 7.

[0147] As shown in Figure 5, (a), (b), and (c) in Figure 5 respectively show the crystallization conformation of 6s55, the complex conformation obtained using the DIFFDOCK method, and the complex conformation obtained using the molecular docking system provided in the embodiments of the present application. As shown in Figure 6, (a), (b), and (c) in Figure 6 respectively show the crystallization conformation of 6n97, the complex conformation obtained using the DIFFDOCK method, and the complex conformation obtained using the molecular docking system provided in the embodiments of the present application. As shown in Figure 7, (a), (b), and (c) in Figure 7 respectively show the crystallization conformation of 6d08, the complex conformation obtained using the DIFFDOCK method, and the complex conformation obtained using the molecular docking system provided in the embodiments of the present application.

[0148] As can be seen from Figures 5 to 7, for 6s55, 6n97 and 6d08, the complex conformations obtained using the molecular docking system provided in the embodiments of the present application are closer to the crystalline conformations than the complex conformations obtained using the DIFFDOCK method. In other words, accurate molecular docking can be achieved using the molecular docking system provided in the embodiments of the present application.

[0149] Taking the aforementioned 6d08 as an example, Figures 8-11 illustrate the process by which the molecular docking system obtains the corresponding complex conformation: First, the molecular docking system obtains the ligand and protein, then discretizes each degree of freedom of the ligand. These discretized degrees of freedom are encoded into a vector consisting of multiple binary variables using binary variables (taking values ​​of -1 or 1). Next, the molecular docking system constructs an objective function involving multiple binary variables based on the interaction potential between the ligand and protein. This objective function is then filtered and smoothed, as shown in Figure 8. The resulting objective function (V′) is a monotonic reflection of the original objective function (V), and the potential energy surface of V′ is monotonic and smooth. Next, the molecular docking system minimizes V′ using the hSB algorithm, as shown in Figures 9-10. After multiple iterations (the abscissa t in Figure 9 represents the number of iterations, and the ordinate x represents the binary variables; the abscissa t in Figure 10 represents the number of iterations, and the ordinate V′ represents the function value of V′), the optimal discrete solution for each degree of freedom of the ligand is found. The molecular docking system then locally minimizes V′ based on the discrete optimal solution for each degree of freedom of the ligand. As shown in Figure 11, after multiple iterations (the abscissa t in Figure 11 represents the number of iterations, and the ordinate V′ represents the function value of V′), it finds a continuous solution for each degree of freedom of the ligand. Finally, the molecular docking system docks the ligand and protein based on the continuous solution for each degree of freedom of the ligand, thereby obtaining the corresponding complex.

[0150] The foregoing describes in detail how the molecular docking system provided in the embodiments of the present application achieves docking of a first molecule and a second molecule. The following describes the molecular docking system from a structural perspective in conjunction with FIG. 12 .

[0151] Figure 12 illustrates a schematic diagram of the molecular docking system. As shown in Figure 12, the molecular docking system 100 includes an acquisition module 110, an encoding module 120, an objective function construction module 130, an optimization module 140, and a decoding module 150. These modules work together to implement the steps performed by the molecular docking system in the above-described method embodiment. Specifically, the acquisition module 110 is used to perform S101 above; the encoding module 120 is used to perform S102 above; the objective function construction module 130 is used to perform S103 above, and optionally, S106 above; the optimization module 140 is used to perform S104 above, and the decoding module 150 is used to perform S105 above.

[0152] In the embodiments of the present application, the acquisition module 110, encoding module 120, objective function construction module 130, optimization module 140, and decoding module 150 can all be implemented via software or hardware. For example, the implementation of the encoding module 120 will be described below using the encoding module 120 as an example. Similarly, the implementation of the acquisition module 110, objective function construction module 130, optimization module 140, and decoding module 150 can all refer to the implementation of the encoding module 120.

[0153] As an example of a software functional unit, the encoding module 120 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the encoding module 120 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple geographically close data centers. Typically, a region may include multiple AZs.

[0154] Similarly, the multiple hosts / virtual machines / containers used to run the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.

[0155] As an example of a hardware functional unit, the encoding module 120 may include at least one computing device, such as a server. Alternatively, the encoding module 120 may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0156] The multiple computing devices included in encoding module 120 can be distributed in the same region or in different regions. The multiple computing devices included in encoding module 120 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in optimization module 140 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.

[0157] It should be noted that, in other embodiments, the acquisition module 110 can be used to execute any one or more steps in S101-S106 above; the encoding module 120 can be used to execute any one or more steps in S101-S106 above; the objective function construction module 130 can be used to execute any one or more steps in S101-S106 above; the optimization module 140 can be used to execute any one or more steps in S101-S106 above; and the decoding module 150 can be used to execute any one or more steps in S101-S106 above. The steps that the acquisition module 110, the encoding module 120, the objective function construction module 130, the optimization module 140 and the decoding module 150 are responsible for implementing can be specified as needed. The different steps in the molecular docking method described above are respectively implemented by the acquisition module 110, the encoding module 120, the objective function construction module 130, the optimization module 140 and the decoding module 150, so as to realize all the functions of the molecular docking system provided in the embodiments of the present application.

[0158] The present application also provides a computing device. As shown in FIG13 , computing device 200 includes a bus 210, a processor 220, a memory 230, and a communication interface 240. Processor 220, memory 230, and communication interface 240 communicate with each other via bus 210. Computing device 200 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in computing device 200.

[0159] Bus 210 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be categorized as address buses, data buses, control buses, and the like. For ease of illustration, FIG13 shows only one line, but this does not imply that computing device 200 has only one bus or only one type of bus. Bus 210 may include a path for transmitting information between various components of computing device 200 (e.g., memory 230, processor 220, and communication interface 240).

[0160] The processor 220 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a tensor processing unit (TPU), a microprocessor (MP), or a digital signal processor (DSP).

[0161] The memory 230 may include a volatile memory, such as a random access memory (RAM). The memory 230 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0162] Memory 230 stores executable program code. Processor 220 executes the executable program code stored in memory 230 to implement the functions of the aforementioned acquisition module 110, encoding module 120, objective function construction module 130, optimization module 140, and decoding module 150, thereby implementing the molecular docking method described above. In other words, memory 230 stores instructions for executing the molecular docking method described above.

[0163] The communication interface 240 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 200 and other devices or a communication network. For example, the computing device 200 obtains the first molecule and the second molecule through the communication interface 240 .

[0164] Embodiments of the present application also provide a computing device cluster. The computing device cluster includes one or more computing devices. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0165] As shown in FIG14 , a computing device cluster 300 includes one or more computing devices 200. The memory 230 of one or more computing devices 200 in the computing device cluster 300 may store the same instructions for executing the molecular docking method described above. Alternatively, the memory 230 of one or more computing devices 200 in the computing device cluster 300 may also store a portion of the instructions for executing the molecular docking method described above. In other words, the combination of one or more computing devices 200 can jointly execute the instructions for executing the molecular docking method described above.

[0166] It should be noted that the memory 230 in different computing devices 200 in the computing device cluster 300 can store different instructions to respectively execute part of the functions of the molecular docking system 100. In other words, the instructions stored in the memory 230 in different computing devices 200 can implement the functions of one or more of the aforementioned acquisition module 110, encoding module 120, objective function construction module 130, optimization module 140, and decoding module 150.

[0167] In some embodiments, one or more computing devices 200 in the computing device cluster 300 can be connected via a network. The network can be a wide area network or a local area network, etc. Figure 15 shows a possible implementation. As shown in Figure 15, the computing device cluster 300 includes a computing device 200A and a computing device 200B, and the computing device 200A and the computing device 200B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 230 in the computing device 200A stores instructions for executing the functions of the aforementioned acquisition module 110, encoding module 120, objective function construction module 130 and decoding module 150. At the same time, the memory 230 in the computing device 200B stores instructions for executing the functions of the aforementioned optimization module 140. It should be understood that the connection method between different computing devices 200 in the computing device cluster 300 shown in Figure 15 is only an example. In actual applications, there may be other connection methods between different computing devices 200 in the computing device cluster 300. For example, they can be adaptively deployed according to the computing capabilities of the computing devices 200 or specific application requirements.

[0168] The present application also provides a computer program product comprising instructions. The computer program product may be software or a program product comprising instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device is caused to perform the molecular docking method described above.

[0169] The present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media, wherein the available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)). The computer-readable storage medium includes instructions, wherein the instructions instruct the computing device to execute the molecular docking method described above.

[0170] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the protection scope of the technical solutions of the embodiments of the present application.

Claims

1. A molecular docking method, characterized in that: include: Obtain a first molecule and a second molecule; Discretize each degree of freedom variable of the first molecule, and encode each discretized degree of freedom variable using a binary variable to obtain a corresponding encoding vector; constructing an objective function based on the relationship between the first molecule and the second molecule, wherein the objective function is a function of a plurality of the binary variables; Minimizing the objective function to obtain a solution for each degree of freedom variable of the first molecule; The first molecule and the second molecule are docked based on the solution of each degree of freedom variable of the first molecule.

2. The method according to claim 1, characterized in that The first molecule is a ligand and the second molecule is a protein.

3. The method according to claim 1 or 2, characterized in that: The relationship between the first molecule and the second molecule is an interaction potential energy between the first molecule and the second molecule; or, The relationship between the first molecule and the second molecule is generated according to the values ​​of the degree of freedom variables of the first molecule and the second molecule in the docking state.

4. The method according to any one of claims 1 to 3, characterized in that: The minimizing the objective function to obtain a solution for each degree of freedom variable of the first molecule includes: The objective function is minimized based on a preset algorithm to obtain a discrete optimal solution for each degree of freedom variable of the first molecule, wherein the preset algorithm indicates that the iterative gradient in the minimization process is the difference between the objective function values ​​corresponding to N discrete grid points near the current discrete grid point and the objective function value corresponding to the current discrete grid point, and the N discrete grid points near the current discrete grid point are determined by flipping the first element, the second element, ..., the Nth element in the coding vector corresponding to the current discrete grid point, respectively, where N is a positive integer, and the coding vector corresponding to the current discrete grid point includes the coding vectors corresponding to each degree of freedom variable of the first molecule.

5. The method according to claim 4, characterized in that Also includes: The objective function is locally minimized based on the discrete optimal solution of each degree of freedom variable of the first molecule to obtain a continuous solution of each degree of freedom variable of the first molecule, and the objective function value corresponding to the continuous solution of each degree of freedom variable of the first molecule is less than or equal to the objective function value corresponding to the discrete optimal solution of each degree of freedom variable of the first molecule.

6. The method according to claim 5, characterized in that Also includes: Based on multiple continuous solutions of the variables of each degree of freedom of the first molecule, obtaining a continuous optimal solution of the variables of each degree of freedom of the first molecule; The objective function value corresponding to the continuous optimal solution is less than or equal to the objective function value corresponding to other continuous solutions; or The comprehensive score of the continuous optimal solution is greater than or equal to the comprehensive scores of other continuous solutions, and the comprehensive score of the continuous solution is determined according to the objective function value corresponding to the continuous solution and its stability.

7. The method according to any one of claims 1 to 6, characterized in that: The degree of freedom variables of the first molecule include any one or more of the following categories: degrees of freedom for translation along the coordinate axis; or, The degrees of freedom variables for rotations about the coordinate axes; or, The degree of freedom for rotation about a rotatable bond on the first molecule varies.

8. The method according to claim 7, characterized in that The method of using binary variables to encode the discrete degree of freedom variables to obtain corresponding encoding vectors includes: Encoding the trigonometric function corresponding to the discrete degree of freedom variable rotating around the coordinate axis into a high-order polynomial composed of the binary variables; or, The trigonometric function corresponding to the discretized degree of freedom variable rotating around the rotatable bond on the first molecule is encoded into a high-order polynomial composed of the binary variables.

9. The method according to claim 8, characterized in that When the discrete degree of freedom variable includes 2 n When there are n discrete values, the high-order polynomial includes n binary variables, and the number of terms in the high-order polynomial is 2 n-1 , n is a positive integer.

10. The method according to any one of claims 1 to 9, characterized in that: Before minimizing the objective function, the method further includes: The objective function is subjected to filtering and smoothing processing, and the objective function after processing is a monotonic mapping of the objective function.

11. The method according to any one of claims 1 to 10, characterized in that: The obtaining of the first molecule and the second molecule comprises: The first molecule is subjected to molecular development processing to obtain at least one three-dimensional conformation of the first molecule.

12. A molecular docking system, characterized in that: include: An acquisition module, used for acquiring a first molecule and a second molecule; An encoding module, used for discretizing each degree of freedom variable of the first molecule, and encoding each discretized degree of freedom variable using a binary variable to obtain a corresponding encoding vector; An objective function construction module, used for constructing an objective function based on the relationship between the first molecule and the second molecule, wherein the objective function is a function of a plurality of the binary variables; An optimization module, used for minimizing the objective function to obtain a solution for each degree of freedom variable of the first molecule; A decoding module is used to dock the first molecule and the second molecule based on the solution of each degree of freedom variable of the first molecule.

13. The system according to claim 12, characterized in that The first molecule is a ligand and the second molecule is a protein.

14. The system according to claim 12 or 13, characterized in that The relationship between the first molecule and the second molecule is an interaction potential energy between the first molecule and the second molecule; or, The relationship between the first molecule and the second molecule is generated according to the values ​​of the degree of freedom variables of the first molecule and the second molecule in the docking state.

15. The system according to any one of claims 12 to 14, characterized in that: The optimization module is used to minimize the objective function based on a preset algorithm to obtain a discrete optimal solution for each degree of freedom variable of the first molecule, wherein the preset algorithm indicates that the iterative gradient in the minimization process is the difference between the objective function values ​​corresponding to N discrete grid points near the current discrete grid point and the objective function value corresponding to the current discrete grid point, and the N discrete grid points near the current discrete grid point are determined by flipping the first element, the second element, ..., the Nth element in the coding vector corresponding to the current discrete grid point, respectively, where N is a positive integer, and the coding vector corresponding to the current discrete grid point includes the coding vector corresponding to each degree of freedom variable of the first molecule.

16. The system according to claim 15, characterized in that The optimization module is also used to locally minimize the objective function based on the discrete optimal solution of each degree of freedom variable of the first molecule to obtain a continuous solution of each degree of freedom variable of the first molecule, and the objective function value corresponding to the continuous solution of each degree of freedom variable of the first molecule is less than or equal to the objective function value corresponding to the discrete optimal solution of each degree of freedom variable of the first molecule.

17. The system according to claim 16, characterized in that The optimization module is also used to obtain a continuous optimal solution for each degree of freedom variable of the first molecule based on multiple continuous solutions for each degree of freedom variable of the first molecule; the objective function value corresponding to the continuous optimal solution is less than or equal to the objective function values ​​corresponding to other continuous solutions; or, the comprehensive score of the continuous optimal solution is greater than or equal to the comprehensive scores of other continuous solutions, and the comprehensive score of the continuous solution is determined based on the objective function value corresponding to the continuous solution and its stability.

18. The system according to any one of claims 12 to 17, characterized in that The degree of freedom variables of the first molecule include any one or more of the following categories: degrees of freedom for translation along the coordinate axis; or, The degrees of freedom variables for rotations about the coordinate axes; or, The degree of freedom for rotation about a rotatable bond on the first molecule varies.

19. The system according to claim 18, characterized in that The encoding module is used to encode the trigonometric functions corresponding to the discrete degree-of-freedom variables for rotating around the coordinate axis into a high-order polynomial composed of the binary variables; or to encode the trigonometric functions corresponding to the discrete degree-of-freedom variables for rotating around the rotatable bonds on the first molecule into a high-order polynomial composed of the binary variables.

20. The system according to claim 19, characterized in that When the discrete degree of freedom variable includes 2 n When there are n discrete values, the high-order polynomial includes n binary variables, and the number of terms in the high-order polynomial is 2 n-1 , n is a positive integer.

21. The system according to any one of claims 12 to 20, characterized in that The objective function construction module is also used to perform filtering and smoothing processing on the objective function, and the processed objective function is a monotonic mapping of the objective function.

22. The system according to any one of claims 12 to 20, characterized in that The acquisition module is used to perform molecular expansion processing on the first molecule to obtain at least one three-dimensional conformation of the first molecule.

23. A computing device, characterized in that The method comprises a processor and a memory, wherein the processor is used to execute instructions stored in the memory to implement the method according to any one of claims 1 to 11.

24. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device, the computing device is caused to perform the method according to any one of claims 1 to 11.

25. A computer-readable storage medium, characterized in that: The method comprises computer program instructions, which, when executed by a computing device, cause the computing device to perform the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Gradient-free flexible molecular docking method based on multi-scale discrimination

    CN115631784A

  • Method, device and equipment for virtually screening covalent inhibitor and computer readable storage medium

    CN115881245A

  • Protein-ligand docking

    US20140303952A1

  • Movable type method applied to protein-ligand binding

    US20160350474A1

  • Method and system for determining a conformation of a molecule using a high-performance binary optimizer

    US20200143910A1