Expand description
Residue chemistry constants for structure prediction.
Centralises the biochemical lookup tables needed by the ESMFold2 forward pass and ESMC structure utilities:
ATOM37_NAMES/atom_order— canonical 37-slot heavy-atom orderingchi_angles_atoms— 4-atom tuples defining each sidechain dihedralatom14_to_atom37_for_residue— per-residue atom14 → atom37 slot mappingvdw_radius— van der Waals radii for common protein elements
The atom37 ordering matches the crate::featurize::utilities::AAAtom enum.
Constants§
- ATOM37_
NAMES - Canonical atom37 names in slot order.
- NUM_
ATOM37 - NUM_
RESIDUES
Functions§
- atom14_
to_ atom37_ for_ residue - For a residue given by its 3-letter code, return the atom37 slot index for
each of the 14 atom14 positions, or
Noneif that slot is unoccupied. - atom37_
index - Returns the atom37 slot index for a named atom, or
Noneif unknown. - atom_
order - Map from atom name (e.g.
"CA") to its atom37 slot index. - chi_
angles_ atoms - Sidechain chi-angle atom tuples for a residue given by 3-letter code.
- vdw_
radius - Van der Waals radius (Å) for elements commonly found in proteins.