Skip to content

Instantly share code, notes, and snippets.

@mojaie
mojaie / gist:6265871
Created August 19, 2013 04:56
Example of rdkit molecule property
# coding: UTF-8
from rdkit import Chem
from rdkit.Chem import rdMolDescriptors
mol = Chem.MolFromSmiles('CCC(CC)O[C@@H]1C=C(C[C@@H]([C@H]1NC(=O)C)[NH3+])C(=O)OCC')
print "組成式:"
print rdMolDescriptors.CalcMolFormula(mol)
print "分子量(モル質量):"