orthonym.rules.nucleosides#
Note
Internal API. Names and behaviour may change between releases.
Nucleoside / nucleotide decoration engine (Blue Book /.
a phase. Bare nucleosides (adenosine, guanosine, inosine, xanthosine,
cytidine, thymidine, uridine + the 2’-deoxy series) are named by exact-SMILES
retained-name lookup (data/retained_names.py). This module handles the
decorated species that those exact keys cannot reach:
nucleoside 5’-phosphates / di- / tri-phosphates —
adenosine 5'-(tetrahydrogen triphosphate)(ATP),adenosine 5'-(trihydrogen diphosphate)(ADP),2'-deoxyadenosine 5'-(dihydrogen phosphate)(dAMP); /.2)O-acyl esters on the sugar —
adenosine 2',3',5'-triacetate.
The engine is strip-and-recognise: it perceives the nucleoside core (a furanose N-glycosidically bonded to a nucleobase), strips the recognised sugar decorations back to the free hydroxyls, canonicalises the bare nucleoside and looks it up in the retained-name catalog. Anything it cannot account for — a modified base, a phosphate at a non-5’ ring position it cannot number, a cyclic phosphate, a mixed decoration set it has no grammar for — makes it return ``None`` (fail-closed), so the molecule falls through to the general pipeline (and, ultimately, the self-consistency gate).
Validation is OPSIN round-trip: every name this module emits parses back to the
input skeleton (verified in tests/unit/rules/test_phase14_nucleosides.py).
- orthonym.rules.nucleosides.RETAINED_NUCLEOSIDE_NAMES = frozenset({"2'-adenylic acid", "2'-deoxyadenosine", "2'-deoxycytidine", "2'-deoxyguanosine", "2'-deoxyuridine", "3'-adenylic acid", "5'-adenylic acid", "5'-inosinic acid", 'adenosine', 'cytidine', 'guanosine', 'inosine', 'thymidine', 'uridine'})#
the names the systematic offer below stands before.
- Type:
The / retained names of the retained-name table (
data/retained_names.py)
- orthonym.rules.nucleosides.nucleoside_names_off()#
Whether the running naming leaves the nucleoside and nucleotide names out (
systematic_nucleoside_name()).
- orthonym.rules.nucleosides.systematic_nucleoside_name(mol)#
The systematic substitutive name of the molecule being named, offered before its nucleoside or nucleotide name.
INTRODUCTION (the Blue Book): “Preferred IUPAC names (PINs) are not identified for the compounds in
this Chapter”, so ‘adenosine’ and ‘5’-adenylic acid’:54943,:55003) are no PINs; the same paragraph: “When the full structure is known, a ‘systematic name’ may be generated in accordance with Rules described in Chapters through “. As for the amino acids (
amino_acids.systematic_amino_acid_name) the molecule is named once more with the nucleoside names left out and taken only as a PIN with its stereodescriptors read back (rules/systematic_offer.py). Else None, and the caller keeps its nucleoside name, labelled below the PIN. Only for the caller’s whole molecule.
- orthonym.rules.nucleosides.name_nucleoside(mol)#
Name a decorated nucleoside / nucleotide, or return
None(fail-closed).