orthonym.rules.assembly_ring_branches#

Note

Internal API. Names and behaviour may change between releases.

A two-ring assembly that is the parent of a molecule whose other rings hang on it by a chain.

### **** SENIORITY ORDER FOR PARENT STRUCTURES (the Blue Book) applies the criteria for the senior parent “in order, until a decision is reached”, before “those applicable to rings and ring systems (see “:

the principal characteristic group, **** (:18917) the senior atom (“N > P > As > Sb > Bi > Si > Ge >

Sn > Pb > B > Al > Ga > In > Tl > O > S > Se > Te > C”), then ### **** Systems composed of rings and chains (:19336), (1):19340 “Within the same class, a ring or ring system has seniority over a chain”. Among rings, **** (:20571) “Seniority criteria for ring assemblies are based on the appropriate criteria for rings and ring systems given in “, whose criterion “(d) has the greater number of rings” (****,:19415) makes a two-ring assembly senior to a single ring of the same kind. The printed row is 4-methoxy-1,1'-biphenyl (PIN) (not 4-phenylanisole; no substitution on anisole for PINs) [not 1-methoxy-4-phenylbenzene; the biphenyl ring system is senior to a single benzene ring] (:27722, under ### **** Retained names); a third ring on a chain changes nothing in it: the ring on the chain is one more single ring, junior to the assembly, and the chain is cited with the prefix of the ring it holds (C6H5-CH2-O- is “benzyloxy (preferred prefix)”,:24591 under ## **** CONSTRUCTION OF LINEAR COMPOUND AND/OR COMPLEX SUBSTITUENT PREFIXES).

rules.ring_assemblies.detect_ring_assembly takes a molecule only when every ring system of it joins the assembly, so a molecule with one more ring (benzyloxy, phenoxy, benzyl, cyclohexylmethoxy) reached the benzene writer, which names the assembly as a benzene with a phenyl group (‘1-(benzyloxy)-4-phenylbenzene’); rules.ring_assembly_screen takes the PIN label from such a name. This module is the caller of detect_ring_assembly for the molecule named as a whole that finds the assembly among the ring systems, by the criteria above, and offers the name of the assembly with the other rings in its substituent prefixes.

The assembly is the parent when

  • the molecule is one component with no charge, isotope, radical or stereo;

  • no chain is the parent (features.chain_is_parent) and every other ring hangs on the assembly by a chain: a ring bonded to a ring of the assembly directly is a matter of **** and **** (:24153, “When assemblies of otherwise identical rings contain both mancude and saturated rings, the use of hydro prefixes is preferred”, the case of ‘cyclohexyl’ on a biphenyl), which the other detectors of rules.ring_assemblies read;

  • the molecule has a principal characteristic group: every one sits on the assembly and on no other ring system, and the assembly is the parent whatever the other rings are: the parent has “the maximum number of substituents corresponding to the principal characteristic group”; the criteria for rings come after it); or the molecule has none: the atoms outside the assembly are carbon, oxygen, sulfur and halogen atoms (a more senior atom of could be a parent of its own) and the ring systems joined by direct bonds, identical ones merged (assembly_units), have one unit of two ring systems that is strictly senior to every other unit by ring_selection.ring_system_score (a) to (g), then the type order of: a tie is no decision and is declined).

Only a two-ring assembly: three to six identical systems take composite locants in the PIN (****, :15653), which rules.composite_assembly writes where the OPSIN in use reads them and which a molecule with other rings is outside of. The name is built by name_ring_assembly and returned only when OPSIN 2.9.0 reads it back to the full InChIKey of the molecule, as detect_hydro_ring_assembly does: a molecule this module declines keeps the classification it had.

orthonym.rules.assembly_ring_branches.detect_assembly_with_ring_branches(mol, ring_systems, features=None)#

The assembly info of the two-ring assembly that is the parent of mol among its ring systems, with its name (name_ring_assembly, read back by OPSIN 2.9.0 to the full InChIKey of mol), or None (see the module docstring). features is the molecular features of the whole molecule: without it the principal characteristic groups are unknown and nothing is offered.