Package mmLib :: Module Structure :: Class Strand
[hide private]
[frames] | no frames]

Class Strand

source code

object --+
         |
        Strand

One strand of a BetaSheet.

Instance Methods [hide private]
 
__init__(self, chain_id1='', frag_id1='', res_name1='', chain_id2='', frag_id2='', res_name2='', reg_chain_id='', reg_frag_id='', reg_res_name='', reg_atom='', reg_prev_chain_id='', reg_prev_frag_id='', reg_prev_res_name='', reg_prev_atom='', **args)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
add_segment(self, segment)
Adds the Segment object this Strand spans.
source code
 
construct_segment(self)
Constructs the child Segment object from the Chain object found in the parent Structure object by the BetaSheet chain_id/fragment_id information.
source code
 
get_beta_sheet(self)
Returns the parent BetaSheet object.
source code
 
get_chain(self)
Returns the parent Chain object.
source code
 
get_model(self)
Returns the parent Model object.
source code
 
get_structure(self)
Returns the parent Structure object.
source code
 
get_segment(self)
Return the child Segment object this AlphaHelix spans in the parent Model.
source code
 
iter_fragments(self)
Iterates all Fragment objects.
source code
 
iter_atoms(self)
Iterates all Atom objects.
source code
 
iter_all_atoms(self)
Iterates all Atom objects plus any in non-default alt_loc conformations.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, chain_id1='', frag_id1='', res_name1='', chain_id2='', frag_id2='', res_name2='', reg_chain_id='', reg_frag_id='', reg_res_name='', reg_atom='', reg_prev_chain_id='', reg_prev_frag_id='', reg_prev_res_name='', reg_prev_atom='', **args)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

add_segment(self, segment)

source code 

Adds the Segment object this Strand spans. If the Strand already has a Segment, then it is replaced. The Segment objects added to Strand objects must have the attribute segment.chain referencing the source Chain object the Segment was sliced from.

construct_segment(self)

source code 

Constructs the child Segment object from the Chain object found in the parent Structure object by the BetaSheet chain_id/fragment_id information. Returns True if the Segment was created, or False if it was not. The Segment is not created when the fragment range fragment_id1:fragment_id2 cannot be found in the parent Chain object.

get_chain(self)

source code 

Returns the parent Chain object. If the Strand does not have a Segment child the raised AttributeError.