epam / epam/Indigo

Stereo bonds are flipped when applying a stereo center type

Open
#366 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
406
Forks
134
Avg merge
2d 11h
Merged PRs (30d)
24

Description

Stereo bonds are flipped when applying a stereocenter type:

IndigoObject mol = indigo.loadMolecule("AbsoluteStereo.mol");
foreach (IndigoObject atom in mol.iterateStereocenters())
{
atom.ChangeStereocenterType(INDIGO_AND);
}

Input chemistry:
![grafik](https://user-images.githubusercontent.com/70947872/111816635-5b8c3f80-88dd-11eb-80f9-5c7aa81d920a.png)

After changing the stereo center type to AND the stereo bonds are flipped:
![grafik](https://user-images.githubusercontent.com/70947872/111816756-81194900-88dd-11eb-9e62-e44bee7d0906.png)

Same things happen when changing the stereo center type to ABS:

IndigoObject mol = indigo.loadMolecule("RelativeStereo.mol");
foreach (IndigoObject atom in mol.iterateStereocenters())
{
atom.ChangeStereocenterType(INDIGO_ABS);
}

Input chemistry:
![grafik](https://user-images.githubusercontent.com/70947872/111817079-db1a0e80-88dd-11eb-93a2-240602f02909.png)

Output chemistry:
![grafik](https://user-images.githubusercontent.com/70947872/111817131-ec631b00-88dd-11eb-88cc-f83e0b4c9006.png)

File are attached:
[AbsoluteStereo.zip](https://github.com/epam/Indigo/files/6172977/AbsoluteStereo.zip)
[RelativeStereo.zip](https://github.com/epam/Indigo/files/6172979/RelativeStereo.zip)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.