-
Notifications
You must be signed in to change notification settings - Fork 69
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
How can we get the bond breaking and forming information (numbers at the end of each reaction) from our own smiles datesets? #4
Comments
Hi @mario-liu , You only need the atom-mapped reaction SMILES as input (note: what you've written isn't valid SMILES due to missing square brackets). The script at |
Much thanks for your reply.Here is another question:
How can I solve this? |
You'll need to complete the atom mapping on the product side for this code; that is a consequence of using this graph-based representation where we enforce atom conservation and thus need to understand the atom-to-atom correspondence. Any reactant leaving groups can be assigned dummy atom map numbers that do not appear in the products. There are a number of ways to assign atom mapping. The USPTO dataset was prepared (not by me) using Indigo. This is an open source toolkit and should be straightforward to apply as a pre-processing step |
How can I enforce atom conservation? |
Did you solve this problem? |
Hi @WYejian , completing the atom mapping so that all product atoms are mapped will solve this problem |
Thanks for your reply. I want to know how you numbered the unmapped leaving group in the reaction. |
Leaving groups in the reactants can have arbitrary (but unique) atom map numbers that do not appear in the product |
Can indigo be used to number the atoms of the leaving group? |
Yes, and there are other papers and algrithoms to do this. Check it with google. |
Can i add your wechat?
This is my WeChat ID:1527808346
发自我的iPhone
…------------------ Original ------------------
From: Mario-Liu <[email protected]>
Date: 周一,7月 20,2020 09:28
To: connorcoley/rexgen_direct <[email protected]>
Cc: WYejian <[email protected]>, Mention <[email protected]>
Subject: Re: [connorcoley/rexgen_direct] How can we get the bond breaking and forming information (numbers at the end of each reaction) from our own smiles datesets? (#4)
Leaving groups in the reactants can have arbitrary (but unique) atom map numbers that do not appear in the product
Can indigo be used to number the atoms of the leaving group?
Yes, and there are other papers and algrithoms to do this. Check it with google.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Have you solved this problem? I still can't solve it, can you help me? |
I still don't know how to number the unmapped atoms, do you have any method? |
See "Reaction Atom-to-Atom Mapping" in Indigo |
There are many other algorithoms to define atom mapping. Indigo is not the best choice already. |
I would like to ask whether the graph convolutional neural networks can be used to predict compounds with chirality? |
Currently, the code is designed to work only with achiral compounds. Some additional comments:
|
Thank you for your reply
On 08/05/2020 21:50, Connor Coley wrote:
Currently, the code is designed to work only with achiral compounds. Some additional comments:
Chirality can be included as an atom-level feature, although one can debate how meaningful this representation is
The function that applies predicted graph edits could be changed to ensure that tetrahedral chirality is preserved upon reacting
Handling changes in chirality (introduction or inversion of a tetrahedral center or introduction of cis/trans isomerism) would require allowing an additional type of "graph edit" to be predicted
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi I have tried Indigo for atom mapping and I still get the error in preparing data step: File "", line 28, in get_changed_bonds KeyError: 'molAtomMapNumber' Here is my code for preparing the atom mapping in indigo: Here is my input reaction:'C(=O)(N([H])[H])N([H])C(=O)O[H]>>C(=O)=O' And here is the output of indigo: 'C(=[O:4])(N([H])[H])N([H])C:5O[H]>>C:5=[O:4]' Can you give me some idea about how to fix this or what alternative software I can use to solve this? |
These tools aren't meant to work with explicit hydrogen atoms in your SMILES strings. Are you sure that's the direct output of Indigo? That isn't a well-formed SMILES string at all. Ignoring the atom mapping, neither the reactant side or the product side are valid SMILES. |
Thanks for your reply. |
If we only have the reaction
'CH2:15[Mg+:19].[CH2:20]1[O:21][CH2:22][CH2:23][CH2:24]1.[Cl-:14].[OH:1][c:2]1[n:3][cH:4]c:5[cH:12][cH:13]1>>[OH:1][c:2]1[n:3][cH:4]c:5[cH:12][cH:13]1 ' ,
how can we get the bond changing information 6-8-0.0;15-6-1.0;15-19-0.0 at the end of reaction in datesets.
That's important for us to train the neural networks.
Can you show us your codes and post them to your rexgen_direct issue?
Much thanks.
The text was updated successfully, but these errors were encountered: