Public Member Functions | Static Public Attributes

MGT::ImmScalingApp::ImmScalingApp Class Reference

Inheritance diagram for MGT::ImmScalingApp::ImmScalingApp:
MGT::App::App

List of all members.

Public Member Functions

def makeOptionParserArgs
def parseCmdLinePost
def initWork
def doWork
def generate
def score
def reduceScores

Static Public Attributes

tuple batchDepModes = ("score")
 Derived classes should set this to a list of opt.mode values that can result in submision of new batch jobs.

Detailed Description

App-derived class to generate random query sequences, score them and explore the distribution.

Member Function Documentation

def MGT::ImmScalingApp::ImmScalingApp::doWork (   self,
  kw 
)
Do the actual work.
Must be redefined in the derived classes.
Should not be called directly by the user except from doWork() in a derived class.
Should work with empty keyword dict, using only self.opt.
If doing batch submision of other App instances, must return a list of sink (final) BatchJob objects.

Reimplemented from MGT::App::App.

def MGT::ImmScalingApp::ImmScalingApp::generate (   self,
  kw 
)
Generate random query sequences.
Parameters are taken from self.opt
@param predSeq Output multi-FASTA file
@param queryLength Length on generated sequences
@param numQueries Number of generated sequences
def MGT::ImmScalingApp::ImmScalingApp::initWork (   self,
  kw 
)
Perform common initialization right before doing the actual work in doWork().
Must be redefined in the derived classes.
Should not be called directly by the user except from initWork() in a derived class.
This one can create large objects because they are not passed through the batch submission,
but immediately used within the same process.

Reimplemented from MGT::App::App.

def MGT::ImmScalingApp::ImmScalingApp::makeOptionParserArgs (   klass )
Return a Struct with optparse.OptionParser constructor arguments specific to the application.
The "option_list" attribute must be obtained with a sequence of calls to optparse.make_option.
Other possible attributes can be e.g. "usage".
This method will be called by parseCmdLine() and the returned "option_list" concatenated with the default
one provided by the parseCmdLine().
Must be redefined in the derived class only if there are any application specific command-line options.

Reimplemented from MGT::App::App.

def MGT::ImmScalingApp::ImmScalingApp::parseCmdLinePost (   klass,
  options,
  args,
  parser 
)
Optionally modify options and args in-place.
Called at the end of parseCmdLine to allow the derived classes customizing the option processing.
@param options options returned by OptionParser and converted to Struct object
@param args args returned by OptionParser
@param parser OptionParser object used to parse the command line - needed here to call its error() method
if necessary.
options should be modified in place by this method

Reimplemented from MGT::App::App.

def MGT::ImmScalingApp::ImmScalingApp::reduceScores (   self,
  kw 
)
Reduce a matrix of combined scores to best positions on the taxonomic tree.
Parameters are taken from self.opt
@param outScoreComb name for file with combined scores
@param outTaxaPred name for output file with predicted taxonomy
def MGT::ImmScalingApp::ImmScalingApp::score (   self,
  kw 
)
Score with all IMMs and predict the taxonomy.
Parameters are taken from self.opt
@param predSeq Name of the input multi-FASTA file to score
@param outScoreDir Directory name for output score files
@param outScoreComb name for output file with combined scores

Member Data Documentation

Derived classes should set this to a list of opt.mode values that can result in submision of new batch jobs.

Reimplemented from MGT::App::App.


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