# Changelog

This changelog is generated automatically from [GitHub Releases](https://github.com/avcopan/protomol/releases).


# v0.0.3

*2026-11-25* · [GitHub](https://github.com/avcopan/protomol/releases/tag/v0.0.3)


### Added

- `low_t(g)` for `MolGraph | StereoMolGraph` (giving a [StereoMolGraph](reference/StereoMolGraph.html#protomol.StereoMolGraph)) and `ReactionGraph | StereoReactionGraph` (giving a [StereoReactionGraph](reference/StereoReactionGraph.html#protomol.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](reference/StereoChange.html#protomol.StereoChange) slot follows its side's site, and the TS slots are kept. It is idempotent and a no-op on [from_smiles](reference/from_smiles.html#protomol.from_smiles) and [from_geometry](reference/from_geometry.html#protomol.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](reference/ReactionGraph.html#protomol.ReactionGraph) or [StereoReactionGraph](reference/StereoReactionGraph.html#protomol.StereoReactionGraph): `gra` or `reverse(gra)`, whichever has the smaller [canonical_json](reference/canonical_json.html#protomol.canonical_json), and whether it was reversed (a tie keeps `gra`). Atom indices are kept, so an atom map from [canonical_form](reference/canonical_form.html#protomol.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](reference/from_smiles.html#protomol.from_smiles) and [from_geometry](reference/from_geometry.html#protomol.from_geometry) put a lone-pair [Tetrahedral](reference/Tetrahedral.html#protomol.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](reference/from_smiles.html#protomol.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](reference/Tetrahedral.html#protomol.Tetrahedral), and so does an N in a three-membered ring even when it is conjugated (N-acyl, N-aryl aziridines). [embed](reference/embed.html#protomol.embed) makes such a centre pyramidal when ETKDG leaves it flat.
- A σ-radical C in a three-membered ring gets a [Tetrahedral](reference/Tetrahedral.html#protomol.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](reference/from_smiles.html#protomol.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](reference/PlanarBond.html#protomol.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](https://github.com/avcopan/protomol/releases/tag/v0.0.2)


### 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](reference/StereoMolGraph.html#protomol.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](reference/from_smiles.html#protomol.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](reference/MolGraph.html#protomol.MolGraph) or [StereoMolGraph](reference/StereoMolGraph.html#protomol.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](reference/from_geometry.html#protomol.from_geometry) keeps the C=O⁺ and C=N⁺ [PlanarBond](reference/PlanarBond.html#protomol.PlanarBond) of Criegee intermediates and nitrones.

- [ts_graphs](reference/ts_graphs.html#protomol.ts_graphs) compares and deduplicates its channels with [isomorphism](reference/isomorphism.html#protomol.isomorphism) and [deduplicate](reference/deduplicate.html#protomol.deduplicate).


### Fixed

- [AtropBond](reference/AtropBond.html#protomol.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](reference/AtropBond.html#protomol.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](https://github.com/avcopan/protomol/releases/tag/v0.0.1)


### Added

- The four graph types, [MolGraph](reference/MolGraph.html#protomol.MolGraph), [StereoMolGraph](reference/StereoMolGraph.html#protomol.StereoMolGraph), [ReactionGraph](reference/ReactionGraph.html#protomol.ReactionGraph) and [StereoReactionGraph](reference/StereoReactionGraph.html#protomol.StereoReactionGraph): frozen pydantic models with keyword-only constructors that normalize and validate, and [AnyGraph](reference/AnyGraph.html#protomol.AnyGraph), their union discriminated by `type`.
- Local stereodescriptors: [Tetrahedral](reference/Tetrahedral.html#protomol.Tetrahedral), [SquarePlanar](reference/SquarePlanar.html#protomol.SquarePlanar), [TrigonalBipyramidal](reference/TrigonalBipyramidal.html#protomol.TrigonalBipyramidal), [Octahedral](reference/Octahedral.html#protomol.Octahedral), [PlanarBond](reference/PlanarBond.html#protomol.PlanarBond) and [AtropBond](reference/AtropBond.html#protomol.AtropBond) (with a `chain` for cumulated chains), and [StereoChange](reference/StereoChange.html#protomol.StereoChange) for a reaction graph's changing sites; [invert](reference/invert.html#protomol.invert), [isomers](reference/isomers.html#protomol.isomers) and [site](reference/site.html#protomol.site).
- [with_stereo](reference/with_stereo.html#protomol.with_stereo), [remove_stereo](reference/remove_stereo.html#protomol.remove_stereo), [stereo_at](reference/stereo_at.html#protomol.stereo_at), [neighbors](reference/neighbors.html#protomol.neighbors) and [is_determined](reference/is_determined.html#protomol.is_determined).
- [to_json](reference/to_json.html#protomol.to_json) and [from_json](reference/from_json.html#protomol.from_json): one compact, deterministic JSON string per graph.
- [from_smiles](reference/from_smiles.html#protomol.from_smiles), with every atom explicit in SMILES order, the low-T stereo scheme (trivial sites filled, unspecified ones left undetermined), and one LS per cumulated chain.
- [reaction_graph](reference/reaction_graph.html#protomol.reaction_graph), [reactants](reference/reactants.html#protomol.reactants), [products](reference/products.html#protomol.products), [reverse](reference/reverse.html#protomol.reverse), [relabel](reference/relabel.html#protomol.relabel) and [without_stereo](reference/without_stereo.html#protomol.without_stereo).
- [ts_graphs](reference/ts_graphs.html#protomol.ts_graphs): the transition-state graphs of a reaction, fewest bonds first (ported from autoccv), each one elementary step that changes something: a degenerate reaction gives its bond-changing channels, and a stereoisomerization its one rotation or lone-pair inversion.
- [display](reference/display.html#protomol.display) and Jupyter drawings of the four types.
- `protomol.examples`: [species](reference/examples.species.html#protomol.examples.species), [abstraction_ts](reference/examples.abstraction_ts.html#protomol.examples.abstraction_ts) and [stereoisomerization_ts](reference/examples.stereoisomerization_ts.html#protomol.examples.stereoisomerization_ts).
