My favorites | Sign in
Project Logo
                
People details
Project owners:
  baoilleach

Cinfony

Cinfony presents a common API to several cheminformatics toolkits. It uses the Python programming language, and builds on top of OpenBabel, RDKit and the CDK.

Documentation

Example

Here's a short example to get the juices flowing. Let's read a molecule with OpenBabel, draw it with RDKit and calculate descriptor values with the CDK:

C:\> cinfony # Set environment variables
C:\> python
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> from cinfony import rdkit, cdk, obabel
>>> pybelmol = obabel.readstring("smi", "CCC")
>>> rdkitmol = rdkit.Molecule(pybelmol)
>>> rdkitmol.draw(show=False, filename="propane.png")
>>> print cdk.Molecule(rdkitmol).calcdesc()
{'chi0C': 2.7071067811865475, 'BCUT.4': 4.4795252101839402, 'BCUT.5': 5.14569107
34650307, 'BCUT.2': -0.17199466342172476, 'BCUT.3': 0.048131793579068549, 'BCUT.
0': 11.889999999999995, 'BCUT.1': 12.110018178813911, 'rotatableBondsCount': 2,
'mde.9': 0.0, 'mde.8': 0.0, 'mde.3': 0.0, 'mde.2': 0.0, ... }








Hosted by Google Code