Repository navigation
Add simulation visualization notebook to how-to guides - #2344
Open
hannahbaumann wants to merge 8 commits into
Open
hannahbaumann wants to merge 8 commits into
hannahbaumann wants to merge 8 commits into
Conversation
Contributor
|
this looks good, but as mentioned over in OpenFreeEnergy/ExampleNotebooks#359, I think it would make sense to move the protocol-specific explanations over to the user guide. Thoughts? |
Contributor
Author
|
@atravitz I added some of the content from the notebook to the protocol user guides here and removed it in the notebooks! |
* Update showcase assets * Look at showcase updates * Apply suggestion from @hannahbaumann
atravitz
reviewed
Nov 10, 2026
atravitz
left a comment
Contributor
There was a problem hiding this comment.
I think the content is good, but the single-paragraph format is confusing. I made a suggestion for making it more structured, but anything that makes it more readable is fine by me!
Comment on lines
+138
to
+146
| Each leg writes a multistate trajectory (``complex.nc`` and ``solvent.nc``) with its topology | ||
| (``alchemical_system.pdb``). The trajectory stores the positions of every replica, together with the λ state each | ||
| replica was in at each iteration. A trajectory can therefore be read in two ways: at a fixed λ **state**, combining | ||
| frames from whichever replica occupied that state, or along a single **replica** as it moves between λ states. | ||
| This applies to the default replica exchange sampler (``sampler_method = "repex"``). | ||
| With ``"independent"`` sampling, replicas never change state, so both give the same trajectory; | ||
| with ``"sams"``, a λ state is not necessarily occupied at every iteration, so reading by state may not be possible. | ||
| Only the atoms selected by ``output_indices`` are saved, which by default excludes water. | ||
| Both files can be loaded with `openfe_analysis`_ to visualize the simulation, extract the trajectories of the end states, |
Contributor
There was a problem hiding this comment.
Suggested change
| Each leg writes a multistate trajectory (``complex.nc`` and ``solvent.nc``) with its topology | |
| (``alchemical_system.pdb``). The trajectory stores the positions of every replica, together with the λ state each | |
| replica was in at each iteration. A trajectory can therefore be read in two ways: at a fixed λ **state**, combining | |
| frames from whichever replica occupied that state, or along a single **replica** as it moves between λ states. | |
| This applies to the default replica exchange sampler (``sampler_method = "repex"``). | |
| With ``"independent"`` sampling, replicas never change state, so both give the same trajectory; | |
| with ``"sams"``, a λ state is not necessarily occupied at every iteration, so reading by state may not be possible. | |
| Only the atoms selected by ``output_indices`` are saved, which by default excludes water. | |
| Both files can be loaded with `openfe_analysis`_ to visualize the simulation, extract the trajectories of the end states, | |
| Each leg writes: | |
| - a multistate trajectory (``complex.nc`` and ``solvent.nc``) | |
| - the trajectory's corresponding topology (``alchemical_system.pdb``) | |
| For the default replica exchange sampler (``sampler_method = "repex"``), the trajectory stores the positions of every replica, together with the λ state each replica was in at each iteration. | |
| A ``repex`` trajectory can therefore be read in two ways: at a fixed λ **state**, combining frames from whichever replica occupied that state, or along a single **replica** as it moves between λ states. | |
| With ``"independent"`` sampling, replicas never change state, so both give the same trajectory. | |
| With ``"sams"``, a λ state is not necessarily occupied at every iteration, so reading by state may not be possible. | |
| Only the atoms selected by ``output_indices`` are saved, which by default excludes water. | |
| Both files can be loaded with `openfe_analysis`_ to visualize the simulation, extract the trajectories of the end states, |
I find the block of text difficult to parse as-is. Maybe breaking it up like this would help? It would also be good to link to/from the API sampler_method setting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
LLM / AI generated code disclosure
LLMs or other AI-powered tools (beyond simple IDE use cases) were used in this contribution:
Checklist
pre-commit.ci autofix.newsentry, or the changes are not user-facing.Manual Tests: these are slow so don't need to be run every commit, only before merging and when relevant changes are made (generally at reviewer-discretion).
Developers certificate of origin