orthonym.assembly.ring_n_carboxylate#

Note

Internal API. Names and behaviour may change between releases.

The ester of a carboxylic acid on a ring nitrogen: ‘ethyl piperidine-1-carboxylate’, ‘tert-butyl morpholine-4-carboxylate’.

“Carboxy groups attached to cyclic parent hydrides or heteroacyclic parent hydrides are always named by using the suffix ‘carboxylic acid’”, the Blue Book: ‘pyrrolidine-1-carboxylic acid (PIN)’), and “All preferred IUPAC names for esters are named by functional class nomenclature”. The carbamate namer cannot cite a ring through the nitrogen (composer._named_n_substituents declines it), so this producer names the acid of the ester by the pipeline (namer.name_pipeline_only) and writes the ester of that acid: the name of the alkyl or aryl group R, then the acid name with ‘carboxylic acid’ changed to ‘carboxylate’. Only when the acid name has one acid and that acid is the ring-nitrogen carboxylic acid; the name passes the read-back gates of the tier. Kept out of composer.py so that file stays within its size budget.

orthonym.assembly.ring_n_carboxylate.ring_n_carboxylate_ester_name(mol, style='pin')#

‘R <ring>-N-carboxylate’ for the one ring-nitrogen carboxylic ester of mol, or None.