class OEResidue
The OEResidue class in OEChem is used to attach biopolymer information to each OEAtomBase. This class contains a number of fields specific to processing macromolecules, such as proteins and nucleic acids. Each atom may be annotated with a unique OEResidue, hence OEResidue instances are not shared between different atoms. If the fields of an OEResidue associated with a single atom are updated, only that atom is affected.
OEResidue& operator = (const OEResidue &res)
The assignment operator may be used to copy all of the fields of an OEResidue.
operator bool() const
Determine whether any field of an OEResidue has a non-default value.
char GetAlternateLocation() const
Return the alternate location character property of an atom in a residue. The ``alternate location'' property may be set using the OEResidue::SetAlternateLocation method.
float GetBFactor() const
Return the crystallographic B-factor property of an atom in a residue. The ``b-factor'' property may be set using the OEResidue::SetBFactor method.
char GetChainID() const
Return the chain identifier character property of a residue. The ``chain identifier'' property may be set using the OEResidue::SetChainID method.
int GetFragmentNumber() const
Return the fragment number property of a residue. Fragment numbers are integer indices that define connected components of a macromolecule. When reading from a PDB file, the first atom is placed in fragment number 1. Each time a ``TER'', ``END'' or ``ENDM'' record is encountered within a single connection table, the fragment number is incremented. Similarly, when writing a PDB file, a TER record is written between any consecutive pair of atoms with different fragment numbers. The fragment number property may be set using the OEResidue::SetFragment number property.
char GetInsertCode() const
Return the insertion code character of a residue. Insertion codes are single character suffixes used to distinguish insertions when using a standardized residue numbering system. By default, this property contains a single space character, ' '. The insertion code property of a residue may be set using the OEResidue::SetInsertCode method.
int GetModelNumber() const
Return the model number property of a residue. For NMR or molecular dynamics files, the model number contains the index of the NMR model or dynamics time-step within a file. The ``model number'' property may be set using the OEResidue::SetModelNumber method.
const char *GetName() const
Return the residue name property of a residue. The ``residue name'' property may be set using the OEResidue::SetName method.
float GetOccupancy() const
Return the crystallographic ``occupancy'' floating point property of an atom in a residue. The default value is 1.0. The ``occupancy'' property may be set using the OEResidue::SetOccupancy method.
int GetResidueNumber() const
Return the residue number property of a residue. The ``residue number'' property may be set using the OEResidue::SetResidueNumber method.
int GetSecondaryStructure() const
Return the protein secondary structure class property of a residue. The default value is zero. The secondary structure property of a residue may be set using the OEResidue::SetSecondaryStructure method.
int GetSerialNumber() const
Return the atom serial number property of an atom in a residue. The ``atom serial number'' property may be set using the OEResidue::SetSerialNumber method.
bool IsHetAtom() const
Return the boolean ``hetero atom'' property of an atom in a residue. The ``hetero atom'' property may be set using the OEResidue::SetHetAtom method.
bool SetAlternateLocation(char alt)
Set the alternate location character property of an atom in a residue. The default value is a space character. The alternate location property of an atom in a residue may be retrieved using the OEResidue::GetAlternateLocation method.
bool SetBFactor(float temp)
Set the crystallographic B-factor property of an atom in a residue. The default value is 0.0. The b-factor property of an atom in a residue may be retrieved using the OEResidue::GetBFactor method.
bool SetChainID(char ch)
Set the chain identifier character property of a residue. The default value is a space character. The chain identifier property of a residue may be retrieved using the OEResidue::GetChainID method.
bool SetFragmentNumber(int frag)
Set the fragment number property of a residue. Fragment numbers are integer indices that define the connected components of a macromolecule. When reading from a PDB file, the first atom is placed in fragment number 1. Each time a ``TER'', ``END'' or ``ENDM'' record is encountered within a single connection table, the fragment number is incremented. Similarly, when writing a PDB file, a TER record is written between any consecutive pair of atoms with different fragment numbers. The default value is zero. The fragment number property of a residue may be retrieved using the OEResidue::GetFragmentNumber method.
bool SetHetAtom(bool het)
Set the boolean ``hetero atom'' property of an atom in a residue. The default value is false. The hetero atom property of an atom in a residue may be retrieved using the OEResidue::IsHetAtom method.
bool SetInsertCode(char ins)
Set the insertion code character of a residue. Insertion codes are single character suffices used to distinguish insertions when using a standardized residue numbering system. By default, this property contains a single space character. ' '. The insertion code property of a residue may be retrieved using the OEResidue::GetInsertCode method.
bool SetModelNumber(char model)
Set the model number property of a residue. For NMR or molecular dynamics files, the model number contains the index of the NMR model or dynamics time-step within a file. The default value is zero. The ``model number'' property of a residue may be retrieved using the OEResidue::GetModelNumber method.
bool SetName(const std::string name) bool SetName(const char *name)
Set the residue name property of a residue. The default value is ``MOL''. The residue name property of a residue may be retrieved using the OEResidue::GetName method.
bool SetOccupancy(float occup)
Set the crystallographic occupancy property of an atom in a residue. The default value is 1.0. The occupancy property of an atom in a molecule may be retrieved using the OEResidue::GetOccupancy method.
bool SetResidueNumber(int resno)
Set the residue number property of a residue. The default value is one. The residue number property of a residue may be retrieved using the OEResidue::GetResidueNumber method.
bool SetSecondaryStructure(int secstr)
Set the protein secondary structure class property of a residue. The default value is zero. The secondary structure property of a residue may be retrieved using the OEResidue::GetSecondaryStructure method.
bool SetSerialNumber(int serno)
Set the atom serial number property of an atom in a residue. The
default value is zero. The atom serial number property may be
retrieved using the OEResidue::GetSerialNumber method.