Method for constructing molecular training set, training method and related device
By performing skeleton analysis and clustering on the molecular library, and selecting representative molecules to construct a training set, the problem of large calculations of the molecular force field model is solved, efficient force field fitting is achieved, and the consumption of computing resources and time is reduced.
Patent Information
- Application Number
- CN202111250091.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-10-26
AI Technical Summary
Existing molecular force field models require a large amount of calculations when simulating complex biological systems, resulting in expensive computing resources and time consumption. Moreover, the accuracy of academic force fields is not high, and general force fields require a large number of training set molecules and computing resources.
By obtaining the target molecule library, performing skeleton analysis and clustering, and selecting representative molecules to construct a training set, the computing resources and time consumption in the general force field fitting process are reduced.
It is possible to cover a large chemical space with a small number of molecules, reducing the consumption of computing resources and time, and improving the quality and efficiency of force field fitting.
Smart Images

Figure CN114171126B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of molecular force field technology, and in particular to a method for constructing a molecular training set, a training method and related devices. Background Art
[0002] The use of molecular simulation to predict the physicochemical properties of drug molecules, such as binding free energy, membrane permeability, and solubility, has become a powerful tool in modern drug design. Due to the rigorous physical model behind it and the ability to simulate complex biological systems, the high-precision prediction capabilities brought by molecular simulation have attracted more and more people's interest. In the field of computer-aided drug design, whether it is ligand-based drug design or structure-based drug design, molecular simulation provides a complete solution to accelerate the drug discovery process.
[0003] The inventors of the present application have found in the long-term research and development process that the simulation of complex molecular systems cannot be separated from high-precision and reliable molecular force fields. The simulation of biological molecular systems often requires the simulation of tens of thousands of atoms, and the simulation time scale needs to be from nanoseconds to seconds. Even when simulating the smallest biological system, pure quantum mechanics has high accuracy, but it is difficult to cope with the extremely expensive computational workload. Therefore, the development of molecular force fields is an important goal of computational biology and computational chemistry. Molecular force fields balance the contradiction between computational accuracy and high computational workload through some empirical equations, such as the oscillator model to simulate the expansion and contraction of bonds and the point charge model to simulate electrostatic interactions. These empirical equations rely on many empirical parameters. By adjusting these empirical parameters, we can accurately describe many physical and chemical properties of biological molecular systems. Modern high-precision general force fields, such as Schrödinger's OPLS3e, often require a large number of training set molecules and computing resources to fit the force field, which consumes a lot of computing resources and time. Other academic force fields, such as GAFF (General Amber Force Field) and CHARMM (Chemistry at HARvard Macromolecular Mechanics), although they have fewer molecules in the training set, cover a small chemical space and have low accuracy. Summary of the invention
[0004] The present application provides a method for constructing a molecular training set, a training method and related devices, which can maximize the chemical space by covering a small number of molecules by selecting more representative molecules, thereby reducing the consumption of a large amount of computing resources and time in the general force field fitting process.
[0005] In order to solve the above technical problems, a technical solution adopted in this application is: to provide a method for constructing a molecular training set, comprising:
[0006] A target molecule library is obtained, wherein the target molecule library contains a plurality of target molecules; a skeleton analysis is performed on each target molecule in the target molecule library, and the target molecules with the same skeleton are clustered; and at least one target molecule is selected from each skeleton to construct the molecule training set.
[0007] In order to solve the above technical problems, another technical solution adopted in the present application is: to provide a molecular training set, wherein the molecular training set is obtained by adopting the molecular training set construction method.
[0008] In order to solve the above technical problems, another technical solution adopted in the present application is: to provide a general force field model training method, and to train the general force field model using the molecular training set.
[0009] In order to solve the above technical problems, another technical solution adopted in the present application is: to provide a universal force field model, wherein the universal force field model is obtained by model training using the universal force field model training method.
[0010] To solve the above technical problems, another technical solution adopted in the present application is: to provide a device for constructing a molecular training set, comprising: an acquisition module, used to acquire a target molecule library, wherein the target molecule library contains multiple target molecules; a processing module, connected to the acquisition module, used to perform skeleton analysis on each target molecule in the target molecule library, and cluster the target molecules with the same skeleton; a selection module, connected to the processing module, used to select at least one target molecule from each of the skeletons to construct the molecular training set.
[0011] To solve the above technical problems, another technical solution adopted in the present application is: to provide an electronic device, comprising a memory and a processor coupled to each other, wherein the memory stores program instructions, and the processor is used to execute the program instructions to implement the method for constructing a molecular training set described in any of the above embodiments, or the general force field model training method.
[0012] In order to solve the above technical problems, another technical solution adopted in the present application is: providing a storage device storing program instructions that can be executed by a processor, wherein the program instructions are used to implement the method for constructing a molecular training set described in any of the above embodiments, or the general force field model training method.
[0013] Different from the prior art, the beneficial effect of the present application is that after obtaining the target molecule library, the present application will perform skeleton analysis on each molecule in the target molecule library, and will cluster the molecules with the same skeleton; subsequently, some molecules can be selected from each skeleton to construct a training set. The above construction method can select more representative molecules from the target molecule library to form a training set, so as to achieve the purpose of covering as large a chemical space as possible with a small number of molecules, and reduce the consumption of a large amount of computing resources and time in the general force field fitting process. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0015] Figure 1 It is a schematic diagram of a flow chart of an implementation method of a molecular training set construction method of the present application;
[0016] Figure 2 yes Figure 1 A schematic flow chart of an implementation method of updating the molecular training set after step S103;
[0017] Figure 3 It is a schematic diagram of the framework structure of an embodiment of a device for constructing a molecular training set of the present application;
[0018] Figure 4 It is a structural schematic diagram of an embodiment of the electronic device of the present application;
[0019] Figure 5 It is a structural diagram of an implementation method of a storage device of the present application. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0021] See also Figure 1 , Figure 1 : is a schematic diagram of a flow chart of an embodiment of a method for constructing a molecular training set of the present application, the method comprising:
[0022] Step S101: Acquire a target molecule library.
[0023] Specifically, in this embodiment, the specific implementation process of the above step S101 may include: randomly selecting some compound molecules from the network database to construct a target molecule library, and the target molecule library contains multiple target molecules. Optionally, in this embodiment, the network database can be other public compound libraries such as ChEMBL, eMolecule, PubChem, etc., and the number of target molecules selected as the target molecule library is less than the total number of molecules in the public compound library.
[0024] Further, in order to make the target molecules contained in the target molecule library contain as many atomic types as possible, the above process of randomly selecting some compound molecules from the network database to construct the target molecule library includes: determining the atomic type required by the current general force field according to the preset chemical functional group; selecting some compound molecules from the network database according to the atomic type to construct the target molecule library. Among them, the atomic type is a description of a certain element in a certain chemical environment, and the atomic type can be jointly described and defined by the defined central atom and other atoms with bonding relationships around it. For example, common chemical functional groups include: alkanes, alkenes, alkynes, aromatic groups, hydroxyl groups, carbonyl groups, ethers, carboxyl groups, thiols, thioethers, sulfonyl groups, amino groups, imines, cyano groups, etc. Taking oxygen atoms as an example, their atomic types include carboxyl oxygen atoms, carbonyl oxygen atoms, hydroxyl oxygen atoms, ether bond oxygen atoms, etc. Among them, one molecule can include one or more atomic types.
[0025] Optionally, the target molecule is selected based on the atom type, and the target molecule can be selected based on the number of atom types contained in the molecule. For example, molecules containing a preset number of atom types or more can be selected from a network database as target molecules to construct a target molecule library, that is, each target molecule in the target molecule library contains at least a preset number of atom types. The preset number can be a fixed value, such as 2, 3, 4 or other values; the preset number can also be adaptively adjusted according to actual application requirements.
[0026] Optionally, the molecules in the network database can be divided into multiple categories according to the atom type, and some molecules are randomly selected from each category to construct a target molecule library. For example, 5, 10, etc. molecules can be randomly selected from each category to construct a target molecule library. Since a molecule may include multiple atom types, the molecule can be classified into multiple categories at this time, which may cause repeated selection. Further, in order to reduce the molecular repetition rate in the target molecule library, when molecule a has been selected under category A, and category B also contains molecule a and other molecules, the molecules other than molecule a under category B are selected and put into the target molecule library; if molecule a has been selected under category A, and category B only contains molecule a, then the a molecule in category B is also put into the target molecule library.
[0027] Step S102: performing skeleton analysis on each target molecule in the target molecule library, and clustering target molecules with the same skeleton.
[0028] Among them, the molecular skeleton can be regarded as a collection of atoms of the ring structure and the chain structure connecting the rings in the molecule. For example, when the molecule is a single ring structure, the skeleton of the molecule is composed of atoms on the ring structure; when the molecule is a double ring structure, the skeleton of the molecule is composed of atoms on two ring structures and atoms connecting the two rings; when the molecule contains more than two ring structures, a skeleton composed of a single ring structure, a skeleton composed of a double ring structure, a skeleton composed of a three-ring structure, or a skeleton composed of all ring structures, etc. can be extracted from the molecule according to the preset skeleton acquisition strategy.
[0029] Different molecules can have the same skeleton. The same skeleton means that the skeleton structure is the same, that is, the set of atoms constituting the skeleton is the same.
[0030] Specifically, the specific implementation process of the above step S102 may be:
[0031] The open source chemical information software ScaffoldGraph is called, and the scaffoldgraph.ScaffoldNetwork.from_smiles_file is used to perform skeleton analysis on the target molecule. This method clusters the target molecule into a molecular skeleton network, which includes two types of nodes. One is the skeleton node, which contains the basic skeleton information of the target molecule and can be obtained through the ScaffoldNetwork.get_scaffold_nodes method. The other is the molecule node, which clusters all the target molecules in the target molecule library into the corresponding skeleton node according to the skeleton they contain, which can be obtained through the ScaffoldNetwork.get_molecule_nodes method.
[0032] Among them, ScaffoldGraph software can be replaced by Rdkit, Scaffold Network Generator (SNG) or Scaffold Hunter software. ScaffoldGraph supports smiles (Simplified Molecular Input Line Entry System) format and sdf files; Scaffold Hunter supports CSV files, sdf files and SQL databases, as well as other user-defined ways to input molecules; SNG supports smiles or sdf files; Rdkit supports smiles, sdf, mol, mol2, pdb and other formats.
[0033] In addition, if the software selected in step S102 cannot support the format of the target molecule obtained in step S101, the above step S102 also includes: converting the target molecule in the target molecule library into a corresponding format supported by the software selected in step S102. For example, using the Rdkit tool, the three-dimensional structure of the molecule in the database is converted into the smiles format, which simplifies the description of the molecular structure and supports the corresponding software. If the molecule downloaded from CheMBL is an sdf file, if the software that supports the sdf format is used, it can be used directly without conversion.
[0034] In addition, before the above step S102, an identity may be set for each target molecule in the target molecule library, wherein the identity of different target molecules is different. For example, the 3D chemical structure is converted into InChiKey using the Inchi Trust tool, and the identity of the molecule is used to distinguish it from other target molecules. The identity of the molecule can be directly stored in the subsequent storage process to reduce the storage capacity. Optionally, other methods can also be used to distinguish different target molecules, such as directly using numbers and / or letters for numbering to distinguish.
[0035] Step S103: selecting at least one target molecule from each framework to construct a molecular training set.
[0036] Specifically, the specific implementation process of the above step S103 can be: after the skeleton analysis step is completed, all target molecules in the target molecule library are assigned to corresponding skeleton nodes according to the skeletons they contain. Therefore, a skeleton node will contain multiple target molecules, and some target molecules are randomly selected from the skeleton nodes to construct a molecular training set. Among them, the number of selected target molecules can be based on the actual needs of the molecular training set, and one or more target molecules are selected from the skeleton nodes to construct a molecular training set.
[0037] The above construction method realizes the establishment of a target molecule library and the selection of more representative molecules from the target molecule library to form a molecular training set, thereby achieving the purpose of covering as large a chemical space as possible with a small number of molecules, and reducing the consumption of a large amount of computing resources and time in the general force field fitting process.
[0038] See also Figure 2 , Figure 2 yes Figure 1 A schematic flow chart of an implementation method of updating the molecular training set after step S103, the method comprising:
[0039] Step S201: obtaining a first force field parameter set of all target molecules contained in the target molecule library, and obtaining a second force field parameter set of all target molecules contained in the molecule training set.
[0040] Specifically, the force field parameter collection consists of multiple force field parameter items, and the force field parameters include at least one of dihedral angle, bond length and bond angle. The force field parameters are obtained by defining atomic types and then analyzing the bond length and / or bond angle and / or dihedral angle composed of the atomic type corresponding to each atom in the molecule.
[0041] In addition, in this embodiment, the molecules included in the molecular training set belong to the target molecule library, so the second force field parameter collection is the same as the first force field parameter collection, or the second force field parameter collection is different from the first force field parameter collection, and the second force field parameter collection is a subset of the first force field parameter collection.
[0042] Step S202: obtaining a difference force field parameter set between the first force field parameter set and the second force field parameter set.
[0043] Specifically, the second force field parameter collection in step S201 is compared with the first force field parameter collection to obtain a difference force field parameter collection between the second force field parameter collection and the first force field parameter collection, wherein the difference force field parameter collection includes at least one difference force field parameter.
[0044] Step S203: for each differential force field parameter, a target molecule having the differential force field parameter is obtained from the target molecule library and added to the molecule training set to update the molecule training set.
[0045] Among them, before the step of obtaining target molecules with differential force field parameters from the target molecule library and adding them to the molecular training set for each differential force field parameter, it also includes: for each first force field parameter, obtaining at least one target molecule with the first force field parameter from the target molecule library to form a molecule collection.
[0046] Specifically, for each difference force field parameter, a molecule collection corresponding to the difference force field parameter is obtained, and some target molecules are randomly selected from the molecule collection and added to the molecule training set. The number of the randomly selected target molecules can be selected as one or more target molecules according to the actual general force field fitting requirements.
[0047] The method of steps S201 to S203 above further updates and improves the molecular training set constructed in steps S101 to S103 above, and obtains a representative molecular training set that is ultimately used for general force field fitting. Different from the prior art, the representative molecular training set avoids the noise caused by a large amount of redundant data in the general force field fitting process, improves the quality of fitting, and also reduces the consumption of computing resources and computing time.
[0048] For example, suppose the target molecule library includes four molecules: benzene, toluene, ethylbenzene and phenol. According to the atom type definition, the first force field parameter set of the target molecule library includes: c_3a / c_3a / c_4 / h_1, c_3a / c_3a / c_4 / c_4, c_3a / c_3a / o_2 / h_1; suppose there is only one ethylbenzene molecule in the molecular training set after step S103, then the second force field parameter set of the molecular training set includes: c_3a / c_3a / c_4 / h_1, c_3a / c_3a / c_4 / c_4. After comparison, it is found that the second force field parameter set lacks the force field parameter c_3a / c_3a / o_2 / h_1 compared to the first force field parameter set, and this parameter item is the difference force field parameter. In order to make the representative molecule training set cover as large a chemical space as possible with a small number of molecules, it is necessary to select molecules containing differential force field parameter items from the target molecule library and put them into the representative molecule training set. The phenol molecule in the target molecule library contains the above differential force field parameter items, so the phenol molecule needs to be put into the representative molecule training set as well, and finally a representative molecule training set for general force field fitting is obtained, which includes ethylbenzene molecules and phenol molecules.
[0049] In an application scenario, through Figure 1 and Figure 2 The representative molecule training set is obtained by the steps. In order to verify the fitting effect of the representative molecule training set, please refer to Table 1 below. Table 1 is a comparison table of the fitting effect of the representative molecule training set and the fitting effect of the target molecule library.
[0050] Specifically, the universal force field was fitted on the target molecule library and the representative molecule training set, and then verified on the same test set. Please refer to Table 1 below. The target molecule library has 100,000 molecules, while the representative molecule training set only uses 41,775 molecules. In terms of fitting time, the fitting time using the representative molecule training set is much shorter than the fitting time using the target molecule library. From the performance on the verification set, the overall QM / MM energy deviation of the universal force field fitted using the representative molecule training set is E dev Only 0.99 kcal / mol, better than the 1.02 kcal / mol of the target molecule library. The QM / MM RMSE on the test set also shows that although only 40% of the molecules are used to train the universal force field, the RMSE of 1.21 kcal / mol is better than the 1.23 kcal / mol of the entire target molecule library. Finally, from the QM / MM correlation R 2In general, the method for constructing a molecular training set for fitting a universal force field according to the present invention can greatly reduce the number of molecules that need to be trained, thereby reducing the fitting calculation overhead, while still ensuring the fitting effect of the force field.
[0051] Table 1: Comparison of the fitting effect of the representative molecule training set and the fitting effect of the target molecule library
[0052]
[0053] The present invention also proposes a molecular training set, which is obtained by using the molecular training set construction method proposed in the present application. The molecular training set can be used to train a general force field model.
[0054] The present invention also proposes a general force field model training method, which uses the molecular training set proposed in this application to train the general force field model.
[0055] The present invention also proposes a universal force field model, which is obtained by training the model using the universal force field model training method proposed in this application.
[0056] See also Figure 3 , Figure 3 This is a schematic diagram of the framework structure of an embodiment of a molecular training set construction device of the present application, and the molecular training set construction device includes an acquisition module 11, a processing module 12 and a selection module 13. Among them, the acquisition module 11 is used to obtain a target molecule library, and the target molecule library contains multiple target molecules; the processing module 12 is connected to the acquisition module 11, and is used to perform skeleton analysis on each target molecule in the target molecule library, and cluster the target molecules with the same skeleton; the selection module 13 is connected to the processing module 12, and is used to select at least one target molecule from each skeleton to construct a molecular training set.
[0057] Specifically, the target molecule library is constructed by randomly selecting some compound molecules from the network database by the acquisition module 11, wherein the process of randomly selecting some compound molecules may include: determining the atom type required by the current general force field according to the preset chemical functional groups; and selecting some compound molecules from the network database according to the atom type to construct the target molecule library.
[0058] Specifically, before the step of performing skeleton analysis on each target molecule in the target molecule library, the processing module 12 further includes: setting an identity for each target molecule in the target molecule library, wherein the identity of different target molecules is different. Optionally, before performing skeleton analysis on the target molecules, the processing module 12 may also perform format conversion on at least part of the target molecules in the target molecule library.
[0059] In one embodiment, please refer to Figure 3 , the molecular training set construction device may further include an updating module 15, which is connected to the acquisition module 11 and the selection module 13. The updating module 15 completes the process of updating and improving the molecular training set constructed by the selection module 13. The specific steps include: obtaining a first force field parameter collection of all target molecules contained in the target molecule library under the atom type definition of the current general force field, and obtaining a second force field parameter collection of all target molecules contained in the molecular training set; comparing the second force field parameter collection with the first force field parameter collection, obtaining a difference force field parameter collection between the second force field parameter collection and the first force field parameter collection, and the difference force field parameter collection contains at least one difference force field parameter; for each difference force field parameter, obtaining a target molecule with a difference force field parameter from the target molecule library and adding it to the molecular training set to update the molecular training set. Among them, the force field parameters in the first force field parameter collection and the second force field parameter collection include at least one of dihedral angle, bond length and bond angle, the first force field parameter collection includes multiple first force field parameters, and the difference force field parameter belongs to the first force field parameter collection.
[0060] Specifically, before the step of updating the molecular training set, the updating module 15 further includes, for each first force field parameter, obtaining at least one target molecule having the first force field parameter from the target molecule library to form a molecule collection. The step of updating the molecular training set by the updating module 15 further includes, for each difference force field parameter, obtaining a molecule collection corresponding to the difference force field parameter, and selecting a target molecule from the molecule collection to add to the molecular training set.
[0061] See also Figure 4 , Figure 4This is a schematic diagram of the structure of an embodiment of an electronic device of the present application, and the electronic device includes: a memory 30 and a processor 20 coupled to each other, and the memory 30 stores program instructions, and the processor 20 is used to execute the program instructions to implement the steps in any of the above-mentioned methods for constructing a molecular training set, or the processor 20 is used to execute the program instructions to implement the above-mentioned general force field model training method. Specifically, the electronic device includes but is not limited to: a desktop computer, a laptop computer, a tablet computer, a server, etc., which are not limited here. In addition, the processor 20 can also be called a CPU (Center Processing Unit). The processor 20 may be an integrated circuit chip with signal processing capabilities. The processor 20 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 20 can be implemented by an integrated circuit chip.
[0062] See also Figure 5 , Figure 5 This is a structural diagram of an embodiment of a storage device of the present application. The storage device 50 stores program instructions 60 that can be executed by a processor. The program instructions 60 are used to implement the steps in any of the above-mentioned methods for constructing a molecular training set, or the above-mentioned general force field model training method.
[0063] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0064] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0065] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0066] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0067] The above description is only an implementation method of the present application and does not limit the scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the protection scope of the present application.
Claims
1. A method for constructing a molecular training set, characterized in that: include: Acquire a target molecule library, wherein the target molecule library contains a plurality of target molecules; Performing skeleton analysis on each target molecule in the target molecule library, and clustering the target molecules with the same skeleton; Select at least one target molecule from each of the skeletons to construct the molecular training set; Among them, after the step of selecting at least one target molecule from each of the skeletons to construct the molecular training set, the method also includes: obtaining a first force field parameter collection of all target molecules contained in the target molecule library under the atomic type definition of the current general force field, and obtaining a second force field parameter collection of all target molecules contained in the molecular training set; comparing the second force field parameter collection with the first force field parameter collection to obtain a difference force field parameter collection between the second force field parameter collection and the first force field parameter collection, wherein the difference force field parameter collection contains at least one difference force field parameter; for each difference force field parameter, obtaining a target molecule with the difference force field parameter from the target molecule library and adding it to the molecular training set to update the molecular training set.
2. The method according to claim 1, characterized in that The force field parameters in the first force field parameter set and the second force field parameter set include at least one of a dihedral angle, a bond length and a bond angle.
3. The method according to claim 1, characterized in that The first force field parameter collection includes a plurality of first force field parameters, and the difference force field parameter belongs to the first force field parameter collection; Before the step of obtaining, for each of the differential force field parameters, a target molecule having the differential force field parameter from the target molecule library and adding the target molecule to the molecule training set to update the molecule training set, the method further comprises: For each of the first force field parameters, obtaining at least one target molecule having the first force field parameters from the target molecule library to form a molecule collection; The step of acquiring, for each of the differential force field parameters, a target molecule having the differential force field parameter from the target molecule library and adding the target molecule to the molecule training set to update the molecule training set comprises: For each of the difference force field parameters, a molecule collection corresponding to the difference force field parameter is obtained, and at least one target molecule is selected from the molecule collection and added to the molecule training set.
4. The method according to claim 1, characterized in that: Before the step of performing skeleton analysis on each target molecule in the target molecule library, the method further comprises: Performing format conversion on at least part of the target molecules in the target molecule library.
5. The method according to claim 1, characterized in that Before the step of performing skeleton analysis on each target molecule in the target molecule library, the method further comprises: An identity is set for each target molecule in the target molecule library, wherein different target molecules have different identity.
6. The method according to any one of claims 1 to 5, characterized in that: The step of obtaining the target molecule library comprises: Some compound molecules are randomly selected from the network database to construct the target molecule library.
7. The method according to claim 6, characterized in that The step of randomly selecting some compound molecules from the network database to construct a target molecule library comprises: Determine the atom types required by the current general force field based on the preset chemical functional groups; According to the atom types, some compound molecules are selected from the network database to construct a target molecule library.
8. A general force field model training method, characterized in that: The general force field model training method uses a molecular training set obtained by the molecular training set construction method described in any one of claims 1 to 7 to train the general force field model.
9. A device for constructing a molecular training set, characterized in that: include: An acquisition module, used to acquire a target molecule library, wherein the target molecule library contains a plurality of target molecules; A processing module, connected to the acquisition module, for performing skeleton analysis on each target molecule in the target molecule library and clustering the target molecules with the same skeleton; A selection module, connected to the processing module, for selecting at least one target molecule from each of the skeletons to construct the molecule training set; An updating module, connected to the acquisition module and the selection module, for acquiring a first force field parameter set of all target molecules contained in the target molecule library under the atom type definition of the current general force field, and acquiring a second force field parameter set of all target molecules contained in the molecule training set; The second force field parameter collection is compared with the first force field parameter collection to obtain a difference force field parameter collection between the second force field parameter collection and the first force field parameter collection, wherein the difference force field parameter collection includes at least one difference force field parameter; for each of the difference force field parameters, a target molecule having the difference force field parameter is obtained from the target molecule library and added to the molecule training set to update the molecule training set.
10. An electronic device, characterized in that: It comprises a memory and a processor coupled to each other, wherein the memory stores program instructions, and the processor is used to execute the program instructions to implement the method for constructing a molecular training set as described in any one of claims 1 to 7, or the general force field model training method as described in claim 8.
11. A storage device, characterized in that: Program instructions that can be executed by a processor are stored, and the program instructions are used to implement the method for constructing a molecular training set as described in any one of claims 1 to 7, or the general force field model training method as described in claim 8.
