Skip to main content

Changelog

This changelog is generated automatically from GitHub Releases.

v0.0.3

2026-11-25 · GitHub

Added

  • low_t(g) for MolGraph | StereoMolGraph (giving a StereoMolGraph) and ReactionGraph | StereoReactionGraph (giving a StereoReactionGraph): the low-T scheme’s sites, perceived on a Lewis structure of the graph. A site the graph has keeps its LS and parity, a site the scheme drops loses its LS, and an added site is undetermined, or fixed if trivial. A reaction graph’s sides are reassigned separately; each StereoChange slot follows its side’s site, and the TS slots are kept. It is idempotent and a no-op on from_smiles and from_geometry output, but for a carbonyl-oxide radical whose perceived Lewis structure is a peroxy radical (open question 11).
  • canonical_direction(gra) -> (graph, reversed) for a ReactionGraph or StereoReactionGraph: gra or reverse(gra), whichever has the smaller canonical_json, and whether it was reversed (a tie keeps gra). Atom indices are kept, so an atom map from canonical_form of the result applies to the input’s atoms. A reaction graph and its reverse give the same result, so one TS imported in either direction gets one identity.

Changed

  • from_smiles and from_geometry put a lone-pair Tetrahedral on exactly the pyramidal atoms of the low-T scheme: N, P or S with three neighbours and one lone pair (amines, phosphines, sulfoxides, sulfonium ions), but not an N next to a π system or a radical centre (amides, anilines, enamines, nitroxides, α-amino radicals). Phosphines and sulfoxides used to get one only from a chiral tag.
  • Radicals with formal charges, and vinoxy radicals from their carbonyl form, get an LS on each resonating double bond (stereomolgraph’s radical resonance, fixed on the fork’s protomol branch).
  • from_smiles keeps a chiral tag on a pyramidal N (C[N@](F)Cl), which RDKit drops.
  • A chiral centre with a lone pair that starts its SMILES fragment reads the lone pair where an implicit H would go (Open Babel, CDK), not last (RDKit): [N@](C)(F)Cl is C[N@@](F)Cl. This flips atom-first N, P and S centres.
  • An acyclic double bond or cumulated chain with a radical end (an alkenyl or allenyl radical) gets no LS: the low-T scheme lumps its cis and trans forms.
  • A site is filled as trivial only if it is trivial for every configuration of the other undetermined sites: the centres of 1,4-dimethylcyclohexane (cis/trans) and the pseudoasymmetric C of 2,3,4-trihydroxyglutaric acid stay undetermined.
  • Every site InChI keeps is a low-T site: arsines, selenoxides and selenonium ions get a lone-pair Tetrahedral, and so does an N in a three-membered ring even when it is conjugated (N-acyl, N-aryl aziridines). embed makes such a centre pyramidal when ETKDG leaves it flat.
  • A σ-radical C in a three-membered ring gets a Tetrahedral with its unpaired electron in the None slot if the ring has a heteroatom (oxiranyl, aziridinyl) or the C bears an N, O, F or Cl (α-fluoro cyclopropyl); a plain cyclopropyl radical does not. from_smiles keeps a chiral tag on such a centre (C[C@H]1O[C@]1C).
  • An alkenyl or allenyl radical whose radical C bears an N, O, F or Cl keeps its bond or chain LS (F[C]=CC), with the unpaired electron in a None slot.
  • A single bond with a closed-shell partial double bond gets a PlanarBond: an N with three neighbours (not in a three-membered ring) on a C=O, C=S or N=O (amides, thioamides, carbamates, ureas, imides, hydroxamic acids, nitrosamines), and the C-C of a vinyl carbonyl oxide (acrolein oxide’s s-cis/s-trans). A ring of seven or fewer atoms holds it cis (lactams, caprolactam included). Esters, amidines, enamines and enones get none.
  • A ring of seven atoms holds a double bond cis, as InChI does: a cycloheptene C=C is trivial, not undetermined (stereomolgraph’s ring cutoff, fixed on the fork’s protomol branch).

v0.0.2

2026-11-24 · GitHub

Added

  • canonical_form(gra) -> (canonical, atom_map) for the four graph types, with atom_map[k] the input index of canonical atom k (a tuple), and canonical_json(gra), the JSON of the canonical graph. The numbering is stereomolgraph’s canon_atom_num; it doesn’t see chain LS yet.
  • isomorphism(g1, g2): an atom map m with relabel(g1, m) == g2, or None (stereomolgraph’s VF2++, comparing stereo, breaking and forming bonds, stereo changes, charge and spin), and deduplicate(graphs): the first graph of each isomorphism class, in input order.
  • from_geometry(geo): the StereoMolGraph of an autogeom.Geometry, keeping its atom order, charge and spin. Bonds come from covalent radii and a Lewis structure from autogeom’s solver. The LS sites are the low-T ones from_smiles gives, and every parity is read from the coordinates (undetermined only for a flat centre or a double bond twisted by about 90°).
  • embed(gra): an autogeom.Geometry of a MolGraph or StereoMolGraph, in its atom order, from RDKit’s ETKDG on a perceived Lewis structure (autogeom’s solver, so radicals work), with the determined LS as constraints. Every determined LS is checked on the result, so from_geometry(embed(gra)) == gra for a determined graph. Fixed seeds make it reproducible; fragments are set 3 Å apart.

Changed

  • protomol depends on autogeom 0.0.5 or later (from the avcopan/automech channel on prefix.dev), whose Lewis solver keeps onium octets, so from_geometry keeps the C=O⁺ and C=N⁺ PlanarBond of Criegee intermediates and nitrones.

  • ts_graphs compares and deduplicates its channels with isomorphism and deduplicate.

Fixed

  • AtropBond’s permutation group: an end swap now keeps the helicity (the axis’s C2), so a 1,3-disubstituted allene or a symmetric twisted TS no longer equals its mirror image. The normal form, and so the JSON, of an AtropBond may change. The vendored stereomolgraph now tracks the fork’s protomol branch, which has the same fix.

v0.0.1

2026-11-24 · GitHub

Added