orthonym.decomposition.ester_in_alcohol#
Note
Internal API. Names and behaviour may change between releases.
The ester name ‘R <acid>-ate’ whose alcohol part R holds a senior ester of a ring-nitrogen carboxylic acid.
The acid on a ring nitrogen is a carboxylic acid (the Blue Book, ‘tetraazane-1-carboxylic acid (PIN) [not (triazan-1-yl)carbamic acid; the carboxylic acid is senior to the carbonic acid derivative]’; ‘pyrrolidine-1-carboxylic acid (PIN)’), and of the esters of a polyester the senior one is the parent of the PIN:
applies “seniority of rings, ring systems, and chains… (see through “ (‘phenyl
3-(benzoyloxy)benzoate (PIN) [not 3-(phenoxycarbonyl)phenyl benzoate…]’). So ‘1-(tert-butoxycarbonyl)piperidin-4-yl
benzoate’ names the right molecule but not by its PIN, ‘tert-butyl 4-(benzoyloxy)piperidine-1-carboxylate’ (piperidine
is senior to benzene,. The decomposition ester assembler builds the name on the ester it cut; when a
ring-nitrogen ester of the molecule outranks it (rules.ester_seniority with the ring-nitrogen acid ranked by its
ring), the name is labelled below the PIN (label only, metrics.provenance.record_non_pin_label).
- orthonym.decomposition.ester_in_alcohol.senior_ring_n_ester_outranks(parent_smiles, acid_smiles)#
True when
parent_smileshas a ring-nitrogen ester that outranks every ester whose acid half is the acid fragmentacid_smilesof the name (the ester the name is built on).
- orthonym.decomposition.ester_in_alcohol.ring_n_ester_is_senior(mol, c_idx)#
True when the ester of the ring-nitrogen carboxylic acid whose carbonyl carbon is
c_idxoutranks every other carboxylic ester ofmol, by:func:_key): its ester is then the parent of the PIN (‘tert-butyl 4-(acetyloxy)piperidine-1-carboxylate’).
- orthonym.decomposition.ester_in_alcohol.ring_n_diester_matches(mol)#
The two ester matches (carbonyl C, =O, O, organyl C) of a molecule whose carboxylic esters are one ester of a ring-nitrogen carboxylic acid and one ester of a carboxylic acid on the same ring system, or None. The two acids are one diacid, ‘pyrrolidine-1,2-dicarboxylic acid’ ‘pyrrolidine-1-carboxylic acid (PIN)’), and the molecule is its mixed diester, ‘1-tert-butyl 2-methyl pyrrolidine-1,2-dicarboxylate’, the Blue Book, organyl locants as in ‘1,1-diethyl 3-methyl butane-1,1,3-tricarboxylate (PIN)’:31783).
- orthonym.decomposition.ester_in_alcohol.label_ester_with_acid_ester_alcohol(name, alkyl_prefix, fragment_smiles, parent_smiles)#
name, recorded below the PIN (by its alcohol wordalkyl_prefix) when a ring-nitrogen ester outranks the ester the name is built on (senior_ring_n_ester_outranks()).