UmbrellaIntegrate.py
Umbrella Integration[1] algorithm of calculating PMF using Python.
Dependence
Python3
Numpy
pandas for parsing metafile
Scipy for trapz integration
Usage:
See help:
python3 ubint.py -h
Input
Metafile
The <your-metafile> should be in fellowing form:
/path/to/your/window/file window_center spring_constant [temperature]
There is a variable of T in ubint.py, if the temperature left blank in the metafile, the default temperature would be variable T in the ubint.py, or you can set specific temperature for some window.
Data file for each window
The data file of each window need to be a 2-column file with time reaction_coordinate, the coordinate should be 1-dimensional.
Output
The output file is free_py.txt with 2-column reaction_coordinate free_energy
Warning
Unit
I use kJ/mol in this program.
Spring constant K
In your simulation, the biased spring potential shoud be in form of 0.5 * K * (r - r0) ** 2, here K is the parameter set in your <your-metafile>, for some simulation program, there is no 0.5 in the biased spring potential.
Screen shots
Raw data was generated by Gaussian distribution for each window with MEAN=window_center and STD=0.8, the centers are in range of 0.0 ~ 19.5 by step of 0.5, here is the result compare with WHAM[2]:
Raw Data
Compare with WHAM
The zero point in WHAM is the minimum value and the zero point in UI is 0.
TO DO
The UI algorithm with higher oder terms[3] of A(xi) is ubint_ho_devel.py, the result is not ideal using previous data, still in development.
Problems occurred at standard normal distributions, maybe the quadruplicate term which even possesses a small value could cause a huge deviation. I should try some systems with non-quadratic potentials.
The function ``exp(-beta(a1*xi+a2*xi^2+a3*xi^3+a4*xi^4))`` and its integration (Normalization factor) give very large value (even inf), this is unable to solve yet.
Results
Ref
Kästner, Johannes, and Walter Thiel. “Bridging the Gap between Thermodynamic Integration and Umbrella Sampling Provides a Novel Analysis Method: ‘Umbrella Integration.’” The Journal of Chemical Physics 123, no. 14 (October 8, 2005): 144104. doi:10.1063/1.2052648.
Kästner, Johannes. “Umbrella Integration with Higher-Order Correction Terms.” The Journal of Chemical Physics 136, no. 23 (June 21, 2012): 234102. doi:10.1063/1.4729373.
Metadata
Release files for UmbrellaIntegrate 0.41
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| UmbrellaIntegrate-0.41.tar.gz | 5.5 kB | Without provenance | Details for UmbrellaIntegrate-0.41.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| UmbrellaIntegrate-0.41-py3-none-any.whl | Python 3 | none | any | Details for UmbrellaIntegrate-0.41-py3-none-any.whl |
| UmbrellaIntegrate-0.41-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for UmbrellaIntegrate-0.41-py2.py3-none-any.whl |
Total release size: 20.4 kB
Release files / UmbrellaIntegrate-0.41.tar.gz
| Download URL | UmbrellaIntegrate-0.41.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
feff335412622dad0dd1a4b75fd7e1a8a8a0ec62e366467c215749f85bb2219b
|
|
BLAKE2b-256 checksum How to use checksums |
050b716a285345a65912f6b982ce2d5a1ae557058f05af2dbbb08caed02fed79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / UmbrellaIntegrate-0.41-py3-none-any.whl
| Download URL | UmbrellaIntegrate-0.41-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c068c648eab7cd7c6c0feda793b12cced51c91b17b0af52fd0292bd5fe0ecc69
|
|
BLAKE2b-256 checksum How to use checksums |
8a5bd03f75892b7f34dff961ef4fd47e4b9bd2f768c2d394c22483f660d7c107
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / UmbrellaIntegrate-0.41-py2.py3-none-any.whl
| Download URL | UmbrellaIntegrate-0.41-py2.py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0b074941fc276c50ed26207c71f7c0f765957bd2c7707a1ac9358ed836102558
|
|
BLAKE2b-256 checksum How to use checksums |
2d304bc93340ebb951f2b6601c02fbae8eee0baea12fae4c1bd0049edbed424e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for UmbrellaIntegrate 0.41
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.