Skip to content

Commit

Permalink
Create 'aromatic' SMILES
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Mar 12, 2012
1 parent fc01345 commit 78d82dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Expand Up @@ -529,7 +529,7 @@ public void calculateSMILES(IMolecule molecule,IReturner<String> returner,
IAtomContainer cdkMol = mol.getAtomContainer();

// Create the SMILES
SmilesGenerator generator = new SmilesGenerator();
SmilesGenerator generator = new SmilesGenerator(true);

// Operate on a clone with removed hydrogens
cdkMol = AtomContainerManipulator.removeHydrogens(cdkMol);
Expand Down
Expand Up @@ -113,7 +113,7 @@ public String toSMILES() throws BioclipseException {
String result = ensureFullAtomTyping(hydrogenlessClone);
if (result.length() > 0) return result;

return new SmilesGenerator().createSMILES(hydrogenlessClone);
return new SmilesGenerator(true).createSMILES(hydrogenlessClone);
}

private String ensureFullAtomTyping(IAtomContainer hydrogenlessClone) {
Expand Down
3 changes: 2 additions & 1 deletion plugins/net.bioclipse.inchi/META-INF/MANIFEST.MF
Expand Up @@ -9,7 +9,8 @@ Require-Bundle: org.eclipse.ui,
net.bioclipse.core,
org.openscience.cdk.core,
org.openscience.cdk.interfaces,
org.openscience.cdk.inchi
org.openscience.cdk.inchi,
org.openscience.cdk.smiles
Bundle-ActivationPolicy: lazy
Export-Package: net.bioclipse.inchi.business,
net.bioclipse.inchi.ui,
Expand Down

0 comments on commit 78d82dd

Please sign in to comment.