Skip to content

Instantly share code, notes, and snippets.

@jonalv
Created March 24, 2009 16:17
Show Gist options
  • Save jonalv/84188 to your computer and use it in GitHub Desktop.
Save jonalv/84188 to your computer and use it in GitHub Desktop.
mol = cdk.fromSMILES("C(C1C(C(C(C(O1)O)O)O)O)O");
mol = cdk.addExplicitHydrogens(mol);
cdk.generate3dCoordinates(mol);
fileName = "/Virtual/" + cdk.molecularFormula(mol) + ".cml";
cdk.saveMolecule(mol, fileName, true);
ui.open(fileName);
jmol.minimize();
jmol.run("move 0 360 90 -20 0 0 0 0 5");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment