Thank you for your answer. That is what I'm trying to do. Having the inchi
string inside inChi variable:
from rdkit import Chem
m = Chem.MolFromInchi(inChi)
I get this error
AttributeError: 'module' object has no attribute 'MolFromInchi'
I think it is well imported, isn't it?
El Aug 26, 2014, a las 4:55 PM, Paul Emsley escribió:
> On 26/08/14 10:42, acanada wrote:
>>
>> What is the best approach to write mol/sdf files for a compound which I
>> already have chebi, inChi?
>>
>>
>
> m=Chem.MolFromInchi('InChI=1S/C8H10N4O2/c1-10-4-9-6-5(10)7(13)12(3)8(14)11(6)2/h4H,1-3H3')
> print >>file('foo.mol','w+'),Chem.MolToMolBlock(m)
>
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds. Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Rdkit-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
**NOTA DE CONFIDENCIALIDAD** Este correo electrónico, y en su caso los ficheros
adjuntos, pueden contener información protegida para el uso exclusivo de su
destinatario. Se prohíbe la distribución, reproducción o cualquier otro tipo de
transmisión por parte de otra persona que no sea el destinatario. Si usted
recibe por error este correo, se ruega comunicarlo al remitente y borrar el
mensaje recibido.
**CONFIDENTIALITY NOTICE** This email communication and any attachments may
contain confidential and privileged information for the sole use of the
designated recipient named above. Distribution, reproduction or any other use
of this transmission by any party other than the intended recipient is
prohibited. If you are not the intended recipient please contact the sender and
delete all copies.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss