#include <Protein.h>
It probably should be called chain, but it is not :-)
check_protein.cc, pdb_align.cc, pdb_align_points.cc, pdb_distance.cc, and pdb_split.cc.
Definition at line 41 of file Protein.h.
Public Types | |
typedef std::pair< Atom::Index, Atom::Index > | Bond |
typedef std::vector< Residue >::iterator | Residues_iterator |
typedef std::vector< Residue >::const_iterator | Const_residues_iterator |
Public Member Functions | |
Protein (std::istream &in, bool print_errors=false) | |
Protein () | |
char | chain () const |
void | set_chain (char c) |
Residues_iterator | residues_begin () |
Residues_iterator | residues_end () |
Const_residues_iterator | residues_begin () const |
Const_residues_iterator | residues_end () const |
unsigned int | number_of_residues () const |
Atoms_iterator | atoms_begin () |
Atoms_iterator | atoms_end () |
Const_atoms_iterator | atoms_begin () const |
Const_atoms_iterator | atoms_end () const |
unsigned int | number_of_atoms () const |
Bonds_iterator | bonds_begin () const |
Bonds_iterator | bonds_end () const |
unsigned int | number_of_bonds () const |
const Residue & | residue_containing_atom (Atom::Index atom_index) const |
Residue & | residue_containing_atom (Atom::Index atom_index) |
const Atom & | atom (Atom::Index atom_index) const |
void | set_atom (Atom::Index atom_index, const Atom &a) |
std::vector< Residue::Type > | sequence () const |
void | write (std::ostream &out) const |
void | write_pdb (std::ostream &out) const |
void | dump (std::ostream &out) const |
const Residue & | residue (Residue::Index i) const |
bool | has_residue (Residue::Index i) const |
bool | has_bonds () const |
void | set_has_bonds (bool tf) |
Protected Attributes | |
std::vector< Residue > | residues_ |
std::vector< std::string > | header_ |
char | chain_ |
Friends | |
class | Model |
Classes | |
class | Atoms_iterator |
An iterator through the atoms of a dsrpdb::Protein. More... | |
class | Bonds_iterator |
An iterator through the bonds of a dsrpdb::Protein. More... | |
class | Const_atoms_iterator |
An iterator through the atoms of a dsrpdb::Protein. More... |
|
A chemical bond within the protein.
|
|
Iterator for residues in order of addition.
|
|
An iterator to go through all the residues.
|
|
Build a protein from a pdb file. See check_protein.cc for an example of using this to read a pdb file. The optional bool controls whether errors (such as unparsable PDB lines). Set it to false to disable printing errors. |
|
Default.
|
|
Return the atom which has the pdb index passed.
Referenced by dsrpdb::Protein::Bonds_iterator::cur_bond(). |
|
Begin iterating through the atoms.
|
|
Begin iterating through the atoms.
Referenced by dsrpdb::all_coordinates_begin(), dsrpdb::backbone_coordinates_begin(), dsrpdb::ca_coordinates_begin(), and dsrpdb::protein_backbone_indices_begin(). |
|
End iterating through the atoms.
|
|
End iterating through the atoms.
Referenced by dsrpdb::all_coordinates_begin(), dsrpdb::all_coordinates_end(), dsrpdb::backbone_coordinates_begin(), dsrpdb::backbone_coordinates_end(), dsrpdb::ca_coordinates_begin(), dsrpdb::ca_coordinates_end(), dsrpdb::protein_backbone_indices_begin(), and dsrpdb::protein_backbone_indices_end(). |
|
Begin iterating through all the bonds
|
|
End iterating through all the bonds.
|
|
Return the chain id.
|
|
Dump as human readable.
|
|
Return whether bonds have been computed for this protein.
Definition at line 176 of file Protein.h. References residues_. |
|
Return true if there is a residue with that index.
|
|
This is non-const time.
|
|
This is non-const time.
|
|
Return the residue with a particular index.
|
|
Return the dsrpdb::Residue which contains the atom witha particular index.
|
|
Return the dsrpdb::Residue which contains the atoms with a particular index. This operation is currently linear in the number of residues. Making it logrighmic should be easy, but it isn't done. |
|
Begin iterating residues.
Definition at line 83 of file Protein.h. References residues_. |
|
Iterate through all the residues.
Definition at line 73 of file Protein.h. References residues_. Referenced by dsrpdb::simplified_coordinates_and_bonds(). |
|
End iterating residues.
Definition at line 87 of file Protein.h. References residues_. |
|
End iterator through the residues.
Definition at line 77 of file Protein.h. References residues_. Referenced by dsrpdb::simplified_coordinates_and_bonds(). |
|
The sequence of residue types.
|
|
Return the atom which has the pdb index passed.
|
|
Set the chain id.
|
|
Set whether the protein has bonds or not.
Definition at line 181 of file Protein.h. References residues_. |
|
Write as part of pdb file.
|
|
Write a pdb file. See check_protein.cc for an example of using this to write a pdb file. |