Re: [Rdkit-discuss] substructure matching
Open-Source Cheminformatics and Machine Learning
Brought to you by:
glandrum
From: Jan H. J. <jhj...@ch...> - 2020-07-21 15:03:29
|
I get both to be True using version 2020.03.04 On 21 Jul 2020, at 14.08, Quoc-Tuan DO <quo...@gr...<mailto:quo...@gr...>> wrote: Hello, I am not very familiar with smiles/smarts and find the following results quite puzzling: >>> patt = Chem.MolFromSmiles('c1ccc(cc1)C~C2NC~Cc3c2cccc3.c1ccc(cc1)C~C2NC~Cc3c2cccc3') >>> mol = Chem.MolFromSmiles('COc1ccc2cc1Oc1ccc(cc1)CC1N(C)CCc3c1c1Oc4cc5C(C2)NCCc5cc4Oc1c(c3)OC') >>> print mol.HasSubstructMatch(patt) False >>> mol = Chem.MolFromSmiles('COc1ccc7cc1Oc2ccc(cc2)CC3N(C)CCc4c3cc(c(c4)OC)Oc5ccc6c(c5)CCNC6C7') >>> print mol.HasSubstructMatch(patt) True It seems that a presence of an extra Ph - O - Ph makes the difference but I am not sure why. How should the smarts be to have positive results for both smiles ? Thank you in advance for your help. Best regards, Quoc-Tuan _______________________________________________ Rdkit-discuss mailing list Rdk...@li...<mailto:Rdk...@li...> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Frdkit-discuss&data=02%7C01%7Cjhjensen%40chem.ku.dk%7C66a9c734e4b148ec5f4808d82d6f5793%7Ca3927f91cda14696af898c9f1ceffa91%7C0%7C0%7C637309303542102797&sdata=pQvzevQ7fWtPRenNrM19eKxbVDSsK1hff1TcxGsZLfk%3D&reserved=0 |