On Mon, Jul 13, 2009 at 4:28 PM, Aryeh
Gold-Parker<[email protected]> wrote:
> Greg, this is all very helpful. I am still not quite understanding how the
> atom numbers are assigned.
>
> Anyway, I would love to do it automatically for any given SMILES. As an
> example, a script that would align any molecule so that its longest
> principal axis lies horizontal.

Theoretically the code should already be doing that for you. It's
clear that it's not, so I will look into it and fix it.

In the meantime you could calculate the principal axes yourself,
figure out the appropriate transformation matrix (a rotation around z
and maybe a translation), and then call AllChem.TransformMol to apply
the transformation.

> Could I try to align the molecules with a simple "horizontal" molecule, such
> as ethane? Or with an n-carbon alkane?

probably more trouble than it's worth, but this might work.

-greg

Reply via email to