Re: Generate conformers - write to file does nothing [message #992 is a reply to message #991] |
Thu, 09 July 2020 18:23 |
Paul
Messages: 16 Registered: May 2019 Location: United States
|
Junior Member |
|
|
Thank you - your files helped me to determine the reason my attempts to write conformers to files have failed.
After I downloaded your files, I was able to write conformers to file from those dwar files.
Immediately noticeable was that your file contained only an option "Structure" in the Structure Column dropdown menu in the generate conformers dialog.
My files contained only an option "Structure of SMILES" in the same dialog, even though they also contain 3D structures (data column 3-D structure of SMILES) that are clearly visible in Datawarrior's 3D-Structure pane. With this option, writing conformers to file generates an empty DWAR container.
When I Delete the SMILES and/or structure of SMILES column(s), the image in the 3D-Structure pane disappears. This suggested that the conformer displayed in the 3D viewer pane was somehow dynamic, but when I edit the SMILES, neither the structure of SMILES nor the previously generated conformer update to the new SMILES.
Since you had shown me that writing conformers to file could work, I then continued to try different approaches to obtaining a file without a Structure of SMILES column, but instead a Structure column.
I saved my file as SDF, choosing 3D structure if available. When I opened the new SDF, I then had the desired "Structure" column (not "Structure of SMILES). The SDF still contained a SMILES column, but DWAR used the 3D structure instead of generating structures from SMILES. Writing conformers to file now works!
However, if a DWAR file contains both SMILES and 3D structures, Datawarrior uses the SMILES > Structure of SMILES and will not write conformers to file.
At last, I successfully wrote conformers to file (either from the SDF or after saving it back to DWAR, so long as the SDF did not contain a SMILES column)! The SMILES column must be deleted after opening the SDF, not from the DWAR file, then saved to a DWAR file.
So then, I am thinking that there must be a better way to accomplish these ends without (1) generating a conformer from structure of smiles in Datawarrior, (2) Saving it to SDF, and (3) Using the new SDF to generate conformers (or deleting the smiles column then saving it back to DWAR).
On further exploration, I determined that I can write conformers to file without the SDF intermediate if I generate 2D atom coordinates (from Structure of SMILES, of course).
The generate conformers dialog does not change - the only structure available in the dropdown menu is still Structure of SMILES (even though I now have columns for 3D-structure of smiles, Structure of SMILES [2d coordinates], and Structure of SMILES).
Conclusions:
Datawarrior's Generate Conformers > Structure Column dropdown menu lists only one structure column, even when more are available.
Datawarrior will generate conformers from Structure of SMILES within a current document (SDF or DWAR), but not to a new document. Attempts to write to file generate empty DWAR containers.
Datawarrior will write conformers to file when the DWAR-generated Structure of SMILES [2D coordinates] data column exists, even though there is no apparent difference between the generate conformers dialog (it indicates conformers are generated from Structure of SMILES).
Thank you very much for helping me work this out.
Now I'm wondering - does the Structure dropdown menu ever populate with more than one option?
Best Regards,
Paul
|
|
|