there is a new version of the RDKit Nodes available now as nightly build, which gets currently tested by the community. Beside a complete refactoring (that enables now multi-threading wherever possible and node setting and handling alignment between the different nodes) it comes also with some new goodies, e.g. an Atom Highlighting Node and an RDKit Interactive View.
The RDKit Interactive View is fully based on the common KNIME Interactive View and you will not notice a functional difference on first sight. Check out the RDKit Substructure Node, which offers the same view also as direct view, or put an RDKit Interactive View somewhere after the RDKit Substructure Counter node in your workflow. Then you will experience the new capatibility: In the columns that show the substructure count you will see structures being rendered in the table headers instead of just the SMILES headers as the normal table offers. These structures are rendered by using the Default Structure Renderer that is set in the KNIME Chemistry Preferences. The SMILES to be rendered are not picked up from the header name/title, but from properties that have been set for a column. This has the advantage that you may change the title without changing the structure. The current disadvantage is that you need nodes that can set these properties (like the RDKit Substructure Node does).
For developers: To make use of this feature the following sample code shows how to create a new column with the properties needed for rendering structures:
DataColumnSpecCreator creator = new DataColumnSpecCreator("My Column Name", IntCell.TYPE); // The following single line adds the new capability to render SMILES // The first parameter "Smiles" must be constant // The second parameter is the structure to be rendered as SMILES string // The third parameter defines the initial header height or -1 to use the default new AdditionalHeaderInfo("Smiles", "<Put here your SMILES value>", -1).writeInColumnSpec(creator); DataColumnSpec myNewColumnSpec = creator.createSpec(); // Add this spec to a new table
I hope this new view will be useful for some of you.