Package Bio :: Package PDB :: Module Residue :: Class Residue
[hide private]
[frames] | no frames]

Class Residue

source code

   object --+    
            |    
Entity.Entity --+
                |
               Residue

Represents a residue. A Residue object stores atoms.
Instance Methods [hide private]
 
__init__(self, id, resname, segid)
Initialize the class.
source code
 
__repr__(self)
repr(x)
source code
 
add(self, atom)
Add an Atom object.
source code
 
sort(self)
Sort child atoms.
source code
 
flag_disordered(self)
Set the disordered flag.
source code
 
is_disordered(self)
Return 1 if the residue contains disordered atoms.
source code
 
get_resname(self) source code
 
get_unpacked_list(self)
Return the list of all atoms, unpack DisorderedAtoms.
source code
 
get_segid(self) source code
 
get_atoms(self) source code
 
get_atom(self) source code

Inherited from Entity.Entity: __contains__, __delitem__, __eq__, __ge__, __getitem__, __gt__, __hash__, __iter__, __le__, __len__, __lt__, __ne__, copy, detach_child, detach_parent, get_full_id, get_id, get_iterator, get_level, get_list, get_parent, has_id, insert, set_parent, transform

Inherited from Entity.Entity (private): _generate_full_id, _reset_full_id

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

Properties [hide private]

Inherited from Entity.Entity: id

Inherited from object: __class__

Method Details [hide private]

__init__(self, id, resname, segid)
(Constructor)

source code 
Initialize the class.
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

add(self, atom)

source code 

Add an Atom object.

Checks for adding duplicate atoms, and raises a PDBConstructionException if so.

Overrides: Entity.Entity.add

sort(self)

source code 

Sort child atoms.

Atoms N, CA, C, O always come first, thereafter alphabetically by name, with any alternative location specifier for disordered atoms (altloc) as a tie-breaker.