Method, device, equipment, storage medium and program product for constructing bimolecular structure

By positioning and manipulating the target sites and vectors of the molecular model, an efficient bimolecular structure is achieved, solving the problems of waste of computing resources and low efficiency in traditional methods, and is suitable for high-throughput calculations.

CN118762768BActive Publication Date: 2024-11-08SHENZHEN EACOMP TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411254032.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-11-08
Estimated Expiration
2044-09-09

AI Technical Summary

Technical Problem

When constructing bimodal structures with specific orientations, traditional methods consume a lot of computing resources and are inefficient, unable to be automated, and difficult to meet the needs of high-throughput computing.

Method used

By obtaining the target sites of the two molecular models, positioning the intersecting target vectors, and performing rotation and movement operations, the target vectors are collinear with the preset axes, achieving a bimodal structure with a specific orientation and reducing structural structures that do not meet the needs. Required computing resources.

Benefits of technology

It realizes the saving of computing resources and automatically constructs a bimolecular structure that meets specific orientations, which is suitable for high-throughput calculations, avoiding human operation and waste of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762768B_ABST
    Figure CN118762768B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment, computer-readable storage medium and computer program product for constructing a bimolecular structure. The method comprises: positioning a first target vector with a first target site as an endpoint, and positioning a second target vector with a second target site as an endpoint, wherein the direction line of the first target vector and the direction line of the second target vector intersect; rotating at least one of the first molecular model and the second molecular model, wherein after the rotation, the first target vector, the second target vector and the preset target axis are collinear, and the first target vector and the second target vector are in opposite directions; moving at least one of the first molecular model and the second molecular model until there is no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within the preset site distance range. The use of this method can save the computing resources required to construct a bimolecular structure with a specific orientation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of molecular modeling, and in particular to a method, apparatus, computer equipment, computer-readable storage medium and computer program product for constructing a bimolecular structure. Background Art

[0002] With the rapid development of computer technology, molecular modeling has gradually become an important part of modern chemistry and physics. In the fields of chemistry, materials and drug design, in order to explore the interaction or reaction between two molecules, it is often necessary to model the bimolecular structure.

[0003] In traditional technology, it is usually necessary to provide two separate molecular structures, and then use molecular modeling software to construct a large number of randomly distributed bimolecular structures. If specific sites in the two molecules are expected to interact, when constructing the bimolecular structure, one would hope to construct a bimolecular structure with a specific orientation in which the two specific sites are as close as possible within a certain range. In this case, it is necessary to further construct an algorithm to screen from a large number of randomly distributed bimolecular structures.

[0004] However, in traditional methods, in order to obtain a bimolecular structure with a specific orientation, a large amount of computing resources is required, and most of the constructed bimolecular structures do not meet the requirements of a specific orientation, resulting in a waste of computing resources. Summary of the invention

[0005] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for constructing a bimolecular structure that can save the computing resources required to construct a bimolecular structure with a specific orientation in order to solve the above technical problems.

[0006] In a first aspect, the present application provides a method for constructing a bimolecular structure, comprising:

[0007] Acquire a first molecular model and a second molecular model, wherein the first molecular model includes a first target site, and the second molecular model includes a second target site;

[0008] Positioning a first target vector with the first target site as an endpoint, and positioning a second target vector with the second target site as an endpoint, wherein a direction line of the first target vector and a direction line of the second target vector intersect;

[0009] Performing a rotation operation on at least one of the first molecular model and the second molecular model, wherein after the rotation operation is performed, a first target vector of the first molecular model, a second target vector of the second molecular model, and a preset target axis are collinear, and the first target vector of the first molecular model is in opposite directions to the second target vector of the second molecular model;

[0010] At least one of the first molecular model and the second molecular model is moved along the target axis in a direction opposite to the target vector corresponding to itself until there is no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within a preset site distance range, thereby obtaining a target bimolecular structure model.

[0011] In one embodiment, performing a rotation operation on at least one of the first molecular model and the second molecular model includes:

[0012] Acquire first initial vector position information of a first target vector, second initial vector position information of a second target vector, and target axis position information of a preset target axis;

[0013] Based on the first initial vector position information, the second initial vector position information and the target axis position information, a rotation axis and a rotation angle are determined; the rotation axis is perpendicular to at least two planes commonly determined by the first target vector, the second target vector and the target axis; the rotation angle is used to make the first target vector, the second target vector and the preset target axis collinear, and the direction of the rotated first target vector is opposite to that of the second target vector;

[0014] At least one of the first molecular model and the second molecular model is rotated around the rotation axis by a rotation angle.

[0015] In one embodiment, the rotation axis includes a first rotation axis and a second rotation axis, the rotation angle includes a first rotation angle and a second rotation angle, the target axis position information includes first direction vector position information and second direction vector position information of the target axis, the first direction is opposite to the second direction, the first rotation angle is used to make the direction of the first target vector consistent with the first direction, and the second rotation angle is used to make the direction of the second target vector consistent with the second direction;

[0016] Determining a rotation axis and a rotation angle based on the first initial vector position information, the second initial vector position information and the target axis position information includes:

[0017] In the case where the target axis is not collinear with the first target vector and the second target vector, determining the first rotation axis and the first rotation angle based on the first initial vector position information and the first direction vector position information, and determining the second rotation axis and the second rotation angle based on the second initial vector position information and the second direction vector position information;

[0018] Rotating at least one of the first molecular model and the second molecular model around a rotation axis by a rotation angle comprises:

[0019] The first molecular model is rotated around a first rotation axis by a first rotation angle, and the second molecular model is rotated around a second rotation axis by a second rotation angle.

[0020] In one embodiment, rotating the first molecular model around a first rotation axis by a first rotation angle comprises:

[0021] Based on the first rotation angle and the first rotation axis, generate a first rotation quaternion, and generate a first rotation matrix corresponding to the first rotation quaternion;

[0022] Obtaining first initial coordinates of a first molecular model;

[0023] Based on the first initial coordinates and the first rotation matrix, generating first rotation coordinates after the first molecular model is rotated around the first rotation axis by a first rotation angle;

[0024] regenerating the first molecular model based on the first rotation coordinates;

[0025] Rotating the second molecular model around the second rotation axis by a second rotation angle includes:

[0026] Based on the second rotation angle and the second rotation axis, generate a second rotation quaternion, and generate a second rotation matrix corresponding to the second rotation quaternion;

[0027] obtaining second initial coordinates of the second molecular model;

[0028] Based on the second initial coordinates and the second rotation matrix, generating second rotation coordinates of the second molecular model after rotating the second molecular model around the second rotation axis by a second rotation angle;

[0029] The second molecular model is regenerated based on the second rotated coordinates.

[0030] In one embodiment, obtaining the first molecular model and the second molecular model includes:

[0031] Acquire a first molecular model and a second molecular model, and add the first molecular model and the second molecular model to a preset coordinate system, wherein the first molecular model includes a first intramolecular reference point, and the second molecular model includes a second intramolecular reference point, and the first intramolecular reference point and the second intramolecular reference point have the same positional feature;

[0032] A position adjustment operation is performed on at least one of the first molecular model and the second molecular model, and after the position adjustment operation is performed, the first intramolecular reference point coincides with the second intramolecular reference point.

[0033] In one embodiment, after performing a position adjustment operation on at least one of the first molecular model and the second molecular model, the method further includes:

[0034] Obtain a first random rotation quaternion and a second random rotation quaternion, and generate a first random rotation matrix corresponding to the first random rotation quaternion and a second random rotation matrix corresponding to the second random rotation quaternion;

[0035] The first molecular model after position adjustment is rotated based on the first random rotation matrix, and the second molecular model after position adjustment is rotated based on the second random rotation matrix.

[0036] In a second aspect, the present application also provides a bimolecular structure construction device, comprising:

[0037] An acquisition module, used to acquire a first molecular model and a second molecular model, the first molecular model includes a first target site, and the second molecular model includes a second target site;

[0038] A determination module, configured to locate a first target vector with a first target site as an endpoint, and locate a second target vector with a second target site as an endpoint, wherein a direction line of the first target vector and a direction line of the second target vector intersect;

[0039] a rotation module, configured to perform a rotation operation on at least one of the first molecular model and the second molecular model, wherein after the rotation operation is performed, a first target vector of the first molecular model, a second target vector of the second molecular model, and a preset target axis are collinear, and the first target vector of the first molecular model is in opposite directions to the second target vector of the second molecular model;

[0040] The moving module is used to move at least one of the first molecular model and the second molecular model along the target axis in a direction opposite to the target vector direction corresponding to itself, until there is no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within a preset site distance range, thereby obtaining a target bimolecular structure model.

[0041] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0042] Acquire a first molecular model and a second molecular model, wherein the first molecular model includes a first target site, and the second molecular model includes a second target site;

[0043] Positioning a first target vector with the first target site as an endpoint, and positioning a second target vector with the second target site as an endpoint, wherein a direction line of the first target vector and a direction line of the second target vector intersect;

[0044] Performing a rotation operation on at least one of the first molecular model and the second molecular model, wherein after the rotation operation is performed, a first target vector of the first molecular model, a second target vector of the second molecular model, and a preset target axis are collinear, and the first target vector of the first molecular model is in opposite directions to the second target vector of the second molecular model;

[0045] At least one of the first molecular model and the second molecular model is moved along the target axis in a direction opposite to the target vector corresponding to itself until there is no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within a preset site distance range, thereby obtaining a target bimolecular structure model.

[0046] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0047] Acquire a first molecular model and a second molecular model, wherein the first molecular model includes a first target site, and the second molecular model includes a second target site;

[0048] Positioning a first target vector with the first target site as an endpoint, and positioning a second target vector with the second target site as an endpoint, wherein a direction line of the first target vector and a direction line of the second target vector intersect;

[0049] Performing a rotation operation on at least one of the first molecular model and the second molecular model, wherein after the rotation operation is performed, a first target vector of the first molecular model, a second target vector of the second molecular model, and a preset target axis are collinear, and the first target vector of the first molecular model is in opposite directions to the second target vector of the second molecular model;

[0050] At least one of the first molecular model and the second molecular model is moved along the target axis in a direction opposite to the target vector corresponding to itself until there is no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within a preset site distance range, thereby obtaining a target bimolecular structure model.

[0051] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0052] Acquire a first molecular model and a second molecular model, wherein the first molecular model includes a first target site, and the second molecular model includes a second target site;

[0053] Positioning a first target vector with the first target site as an endpoint, and positioning a second target vector with the second target site as an endpoint, wherein a direction line of the first target vector and a direction line of the second target vector intersect;

[0054] performing a rotation operation on at least one of the first molecular model and the second molecular model, wherein after the rotation operation is performed, a first target vector of the first molecular model, a second target vector of the second molecular model, and a preset target axis are collinear, and the first target vector of the first molecular model is in opposite directions to the second target vector of the second molecular model;

[0055] At least one of the first molecular model and the second molecular model is moved along the target axis in a direction opposite to the target vector corresponding to itself until there is no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within a preset site distance range, thereby obtaining a target bimolecular structure model.

[0056] The above-mentioned bimolecular structure construction method, device, computer equipment, computer-readable storage medium and computer program product first obtain a first molecular model and a second molecular model, wherein the first molecular model includes a first target site and the second molecular model includes a second target site, thereby determining the molecular models of the two molecules in the bimolecular structure and the two target sites corresponding to the specific orientation; then, by positioning the first target vector with the first target site as an endpoint and positioning the second target vector with the second target site as an endpoint, wherein the direction line of the first target vector and the direction line of the second target vector intersect, a rotation operation is performed on at least one of the first molecular model and the second molecular model, wherein, when performing the rotation After the operation, the first target vector of the first molecular model, the second target vector of the second molecular model and the preset target axis are collinear, and the first target vector of the first molecular model is in the opposite direction to the second target vector of the second molecular model, so that the first target vector and the second target vector are coaxial and opposite, and then at least one of the first molecular model and the second molecular model is moved along the target axis in the opposite direction to the target vector corresponding to itself, until there is no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within the preset site distance range, the target bimolecular structure model is obtained, and the construction of a bimolecular structure with a specific orientation is realized. Compared with the traditional method, the bimolecular structure construction method proposed in the present application can directly construct a bimolecular structure that meets the specific orientation requirements, thereby reducing the computing resources occupied by constructing a bimolecular structure that does not meet the specific orientation requirements, and can effectively save the computing resources consumed by constructing a bimolecular structure with a specific orientation; on the other hand, it can realize the automatic construction of a bimolecular structure that meets the specific orientation requirements, avoiding manual operation, so that it can be effectively applied to high-throughput calculations. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0058] Figure 1 A schematic diagram of a scenario for constructing a bimolecular structure in an embodiment;

[0059] Figure 2 Schematic diagram of a process for constructing a bimolecular structure in one embodiment;

[0060] Figure 3 is a schematic flow chart of a method for constructing a bimolecular structure in another embodiment;

[0061] Figure 4 is a structural block diagram of a bimolecular structure construction device in one embodiment;

[0062] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0064] With the rapid development of computer technology, molecular modeling has gradually become an important part of modern chemistry and physics. In the fields of chemistry, materials, and drug design, in order to explore the interaction or reaction between bimolecular structures, it is often necessary to model bimolecular structures. Figure 1 When constructing a bimolecular structure, it is usually necessary to provide two separate molecular structures, and then use molecular modeling software to construct a large number of randomly distributed bimolecular structures. If it is expected that specific sites in the two molecules will interact, when constructing the bimolecular structure, it is hoped that the two specific sites will be as close as possible to a certain range when constructing the bimolecular structure.

[0065] In traditional technology, there are two main ways to construct bimolecular structures with specific orientations. One is to start from two given molecules and randomly mix the two molecules through molecular modeling software such as Packmol to obtain a large number of randomly oriented bimolecular structures, and then screen the bimolecular structures with specific orientations from the randomly oriented bimolecular structures based on the interatomic distance and other factors. The second is to start from two given molecules and use modeling software to manually place the positions of the two molecules for a specific system based on their chemical intuition to obtain a bimolecular structure with specific orientation.

[0066] However, in order to obtain a bimolecular structure with a specific orientation, the first method consumes a large amount of computing resources to generate unnecessary bimolecular structures with random orientations, resulting in a waste of computing resources. In order to obtain a bimolecular structure with a specific orientation, the second method requires human intervention and cannot be completed automatically. It is inefficient and lacks randomness, which is not conducive to its application in high-throughput computing.

[0067] In an exemplary embodiment, Figure 2 As shown, a method for constructing a bimolecular structure is provided. This embodiment uses the method applied to a terminal as an example, wherein the terminal may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. It is understandable that the method may also be applied to a server, and may also be applied to a system including a terminal and a server, and may be implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps S10-S40. Among them:

[0068] Step S10, obtaining a first molecular model and a second molecular model, wherein the first molecular model includes a first target site, and the second molecular model includes a second target site.

[0069] Among them, a bimolecular structure refers to a complex formed by the interaction between two molecules, such as protein and ligand, nucleophile / electrophile and reactant, catalyst and substrate, solute and solvent, solvent and additive, etc. By simulating bimolecular structures, researchers can deeply understand the properties and behaviors of bimolecular structures, thus providing important theoretical basis for drug design, material development and other fields. The first molecular model is the molecular model of one molecule in the bimolecular structure, and the second molecular model is the molecular model of the other molecule in the bimolecular structure.

[0070] Specific orientation means that the two molecules in the bimolecular structure are arranged in a specific spatial arrangement so that the specific sites on the two molecules are as close as possible within a certain range. The specific site can be any atom, group or lowest point of electrostatic potential on the molecule. The specific site can be specified by the user or determined based on actual needs. For example, a certain atom in the molecule can be specified, or a certain atom or group in the molecule can be specified, such as oxygen atoms, phosphorus atoms, hydroxyl groups, etc. This embodiment does not limit this. The first target site refers to the specific site on the molecule corresponding to the first molecular model, and the second target site refers to the specific site on the molecule corresponding to the second molecular model.

[0071] Exemplarily, before constructing a bimolecular structure with a specific orientation, molecular models of the two molecules in the bimolecular structure can be generated and stored in advance so that they can be directly called when constructing the bimolecular structure with a specific orientation. Alternatively, when constructing the bimolecular structure with a specific orientation, the molecular models of the two molecules in the bimolecular structure can be generated first; then, the user can specify a first target site from the first molecular model and specify a second target site from the second molecular model through a user device; the terminal locates the first target site from the first molecular model in response to the site designation operation, and locates the second target site from the second molecular model.

[0072] Step S20, positioning the first target vector with the first target site as an endpoint, and positioning the second target vector with the second target site as an endpoint, wherein the direction line of the first target vector and the direction line of the second target vector intersect.

[0073] The first target vector is a vector with the first target site as the starting point or the end point, the second target site is a vector with the second target site as the starting point or the end point, and the direction line of the first target vector intersects with the direction line of the second target vector. The direction line of the first target vector is a straight line passing through the first target site and in the direction of the first target vector; the direction line of the second target vector is a straight line passing through the second target site and in the direction of the second target vector.

[0074] As an example, after obtaining the first molecular model and the second molecular model, a coordinate system can be established first or a pre-established coordinate system can be determined, the first molecular model and the second molecular model can be loaded into the coordinate system, and the first target site and the second target site can be located in the coordinate system; then, with the first target site as the starting point or end point, multiple first initial vectors can be determined, and with the second target site as the starting point or end point, multiple second initial vectors can also be determined; then, a group of first initial vectors and second initial vectors whose direction lines intersect can be randomly selected, and the selected first initial vector can be determined as the first target vector, and the selected second initial vector can be determined as the second target vector.

[0075] As an example, after obtaining the first molecular model and the second molecular model, a coordinate system can be first established, the first molecular model and the second molecular model can be loaded into the coordinate system, and the first target site and the second target site can be located in the coordinate system; then, the first target site can be used as the starting point or end point, combined with a preset starting point or preset end point, to determine the first target vector, and the second target site can be used as the starting point or end point, combined with a preset starting point or preset end point, to determine the second target vector. The preset starting point and the preset end point can be the same, so that the direction line of the first target vector and the direction line of the second target vector intersect at the preset starting point and the preset end point.

[0076] As an example, a coordinate system can be established to determine the first target vector with the first target site as the starting point and the origin as the end point, or to determine the first target vector with the origin as the starting point and the first target site as the end point; and to determine the second target vector with the second target site as the starting point and the origin as the end point, or to determine the second target vector with the origin as the starting point and the second target site as the end point, so that the direction lines of the determined first target vector and the second target vector intersect at the origin.

[0077] Step S30, performing a rotation operation on at least one of the first molecular model and the second molecular model, wherein after performing the rotation operation, a first target vector of the first molecular model, a second target vector of the second molecular model, and a preset target axis are collinear, and the first target vector of the first molecular model is in opposite directions to the second target vector of the second molecular model.

[0078] The preset target axis is used to align the first target vector and the second target vector, and can be determined according to user operation or actual needs, and the embodiment itself does not limit this. As an example, the preset target axis can be the X axis, Y axis or Z axis of the coordinate system, or it can be the straight line where at least one of the first target vector and the second target vector is located before the rotation.

[0079] Exemplarily, after determining the first target vector and the second target vector, at least one of the first molecular model and the second molecular model may be rotated. As the molecular model rotates, the directions of the first target vector and the second target vector will change, and their positions in the coordinate system will also change. By rotating at least one of the first molecular model and the second molecular model, the first target vector and the second target vector should be collinear with the preset target axis, and the direction of the first target vector is opposite to that of the second target vector. For example, if the preset target axis is the Z axis of the coordinate system, and the first target vector is rotated to be collinear with the Z axis, and the direction is the positive direction of the Z axis, then the second target vector should be rotated to be collinear with the Z axis, and the direction is the negative direction of the Z axis.

[0080] Step S40, at least one of the first molecular model and the second molecular model is moved along the target axis in a direction opposite to the target vector direction corresponding to itself, until there is no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within a preset site distance range, thereby obtaining a target bimolecular structure model.

