orthonym.assembly.radical_assembly#

Note

Internal API. Names and behaviour may change between releases.

Assemblies of identical parent radicals, the candidate of the radical floor for centres in separate parts of a molecule.

assembly/radical_floor.py names several monovalent radical centres as the free valences of ONE parent (a ring system or an acyclic chain that holds them all,, universal_substituent.name_universal_polyradical). A molecule whose centres sit in different parts of the structure has no such parent. When those parts are identical and joined by one linker that the floor can name as a polyvalent group, the book names the molecule as an assembly of identical units, “ASSEMBLIES OF PARENT RADICALS” (the Blue Book): “Polyradicals with radical centers identically derived from the same parent hydride or the same characteristic group (except for polyacyl or polyamide radicals described in and, respectively) but located in different parts of the structure are named, if possible, according to the principles for nomenclature of assemblies of identical units linked by multivalent substituents (see.” Its examples are ‘(naphthalene-2,6-diyl)bis(disulfanyl) (PIN)’, ‘(2,4-dimethylpentane-2,4-diyl)bis(oxyl) (PIN)’ and ‘(cyclobutane-1,3-diyl)bis(peroxyl) (PIN)’ (with ‘bis(oxidanyl)’ and ‘bis(dioxidanyl)’ as the second spelling).

The name built here is (<linker>-diyl)bis(<unit>). The molecule is cut at bridges (bonds that no ring holds) into k identical units, each holding the radical centres that no bridge separates, and the one linker that holds none (unit_splits()). The linker is named by the floor as the polyvalent group whose free valences are the atoms that the units were bonded to (universal_substituent.name_universal_polyradical), so it must be one ring system or one acyclic chain that holds every one of those atoms. A single ring that holds them is spelled by its book name, numbered with the free valences as a set (_BOOK_RING_FREE_VALENCES, rules.monocycle_forms: ‘benzene-1,2-diyl’, ‘4H-imidazole-2,5-diyl’, ‘piperidine-4,1-diyl’, / /, never by skeletal replacement (‘cyclohexa-1,3,5-triene’, ‘1-azacyclohexane’); when the units are bonded through one-atom divalent groups the host is named with its valences on the atoms of the groups and those cited after it (‘ethane-1,2-diylbis(oxy)’,, which is tried before the linker as one chain with its heteroatoms. The unit is named as a parent radical, in either of two forms:

  • the radical of the part with the bond to the linker closed by a hydrogen: the radical of the parent hydride of its atom with the groups on it as prefixes (‘oxyl’, ‘azanyl’, ‘dimethylsilyl’, ‘methylboranyl’; the parent hydride radical comes from the element, rules.radicals._parent_hydride_radical_name);

  • when the centre is a bare atom bonded to a ring or chain that carries the bond to the linker, that group as a divalent substituent of the radical of the atom: ‘(2,2,6,6-tetramethylpiperidine-4,1-diyl)oxyl’, the first locant being the atom bonded to the linker, a divalent group cited before the group it is bonded to).

The names are offers of the radical offer (assembly/radical_offer.py): inside read_back_policy.radical_last_resort only, and each ships only when OPSIN -r reads it back to the input’s full InChIKey and radical graph, so a unit that the name does not place (a site the name leaves open) never ships. The row is systematic_verified, never a PIN: the book gives the PIN form for the examples above, and this namer does not check a molecule against that form.

class orthonym.assembly.radical_assembly.RadicalUnit(atoms, centres, root, anchor)#

Bases: object

One part of the molecule that holds radical centres: its atoms, its centres, root (the atom of the part that is bonded to the linker) and anchor (the atom of the linker that root is bonded to).

atoms: FrozenSet[int]#
centres: FrozenSet[int]#
root: int#
anchor: int#
class orthonym.assembly.radical_assembly.UnitSplit(units, linker)#

Bases: object

The molecule as identical radical units and the linker (every other atom).

units: Tuple[RadicalUnit, ...]#
linker: FrozenSet[int]#
orthonym.assembly.radical_assembly.unit_splits(mol)#

The ways to cut mol into two or more identical radical units and the one linker between them, the smallest units first.

Every radical centre is monovalent and no atom carries a charge or an isotope. A unit is a part that one bridge cuts off, with the centres that no bridge separates (a ring system with several centres is one unit); the parts are the same rooted structure, pairwise disjoint, and bonded to different atoms of the linker.

orthonym.assembly.radical_assembly.split_identical_units(mol)#

The first (smallest-unit) split of mol, or None.

orthonym.assembly.radical_assembly.radical_assembly_names(mol, book_forms=True, acyloxy_leaf=True, mechanical_units=False)#

The names of mol: (<linker>-diyl)bis(<unit>) for each split of the molecule into identical units and each spelling of the unit, or nothing. book_forms is the spelling of the linker and mechanical_units the mechanical spelling of the groups of the unit (the retry of the floor, book_prefixes.mechanical_forms): the linker keeps the book’s name of its ring when only the spelling of a group of the unit stops OPSIN from placing the radical.