Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run a REST simulation and write a trajectory file #32

Open
gitkol opened this issue Aug 8, 2023 · 4 comments
Open

Run a REST simulation and write a trajectory file #32

gitkol opened this issue Aug 8, 2023 · 4 comments

Comments

@gitkol
Copy link

gitkol commented Aug 8, 2023

Hi, I have been using successfully the code in the REST tutorial, many thanks for that, but I am having a most likely trivial problem. I'd like to write a trajectory file of the thermodynamic state configurations for analysis, but I just couldn't figure out how to do this. Can you show me an example? Thank you very much, Istvan

@sef43
Copy link
Member

sef43 commented Aug 21, 2023

@zhang-ivy who wrote the REST tutorial might be able to help with this?

@zhang-ivy
Copy link
Contributor

zhang-ivy commented Aug 21, 2023

To extract trajectories for each thermodynamic state, you'll need to pull out the positions from the checkpoint file using openmmtools.

Here is a script from my recent paper that does this. The script is written for alchemical free energy calculations (where there is a hybrid topology that corresponds to old and new residues, aka two sets of positions). You'll need to adapt the script to handle a vanilla topology (and one set of positions). You'll also need to make sure to set state to the index of the thermodynamic state you're interested in pulling positions from and replica_id=None (the script as is currently writes out trajectories per replica using replica_id.)
https://github.com/choderalab/perses-barnase-barstar-paper/blob/main/scripts/05_analyze/run_make_traj_per_replica.py

@gitkol
Copy link
Author

gitkol commented Aug 21, 2023 via email

@gitkol
Copy link
Author

gitkol commented Mar 8, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants