This new version of Cinfony is currently in beta while I wait for the release of Open Babel 2.3.1, but is available for download from the Cinfony website (install instructions). The main new features are support for the Indigo toolkit (the general cheminformatics toolkit from GGA Software) and OPSIN (IUPAC name -> structure convertor from Daniel Lowe in PMR's group).
The following code shows an example of using OPSIN to read an IUPAC name (this is taken from the TOC graphic for the OPSIN paper) and then using Indigo to calculate the molecular weight:
>>> from cinfony import indy, opsinHere's the talk I gave:
>>> opsinmol = opsin.readstring("iupac",
"(1R,2R,3R,4S)-11-diazo-2,3,4,9-tetrahydroxy-2-"
"methyl-5,10-dioxo-2,3,4,5,10,11-hexahydro-1H-"
"benzo[b]fluoren-1-yl acetate")
>>> print indy.Molecule(opsinmol).molwt
412.349639893
View more presentations from baoilleach
No comments:
Post a Comment