orthonym.assembly.straight_alkyl#

Note

Internal API. Names and behaviour may change between releases.

The carbon-count alkyl name, only for the shape it names.

naming_utils.get_alkyl_name(n) gives ‘methyl’, ‘ethyl’,…, ‘heptyl’: the prefix of an unbranched saturated chain of n carbons bound by its end carbon (1), the Blue Book, the free valence at position 1 of a straight chain). Several producers used it as the last resort for a branch their namer declined, so a count of carbons named whatever the branch was: ‘4-heptylcyclohexane-1-carboxylic acid’ for the phenylcarbamoyl branch ‘-C(=O)NHC6H5’ (seven carbons), ‘…butyl…’ for a 2,5-dioxopyrrol-1-yl ring. Only the round trip withdrew those names.:func:straight_alkyl_name gives the count’s name for that one shape and None for every other branch, so the caller declines as it does for any branch its namer leaves without a name.

orthonym.assembly.straight_alkyl.straight_alkyl_name(mol, atoms)#

get_alkyl_name(len(atoms)) when atoms are an unbranched saturated acyclic chain of uncharged, unlabelled carbons with one bond out of the chain, a single bond from an end carbon; else None.