Re: [Rdkit-discuss] substructure matching

2020-07-21 Thread Jan Halborg Jensen
I get both to be True using version 2020.03.04 On 21 Jul 2020, at 14.08, Quoc-Tuan DO mailto:quoctuan...@greenpharma.com>> wrote: Hello, I am not very familiar with smiles/smarts and find the following results quite puzzling: >>> patt = >>> Chem.MolFromSmiles('c1ccc(cc1)C~C2NC~Cc3c23.c1

Re: [Rdkit-discuss] substructure matching

2020-07-21 Thread Ivan Tubert-Brohman
Hi Quoc-Tuan, I can't reproduce your observations; I get True in both cases. Which version of RDKit are you using? One thing to note is that you are parsing a SMARTS with MolFromSmiles. I wouldn't recommend that in general, although it appears that in this case RDKit is lenient enough to accept "

Re: [Rdkit-discuss] substructure matching

2020-07-10 Thread Quoc-Tuan DO
Hello, I am not very familiar with smiles/smarts and find the following results quite puzzling: >>> patt = Chem.MolFromSmiles('c1ccc(cc1)C~C2NC~Cc3c23.c1ccc(cc1)C~C2NC~Cc3c23') >>> mol = Chem.MolFromSmiles('COc1ccc2cc1Oc1ccc(cc1)CC1N(C)CCc3c1c1Oc4cc5C(C2)NCCc5c