Skip to content

Instantly share code, notes, and snippets.

@egonw
Created November 20, 2008 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egonw/27116 to your computer and use it in GitHub Desktop.
Save egonw/27116 to your computer and use it in GitHub Desktop.
# just illustrative, and only works on a file only I have, but you get the idea
ui.open("/PeptideMimetics/10.cml")
oxygen = jcp.getModel().getAtomContainer().getAtom(11)
jcp.addAtom("C", oxygen)
newCarbon = jcp.getModel().getAtomContainer().getAtom(12)
jcp.addPhenyl(newCarbon)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment