A method for accelerating AutoDock Vina based on GPU
The heterogeneous parallel structure of AutoDock Vina on the GPU is implemented through OpenCL, which solves the problem of AutoDock Vina's slow screening speed in large compound databases, realizes efficient drug virtual screening, and reduces drug research and development costs and usage thresholds.
Patent Information
- Application Number
- CN202111569787.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-21
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-12-21
AI Technical Summary
AutoDock Vina's screening speed on large compound databases is slow, and existing acceleration methods cannot be effectively parallelized, resulting in high drug development costs and high barriers to use.
OpenCL is used to implement the heterogeneous parallel structure of AutoDock Vina on the GPU. By mapping threads to the GPU computing core, the number of initial random conformations is increased, the Monte Carlo iterative local search method is used to optimize the conformations, and further optimization and sorting are performed on the host side. Combined with BFGS algorithm to improve screening efficiency.
It significantly reduces the time for large-scale compound data screening, shortens the drug development cycle, lowers costs and usage thresholds, and improves the quality and screening efficiency of lead compounds.
Smart Images

Figure CN114373509B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for accelerating AutoDock Vina based on a GPU, and belongs to the technical field of hardware accelerated drug design. Background Art
[0002] Molecular docking is an important process in the early stage of drug development. It uses molecular docking software to perform molecular docking operations on molecular compounds and drug targets, and then screens active compounds. Molecular docking can quickly select active compounds with potential drug development from tens to millions of molecules, greatly reducing the number of actual screening compounds, shortening the research cycle, and reducing the cost of drug development.
[0003] At present, some commonly used molecular docking software include AutoDock4, AutoDock Vina, AutoDock Vina1.2.0, AutoDock FR, AutoDock Crank Pep, AutoDock-GPU, etc., among which AutoDock Vina is the most widely used. In the comparison and evaluation of scoring functions in CASF-2016, AutoDock Vina is the software with the highest docking ability among all molecular docking tools. It uses the local iterative search method based on Monte Carlo and the multi-threading of CPU to improve the speed and accuracy of molecular docking. The AutoDock Vina algorithm is a serial design as a whole, and the subsequent code operation depends on the previous output.
[0004] Currently, the number of compounds for drug virtual screening is usually around 10 7 This limited chemical search space will seriously affect the success rate of lead compound screening. Fortunately, it is estimated that the entire chemical space of drug-like small molecule compounds is expected to reach 10 60 . In virtual screening, the scale of compounds is very important. The more candidate compounds screened, the lower the false positive rate and the better the quality of the lead compound. At present, the parallel capability of AutoDock Vina mainly relies on computing power stacking and the optimal configuration of resources and tasks. For example, the VirtualFlow platform uses CPU to complete virtual screening tasks of ultra-large-scale databases on computing clusters in a parallel manner. However, such huge resource investment and overhead, as well as the high threshold for users, will severely limit the widespread use of AutoDock Vina in modern drug design when faced with huge compound data. Therefore, in order to meet the urgent needs of modern drug screening, we need to significantly speed up the screening speed of AutoDock Vina on large compound databases.
[0005] GPU (Graphics Processing Unit) is a parallel programmable processor with thousands of computing cores that can provide powerful computing performance. GPU is cost-effective and easy to develop, and has perfect development standards, such as the parallel computing architecture (CUDA) and the open computing language (OpenCL). At present, there are two major difficulties in accelerating AutoDock Vina on GPU. First, the AutoDock Vina algorithm is a Monte Carlo search algorithm based on local perturbations, that is, a strongly dependent iterative algorithm, which is serially designed as a whole; second, each ligand file is formatted as a heterogeneous tree structure, and each node traverses the tree structure recursively. Designing a new algorithm and realizing the acceleration of AutoDock Vina on GPU has very important application value, which can greatly reduce investment and expenses, and is simple and convenient to develop, which is expected to solve the huge challenge of AutoDock Vina facing huge compound data in modern drug design. Summary of the invention
[0006] In view of the above problems existing in the prior art, the present invention provides a method for accelerating AutoDock Vina based on GPU, which can achieve large-scale parallelism in the algorithm of AutoDock Vina, reduce the cost of virtual screening of large databases, and can be widely used in large-scale virtual screening of drugs on personal computers, servers or cloud computing.
[0007] To achieve the above object, the technical solution adopted by the present invention is as follows: A method for accelerating AutoDockVina based on GPU, comprising the following steps:
[0008] Step 1, using the open computing language OpenCL to implement the heterogeneous parallel structure of the CPU and GPU in AutoDock Vina, mapping all threads in AutoDock Vina to the GPU computing core; the heterogeneous parallel structure consists of a host side and a device side, which run in the CPU and GPU respectively; the host side runs first, and the data generated by the running is transmitted to the device side, and then the final image is obtained after the device side runs, and the final image is transmitted back to the host side for operation;
[0009] Step 2, the operation process of the host end is divided into two parts, namely, the part before the device end runs and the part after the device end runs, and before the device end runs, the host end needs to perform tasks such as data preparation;
[0010] Step 3, running the device side, in which the number of search steps of each thread in AutoDockVina is reduced by increasing the number of initial random conformations, the conformations in each thread are continuously optimized by the Monte Carlo iterative local search method, and the final optimized conformation result is output;
[0011] In step 4, the data after the device-side operation is transmitted back to the host side, and the operations after the device-side operation in step 2 are performed on the host side, including sorting the conformations according to their scores, and using BFGS to perform more refined optimization on the conformations, and outputting the top-ranked conformations.
[0012] Furthermore, in step 2, the stage before the host runs on the device includes the following specific steps:
[0013] Step 2.1, read the file, the host side reads the .pdbqt file of the ligand and receptor, and the config.txt file of the docking box parameters;
[0014] Step 2.2, set up the OpenCL environment, including identifying and selecting the platform and device, creating the OpenCL context, creating the command queue, and creating the program object and kernel object;
[0015] Select OpenCL platform: When using, you need to use the clGetPaltformIDS function in OpenCL to query and initialize all available OpenCL platforms in the computer, and select one of the available platforms for use. The available platform is obtained and initialized by the clGetPaltformIDS function in OpenCL;
[0016] Select OpenCL device: Use the clGetDeviceIDs function in OpenCL to specify the computing device that executes the kernel code;
[0017] Create OpenCL context: manage computing devices from the same platform through context;
[0018] Create a command queue: Use the command queue to operate memory, program, and kernel objects in the OpenCL context;
[0019] Create program object: Create program object using OpenCL C source code or binary file;
[0020] Create kernel objects: Use the cl_kernel data structure to represent kernel objects;
[0021] Step 2.3, generate a grid cache for calculating the intermolecular energy between the molecular conformation and the receptor by trilinear interpolation;
[0022] Step 2.4, generate an intramolecular energy table for calculating the intramolecular energy of the conformation;
[0023] Step 2.5, generating a random number generation table for generating random values;
[0024] Step 2.6, generate random molecular conformations for the initial conformation of the Monte Carlo algorithm. The grid cache, random number generation table, intramolecular energy table, and random molecular conformations are allocated in the device memory of the read-only memory;
[0025] Step 2.7, transmit the data generated in the previous steps to the device end.
[0026] Furthermore, in step 2, the stage after the host end runs on the device end includes the following specific steps:
[0027] Step 2.8, the optimal conformation obtained by each thread on the device side is transferred to the memory of the host side, and the molecular conformations obtained on the host side are sorted; according to the scores of the molecular conformations, the built-in function sort in C++ is used to sort them, where the lower the score, the higher the ranking;
[0028] Step 2.9, retain multiple conformations with the highest ranking; the number of retained conformations set in AutoDock Vina is 20, so the top 20 molecular conformations are retained;
[0029] Step 2.10, optimize the conformation more specifically; that is, use BFGS to optimize the 20 conformations in step 2.7, use the scoring function to calculate the score of the optimized conformation, and calculate the root mean square error between the two conformations based on the position x, y, z of the molecular conformation in the search space. When the value of the root mean square error is less than or equal to 1, only the conformation with lower energy among the two conformations is output, and the number of conformations output in the end does not exceed 9.
[0030] Furthermore, in step 2, since the molecular conformation energy is calculated by AutoDock Vina, it regards each conformation as a heterogeneous tree structure, and its nodes are stored together with their structural information and pointers to their child nodes. Each node is traversed by a depth-first search method, which is implemented recursively, and OpenCL does not support any recursive methods. In addition, different ligands will produce completely different heterogeneous tree structures, which cannot be implemented by OpenCL. Therefore, the heterogeneous tree is reconstructed into a list, in which each node is stored in the order of its traversal, and all node information can be obtained by traversing the list; then a child node lookup table is created to represent the relationship between nodes in the heterogeneous tree; if two nodes in the heterogeneous tree are connected, and the two nodes are a parent node and a child node, respectively, then the position where the parent node row and the child node column overlap in the lookup table is marked as T; conversely, if they are not connected, then the position where the two nodes in the lookup table overlap is marked as F.
[0031] Furthermore, in step 3, the specific steps of the device side are as follows:
[0032] Step 3.1, distribute the random molecular conformations generated by the host to the threads on the device, one for each conformation, where the total number of threads is determined by the computing performance of the GPU. The random molecular conformations are represented by their position, orientation, and torsion angles of all rotatable bonds, i.e., POT;
[0033] Step 3.2, determine the number of search steps for each thread;
[0034] Step 3.3, use the BFGS algorithm to optimize the molecular conformation, and use the acceptance criterion to determine whether to accept the optimized conformation.
[0035] Furthermore, the specific steps of step 3.3 are:
[0036] Step 3.3.1, firstly, randomly perturb the molecular conformation; the random perturbation is to randomly change one of the three sets of values representing the molecular conformation, which are:
[0037] The three-dimensional coordinates of the molecular conformation in the search space are perturbed based on uniformly distributed random numbers;
[0038] The quaternion of the molecular conformation is perturbed based on the random number generation of normal distribution;
[0039] Replace a specific dimension value of the torsion angle of the rotatable bond in the molecular conformation with a random number that conforms to a uniform distribution;
[0040] Step 3.3.2, initialize the Hessian matrix: initialize the Hessian matrix to the identity matrix;
[0041] Transform the ligand in three-dimensional space: that is, according to the position, direction, and torsion angle of all rotatable bonds of the molecular conformation, the spatial coordinates of each atom in the molecular conformation are obtained;
[0042] Step 3.3.3, evaluate the free energy of the molecular conformation after binding to the receptor through the scoring function, including:
[0043] Intermolecular energy: Based on the spatial coordinates of each atom in the conformation, the energy of each atomic pair between the ligand and the receptor is obtained by searching the grid cache using the trilinear interpolation method;
[0044] Intramolecular energy: The energy of the ligand itself is obtained by looking up the intramolecular energy table;
[0045] Add the intermolecular energy to the intramolecular energy to get the total energy;
[0046] Step 3.3.4, calculate the derivative of the spatial coordinates of each atom in the conformation and convert it into the derivative of the POT of the conformation;
[0047] Step 3.3.5, use the Armijo-Goldstein criterion to determine whether the step length after one-dimensional search meets the conditions. If so, update the Hessian matrix and then determine whether the number of cycles meets the conditions. If not, continue to update the step length. If the conditions are met, the optimized conformation is obtained. The condition for updating the step length is ||derivative||≥1e -5 , the number of cycles is 10;
[0048] Step 3.3.6, use the acceptance criterion to compare the energy of the conformations before and after the perturbation to determine whether to accept the optimized conformation; if the optimized conformation is accepted, further compare the energy of the conformation and optimize it, record the better conformation, and then determine whether the number of search steps reaches the set value; if the optimized conformation is not accepted, directly determine whether the number of search steps reaches the set value; if the search step number does not reach the set value, perturb the molecular conformation again, and if the search step number reaches the set value, output the best molecular conformation in the thread.
[0049] Furthermore, the appropriate value of each thread search step is calculated using the formula: 0.24*N atom + 0.29*N rot -5.74. If the value obtained by this formula is a decimal, round it down to the integer obtained, and the final integer is the number of search steps, where N atom is the number of atoms of the ligand, N rot is the number of rotatable bonds in the ligand.
[0050] Compared with the prior art, the present invention has the following beneficial effects: when screening a large compound database, it takes a lot of time to use AutoDock Vina. Since the algorithm of AutoDock Vina is difficult to parallelize, the acceleration method of the existing molecular docking software is not suitable for AutoDock Vina and cannot achieve the ideal acceleration effect; if multiple CPUs are used for AutoDock Vina acceleration, the cost of drug development will be greatly increased, resulting in unnecessary expenses.
[0051] This method can greatly reduce the time required for large-scale compound data screening, shorten the research cycle, and obtain lead compounds more quickly. The GPU used in this method has the characteristics of high cost performance, good computing performance and easy development, making this method widely used in large-scale drug virtual screening on personal computers, servers or cloud computing. This method reduces the cost and time of drug research and development, as well as the user's usage threshold. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is the overall flow chart of the present invention.
[0053] Figure 2FIG. 1 is a flow chart of step 102 in the present invention.
[0054] Figure 3 This is a flow chart of step 103 in the present invention.
[0055] Figure 4 It is a heterogeneous tree structure of the conformation of step 203 in the present invention. DETAILED DESCRIPTION
[0056] In order to better understand the technical content of the present invention, specific embodiments are given and described as follows in conjunction with the accompanying drawings.
[0057] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0058] It should be noted that the GPU model used in the following embodiments is NVIDIA GeForce GTX 1060 6GB, and the CPU model is Intel(R) Core(TM) i7-8700 CPU@3.21GHz, but the present invention is not limited to this.
[0059] like Figure 1 As shown, a schematic diagram of a method flow of the present application based on GPU acceleration of AutoDock Vina includes the following steps:
[0060] Step 101: Use OpenCL to implement a heterogeneous parallel structure of CPU and GPU in AutoDock Vina, where the structure is divided into a host side and a device side.
[0061] Step 102: Before running on the device side, the host side performs tasks such as data preparation.
[0062] Before the device runs, the host side works as follows: Figure 2 As shown, specifically including:
[0063] Step 201: Read the file. The file content is shown in Table 1 and Table 2, which is the ligand file of 2bm2:
[0064] Table 1
[0065]
[0066] Table 2
[0067] Table 3 shows the acceptor part file of 2bm2:
[0068]
[0069] Table 3
[0070] Table 4 shows the file of the docking box parameters:
[0071]
[0072] Table 4
[0073] The parameters in Table 4 include: receptor: the path where the receptor file of 2bm2 is located;
[0074] ligand: the path where the ligand file of 2bm2 is located;
[0075] center_x, center_y, center_z: the center position of the docking box;
[0076] size_x, size_y, size_z: the size of the docking box;
[0077] thread: number of threads;
[0078] search_depth: The number of search steps for each thread, which is 0.24*N atom +0.29*N rot -5.74 is obtained. If the value is a decimal, it is rounded down and the final integer is the number of search steps.
[0079] The number of threads used in the following embodiments is 1000 and the number of search steps is 4.
[0080] Step 202: Setting the OpenCL environment;
[0081] The OpenCL platform used in the following examples is NVIDIA
[0082] Step 203: Random image data preparation;
[0083] Convert the heterogeneous tree structure of the conformation into a list and a child node lookup table, such as Figure 4 As shown;
[0084] Traverse the heterogeneous tree from top to bottom and from left to right to obtain the list shown in Table 6, which has 33 lines:
[0085] 0 Node 0 1 Node 1 2 Node 2 3 Node 3 4 Node 4 5 Node 5 6 Node 6 7 Node 7 … … 32 …
[0086] Table 6
[0087] The sub-node lookup table representing the relationship between nodes is shown in Table 7:
[0088]
[0089]
[0090] Table 7
[0091] Depend on Figure 4 It can be seen that node 0 is the parent node of node 1, so the value in the second row and third column of Table 7 is T; node 1 and node 4 are not connected, so the value in the third row and sixth column of Table 7 is F.
[0092] Step 204: Transmit the data to the device.
[0093] The molecular conformation expression formula is:
[0094] C: molecular conformation,
[0095] x, y, z: the position of the molecular conformation in the search space,
[0096] a, b, c, d: quaternions of molecular conformation,
[0097] The torsion angle of the rotatable bond,
[0098] N rot : The number of rotatable bonds.
[0099] Step 103: Run on the device.
[0100] Figure 3 The specific work of a thread in the device side is completed by multiple threads at the same time in step 103 Figure 3 Shown
[0101] Work, the specific work of a thread in this step 103 includes:
[0102] Step 301: adding random perturbations to the molecular conformation;
[0103] Randomly change one of the three sets of values representing the molecular conformation, which are:
[0104] The three-dimensional coordinates of the molecular conformation in the search space: x, y, z, and the perturbation of this set of values based on uniformly distributed random numbers;
[0105] Quaternions of molecular conformation: a, b, c, d, perturbations are performed on this set of values based on random numbers generated by normal distribution;
[0106] Torsion angles of all rotatable bonds in the molecular conformation: Replace a specific dimension value in the group of values with a random number that conforms to the uniform distribution.
[0107] Step 302: using a scoring function to evaluate the free energy of the molecular conformation after binding to its receptor;
[0108] The free energy formula of the molecular conformation after binding to its receptor is: e = e inter +e intra ,
[0109] e: free energy of the molecular conformation after binding to its receptor,
[0110] e inter : The interaction between molecular conformation and receptor,
[0111] e intra : The interaction force between atoms within a molecular conformation.
[0112] The scoring function is:
[0113] Step 303: Optimize the conformation using the BFGS method, and iterate to a molecular conformation with lower free energy by calculating the gradient of F. Calculate the derivative of the spatial coordinates of each atom in the conformation and convert it into the derivative of the POT of the conformation;
[0114] The Armijo-Goldstein criterion is used to determine whether the step length after one-dimensional search meets the conditions. If the conditions are met, the Hessian matrix is updated, and then the number of cycles is determined to meet the conditions. If not, the step length is updated. If the conditions are met, the optimized conformation is obtained. The condition for updating the step length is ||derivative||≥1e -5 , the number of cycles is 10.
[0115] Step 304: Determine whether the optimized conformation meets the acceptance criteria.
[0116] Acceptance criteria:
[0117] P: probability of accepting the optimized conformation,
[0118] e0: free energy after the molecular conformation before disturbance binds to its receptor,
[0119] e opt : The free energy of binding to its receptor after molecular conformation optimization,
[0120] When the optimized molecular conformation does not meet the acceptance criteria, proceed to step 305.
[0121] When the optimized molecular conformation meets the acceptance criteria, the molecular conformation is updated, and steps 302 and 303 are continued to record the molecular conformation with lower free energy, and step 305 is continued.
[0122] Step 305: Determine whether the search step requirement is met.
[0123] When the number of search steps does not meet the requirement, continue to step 301.
[0124] When the number of search steps reaches the requirement, the optimal molecular conformation of the thread is output.
[0125] The best configuration obtained by each thread is stored in the global memory of the GPU.
[0126] Table 8 shows the results after running this example:
[0127]
[0128] Table 8
[0129] Mode is the model of molecular conformation. In Table 8, 9 better molecular conformations are finally output.
[0130] Affinity is the affinity of the molecular conformation after binding to the receptor.
[0131] dist from rmsdl.b. is the lower limit of the root mean square error calculated relative to the best molecular conformation model, and best mode rmsdu.b. is the upper limit of the root mean square error calculated relative to the best molecular conformation model.
[0132] Table 9 and Table 10 are the best molecular conformation data output by 2bm2.
[0133] The following data is obtained from the 2bm2_ligand_out.pdbqt file in Table 8.
[0134]
[0135] Table 9
[0136]
[0137] Table 10
[0138] REMARK VINA RESULT: -8.3 0.000 0.000, where -8.6 is the binding affinity of this molecular conformation.
[0139] The above specifically introduces a method and implementation of GPU-accelerated AutoDock Vina provided by the present application. This article uses specific examples to elaborate on the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the method of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for accelerating AutoDock Vina based on GPU, characterized in that: The method comprises the following steps: Step 1, using the open computing language OpenCL to implement the heterogeneous parallel structure of the CPU and GPU in AutoDock Vina, and mapping all threads in AutoDock Vina to the GPU computing core; the heterogeneous parallel structure consists of a host side and a device side, which run in the CPU and GPU respectively; the host side runs first, and the data generated by the operation is transmitted to the device side, and then the final image is obtained after the device side runs, and the final image is transmitted back to the host side for operation; Step 2, the operation process of the host end is divided into two parts, namely, the part before the device end runs and the part after the device end runs, and before the device end runs, the host end needs to perform tasks such as data preparation; Step 3, running the device side, in which the number of search steps of each thread in AutoDock Vina is reduced by increasing the number of initial random conformations, the conformations in each thread are continuously optimized by the Monte Carlo iterative local search method, and the final optimized conformation result is output; In step 4, the data after the device-side operation is transmitted back to the host side, and the operations after the device-side operation in step 2 are performed on the host side, including sorting the conformations according to their scores, and using BFGS to perform more refined optimization on the conformations, and outputting the top-ranked conformations.
2. The method for accelerating AutoDock Vina based on GPU according to claim 1, characterized in that: In step 2, the stage before the host runs on the device includes the following specific steps: Step 2.1, read the file, the host side reads the .pdbqt file of the ligand and receptor, and the config.txt file of the docking box parameters; Step 2.2, set up the OpenCL environment, including identifying and selecting the platform and device, creating the OpenCL context, creating the command queue, and creating the program object and kernel object; Select OpenCL platform: When using, you need to use the clGetPlatFormIDs function in OpenCL to query and initialize all available OpenCL platforms in the computer, and select one of the available platforms for use. The available platform is obtained and initialized by the clGetPlatFormIDs function in OpenCL; Select OpenCL device: Use the clGetDeviceIDs function in OpenCL to specify the computing device that executes the kernel code; Create OpenCL context: manage computing devices from the same platform through context; Create a command queue: Use the command queue to operate memory, program, and kernel objects in the OpenCL context; Create program object: Create program object using OpenCL C source code or binary file; Create kernel objects: Use the cl_kernel data structure to represent kernel objects; Step 2.3, generate a grid cache for calculating the intermolecular energy between the molecular conformation and the receptor by trilinear interpolation; Step 2.4, generate an intramolecular energy table for calculating the intramolecular energy of the conformation; Step 2.5, generating a random number generation table for generating random values; Step 2.6, generating random molecular conformations for the initial conformations of the Monte Carlo algorithm; the grid cache, the random number generation table, the intramolecular energy table, and the random molecular conformations are allocated in the device memory of the read-only memory; Step 2.7, transmit the data generated in the previous steps to the device end.
3. The method for accelerating AutoDock Vina based on GPU according to claim 1, characterized in that: In step 2, the stage after the host end runs on the device end includes the following specific steps: Step 2.8, the optimal conformation obtained by each thread on the device side is transferred to the memory of the host side, and the molecular conformations obtained on the host side are sorted; according to the scores of the molecular conformations, the built-in function sort in C++ is used to sort them, where the lower the score, the higher the ranking; Step 2.9, retain multiple conformations with the highest ranking; the number of retained conformations set in AutoDock Vina is 20, so the top 20 molecular conformations are retained; Step 2.10, optimize the conformation more specifically; that is, use BFGS to optimize the 20 conformations in step 2.7, use the scoring function to calculate the score of the optimized conformation, and calculate the root mean square error between the two conformations based on the position x, y, z of the molecular conformation in the search space. When the value of the root mean square error is less than or equal to 1, only the conformation with lower energy among the two conformations is output, and the final number of conformations output does not exceed 9.
4. The method for accelerating AutoDock Vina based on GPU according to claim 2, characterized in that: In the step 2, since the molecular conformation energy is calculated by AutoDock Vina, each conformation is regarded as a heterogeneous tree structure, and its nodes are stored together with their structural information and pointers to their child nodes. Each node is traversed by a depth-first search method. This traversal method is implemented by recursion, and OpenCL does not support any recursive method. In addition, different ligands will produce completely different heterogeneous tree structures, which cannot be implemented by OpenCL. Therefore, the heterogeneous tree is reconstructed into a list, in which each node is stored in its traversal order, and all node information can be obtained by traversing the list; and then a child node lookup table is created to represent the relationship between nodes in the heterogeneous tree; If two nodes in the heterogeneous tree are connected, and the two nodes are the parent node and the child node respectively, then the position where the row of the parent node and the column of the child node overlap in the lookup table is marked as T; conversely, if they are not connected, then the position where the row and column of the two nodes overlap in the lookup table is marked as F.
5. The method for accelerating AutoDock Vina based on GPU according to claim 1, characterized in that: In step 3, the specific steps of the device end operation are as follows: Step 3.1, distribute the random molecular conformations generated by the host to the threads on the device, one for each conformation, where the total number of threads is determined by the computing performance of the GPU; the random molecular conformations are represented by their position, orientation, and torsion angles of all rotatable bonds, i.e., POT; Step 3.2, determine the number of search steps for each thread; Step 3.3, use the BFGS algorithm to optimize the molecular conformation, and use the acceptance criterion to determine whether to accept the optimized conformation.
6. The method for accelerating AutoDock Vina based on GPU according to claim 5, characterized in that: The specific steps of step 3.3 are: Step 3.3.1, firstly, randomly perturb the molecular conformation; the random perturbation is to randomly change one of the three sets of values representing the molecular conformation, which are: The three-dimensional coordinates of the molecular conformation in the search space are perturbed based on uniformly distributed random numbers; The quaternion of the molecular conformation is perturbed based on the random number generation of normal distribution; Replace a specific dimension value of the torsion angle of the rotatable bond in the molecular conformation with a random number that conforms to a uniform distribution; Step 3.3.2, initialize the Hessian matrix: initialize the Hessian matrix to the identity matrix; Transform the ligand in three-dimensional space: that is, according to the position, direction, and torsion angle of all rotatable bonds of the molecular conformation, the spatial coordinates of each atom in the molecular conformation are obtained; Step 3.3.3, evaluate the free energy of the molecular conformation after binding to the receptor through the scoring function, including: Intermolecular energy: Based on the spatial coordinates of each atom in the conformation, the energy of each atomic pair between the ligand and the receptor is obtained by searching the grid cache using the trilinear interpolation method; Intramolecular energy: The energy of the ligand itself is obtained by looking up the intramolecular energy table; Add the intermolecular energy to the intramolecular energy to get the total energy; Step 3.3.4, calculate the derivative of the spatial coordinates of each atom in the conformation and convert it into the derivative of the POT of the conformation; Step 3.3.5, use the Armijo-Goldstein criterion to determine whether the step length after one-dimensional search meets the conditions. If so, update the Hessian matrix and then determine whether the number of cycles meets the conditions. If not, continue to update the step length. If the conditions are met, the optimized conformation is obtained. The condition for updating the step length is ||derivative||≥1e -5 , the number of cycles is 10; Step 3.3.6, use the acceptance criterion to compare the energy of the conformations before and after the perturbation to determine whether to accept the optimized conformation; if the optimized conformation is accepted, further compare the energy of the conformation and optimize it, record the better conformation, and then determine whether the number of search steps reaches the set value; if the optimized conformation is not accepted, directly determine whether the number of search steps reaches the set value; if the search step number does not reach the set value, perturb the molecular conformation again, and if the search step number reaches the set value, output the best molecular conformation in the thread.
7. The method for accelerating AutoDock Vina based on GPU according to claim 5, characterized in that: Calculate the appropriate number of search steps for each thread, the formula is: 0.24*N atom +0.29*N rot -5.
74. If the value obtained by this formula is a decimal, round it down to the integer obtained, and the final integer is the number of search steps, where N atom is the number of atoms of the ligand, N rot is the number of rotatable bonds in the ligand.
Citation Information
Patent Citations
Grid-free Galerkin method structural topology optimization method based on GPU parallel acceleration
CN103970960A
Molecule generation method and device, computer readable storage medium and terminal equipment
CN111508568A
