orthonym.rules.ring_ketone_forms#
Note
Internal API. Names and behaviour may change between releases.
A ring ketone of a fused substituent group cites its added hydrogen and its hydro prefixes.
A ring atom with a double bond to an atom outside the ring (a ring C=O, C=S, C=N: the ‘oxo’,
‘sulfanylidene’ and ‘imino’ prefixes) has no ring double bond, so the ring is not the bare mancude
parent: the name cites added or indicated hydrogen and hydro prefixes, “‘Added indicated
hydrogen’” (the Blue Book) and (:24695), ‘pyridin-1(2H)-yl (preferred prefix)’.
‘(4-oxoquinazolin-3(4H)-yl)acetic acid’ and ‘3-(4-chlorophenyl)-4-oxo-3,4-dihydroquinazolin-2-yl’,
not the catalogue’s mancude stems ‘4-oxoquinazolin-3-yl’ and ‘4-oxoquinazolin-2-yl’. The fusion name of
the ring as drawn is rules.fused_forms.fused_system_form’s; this module routes such a ring to it
(best-effort tier only: the callers are gated on allow_mancude).
- orthonym.rules.ring_ketone_forms.has_exocyclic_multiple_bond(mol, ring_atoms)#
True when a ring atom carries a double or triple bond to an atom outside the ring.
- orthonym.rules.ring_ketone_forms.ketone_core_numbering(mol, ring_atoms, attach, deco_carriers)#
(pos, tail)of a fused ring core with a ring ketone, by its fusion name (ring_substituents._fused_form_core_numbering), else None.
- orthonym.rules.ring_ketone_forms.decorated_ketone_fused_name(mol, ring_atoms, attach, decorations)#
The prefix of a fused ring substituent group that has a ring ketone, from its fusion name: the decorations
[(ring atom, prefix name)]alphabetized and multiplied, then the form’s tail (‘4-oxo’ + ‘quinazolin-3(4H)-yl’). None when the ring has no ketone or the form declines.