Avogadro
1.1.0
|
Representation of a protein, including secondary structure. More...
#include <avogadro/protein.h>
Public Member Functions | |
Protein (Molecule *molecule) | |
virtual | ~Protein () |
Chains | |
const QVector< QVector < Residue * > > & | chains () const |
int | numChains () const |
QList< unsigned long > | chainAtoms (int index) const |
QList< unsigned long > | chainResidues (int index) const |
Secondary structure | |
QByteArray | secondaryStructure () const |
bool | isHelix (Residue *residue) const |
bool | isSheet (Residue *residue) const |
Representation of a protein, including secondary structure.
The Protein class helps other parts of the library or plugins to work with proteins. If the molecule was read from a pdb file, an attempt will be made to get the secondary structure information from the HELIX and SHEET lines. If this fails, a simplified version of the DSSP algorithm is used.
http://en.wikipedia.org/wiki/Secondary_structure#The_DSSP_code
The secondary structure is assigned based on hydrogen bonding patterns. There are eight types of secondary structure that DSSP defines:
Amino acid residues which are not in any of the above conformations are assigned as the eighth type '-' = Coil. The helices (G,H and I) and sheet conformations are all required to have a reasonable length. This means that 2 adjacent residues in the primary structure must form the same hydrogen bonding pattern. If the helix or sheet hydrogen bonding pattern is too short they are designated as T or B, respectively.
Avogadro::Protein::Protein | ( | Molecule * | molecule | ) |
Constructor.
molecule | The object parent. |
Avogadro::Protein::~Protein | ( | ) | [virtual] |
Destructor.
QList< unsigned long > Avogadro::Protein::chainAtoms | ( | int | index | ) | const |
index
. References QList::append(), and Avogadro::Fragment::atoms().
QList< unsigned long > Avogadro::Protein::chainResidues | ( | int | index | ) | const |
index
. References QList::append(), and Avogadro::Primitive::id().
const QVector< QVector< Residue * > > & Avogadro::Protein::chains | ( | ) | const |
bool Avogadro::Protein::isHelix | ( | Residue * | residue | ) | const |
References Avogadro::Primitive::index().
bool Avogadro::Protein::isSheet | ( | Residue * | residue | ) | const |
References Avogadro::Primitive::index().
int Avogadro::Protein::numChains | ( | ) | const |