What's new? | Help | Directory | Sign in
Google
                
Search
for
Updated Aug 11, 2008 by baoilleach
NewInstallationInstructions  
This page describes how to install cinfony on Windows

Installing cinfony on Windows

Cinfony contains the following five wrappers (dependencies listed in parentheses):

  1. pybel - OpenBabel wrapper (Python)
  2. jybel - OpenBabel wrapper (Java, Jython)
  3. cdkjpype - CDK wrapper (Python, Java)
  4. cdkjython - CDK wrapper (Java, Jython)
  5. rdkit - RDKit wrapper (Python)

Installing dependencies

You should install the dependencies first. Depending on what wrappers you wish to use, you should install Python 2.5, Java 1.5 ("JRE 5.0") and/or Jython 2.2. If you are installing Jython, you should install Java first.

Installing cinfony

Here I describe how to download and install the main part of cinfony. I will assume that you want to install cinfony into the folder C:\cinfony. If you install it somewhere else, remember this when you are following the instructions.

Testing cinfony

Open a command prompt anywhere on your computer and type the following

C:\Documents and Settings\Noel> cinfony
cinfony is configured for user! At the Python 2.5 prompt type:
   from cinfony import pybel, rdkit, cdk
or at the Jython 2.2 prompt type:
   from cinfony import jybel, cdk

C:\Documents and Settings\Noel> 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, pybel
>>> mol = pybel.readstring("smi", "CC=O")
>>> mol.draw()
>>> print rdkit.Molecule(mol).calcdesc()
{'BertzCT': 10.264662506490405, 'fr_C_O_noCOO': 1, 'Chi4v': 0.0, 'fr_Ar_COO': 0,
 'Chi4n': 0.0, 'SMR_VSA4': 0.0, 'fr_urea': 0, 'fr_para_hydroxylation': 0, 'fr_ba
...
one': 0, 'fr_nitro_arom_nonortho': 0, 'Chi0v': 1.9855985596534889, 'fr_ArN': 0,
'NumRotatableBonds': 0}
>>> cdkmol = cdk.Molecule(mol)
>>> cdkmol.addh()
>>> print cdkmol.molwt
44.0525588989
>>> (CTRL+Z, Enter)


C:\Documents and Settings\Noel> jython
*sys-package-mgr*: processing new jar, 'C:\cinfony\CDK\cdk-1.0.3.jar'
Jython 2.2.1 on java1.5.0_15
Type "copyright", "credits" or "license" for more information.
>>> from cinfony import cdk, jybel
>>> mol = cdk.readstring("smi", "CC=O")
>>> mol.draw()
>>> print jybel.Molecule(mol).molwt
44.05256
>>> (CTRL+Z, Enter)

Using cinfony from IDLE


Sign in to add a comment