Re: [Rdkit-discuss] Virtual hydrogens for metals (smiles and smarts)

2023-05-18 Thread Francois Berenger
For mere humans, working with SMARTS is always a pain. But, some nice people are trying to make your life easier: https://smarts.plus/ [2] K. Schomburg, H.-C. Ehrlich, K. Stierand, M.Rarey; From Structure Diagrams to Visual Chemical Patterns, J. Chem. Inf. Model., 2010, 50 (9), pp 1529-1535

Re: [Rdkit-discuss] Virtual hydrogens for metals (smiles and smarts)

2023-05-18 Thread Wim Dehaen
[Zr;H1] this smarts pattern should match an Zirconium with hcount of exactly one. see below for a demonstration: m=Chem.MolFromSmiles("[ZrH]CC") pat=Chem.MolFromSmarts("[Zr;H1]") len(m.GetSubstructMatches(pat)) 1 hope this helps, wim On Fri, May 19, 2023 at 12:33 AM Jarod Younker wrote: >

[Rdkit-discuss] Virtual hydrogens for metals (smiles and smarts)

2023-05-18 Thread Jarod Younker
I’ve got the following two smiles strings: [Zr]C [ZrH] The smarts string [Zr][CH3] matches [Zr]C. What’s the smarts for [ZrH]? I’ve tried [Zr][H]. It does not match. Sent from my iPhone ___ Rdkit-discuss mailing list