Skip to content

Instantly share code, notes, and snippets.

@egonw
Created May 12, 2009 17:21
Show Gist options
  • Select an option

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

Select an option

Save egonw/110614 to your computer and use it in GitHub Desktop.
mol = cdk.fromSMILES("C=C1C(=O)CC2CC1C2(C)(C)");
mol = cdk.generate2dCoordinates(mol);
ui.open(mol);
jcp.setShowExplicitHydrogens(false)
msSpectrum = medea.predictMassSpectrum(mol);
spectrum.saveSpectrum(msSpectrum, "/Virtual/foo.cml", "cml");
ui.open("/Virtual/foo.cml");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment