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

Class Model

source code

   object --+    
            |    
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, serial_num=None)
Initialize.
source code
 
_sort(self, c1, c2)
Sort the Chains instances in the Model instance.
source code
 
__repr__(self)
repr(x)
source code
 
get_chains(self) source code
 
get_residues(self) source code
 
get_atoms(self) source code

Inherited from Entity.Entity: __contains__, __delitem__, __getitem__, __iter__, __len__, add, 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): _reset_full_id

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __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, serial_num=None)
(Constructor)

source code 

Initialize.

Arguments:
  • id - int
  • serial_num - int
Overrides: object.__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:
  • c1, c2 - Chain objects

__repr__(self)
(Representation operator)

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