depict icon indicating copy to clipboard operation
depict copied to clipboard

Salt overlapping bond

Open baoilleach opened this issue 4 years ago • 6 comments

Salt placement is usually great but I came across the following where the Br- overlaps a bond.

C=C(C[N+](C)(C)C)OC(=O).[Br-]

png

baoilleach avatar Oct 16 '20 08:10 baoilleach

Thanks very hard to think of a simple fix but will have a think. Basically the way it works is adds in a "longer" bond that isn't shown.

johnmay avatar Oct 17 '20 12:10 johnmay

Oh actually perhaps for nonterminal X>3 I should just put it near the closest terminal bond.

johnmay avatar Oct 17 '20 12:10 johnmay

OT: btw, is the OHC abbreviation common?

egonw avatar Oct 17 '20 14:10 egonw

Yes it's reverse CHO... Things do get confusing though - RDKit recently added abbreviations and had some confusion examples where they used half forward, half backwards "CH3(O)NH-" (i think) - this makes it look like the O is connected to the first Carbon. We would make that "H3C(O)HN-" which matches ChemDraw and is the most logical way to do it - otherwise it gets very messy. For RDKit's way it would be valid if you wrote "CH3NH(O)-" but then it gets hard to join on to the Nitrogen since it's no longer at the end of the formula CH3NHO- would make it look like it joins on the O.

Here is a screenshot from ChemDraw - I drew the top and rotated it 180.

image

johnmay avatar Oct 18 '20 21:10 johnmay

Reopen - don't think it's fixed yet

johnmay avatar Feb 12 '22 17:02 johnmay

I linked the wrong issue :-)

johnmay avatar Feb 12 '22 17:02 johnmay