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

Inccorect connectivity with modified amino acids #298

Closed
jthorton opened this issue Mar 18, 2024 · 4 comments
Closed

Inccorect connectivity with modified amino acids #298

jthorton opened this issue Mar 18, 2024 · 4 comments

Comments

@jthorton
Copy link
Contributor

When loading a protein with a modified amino acid, in this case, two phosphorylated tyrosines, the connectivity is incorrectly interpreted as 0 which causes the atoms to be identified as ions and an error is raised. It seems like the bond order here is being set to BondType.UNSPECIFIED despite the connect records in the pdb file.

jak2_FEP_receptor_RELAXED_capped.txt

@richardjgowers
Copy link
Contributor

@jthorton Sorry for the short reply, this is from an airport... The current from_pdbfile loading is vendored from OpenMM, it's a bit limited and restricted to standard AAs. We're looking to do something smarter eventually... see #135 I've got a pet project here: https://github.com/OpenFreeEnergy/pdbinf

Basically your PDB file is wrong, residues 1007 and 1008 should be resname PTR not TYR. (As a second gripe, CONECT records shouldn't make a difference for residues labelled as ATOM rather than HETATM etc). If I download the cif template from here: https://www.rcsb.org/ligand/PTR I can then load via pdbinf to rdkit, then gufe can ingest this rdkit mol.

image

Longer term, there's also code I'm playing with that does this residue guessing automatically, see: https://github.com/OpenFreeEnergy/pdbinf/blob/main/notebooks/tpo_guessing_demo.ipynb. This should make it just magically work even if things are labelled incorrectly etc

@richardjgowers
Copy link
Contributor

also this paper/software is somewhat relevant: https://jcheminf.biomedcentral.com/articles/10.1186/s13321-023-00786-w

@jthorton
Copy link
Contributor Author

Thanks @richardjgowers this is testing my system preparation skills and they still need some work! I tried the suggested pathway and it worked great, the demo notebook looks fantastic as well excited to see this be part of gufe!

@richardjgowers
Copy link
Contributor

Ok cool, glad it worked. Yeah one thing holding up switching the backend is we/I have a lot of confidence in the OpenMM vendored bit as it's had a lot of usage, and there's much less usage gone into pdbinf so far; so it's good that it's worked for you on this corner case!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants