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: [EMAIL PROTECTED]
Cambridge, UK                            Home Page: www.ebi.ac.uk/~asad

*****************************************************************



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to