Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in helpers ? #53

Open
lpatiny opened this issue Aug 5, 2019 · 1 comment
Open

Bug in helpers ? #53

lpatiny opened this issue Aug 5, 2019 · 1 comment

Comments

@lpatiny
Copy link

lpatiny commented Aug 5, 2019

I have a code like this:

molecule=OCL.Molecule.fromSmiles('CCC(C)C');
for (let i = 0; i < molecule.getAtoms(); i++) {
    console.log(molecule.isAtomStereoCenter(i));
}
for (let i = 0; i < molecule.getAtoms(); i++) {
    console.log(molecule.isAtomStereoCenter(i));
}

// changing one of the atom to 'X'. We create a chiral center
molecule.setAtomicNo(4, 153);

molecule.ensureHelperArrays(OCL.Molecule.cHelperParities);
for (let i = 0; i < molecule.getAtoms(); i++) {
    console.log(molecule.isAtomStereoCenter(i));
}  // still no stereocenter

molecule.ensureHelperArrays(OCL.Molecule.cHelperCIP);
for (let i = 0; i < molecule.getAtoms(); i++) {
    console.log(molecule.isAtomStereoCenter(i));
} // we need to have cHelperCIP to have correctly the chiral center

As far as I remember cHelperParities was enough before

@thsa
Copy link
Contributor

thsa commented Aug 7, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants