-
Notifications
You must be signed in to change notification settings - Fork 271
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
Add feature somewhere to remove periodic boundary conditions for trajectory #787
Comments
Yes, +1 for adding this feature. I think it's also on the issue tracker as #490. |
PS: I think VMD has a nice TCL library called pbctools which could serve as a template for various ways for us to implement this. The key ingredient is |
For the center of mass in PBCs, there's also http://en.wikipedia.org/wiki/Center_of_mass#Systems_with_periodic_boundary_conditions |
At this point, the easiest way to implement this might be via a round-trip journey to pytraj and back. |
Pinging the mdtraj crew...can you check markovmodel/PyEMMA#732 (in particular markovmodel/PyEMMA#732 (comment)) and give us your thoughts? I think this issues are somehow related: It is about the "problem of using an unwrapped trajectory with pbc information as an input? " Thanks |
It would be easy to add a On Thu, Mar 17, 2016 at 10:10 AM, Guillermo Pérez-Hernández <
-Robert |
May I'm missing something here, but I think this is a separate issue. #1058 appears to implement a function for re-centering molecules in a box and applying pbc's (wrapping). markovmodel/PyEMMA#732 has two aspects:
|
Do you have any suggestions on how to efficiently find and remedy For PDBs, we now have an option (which is on by default) that checks the Adding -Robert On Thu, Mar 17, 2016 at 11:41 AM, Frank Noe notifications@github.com
-Robert |
Am 17/03/16 um 16:52 schrieb Robert T. McGibbon:
I'm happy to check this in PyEMMA and issue a warning there, but I have
Prof. Dr. Frank Noe Phone: (+49) (0)30 838 75354 Mail: Arnimallee 6, 14195 Berlin, Germany |
See PR #1072 |
I'm not sure that checking that distances come out greater than 0.1A (and On Thu, Mar 17, 2016 at 12:24 PM, Guillermo Pérez-Hernández <
-Robert |
You're right. I would also prefer to check whether there are out-of-box We can do distance checks in PyEMMA, but this is probably less efficient Is there an efficient way to check if any coordinates are ouf of the box Am 17/03/16 um 18:05 schrieb Robert T. McGibbon:
Prof. Dr. Frank Noe Phone: (+49) (0)30 838 75354 Mail: Arnimallee 6, 14195 Berlin, Germany |
What exactly is an out-of-box coordinate under PBCs? For a cubic box, for On Thu, Mar 17, 2016 at 1:35 PM, Frank Noe notifications@github.com wrote:
-Robert |
These different PBC-conventions are actually argument for not using periodic=True as a default. I think the PBC options and storage formats are not sufficiently standardized for this to work correctly in all cases and its much better if the user sets the option explicitly. |
I don't really understand. If you have periodic boundary conditions, the If you don't want to use periodic boundary conditions or the minimum image On Thu, Mar 17, 2016 at 1:48 PM, nsplattner notifications@github.com
-Robert |
(or On Thu, Mar 17, 2016 at 1:52 PM, Robert T. McGibbon rmcgibbo@gmail.com
-Robert |
This is technically o.k., but the case where this becomes problematic is the following: the PBC information stored in a trajectory is not necessarily meaningful and I think most users are not aware that its provided and affects the analysis. In my case I was using VMD to wrap the trajectories and I think the PBC information was just copied from the original trajectory, but is obviously meaningless when used in combination with the already wrapped coordinates. I don't think thats the only problematic case since most people work with processed trajectories (e.g. waters removed, coordinates aligned). In these cases the program used for this needs to store the PBC information in a way that its not wrongly interpreted and I think there is no convention for this. |
Why not just remove the periodic box vectors from the trajectory if you've post-processed the trajectory in such a way such that you no longer want to interpret the coordinates with periodic boundary conditions? On Thu, Mar 17, 2016 at 2:04 PM, nsplattner notifications@github.com
-Robert |
I don't understand: even if you've wrapped your trajectory with trjconv or something, the box vectors still have meaning and distances still make sense under minimum image. If your minimum image distances are interacting with a copy of the system, doesn't that just mean your box is too small? |
#1072 is merged, so I'm going to close this issue. If there is a remaining problem feel free to open another issue. |
I'm not sure why the information stored in the trajectories wrapped by VMD is wrong or has the wrong effect, but its clearly not a problem of interacting copies in the system. And the problem is solved when using periodic=False. So clearly this option is doing something wrong. |
Matthew - I think you're right. We need to check this. Thanks. Am 17/03/16 um 19:08 schrieb Matthew Harrigan:
Prof. Dr. Frank Noe Phone: (+49) (0)30 838 75354 Mail: Arnimallee 6, 14195 Berlin, Germany |
O.k., so probably this is a VMD-issue and not an mdtraj-issue. Thanks for the comments. |
Well not necessarily. Matthew's point is: If the original box size is 4 Am 17/03/16 um 19:12 schrieb nsplattner:
Prof. Dr. Frank Noe Phone: (+49) (0)30 838 75354 Mail: Arnimallee 6, 14195 Berlin, Germany |
Not quite sure how to implement this, but having a feature analogous to that of gromacs, where you use trjconv -pbc whole. Since you have to specify a topology anyway when doing md.load, all the information to do this should be available. The problem is just figuring out a way to do it and implementing it.
The text was updated successfully, but these errors were encountered: