Repository navigation
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), andcanonical_json(gra),
the JSON of the canonical graph. The numbering is stereomolgraph'scanon_atom_num;
it doesn't see chain LS yet.isomorphism(g1, g2): an atom mapmwithrelabel(g1, m) == g2, orNone
(stereomolgraph's VF2++, comparing stereo, breaking and forming bonds, stereo changes,
charge and spin), anddeduplicate(graphs): the first graph of each isomorphism class,
in input order.from_geometry(geo): theStereoMolGraphof anautogeom.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 onesfrom_smilesgives, and every
parity is read from the coordinates (undetermined only for a flat centre or a double
bond twisted by about 90°).embed(gra): anautogeom.Geometryof aMolGraphorStereoMolGraph, 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, sofrom_geometry(embed(gra)) == grafor 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/automechchannel on
prefix.dev), whose Lewis solver keeps onium octets, sofrom_geometrykeeps the C=O⁺ and
C=N⁺PlanarBondof Criegee intermediates and nitrones. -
ts_graphscompares and deduplicates its channels withisomorphismand
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 anAtropBondmay change. The vendored
stereomolgraph now tracks the fork'sprotomolbranch, which has the same fix.