Avogadro  1.1.0
Public Member Functions
Avogadro::Protein Class Reference

Representation of a protein, including secondary structure. More...

#include <avogadro/protein.h>

Inheritance diagram for Avogadro::Protein:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

Constructor.

Parameters:
moleculeThe object parent.

Destructor.


Member Function Documentation

QList< unsigned long > Avogadro::Protein::chainAtoms ( int  index) const
Returns:
All atom ids for chain with index.

References QList::append(), and Avogadro::Fragment::atoms().

QList< unsigned long > Avogadro::Protein::chainResidues ( int  index) const
Returns:
All residue ids for chain with index.

References QList::append(), and Avogadro::Primitive::id().

const QVector< QVector< Residue * > > & Avogadro::Protein::chains ( ) const
Returns:
All the residues in the protein ordered by chain.
bool Avogadro::Protein::isHelix ( Residue residue) const
Returns:
True if the residue is part of a sheet.

References Avogadro::Primitive::index().

bool Avogadro::Protein::isSheet ( Residue residue) const
Returns:
True if the residue is part of a sheet.

References Avogadro::Primitive::index().

Returns:
the number of chains in this protein
Returns:
QByteArray with codes for the protein's secondary structure.

The documentation for this class was generated from the following files: