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

Class Structure

source code

   object --+    
            |    
Entity.Entity --+
                |
               Structure


The Structure class contains a collection of Model instances.

Instance Methods [hide private]
 
__init__(self, id)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__repr__(self)
repr(x)
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: __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 object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
repr(x)

Overrides: object.__repr__
(inherited documentation)

_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