orthonym.rules.ring_cluster#
Note
Internal API. Names and behaviour may change between releases.
The ring graph of one ring system, for the spiro analyses of a molecule that has other rings, and the ring bonds of a spiro atom that is not an sp3 carbon.
spiro._ring_atom_graph joins every two ring atoms that share a bond, a ring bond or not, over the
whole molecule. A ring joined to a spiro system by a single bond (a biaryl link, a boron-bearing ring) is
then a part of one of its components, and a ring system elsewhere in the molecule is a third component,
so find_monospiro_separation_atom finds no clean two-way split. Inside ring_cluster_scope the
graph holds only the atoms of the named ring system and the ring bonds between them; outside it the graph
is what it always was, so no PIN-tier analysis changes. A spiro atom has exactly four ring bonds there; a
hypervalent one (a phosphorane or a sulfurane that joins a monocycle to a bicycle it also belongs to, 3 + 2
ring bonds) has more, and inside the scope it is a spiro atom too (spiro_ring_bond_count).
- orthonym.rules.ring_cluster.ring_cluster_scope(cluster)#
Within the body
ring_atom_graphis limited to the ring atomsclusterand their ring bonds.
- orthonym.rules.ring_cluster.ring_atom_graph(mol)#
Ring-atom set and the adjacency between ring atoms: every bond between two ring atoms, or, inside
ring_cluster_scope, the ring bonds among the atoms of the cluster.
- orthonym.rules.ring_cluster.spiro_ring_bond_count(n)#
True iff an atom with
nring bonds can be the spiro atom of a monospiro system: exactly four, or, insidering_cluster_scope, four or more (the atom must still split the ring system into two parts, which the caller checks).
- orthonym.rules.ring_cluster.ring_cluster_scope_active()#
True inside
ring_cluster_scope: the component-name spiro of one ring system of a molecule (the general engine’s fallback), not the spiro PIN of the molecule’s whole ring system.
- orthonym.rules.ring_cluster.is_carbon_von_baeyer_name(name)#
True iff
nameis a von Baeyer hydrocarbon name that carries no ‘a’ prefix:bicyclo[2.2.1](what the spiro component namer has always cited), and insidering_cluster_scopealsotricyclo[...]and the polycycles above it, whose heteroatoms are then cited before ‘spiro’ . Outside the scope onlybicyclonames count, so no PIN name changes.
- orthonym.rules.ring_cluster.is_one_ring_cluster(mol, ring_atoms)#
True iff the rings of
molthat lie insidering_atomsare one cluster, each reached from the others through shared atoms (fused, bridged or spiro: one polycyclic ring system, / /. False for rings that are only joined by bonds: a ring assembly (### **** DEFINITIONS, the Blue Book,:15542: “directly joined to each other by single or double bonds”), N ring systems and not the one that the von Baeyer and spiro analyses of a ring system describe.ring_substituents._extract_ring_submoltakes the ring atoms of a fragment as one ring system, and the cage analysis of that submolecule (vonbaeyer_universal.analyze_cage_universal) starts by matching it onto its canonical re-parse, a substructure search that grows with the symmetry of the branches and refuses the molecule only after it: a fragment of 60 atoms of polyphenylene takes 0.4 s, one of 222 atoms (37 benzene rings, GitHub issue 121) more than ten minutes in that one call, in which the alarm of--time-limit(wallclock) cannot be handled.