orthonym.assembly.hetero_chain_prefix#

Note

Internal API. Names and behaviour may change between releases.

The prefix of a carbon-attached fragment whose capped molecule is named on a hydride of another element.

A fragment is named by capping its free valence with hydrogen and naming that molecule. Where the capped molecule’s parent is the hydride of an element senior to carbon – “Selection of a senior parent hydride” (the Blue Book) “The senior parent structure, whether cyclic or acyclic, has the senior atom… N > P > As > Sb > Bi > Si > Ge > Sn > Pb > B > Al > Ga > In > Tl > O > S > Se > Te > C” – the capped -CH2-CH2-SiH3 is ‘ethylsilane’, and the ‘-yl’ form ‘ethylsilyl’ puts the free valence on Si, a different group. (:15762): “A compound substituent group consists of a simple substituent group (the parent substituent group) to which is attached one or more simple substituent groups”: the parent substituent group carries the free valence, so a carbon attachment cannot be read off such a name. The free-valence-numbered chain namer builds the prefix from the structure (‘2-silylethyl’, ‘2-(chlorosilyl)ethyl’) when the carbon skeleton is one unbranched chain; otherwise the fragment declines.

orthonym.assembly.hetero_chain_prefix.NONCARBON_PARENT_HYDRIDE_STEMS = ('silane', 'germane', 'stannane', 'plumbane', 'oxidane', 'sulfane', 'selane', 'tellane', 'azane', 'phosphane', 'arsane', 'stibane', 'bismuthane', 'borane', 'alumane', 'gallane', 'indigane', 'thallane', 'iodane', 'bromane', 'chlorane', 'fluorane')#

a capped fragment whose molecule name ends in one of these has the heteroatom as its parent.

Type:

Parent hydrides whose skeleton is not carbon,

orthonym.assembly.hetero_chain_prefix.unbranched_hetero_chain_prefix(mol, sub_atoms, attach_idx)#

The prefix of an acyclic carbon-attached fragment whose carbon atoms form ONE unbranched chain, numbered from the free valence,: the chain through the attachment atom is then the whole carbon skeleton, so its choice cannot depend on a seniority rule, and every non-carbon branch (‘silyl’, ‘chlorosilyl’, ‘trimethylgermyl’, ‘chloro’) is a located prefix of it: ‘2-silylethyl’, ‘2-(chlorosilyl)ethyl’. None for a ring atom, a branched carbon skeleton, or a fragment the located namer declines. The prefix carries its own stereodescriptors (the located namer cites them).

orthonym.assembly.hetero_chain_prefix.fragment_parent_to_prefix(mol, sub_atoms, attach_idx, parent_name, carbon_count)#

Step 5 of substituent_naming._name_substituent_fragment_uncached: the prefix of the fragment from the name of its capped molecule parent_name; None where the fragment declines.

orthonym.assembly.hetero_chain_prefix.amide_joined_at_nitrogen(parent_name, mol, sub_atoms, attach_idx)#

True when parent_name, the name of the capped fragment, is an amide and the fragment is joined through a nitrogen bonded to a C=O carbon of the fragment: parent_to_prefix reads the name as a group joined at the far chain carbon, so its prefix would be the name of another structure.

orthonym.assembly.hetero_chain_prefix.carbon_component(mol, sub_set, start)#

The atoms of sub_set joined to start through no nitrogen (all of them when start is no carbon): a carboxy group behind a nitrogen (the -NH-CH2-COOH of an amide branch) is its branch’s, whose own prefix names it (‘2-[(carboxymethyl)amino]-2-oxoethyl’); one behind an ester or ether oxygen stays on the chain’s carbon, as before that rule (the acyloxy branch of a glycerophospholipid).