# API Reference


## Classes


Core classes


[Geometry](Geometry.md#automol.Geometry)  
Molecular geometry.

[View](View.md#automol.View)  
A `py3Dmol.view` with helpers for geometries and arrows.

[Algorithm](Algorithm.md#automol.Algorithm)  
Identity algorithm.

[AlgorithmRegistry](AlgorithmRegistry.md#automol.AlgorithmRegistry)  
Registry of all known identity algorithms.


## Geometry Methods


Methods for the Geometry class


[Geometry.validate_symbols()](Geometry.validate_symbols.md#automol.Geometry.validate_symbols)  
Validate and canonicalize atomic symbols.

[Geometry.validate_consistency()](Geometry.validate_consistency.md#automol.Geometry.validate_consistency)  
Check that symbols, coordinates, charge, and spin are consistent.

[Geometry.__eq__()](Geometry.__eq__.md#automol.Geometry.__eq__)  
Compare geometries field by field, including exact coordinates.

[Geometry.__repr__()](Geometry.__repr__.md#automol.Geometry.__repr__)  
Render the geometry as an xyz block.

[Geometry.xyz_block()](Geometry.xyz_block.md#automol.Geometry.xyz_block)  
Format the geometry as an xyz block (see `xyz_block`).

[Geometry.xyz_file()](Geometry.xyz_file.md#automol.Geometry.xyz_file)  
Write the geometry to an xyz file (see `xyz_file`).

[Geometry.from_xyz_block()](Geometry.from_xyz_block.md#automol.Geometry.from_xyz_block)  
Parse a geometry from an xyz block (see `from_xyz_block`).

[Geometry.from_xyz_file()](Geometry.from_xyz_file.md#automol.Geometry.from_xyz_file)  
Read a geometry from an xyz file (see `from_xyz_file`).

[Geometry.relabel_atoms()](Geometry.relabel_atoms.md#automol.Geometry.relabel_atoms)  
Reorder the atoms.


## Enumerations


Enum types


[IdentityKind](IdentityKind.md#automol.IdentityKind)  
Category of molecular identity.


## Exceptions


Exception classes


[geom.ElementNotFoundError](geom.ElementNotFoundError.md#automol.geom.ElementNotFoundError)  
No element matches the given atomic number or symbol.

[geom.XYZFormatError](geom.XYZFormatError.md#automol.geom.XYZFormatError)  
An xyz block could not be parsed.


## Functions


Public functions


[geom.xyz_block()](geom.xyz_block.md#automol.geom.xyz_block)  
Format a geometry as an xyz block.

[geom.from_xyz_block()](geom.from_xyz_block.md#automol.geom.from_xyz_block)  
Parse a geometry from a single-frame xyz block.

[geom.xyz_file()](geom.xyz_file.md#automol.geom.xyz_file)  
Write a geometry to an xyz file.

[geom.from_xyz_file()](geom.from_xyz_file.md#automol.geom.from_xyz_file)  
Read a geometry from an xyz file (see `from_xyz_block`).

[geom.xyz_trajectory_block()](geom.xyz_trajectory_block.md#automol.geom.xyz_trajectory_block)  
Format geometries as a multi-frame xyz block, one frame per geometry.

[geom.from_xyz_trajectory_block()](geom.from_xyz_trajectory_block.md#automol.geom.from_xyz_trajectory_block)  
Parse geometries from a multi-frame xyz block, e.g. a list of conformers.

[geom.xyz_trajectory_comments()](geom.xyz_trajectory_comments.md#automol.geom.xyz_trajectory_comments)  
Get the comment line of each frame of a multi-frame xyz block.

[geom.xyz_trajectory_file()](geom.xyz_trajectory_file.md#automol.geom.xyz_trajectory_file)  
Write geometries to a multi-frame xyz file (see `xyz_trajectory_block`).

[geom.from_xyz_trajectory_file()](geom.from_xyz_trajectory_file.md#automol.geom.from_xyz_trajectory_file)  
Read geometries from a multi-frame xyz file (see `from_xyz_trajectory_block`).

[geom.rdkit_mol()](geom.rdkit_mol.md#automol.geom.rdkit_mol)  
Convert a geometry to an RDKit molecule.

[geom.from_rdkit_mol()](geom.from_rdkit_mol.md#automol.geom.from_rdkit_mol)  
Convert an RDKit molecule to a geometry, embedding coordinates if missing.

[geom.select_atoms()](geom.select_atoms.md#automol.geom.select_atoms)  
Select a subset of atoms.

[geom.remove_atoms()](geom.remove_atoms.md#automol.geom.remove_atoms)  
Remove a subset of atoms.

[geom.join()](geom.join.md#automol.geom.join)  
Join geometries into one.

[geom.center_of_mass()](geom.center_of_mass.md#automol.geom.center_of_mass)  
Calculate the center of mass.

[geom.distance_matrix()](geom.distance_matrix.md#automol.geom.distance_matrix)  
Calculate the interatomic distance matrix.

[geom.distance_keys()](geom.distance_keys.md#automol.geom.distance_keys)  
Build a sorted distance descriptor.

[geom.adjacency_matrix()](geom.adjacency_matrix.md#automol.geom.adjacency_matrix)  
Determine connectivity from covalent radii.

[geom.inertia_tensor()](geom.inertia_tensor.md#automol.geom.inertia_tensor)  
Calculate the inertia tensor about the center of mass.

[geom.principal_axes()](geom.principal_axes.md#automol.geom.principal_axes)  
Calculate the principal moments and axes of inertia.

[geom.inertial_frame_rotation()](geom.inertial_frame_rotation.md#automol.geom.inertial_frame_rotation)  
Find the rotation into the principal axis frame.

[geom.distance()](geom.distance.md#automol.geom.distance)  
Measure the distance between two atoms.

[geom.angle()](geom.angle.md#automol.geom.angle)  
Measure the angle between three atoms.

[geom.dihedral()](geom.dihedral.md#automol.geom.dihedral)  
Measure the dihedral angle between four atoms.

[geom.bonds()](geom.bonds.md#automol.geom.bonds)  
List bond distances.

[geom.angles()](geom.angles.md#automol.geom.angles)  
List bond angles.

[geom.dihedrals()](geom.dihedrals.md#automol.geom.dihedrals)  
List dihedral angles.

[geom.translate()](geom.translate.md#automol.geom.translate)  
Translate a geometry.

[geom.reflect()](geom.reflect.md#automol.geom.reflect)  
Reflect a geometry across a plane.

[geom.rotate()](geom.rotate.md#automol.geom.rotate)  
Rotate a geometry about a point.

[geom.twist()](geom.twist.md#automol.geom.twist)  
Rotate a group about a bond, e.g. a methyl or amine group.

[geom.twist_angle()](geom.twist_angle.md#automol.geom.twist_angle)  
Find the twist about a bond that turns one direction onto another.

[geom.center()](geom.center.md#automol.geom.center)  
Translate a geometry so that its center of mass is at the origin.

[geom.alignment_rotation()](geom.alignment_rotation.md#automol.geom.alignment_rotation)  
Find the rotation that best aligns a reference geometry onto a geometry.

[geom.axis_alignment_rotation()](geom.axis_alignment_rotation.md#automol.geom.axis_alignment_rotation)  
Find the smallest rotation pointing the vector between two atoms along an axis.

[geom.view()](geom.view.md#automol.geom.view)  
Display a geometry with py3Dmol.

[geom.render_svg()](geom.render_svg.md#automol.geom.render_svg)  
Render a geometry as an SVG image with xyzrender.

[geom.render_gif()](geom.render_gif.md#automol.geom.render_gif)  
Render a geometry rotating about an axis as a GIF with xyzrender.


## Constants


Module-level constants and data


[hill_formula](hill_formula.md#automol.hill_formula)  

[rdkit_inchi](rdkit_inchi.md#automol.rdkit_inchi)  

[rdkit_smiles](rdkit_smiles.md#automol.rdkit_smiles)  

[geom.CoordinatesField](geom.CoordinatesField.md#automol.geom.CoordinatesField)  
`(N, 3)` coordinates field in Angstroms; `pint` quantities are converted.

[geom.FloatArray](geom.FloatArray.md#automol.geom.FloatArray)  


## Other


Additional exports


[rd](rd.md#automol.rd)  
RDKit bridge, operating on RDKit `Mol` objects only (never `Geometry`).
