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

Type Model

object --+
         |
        Model


Multiple models support.
Method Summary
  __init__(self, model_id, **args)
  __contains__(self, chain_idx)
Returns True if the argument Chain or chain_id is in the Model.
  __deepcopy__(self, memo)
  __ge__(self, other)
  __getitem__(self, chain_idx)
Same as get_chain, but raises KeyError if the requested chain_id is not found.
  __gt__(self, other)
  __iter__(self)
Iterates the Chain objects in the Model.
  __le__(self, other)
  __len__(self)
Returns the number of stored Chain objects.
  __lt__(self, other)
  __str__(self)
  add_alpha_helix(self, alpha_helix)
Adds a AlphaHelix object to the Model.
  add_atom(self, atom, delay_sort)
  add_beta_sheet(self, beta_sheet)
Adds a BetaSheet object to the Model.
  add_chain(self, chain, delay_sort)
Adds a Chain to the Model.
  add_fragment(self, fragment, delay_sort)
Adds a Fragment instance
  add_site(self, site)
Adds a Site (of interest) object to the Model.
  count_all_atoms(self)
Counts all Atom objects including all atoms in multiple conformations.
  count_amino_acids(self)
  count_atoms(self)
Counts all Atom objects in according to the Structure defaults.
  count_bonds(self)
Counts all Bond objects.
  count_chains(self)
Counts all Chain objects.
  count_fragments(self)
Counts all Fragment objects.
  count_non_standard_residues(self)
  count_nucleic_acids(self)
  count_standard_residues(self)
  count_waters(self)
  get_chain(self, chain_id)
Returns the Chain object matching the chain_id charactor.
  get_equivalent_atom(self, atom)
Returns the atom with the same fragment_id and name as the argument atom, or None if it is not found.
  get_structure(self)
Returns the parent Structure.
  has_amino_acids(self)
  has_non_standard_residues(self)
  has_nucleic_acids(self)
  has_standard_residues(self)
  has_waters(self)
  index(self, chain)
Returns the numeric index of the Chain object in the Model.
  iter_all_atoms(self)
Iterates over all Atom objects including all atoms in multiple conformations.
  iter_alpha_helicies(self)
Iterates over all AlphaHelix objects in the Model.
  iter_amino_acids(self)
  iter_atoms(self)
Iterates over all Atom objects according to the Structure defaults.
  iter_beta_sheets(self)
Iterate over all child BetaSheet objects in the Model.
  iter_bonds(self)
Iterates over all Bond objects.
  iter_chains(self)
Iterates over all Chain objects in alphabetical order according to their chain_id.
  iter_fragments(self)
Iterates over all Fragment objects.
  iter_non_standard_residues(self)
  iter_nucleic_acids(self)
  iter_sites(self)
Iterate over all active/important sites defined in the Structure.
  iter_standard_residues(self)
  iter_waters(self)
  remove_alpha_helix(self, alpha_helix)
Removes a AlphaHelix object from the Model.
  remove_atom(self, atom)
Removes a Atom object.
  remove_beta_sheet(self, beta_sheet)
Removes a BetaSheet object from the Model.
  remove_chain(self, chain)
Removes the Chain from the Model.
  remove_fragment(self, fragment)
Removes a Fragment object.
  remove_site(self, site)
Removes a Site (of interest) object from the Model.
  set_model_id(self, model_id)
Sets the model_id of all contained objects.
  sort(self)
Sorts all Chains in the Model by their chain_id.
    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

__contains__(self, chain_idx)
(In operator)

Returns True if the argument Chain or chain_id is in the Model.

__getitem__(self, chain_idx)
(Indexing operator)

Same as get_chain, but raises KeyError if the requested chain_id is not found.

__iter__(self)

Iterates the Chain objects in the Model.

__len__(self)
(Length operator)

Returns the number of stored Chain objects.

add_alpha_helix(self, alpha_helix)

Adds a AlphaHelix object to the Model.

add_beta_sheet(self, beta_sheet)

Adds a BetaSheet object to the Model.

add_chain(self, chain, delay_sort=False)

Adds a Chain to the Model.

add_fragment(self, fragment, delay_sort=False)

Adds a Fragment instance

add_site(self, site)

Adds a Site (of interest) object to the Model.

count_all_atoms(self)

Counts all Atom objects including all atoms in multiple conformations.

count_atoms(self)

Counts all Atom objects in according to the Structure defaults.

count_bonds(self)

Counts all Bond objects.

count_chains(self)

Counts all Chain objects.

count_fragments(self)

Counts all Fragment objects.

get_chain(self, chain_id)

Returns the Chain object matching the chain_id charactor.

get_equivalent_atom(self, atom)

Returns the atom with the same fragment_id and name as the argument atom, or None if it is not found.

get_structure(self)

Returns the parent Structure.

index(self, chain)

Returns the numeric index of the Chain object in the Model.

iter_all_atoms(self)

Iterates over all Atom objects including all atoms in multiple conformations.

iter_alpha_helicies(self)

Iterates over all AlphaHelix objects in the Model.

iter_atoms(self)

Iterates over all Atom objects according to the Structure defaults.

iter_beta_sheets(self)

Iterate over all child BetaSheet objects in the Model.

iter_bonds(self)

Iterates over all Bond objects. The iteration is preformed by iterating over all Atom objects in the same order as iter_atoms(), then iterating over each Atom's Bond objects.

iter_chains(self)

Iterates over all Chain objects in alphabetical order according to their chain_id.

iter_fragments(self)

Iterates over all Fragment objects. The iteration is performed in order according the the parent Chain's chain_id, and the Fragment's positioin within the chain.

iter_sites(self)

Iterate over all active/important sites defined in the Structure.

remove_alpha_helix(self, alpha_helix)

Removes a AlphaHelix object from the Model.

remove_atom(self, atom)

Removes a Atom object.

remove_beta_sheet(self, beta_sheet)

Removes a BetaSheet object from the Model.

remove_chain(self, chain)

Removes the Chain from the Model.

remove_fragment(self, fragment)

Removes a Fragment object.

remove_site(self, site)

Removes a Site (of interest) object from the Model.

set_model_id(self, model_id)

Sets the model_id of all contained objects.

sort(self)

Sorts all Chains in the Model by their chain_id.

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