Interaction volume calculation method for molecular three-dimensional grid model
Through the interaction volume calculation method oriented to the molecular three-dimensional grid model, the problem of low calculation accuracy of molecular interaction volume in the existing technology is solved, higher calculation accuracy and stability are achieved, and the efficiency of catalyst design is improved.
Patent Information
- Application Number
- CN202410842298.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-01
AI Technical Summary
Existing molecular interaction volume calculation methods are mainly based on three-dimensional point cloud models. Affected by the difference in density of point clouds between two molecules, the calculation accuracy is reduced and it is difficult to accurately predict the reasonable position of the catalytic pocket.
The interaction volume calculation method for molecular three-dimensional mesh models is adopted to accurately calculate the interaction volume between molecules by pre-matching and cutting, determining common layers, determining the number of sub-contour inclusions and calculating the area of intersecting contours.
It improves the accuracy and stability of calculating interaction volumes, reduces the impact of molecular grid data intervals, and improves catalyst design efficiency.
Smart Images

Figure CN118735987A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of three-dimensional grid models, and in particular to a method for calculating interaction volumes of molecular three-dimensional grid models. Background Art
[0002] Asymmetric catalysis is one of the important ways to synthesize chiral compounds. The design and synthesis of efficient chiral catalysts has always been a core issue in the field of asymmetric catalysis. The catalytic pocket, as the reaction center of the catalyst, is the binding site between the catalyst and the substrate, which determines the catalytic effect. In order to find a reasonable position to arrange the catalytic pocket, researchers often need to rely on their own experience first, and then conduct a large number of experimental verifications, which is not only time-consuming but also expensive. In theory, a three-dimensional isosurface model of the electrostatic potential of catalyst molecules and substrate molecules can be constructed in three-dimensional space through computer-aided calculation methods, and the interaction volume between them can be calculated to predict the reasonable position of the catalytic pocket. Compared with the traditional trial and error method, this can significantly improve the efficiency of catalytic pocket design.
[0003] Existing methods for calculating molecular interaction volumes are mainly oriented towards three-dimensional point cloud models of molecules, but this will be affected by the difference in point cloud density between two molecules, which will in turn reduce the calculation accuracy of the interaction volume. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide an interaction volume calculation method for a molecular three-dimensional grid model, which can improve the accuracy and stability of calculating the interaction volume.
[0005] In a first aspect, an embodiment of the present application provides a method for calculating an interaction volume for a molecular three-dimensional grid model, the method comprising the following steps:
[0006] Pre-matching and cutting two molecular three-dimensional mesh models to obtain cutting points formed by cutting the two molecular three-dimensional mesh models;
[0007] Determine a common layer where the cutting points of the two molecular three-dimensional mesh models exist simultaneously;
[0008] In each of the common layers, for the multi-contour groups respectively formed by the two molecular three-dimensional mesh models, determining the number of times each sub-contour is included in the multi-contour group to which it belongs;
[0009] In each of the common layers, for sub-contours in a multi-contour group belonging to different molecular three-dimensional mesh models, calculating an intersection contour between any two sub-contours;
[0010] Based on the number of times each two sub-contours are included and the intersecting contours, the intersecting contour area with a positive sign or a negative sign is calculated and obtained, and based on the intersecting contour area, the interaction volume of the two molecular three-dimensional grid models is calculated and obtained.
[0011] In some embodiments, the pre-matching cutting of the two molecular three-dimensional mesh models to obtain the cutting points formed by cutting the two molecular three-dimensional mesh models comprises the following steps:
[0012] Pre-matching and cutting are performed on all edges in the two molecular three-dimensional mesh models along one axis in the three-dimensional coordinate system to obtain a slice plane of possible cutting edges;
[0013] Determine whether the slicing plane and the endpoint coordinate values of the edge satisfy a true cutting relationship; if so, use the endpoint coordinate values of the edge to calculate the cutting points formed by cutting the two molecular three-dimensional mesh models.
[0014] In some embodiments, all edges in the two molecular three-dimensional mesh models are pre-matched and cut along the z-axis in the three-dimensional coordinate system, and the slice planes of the possible cutting edges are represented as follows:
[0015]
[0016] Among them, K u and K d is the z-axis coordinate value of the upper endpoint of the edge in the molecular three-dimensional mesh model u and the z-axis coordinate value of the lower endpoint d The number of the matching slice plane, z mi n is the minimum value of the molecular three-dimensional mesh model along the z axis, is a custom function, expressed as round(·) is the rounding function, z s represents the initial slice position on the z-axis, and h is the slice interval.
[0017] In some embodiments, the actual cutting relationship satisfied by the slicing plane and the edge endpoint coordinate values is as follows:
[0018] (z u -z K )(z d -z K )≤0
[0019] Among them, z K is the position of the cutting plane numbered K on the z-axis, expressed as From the sequence number K u The slice plane to the sequence number K d The slice planes are verified in turn;
[0020] And the cutting points formed by cutting the two molecular three-dimensional mesh models are calculated by using the coordinate values of the endpoints of the edges through the following formula:
[0021]
[0022] Among them, (x, y) is the calculated cutting point coordinates, (x u ,y u ,z u ) is the coordinate of the upper endpoint of the edge, (x d ,y d ,z d ) is the coordinate of the lower endpoint of the edge.
[0023] In some embodiments, the intersection contour between any two sub-contours is calculated based on a classical polygon Boolean operation algorithm.
[0024] In some embodiments, based on the number of times each two sub-contours are included and the intersecting contours, the intersecting contour area with a positive sign or a negative sign is calculated and obtained by the following formula:
[0025]
[0026] Wherein, a and b are respectively multi-contour groups formed by two molecular three-dimensional mesh models in the common layer, is the signed intersection area of the ith subcontour with the jth subcontour in b, and Sub-contour a i and subcontour b j The number of times included, S ij is the unsigned area of the intersecting contours calculated using the m endpoints of the intersecting contours, where the coordinate values of the m endpoints are (x1, y1), (x2, y2), ... (x m ,y m ),
[0027] In some embodiments, the interaction volume of the two molecular three-dimensional mesh models is calculated and obtained based on the intersection contour area by the following formula:
[0028]
[0029] Among them, in the sequence number K P In the common layer of the two molecular 3D mesh models, each of them is cut into a multi-contour group. The signed total area calculated for the total intersecting contours of two multi-contour groups is expressed as Where c1 is the number of sub-contours contained in the multi-contour group formed by a molecular three-dimensional mesh model in the common layer, c2 is the number of sub-contours contained in the multi-contour group formed by another molecule in the common layer; n P is the number of common layers, expressed as:
[0030]
[0031] Where: Indicates the minimum value of the common layer on the z-axis, expressed as and are the minimum values of the two molecular three-dimensional mesh models along the z-axis, and are the maximum values of the two molecular models along the z-axis.
[0032] In a second aspect, an embodiment of the present application provides an interaction volume calculation device for a molecular three-dimensional grid model, the device comprising:
[0033] A cutting module, used for pre-matching and cutting two molecular three-dimensional mesh models, and obtaining cutting points formed by cutting the two molecular three-dimensional mesh models;
[0034] A determination module, used for determining a common layer where cutting points exist simultaneously in two molecular three-dimensional grid models;
[0035] A judging module, used for judging, in each of the common layers, the number of times each sub-contour is included in the multi-contour group formed by the two molecular three-dimensional mesh models respectively;
[0036] A first calculation module is used to calculate the intersection contour between any two sub-contours in the multi-contour groups belonging to different molecular three-dimensional mesh models in each of the common layers;
[0037] The second calculation module is used to calculate and obtain the intersection contour area with a positive sign or a negative sign based on the number of times each two sub-contours are included and the intersection contour, and calculate and obtain the interaction volume of the two molecular three-dimensional grid models based on the intersection contour area.
[0038] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of a method for calculating an interaction volume for a molecular three-dimensional grid model as described in any one of the first aspects above are performed.
[0039] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for calculating an interaction volume for a molecular three-dimensional grid model as described in any one of the first aspects above are executed.
[0040] The present application describes a method for calculating the interaction volume of a molecular three-dimensional grid model, which comprises the following steps: performing a pre-matching cut on two molecular three-dimensional grid models to obtain the cutting points formed by cutting the two molecular three-dimensional grid models; determining a common layer where the cutting points of the two molecular three-dimensional grid models coexist; within each of the common layers, for the multi-contour groups respectively formed by the two molecular three-dimensional grid models, judging the number of times each sub-contour is included in the multi-contour group to which it belongs; within each of the common layers, calculating the intersecting contours between any two sub-contours in the multi-contour groups belonging to different molecular three-dimensional grid models; calculating and obtaining the area of the intersecting contours with a positive sign or a negative sign based on the number of times each two sub-contours are included and the intersecting contours, and calculating and obtaining the interaction volume of the two molecular three-dimensional grid models based on the intersecting contour area, thereby improving the accuracy of calculating the interaction volume of the molecular three-dimensional grid model. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 A flow chart of the method for calculating the interaction volume for a molecular three-dimensional grid model according to an embodiment of the present application is shown;
[0043] Figure 2 A flowchart of performing pre-matching cutting on two molecular three-dimensional mesh models and obtaining cutting points formed by cutting the two molecular three-dimensional mesh models according to an embodiment of the present application is shown;
[0044] Figure 3 A schematic diagram of two molecular three-dimensional grid models of an embodiment of the present application is shown;
[0045] Figure 4 A schematic diagram of the layering results of the molecular three-dimensional grid model B of the embodiment of the present application is shown;
[0046] Figure 5 A schematic diagram showing a common layer of two molecular three-dimensional grid models of an embodiment of the present application;
[0047] Figure 6 A schematic diagram showing a multi-contour group formed by two molecular three-dimensional mesh models according to an embodiment of the present application is shown;
[0048] Figure 7 Shows Figure 6 Schematic diagram of corresponding sub-contours in a multi-contour group;
[0049] Figure 8 A schematic diagram showing the calculation results of the intersection of sub-contours belonging to different multi-contour groups according to an embodiment of the present application;
[0050] Fig. 9 A schematic diagram showing a method for determining the area symbol of intersecting contours in an embodiment of the present application is shown;
[0051] Fig.10 A schematic diagram of the structure of the interaction volume calculation device for a molecular three-dimensional grid model according to an embodiment of the present application is shown;
[0052] Fig.11 A structural block diagram of an electronic device described in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0053] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0054] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0055] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0056] In view of the technical problems raised by the background technology, the present application provides an interaction volume calculation method for a molecular three-dimensional grid model, which can improve the accuracy and stability of calculating the interaction volume.
[0057] See the instruction manual Figure 1 The present application provides a method for calculating the interaction volume of a molecular three-dimensional grid model, the method comprising the following steps:
[0058] S1, performing pre-matching cutting on two molecular three-dimensional mesh models to obtain cutting points formed by cutting the two molecular three-dimensional mesh models;
[0059] S2, determining a common layer where the cutting points of the two molecular three-dimensional grid models exist at the same time;
[0060] S3, in each of the common layers, for the multi-contour groups respectively formed by the two molecular three-dimensional mesh models, determining the number of times each sub-contour is included in the multi-contour group to which it belongs;
[0061] S4, in each of the common layers, for sub-contours in the multi-contour groups belonging to different molecular three-dimensional mesh models, calculating the intersection contour between any two sub-contours;
[0062] S5. Based on the number of times each two sub-contours are included and the intersecting contours, calculate and obtain the intersecting contour area with a positive sign or a negative sign, and calculate and obtain the interaction volume of the two molecular three-dimensional grid models based on the intersecting contour area.
[0063] For details, see the attached manual. Figure 2 The pre-matching cutting of the two molecular three-dimensional mesh models to obtain the cutting points formed by cutting the two molecular three-dimensional mesh models comprises the following steps:
[0064] S101, pre-matching and cutting all edges in two molecular three-dimensional mesh models along one axis in the three-dimensional coordinate system to obtain a slice plane for possible cutting edges;
[0065] S102, determining whether the slicing plane and the edge endpoint coordinate values satisfy a true cutting relationship; if so, using the edge endpoint coordinate values to calculate the cutting points formed by cutting the two molecular three-dimensional mesh models.
[0066] In step S101-step S102, the three-dimensional mesh models of the two molecules are layered as a whole using parallel planes perpendicular to the x-axis, y-axis or z-axis, and the cutting points formed by the plane cutting of the two molecular three-dimensional mesh models are obtained, that is, the contour points left by the molecular three-dimensional mesh models in each layer. Among them, all edges in the molecular three-dimensional mesh model are pre-matched and cut along one of the x-axis, y-axis or z-axis, and the following is an example along the z-axis:
[0067]
[0068] Where: K u and K d is the z-axis coordinate value of the upper endpoint of the edge in the molecular three-dimensional mesh model u and the z-axis coordinate value of the lower endpoint z d The number of the matching slice plane, z min It is the minimum value of the molecular three-dimensional mesh model along the z-axis. is a custom function, expressed as:
[0069]
[0070] Where round(·) is the rounding function, z s represents the initial slice position on the z-axis, and h is the slice interval.
[0071] The cutting plane number K of the possible cutting edge is obtained by pre-matching cutting, and further verification is made whether the cutting plane actually cuts the edge. The plane with the cutting fact and the endpoint coordinate values of the edge should satisfy the following relationship:
[0072] (z u -z K )(z d -z K )≤0
[0073] Where: z K is the position of the cutting plane numbered K on the z-axis, expressed as:
[0074]
[0075] From the sequence number K u The slice plane to the sequence number K d After the conditions of the cutting fact are met, the cutting point is calculated using the endpoints of the edge:
[0076]
[0077] Where: (x u ,y u ,z u ) is the coordinate of the upper endpoint of the edge, (xd ,y d ,z d ) is the coordinate of the lower endpoint of the edge, and (x, y) is the calculated cutting point coordinate.
[0078] In step S2, the common layer where the cutting points of the two molecular three-dimensional mesh models exist simultaneously is determined by the following formula:
[0079]
[0080] Where: is the position of the common layer on the z-axis, K P is an integer number starting from 0 redefined for the public layer, K P The range can be expressed as 0≤K P <n P ,K P ∈N. n P is the number of common layers, expressed as:
[0081]
[0082] Where: Indicates the minimum value of the common layer on the z-axis, expressed as and are the minimum values of the two molecular three-dimensional mesh models along the z-axis, and are the maximum values of the two molecular models along the z-axis.
[0083] In step S3, based on the improved nearest point search algorithm (INPS), the cutting points of the two molecular three-dimensional mesh models in the common layer are connected respectively to obtain the contour lines formed by the two three-dimensional mesh models in each common layer. Next, in each common layer, the point-in-polygon (PIP) algorithm is used to determine the number of times each independent sub-contour of a single molecular three-dimensional mesh model is included by other sub-contours in the same multi-contour group in each common layer formed by plane cutting.
[0084] In step S4, based on a classical polygon Boolean operation algorithm, at each common layer, for sub-contours in a multi-contour group belonging to different molecular three-dimensional mesh models, intersection contours between them are calculated two by two.
[0085] How to apply the classic polygon Boolean operation algorithm should be a technical means well known to those skilled in the art, and will not be elaborated here. In one embodiment, the steps are:
[0086] The two selected sub-contours are disassembled into an event set to be processed. The event set consists of the left and right endpoint events of all edges in the polygonal contour. Each endpoint event in the event set contains coordinates, corresponding edges, and associated polygons. Scan the endpoint events in the event set based on the scan line algorithm:
[0087] ① When the scan line reaches the left endpoint of an edge, insert this edge into the state queue and check whether it intersects with the adjacent edge in the queue. When two edges have an intersection, split the line segment at the intersection so that the two edges become short line segments that do not intersect inside the edge. The intersection is calculated based on the ratio α of the intersection on the edge:
[0088]
[0089] Where: (x M ,y M ) is the edge and edge The coordinates of the intersection point M, (x E ,y E ) is the edge The coordinate value of the endpoint E, (x F ,y F ) is the edge The coordinate value of the endpoint F, α is the intersection point M on the edge ratio.
[0090] ② After reaching the right endpoint of the edge, remove the edge from the state queue, check whether there are any intersections between the edges before and after the removal position, and determine whether the edge is inside another polygon. The judgment conditions are: (a) When a vertical ray extends from the bottom to the top through the edge, relative to the polygon to which the edge belongs, if it transitions from the outside to the inside, the edge is considered to be the bottom edge of the polygon, and vice versa for the top edge. (b) According to the arrangement order of the state queue, the edge in front of the target edge is below the target edge. When a new edge is inserted into the state queue, identify the nearest edge below the newly inserted edge from another polygon. If the edge is the bottom edge, the target edge newly inserted into the state queue is inside the other polygon and is the required intersection contour edge.
[0091] In step S4, based on the number of inclusions of every two sub-contours and their intersecting contours, the signed intersecting contour area is calculated at the common layer by the following formula:
[0092]
[0093] In the formula: In this common layer, the two molecular three-dimensional mesh models form multi-contour group a and multi-contour group b respectively, is the signed intersection area of the ith subcontour with the jth subcontour in b, and Sub-contour a i and subcontour b j The number of inclusions, S iij is the unsigned area of the intersecting contours calculated using the m endpoints of the intersecting contours, where the coordinate values of the m endpoints are (x1, y1), (x2, y2), ... (x m ,y m ),
[0094]
[0095] In step S5, based on the number of times each two sub-contours are included and the intersecting contours, the intersecting contour area with a positive sign or a negative sign is calculated and obtained by the following formula:
[0096]
[0097] Wherein, a and b are respectively multi-contour groups formed by two molecular three-dimensional mesh models in the common layer, is the signed intersection area of the ith subcontour with the jth subcontour in b, and Sub-contour a i and subcontour b j The number of times included, S ij is the unsigned area of the intersecting contours calculated using the m endpoints of the intersecting contours, where the coordinate values of the m endpoints are (x1, y1), (x2, y2), ... (x m ,y m ),
[0098] Finally, the interaction volume of the two molecular three-dimensional grid models is calculated based on the intersection contour area by the following formula:
[0099]
[0100] Among them, in the sequence number K P In the common layer of the two molecular 3D mesh models, each of them is cut into a multi-contour group. The signed total area calculated for the total intersecting contours of two multi-contour groups is expressed as Where c1 is the number of sub-contours contained in the multi-contour group formed by a molecular three-dimensional mesh model on the common layer, and c2 is the number of sub-contours contained in the multi-contour group formed by another molecule on the common layer.
[0101] Furthermore, in order to verify the accuracy of the interaction volume calculation method for a molecular three-dimensional grid model provided in this application, a group of catalysts and substrates were selected for interaction volume calculation experiments, referred to as molecules A and B. The three-dimensional grid models of molecules A and B were obtained by reconstructing the chemical molecule electrostatic potential grid data using the Marching cube (MC) algorithm. The detailed information of the three-dimensional grid models of molecules A and B can be found in Table 1, and their structural schematics can be found in the attached manual. Figure 3 .
[0102]
[0103] Table 1
[0104] First, the pre-matching cutting method is used to perform overall cutting of the molecular three-dimensional models A and B that may intersect. It should be noted that during the cutting process, in a specific slicing scenario, when the slicing plane intersects the edge at a singular position, for example, the slicing plane is parallel to the edge or intersects with the endpoint of any edge, this will result in many redundant points. In order to deal with these unique situations, the solutions we adopted are: (1) Ignore the edges parallel to the slicing plane. (2) The cutting point is only recorded when the intersection of the cutting plane and an edge is the upper endpoint of the edge. Among them, after the two molecular three-dimensional models are layered with the same cutting starting point and cutting spacing, the three-dimensional and two-dimensional results of the cut molecular three-dimensional model B are shown in the attached manual. Figure 4 As shown, Figure 4 The left part is the overall three-dimensional cutting point diagram; Figure 4 The right part is a schematic diagram of the cutting points in each layer;
[0105] Next, determine the common layer where the cutting points exist in the two molecular three-dimensional models at the same time, where the instructions are attached Figure 5 The diagram is a schematic diagram of the cutting points of the common layer of the molecular three-dimensional models A and B in three dimensions; based on the common layer of the molecular three-dimensional models A and B found, the cutting points are connected in sequence using the nearest point search method in each layer to obtain the contour formed by the cutting of the molecular three-dimensional model in the common layer. Since the surface morphology of the molecular three-dimensional model is uncertain, there may be more than one contour generated in the common layer after cutting, so the contour relationship judgment is then performed on the multi-contour groups generated by the molecular three-dimensional models A and B respectively, wherein the number of times each independent sub-contour is included by other sub-contours in the same multi-contour group is judged based on the polygon interior point judgment algorithm (point-in-polygon, PIP). Among them, the instruction manual is attached. Figure 6 It is the multiple contours generated by the molecular 3D models A and B on a common layer. Figure 7 yes Figure 6Schematic diagram of the corresponding sub-contours in the multi-contour group. a1 and a2 are two sub-contours in the multi-contour group a generated by cutting the molecular 3D model A, and the number of inclusions is 0 and 1 respectively, b1 and b2 are two sub-contours in the multi-contour group b generated by cutting the molecular 3D model B, and the number of inclusions is 0 and 0 respectively;
[0106] Based on the classic polygon Boolean operation idea, in each common layer, for the multi-contour groups generated by different molecular 3D models, the intersection contours of the sub-contours belonging to different multi-contour groups are calculated two by two. Figure 8 It is the result of the intersection calculation of sub-contours belonging to different multi-contour groups. The signed area of the intersection of two sub-contours is determined by the number of times they are included. The positive or negative sign of the intersection area is determined in the appendix of the manual. Fig. 9 .
[0107] The interaction volume calculation results of the molecule are finally calculated by the sum of all the signed intersection contours of the common layer and the cutting spacing. Table 2 shows the interaction volume calculation results of the molecular three-dimensional models A and B at six different relative positions. Table 3 shows the comparison of the volume calculation results with the existing point cloud model-based method under three sets of the same experimental data.
[0108]
[0109]
[0110] Table 2
[0111]
[0112] Table 3
[0113] It can be seen that the present application provides a method for calculating the interaction volume for a molecular three-dimensional grid model, including slicing the molecular three-dimensional grid model, wherein a key step is to accurately calculate the polygon intersection area in two dimensions, and to use an efficient polygon Boolean operation algorithm to quickly and accurately determine the intersection area, thereby ensuring the calculation accuracy of the final interaction volume. The experimental results show that this method has good versatility and can provide accurate molecular calculation interaction volumes. Under the same experimental data, the average relative errors of the present application method are 0.08%, 0.10% and 0.03%, respectively, which are all lower than the 1.70%, 1.60% and 1.90% of the existing algorithms. The present application method can minimize the impact of different molecular grid data intervals, thereby improving the accuracy and stability of calculating molecular interaction volumes.
[0114] Based on the same inventive concept, an interaction volume calculation device for a molecular three-dimensional grid model is also provided in an embodiment of the present application. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned interaction volume calculation method for a molecular three-dimensional grid model in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0115] As the instruction manual Fig.10 As shown, the embodiment of the present application also provides an interaction volume calculation device for a molecular three-dimensional grid model, the device comprising:
[0116] A cutting module 1001 is used to perform pre-matching cutting on two molecular three-dimensional mesh models to obtain cutting points formed by cutting the two molecular three-dimensional mesh models;
[0117] A determination module 1002 is used to determine a common layer where cutting points exist simultaneously in two molecular three-dimensional mesh models;
[0118] A judging module 1003 is used to judge the number of times each sub-contour is included in the multi-contour group formed by the two molecular three-dimensional mesh models in each common layer;
[0119] A first calculation module 1004 is used to calculate the intersection contour between any two sub-contours in the multi-contour groups belonging to different molecular three-dimensional mesh models in each of the common layers;
[0120] The second calculation module 1005 is used to calculate and obtain the intersection contour area with a positive sign or a negative sign based on the number of times each two sub-contours are included and the intersection contour, and calculate and obtain the interaction volume of the two molecular three-dimensional grid models based on the intersection contour area.
[0121] The interaction volume calculation device for a molecular three-dimensional grid model described in the present application can improve the accuracy and stability of calculating the interaction volume.
[0122] Based on the same concept of the present invention, the specification is attached Fig.11As shown, the structure of an electronic device 1100 provided in an embodiment of the present application includes: at least one processor 1101, at least one network interface 1104 or other user interface 1103, a memory 1105, and at least one communication bus 1102. The communication bus 1102 is used to realize the connection and communication between these components. The electronic device 1100 optionally includes a user interface 1103, including a display (for example, a touch screen, LCD, CRT, holographic imaging (Holographic) or projection (Projector), etc.), a keyboard or a pointing device (for example, a mouse, a trackball (trackball), a touch pad or a touch screen, etc.).
[0123] The memory 1105 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1101. A portion of the memory 1105 may also include a non-volatile random access memory (NVRAM).
[0124] In some embodiments, the memory 1105 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
[0125] Operating system 11051, including various system programs for implementing various basic services and processing hardware-based tasks;
[0126] The application module 11052 includes various application programs, such as a launcher, a media player, a browser, etc., which are used to implement various application services.
[0127] In an embodiment of the present application, by calling the program or instructions stored in the memory 1105, the processor 1101 is used to execute steps in a method for calculating the interaction volume for a molecular three-dimensional grid model, which can improve the accuracy and stability of calculating the interaction volume.
[0128] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the method for calculating the interaction volume for a molecular three-dimensional grid model are executed.
[0129] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, it can execute the above-mentioned interaction volume calculation method for the molecular three-dimensional grid model.
[0130] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0132] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0133] If the function is implemented in the form of a business function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0134] Finally, it should be noted that the above embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the aforementioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for calculating the interaction volume of a molecular three-dimensional grid model, characterized in that: The method comprises the following steps: Pre-matching and cutting two molecular three-dimensional mesh models to obtain cutting points formed by cutting the two molecular three-dimensional mesh models; Determine a common layer where the cutting points of the two molecular three-dimensional mesh models exist simultaneously; In each of the common layers, for the multi-contour groups respectively formed by the two molecular three-dimensional mesh models, determining the number of times each sub-contour is included in the multi-contour group to which it belongs; In each of the common layers, for sub-contours in a multi-contour group belonging to different molecular three-dimensional mesh models, calculating an intersection contour between any two sub-contours; Based on the number of times each two sub-contours are included and the intersecting contours, the intersecting contour area with a positive sign or a negative sign is calculated and obtained, and based on the intersecting contour area, the interaction volume of the two molecular three-dimensional grid models is calculated and obtained.
2. The method for calculating the interaction volume of a molecular three-dimensional grid model according to claim 1, characterized in that: The pre-matching and cutting of the two molecular three-dimensional mesh models to obtain the cutting points formed by cutting the two molecular three-dimensional mesh models comprises the following steps: Pre-matching and cutting are performed on all edges in the two molecular three-dimensional mesh models along one axis in the three-dimensional coordinate system to obtain a slice plane of possible cutting edges; Determine whether the slicing plane and the endpoint coordinate values of the edge satisfy a true cutting relationship; if so, use the endpoint coordinate values of the edge to calculate the cutting points formed by cutting the two molecular three-dimensional mesh models.
3. The method for calculating the interaction volume of a molecular three-dimensional grid model according to claim 2, characterized in that: in, All edges in the two molecular three-dimensional mesh models are pre-matched and cut along the z-axis in the three-dimensional coordinate system, and the slice planes of possible cutting edges are expressed as follows: Among them, K u and K d is the z-axis coordinate value of the upper endpoint of the edge in the molecular three-dimensional mesh model u and the z-axis coordinate value of the lower endpoint z d The number of the matching slice plane, z min is the minimum value of the molecular three-dimensional mesh model along the z axis, is a custom function, expressed as round(·) is the rounding function, z s represents the initial slice position on the z-axis, and h is the slice interval.
4. The method for calculating the interaction volume of a molecular three-dimensional grid model according to claim 3, characterized in that: The actual cutting relationship between the slicing plane and the edge endpoint coordinate values is as follows: (With u -With K )(With d -With K )≤0 Among them, z K is the position of the cutting plane numbered K on the z-axis, expressed as From the sequence number K u The slice plane to the sequence number K d The slice planes are verified in turn; And the cutting points formed by cutting the two molecular three-dimensional mesh models are calculated by using the coordinate values of the endpoints of the edges through the following formula: Among them, (x, y) is the calculated cutting point coordinates, (x u ,y u ,z u ) is the coordinate of the upper endpoint of the edge, (x d ,y d ,z d ) is the coordinate of the lower endpoint of the edge.
5. The method for calculating the interaction volume of a molecular three-dimensional grid model according to claim 4, characterized in that: in, The intersection contour between any two sub-contours is calculated based on the classic polygon Boolean operation algorithm.
6. The method for calculating the interaction volume of a molecular three-dimensional grid model according to claim 5, characterized in that: Based on the number of times each two sub-contours are included and the intersecting contours, the intersecting contour area with a positive or negative sign is calculated using the following formula: Wherein, a and b are respectively multi-contour groups formed by two molecular three-dimensional mesh models in the common layer, is the signed intersection area of the ith subcontour with the jth subcontour in b, and Sub-contour a i and subcontour b j The number of times included, S ij is the unsigned area of the intersecting contours calculated using the m endpoints of the intersecting contours, where the coordinate values of the m endpoints are (x1, y1), (x2, y2), ... (x m ,y m ), 7. The method for calculating the interaction volume of a molecular three-dimensional grid model according to claim 6, characterized in that: The interaction volume of the two molecular three-dimensional mesh models is calculated and obtained based on the intersection contour area by the following formula: Among them, in the sequence number K P In the common layer of the two molecular 3D mesh models, each of them is cut into a multi-contour group. The signed total area calculated for the total intersecting contours of two multi-contour groups is expressed as Where c1 is the number of sub-contours contained in the multi-contour group formed by a molecular three-dimensional mesh model in the common layer, c2 is the number of sub-contours contained in the multi-contour group formed by another molecule in the common layer; n P is the number of common layers, expressed as: Where: Indicates the minimum value of the common layer on the z-axis, expressed as and are the minimum values of the two molecular three-dimensional mesh models along the z-axis, and are the maximum values of the two molecular models along the z-axis.
8. An interaction volume calculation device for a molecular three-dimensional grid model, characterized in that: The device comprises: A cutting module, used for pre-matching and cutting two molecular three-dimensional mesh models, and obtaining cutting points formed by cutting the two molecular three-dimensional mesh models; A determination module, used for determining a common layer where cutting points exist simultaneously in two molecular three-dimensional grid models; A judging module, used for judging, in each of the common layers, the number of times each sub-contour is included in the multi-contour group formed by the two molecular three-dimensional mesh models respectively; A first calculation module is used to calculate the intersection contour between any two sub-contours in the multi-contour groups belonging to different molecular three-dimensional mesh models in each of the common layers; The second calculation module is used to calculate and obtain the intersection contour area with a positive sign or a negative sign based on the number of times each two sub-contours are included and the intersection contour, and calculate and obtain the interaction volume of the two molecular three-dimensional grid models based on the intersection contour area.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the method for calculating the interaction volume for a molecular three-dimensional grid model are performed as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of a method for calculating an interaction volume for a molecular three-dimensional grid model as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Energetically favorable binding site determination between two molecules
CA2328482A1
Drug-protein interaction prediction model based on convolutional neural network
CN113593633A
Method and device for calculating electron density equivalent surface point cloud volume
CN115170642A
Shale oil adsorption strength evaluation method based on intermolecular interaction energy
CN116842697A
Systems and methods for mapping binding site volumes in macromolecules
US20090006059A1
