Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.HMM.Trainer.TrainingSequence Class Reference

List of all members.

Public Member Functions

def __init__

Public Attributes

 emissions
 states

Detailed Description

Hold a training sequence with emissions and optionally, a state path.

Definition at line 21 of file Trainer.py.


Constructor & Destructor Documentation

def Bio.HMM.Trainer.TrainingSequence.__init__ (   self,
  emissions,
  state_path 
)
Initialize a training sequence.

Arguments:

o emissions - A Seq object containing the sequence of emissions in
the training sequence, and the alphabet of the sequence.

o state_path - A Seq object containing the sequence of states and
the alphabet of the states. If there is no known state path, then
the sequence of states should be an empty string.

Definition at line 24 of file Trainer.py.

00024 
00025     def __init__(self, emissions, state_path):
00026         """Initialize a training sequence.
00027 
00028         Arguments:
00029 
00030         o emissions - A Seq object containing the sequence of emissions in
00031         the training sequence, and the alphabet of the sequence.
00032 
00033         o state_path - A Seq object containing the sequence of states and
00034         the alphabet of the states. If there is no known state path, then
00035         the sequence of states should be an empty string.
00036         """
00037         if len(state_path) > 0:
00038             assert len(emissions) == len(state_path), \
00039                    "State path does not match associated emissions."
00040         self.emissions = emissions
00041         self.states = state_path

Here is the caller graph for this function:


Member Data Documentation

Definition at line 39 of file Trainer.py.

Definition at line 40 of file Trainer.py.


The documentation for this class was generated from the following file: