Skip to content

Instantly share code, notes, and snippets.

@chao1224
Created June 5, 2018 02:37
Show Gist options
  • Save chao1224/271ae16d1681d86c0b144a21a95f439f to your computer and use it in GitHub Desktop.
Save chao1224/271ae16d1681d86c0b144a21a95f439f to your computer and use it in GitHub Desktop.
from rdkit import Chem
from rdkit.Chem import AllChem
raw_smiles = 'CC'
molecule = Chem.MolFromSmiles('CC')
canonical_smiles = Chem.MolToSmiles(molecule)
print raw_smiles
print canonical_smiles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment