Chemical Types#
Public residue-type objects. tmol.PatchedChemicalDatabase is
imported from the top-level package and documented in Top-level API.
Chemical residue types, patches, and connectivity utilities.
- class tmol.chemical.RefinedResidueType(name: str, base_name: str, name3: str, io_equiv_class: str, atoms: Tuple[Atom, ...], atom_aliases: Tuple[AtomAlias, ...], bonds: Tuple[tuple, ...], connections: Tuple[Connection, ...], torsions: Tuple[Torsion, ...], icoors: Tuple[Icoor, ...], properties: ChemicalProperties, chi_samples: Tuple[ChiSamples, ...], default_jump_connection_atom: str, hydrogens_regenerated: bool = False, is_ligand_fragment: bool = False, rama_reference: str | None = None, dunbrack_reference: str | None = None, na_base_reference: str | None = None, reference_mirrored: bool = False, one_letter_code: str | None = None, conjugation_context: Tuple[Tuple[str, str, str], ...] = (), metal_sites: Tuple[MetalSite, ...] = (), io_bond_orders: Tuple[Tuple[str, str, str], ...] = (), atom_names_set: Set[str] = NOTHING, atom_to_idx: Mapping[str, AtomIndex] = NOTHING, aliases_map: Mapping[str, str] = NOTHING, coord_dtype: dtype = NOTHING, bond_indices: ndarray = NOTHING, bond_to_type: Mapping = NOTHING, bond_to_ringness: Mapping = NOTHING, connection_to_idx: Mapping[str, AtomIndex] = NOTHING, connection_to_cidx: Mapping[str | None, ConnectionIndex] = NOTHING, ordered_connection_atoms: ndarray = NOTHING, connection_bond_types: ndarray = NOTHING, connection_bond_in_ring: ndarray = NOTHING, all_bonds: ndarray = NOTHING, down_connection_ind: int = NOTHING, up_connection_ind: int = NOTHING, torsion_to_uaids: Mapping[str, Tuple[Tuple[AtomIndex, ConnectionIndex, BondCount]]] = NOTHING, ordered_torsions: ndarray = NOTHING, is_torsion_mc: ndarray = NOTHING, mc_torsions: ndarray = NOTHING, sc_torsions: ndarray = NOTHING, which_mcsc_torsion: ndarray = NOTHING, path_distance: ndarray = NOTHING, atom_paths_from_conn: ndarray = NOTHING, atom_downstream_of_conn: ndarray = NOTHING, icoors_index: Mapping[str, AtomIndex] = NOTHING, at_to_icoor_ind: ndarray = NOTHING, icoors_ancestors: ndarray = NOTHING, icoors_geom: ndarray = NOTHING, ideal_coords: ndarray = NOTHING, default_jump_connection_atom_index: int = NOTHING)[source]#
Bases:
RawResidueTypeResidue type augmented with indexed atoms, bonds, and kinematic metadata.
- class tmol.chemical.ResidueTypeSet(residue_types: Sequence[RefinedResidueType], restype_map: Mapping[ResName3, Sequence[RefinedResidueType]], chem_db: PatchedChemicalDatabase)[source]#
Bases:
objectCollection of residue types refined from one chemical database.
- classmethod get_default() ResidueTypeSet[source]#
Load and return the residue type set constructed from the default param db
- extended(chemical_db: PatchedChemicalDatabase) ResidueTypeSet[source]#
This set grown to
chemical_db, whose residues begin with this set’s; the types already here stay the same objects.- Raises:
ValueError – If this set does not hold one type per residue of its database, or
chemical_dbdoes not begin with those residues.