orthonym.assembly.complex_ring_group#
Note
Internal API. Names and behaviour may change between releases.
A spiro ring system that stands beside other ring systems in the molecule.
The complex-ring namers (rules.spiro) read the whole molecule as one ring system: a ring
substituent next to the spiro system adds a ring to the count of rings, a ring-ring bond to the
ring graph, and none of them recognises the system any more (phenyl on 9,9’-spirobi[fluorene]
was named as a fluorene with two substituents and then declined). and treat the
spiro system as ONE ring system, and a ring substituent of it as a substituent: “ The
senior ring or ring system has the greater number of rings” (the Blue Book), the system
ranked by “ Polycyclic systems… (a) spiro ring system” (:19536).
senior_spiro_core finds the spiro system that is strictly senior to every other ring system of
the molecule, rules.ring_selection.ring_system_score of each ring-bond-connected group
of ring atoms) and cuts it out of the molecule with its ring atoms only. The complex-ring namers
then name that stand-alone ring system as they always did, and the result is carried back to the
atoms of the molecule: the substituents, the ring ones included, are named and cited on that
numbering by the caller (composer._enrich_complex_ring_with_subs).
Where the numbering of the system has symmetry, the numbering that cites the lowest locants to the substituents all together is taken “Lowest set of locants”, the Blue Book;
(f),:3301), and a tie between numberings that place different substituents differently is
left to the criteria below it (g) alphanumerical order of the names), which this module does not decide: it declines, so the molecule keeps the route it had.
- class orthonym.assembly.complex_ring_group.SpiroCore(mol, to_full, atoms)#
Bases:
NamedTupleThe ring-only molecule of a spiro system and the molecule atom of each of its atoms.
- mol: Mol#
Alias for field number 0
- to_full: Tuple[int, ...]#
Alias for field number 1
- atoms: FrozenSet[int]#
Alias for field number 2
- orthonym.assembly.complex_ring_group.ring_groups(mol)#
The ring-bond-connected groups of ring atoms: fused, bridged and spiro systems each one group. A single bond between two ring atoms of different systems (a ring substituent, a link of a ring assembly) is no ring bond and joins nothing.
- orthonym.assembly.complex_ring_group.assembly_units(mol, groups)#
The ring groups, with the identical groups that are bonded to each other directly merged into one unit: a ring assembly, ‘[1,1’-biphenyl]’, ‘2,2’-binaphthalene’) stands in the seniority of ring systems as one system whose rings and skeletal atoms are the sums of its components “Seniority criteria for ring assemblies are based on the appropriate criteria for rings and ring systems given in “, the Blue Book).
- orthonym.assembly.complex_ring_group.senior_spiro_core(mol, features=None)#
The spiro system of
molthat is the parent: strictly senior to every other ring system of it, a ring assembly counting as one system (assembly_units), as a ring-only molecule; None when the molecule has one ring system, when the senior one is not a spiro system, when two systems tie, when a principal characteristic group is on a ring system (_principal_group_declines) and when a ring hangs on a chain of the system.
- orthonym.assembly.complex_ring_group.lowest_locant_numbering(mol, core, atom_to_locant)#
atom_to_locant(keys: atoms of the molecule) renumbered by the symmetry of the ring system: the lowest locants of the substituents all together (f)), then the lowest locant for the substituent cited first (g)); None when numberings that no criterion here separates place different substituents differently.
- orthonym.assembly.complex_ring_group.is_complex_ring_system_by_group(mol, features=None)#
composer._is_complex_ring_systemof the senior spiro system when that is the parent beside other ring systems (see the module docstring), of the molecule otherwise.
- orthonym.assembly.complex_ring_group.assemble_complex_ring_by_group(mol, features)#
composer._assemble_complex_ring_nameof the senior spiro system, named as a stand-alone ring system with its atoms carried back to the atoms ofmol, where that system is the parent beside other ring systems (see the module docstring); of the molecule otherwise, and where the system is not named. The substituents are left to the caller (substituents_includedFalse).