Re: [Rdkit-discuss] Programatic access to the mol sanitation process results

2018-03-09 Thread Peter Gedeck
Hello Lukas, The file rdkit/TestRunner.py contains a class/context manager called OutputRedirectC. If I remember correctly, this allowed capturing these messages. It's not used anywhere in the RDkit code base, so it not work anymore. Anyway, give it a try and if it works, you can modify it to

Re: [Rdkit-discuss] Programatic access to the mol sanitation process results

2018-03-09 Thread Lukas Pravda
Hello Greg, I’m very sorry for the late reply. Thank you for the hint on disabling the log message, it works on my end. However, I was more interested in catching the other bit i.e. which part of the structure is wrong, rather than which part of the sanitization process failed. That is

Re: [Rdkit-discuss] rotatable bond

2018-03-09 Thread Maciek Wójcikowski
Hi Mariana, You can do exactly what this function is doing - counting matches of a SMARTS definition of rotatable bond. For a bond you can check if it matches mentioned SMARTS. The definition is here: http://www.rdkit.org/Python_Docs/rdkit.Chem.Lipinski-module.html SMARTS_DEF =

Re: [Rdkit-discuss] useQueryQueryMatches with recursive SMARTS

2018-03-09 Thread Ivan Tubert-Brohman
Hi Greg, Thank you. After more thought I decided that query-to-query matching is not the best way to go for my task, regardless of what it does with recursive SMARTS, so don't lose sleep about it on my behalf. :-) Still, it's good to know about this behavior for future reference. Best, Ivan On