Molecular dynamics force field parameter fitting workflow control system and control method thereof
By combining local and high-performance computing resources, the molecular dynamics force field parameter fitting workflow control system solves the problems of poor force field parameter performance and cumbersome calculation steps in molecular dynamics simulations, achieving efficient force field parameter acquisition and Large-scale computing efficiency is improved.
Patent Information
- Application Number
- CN202011294343.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-18
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-11-18
AI Technical Summary
In molecular dynamics simulation calculations, the existing technology has problems such as poor performance of force field parameters, missing parameters, and inconsistent tool distribution, resulting in cumbersome calculation steps and the inability to handle large-scale quantum chemical calculations.
Provides a molecular dynamics force field parameter fitting workflow control system that combines local computer resources and high-performance computing cluster resources to automatically generate task inputs, collect outputs, and continue running tasks at any interruption point to achieve on-demand resource allocation and Process control.
It improves the efficiency of the molecular force field fitting process, realizes modular and process-based acquisition of force field parameters, unifies result management, and improves large-scale computing efficiency.
Smart Images

Figure CN112447267B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of molecular dynamics simulation, and in particular relates to a molecular dynamics force field parameter fitting workflow control system and a control method thereof. Background Art
[0002] When performing molecular dynamics simulations, publicly available molecular force field parameters may perform poorly or be missing parameters. In this case, users are required to fit customized force field parameters for the molecules to be calculated. Scientists usually need to manually perform molecular fragmentation, quantum mechanical calculations, molecular dynamics force field fitting, parameter verification analysis, and other steps to finally obtain the required force field parameters. Existing methods have the following disadvantages:
[0003] (1) In the workflow of fitting force field parameters, the tools used in different steps are usually distributed in different software suites / ecosystems. At the same time, their input and output standards are not unified. Additional processing is required to string the steps together. At the same time, the results will be scattered in different storage locations, which is not conducive to subsequent use.
[0004] (2) As the number of molecules that need to be fitted continues to increase, computational tools based on local resources will not be able to handle large-scale quantum chemical calculations. Summary of the invention
[0005] In view of the above technical problems, the purpose of the present invention is to provide a molecular dynamics force field parameter fitting workflow control system and control method thereof, which realizes the on-demand resource allocation and process control system of complex molecular force field fitting workflow multi-step calculation tasks by mixing local computer resources and high-performance computing cluster resources. This system can automatically generate the input of the step-by-step task, collect the output, and continue to run the task at any interruption point, thereby improving the efficiency of the molecular force field fitting process.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] Molecular dynamics force field parameter fitting workflow control system, which runs on the local host and mainly includes the following modules:
[0008] The central control module is responsible for interacting with users, managing input and output, actually executing the workflow, and calling the other two modules on demand;
[0009] The local computing module is responsible for calling all computing codes or software running on the local machine, standardizing and modularizing their input and output, and embedding them into the workflow;
[0010] The cluster task module is responsible for calling the high-performance computing cluster to perform specific computing tasks.
[0011] Specific:
[0012] The specific working process of the central control module is as follows:
[0013] (1) Workflow template
[0014] The workflow control system has one or more built-in workflow templates customized for the actual needs of researchers, including the step-by-step subtask definition of the computational task, the input parameters of each step, and the output that needs to be collected and submitted to the next step;
[0015] (2) Input and output preparation
[0016] According to the definition of the workflow template, the initial input and intermediate output provided by the user are processed to generate the input of each step of the computing task, including the input of the cluster task;
[0017] (3) Obtaining results
[0018] When the step-by-step calculation task is completed, the corresponding output is obtained and stored locally after formatting.
[0019] The local computing module includes:
[0020] (1) Standardized interfaces for executing computational code;
[0021] (2) Standardized sandbox, used to call other computing software running on the local machine.
[0022] The specific workflow of the cluster task module is as follows:
[0023] (1) Task submission
[0024] When the central control module calls the execution cluster computing step, it submits the prepared input batches to the cluster and records the task index returned by the cluster;
[0025] (2) Status monitoring
[0026] Request the latest status of the task at regular intervals until all tasks are finished running;
[0027] (3) Results collection
[0028] Collect all successful task results and failed task logs and return them to the central control module.
[0029] The control method of the workflow control system based on the molecular dynamics force field parameter fitting comprises the following steps:
[0030] When the user enters instructions and specifies local input, the workflow control system starts running;
[0031] For the selected workflow template, the workflow control system executes each step in sequence: first, it checks whether the result of the task has been saved. If the result already exists, it executes the next step. If the result does not exist, it generates an input file based on the result of the previous task. It chooses to calculate locally or submit to the computing cluster according to the task type, and collects and saves the results after the calculation is completed.
[0032] Repeat the above process until the workflow reaches the last step.
[0033] Compared with the prior art, the present invention has the following beneficial effects:
[0034] (1) By integrating different tools and calculation methods in the same environment, WCS realizes the modularization and process-based molecular force field fitting, reducing the difficulty for researchers to obtain customized force field parameters.
[0035] (2) Collecting the force field parameter results of each step and even the final one in a unified location facilitates subsequent management and reuse.
[0036] (3) It realizes the connection between local and cluster computing resources, improving the efficiency of large-scale computing without wasting resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a control flow chart of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] like Figure 1 As shown, the control method of the molecular dynamics force field parameter fitting workflow control system comprises the following steps:
[0040] 1. User Input The user inputs a specified batch of molecules and specifies the template to use for "All Scan".
[0041] 2. Initialize the working directory. Save the molecules and parameters entered by the user in the working directory specified by the user.
[0042] 3. Step: Molecular Slicing
[0043] a) Prepare for the next step of calculation: format the molecule input by the user and prepare for slicing operation.
[0044] b) Judgment: This step has not been run yet and should be run locally.
[0045] c) Call the local slicing code, obtain the output, and save it in the working directory after formatting.
[0046] d) Judgment: The workflow is not finished, proceed to the next step.
[0047] 4. Step 4: Quantum Mechanical Calculations
[0048] a) Prepare for the next step of calculation: Get the formatted output of the previous step and split it into multiple subtasks of quantum mechanics calculations, and prepare the corresponding input files.
[0049] b) Judgment: This step has not been run yet and should be run on the cluster.
[0050] c) Submit tasks: Based on the input files, submit each subtask to the cluster for execution.
[0051] d) Wait for the task to run and query the task status: repeat this process to ensure that the task is completed and all subtasks are completed.
[0052] e) Download the calculation results from the cluster and save them in the working directory after formatting.
[0053] f) Judgment: The workflow is not finished, proceed to the next step.
[0054] 5. Step: Force Field Fitting
[0055] a) Prepare for the next step of calculation: merge the results of quantum mechanics calculations and generate input files for force field fitting.
[0056] b) Judgment: This step has not been run yet and should be run locally.
[0057] c) Call the local fitting code and obtain the output, format it and save it in the working directory.
[0058] d) Judgment: The workflow ends and the loop is exited.
[0059] 6. Output the final result and output the generated fitting force field file to the user.
Claims
1. A control method for a molecular dynamics force field parameter fitting workflow control system, characterized in that: The workflow control system runs on the local host and includes: a central control module, which is responsible for interacting with users, managing input and output, actually executing workflows, and calling the other two modules on demand; a local computing module, which is responsible for calling all computing codes or software running on the local machine, standardizing and modularizing their input and output, and embedding them into the workflow; a cluster task module, which is responsible for calling high-performance computing clusters to perform specific computing tasks; The specific workflow of the central control module is as follows: (1) Workflow template: The workflow control system has one or more built-in workflow templates customized for the actual needs of researchers, including the step-by-step subtask definition of the computing task, the input parameters of each step, and the output that needs to be collected and submitted to the next step; (2) Input and output preparation: According to the definition of the workflow template, the initial input and intermediate output provided by the user are processed to generate the input of each step of the computing task, including the input of the cluster task; (3) Result acquisition: When the step-by-step computing task is completed, the corresponding output is obtained and temporarily stored locally after formatting; The local computing module includes: (1) a standardized interface for executing computing code; (2) a standardized sandbox for calling other computing software running on the local computer; The specific workflow of the cluster task module is as follows: (1) Task submission: When the central control module calls the cluster computing step, the prepared input batch is submitted to the cluster and the task index returned by the cluster is recorded; (2) Status monitoring: Request the latest status of the task at regular intervals until all tasks are finished; (3) Result collection: Collect all successful task results and failed task logs and return them to the central control module; The control method comprises the following steps: (1) User input The user inputs a specified batch of molecules and specifies the use of the "all scan" template; (2) Initialize the working directory Save the molecules and parameters entered by the user in the working directory specified by the user; (3) Step: Molecular Slicing a) Prepare for the next step of calculation: format the molecule input by the user and prepare for slicing operation; b) Judgment: This step has not been run yet and should be run locally; c) Call the local slicing code, obtain the output, and save it in the working directory after formatting; d) Judgment: The workflow is not finished, proceed to the next step; (4) Step: Quantum mechanical calculation a) Prepare for the next step of calculation: Get the formatted output of the previous step, split it into multiple subtasks of quantum mechanics calculations, and prepare the corresponding input files; b) Judgment: This step has not been run yet and should be run on the cluster; c) Submit tasks: Submit each subtask to the cluster for execution based on the input file; d) Wait for the task to run and query the task status: repeat this process to ensure that the task is completed and all subtasks are completed; e) Download the calculation results from the cluster and save them in the working directory after formatting; f) Judgment: The workflow is not finished, proceed to the next step; (5) Step: force field fitting a) Prepare for the next step of calculation: merge the results of quantum mechanical calculations and generate input files for force field fitting; b) Judgment: This step has not been run yet and should be run locally; c) Call the local fitting code, obtain the output, and save it in the working directory after formatting; d) Judgment: The workflow ends and the loop is exited; (6) Output the final result; Output the generated fitting force field file to the user.
