From: Syed A. R. <as...@eb...> - 2008-11-06 14:44:45
|
Hello, Please update the code in AtomContainerManipulator as percieveAtomTypesAndConfigureAtoms tries to configure PseudoAtoms (i.e. "R" etc) leading to modifications in the original molecule. This update will skip PseudoAtom configuration. public static void percieveAtomTypesAndConfigureAtoms(IAtomContainer container) throws CDKException { CDKAtomTypeMatcher matcher = CDKAtomTypeMatcher.getInstance(container.getBuilder()); for (IAtom atom : container.atoms()) { if(atom instanceof PseudoAtom){ }else{ IAtomType matched = matcher.findMatchingAtomType(container, atom); if (matched != null) { AtomTypeManipulator.configure(atom, matched); } } } } Best wishes, Asad -- **************************************************************** Syed Asad Rahman (BEngg, PhD) Research Scientist EMBL-EBI Phone:+44-(0)1223-492537 Wellcome Trust Genome Campus Fax:+44-(0)1223 494486 Hinxton CB10 1SD E-mail: as...@eb... Cambridge, UK Home Page: www.ebi.ac.uk/~asad ***************************************************************** |