Comments (2)
Thinking in depth about it showed that implementing this as suggested would break backward compatibility of all RDKit calculation nodes. The current settings controlling the behavior are "New column name" (String) and "Replace source column" (bool). The new proposed settings are "Append" (bool) and "New column name" (String).
The following mapping could be done (and NOT be done):
Old: New column name != source column, Remove source column True
New: Append column True, New column name defined (!= source column)
BUT: Source column would remain!!! Bad! => This is the current default main use case and in my opinion a showstopper for the suggested approach
Old: New column name == source column, Remove source column True
New: Append column False (Replaces source column)
Works
Old: New column name != source column, Remove source column False
New: Append column True, New column name defined (!= source column)
Works
Not applicable (invalid):
Old: New column name == source column, Remove source column False
New: Append column True, New column name defined (== source column)
As it would be very confusing for RDKit node users to have suddenly the default use case changed or not supported anymore, two different alternatives come to mind:
-
Introduce beside Append (bool) and New Column Name also the Remove Source Column (bool) option, which would make only sense if Append = true to generate a new column. => This makes things more complex. Not my favorite.
-
Keep all settings as they are, but change defaults:
- New column name: Default will be the same as input column name (determined by auto-guessing as before) (was containing a function specific postfix in the past)
- Remove source column: Default will be true (was false in the past)
- Change node logic that keeps result column at the same index as input column if the new column has the same name and the remove source column option is true.
- Write a note in the node documentation that it will replace the input column at the same index, if new column name is set to the same name as input column name and the remove source column option is enabled
Old nodes will continue to function as before. New nodes will work as anticipated – no clicks anymore, no renaming if one would like to replace the input column with the result column
I would propose to implement this second alternative, which is fully backward compatible and quite easy to change in the code.
from knime-rdkit.
Agree. 2. makes sense.
from knime-rdkit.
Related Issues (20)
- Log4j Security Vulnerability HOT 1
- Pre-condition Violation Number of atom mismatch Violation occurred on line 564 in file Code\GraphMol\ROMol.cpp Failed Expression: conf->getNumAtoms() == this->getNumAtoms() RDKIT: 2017.09.1 BOOST: 1_56 HOT 2
- RDKit 2D Depiction option missing for formats in preferred render settings
- Rendering defaults and render options
- Knime RDKit nodes "RDKit Canon Smiles" and "RDKit to InChI" are crashing Knime 4.4.4 HOT 11
- Trying to understand the RDKit Aromatizer node and the comparison to 0 to determine success HOT 4
- What fingerprint settings does the RDKit Molecule Substructure Filter use? HOT 1
- RDKit From Molecule node can't render molecule with wedged bond HOT 1
- RDKit Rooted Fingerprints Have Wrong Results in KNIME
- Switch to using new R-Group Decomposition code HOT 4
- Add RDKit renderer for SMILES, MOL, and SDF cells HOT 1
- Add MolStandardize node
- New 3D descriptor Node
- Support chirality in the substructure searching nodes
- Reaction nodes: support "chain reactions"
- New Node: Generating an SVG column as rendering
- fix link to RDKit book in reaction nodes
- Provide better error messages when RDKit nodes fail completely or by row HOT 1
- support enhanced stereo in the nodes which do substructure searching
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knime-rdkit.