Skip to content

Instantly share code, notes, and snippets.

@johnmay
Created September 29, 2014 10:48
Show Gist options
  • Select an option

  • Save johnmay/643319c46e8b06dc7c12 to your computer and use it in GitHub Desktop.

Select an option

Save johnmay/643319c46e8b06dc7c12 to your computer and use it in GitHub Desktop.
IChemObjectBuilder bldr = SilentChemObjectBuilder.getInstance();
SmilesParser smipar = new SmilesParser(bldr);
SmilesGenerator smigen = SmilesGenerator.unique();
System.out.println(smigen.create(smipar.parseSmiles("c1cc2c(cc1)cccc2")));
System.out.println(smigen.create(smipar.parseSmiles("C1=CC2=C(C=C1)C=CC=C2")));
System.out.println(smigen.create(smipar.parseSmiles("C=1C=C2C(=CC=1)C=CC=C2")));
System.out.println(smigen.create(smipar.parseSmiles("C1=CC=2C(C=C1)=CC=CC=2")));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment