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

Class Model

source code

Entity.Entity --+
                |
               Model

The object representing a model in a structure. In a structure derived from an X-ray crystallography experiment, only a single model will be present (with some exceptions). NMR structures normally contain many different models.

Instance Methods [hide private]
 
__init__(self, id)
Arguments: o id - int
source code
 
_sort(self, c1, c2)
Sort the Chains instances in the Model instance.
source code
 
__repr__(self) source code
 
get_residues(self) source code
 
get_atoms(self) source code

Inherited from Entity.Entity: __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 

Arguments: o id - int

Overrides: Entity.Entity.__init__

_sort(self, c1, c2)

source code 

Sort the Chains instances in the Model instance.

Chain instances are sorted alphabetically according to their chain id. Blank chains come last, as they often consist of waters.

Arguments: o c1, c2 - Chain objects