Skip to content

Instantly share code, notes, and snippets.

@egonw
Created January 16, 2009 20:24
Show Gist options
  • Select an option

  • Save egonw/48101 to your computer and use it in GitHub Desktop.

Select an option

Save egonw/48101 to your computer and use it in GitHub Desktop.
// Bioclipse variant of SMILES Depict
var smiles = "CC=O"
var aceticAcid = cdk.fromSMILES(smiles)
aceticAcid = cdk.generate2dCoordinates(aceticAcid)
cdk.saveMDLMolfile(aceticAcid, "/Virtual/aceticAcid.mol")
ui.open("/Virtual/aceticAcid.mol") // should open JChemPaint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment