I want to convert my Inchi into 2D structures for commodity. Usually I use the Molecule to Indigo node. I have noticed that in some cases, the depictions of amines connected to aromatic rings are weird.
As example, there is this molecule.
But in Knime: see attached file.
This is always the same Inchi in the 3 cases.
Could you explain the difference? Is there a way to get the usual depiction?
That is a known problem of the NIST InChI library, and neither a problem of Indigo or KNIME. Any software using the original NIST library will exhibit the same problem.
The decoder sometimes fails competely (InChIs are *not* guaranteed to be reversible), or creates weird tautomers (as in this case).
You could probably use a tautomer normalization step, or compute the InChI key (the key is the same for the decoded form and the normal tautomer) and use that, via the NCI Resolver, to get a better standardized form.
Do you plan to implement an AuxInfo option in your node?
We've added a support for AuxInfo both in the Molecule to Indigo and Indigo to Molecule nodes. Now you can optionally produce AuxInfo in the Indigo to Molecule node, and also you convert this AuxInfo into a molecules using Molecule to Indigo node.
Thank you for your suggestion and would be glad to hear how it works for you!
That's great news! I've made some tests and can't see any error. The molecule of my first message is now correctly depicted.
I won't generalize for every molecules, my dataset is relatively small, but I like what you've done!
Regarding the stereo layer (b layer), I think it is not taken into account.
return me the same stereoisomer.