pestifer.core.labels module¶
Labels and segtypes for residues This module defines the segment types and residue names used in CHARMM and PDB files, along with their mappings. It also provides a class for managing these labels and mappings.
- class pestifer.core.labels.LabelMappers[source]¶
Bases:
objectClass to hold label mappers for residue names and segment types.
- update_alias_mappings()[source]¶
Update the alias mappings for residues based on the current aliases.
- update_aliases(residue_aliases=[], atom_aliases=[])[source]¶
Update the aliases with new residue and atom aliases.
- pestifer.core.labels.Labels = <pestifer.core.labels.LabelMappers object>¶
Global instance of
LabelMappersclass to access segment types and residue names. This instance provides access to the segment types and residue names used in CHARMM and PDB files. It allows for easy mapping between residue names and their corresponding segment types, as well as providing access to the CHARMM residue names for PDB residue names. Any module file that importsLabelsfrompestifer.core.labelswill have access to this instance. This is useful for tasks that require residue name and segment type management, such as preparing input files for molecular simulations or analyzing protein structures.