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.
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) |
Return the chain containing the residue.
ValueException | if no residue is found, unless nothrow is true. |
Return the residue from the same chain with one higher index, or Residue().