[0081] Exemplarily, at least one of the rotated first molecular model and the rotated second molecular model is translated along the target axis, and the direction of the translation is the opposite direction of the first target vector or the second target vector corresponding to itself. After the translation, there should be no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within the preset site distance range, so as to obtain a target bimolecular structure model with a specific orientation. For example, if the target axis is the Z axis, the direction of the first target vector is the positive direction of the Z axis, and the direction of the second target vector is the negative direction of the Z axis, then the first molecular model can be moved in the negative direction of the Z axis, or the second molecular model can be moved in the positive direction of the Z axis, or the first molecular model can be moved in the negative direction of the Z axis and the second molecular model can be moved in the positive direction of the Z axis, until the distance between the first target site and the second target site is within the preset site distance range and there is no overlapping area between the first molecular model and the second molecular model, so as to obtain a target bimolecular structure model with a specific orientation.

[0082] As an example, the method of moving at least one of the first molecular model and the second molecular model along the target axis in a direction opposite to the target vector corresponding to itself includes: translating at least one of the rotated first molecular model and the rotated second molecular model along the target axis, and the direction of translation is the opposite direction of the first target vector or the second target vector corresponding to itself. During the movement, it is possible to continuously detect whether there is an overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site, until there is no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within a preset site distance range, the movement is completed, and a target bimolecular structure model with a specific orientation is obtained.

[0083] As an example, the method of moving at least one of the first molecular model and the second molecular model along the target axis in the direction opposite to the target vector direction corresponding to itself includes: obtaining the first maximum site distance of the first molecular model in the first target vector direction of the target axis, and the second maximum site distance of the second molecular model in the second target vector direction of the target axis, determining the sum of the first maximum site distance, the second maximum site distance and the preset offset as the target moving distance, translating the first molecular model or the second molecular model along the target axis by the target moving distance, and the translation direction is the opposite direction of the first target vector or the second target vector corresponding to itself, so that there is no overlapping area between the translated first molecular model and the second molecular model, and the distance between the first target site and the second target site is within the preset site distance range. As an example, the preset offset can be 2 angstroms.

[0084] As an example, at least one of the first molecular model and the second molecular model is moved along the target axis in the opposite direction to the target vector corresponding to itself, until there is no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within the preset site distance range, and after obtaining the target bimolecular structure model, it also includes: reselecting the first target site from the first molecular model, and reselecting the second target site from the second molecular model, at least one of the reselected first target site and the second target site is different from before reselection; returning to execute the steps of positioning the first target vector with the first target site as the endpoint, and positioning the second target vector with the second target site as the endpoint, wherein the direction line of the first target vector and the direction line of the second target vector intersect. In this way, target bimolecular structure models with multiple specific orientations between two molecules can be simulated to provide support for subsequent high-throughput calculations. Moreover, when a molecule contains multiple atoms of the same type, target bimolecular structure models of multiple specific orientations corresponding to the multiple atoms of the same type can be simulated simultaneously. For example, molecule A contains multiple oxygen atoms, and molecule B contains multiple phosphorus atoms. Assuming that there is interaction between the oxygen atoms and the phosphorus atoms, there are multiple possibilities for constructing a bimolecular structure with a specific orientation determined by the oxygen atoms and the phosphorus atoms. Through this embodiment, multiple possible target bimolecular structures can be automatically simulated.

[0085] As an example, a method for reselecting the first target site and the second target site includes: making a Cartesian product of multiple sites in the first molecular model and multiple sites in the second molecular model to obtain multiple site combinations, selecting target site combinations from the multiple site combinations in turn, determining the site in the target site combination located in the first molecular model as the first target site, and determining the site in the target site combination located in the second molecular model as the second target site.

[0086] In the above-mentioned bimolecular structure construction method, first, by obtaining a first molecular model and a second molecular model, the first molecular model includes a first target site, and the second molecular model includes a second target site, the molecular models of the two molecules in the bimolecular structure, and the two target sites corresponding to the specific orientation are determined; then, by positioning the first target vector with the first target site as an endpoint, and positioning the second target vector with the second target site as an endpoint, wherein the direction line of the first target vector and the direction line of the second target vector intersect, a rotation operation is performed on at least one of the first molecular model and the second molecular model, wherein after performing the rotation operation, the first target vector of the first molecular model, the second target vector of the second molecular model, and the preset target axis are collinear, the first target vector of the first molecular model and the second target vector of the second molecular model are in opposite directions, and the first target vector and the second target vector are coaxial and opposite, and then at least one of the first molecular model and the second molecular model is moved along the target axis in a direction opposite to the direction of the target vector corresponding to itself, until there is no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within the preset site distance range, a target bimolecular structure model is obtained, and the construction of a bimolecular structure with a specific orientation is achieved. Compared with traditional methods, the bimolecular structure construction method proposed in this application can directly construct a bimolecular structure that meets specific orientation requirements, thereby reducing the computing resources occupied by constructing bimolecular structures that do not meet specific orientation requirements, and can effectively save the computing resources required to construct bimolecular structures with specific orientations; on the other hand, it can realize the automatic construction of bimolecular structures that meet specific orientation requirements, avoiding manual operation, and thus can be effectively applied to high-throughput calculations.

[0087] In an exemplary embodiment, Figure 3 As shown, performing a rotation operation on at least one of the first molecular model and the second molecular model includes steps S31 to S33. Wherein:

[0088] Step S31, obtaining first initial vector position information of a first target vector, second initial vector position information of a second target vector, and target axis position information of a preset target axis.

[0089] The first initial vector position information is used to characterize the position of the first target vector before the rotation, the second initial vector position information is used to characterize the position of the second target vector before the rotation, and the target axis position information is used to characterize the position of the target axis. As an example, the first initial vector position information may be the coordinates of the first target vector in the coordinate system before the rotation, the second initial vector position information may be the coordinates of the second target vector in the coordinate system before the rotation, and the target axis position information may be the coordinates of any unit vector on the target axis.

[0090] Step S32, based on the first initial vector position information, the second initial vector position information and the target axis position information, determine the rotation axis and the rotation angle; the rotation axis is perpendicular to at least two planes commonly determined by the first target vector, the second target vector and the target axis; the rotation angle is used to make the first target vector, the second target vector and the preset target axis collinear, and the direction of the rotated first target vector is opposite to that of the second target vector.

[0091] Exemplarily, whether the target axis is collinear with at least one of the direction line of the first target vector and the direction line of the second target vector may be determined based on the first initial vector position information, the second initial vector position information and the target axis position information.

[0092] If the target axis is collinear with the first target vector and the second target vector, the rotation axis can be determined to be a null value and the rotation angle is 0, that is, no rotation operation is required and the step of moving the molecular model can be directly executed.

[0093] If the target axis is collinear with the first target vector or the second target vector, the rotation axis and the rotation angle can be determined based on the first initial vector position information and the second initial vector position information. The rotation axis is perpendicular to the plane jointly determined by the first target vector and the second target vector. The rotation angle is the angle between the non-collinear target vector and the collinear target vector in the opposite direction. The non-collinear target vector refers to the first target vector or the second target vector that is not collinear with the target axis, and the collinear target vector refers to the first target vector or the second target vector that is collinear with the target axis.

