Wepy: A Flexible Software Framework for Simulating Rare Events with Weighted Ensemble Resampling

14 August 2020, Version 1
This content is a preprint and has not undergone peer review at the time of posting.


This paper describes the software tool "wepy", an implementation of the weighted ensemble algorithm in python. Wepy was designed to be a flexible simulation framework for rare or long-timescale molecular events, such as protein (un)folding, ligand (un)binding, and large-scale conformational changes or rearrangements. It is implemented as a pure python package, which works well with the OpenMM python library and can easily leverage other python tools for that are useful for molecular simulation and analysis such as mdtraj, scikit-learn, numpy and scipy. It has full support for high-dimensional adaptive resampling algorithms (WExplore and REVO) and provides a framework to easily facilitate the development of new resampling algorithms. Its modular design allows domain experts to write their own analysis functions and progress variables, while taking advantage of a vetted framework for parallel simulation and weighted ensemble resampling.


molecular dynamics
Rare events
Weighted ensemble
Computational Approach
Python package

Supplementary materials



Comments are not moderated before they are posted, but they can be removed by the site moderators if they are found to be in contravention of our Commenting Policy [opens in a new tab] - please read this policy before you post. Comments should be used for scholarly discussion of the content in question. You can find more information about how to use the commenting feature here [opens in a new tab] .
This site is protected by reCAPTCHA and the Google Privacy Policy [opens in a new tab] and Terms of Service [opens in a new tab] apply.