# RDKit One Component Reaction losing columns

**URL:** <https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857>\
**Category:** Community Extensions\
**Tags:** rdkit\
**Created:** [October 20, 2014, 5:26pm UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857 "2014-10-20T17:26:59Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChEMBLCurator](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/c/e9bcb4/32.png) [@ChEMBLCurator](https://forum.knime.com/u/ChEMBLCurator)\
**Post date:** [October 20, 2014, 5:26pm UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857/1 "2014-10-20T17:26:59Z")

</div>

Hi

So I am trying to carry out a reaction on a compound. I have a column that contains its ID but when the reaction takes place, the column with the ID is removed and all I have left is:

product

product index

reactant 1 sequence index

reactant 1

Is there a way to retain the ID?

thanks

Louisa

---

<div class="post-metadata">

**Author:** ![Docminus](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/8491ac/32.png) [@Docminus](https://forum.knime.com/u/Docminus)\
**Post date:** [October 21, 2014, 9:52am UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857/2 "2014-10-21T09:52:42Z")

</div>

Not sure about the output of this node (haven't had to work with reactions so far), but if you can't retain columns as you describe, you could join the resulting table with (parts) of your original table?

---

<div class="post-metadata">

**Author:** ![ChEMBLCurator](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/c/e9bcb4/32.png) [@ChEMBLCurator](https://forum.knime.com/u/ChEMBLCurator)\
**Post date:** [October 21, 2014, 1:08pm UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857/3 "2014-10-21T13:08:15Z")

</div>

Thanks but there aren't any common tables to join on. None of the original columns are retained. If it just retained the ID column, it would be fine.

---

<div class="post-metadata">

**Author:** ![richards99](https://forum-cdn.knime.com/user_avatar/forum.knime.com/richards99/32/48547_2.png) [@richards99](https://forum.knime.com/u/richards99)\
**Post date:** [October 21, 2014, 2:08pm UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857/4 "2014-10-21T14:08:10Z")

</div>

As even the RowID isnt retained.

I think I raised this concern in the past, it is quite tricky getting back the original data.

Simon.

---

<div class="post-metadata">

**Author:** ![ChEMBLCurator](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/c/e9bcb4/32.png) [@ChEMBLCurator](https://forum.knime.com/u/ChEMBLCurator)\
**Post date:** [October 21, 2014, 3:13pm UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857/5 "2014-10-21T15:13:14Z")

</div>

Thank you. I'm pleased that it's not just my ineptitude.

Louisa

---

<div class="post-metadata">

**Author:** ![s.roughley](https://forum-cdn.knime.com/user_avatar/forum.knime.com/s.roughley/32/366_2.png) [@s.roughley](https://forum.knime.com/u/s.roughley)\
**Post date:** [October 22, 2014, 10:16am UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857/6 "2014-10-22T10:16:34Z")

</div>

I think that if you use the canonical smiles rdkit node on both your reactants (i.e. input) table, and the Reactant 1 column in the output table, then you can join on those.

But, as Simon mentioned, this has definitely been flagged before, for both this and the 2 component node, that it would be nice to have an option to keep the input table rows associated with their products.

Steve

---

<div class="post-metadata">

**Author:** ![ChEMBLCurator](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/c/e9bcb4/32.png) [@ChEMBLCurator](https://forum.knime.com/u/ChEMBLCurator)\
**Post date:** [October 23, 2014, 12:25pm UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857/7 "2014-10-23T12:25:51Z")

</div>

Thank you. Not sure this will work as this is part of many different nodes doing different things&nbsp;from a curation pipeline but I will give it a go. Also, RDKit doesn't like certain compounds and won't make SMILES from them....this I've also raised.

---

<div class="post-metadata">

**Author:** ![Alastair](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/74df32/32.png) [@Alastair](https://forum.knime.com/u/Alastair)\
**Post date:** [October 27, 2014, 10:39am UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857/8 "2014-10-27T10:39:53Z")

</div>

Have you tried generating SMILES with the Molconverter node from ChemAxon? I find it often works where RDkit fails.  
alastair

---

<div class="post-metadata">

**Author:** ![ChEMBLCurator](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/c/e9bcb4/32.png) [@ChEMBLCurator](https://forum.knime.com/u/ChEMBLCurator)\
**Post date:** [October 27, 2014, 4:57pm UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857/9 "2014-10-27T16:57:35Z")

</div>

Alastair I'm not sure what you mean by this?!&nbsp;

Whether I use SMILES or Molfile etc, when it gets passed through the 'one component reaction', all the columns are lost, regardless, apart from the Reactant and Product columns.

Or are you suggesting the smiles as an alternative for the reacting components?

thanks

Louisa

---

<div class="post-metadata">

**Author:** ![Alastair](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/74df32/32.png) [@Alastair](https://forum.knime.com/u/Alastair)\
**Post date:** [November 4, 2014, 10:19am UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857/10 "2014-11-04T10:19:08Z")

</div>

Sorry, got my threads mixed up - I think you were complaining of SMILES parsing errors.

---

<div class="post-metadata">

**Author:** ![ChEMBLCurator](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/c/e9bcb4/32.png) [@ChEMBLCurator](https://forum.knime.com/u/ChEMBLCurator)\
**Post date:** [September 15, 2015, 12:51pm UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857/11 "2015-09-15T12:51:24Z")

</div>

Is there any update on this?

&nbsp;

thanks

---

<div class="post-metadata">

**Author:** ![manuelschwarze](https://forum-cdn.knime.com/user_avatar/forum.knime.com/manuelschwarze/32/947_2.png) [@manuelschwarze](https://forum.knime.com/u/manuelschwarze)\
**Post date:** [September 17, 2015, 10:01am UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857/12 "2015-09-17T10:01:10Z")

</div>

We will put this on our to do list. There should be indeed data available to join the reaction node's output table with the input table to take over other columns. I am planning to put in a new&nbsp;option to include the Reactant 1&nbsp;Row ID and Reactant 2 Row ID (only for Two Componet Reactions). This option will be disabled by default so that we are backward compatible with old workflows.

-Manuel

---

<div class="post-metadata">

**Author:** ![ChEMBLCurator](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/c/e9bcb4/32.png) [@ChEMBLCurator](https://forum.knime.com/u/ChEMBLCurator)\
**Post date:** [September 17, 2015, 11:31am UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857/13 "2015-09-17T11:31:06Z")

</div>

Thanks for the update.&nbsp;

Louisa

---

<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:** [April 21, 2023, 9:10pm UTC](https://forum.knime.com/t/rdkit-one-component-reaction-losing-columns/6857/14 "2023-04-21T21:10:38Z")

</div>

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