DOH!!! ****
Apologies...
On 12 April 2011 11:02, Greg Landrum <greg.land...@gmail.com> wrote:
> Hi JP:
>
> On Tue, Apr 12, 2011 at 5:35 AM, JP <jeanpaul.ebe...@inhibox.com> wrote:
> >
> > Copying the example verbatim from the documentation (section 3.5 working
> > with 3d molecules) doesn't work:
> >
> >>>> from rdkit import Chem
> >>>> from rdkit.Chem import AllChem
> >>>> m = Chem.MolFromSmiles('C1CCC1OC')
> >>>> m2 = Chem.AddHs(m)
> >>>> m
> > <rdkit.Chem.rdchem.Mol object at 0x1f02bb0>
> >>>> m2
> > <rdkit.Chem.rdchem.Mol object at 0x1f021a0>
> >>>> AllChem.UFFOptimizeMolecule(m2)
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > ValueError: Bad Conformer Id
> >
> > Any ideas why?
>
> You forgot one step, before optimizing the molecule you need to add 3D
> coordinates:
> >>> AllChem.EmbedMolecule(m2)
> 0
>
> -greg
>
--
Jean-Paul Ebejer
Early Stage Researcher
InhibOx Ltd
Pembroke House
36-37 Pembroke Street
Oxford
OX1 1BP
UK
(+44 / 0) 1865 262 034
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
Any unauthorised dissemination or copying of this email or its attachments,
and any use or disclosure of any information contained in them, is strictly
prohibited and may be illegal. If you have received this email in error
please notify the sender and delete all copies from your system.
We and our group companies accept no liability or responsibility for
personal emails or emails unconnected with our business.
Internet communications including emails and access and use of web sites
cannot be guaranteed to be secure or error free as information can be
intercepted, corrupted, lost or arrive late. Furthermore, while we have
taken steps to control the spread of viruses on our systems, we cannot
guarantee that this email and any files transmitted with it are virus free.
No liability is accepted for any errors, omissions, interceptions, corrupted
mail, lost communications or late delivery arising as a result of receiving
this message via the Internet or for any virus that may be contained in it.
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss