Package mmLib :: Module Structure :: Class Residue
[hide private]
[frames] | no frames]

Class Residue

source code

object --+    
         |    
  Fragment --+
             |
            Residue
Known Subclasses:

A subclass of Fragment representing one residue in a polymer chain.

Instance Methods [hide private]
 
__str__(self)
str(x)
source code
 
get_offset_residue(self, offset)
Returns the residue along the chain at the given integer offset from self.
source code
 
create_bonds(self)
Constructs bonds within a fragment.
source code

Inherited from Fragment: __contains__, __deepcopy__, __ge__, __getitem__, __gt__, __init__, __iter__, __le__, __len__, __lt__, add_atom, count_all_atoms, count_atoms, get_atom, get_chain, get_equivalent_atom, get_model, get_offset_fragment, get_structure, index, is_amino_acid, is_nucleic_acid, is_standard_residue, is_water, iter_all_atoms, iter_atoms, iter_bonds, remove_atom, set_chain_id, set_default_alt_loc, set_fragment_id, set_model_id, set_res_name

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

get_offset_residue(self, offset)

source code 

Returns the residue along the chain at the given integer offset from self. Returns None if there is no residue at that offset, or if the fragment found is not the same type of residue as self.

create_bonds(self)

source code 

Constructs bonds within a fragment. Bond definitions are retrieved from the monomer library. This version also constructs the bonds between adjacent residues.

Overrides: Fragment.create_bonds