Skip to main content

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.

Metadata

Release files for dpamber 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dpamber 0.3.2
File Size Uploaded
dpamber-0.3.2.tar.gz 294.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dpamber 0.3.2
File Interpreter ABI Platform
dpamber-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 306.3 kB

Release files / dpamber-0.3.2.tar.gz

Download URL dpamber-0.3.2.tar.gz
Size 294.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1d50aca643bafdc76cf2a1b0c7de84dce2c3d6fbaf3aa18b6dc9c64a19dd1065
BLAKE2b-256 checksum
How to use checksums
1037c0cce3290ff38f2bbf9d7b36137e11d53deeb3912832a64c99471db6e3e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / dpamber-0.3.2-py3-none-any.whl

Download URL dpamber-0.3.2-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e553850a3047669b53dafd3ebfeba587461a034e67feed34370ad236064734d3
BLAKE2b-256 checksum
How to use checksums
d1284eb6cd9b1d9a1a68341106c31189a759825daadb7964521a53a1991ea71f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release history Release notifications | RSS feed

0.4.0

2 release files

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.2.2

2 release files

0.2.1

1 release file

0.2.0

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.0.8

1 release file

0.0.6

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page