openmolecules.org

 
Home » DataWarrior » Functionality » manually highlight atom/substructure in structure editor and structrue cell (is it possible to highlight or color atom/substructure in structure editor and structrue cell?)
manually highlight atom/substructure in structure editor and structrue cell [message #2089] Mon, 08 January 2024 04:19 Go to next message
Hong is currently offline  Hong
Messages: 2
Registered: January 2024
Junior Member
The functionality seems to be included in datawarrior because atoms were hilighted when do a substructure filtering. Is it possible to add a color function for manually highlight in structral editor and structral cell in the Table view?
Re: manually highlight atom/substructure in structure editor and structrue cell [message #2090 is a reply to message #2089] Mon, 08 January 2024 10:50 Go to previous messageGo to next message
thomas is currently offline  thomas
Messages: 715
Registered: June 2014
Senior Member
Currently, DataWarrior has two mechanisms for adding color to atoms:
- automatic by current structure filter settings or by similarity to the current reference row. This can be changed in the table header popup menu: "Highlight Structure By..."
- explicitly by a hidden column that defines atom colors for an associated structure column. An example would be the pKa reference file. Currently, there is no way to easily edit atom color by the user.

One could think of extending both coloring mechanisms for users to be more useful, e.g. let users provide a list of molecules or substructures that cause automatic coloring. One could also use substructure background highlighting. Or, as you propose, one could add an option in the editor to add color to individual atoms and store these colors inside the hidden column. Your question implies that you would like to edit atom colors individually for every structure, right?
Re: manually highlight atom/substructure in structure editor and structrue cell [message #2091 is a reply to message #2090] Mon, 08 January 2024 13:14 Go to previous message
Hong is currently offline  Hong
Messages: 2
Registered: January 2024
Junior Member
Hi Thomas,
Thansk very much for your timely reply.
Yes, I wanted to edit atom colors individually for every structure. e.g. I want to highlight sites of metabolite of some CYP inhibitors.
I noticed the pKa reference file and found some lines contain "red:0" "blue:1". I guessed it might be the color and innner atom index but had no idea to do it in datawarrior interface. Making hidden color column and atom index visible to the user might make it possible for the user to edit atom colors individually.
Thanks again for your time and again for your contributiing to open soource tool.

Previous Topic: Bypass "Maximum number of open filters reached." message on file open?
Next Topic: retreive data from sqlite database?
Goto Forum:
  


Current Time: Fri Nov 22 06:01:35 CET 2024

Total time taken to generate the page: 0.03751 seconds