[0094] If the target axis is not collinear with the first target vector and the second target vector, the first rotation axis and the first rotation angle can be determined based on the first initial vector position information and the target axis position information, the first rotation axis is perpendicular to the plane jointly determined by the first target vector and the target axis, and the first rotation angle is the angle between the first target vector and the positive direction or the negative direction of the target axis; and the second rotation axis and the second rotation angle are determined based on the second initial vector position information and the target axis position information, the second rotation axis is perpendicular to the plane jointly determined by the second target vector and the target axis, the second rotation angle is the angle between the second target vector and the positive direction or the negative direction of the target axis, and the directions of the rotated first target vector and the second target vector are opposite, for example, if the first rotation angle is the angle between the first target vector and the positive direction of the target axis, the second rotation angle is the angle between the second target vector and the negative direction of the target axis; if the first rotation angle is the angle between the first target vector and the negative direction of the target axis, the second rotation angle is the angle between the second target vector and the positive direction of the target axis.

[0095] Step S33: rotating at least one of the first molecular model and the second molecular model around the rotation axis by a rotation angle.

[0096] Exemplarily, if the target axis is colinear with the first target vector or the second target vector, at least one of the first molecular model and the second molecular model may be rotated around the rotation axis by a rotation angle.

[0097] If the target axis is not collinear with the first target vector and the second target vector, the first molecular model may be rotated around the first rotation axis by a first rotation angle, and the second molecular model may be rotated around the second rotation axis by a second rotation angle.

[0098] In this embodiment, by rotating at least one of the first molecular model and the second molecular model, the first target site and the second target site can be made coaxial and opposite to the relative position relationship between the molecular models. For example, if the first target site is positioned above in the first molecular model, the second target site is positioned below in the second molecular model, thereby facilitating the subsequent movement and adjustment process.

[0099] In an exemplary embodiment, the rotation axis includes a first rotation axis and a second rotation axis, the rotation angle includes a first rotation angle and a second rotation angle, the target axis position information includes first direction vector position information and second direction vector position information of the target axis, the first direction is opposite to the second direction, the first rotation angle is used to make the direction of the first target vector consistent with the first direction, and the second rotation angle is used to make the direction of the second target vector consistent with the second direction;

[0100] Determining a rotation axis and a rotation angle based on the first initial vector position information, the second initial vector position information and the target axis position information includes:

[0101] Step S321, when the target axis is not colinear with the first target vector and the second target vector, determine the first rotation axis and the first rotation angle based on the first initial vector position information and the first direction vector position information, and determine the second rotation axis and the second rotation angle based on the second initial vector position information and the second direction vector position information.

[0102] The first direction vector position information is used to characterize the position of the target axis in the first direction, and the second direction vector position information is used to characterize the position of the target axis in the second direction, and the first direction is collinear with the second direction but in opposite directions. As an example, the first direction vector position information may be a unit vector along the first direction on the target axis, and the second direction vector position information may be a unit vector along the second direction on the target axis.

[0103] Exemplarily, if the target axis is not colinear with the first target vector and the second target vector, the first rotation axis and the first rotation angle can be determined based on the first initial vector position information and the first direction vector position information, the first rotation axis is perpendicular to the plane jointly determined by the first target vector and the target axis, and the first rotation angle is the angle between the first target vector and the first direction, so that the direction of the rotated first target vector is the same as the first direction; and based on the second initial vector position information and the second direction vector position information, the second rotation axis and the second rotation angle are determined, the second rotation axis is perpendicular to the plane jointly determined by the second target vector and the target axis, and the second rotation angle is the angle between the second target vector and the second direction, so that the direction of the rotated second target vector is the same as the second direction.

[0104] As an example, the first rotation angle θ1 can be calculated using the following formula:

[0105]

[0106] Where u1 is the first target vector, v1 is the unit vector in the first direction, and |·| represents the modulus of the vector. The rotation axis can be expressed as u1×v1 / |u1×v1|.

[0107] The second rotation angle θ2 can be calculated using the following formula:

[0108]

[0109] Where u2 is the second target vector, v2 is the unit vector in the second direction, and |·| represents the modulus of the vector. The rotation axis can be expressed as u2×v2 / |u2×v2|.

[0110] Rotating at least one of the first molecular model and the second molecular model around a rotation axis by a rotation angle comprises:

[0111] Step S331 : rotating the first molecular model around the first rotation axis by a first rotation angle, and rotating the second molecular model around the second rotation axis by a second rotation angle.

[0112] Exemplarily, when the first rotation axis and the first rotation angle corresponding to the first molecular model, and the second rotation axis and the second rotation angle corresponding to the second molecular model are respectively determined, the first molecular model can be rotated around the first rotation axis by the first rotation angle so that the direction of the first target vector is the same as the first direction, and the second molecular model can be rotated around the second rotation axis by the second rotation angle so that the direction of the second target vector is the same as the second direction. In this way, since the first direction is collinear with the second direction but in opposite directions, the rotated first target vector can be made collinear with the second target vector but in opposite directions.

[0113] In this embodiment, without considering the first target vector and the second target vector, the coordinate axis of the coordinate system can be selected as the target axis, so as to effectively reduce the amount of calculation and reduce computing resources. However, the target axis determined in this way is usually not collinear with the first target vector and the second target vector. By rotating the first molecular model and the second molecular model respectively, the amount of calculation can be effectively reduced and computing resources can be saved while making the first target vector and the second target vector collinear and in opposite directions.

[0114] In an exemplary embodiment, rotating the first molecular model around the first rotation axis by a first rotation angle includes steps S33111 to S33114.

[0115] Step S33111: Generate a first rotation quaternion based on the first rotation angle and the first rotation axis, and generate a first rotation matrix corresponding to the first rotation quaternion.

[0116] The rotation quaternion refers to a quaternion used to represent rotation around an axis in a three-dimensional space.

[0117] The rotation matrix is ​​a special orthogonal matrix used to describe the rotation around an axis in three-dimensional space. It can be obtained by converting the rotation quaternion. The specific conversion method is similar to the prior art, and this embodiment will not be described in detail here.

[0118] Exemplarily, after determining the first rotation angle and the first rotation axis, the unit vector coordinates of the unit vector of the first rotation axis in the coordinate system are obtained, and based on the unit vector coordinates and the first rotation angle, the first rotation quaternion is calculated, and the calculated first rotation quaternion is converted into a first rotation matrix.

[0119] Step S33112, obtaining the first initial coordinates of the first molecular model.

[0120] Among them, the first initial coordinates refer to the coordinates of each site in the first molecular model before rotation, including the coordinates of each atom in the first molecular model before rotation, and at least one of the coordinates of each connection axis in the first molecular model before rotation. As an example, the first initial coordinates may refer to the coordinates of each atom in the first molecular model before rotation. After re-determining the coordinates of each atom, the connection relationship between atoms can be restored based on information such as molecular formula.

