This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 "分子量(モル質量):" |