Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rite_weight: Randomized Iterative Trajectory Reweighting

Software Developers: Sagar Kania, Lisa Otten
Theory Collaborators: Robert J. Webber, Gideon Simpson, David Aristoff, and Daniel M. Zuckerman

References

Background

rite_weight (RW) is a lightweight Python package for computing steady-state weights from short molecular dynamics (MD) trajectory segments. RW is not recommended for reweighting one or a small number of MD trajectories: see blog post noted above.

RW uses a simple yet powerful approach: at each iteration, the method randomly clusters a reduced feature space (e.g., PCA, tICA, VAMP) and constructs a Markov state model (MSM). It then reweights the trajectory based on the stationary distribution derived from the MSM transition matrix. The process is repeated with new random clusters until convergence. This randomized clustering approach allows RW to efficiently estimate long-timescale kinetics and thermodynamics from short simulations — without requiring long trajectories or predefined discrete states. The current software applies only to equilibrium reweighting, but RW is a general method (see paper) and nonequilibrium reweighting code will be released (planned by Fall 2026).


Installation:

Install from github and update the existing conda env manually as:

git clone https://github.com/ZuckermanLab/rite_weight.git

cd </path/to/rite_weight>

conda activate

pip install .


Example:

Usage and Analysis with rite_weight Package
The example folder contains a demonstration of how to use the rite_weight package. The Jupyter notebook, example/run_riteweight.ipynb, illustrates how to build the model using data stored in the folder tests/. Additionally, the rite_weight_results_analysis.ipynb notebook provides examples of estimating pdf along a given CV.


Recent Updates:

Since the initial release, we have added a smoothing feature that allows for a more consistent analysis of sparse trajectory data.


Work in Progress:

We will be deploying features to enable kinetic estimation, such as residence time and mean first-passage time (MFPT). Uncertainty quantification will also be added. Stay tuned for updates.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages