mddatasetbuilder

A script to build reference datasets for training neural network potentials from given LAMMPS trajectories.

https://github.com/tongzhugroup/mddatasetbuilder

Science Score: 57.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 19 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.5%) to scientific vocabulary

Keywords

chemistry dataset md molecular-dynamics neural-network python
Last synced: 6 months ago · JSON representation ·

Repository

A script to build reference datasets for training neural network potentials from given LAMMPS trajectories.

Basic Info
Statistics
  • Stars: 40
  • Watchers: 3
  • Forks: 12
  • Open Issues: 5
  • Releases: 45
Topics
chemistry dataset md molecular-dynamics neural-network python
Created over 7 years ago · Last pushed 6 months ago
Metadata Files
Readme License Citation

docs/README.md

MDDatasetBuilder

DOI:10.1038/s41467-020-19497-z Citations python version PyPI codecov Research Group

MDDatasetBuilder is a script to construct reference datasets for the training of neural network potentials from given LAMMPS trajectories.

Complex reaction processes in combustion unraveled by neural network-based molecular dynamics simulation, Nature Communications, 11, 5713 (2020), DOI: 10.1038/s41467-020-19497-z

Installation

MDDatasetBuilder can be installed with pip:

pip install mddatasetbuilder

The installation process should be very quick, taking only a few minutes on a “normal” desktop computer.

Usage

Simple example

A LAMMPS dump file should be prepared. A LAMMPS bond file can be added for the addition information.

bash datasetbuilder -d dump.ch4 -b bonds.reaxc.ch4_new -a C H O -n ch4 -i 25

Here, dump.ch4 is the name of the dump file. bonds.reaxc.ch4_new is the name of the bond file, which is optional. C H O is the element in the trajectory. ch4 is the name of the dataset. 25 means the time step interval and the default value is 1.

Then you can generate Gaussian input files for each structure in the dataset and calculate the potential energy & atomic forces (assume the Gaussian 16 has already been installed.):

bash qmcalc -d dataset_ch4_GJf/000 qmcalc -d dataset_ch4_GJf/001

Next, prepare a DeePMD dataset and use DeePMD-kit to train a NN model.

bash preparedeepmd -p dataset_ch4_GJf cd train && dp train train.json

The runtime of the software depends on the amount of data. It is more suited to running on a server rather than desktop computer.

DP-GEN

DOI:10.1021/acs.energyfuels.0c03211 Citations

In a follow-up work, the MDDatasetBuilder package has been integrated with DP-GEN software as a part of the DP-GEN workflow: bash dpgen init_reaction reaction.json machine.json See DP-GEN documentation for details. Arguments of reaction.json can be found here. machine.json is described here, where reaxff_command is the LAMMPS command (lmp), build_command is the MDDatasetbuilder command (datasetbuilder), and fp_command is the Gaussian 16 command (g16 < input || :).

The genereated data can be used to continue DP-GEN concurrent learning workflow. Read Energy & Fuels, 2021, 35 (1), 762–769 for details.

Owner

  • Name: Tong Zhu Research Group
  • Login: tongzhugroup
  • Kind: organization
  • Location: Shanghai

East China Normal University

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Zeng"
  given-names: "Jinzhe"
  orcid: "https://orcid.org/0000-0002-1515-8172"
title: "MDDatasetBuilder"
version: 1.3.1
date-released: 2021-03-29
url: "https://github.com/tongzhugroup/mddatasetbuilder"
preferred-citation:
  type: article
  authors:
  - family-names: "Zeng"
    given-names: "Jinzhe"
    orcid: "https://orcid.org/0000-0002-1515-8172"
  - family-names: "Cao"
    given-names: "Liqun"
    orcid: "https://orcid.org/0000-0003-2943-7057"
  - family-names: "Xu"
    given-names: "Mingyuan"
  - family-names: "Zhu"
    given-names: "Tong"
    orcid: "https://orcid.org/0000-0001-7472-3736"
  - family-names: "Zhang"
    given-names: "John Z. H."
    orcid: "https://orcid.org/0000-0003-4612-1863"
  doi: "10.1038/s41467-020-19497-z"
  journal: "Nature Communications"
  month: 11
  start: 5713 # First page number
  end: 5713 # Last page number
  title: "Complex reaction processes in combustion unraveled by neural network-based molecular dynamics simulation"
  issue: 1
  volume: 11
  year: 2020

GitHub Events

Total
  • Issues event: 1
  • Watch event: 4
  • Delete event: 6
  • Issue comment event: 5
  • Push event: 38
  • Pull request review event: 2
  • Pull request event: 16
  • Create event: 6
Last Year
  • Issues event: 1
  • Watch event: 4
  • Delete event: 6
  • Issue comment event: 5
  • Push event: 38
  • Pull request review event: 2
  • Pull request event: 16
  • Create event: 6

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 32
  • Total pull requests: 167
  • Average time to close issues: 20 days
  • Average time to close pull requests: 5 days
  • Total issue authors: 6
  • Total pull request authors: 6
  • Average comments per issue: 1.06
  • Average comments per pull request: 1.8
  • Merged pull requests: 143
  • Bot issues: 19
  • Bot pull requests: 44
Past Year
  • Issues: 1
  • Pull requests: 18
  • Average time to close issues: N/A
  • Average time to close pull requests: 14 days
  • Issue authors: 1
  • Pull request authors: 3
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.44
  • Merged pull requests: 9
  • Bot issues: 0
  • Bot pull requests: 13
Top Authors
Issue Authors
  • weekly-digest[bot] (19)
  • njzjz (9)
  • notbws (1)
  • PenguinW1105 (1)
  • Eipgen (1)
  • guojunhao-art (1)
  • pre-commit-ci[bot] (1)
Pull Request Authors
  • njzjz (127)
  • pre-commit-ci[bot] (23)
  • dependabot[bot] (23)
  • njzjz-bot (12)
  • restyled-io[bot] (11)
  • stickler-ci[bot] (1)
Top Labels
Issue Labels
weekly-digest (19) enhancement (5) pr-merged (3) waiting-for-user-information (3) done (2) wontfix (1) airbrake (1) bug (1)
Pull Request Labels
PR: merged (36) dependencies (23) size/XS (23) squash when passing (20) size/S (10) size/M (9) PR: unreviewed (8) enhancement (7) size/L (3) size/XL (2) github_actions (2) bug (1) PR: draft (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 128 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 29
  • Total maintainers: 1
pypi.org: mddatasetbuilder

A script to generate molecular dynamics (MD) datasets for machine learning from given LAMMPS trajectories automatically.

  • Homepage: https://github.com/tongzhugroup/mddatasetbuilder
  • Documentation: https://mddatasetbuilder.njzjz.win/
  • License: GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
  • Latest release: 1.3.10
    published over 1 year ago
  • Versions: 29
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 128 Last month
Rankings
Dependent packages count: 10.1%
Average: 17.4%
Downloads: 20.5%
Dependent repos count: 21.6%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/push.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • codecov/codecov-action v3 composite
.github/workflows/release.yml actions
  • actions/checkout v3 composite
  • actions/download-artifact v3 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
  • pypa/gh-action-pypi-publish master composite
pyproject.toml pypi
  • ase *
  • coloredlogs *
  • dpdata >=0.1.2
  • gaussianrunner >=1.0.20
  • lz4 *
  • numpy *
  • openbabel-wheel >=3.1.0.0
  • scikit-learn *
  • tqdm >=4.9.0
setup.py pypi