# autogeom ## Docs ### API Reference #### Geometry > The model at the center of the package, and selecting or combining its atoms - [Geometry](https://avcopan.github.io/autogeom/reference/Geometry.html): Molecular geometry - [select_atoms](https://avcopan.github.io/autogeom/reference/select_atoms.html): Select a subset of atoms - [remove_atoms](https://avcopan.github.io/autogeom/reference/remove_atoms.html): Remove a subset of atoms - [join](https://avcopan.github.io/autogeom/reference/join.html): Join geometries into one #### Geometry Methods > Methods for the Geometry class - [Geometry.__eq__](https://avcopan.github.io/autogeom/reference/Geometry.__eq__.html) - [Geometry.__repr__](https://avcopan.github.io/autogeom/reference/Geometry.__repr__.html) - [Geometry.atom_count](https://avcopan.github.io/autogeom/reference/Geometry.atom_count.html) - [Geometry.masses](https://avcopan.github.io/autogeom/reference/Geometry.masses.html) - [Geometry.atomic_numbers](https://avcopan.github.io/autogeom/reference/Geometry.atomic_numbers.html) - [Geometry.covalent_radii](https://avcopan.github.io/autogeom/reference/Geometry.covalent_radii.html) - [Geometry.valences](https://avcopan.github.io/autogeom/reference/Geometry.valences.html) - [Geometry.xyz_block](https://avcopan.github.io/autogeom/reference/Geometry.xyz_block.html) - [Geometry.xyz_file](https://avcopan.github.io/autogeom/reference/Geometry.xyz_file.html) - [Geometry.from_xyz_block](https://avcopan.github.io/autogeom/reference/Geometry.from_xyz_block.html) - [Geometry.from_xyz_file](https://avcopan.github.io/autogeom/reference/Geometry.from_xyz_file.html) - [Geometry.relabel_atoms](https://avcopan.github.io/autogeom/reference/Geometry.relabel_atoms.html) #### XYZ files > Reading and writing single- and multi-frame xyz - [xyz_block](https://avcopan.github.io/autogeom/reference/xyz_block.html): Format a geometry as an xyz block - [from_xyz_block](https://avcopan.github.io/autogeom/reference/from_xyz_block.html): Parse a geometry from a single-frame xyz block - [xyz_file](https://avcopan.github.io/autogeom/reference/xyz_file.html): Write a geometry to an xyz file - [from_xyz_file](https://avcopan.github.io/autogeom/reference/from_xyz_file.html): Read a geometry from an xyz file (see `from_xyz_block`) - [xyz_trajectory_block](https://avcopan.github.io/autogeom/reference/xyz_trajectory_block.html): Format geometries as a multi-frame xyz block, one frame per geometry - [from_xyz_trajectory_block](https://avcopan.github.io/autogeom/reference/from_xyz_trajectory_block.html): Parse geometries from a multi-frame xyz block, e.g. a list of conformers - [xyz_trajectory_file](https://avcopan.github.io/autogeom/reference/xyz_trajectory_file.html): Write geometries to a multi-frame xyz file (see `xyz_trajectory_block`) - [from_xyz_trajectory_file](https://avcopan.github.io/autogeom/reference/from_xyz_trajectory_file.html): Read geometries from a multi-frame xyz file (see `from_xyz_trajectory_block`) - [xyz_trajectory_comments](https://avcopan.github.io/autogeom/reference/xyz_trajectory_comments.html): Get the comment line of each frame of a multi-frame xyz block #### Properties and measurements > Quantities computed from the coordinates - [center_of_mass](https://avcopan.github.io/autogeom/reference/center_of_mass.html): Calculate the center of mass - [inertia_tensor](https://avcopan.github.io/autogeom/reference/inertia_tensor.html): Calculate the inertia tensor about the center of mass - [principal_axes](https://avcopan.github.io/autogeom/reference/principal_axes.html): Calculate the principal moments and axes of inertia - [distance_matrix](https://avcopan.github.io/autogeom/reference/distance_matrix.html): Calculate the interatomic distance matrix - [adjacency_matrix](https://avcopan.github.io/autogeom/reference/adjacency_matrix.html): Determine connectivity from covalent radii - [distance_keys](https://avcopan.github.io/autogeom/reference/distance_keys.html): Build a sorted distance descriptor - [distance](https://avcopan.github.io/autogeom/reference/distance.html): Measure the distance between two atoms - [angle](https://avcopan.github.io/autogeom/reference/angle.html): Measure the angle between three atoms - [dihedral](https://avcopan.github.io/autogeom/reference/dihedral.html): Measure the dihedral angle between four atoms - [bonds](https://avcopan.github.io/autogeom/reference/bonds.html): List bond distances - [angles](https://avcopan.github.io/autogeom/reference/angles.html): List bond angles - [dihedrals](https://avcopan.github.io/autogeom/reference/dihedrals.html): List dihedral angles #### Transformations > Moving atoms, and the rotations that align geometries - [translate](https://avcopan.github.io/autogeom/reference/translate.html): Translate a geometry - [rotate](https://avcopan.github.io/autogeom/reference/rotate.html): Rotate a geometry about a point - [reflect](https://avcopan.github.io/autogeom/reference/reflect.html): Reflect a geometry across a plane - [center](https://avcopan.github.io/autogeom/reference/center.html): Translate a geometry so that its center of mass is at the origin - [twist](https://avcopan.github.io/autogeom/reference/twist.html): Rotate a group about a bond, e.g. a methyl or amine group - [twist_angle](https://avcopan.github.io/autogeom/reference/twist_angle.html): Find the twist about a bond that turns one direction onto another - [alignment_rotation](https://avcopan.github.io/autogeom/reference/alignment_rotation.html): Find the rotation that best aligns a reference geometry onto a geometry - [axis_alignment_rotation](https://avcopan.github.io/autogeom/reference/axis_alignment_rotation.html): Find the smallest rotation pointing the vector between two atoms along an axis - [inertial_frame_rotation](https://avcopan.github.io/autogeom/reference/inertial_frame_rotation.html): Find the rotation into the principal axis frame #### Conversions > InChI, SMILES, formulas, and RDKit molecules - [inchi](https://avcopan.github.io/autogeom/reference/inchi.html): Generate the standard InChI string of a geometry with RDKit - [from_inchi](https://avcopan.github.io/autogeom/reference/from_inchi.html): Embed a geometry for an InChI string with RDKit - [smiles](https://avcopan.github.io/autogeom/reference/smiles.html): Generate the canonical SMILES string of a geometry with RDKit - [from_smiles](https://avcopan.github.io/autogeom/reference/from_smiles.html): Embed a geometry for a SMILES string with RDKit - [formula](https://avcopan.github.io/autogeom/reference/formula.html): Generate the molecular formula of a geometry in Hill order - [rdkit_mol](https://avcopan.github.io/autogeom/reference/rdkit_mol.html): Convert a geometry to an RDKit molecule - [from_rdkit_mol](https://avcopan.github.io/autogeom/reference/from_rdkit_mol.html): Convert an RDKit molecule to a geometry, embedding coordinates if missing #### Visualization > Interactive views and rendered images - [View](https://avcopan.github.io/autogeom/reference/View.html): A `py3Dmol.view` with helpers for geometries and arrows - [view](https://avcopan.github.io/autogeom/reference/view.html): Display a geometry with py3Dmol - [render_svg](https://avcopan.github.io/autogeom/reference/render_svg.html): Render a geometry as an SVG image with xyzrender - [render_gif](https://avcopan.github.io/autogeom/reference/render_gif.html): Render a geometry rotating about an axis as a GIF with xyzrender #### Exceptions and units > Errors raised by the package, and its unit registry - [GeometryConversionError](https://avcopan.github.io/autogeom/reference/GeometryConversionError.html): A geometry could not be converted to or from another representation - [XYZFormatError](https://avcopan.github.io/autogeom/reference/XYZFormatError.html): An xyz block could not be parsed - [ElementNotFoundError](https://avcopan.github.io/autogeom/reference/ElementNotFoundError.html): No element matches the given atomic number or symbol - [ureg](https://avcopan.github.io/autogeom/reference/ureg.html): The unit registry stores the definitions and relationships between units #### RDKit molecules > `autogeom.rd`: functions on RDKit `Mol` objects, which never see a `Geometry` - [rd.from_smiles](https://avcopan.github.io/autogeom/reference/rd.from_smiles.html) - [rd.smiles](https://avcopan.github.io/autogeom/reference/rd.smiles.html) - [rd.from_inchi](https://avcopan.github.io/autogeom/reference/rd.from_inchi.html) - [rd.inchi](https://avcopan.github.io/autogeom/reference/rd.inchi.html) - [rd.from_xyz_block](https://avcopan.github.io/autogeom/reference/rd.from_xyz_block.html) - [rd.xyz_block](https://avcopan.github.io/autogeom/reference/rd.xyz_block.html) - [rd.symbols](https://avcopan.github.io/autogeom/reference/rd.symbols.html) - [rd.coordinates](https://avcopan.github.io/autogeom/reference/rd.coordinates.html) - [rd.charge](https://avcopan.github.io/autogeom/reference/rd.charge.html) - [rd.spin](https://avcopan.github.io/autogeom/reference/rd.spin.html) - [rd.has_coordinates](https://avcopan.github.io/autogeom/reference/rd.has_coordinates.html) - [rd.set_coordinates](https://avcopan.github.io/autogeom/reference/rd.set_coordinates.html) - [rd.add_coordinates](https://avcopan.github.io/autogeom/reference/rd.add_coordinates.html) - [rd.add_atom_numbers](https://avcopan.github.io/autogeom/reference/rd.add_atom_numbers.html) - [rd.canonical_ranks](https://avcopan.github.io/autogeom/reference/rd.canonical_ranks.html) - [rd.assign_stereochemistry](https://avcopan.github.io/autogeom/reference/rd.assign_stereochemistry.html) - [rd.chiral_centers](https://avcopan.github.io/autogeom/reference/rd.chiral_centers.html) - [rd.max_bond_count](https://avcopan.github.io/autogeom/reference/rd.max_bond_count.html) - [rd.from_connectivity](https://avcopan.github.io/autogeom/reference/rd.from_connectivity.html) - [rd.EMBED_SEED](https://avcopan.github.io/autogeom/reference/rd.EMBED_SEED.html) #### Elements > `autogeom.element`: periodic table data, looked up by atomic number or symbol - [element.Element](https://avcopan.github.io/autogeom/reference/element.Element.html) - [element.from_key](https://avcopan.github.io/autogeom/reference/element.from_key.html) - [element.number](https://avcopan.github.io/autogeom/reference/element.number.html) - [element.mass_number](https://avcopan.github.io/autogeom/reference/element.mass_number.html) - [element.symbol](https://avcopan.github.io/autogeom/reference/element.symbol.html) - [element.mass](https://avcopan.github.io/autogeom/reference/element.mass.html) - [element.covalent_radius](https://avcopan.github.io/autogeom/reference/element.covalent_radius.html) - [element.group](https://avcopan.github.io/autogeom/reference/element.group.html) - [element.period](https://avcopan.github.io/autogeom/reference/element.period.html) - [element.electronegativity](https://avcopan.github.io/autogeom/reference/element.electronegativity.html) - [element.is_metal](https://avcopan.github.io/autogeom/reference/element.is_metal.html) - [element.shell_capacity](https://avcopan.github.io/autogeom/reference/element.shell_capacity.html) - [element.valence](https://avcopan.github.io/autogeom/reference/element.valence.html) - [element.bonding_capacity](https://avcopan.github.io/autogeom/reference/element.bonding_capacity.html) #### Types > `autogeom.types`: array types and Pydantic fields - [types.FloatArray](https://avcopan.github.io/autogeom/reference/types.FloatArray.html) - [types.FloatArrayField](https://avcopan.github.io/autogeom/reference/types.FloatArrayField.html) - [types.CoordinatesField](https://avcopan.github.io/autogeom/reference/types.CoordinatesField.html)