# protomol ## Docs ### API Reference #### Classes > Core classes - [Rotor](https://avcopan.github.io/protomol/reference/Rotor.html): A hindered rotor: the torsion about `axis` that turns `top` (P85, P86) - [Umbrella](https://avcopan.github.io/protomol/reference/Umbrella.html): A pyramidal centre left flexible: its inversion is a double well (P87) - [AtropBond](https://avcopan.github.io/protomol/reference/AtropBond.html): A rigid single bond (atropisomer) or an even cumulated chain (allene axis) - [Octahedral](https://avcopan.github.io/protomol/reference/Octahedral.html): An octahedral centre: (center, n1, …, n6), n1 trans to n2, n3 to n5, n4 to n6 - [PlanarBond](https://avcopan.github.io/protomol/reference/PlanarBond.html): A planar bond or an odd cumulated chain: (a, b, end1, end2, c, d) - [SquarePlanar](https://avcopan.github.io/protomol/reference/SquarePlanar.html): A square-planar centre: (center, n1, n2, n3, n4) - [StereoChange](https://avcopan.github.io/protomol/reference/StereoChange.html): One stereo site that changes in a reaction: its LS on each side and at the TS - [Tetrahedral](https://avcopan.github.io/protomol/reference/Tetrahedral.html): A tetrahedral centre: (center, n1, n2, n3, n4) - [TrigonalBipyramidal](https://avcopan.github.io/protomol/reference/TrigonalBipyramidal.html): A trigonal-bipyramidal centre: (center, a1, a2, e1, e2, e3), e.g. an SN2 TS - [MolGraph](https://avcopan.github.io/protomol/reference/MolGraph.html): A molecular graph: element symbols and bonds (pairs of atom indices) - [ReactionGraph](https://avcopan.github.io/protomol/reference/ReactionGraph.html): A reaction or TS graph - [StereoMolGraph](https://avcopan.github.io/protomol/reference/StereoMolGraph.html): A molecular graph with local stereodescriptors (LS) - [StereoReactionGraph](https://avcopan.github.io/protomol/reference/StereoReactionGraph.html): A reaction or TS graph with stereo #### Dataclasses > Data-holding classes - [GeometryMismatches](https://avcopan.github.io/protomol/reference/GeometryMismatches.html): Where a graph and a geometry disagree (`geometry_mismatches`) #### Exceptions > Exception classes - [GraphError](https://avcopan.github.io/protomol/reference/GraphError.html): Invalid graph input (stereomol's GraphError) #### Functions > Public functions - [canonical_direction](https://avcopan.github.io/protomol/reference/canonical_direction.html): `gra` or its reverse with the smaller canonical JSON, and whether reversed - [canonical_enantiomer](https://avcopan.github.io/protomol/reference/canonical_enantiomer.html): `gra` or its `enantiomer`, whichever has the smaller canonical JSON - [canonical_form](https://avcopan.github.io/protomol/reference/canonical_form.html): The canonical graph and the atom map to it: `(canonical, atom_map)` - [canonical_json](https://avcopan.github.io/protomol/reference/canonical_json.html): The JSON of the canonical graph: `to_json(canonical_form(gra)[0])` - [enantiomer](https://avcopan.github.io/protomol/reference/enantiomer.html): The mirror image: every chiral LS inverted, atom indices kept - [is_chiral](https://avcopan.github.io/protomol/reference/is_chiral.html): Whether the graph differs from its mirror image, up to atom numbering - [ts_graphs](https://avcopan.github.io/protomol/reference/ts_graphs.html): The topologically distinct TS channels from reactants to products (CCV) - [deduplicate](https://avcopan.github.io/protomol/reference/deduplicate.html): The first graph of each isomorphism class, in input order - [isomorphism](https://avcopan.github.io/protomol/reference/isomorphism.html): An atom map `m` with `relabel(g1, m) == g2`, or None if there is none - [display](https://avcopan.github.io/protomol/reference/display.html): Show the graph in Jupyter - [reacting_core](https://avcopan.github.io/protomol/reference/reacting_core.html): The atoms CREST holds at a TS: those of the breaking and forming bonds (P67) - [rings](https://avcopan.github.io/protomol/reference/rings.html): The rings of a graph: a minimum cycle basis (SSSR), sorted (P85) - [rotors](https://avcopan.github.io/protomol/reference/rotors.html): The hindered rotors of a stereo graph, sorted by their axes' atoms (P86) - [symmetry_number](https://avcopan.github.io/protomol/reference/symmetry_number.html): The symmetry number: the number of stereo-preserving automorphisms (P89) - [umbrellas](https://avcopan.github.io/protomol/reference/umbrellas.html): The pyramidal centres the LS leave flexible, sorted by centre (P87) - [embed](https://avcopan.github.io/protomol/reference/embed.html): A 3D geometry of the graph, in its atom order, with its charge and spin - [from_geometry](https://avcopan.github.io/protomol/reference/from_geometry.html): The stereo graph of a geometry, keeping its atom order - [geometry_mismatches](https://avcopan.github.io/protomol/reference/geometry_mismatches.html): Where the graph and the geometry disagree, atom i on atom i - [stereoisomers](https://avcopan.github.io/protomol/reference/stereoisomers.html): The distinct determined stereoisomers of a stereo graph, mirror images too - [transition_state](https://avcopan.github.io/protomol/reference/transition_state.html): The TS of a channel: the side slots its TS doesn't fix made undetermined - [from_json](https://avcopan.github.io/protomol/reference/from_json.html): The graph of the type named in the JSON, validated in strict mode - [to_json](https://avcopan.github.io/protomol/reference/to_json.html): The graph as compact JSON: its fields in field order, `type` first - [low_t](https://avcopan.github.io/protomol/reference/low_t.html): The graph with the low-T scheme's stereo sites (P54), keeping its parities - [products](https://avcopan.github.io/protomol/reference/products.html): The product side, as one (possibly disconnected) graph in the same atom order - [reactants](https://avcopan.github.io/protomol/reference/reactants.html): The reactant side, as one (possibly disconnected) graph in the same atom order - [reaction_graph](https://avcopan.github.io/protomol/reference/reaction_graph.html): The reaction graph of two index-aligned graphs (same symbols, charge and spin) - [relabel](https://avcopan.github.io/protomol/reference/relabel.html): The graph with atom k of the result = atom `atom_map[k]` of `gra` - [reverse](https://avcopan.github.io/protomol/reference/reverse.html): The reverse reaction: breaking and forming swap, and so do the change slots - [without_stereo](https://avcopan.github.io/protomol/reference/without_stereo.html): The graph without its LS and changes, as a `MolGraph` or a `ReactionGraph` - [from_reaction_smiles](https://avcopan.github.io/protomol/reference/from_reaction_smiles.html): The stereo reaction graph of an atom-mapped reaction SMILES (P62) - [from_smiles](https://avcopan.github.io/protomol/reference/from_smiles.html): The stereo graph of a SMILES, with every atom explicit (stereomol's index rule) - [invert](https://avcopan.github.io/protomol/reference/invert.html): The other configuration. An undetermined LS is returned unchanged - [isomers](https://avcopan.github.io/protomol/reference/isomers.html): Every determined configuration of `ls`, in a fixed order - [site](https://avcopan.github.io/protomol/reference/site.html): The centre atom, or the sorted pair of end atoms (the key in the graph's maps) - [is_determined](https://avcopan.github.io/protomol/reference/is_determined.html): Whether every LS is determined (a workflow graph needs this) - [neighbors](https://avcopan.github.io/protomol/reference/neighbors.html): The sorted neighbours of atom `i`, over every bond (breaking and forming too) - [remove_stereo](https://avcopan.github.io/protomol/reference/remove_stereo.html): A new graph without the LS or change at a site - [stereo_at](https://avcopan.github.io/protomol/reference/stereo_at.html): The LS or change at a site (a centre atom or a bond's ends), or None - [with_stereo](https://avcopan.github.io/protomol/reference/with_stereo.html): A new graph with each item at its site, replacing what was there - [examples.species](https://avcopan.github.io/protomol/reference/examples.species.html) - [examples.abstraction_ts](https://avcopan.github.io/protomol/reference/examples.abstraction_ts.html) - [examples.stereoisomerization_ts](https://avcopan.github.io/protomol/reference/examples.stereoisomerization_ts.html) #### Type Aliases > Type alias definitions - [AtomStereo](https://avcopan.github.io/protomol/reference/AtomStereo.html): Type alias - [BondStereo](https://avcopan.github.io/protomol/reference/BondStereo.html): Type alias - [Stereo](https://avcopan.github.io/protomol/reference/Stereo.html): Type alias - [AnyGraph](https://avcopan.github.io/protomol/reference/AnyGraph.html): Type alias