Thanks for the VERY rapid response, Greg (it makes me think you have a
pro-forma to answer SMARTS-related questions)!
Greg wrote:
> If you see anything different, I would certainly like to know
> about it. In that case, please let me know which version of
> the RDKit on which platform.
I see the same (as you probably expected!). However, what I probably
should have said to start with is that I am bringing my molecules in
using an SD supplier. So:
p = Chem.MolFromSmarts('[2#1,3#1]')
suppl = Chem.SDMolSupplier(myfile)
for mol in suppl:
mol.HasSubstructMatch(p)
Gives me a long list of 'False's. But your reply got me thinking, so
doing the following actually gives the matching as expected:
p = Chem.MolFromSmarts('[2#1,3#1]')
suppl = Chem.SDMolSupplier(myfile)
for mol in suppl:
newMol = Chem.MolToSmiles(mol, True)
newMol = Chem.MolFromSmiles(newMol)
newMol.HasSubstructMatch(p)
The SDF I am using was generated by RDKit via reaction enumeration. I'm
confused!
James
______________________________________________________________________
PLEASE READ: This email is confidential and may be privileged. It is intended
for the named addressee(s) only and access to it by anyone else is
unauthorised. If you are not an addressee, any disclosure or copying of the
contents of this email or any action taken (or not taken) in reliance on it is
unauthorised and may be unlawful. If you have received this email in error,
please notify the sender or [email protected]. Email is not a secure
method of communication and the Company cannot accept responsibility for the
accuracy or completeness of this message or any attachment(s). Please check
this email for virus infection for which the Company accepts no responsibility.
If verification of this email is sought then please request a hard copy. Unless
otherwise stated, any views or opinions presented are solely those of the
author and do not represent those of the Company.
The Vernalis Group of Companies
Oakdene Court
613 Reading Road
Winnersh, Berkshire
RG41 5UA.
Tel: +44 118 977 3133
To access trading company registration and address details, please go to the
Vernalis website at www.vernalis.com and click on the "Company address and
registration details" link at the bottom of the page..
______________________________________________________________________
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss