openmolecules.org

 
Home » DataWarrior » Bug Reports » Unable to diaplay zwitterion structure correctly in both + and - sperately (Display structure issues)
icon4.gif  Unable to diaplay zwitterion structure correctly in both + and - sperately [message #1910] Fri, 02 June 2023 09:35 Go to next message
SallyS is currently offline  SallyS
Messages: 1
Registered: June 2023
Junior Member
Hi,

I was writing this message to report a display isuue for zwitterion structures.

For instance,

O=C([O-])c1cc(NS(=O)(=O)c2ccccc2Cl)cnc1N1CCC[C@H](C[NH+]2CCC C2)C1
This structure contains both N+ and O-, and the net charge is 0.

However this structure was displayed as attachments 'strcuturedisplay.jpg',/forum/index.php?t=getfile&id=706&private=0

unlike what it could be correctly in attachment 'strcuturedisplay.jpg'/forum/index.php?t=getfile&id=705&private=0


I am not sure its a bug or I could set any function to show the strcuture correctly.
Thank you for your time and I am looking forward to hearing from you soon.

Best regards,
Sally
Re: Unable to diaplay zwitterion structure correctly in both + and - sperately [message #1912 is a reply to message #1910] Sun, 04 June 2023 21:14 Go to previous message
thomas is currently offline  thomas
Messages: 716
Registered: June 2014
Senior Member
When DataWarrior creates a new window from structures converted from an external format (typically SMILES or molfiles; from file or clipboard) then DataWarrior converts these structures into a normalized and canonical form (idcode), which is then stored in a dwar file. Part of the normalization is moving protons in order to remove charges. The canonicalization then classifies all atoms after detecting ring and stereo features for a unique numbering, which allows to create a compact and canonical molecule encoding.

The idea of this is that input structures, which just differ because different atoms are (de-)protonated, are recognized as the same thing.

Admittedly, there are applications, where one needs to dinstinguish different protonation states or zwitter ions from the neutral molecule. If you edit an existing structure within DataWarrior, then the normalization is not done, because DataWarrior assumes that you know what you are doing and that you really intended the drawn protonation state. It just writes the canonicalized drawn structure into the cell. The same happens, if you paste one or multiple structures or SMILES into a structure column: protonation states are retained. (right mouse click on a structure within the table and 'Paste Into Table')

Thus, a solution to you problem is: If you have one or multiple SMILES in the clibboard, then do 'File-Paste'. A new window is created with normalized structures. Press the right mouse button in the first structure cell and choose 'Paste Into Table'. The normalized structure(s) are now replaced by the non-normalized ones retaining the original protonation state.

[Updated on: Sun, 04 June 2023 21:14]

Report message to a moderator

Previous Topic: add calculated values
Next Topic: conformer generation sometimes skips isomer generation
Goto Forum:
  


Current Time: Fri Dec 27 04:07:12 CET 2024

Total time taken to generate the page: 0.02842 seconds