-
Notifications
You must be signed in to change notification settings - Fork 27
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
Comments
in the OpenChemLib for Java version this works correctly. For efficiency
reasons, currently, CIP assignments are already calculated with
Molecule.cHelperParities.
It must be a problem of the JavaScript version
…On Mon, Aug 5, 2019 at 10:08 AM Luc Patiny ***@***.***> wrote:
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 centermolecule.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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#53?email_source=notifications&email_token=ACNFEBWY4ATE4PFSVEQZH7DQC7NX7A5CNFSM4IJIRWZ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDKDGSQ>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACNFEBR7NHDS6XRAYXXDYNDQC7NX7ANCNFSM4IJIRWZQ>
.
--
The information of this email and in any file transmitted with it is
strictly confidential and may be legally privileged.
It is intended solely
for the addressee. If you are not the intended recipient, any copying,
distribution or any other use of this email is prohibited and may be
unlawful. In such case, you should please notify the sender immediately and
destroy this email.
The content of this email is not legally binding unless
confirmed by letter.
Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorized to state them to be the views of the sender's company.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a code like this:
As far as I remember
cHelperParities
was enough beforeThe text was updated successfully, but these errors were encountered: