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

Class Structure

source code

Entity.Entity --+
                |
               Structure

The Structure class contains a collection of Model instances.

Instance Methods [hide private]
 
__init__(self, id) source code
 
__repr__(self) source code
 
_sort(self, m1, m2)
Sort models.
source code
 
get_chains(self) source code
 
get_residues(self) source code
 
get_atoms(self) source code

Inherited from Entity.Entity: __delitem__, __getitem__, __iter__, __len__, add, detach_child, detach_parent, get_full_id, get_id, get_iterator, get_level, get_list, get_parent, has_id, set_parent

Method Details [hide private]

__init__(self, id)
(Constructor)

source code 
Overrides: Entity.Entity.__init__

_sort(self, m1, m2)

source code 

Sort models.

This sorting function sorts the Model instances in the Structure instance. The sorting is done based on the model id, which is a simple int that reflects the order of the models in the PDB file.

Arguments: o m1, m2 - Model instances