IMP logo

IMP::atom::Residue Class Reference
[Hierarchies of particles]


Detailed Description

A decorator for a residue.

As with the Atom, the names of residues may be expanded dynamically. This can be easily done in an analogous manner when we need it.

Inheritance diagram for IMP::atom::Residue:

Inheritance graph
[legend]

Public Member Functions

Int get_index () const
 The residues index in the chain.
char get_insertion_code () const
bool get_is_dna () const
bool get_is_protein () const
bool get_is_rna () const
ResidueType get_residue_type () const
 Residue (::IMP::Particle *p)
void set_index (Int t)
void set_insertion_code (char insertion_code)
void set_residue_type (ResidueType t)
 Update the stored ResidueType and the atom::Hierarchy::Name.

Static Public Member Functions

static Residue decorate_particle (::IMP::Particle *p)
static IntKey get_index_key ()
static IntKey get_insertion_code_key ()
static IntKey get_residue_type_key ()
static bool particle_is_instance (Particle *p)
static Residue setup_particle (Particle *p, Residue o)
 Copy data from the other Residue to the particle p.
static Residue setup_particle (Particle *p, ResidueType t=UNK, int index=-1, int insertion_code=32)
 Add the required attributes to the particle and create a Residue.

Related Functions

(Note that these are not member functions.)

Chain get_chain (Residue rd, bool nothrow=false)
Hierarchy get_next_residue (Residue rd)

Friends And Related Function Documentation

Chain get_chain ( Residue  rd,
bool  nothrow = false 
) [related]

Return the chain containing the residue.

Exceptions:
ValueException if no residue is found, unless nothrow is true.

Hierarchy get_next_residue ( Residue  rd  )  [related]

Return the residue from the same chain with one higher index, or Residue().

Note:
Currently, this function only works if the parent of rd is the chain. This should be fixed later. Ask if you need it.
The return type is Hierarchy since the particle representing the next residue might not be a Residue particle.


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

Generated on Mon Mar 8 23:08:51 2010 for IMP by doxygen 1.5.8