Re: [Rdkit-discuss] Is it possible to create a reaction SMARTS with dative bonds?
Open-Source Cheminformatics and Machine Learning
Brought to you by:
glandrum
|
From: Greg L. <gre...@gm...> - 2020-02-12 15:42:11
|
On Wed, Feb 12, 2020 at 4:37 PM Grzegorz Skoraczyński <
g.s...@mi...> wrote:
> Hi Greg,
>
> Thanks for your reply. Could you explain more which pattern you use for
> GetSubstructMatch?
>
Doh! Sorry I didn't include that:
In [7]: pattern = Chem.MolFromSmarts('[O-]-[#1+]')
How can we guess which product' atoms are mapped to a reaction template?
>
That's information you provide with the atom-mapping numbers in the SMARTS.
So the O in the first reactant, numbered ":1", becomes the atom in the
product which is numbered ":1" (also an O in this case).
-greg
>
>
|