orthonym.assembly.radical_offer#

Note

Internal API. Names and behaviour may change between releases.

The last resort of the best-effort tier for a molecule with radical centres.

A molecule with a radical centre that no other path of the best-effort tier names is named by the floor with every centre cited in the name, and the name ships when OPSIN (-r) reads it back to the input: its full InChIKey, its radical graph (validation.radical_identity) and its stereo. It is an offer, not a return (a project rule), made only when every other path of the tier, the other offers of assembly/default_tier_offer.py included, has left the molecule without a name, so no name that ships changes: a molecule that has a name today keeps it, whatever the radical path would have given.

What the floor cites in the name, inside:func:orthonym.validation.read_back_policy.radical_last_resort and nowhere else (radical_floor.radical_floor_names):

  • a divalent or trivalent centre by the lambda convention, “The λ-convention” (the Blue Book, sentence :40562): “Divalent and trivalent radical centers in a parent hydride formally derived by the removal of two or three hydrogen atoms from the same skeletal atom in its standard valence state may be described by the λ-convention (see …. This method is only for general nomenclature.” The row is systematic_verified, never a PIN;

  • several monovalent centres as the free valences of the one ring system or acyclic chain that holds them all, “CHOICE OF PARENT RADICAL” (the Blue Book) with “Multiple radical centers (polyradicals)” (:40524);

  • centres in separate identical parts of the molecule as an assembly of parent radicals, “ASSEMBLIES OF PARENT RADICALS” (the Blue Book): (<linker>-diyl)bis(<unit>) (assembly/radical_assembly.py);

  • one centre that is a charged atom as a radical ion of a one-atom parent, “RADICAL IONS DERIVED FROM PARENT HYDRIDES” (the Blue Book): ethylboranuidylidyne (assembly/radical_ion.py). These two classes are built after every name of the routes above, so a name that ships without them does not change;

  • a monovalent centre that no parent carries and that is in no such assembly has no citation: the molecule keeps its abstention (never a lambda on a monovalent centre, and the book’s ‘ylo’ of,:40753, is not read by OPSIN).

The stereo of the input is composed on the name of the floor as the stereo-composed offer does it (stereo_composed_offer._verified_composed_name), with the name read by OPSIN’s -r (opsin_roundtrip.opsin_atom_locant_map, opsin_roundtrip_check), and a name that cites a locant twice in its descriptors ships only when the descriptors at that locant are equal and state every stereo unit of the input (stereo_composed_offer.repeated_locants_are_one_structure). A name that states fewer stereo elements than the input carries the row’s stereo_unexpressed flag, as the name of any other producer does.

The offer is made once, for the molecule the caller asked about: not inside the naming of the stereo-free structure of the stereo-composed offer (suspended()), where the structure would be named twice.

orthonym.assembly.radical_offer.suspended()#

The block names a structure on its way to another offer: the radical offer makes no offer in it.

orthonym.assembly.radical_offer.radical_last_resort_row(namer, smiles)#

The row namer offers a molecule with radical centres that it left without a name, or None. smiles is a SMILES string or an RDKit molecule, as for name_tiered. Best-effort tier only. Never raises (the abstention stands).