-
Notifications
You must be signed in to change notification settings - Fork 58
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
mmpdb transform behaves unexpectedly #45
Comments
I believe what's happening is that transform works on the variable part, but hydrogens aren't treated as the variable If so, I don't remember if transformation from a hydrogen was deliberately not included in the "transform" operation, or if it was an oversight. |
As Jérôme and Christian point out, hydrogen transformations were explicitly not included as there would be too many. The However, that code path has not been used for years and it does not work in the main mmpdb release. (RDKit changed its wildcard representation from The fixed code is available in the v3 development version, available from https://github.com/adalke/mmpdb/tree/v3-dev . |
Hi @adalke , thank you for your help. I will try the |
Hello. I am restarting this thread as I have a follow up question. I am able to specify a hydrogen to consider by denoting it with an explicit [H] in the SMILES string. I also note that one can specify multiple hydrogens this way and vary them all. However, it appears that if you specify one or more hydrogens then only the specified hydrogen position(s) are modified, with the rest of the molecule remaining unchanged. Is there a way to vary the hydrogen(s) and the rest of the molecule? Or a flag to vary all hydrogens? I understand this may generate large numbers of compounds. Thanks. |
Hi DJ, back when we designed mmpdb for the first time, we found that the number of compounds generated can become extremely large if you allow for both H and Fragment exchanges. In fact, depending on your database, the number of compounds generated can already become really large if you allow for replacing all hydrogens. We therefore decided to only allow either exchange of explicit hydrogens or fragments that include at least one heavy atom. Bests, |
The transform rules in mmpdblib appears to miss some apparent cases.
A test case with the following structures:
with some properties:
I performed the fragmentation, index and property loading as instructed.
The indexed pairs makes sense.
However, when I run:
I noticed that I cannot get mol2 or mol3, where the rules mol1->mol2 and mol1->mol3 is included in the index step. Did I miss something here? Thank you for your help.
Here's the explanation output:
The text was updated successfully, but these errors were encountered: