openmolecules.org

 
Home » DataWarrior » Functionality » Rendering structures from SMILES (SMILES)
Re: Rendering structures from SMILES [message #264 is a reply to message #263] Wed, 05 April 2017 21:13 Go to previous messageGo to previous message
thomas is currently offline  thomas
Messages: 715
Registered: June 2014
Senior Member
Hi JW, if you open a text file (TAB or comma delimited) then DataWarrior automatically analyses all columns, whether they contain SMILES and adds structure columns for every valid SMILES column. SD-Files typically contain only one structure, which is shown as structure column. It would be possible to use the SMILES recognition mechanism also for SD-files, but currently, there is no straight-forward way. What you coulr do, however, is to create a macro, that after opening the SD-file does these tasks:
- (if you don't have any unique compound-IDs, then create a new column with row-numbers
- saves the file
- removes the structure column
- save as text file (TAB delimited)
- open the text file to automatically create structure columns for your SMILES columns
- save again as dwar
- open the original file
- merge with the new dwar that contains structure column for every SMILES using the compound-IDs as merge-keys
Does that solve the issue?

Thomas
 
Read Message
Read Message
Read Message
Previous Topic: Extensibility
Next Topic: LLE column doesn't update with new compound data
Goto Forum:
  


Current Time: Mon Nov 25 14:12:30 CET 2024

Total time taken to generate the page: 0.03688 seconds