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

Type Strand

object --+
         |
        Strand


One strand of a BetaSheet.
Method Summary
  __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)
  __str__(self)
  add_segment(self, segment)
Adds the Segment object this Strand spans.
  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.
  get_beta_sheet(self)
Returns the parent BetaSheet object.
  get_chain(self)
Returns the parent Chain object.
  get_model(self)
Returns the parent Model object.
  get_segment(self)
Return the child Segment object this AlphaHelix spans in the parent Model.
  get_structure(self)
Returns the parent Structure object.
  iter_all_atoms(self)
Iterates all Atom objects plus any in non-default alt_loc conformations.
  iter_atoms(self)
Iterates all Atom objects.
  iter_fragments(self)
Iterates all Fragment objects.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Method Details

add_segment(self, segment)

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)

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_beta_sheet(self)

Returns the parent BetaSheet object.

get_chain(self)

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

get_model(self)

Returns the parent Model object.

get_segment(self)

Return the child Segment object this AlphaHelix spans in the parent Model.

get_structure(self)

Returns the parent Structure object.

iter_all_atoms(self)

Iterates all Atom objects plus any in non-default alt_loc conformations.

iter_atoms(self)

Iterates all Atom objects.

iter_fragments(self)

Iterates all Fragment objects.

Generated by Epydoc 2.1 on Sun Apr 23 22:08:40 2006 http://epydoc.sf.net