orthonym.rules.hydrocarbon_series#

Note

Internal API. Names and behaviour may change between releases.

The open hydrocarbon series of: polyacenes, polyaphenes, polyalenes, polyphenylenes, polynaphthylenes and polyhelicenes.

“Systematically named hydrocarbon parent components” (the Blue Book)

names a parent component of the maximum number of noncumulative double bonds by “a prefix and an ending or term representing the nature and arrangement of the component rings”. Each rule defines a CLASS, one member for each count of rings, so none of them is a list:

  • Polyacenes (:11438): “four or more ortho-fused benzene rings in a straight linear arrangement… a numerical prefix (‘tetra’, ‘penta’, etc.)… followed by the ending ‘acene’… with elision of a letter ‘a’” – tetracene, pentacene,…;

  • Polyaphenes (:11444): “n ortho-fused benzene rings (n > 3) forming two straight linear arrangements of (n + 1)/2 rings (if n is odd) or n/2 and (n/2) + 1 rings (if n is even) with a common benzene ring and that make a formal angle of 120 degrees with each other… ‘phene’” – tetraphene, pentaphene,…;

  • Polyalenes (:11455): “two identical ortho-fused monocyclic hydrocarbon rings… the numerical prefix (‘penta’, ‘hepta’, etc.) that denotes the number of carbon atoms in each ring followed by the ending ‘alene’… with elision of a letter ‘a’. The name naphthalene is retained” – pentalene, heptalene, octalene,… (the bare ring system from octalene on: see _substituted_polyalene);

  • Polyphenylenes (:11461): “a monocyclic hydrocarbon with an even number of carbon atoms and benzene rings ortho-fused to alternate sides… ‘phenylene’. The traditional name biphenylene is retained” – biphenylene, triphenylene, tetraphenylene, …;

  • Polynaphthylenes (:11469): “a monocyclic hydrocarbon with an even number of carbon atoms ortho-fused on alternate sides to the 2,3-positions of naphthalene rings … ‘naphthylene’. The series begins with three naphthalene rings, trinaphthylene”;

  • Polyhelicenes (:11477): “a hydrocarbon parent component of six or more rings that consists of a benzene ring ortho-fused to the 3,4-position of phenanthrene and further benzene rings fused in a similar way… ‘helicene’” – hexahelicene,….

This module holds the rule once for every member: it recognises a member from the ring graph of a fused ring system (classify_ring_system(),:func:identify_series), spells its name (series_name(), read back by:func:parse_series_name), and numbers it (series_entry()), so a member the tables never listed (octacene, a pentadecaphenylene) is named, numbered and substituted by the same rule as tetracene.

The numbering of every series is (the Blue Book): “The numbering of peripheral atoms in the preferred orientation starts from the uppermost ring… Numbering starts from the nonfused atom most counterclockwise in the ring selected and proceeds in a clockwise direction around the system… Each fusion carbon atom is given the same number as the immediately preceding nonfusion skeletal atom, modified by a Roman letter ‘a’, ‘b’, ‘c’, ‘d’, etc.” Polyacenes, polyaphenes and polyalenes take the orientation and numbering engine of rules/fusion_numbering.py. That engine cannot place a ring of eight or more members next to benzene rings (polyphenylenes, polynaphthylenes) or a helicene (which overlaps itself in the plane), so for those three the start atom of the walk is fixed here from the Blue Book’s own statement of the orientation:

  • polyphenylenes and polynaphthylenes: every benzene or naphthalene ring is equivalent, so the walk starts at the first of the four consecutive CH of a terminal benzene ring;

  • polyhelicenes (:12531): “A helicene is oriented so that a terminal ring is located in the upper right quadrant; numbering always begins in this terminal ring” – the walk starts in a terminal ring and runs along the outside of the helix first (‘hexahelicene (PIN)’,:12517 figure; 1-4, 4a, 5, 6, 6a… 16, 16a… 16e).

The numbering of every member up to 20 rings was read against OPSIN 2.9.0’s own locants (<name> -o extendedsmi) when this was written; the unit tests pin a few members.

class orthonym.rules.hydrocarbon_series.SeriesHit(name, spec, atoms, rings)#

Bases: NamedTuple

A ring system of a molecule that is a member of a series.

name: str#

Alias for field number 0

spec: SeriesSpec#

Alias for field number 1

atoms: FrozenSet[int]#

Alias for field number 2

rings: int#

Alias for field number 3

class orthonym.rules.hydrocarbon_series.SeriesSpec(series, n)#

Bases: NamedTuple

One member of an open series: n is the count the numerical prefix cites (rings, or the carbon atoms of each ring of a polyalene).

series: str#

Alias for field number 0

n: int#

Alias for field number 1

orthonym.rules.hydrocarbon_series.classify_ring_system(mol, ring_indices)#

The series member that the rings ring_indices (indices into the molecule’s AtomRings) form, or None. The rings must be a fused ring system with the maximum number of noncumulative double bonds and no ring atom shared by three rings.

orthonym.rules.hydrocarbon_series.identify_series(mol)#

The largest ring system of mol that is a member of a series, or None.

The systems are the fused ring systems of the molecule. Substituents are free to be anything attached by a single bond; a ring system that is saturated in part, bears a double bond to a substituent, or carries an atom that is not carbon is never a member. No member is found inside isotope_alternative.alternative_skeleton.

orthonym.rules.hydrocarbon_series.parse_series_name(name)#

The member a name spells, or None (the inverse of:func:series_name).

orthonym.rules.hydrocarbon_series.ring_system_series(mol, atoms)#

The member that the fused ring system with exactly these atoms is, or None.

orthonym.rules.hydrocarbon_series.series_entry(name)#

A POLYCYCLIC_DATA-shaped entry for a member, or None when name is not a member this module can build and number.

The entry’s canonical_smiles is a Kekule drawing of the bare member, its iupac_numbering keys are the atom indices of that SMILES, and generic_bonds says that a match onto a molecule must ignore bond orders: a member the Blue Book draws with localized double bonds (octalene) has more than one drawing, and the numbering is the same for all of them “Localized double bonds”, the Blue Book).

orthonym.rules.hydrocarbon_series.series_name(series, n)#

The name of a member, or None when n is not a member of series.

orthonym.rules.hydrocarbon_series.series_ring_system_atoms(mol, name)#

The atoms of the first ring system of mol that is the member name.