Skip to content

Instantly share code, notes, and snippets.

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/163575 to your computer and use it in GitHub Desktop.
Save egonw/163575 to your computer and use it in GitHub Desktop.
// Download, filter, and generate 3D conformations
list = pubchem.download(pubchem.search("HIV"));
pyrrolidine = cdk.fromSMILES("C1CNCC1");
matches = cdk.subStructureMatches(list, pyrrolidine);
ui.open(matches);
c=balloon.generate3Dconformations(matches.get(0), 5);
cdk.saveSDFile("Virtual/conf.sdf", c);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment