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

Allow for storing & retreiving PDBResidueInfo for SMCs #327

Open
IAlibay opened this issue Jun 8, 2024 · 0 comments
Open

Allow for storing & retreiving PDBResidueInfo for SMCs #327

IAlibay opened this issue Jun 8, 2024 · 0 comments

Comments

@IAlibay
Copy link
Member

IAlibay commented Jun 8, 2024

Background

We live in a residue-orientated world. This means that some types of PDB information can be useful to track for small molecules.

These include:

  1. Some type of residue name
  2. Some type of chain ID
  3. Maybe some type of residue number (although this is a bit hard to keep when we tend to shuffle residues around)

OpenFF & RDKit handle residue information

It is possible to set atom-wise metadata via the OFF tk, including residue names (see: https://docs.openforcefield.org/projects/toolkit/en/stable/users/molecule_conversion.html#hierarchy-data-chains-and-residues).

In the RDKit tk (and how things are converted from OFF Tk to RDKit), this is handled via PDBResidueInfo, which is set as an atom-wise property.

When this information is set, it is possible to create an OFFMol & by consequence OpenMM Topology that retains this PDB information.

GUFE's serialization does not preserve this information

Because PDBResidueInfo isn't a property, this information isn't preserved when we call to_dict and from_dict, so it gets lost before we can use it within Protocols.

Proposal

We add the storage & retrieval of some PDBResidueInfo data when calling to_dict and from_dict.

Specifically, my proposal would be to include; residue name, residue ID, and chain ID, as per: https://github.com/openforcefield/openff-toolkit/blob/dcd78c97a161b522665d7a4c74ea1eefc5ec2ceb/openff/toolkit/utils/rdkit_wrapper.py#L862-L865

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

1 participant