aa
Amino Acid Structures for PDB2PQR
This module contains the base amino acid structures for pdb2pqr.
Code author: Todd Dolinsky
Code author: Nathan Baker
- class pdb2pqr.aa.ALA(atoms, ref: DefinitionResidue)[source]
Alanine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.ARG(atoms, ref: DefinitionResidue)[source]
Arginine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.ASN(atoms, ref: DefinitionResidue)[source]
Asparagine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.ASP(atoms, ref: DefinitionResidue)[source]
Aspartic acid class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.Amino(atoms: list[ATOM | HETATM], ref: DefinitionResidue)[source]
Amino acid class
This class provides standard features of the amino acids.
- __init__(atoms: list[ATOM | HETATM], ref: DefinitionResidue)[source]
Initialize object.
Todo
need to see whether
super().__init__()should be called- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- add_atom(atom: Atom)[source]
Add atom to residue.
Override the existing add_atom; include the link to the reference object.
- Parameters:
atom (Atom) – atom to add
- add_dihedral_angle(value)[source]
Add a dihedral angle to the residue list.
- Parameters:
value (float) – dihedral angle (in degrees) to add
- create_atom(atomname: str, newcoords: list[float] | tuple[float, float, float])[source]
Create an atom.
Todo
Determine why this is different than superclass method.
Override the generic residue’s version of create_atom().
- rebuild_tetrahedral(atomname)[source]
Rebuild a tetrahedral hydrogen group.
This is necessary due to the shortcomings of the quatfit routine - given a tetrahedral geometry and two existing hydrogens, the quatfit routines have two potential solutions. This function uses basic tetrahedral geometry to fix this issue.
- class pdb2pqr.aa.CYS(atoms, ref: DefinitionResidue)[source]
Cysteine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.GLN(atoms, ref: DefinitionResidue)[source]
Glutamine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.GLU(atoms, ref: DefinitionResidue)[source]
Glutamic acid class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.GLY(atoms, ref: DefinitionResidue)[source]
Glycine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.HIS(atoms, ref: DefinitionResidue)[source]
Histidine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- letter_code()[source]
Return letter code for amino acid.
- Returns:
amino acid 1-letter code
- Return type:
- set_state()[source]
Set forcefield name based on current titration state.
Histidines are a special case due to the presence of several different forms. This function sets all neutral forms of HIS to neutral HIS by checking to see if optimization removed hacceptor or hdonor flags. Otherwise HID is used as the default.
- class pdb2pqr.aa.ILE(atoms, ref: DefinitionResidue)[source]
Isoleucine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.LEU(atoms, ref: DefinitionResidue)[source]
Leucine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.LIG(atoms, ref)[source]
Generic ligand class.
- __init__(atoms, ref)[source]
Initialize this object.
Todo
why is the force field name “WAT” for this?
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the residue. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.LYS(atoms, ref: DefinitionResidue)[source]
Lysine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.MET(atoms, ref: DefinitionResidue)[source]
Methionine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.PHE(atoms, ref: DefinitionResidue)[source]
Phenylalanine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.PRO(atoms, ref: DefinitionResidue)[source]
Proline class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.SER(atoms, ref: DefinitionResidue)[source]
Serine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.THR(atoms, ref: DefinitionResidue)[source]
Threonine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.TRP(atoms, ref: DefinitionResidue)[source]
Tryptophan class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.TYR(atoms, ref: DefinitionResidue)[source]
Tyrosine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.VAL(atoms, ref: DefinitionResidue)[source]
Valine class.
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the amino acid. Used to convert from the alternate naming scheme to the main naming scheme.
- class pdb2pqr.aa.WAT(atoms, ref: DefinitionResidue)[source]
Water class.
Todo
Why is water in the amino acid module?
- __init__(atoms, ref: DefinitionResidue)[source]
Initialize object.
- Parameters:
atoms ([Atom]) – A list of
Atomobjects to be stored in this objectref (DefinitionResidue) – The reference object for the residue. Used to convert from the alternate naming scheme to the main naming scheme.
- add_atom(atom)[source]
Add an atom to the residue.
Override the existing add_atom - include the link to the reference object.
- Parameters:
atom (Atom) – add atom to residue
- create_atom(atomname, newcoords)[source]
Create a water atom.
Note the HETATM field.
Todo
There is a huge amount of duplicated code in this module.
- water_residue_names = ['HOH', 'WAT']