# RDKit Add Conformers node changes the chirality of some stereocenters.

**URL:** <https://forum.knime.com/t/rdkit-add-conformers-node-changes-the-chirality-of-some-stereocenters/75560>\
**Category:** Community Extensions\
**Tags:** rdkit\
**Created:** [November 24, 2023, 11:50am UTC](https://forum.knime.com/t/rdkit-add-conformers-node-changes-the-chirality-of-some-stereocenters/75560 "2023-11-24T11:50:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcincilla](https://forum-cdn.knime.com/user_avatar/forum.knime.com/gcincilla/32/41083_2.png) [@gcincilla](https://forum.knime.com/u/gcincilla)\
**Post date:** [November 24, 2023, 11:50am UTC](https://forum.knime.com/t/rdkit-add-conformers-node-changes-the-chirality-of-some-stereocenters/75560/1 "2023-11-24T11:50:22Z")

</div>

Hello everyone,  
I’ve just realized that the _RDKit Add Conformers_ node can change the chirality of stereocenters even when the “_enforce preservation of input chirality_” option is selected.

 ![Screenshot 2023-11-24 at 11.39.55](https://forum-cdn.knime.com/uploads/default/original/3X/5/5/551531fabe45c1dd52983987df0c5c699b941008.png)

In the **attached workflow** 200 conformers are generated starting from a single molecule containing a defined chiral center (`C1N(C)C[C@@H](OC2C=CC=CC=2)C1`) and using the default node options, among which the one to “_enforce the preservation of input chirality_”. However, if the 3D structure of such conformers is visualized, it can be seen that the conformers in row1 and row39 have the chiral center inverted (i.e. “R”) respecting the one of all the other conformers and also the input molecule (i.e. “S”).

The chiral center inverstion can also be seen in the change of the second block of the generated inchikey, which is QTFVFOQCSACSKY- **LLVKDONJSA** -N instead of QTFVFOQCSACSKY- **NSHDSACASA** -N of the starting molecule.  
Oddly enough, when the conformers are exported as SMILES, they are all exported with the same correct stereo center.

Can anyone confirm if this is a bug? Does anyone has any suggestions or comments?

Thank you in advance for your time.  
Best,  
Gio

[rdkit\_conf\_gen\_chiral\_inversion.knwf](https://forum.knime.com/uploads/short-url/vNm4jPGnfi7T3PRLJLzce4ziOPA.knwf) (275.8 KB)

---

<div class="post-metadata">

**Author:** ![gcincilla](https://forum-cdn.knime.com/user_avatar/forum.knime.com/gcincilla/32/41083_2.png) [@gcincilla](https://forum.knime.com/u/gcincilla)\
**Post date:** [November 24, 2023, 1:21pm UTC](https://forum.knime.com/t/rdkit-add-conformers-node-changes-the-chirality-of-some-stereocenters/75560/3 "2023-11-24T13:21:12Z")

</div>

@LunarJourneyer, thanks for your prompt reply.  
Unfortunately I don’t think it’s just a visualization problem for at least 2 reasons:

1. As I explained in my first post the InChI keys generated for the conformers (using _RDKit To InChI_ node) differ in their stereochemistry layer (please see the workflow attached to my first post).
2. In the exported sdf file, the atom parity of the chiral center is “1” in some molecules and “2” in others.  
In my understanding this means that in some way the molecule is modified during the conformational search.  
I attach here the 3D visualization of the ring containing the inverted chiral center. I tried to represent the ring from a similar perspective.

In the orange molecule (Row0) the configuration of the stereocenter is “S” as in the original one:  
 ![Screenshot 2023-11-24 at 14.11.45](https://forum-cdn.knime.com/uploads/default/original/3X/8/4/8417a9d8fe8773daddb3d5e32a89edda7be2e71f.png)

In contrast, in the green molecule (Row1) the configuration of the stereocenter is “R”:  
 ![Screenshot 2023-11-24 at 14.12.21](https://forum-cdn.knime.com/uploads/default/original/3X/e/4/e402703007ec2fd957cd805261f8e7c1261e3b53.png)

Any other comment/suggestion is welcome.

---

<div class="post-metadata">

**Author:** ![gcincilla](https://forum-cdn.knime.com/user_avatar/forum.knime.com/gcincilla/32/41083_2.png) [@gcincilla](https://forum.knime.com/u/gcincilla)\
**Post date:** [November 30, 2023, 2:38pm UTC](https://forum.knime.com/t/rdkit-add-conformers-node-changes-the-chirality-of-some-stereocenters/75560/5 "2023-11-30T14:38:08Z")

</div>

Finally I think I have understood what the problem is and how to avoid it. As you can see from the workflow uploaded below, this problem only seems to happen if the molecules used as input have implicit hydrogen atoms (Hs). In fact, **if explicit hydrogen atoms are added before the conformer generation step, the problem does not seem to occur.** However, it is confusing that if this condition is a requirement, it is not explicitly stated in the _RDKit Add Conformers_ node description.

[rdkit\_conf\_gen\_chiral\_inversion\_solution.knwf](https://forum.knime.com/uploads/short-url/pyO3rew818bPMTPbPIFBUqwCdca.knwf) (1.8 MB)

To avoid potentially serious problems, it would be great if one of the next versions of the _RDKit Add Conformers_ node would require the input molecules to have explicit Hs and refuse to run otherwise. This is exactly what happens in the RDKit conformer generation function when called from its Python interface.  
Additionally (or alternatively) it would be good to mention that the input molecule should have explicit Hs directly in the description of the _RDKit Add Conformers_ node.  
I mention @manuelschwarze so that he is aware of this problem.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [December 7, 2023, 2:39pm UTC](https://forum.knime.com/t/rdkit-add-conformers-node-changes-the-chirality-of-some-stereocenters/75560/6 "2023-12-07T14:39:00Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
