没有任何数据可供显示
| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > cinfony |
|
cinfony
|
| 1 | 0 | 115 |
| 贡献者 | 讨论 | 代码提交 |
CinfonyCinfony presents a common API to several cheminformatics toolkits. It uses the Python programming language, and builds on top of OpenBabel, RDKit and the CDK.
DocumentationThe Cinfony paper Install on Windows or Linux A complete description of Cinfony API documentation. This documentation can also be accessed using the help command, e.g. help(cdk). Further information on Pybel and using the OpenBabel Python bindings is available on the OpenBabel wiki ExampleHere's a short example to get the juices flowing. Let's read a molecule with OpenBabel, use Webel to find out its IUPAC name, draw it with RDKit and calculate descriptor values with the CDK:
C:\> cinfony # Set environment variables
C:\> python
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from cinfony import rdk, cdk, obabel, webel
>>> obabelmol = obabel.readstring("smi", "CCC")
>>> print webel.Molecule(obabelmol).write("iupac")
"PROPANE"
>>> rdkmol = rdk.Molecule(obabelmol)
>>> rdkmol.draw(show=False, filename="propane.png")
>>> print cdk.Molecule(rdkmol).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, ... }
标签:
