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.

model-devi: calculate model deviation

model-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 model-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.1.tar.gz (294.9 kB view details)

Uploaded Source

Built Distribution

dpamber-0.3.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dpamber-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 42c230be4875934a38f8800a651c2268ef324d5e84dcd20fe2e6faaa310f66f7
MD5 7bccdeca7e055dfb70fa486669967a28
BLAKE2b-256 1ec374c402715a5b04400d303161bc5ef127adab531aaa204a090051b88829c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dpamber-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 11.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2894f998b1b72188850429d77b95483db939ac0edbe00617d8edb63174796c50
MD5 08580b976a9d46d789fa58c9bc5c4cc3
BLAKE2b-256 461451b665c290721edceac8cafefd63f9d9b164a9ab37ee9ac5300280dbab92

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