Dear All,
I have been struggling with a substructure search to remove compounds
containing isotopes of hydrogen other than 1H... I had hoped that the
following would work: patt = Chem.MolFromSmarts('[2H,3H]') but this does
not give a valid mol.
I then tried patt = Chem.MolFromSmarts('[2#1,3#1]'). This at leasts
gives a mol object, but when used for substructure querying does not
behave as I would like (ie mol.HasSubstructMatch(patt) is false even for
molecules containing 2H or 3H)
Finally, I thought that I could run them one at a time with eg patt =
Chem.MolFromSmiles('[2H]', True) for the deuteriums. This does work for
me (sort of), but identifies molecules containing 3H as well as 2H -
which I guess is great, as this is originally what I wanted! However,
I'm not sure why it works - and what I should be doing to make it behave
as expected.
Any help/advice much appreciated! And apologies for my high percentage
of questions revolving around a lack of SMARTS experience!
Kind regards
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