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

Triclinic/Cubic liftable molecule ends up broken #42

Open
BartBruininks opened this issue Oct 3, 2023 · 8 comments
Open

Triclinic/Cubic liftable molecule ends up broken #42

BartBruininks opened this issue Oct 3, 2023 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@BartBruininks
Copy link
Owner

There is a test system for a small ligand in a triclinic box. The ligand is broken after MDVWhole even though it is absolutely liftable. It appears that for some reason the bead placement is of by a voxel or so. We need to inspect this further. For now be very careful with triclinic boxes (not sure yet if this is also true for cubic systems).

This is a serious bug and needs to be looked into and fixed!
broken_triclinic_liftable.zip

@BartBruininks BartBruininks added the bug Something isn't working label Oct 3, 2023
@BartBruininks
Copy link
Owner Author

I feel like this has to do with the difference between floor/round/fix in numpy. I think we want to round towards the closest integer towards 0 but we use floor. For negative values this is wrong and we should use fix instead. I did not take a closer look, but it seems to go wrong when we cross over a negative border.

@BartBruininks
Copy link
Owner Author

Here is the raw input XTC of the molecule.
LIG.zip

@BartBruininks
Copy link
Owner Author

I feel like we had this problem before, maybe I made an error with a git merge somewhere and undid the fix we had in the past? Or the fix in the past did not completeley resolve the issue.

@BartBruininks
Copy link
Owner Author

I also added a single PDB of a single molecule where it fails.
broken_LIG_anonymous.zip

@BartBruininks
Copy link
Owner Author

I am running tests on a cubic box with water and a single lipid and a triclinic box with a single lipid (+/- 4 nm in size) to see if we can reproduce this error. Just to be sure nothing weird is going on in this specific simulation.

@BartBruininks
Copy link
Owner Author

BartBruininks commented Oct 3, 2023

The artifact also happens in a cubic box, it is pretty rare but it occurs. I will add some of the problematic frames in my test system to this issue tomorrow.

@BartBruininks BartBruininks changed the title Triclinic liftable molecule ends up broken Triclinic/Cubic liftable molecule ends up broken Oct 3, 2023
@BartBruininks
Copy link
Owner Author

The frame before is still behaving well in which the displacement is only over one PBC plane, then in frame 716 (after removing the initial frame) it goes wrong and in the next frame it is ok again. Below are the renders of 716 (top) and 717 (bottom). Both are the raw frames i.e. not completed, 717 gets completed without any problems.

DOPC_cubic_716
DOPC_cubic_717

@BartBruininks
Copy link
Owner Author

In the triclinic box the errors also appear to be around the double/triple crossings. IMO the origin for this bug is either in the calculation of the bridges, or in how we handle the pathfinding towards the center segment. I will take a look in the latter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants