orthonym.assembly.sulfoxide_drawing#

Note

Internal API. Names and behaviour may change between releases.

A charge-separated S(IV) oxide that gets no name as drawn, named through its S=O drawing.

‘R-SO-R′’ SULFOXIDES AND SULFONES, the Blue Book) is often drawn charge-separated, C[S@+]([O-])c1ccccc1 for C[S@](=O)c1ccccc1: one compound, one standard InChIKey. The producers of sulfoxides, sulfinyl groups and the λ4-sulfur rings read the S=O drawing (‘(S)-(methanesulfinyl)benzene’, ‘6,7-dihydro-5H-5λ4-thieno[3,2-d]pyrimidin-5-one’); the charged drawing reaches the general engine only, which names some of them as an ‘oxido…ium’ von Baeyer cation and no name at all for others (the stereo ones of fused rings). When the drawing as written gets no name, sulfoxide_drawing_row() names the S=O drawing: each S+ of three bonds, one a single bond to a terminal O-, gets a double bond to that oxygen and neither charge. A tag on the sulfur keeps its meaning, as the order of its neighbours does not change.

The drawing is built from the standard reading of the input’s lone-pair centres and shown to be the input (s_o_drawing()); the name ships only when OPSIN reads it back to the full standard InChIKey of the input’s standard reading and the lone-pair check of the namer agrees on the drawing (namer._lone_pair_configuration_verified). Its label is systematic_verified at best (never better than the label of the S=O drawing’s own name): the name of another drawing is never certified as the PIN of the drawing as written. A row the drawing as written names is never replaced, so no name or tier of today changes; the default tier keeps its decline.

orthonym.assembly.sulfoxide_drawing.has_charge_separated_sulfoxide(smiles)#

True for a SMILES string with a charge-separated S(IV) oxide (cheap on any other input).

orthonym.assembly.sulfoxide_drawing.s_o_drawing(smiles)#

The SMILES of smiles with every charge-separated S(IV) oxide drawn S=O, or None. It is shown to be the input: one full standard InChIKey of the two standard readings, and every R/S label centres gives the input string is the label it gives the same atom of the drawing (fail closed on a label of one side only).

orthonym.assembly.sulfoxide_drawing.sulfoxide_drawing_row(namer, smiles, written)#

The name_tiered row of smiles named through its S=O drawing, or None: the drawing as written was named (written), the default tier applies, there is no charge-separated S(IV) oxide, or the S=O drawing gets no name that reads back to the input.