Thanks a lot!
Michal

On 8 November 2013 12:40, Paolo Tosco <paolo.to...@unito.it> wrote:
> Hi Michal,
>
> I think this Python snippet should do what you need:
>
> from rdkit import Chem
> from rdkit.Chem import AllChem
>
> sdf = 'benzene.sdf'
> supplier = Chem.SDMolSupplier(sdf, True, False)
> mol = supplier[0]
> for i in range(0, mol.GetNumAtoms()):
>   pos = mol.GetConformer().GetAtomPosition(i)
>   print '{0:12.4f}{1:12.4f}{2:12.4f}'.format(pos.x, pos.y, pos.z)
>
>
> Cheers,
> p.
>
>
> On 11/08/2013 01:01 PM, Michal Krompiec wrote:
>>
>> Hello,
>> In the Python API, is it possible to read the 3D coordinates of an
>> atom (from a Mol object created from an SDF file with 3D coords)?
>> Thanks,
>> Michal
>>
>>
>> ------------------------------------------------------------------------------
>> November Webinars for C, C++, Fortran Developers
>> Accelerate application performance with scalable programming models.
>> Explore
>> techniques for threading, error checking, porting, and tuning. Get the
>> most
>> from the latest Intel processors and coprocessors. See abstracts and
>> register
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Rdkit-discuss mailing list
>> Rdkit-discuss@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
>>
>
>
> --
> ==========================================================
> Paolo Tosco, Ph.D.
> Department of Drug Science and Technology
> Via Pietro Giuria, 9 - 10125 Torino (Italy)
> Tel: +39 011 670 7680 | Mob: +39 348 5537206
> Fax: +39 011 670 7687 | E-mail: paolo.to...@unito.it
> http://open3dqsar.org | http://open3dalign.org
> ==========================================================
>

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to