[0121] Exemplarily, first initial coordinates of a plurality of sites in the first molecular model are obtained.

[0122] Step S33113: Based on the first initial coordinates and the first rotation matrix, generate first rotation coordinates after the first molecular model is rotated around the first rotation axis by the first rotation angle.

[0123] Among them, the first rotation coordinate refers to the coordinates of each site in the first molecular model after rotation, including the coordinates of each atom in the first molecular model after rotation, and at least one of the coordinates of each connection axis in the first molecular model after rotation. As an example, the first initial coordinate may refer to the coordinates of each atom in the first molecular model after rotation. After re-determining the first rotation coordinates of each atom, the connection relationship between atoms can be restored based on information such as molecular formula.

[0124] Exemplarily, based on the first rotation matrix and the first initial coordinates of each site, a first rotation coordinate of each site after being rotated around the first rotation axis by a first rotation angle is calculated.

[0125] Step S33114: regenerate the first molecular model based on the first rotation coordinates.

[0126] Exemplarily, the first molecular model is regenerated based on the first rotation coordinates after each site is rotated.

[0127] In an exemplary embodiment, rotating the second molecular model around the second rotation axis by a second rotation angle includes steps S33121 to S33124.

[0128] Step S33121, based on the second rotation angle and the second rotation axis, generate a second rotation quaternion, and generate a second rotation matrix corresponding to the second rotation quaternion.

[0129] Exemplarily, after determining the second rotation angle and the second rotation axis, the unit vector coordinates of the unit vector of the second rotation axis in the coordinate system are obtained, and based on the unit vector coordinates and the second rotation angle, the second rotation quaternion is calculated, and the calculated second rotation quaternion is converted into a second rotation matrix.

[0130] Step S33122, obtaining the second initial coordinates of the second molecular model.

[0131] Among them, the second initial coordinates refer to the coordinates of each site in the second molecular model before rotation, including the coordinates of each atom in the second molecular model before rotation, and at least one of the coordinates of each connection axis in the second molecular model before rotation. As an example, the second initial coordinates may refer to the coordinates of each atom in the second molecular model before rotation. After re-determining the coordinates of each atom, the connection relationship between atoms can be restored based on information such as molecular formula.

[0132] Exemplarily, second initial coordinates of a plurality of sites in the second molecular model are obtained.

[0133] Step S33123: Based on the second initial coordinates and the second rotation matrix, generate second rotation coordinates of the second molecular model after rotating the second molecular model around the second rotation axis by a second rotation angle.

[0134] Among them, the second rotation coordinates refer to the coordinates of each site in the second molecular model after rotation, including the coordinates of each atom in the second molecular model after rotation, and at least one of the coordinates of each connection axis in the second molecular model after rotation. As an example, the second initial coordinates may refer to the coordinates of each atom in the second molecular model after rotation. After re-determining the second rotation coordinates of each atom, the connection relationship between atoms can be restored based on information such as molecular formula.

[0135] Exemplarily, based on the second rotation matrix and the second initial coordinates of each site, the second rotation coordinates of each site after being rotated around the second rotation axis by the second rotation angle are calculated.

[0136] Step S33124, regenerate the second molecular model based on the second rotation coordinates.

[0137] Exemplarily, the second molecular model is regenerated based on the second rotation coordinates after each site is rotated.

[0138] As an example, suppose the components of the unit vector of the rotation axis v in the three directions are n x 、n y and n z , the rotation of angle θ around the v axis can be expressed by quaternion (q1, q2, q3, q4):

[0139] .

[0140] The transformed rotation matrix can be expressed as:

[0141]

[0142] Assuming the initial coordinate is x, the rotated coordinate x' after rotation can be expressed as:

[0143] ;

[0144] in, is a real number, N is the number of sites to be rotated in the molecule, and the sites to be rotated refer to all atoms in the molecule, or all atoms and virtual atoms in the molecule, etc.

[0145] In this embodiment, the method of rotating the molecular model using the rotation quaternion can effectively save storage and computing resources, and combined with the rotation matrix, it is easy to understand and program the rotation process.

[0146] In an exemplary embodiment, obtaining the first molecular model and the second molecular model includes steps S11 to S12. In which:

[0147] Step S11, obtaining a first molecular model and a second molecular model, adding the first molecular model and the second molecular model to a preset coordinate system, wherein the first molecular model includes a first intramolecular reference point, and the second molecular model includes a second intramolecular reference point, and the first intramolecular reference point and the second intramolecular reference point have the same positional features.

[0148] Among them, the first intramolecular reference point is located in the internal space of the first molecular model and is used to align with the second molecular model. The second intramolecular reference point is located in the internal space of the second molecular model and is used to align with the first molecular model. The first intramolecular reference point and the second intramolecular reference point have the same positional characteristics. For example, they can both be the geometric centers of their respective corresponding molecular models, or they can both be the center points of their respective corresponding molecular models under the mass-weighted coordinates, etc.

[0149] For example, before constructing a bimolecular structure with a specific orientation, molecular models of two molecules in the bimolecular structure can be generated and stored in advance so as to be directly called when constructing the bimolecular structure with a specific orientation. Alternatively, when constructing the bimolecular structure with a specific orientation, the molecular models of the two molecules in the bimolecular structure can be generated first. Then, when constructing the bimolecular structure with a specific orientation, a coordinate system can be constructed first or a pre-constructed coordinate system can be determined, and then the first molecular model and the second molecular model of the two molecules in the bimolecular structure can be loaded to any position or a preset initial position in the coordinate system.

[0150] If the first molecular model and the second molecular model of the two molecules in the bimolecular structure are loaded into the preset initial position in the coordinate system, the reference point within the first molecule can be directly aligned with the reference point within the second molecule during loading. For example, the preset initial position can be the origin. When adding the molecular model to the coordinate system, the geometric center, the lower leftmost site, the uppermost site, etc. of the molecular model can be made to coincide with the origin.

[0151] If the initial positions of the first molecular model and the second molecular model are not limited, the first molecular model and the second molecular model of the two molecules in the bimolecular structure can be loaded to any position in the coordinate system, and then the first molecular intramolecular reference point can be located from the first molecular model added to the preset coordinate system, and the second molecular intramolecular reference point can be located from the second molecular model added to the preset coordinate system.

[0152] Step S12, performing a position adjustment operation on at least one of the first molecular model and the second molecular model, and after performing the position adjustment operation, the first intramolecular reference point coincides with the second intramolecular reference point.

[0153] For example, the position of at least one of the first molecular model and the second molecular model may be moved so that the first intra-molecular reference point coincides with the second intra-molecular reference point.

[0154] As an example, at least one of the first molecular model and the second molecular model may be moved along a line between the first intramolecular reference point and the second intramolecular reference point until the first intramolecular reference point coincides with the second intramolecular reference point.

[0155] As another example, the first molecular model can be moved along the line connecting the first molecule intra-reference point and the preset coincidence point, and the second molecular model can also be moved along the line connecting the second molecule intra-reference point and the preset coincidence point, until the first molecule intra-reference point coincides with the second molecule intra-reference point. Exemplarily, the target coincidence point can be the origin.

[0156] In this embodiment, by simply adjusting the initial position of the molecular model, subsequent calculations can be greatly simplified and computing resources can be saved.

[0157] In an exemplary embodiment, after performing a position adjustment operation on at least one of the first molecular model and the second molecular model, steps S13 to S14 are further included. In which:

[0158] Step S13, obtaining a first random rotation quaternion and a second random rotation quaternion, and generating a first random rotation matrix corresponding to the first random rotation quaternion and a second random rotation matrix corresponding to the second random rotation quaternion.

[0159] Exemplarily, after aligning a first intramolecular reference point in the first molecular model with a second intramolecular reference point in the second molecular model, a randomly generated first random rotation quaternion and a second random rotation quaternion are obtained, and the first random rotation quaternion is converted into a first random rotation matrix, and the second random rotation quaternion is converted into a second random rotation matrix.

[0160] Step S14: performing a rotation operation on the first molecular model after the position adjustment based on the first random rotation matrix, and performing a rotation operation on the second molecular model after the position adjustment based on the second random rotation matrix.

[0161] Exemplarily, the third initial coordinates of each site in the first molecular model after position adjustment and the fourth initial coordinates of each site in the second molecular model after position adjustment are obtained; based on the first random rotation matrix and each third initial coordinate, the third rotated coordinates of each site in the first molecular model after position adjustment are calculated, and based on the second random rotation matrix and each fourth initial coordinate, the fourth rotated coordinates of each site in the second molecular model after position adjustment are calculated; based on the third rotated coordinates, the first molecular model after random rotation is regenerated, and based on the fourth rotated coordinates, the second molecular model after random rotation is regenerated.

[0162] As an example, after performing a rotation operation on the first molecular model after position adjustment based on the first random rotation matrix, and performing a rotation operation on the second molecular model after position adjustment based on the second random rotation matrix, it can also include: randomly generating a new first random rotation quaternion and a second random rotation quaternion, and returning to execute the step of obtaining the first random rotation quaternion and the second random rotation quaternion, so as to obtain a plurality of target bimolecular structure models with the same specific orientation but different rotation angles of the molecular models.

[0163] In this embodiment, by randomly generating a rotation quaternion, the random rotation of the first molecular model and the second molecular model can be quickly and simply achieved, thereby ensuring the randomness of the target bimolecular structure model finally generated.

[0164] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0165] Based on the same inventive concept, the embodiment of the present application also provides a bimolecular structure construction device for implementing the bimolecular structure construction method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more bimolecular structure construction device embodiments provided below can refer to the limitations of the bimolecular structure construction method above, and will not be repeated here.

[0166] In an exemplary embodiment, Figure 4 As shown, a bimolecular structure construction device is provided, including: an acquisition module 402, a determination module 404, a rotation module 406 and a movement module 408, wherein:

[0167] An acquisition module 402 is used to acquire a first molecular model and a second molecular model, wherein the first molecular model includes a first target site and the second molecular model includes a second target site;

[0168] A determination module 404 is used to locate a first target vector with the first target site as an endpoint, and to locate a second target vector with the second target site as an endpoint, wherein a direction line of the first target vector and a direction line of the second target vector intersect;

[0169] a rotation module 406, configured to perform a rotation operation on at least one of the first molecular model and the second molecular model, wherein after the rotation operation is performed, a first target vector of the first molecular model, a second target vector of the second molecular model, and a preset target axis are collinear, and a direction of the first target vector of the first molecular model is opposite to a direction of the second target vector of the second molecular model;

[0170] The moving module 408 is used to move at least one of the first molecular model and the second molecular model along the target axis in a direction opposite to the target vector direction corresponding to itself, until there is no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within a preset site distance range, thereby obtaining a target bimolecular structure model.

[0171] In an exemplary embodiment, the rotation module 406 is further configured to:

[0172] Acquire first initial vector position information of a first target vector, second initial vector position information of a second target vector, and target axis position information of a preset target axis;

[0173] Based on the first initial vector position information, the second initial vector position information and the target axis position information, a rotation axis and a rotation angle are determined; the rotation axis is perpendicular to at least two planes commonly determined by the first target vector, the second target vector and the target axis; the rotation angle is used to make the first target vector, the second target vector and the preset target axis collinear, and the direction of the rotated first target vector is opposite to that of the second target vector;

[0174] At least one of the first molecular model and the second molecular model is rotated around the rotation axis by a rotation angle.

[0175] In an exemplary embodiment, the rotation axis includes a first rotation axis and a second rotation axis, the rotation angle includes a first rotation angle and a second rotation angle, the target axis position information includes first direction vector position information and second direction vector position information of the target axis, the first direction is opposite to the second direction, the first rotation angle is used to make the direction of the first target vector consistent with the first direction, and the second rotation angle is used to make the direction of the second target vector consistent with the second direction; the rotation module 406 is further used to:

[0176] In the case where the target axis is not collinear with the first target vector and the second target vector, determining the first rotation axis and the first rotation angle based on the first initial vector position information and the first direction vector position information, and determining the second rotation axis and the second rotation angle based on the second initial vector position information and the second direction vector position information;

[0177] The first molecular model is rotated around a first rotation axis by a first rotation angle, and the second molecular model is rotated around a second rotation axis by a second rotation angle.

[0178] In an exemplary embodiment, the rotation module 406 is further configured to:

[0179] Based on the first rotation angle and the first rotation axis, generate a first rotation quaternion, and generate a first rotation matrix corresponding to the first rotation quaternion;

[0180] obtaining first initial coordinates of a first molecular model;

[0181] Based on the first initial coordinates and the first rotation matrix, generating first rotation coordinates after the first molecular model is rotated around the first rotation axis by a first rotation angle;

[0182] regenerating the first molecular model based on the first rotation coordinates;

[0183] Based on the second rotation angle and the second rotation axis, generate a second rotation quaternion, and generate a second rotation matrix corresponding to the second rotation quaternion;

[0184] obtaining second initial coordinates of the second molecular model;

[0185] Based on the second initial coordinates and the second rotation matrix, generating second rotation coordinates of the second molecular model after rotating the second molecular model around the second rotation axis by a second rotation angle;

[0186] The second molecular model is regenerated based on the second rotated coordinates.

[0187] In an exemplary embodiment, the acquisition module 402 is further configured to:

[0188] Acquire a first molecular model and a second molecular model, and add the first molecular model and the second molecular model to a preset coordinate system, wherein the first molecular model includes a first intramolecular reference point, and the second molecular model includes a second intramolecular reference point, and the first intramolecular reference point and the second intramolecular reference point have the same positional feature;

[0189] A position adjustment operation is performed on at least one of the first molecular model and the second molecular model, and after the position adjustment operation is performed, the first intramolecular reference point coincides with the second intramolecular reference point.

[0190] In an exemplary embodiment, the acquisition module 402 is further configured to:

[0191] Obtain a first random rotation quaternion and a second random rotation quaternion, and generate a first random rotation matrix corresponding to the first random rotation quaternion and a second random rotation matrix corresponding to the second random rotation quaternion;

[0192] The first molecular model after position adjustment is rotated based on the first random rotation matrix, and the second molecular model after position adjustment is rotated based on the second random rotation matrix.

[0193] Each module in the above-mentioned bimolecular structure construction device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0194] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 5As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a bimolecular structure construction method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0195] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0196] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0197] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0198] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0199] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0200] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0201] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0202] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for constructing a bimolecular structure, characterized in that: The method comprises: Acquire a first molecular model and a second molecular model, wherein the first molecular model includes a first target site, and the second molecular model includes a second target site; Positioning a first target vector with the first target site as an endpoint, and positioning a second target vector with the second target site as an endpoint, wherein a direction line of the first target vector and a direction line of the second target vector intersect; performing a rotation operation on at least one of the first molecular model and the second molecular model, wherein after performing the rotation operation, a first target vector of the first molecular model, a second target vector of the second molecular model, and a preset target axis are collinear, and the first target vector of the first molecular model is in opposite directions to the second target vector of the second molecular model; At least one of the first molecular model and the second molecular model is moved along the target axis in a direction opposite to the target vector direction corresponding to itself, until there is no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within a preset site distance range, thereby obtaining a target bimolecular structure model.

2. The method according to claim 1, characterized in that The rotating operation on at least one of the first molecular model and the second molecular model comprises: Acquire first initial vector position information of the first target vector, second initial vector position information of the second target vector, and target axis position information of a preset target axis; Based on the first initial vector position information, the second initial vector position information and the target axis position information, a rotation axis and a rotation angle are determined; the rotation axis is perpendicular to a plane commonly determined by at least two of the first target vector, the second target vector and the target axis; the rotation angle is used to make the first target vector, the second target vector and the preset target axis collinear, and the first target vector after rotation is in opposite directions to the second target vector; At least one of the first molecular model and the second molecular model is rotated around the rotation axis by the rotation angle.

3. The method according to claim 2, characterized in that The rotation axis includes a first rotation axis and a second rotation axis, the rotation angle includes a first rotation angle and a second rotation angle, the target axis position information includes first direction vector position information and second direction vector position information of the target axis, the first direction is opposite to the second direction, the first rotation angle is used to make the direction of the first target vector consistent with the first direction, and the second rotation angle is used to make the direction of the second target vector consistent with the second direction; The determining of the rotation axis and the rotation angle based on the first initial vector position information, the second initial vector position information and the target axis position information comprises: In a case where the target axis is not collinear with the first target vector and the second target vector, determining a first rotation axis and a first rotation angle based on the first initial vector position information and the first direction vector position information, and determining a second rotation axis and a second rotation angle based on the second initial vector position information and the second direction vector position information; The step of rotating at least one of the first molecular model and the second molecular model around the rotation axis by the rotation angle comprises: The first molecular model is rotated around the first rotation axis by the first rotation angle, and the second molecular model is rotated around the second rotation axis by the second rotation angle.

4. The method according to claim 3, characterized in that The step of rotating the first molecular model around the first rotation axis by the first rotation angle comprises: Based on the first rotation angle and the first rotation axis, generate a first rotation quaternion, and generate a first rotation matrix corresponding to the first rotation quaternion; obtaining first initial coordinates of a first molecular model; Based on the first initial coordinates and the first rotation matrix, generating first rotation coordinates of the first molecular model after rotating the first molecular model around the first rotation axis by the first rotation angle; regenerate a first molecular model based on the first rotation coordinates; The step of rotating the second molecular model around the second rotation axis by the second rotation angle comprises: Based on the second rotation angle and the second rotation axis, generate a second rotation quaternion, and generate a second rotation matrix corresponding to the second rotation quaternion; obtaining second initial coordinates of the second molecular model; Based on the second initial coordinates and the second rotation matrix, generating second rotation coordinates after the second molecular model is rotated around the second rotation axis by the second rotation angle; A second molecular model is regenerated based on the second rotation coordinates.

5. The method according to any one of claims 1 to 4, characterized in that: The obtaining of the first molecular model and the second molecular model comprises: Acquire a first molecular model and a second molecular model, and add the first molecular model and the second molecular model to a preset coordinate system, wherein the first molecular model includes a first intramolecular reference point, and the second molecular model includes a second intramolecular reference point, and the first intramolecular reference point and the second intramolecular reference point have the same positional feature; A position adjustment operation is performed on at least one of the first molecular model and the second molecular model, and after the position adjustment operation is performed, the first intra-molecular reference point coincides with the second intra-molecular reference point.

6. The method according to claim 5, characterized in that After performing the position adjustment operation on at least one of the first molecular model and the second molecular model, the method further includes: Obtaining a first random rotation quaternion and a second random rotation quaternion, and generating a first random rotation matrix corresponding to the first random rotation quaternion, and a second random rotation matrix corresponding to the second random rotation quaternion; A rotation operation is performed on the first molecular model after the position adjustment based on the first random rotation matrix, and a rotation operation is performed on the second molecular model after the position adjustment based on the second random rotation matrix.

7. A bimolecular structure construction device, characterized in that: The device comprises: An acquisition module, configured to acquire a first molecular model and a second molecular model, wherein the first molecular model includes a first target site, and the second molecular model includes a second target site; a determination module, configured to locate a first target vector with the first target site as an endpoint, and locate a second target vector with the second target site as an endpoint, wherein a direction line of the first target vector and a direction line of the second target vector intersect; a rotation module, configured to perform a rotation operation on at least one of the first molecular model and the second molecular model, wherein after performing the rotation operation, a first target vector of the first molecular model, a second target vector of the second molecular model, and a preset target axis are collinear, and the first target vector of the first molecular model is in opposite directions to the second target vector of the second molecular model; A moving module is used to move at least one of the first molecular model and the second molecular model along the target axis in a direction opposite to the target vector direction corresponding to itself, until there is no overlapping area between the first molecular model and the second molecular model, and the distance between the first target site and the second target site is within a preset site distance range, so as to obtain a target bimolecular structure model.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Molecular binding site detection method and device, electronic equipment and storage medium

    CN111243668A

  • Generation method and device of composite molecular structure, electronic equipment and storage medium

    CN116978448A

  • Method, device and equipment for generating compound structure and storage medium

    CN116994660A