orthonym.assembly.ocene_drawing#

Note

Internal API. Names and behaviour may change between releases.

A substituted metallocene drawn as a metal(2+) and two cyclopentadienide anions, named with its ocenyl prefix.

The ocene table (data.organometallics) names the bare sandwich (‘ferrocene’); a substituted one was named as a salt whose anion spelling is not that of the compound (‘iron(II) 1-({[4-(cyclopenta-1,3-dien-5-id-1-yl)phenyl]…’), or not at all. OPSIN reads the ocenyl prefix names (‘ferrocen-1-ylmethanol’, ‘4-(ferrocen-1-yl)benzoic acid’, ‘2-(osmocen-1-yl)ethan-1-ol’) to the same ionic drawing, so such a name can be read back to the input.

The ocenyl group has no chokepoint among the producers of substituent prefixes, so it is named through a drawing: the input with the metal and the bare ring removed and the substituted ring saturated is a cyclopentyl compound; the engine names it, and the one ‘cyclopentyl’ prefix of that name is written ‘(<ocene>-1-yl)’. That is a token rewrite with a check of everything the rewrite can change:

  • Alphanumerical order and the numbering it decides (g)): declined when any other word of the name sorts between ‘cyclopentyl’ and the ocenyl name.

  • Enclosing marks: only a whole prefix (not ‘cyclopentyloxy’, not ‘dicyclopentyl’) is rewritten; the ocenyl prefix has a locant, so it is enclosed, and every mark around it steps up as nests them.

  • The structure: the name ships only when OPSIN reads it to the input’s full standard InChIKey.

Scope (fail closed, None otherwise): three fragments, a metal of the ocene table with charge 2+, a bare cyclopentadienide and a cyclopentadienide with its groups on ring carbons (no fused ring), no other charge; a wider tier only (the default tier keeps its own answer). The label is systematic_verified: an ocene has no PIN here.

orthonym.assembly.ocene_drawing.rewrite_surrogate_prefix(name, stem, groups=1)#

name with its one ‘cyclopentyl’ prefix written ‘(<stem>-1-yl)’, or None when the rewrite could change anything but that prefix (see the module docstring); groups is the number of groups on the ring. When the cyclopentane is the parent (‘cyclopentanecarboxylic acid’) the ocene is (‘ferrocenecarboxylic acid’): (the Blue Book) “Ocenes are considered as heterocycles”, ‘ferrocenecarbaldehyde’ (:3963); its five ring positions are numbered as those of cyclopentane, so the locants stay (‘1,2-dimethylferrocene’). A ring with more groups as a prefix is a substituted ‘cyclopentyl’ whose attachment is position 1 (‘[2-(phenylselanyl)ferrocen- 1-yl]’), already enclosed. The order of every rewritten name is checked by the spelling layer’s check.

orthonym.assembly.ocene_drawing.ocene_drawing_row(namer, smiles)#

The name_tiered row of a substituted ocene in scope at a wider tier, or None (the caller names it).