Skip to main content

metadynminer.py

Build PyPI - Downloads conda downloads DOI

Metadynminer is a package designed to help you analyse output HILLS files from PLUMED metadynamics simulations.

It is inspired by existing Metadynminer package for R. It supports HILLS files with one, two or three collective variables.

All built-in functions can be customized with many parameters. You can learn more about that in the documentation. There are also other predefined functions allowing you to for example to enhance your presentation with animations of your 3D FES or remove a CV from existing FES.

We hope metadynminer.py will help you analyse your metadynamics results in an efficient and convenient way. If you use metadynminer in published work, please read and cite our article.

Quickstart: run in Binder

Click the icon bellow and wait (couple of minutes) for the container to build and started on public MyBinder.

Binder

Alternatively, for Metacentrum users, somewhat better resources are available:

Binder

Once in the Jupyterlab environment, upload your HILLS file and start the python_metadynminer.ipynb notebook.

Installation:

pip install metadynminer

or

conda install -c jan8be metadynminer

Sample code:

Load metadynminer:

import metadynminer

Load your HILLS file:

hillsfile = metadynminer.Hills(name="HILLS")

Compute the free energy surface using the fast Bias Sum Algorithm:

fes = metadynminer.Fes(hillsfile)

You can also use slower (but exact) algorithm to sum the hills and compute the free energy surface with the option original=True. This algorithm was checked and it gives the same result (to the machine level precision) as the PLUMED sum_hills function (for plumed v2.8.0).

fes2 = metadynminer.Fes(hillsfile, original=True)

Visualize the free energy surface:

fes.plot()

Visualize and save the picture to a file:

fes.plot(png_name="fes.png")

Find local minima on the FES, print them and save FES with minima as a picture:

minima = metadynminer.Minima(fes)
print(minima.minima)
minima.plot()

You can also plot free energy profile to see, how the differences between each minima were evolving during the simulation. Convergence in the free energy profile suggests that the resulting free energy surface converged to correct values.

fep = metadynminer.FEProfile(minima, hillsfile)
fep.plot()

Metadata

Release files for metadynminer 0.9.7

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

Source distribution (sdist)

Source distribution for metadynminer 0.9.7
File Size Uploaded
metadynminer-0.9.7.tar.gz 46.6 kB Details

Release files / metadynminer-0.9.7.tar.gz

Download URL metadynminer-0.9.7.tar.gz
Size 46.6 kB
Tags Source
SHA-256 checksum
How to use checksums
93b76af0d39089b762469b5c159ca4672ee89fc1d32e385e6f5c5dab26bd6b9b
BLAKE2b-256 checksum
How to use checksums
db49e8f264e845904a50c65edecbf16771dc45006ff9e406c9cd682db41f9758
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release history Release notifications | RSS feed

This release

0.9.7 This release

1 release file

0.9.6

1 release file

0.9.5

1 release file

0.9.4

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.8.3

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.8.0

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.0

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.0

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