orthonym.assembly.memo_keys#
Note
Internal API. Names and behaviour may change between releases.
Parts of memo keys shared by several memos (assembly.memo).
- orthonym.assembly.memo_keys.mol_graph_key(mol)#
A complete, atom-ORDERED description of mol’s graph (every atom’s element, charge, isotope, hydrogens, aromaticity and chiral tag; every bond’s atoms, order, stereo and direction), so two molecule objects share a key only when atom indices mean the same atoms. Read-only: unlike
MolToSmilesit sets no output-order property. RDKit’s own pickle of the molecule (no properties), one C++ call: 57 us for 84 atoms where the tuples below took 1.1 ms, and the key of everyname_substituentcall holds it.