User 870ab5b546
31-10-2006 19:26:06
I have this code:
I find that hydrogenize() has changed stereo from 0 to 64 for *every* bond in mol. Any reason why?
Code: |
Molecule origMol = (Molecule) mol.clone(); int origNumBonds = origMol.getBondCount(); mol.hydrogenize(true); for (int bIndex = 0; bIndex<origNumBonds; bIndex++) { MolBond mb = (MolBond) mol.getEdge(bIndex); int stereo = mb.getFlags() & MolBond.STEREO_MASK; MolBond origmb = (MolBond) origMol.getEdge(bIndex); int origStereo = origmb.getFlags() & MolBond.STEREO_MASK; if (stereo != origStereo) { System.out.println("ChemUtils.addImplicitH: " + "resetting a " + mb.getAtom1().getSymbol() + "-" + mb.getAtom2().getSymbol() + " bond from stereo " + stereo + " back to original stereo " + origStereo); mb.setFlags(origmb.getFlags()); } // if stereo has been changed by hydrogenizing } // for each original bond in mol |
I find that hydrogenize() has changed stereo from 0 to 64 for *every* bond in mol. Any reason why?