python_pdb.formats.residue module
Mappings for converting between residue formats.
- python_pdb.formats.residue.AMINO_ACIDS = ['GLY', 'PRO', 'ALA', 'VAL', 'LEU', 'ILE', 'MET', 'CYS', 'PHE', 'TYR', 'TRP', 'HIS', 'LYS', 'ARG', 'GLN', 'ASN', 'GLU', 'ASP', 'SER', 'THR']
List of amino acid residue one letter codes.
- python_pdb.formats.residue.ONE_TO_THREE_CODE = {'A': 'ALA', 'C': 'CYS', 'D': 'ASP', 'E': 'GLU', 'F': 'PHE', 'G': 'GLY', 'H': 'HIS', 'I': 'ILE', 'K': 'LYS', 'L': 'LEU', 'M': 'MET', 'N': 'ASN', 'P': 'PRO', 'Q': 'GLN', 'R': 'ARG', 'S': 'SER', 'T': 'THR', 'V': 'VAL', 'W': 'TRP', 'Y': 'TYR'}
Mapping from one letter code (OLC) to three letter code (TLC) for each amino acid residue.
- python_pdb.formats.residue.THREE_TO_ONE_CODE = {'ALA': 'A', 'ARG': 'R', 'ASN': 'N', 'ASP': 'D', 'CYS': 'C', 'GLN': 'Q', 'GLU': 'E', 'GLY': 'G', 'HIS': 'H', 'ILE': 'I', 'LEU': 'L', 'LYS': 'K', 'MET': 'M', 'PHE': 'F', 'PRO': 'P', 'SER': 'S', 'THR': 'T', 'TRP': 'W', 'TYR': 'Y', 'VAL': 'V'}
Mapping from three letter code (TLC) to one letter code (OLC) for each amino acid residue.
- exception python_pdb.formats.residue.UnknownResidueError(res: str)
Bases:
Exception
Raised when an unknown residue is input.