|
|
|
|
|
|
|
|
| Re: Suggestion: add molecular weight calculation for individual compound [message #2464 is a reply to message #2463] |
Fri, 30 January 2026 20:22   |
nbehrnd
Messages: 240 Registered: June 2019
|
Senior Member |
|
|
Hello Thomas
Based on Laurent's question about an explicit run to update values, I notice this does not affect _every_ value assigned by DW. As an example, while replacing benzene by triazene, for instance, I expected the "re-calculate every value, if necessary" equally would replace SMILES and InChI string, too -- which however is not the case. However, only the calculated molecular weight, and the user defined `molecular weight, rounded to two decimals) changed accordingly.
Best regards,
Norwid
|
|
|
|
|
|
| Re: Suggestion: add molecular weight calculation for individual compound [message #2471 is a reply to message #2465] |
Sun, 22 March 2026 11:45  |
thomas
Messages: 744 Registered: June 2014
|
Senior Member |
|
|
Hello Laurent and Norvid,
I indeed see the usefulness of an automatic re-calculation of values, structures, descriptors, SMILES, etc. whenever an interactive change of a value or structure occurs that was used as input to a formula, descriptor calculation, SAR-table generation, docking, ...
That would, however, require to change the DataWarrior architecture and its file format substantially, because all operations that take table data as input to calculate something out of it, would need to be traced. The total history would need to be part of any dwar files. Merging and appending of files would break this mechanism. Some algorithms (e.g. chemical space visualisations) need to know and process the entire table before calculating the position of an individual compound. An interactive change of a structure could cause a cascade of potentially expensive re-calculations of order-dependent calculations, which still would fail in certain cases, e.g. if rows have been deleted. Thus, the complete solution is impossible.
Currently, there is an event mechanism that triggers recalculation of structure descriptors when a structure is changed. This could be extended to also trigger repeating some other simple 'from chemical structure' tasks like property calculations. This would already require extending the file format, because DataWarrior currently does not know, whether a numerical value column contains calculated compound properties nor which structure column was used to create it. I will look into this...
Thomas
|
|
|
|