Repository navigation
Load file with reduced box vectors - #799
Merged
dwhswenson merged 10 commits intoOct 8, 2018
Merged
Conversation
Member
Author
|
This should be ready for review and merge. I think the only possible concern is that we're importing a somewhat-hidden feature of OpenMM. However, to the extent possible, I'd prefer to have them maintain it, rather than rewriting their code as part of OPS. If they move the functionality to another name, we can update easily enough. Overall, this will make it much more convenient to use existing Gromacs trajectories as input to OPS: from openpathsampling.engines.openmm.tools import load_trr
traj = load_trr("file.trr", top="conf.gro")This should include velocities, and also fix box vector rounding. |
jhprinz
approved these changes
Oct 8, 2018
Member
Author
|
This should also fix some problems with notebook tests; a recent change somewhere made ipynbs in Py 3.6 stricter about the order of |
Merged
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.
This adds tools to simplify loading input trajectories, especially loading Gromacs trajectories for the OpenMM engine.
Gromacs trajectory files, such as TRRs, round the box vectors that they store. OpenMM has a strict requirement that box vectors be in reduced form. Because of the rounding in the TRR files, Gromacs input often needs to be massaged to work. OpenMM has a way of handling this, but because we load the trajectories with MDTraj, we bypass the part of OpenMM that does this. Internally, we'll just import the method that OpenMM uses and apply it to our snapshots.
The PR adds tools to simplify this, including a particular method to load TRR files for the OpenMM engine.