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

Water bridge water_angle #122

Open
bernieleecy opened this issue Feb 28, 2022 · 3 comments
Open

Water bridge water_angle #122

bernieleecy opened this issue Feb 28, 2022 · 3 comments
Labels

Comments

@bernieleecy
Copy link

Version: 2.1.9, command line tool (with docker)

When using PLIP to look at a protein–ligand interaction where water-mediated hydrogen bonds (water bridges) are important, the expected water bridge is not detected.

I loosened the PLIP water bridge criteria significantly, with water_bridge_omega_min set to 10 and water_bridge_omega_max set to 170. This allows the water bridge of interest to be detected, and the water_angle was given as 48.06°. When I measure the angle (as acceptor O to water O to donor H) in pymol, it is 132°, so it should be detected by the defaults.

Looking at the code in plip/detection.py, it looks like the water angle is detected with:
w_angle = vecangle(vector(acc.a.coords, wl.oxy.coords), vector(wl.oxy.coords, don.h.coords)) – is this intentional, since this would give a smaller angle (180 minus water_angle, rather than the water_angle from Pymol)?

In contrast, the d_angle (which is 151° and matches what I expect it to be) is given by d_angle = vecangle(vector(don2.h.coords, don2.d.coords), vector(don2.h.coords, w.oxy.coords)).

Thank you!

@fkaiserbio
Copy link
Contributor

Thanks for the issue, we should investigate this. Would it be possible for you to provide the specific example PDB file, PLIP commands and PyMol commands that you used? It would be of great help to reproduce the issue and see whether we need to improve the water bridge detection routine.

@bernieleecy
Copy link
Author

Thanks for looking into it, I've attached a PDB file and a PSE file with the relevant angle annotated (I used the angle measurement tool in PyMOL to obtain the A–OW–DH angle).

water_bridge_omega.zip

The original command I used:

docker run --rm -v ${PWD}:/results -w /results pharmai/plip:latest -f *.pdb -xty --hbond_dist_max 3.5 --hbond_don_angle_min 150 

The command I used to get PLIP to detect the water bridge:

docker run --rm -v ${PWD}:/results -w /results pharmai/plip:latest -f *.pdb -xty --hbond_dist_max 3.5 --hbond_don_angle_min 150 --water_bridge_omega_min 40 --water_bridge_omega_max 110

@fkaiserbio
Copy link
Contributor

Thanks for detailing! We will consider this, but we are very limited in capacity, so any pull requests from your end are welcome 😃

@fkaiserbio fkaiserbio added the bug label Apr 7, 2022
kalinni added a commit to kalinni/plip that referenced this issue Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants