Skip to main content

Some useful tools related to Amber and DP.

Project description

dpamber

Some useful tools related to Amber and DP.

Installation

pip install dpamber

Tools

corr: generating data for DPRc models

DOI:10.1021/acs.jctc.1c00201 Citations

corr tool generates DeePMD-kit training data for DPRc from AMBER sander low-level QM/MM data and high-level data. For details of DPRc, read the DPRc paper.

Before using this tool, one need to prepare low-level and high-level QM/MM data:

$$ E_\text{hl}(\mathbf R)=E_\text{hl,QM}(\mathbf R)+E_\text{hl,QM/MM}(\mathbf R)+E_\text{MM}(\mathbf R) $$

$$ E_\text{ll}(\mathbf R)=E_\text{ll,QM}(\mathbf R)+E_\text{ll,QM/MM}(\mathbf R)+E_\text{MM}(\mathbf R) $$

Low-level and high-level data should use the same coordinate and the same MM method, but different QM methods. So, the correction energy for training will be

$$ \Delta E (\mathbf R) = E_\text{hl}(\mathbf R) - E_\text{ll}(\mathbf R) = (E_\text{hl,QM}(\mathbf R) - E_\text{ll,QM}(\mathbf R)) + (E_\text{hl,QM/MM}(\mathbf R) - E_\text{ll,QM/MM}(\mathbf R)) $$

An example of the command is

dpamber corr --cutoff 6. --qm_region ":1" --parm7_file some_param.param7 --nc some_coord.nc --hl high_level --ll low_level --out dataset

where --cutoff takes cutoff radius of the QM/MM interaction for training. --qm_region takes AMBER mask format for the QM region. --parm7_file and --nc take the PARM7 file and the trajectory (NetCDF) file, respectively. --ll and --hl are the prefixes of low-level and high-level files, including the mdout file (.mdout), the mden file (.mden) and the mdfrc file (.mdfrc). The output dataset directory should be put in --out.

See details from dpamber corr -h.

devi: calculate model deviation

devi can be used to calculate the model deviation of a given trajectory. You need to install DeePMD-kit using

pip install dpamber[dpgpu]

See dpamber devi -h for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dpamber-0.3.2.tar.gz (294.9 kB view details)

Uploaded Source

Built Distribution

dpamber-0.3.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file dpamber-0.3.2.tar.gz.

File metadata

  • Download URL: dpamber-0.3.2.tar.gz
  • Upload date:
  • Size: 294.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for dpamber-0.3.2.tar.gz
Algorithm Hash digest
SHA256 1d50aca643bafdc76cf2a1b0c7de84dce2c3d6fbaf3aa18b6dc9c64a19dd1065
MD5 0b864ad91ccae9c91e6731ba24433070
BLAKE2b-256 1037c0cce3290ff38f2bbf9d7b36137e11d53deeb3912832a64c99471db6e3e6

See more details on using hashes here.

File details

Details for the file dpamber-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: dpamber-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for dpamber-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e553850a3047669b53dafd3ebfeba587461a034e67feed34370ad236064734d3
MD5 86a9de212dc4e5ff6689fc94008c748b
BLAKE2b-256 d1284eb6cd9b1d9a1a68341106c31189a759825daadb7964521a53a1991ea71f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page