GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - kbsezginel/wham: Python wrapper for Weighted Histogram Analysis Method as implemented by Grossfield et al.

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
wham
wham
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
setup.py
setup.py
 
 

Repository files navigation

wham

Python wrapper for Weighted Histogram Analysis Method as implemented by Grossfield et al.

Tested on Version 2.0.9, 2.0.11.

Installation

  1. Download WHAM from here
  2. Install Python wrapper:
pip install git+https://github.com/kbsezginel/wham

Usage

Currently, the wrapper only supports 1D WHAM calculations but feel free to open an issue or a pull request if you would like 2D WHAM implemented.

Make sure you check out WHAM documentation before using it. It's fairly short and very informative. All the parameters below would make much more sense after you read it.

from wham import Wham


W = Wham()
"""
Add your simulations with an id, simulation time, position,
equilibrium position for the spring, and spring constant in kcal/mol
"""
W.add_simulation(sim_id, time, position, eq_position, k_spring)

# You can plot position histograms before running WHAM
W.plot_histograms(title='WHAM histograms', save='wham-hist.png'))

You can run WHAM 1D as follows. The input parameters are mostly in the same order as the WHAM executable: lower and upper boundary of the histogram, number of bins in the histogram, convergence tolerance, temperature at which the WHAM analysis is performed, number of “padding” values that should be printed for periodic PMFs, path to WHAM 1D executable, path to write input and output files for WHAM analysis, periodicity of the reaction coordinate (defaults to no periodicity), cleanup WHAM files after running, and finally WHAM verbosity.

W.run(hist_min, hist_max, num_bins, tolerance, temperature,
      numpad, executable, directory, periodicity='', cleanup=False, verbose=True)

# Finally, you can plot the free energy barrier using the function below
W.plot_energy_barrier(save='wham-barrier.png'))

About

Python wrapper for Weighted Histogram Analysis Method as implemented by Grossfield et al.

Resources

Readme
BSD-3-Clause license
Activity

Stars

1 star

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.