Skip to content

Instantly share code, notes, and snippets.

Created June 13, 2012 13:17
Show Gist options
  • Save anonymous/2923979 to your computer and use it in GitHub Desktop.
Save anonymous/2923979 to your computer and use it in GitHub Desktop.
import chemkit
st = """ 2 1 0 0 0 0 999 V2000
-0.4125 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.4125 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0"""
f = chemkit.MoleculeFile()
f.setFormat("sdf")
f.readString(st)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment