Table of Contents

Class: _BlastConsumer Bio/Blast/NCBIStandalone.py
Base Classes   
AbstractConsumer
_HeaderConsumer
_DescriptionConsumer
_AlignmentConsumer
_HSPConsumer
_DatabaseReportConsumer
_ParametersConsumer
Methods   
__init__
end_alignment
end_database_report
end_descriptions
end_header
end_hsp
end_parameters
round
start_header
  __init__ 
__init__ ( self )

This Consumer is inherits from many other consumer classes that handle the actual dirty work. An alternate way to do it is to create objects of those classes and then delegate the parsing tasks to them in a decorator-type pattern. The disadvantage of that is that the method names will need to be resolved in this classes. However, using a decorator will retain more control in this class (which may or may not be a bad thing). In addition, having each sub-consumer as its own object prevents this object's dictionary from being cluttered with members and reduces the chance of member collisions.

  end_alignment 
end_alignment ( self )

  end_database_report 
end_database_report ( self )

  end_descriptions 
end_descriptions ( self )

  end_header 
end_header ( self )

  end_hsp 
end_hsp ( self )

Exceptions   
SyntaxError, "Found an HSP before an alignment"
  end_parameters 
end_parameters ( self )

  round 
round ( self,  line )

Exceptions   
ValueError, "This consumer doesn't handle PSI-BLAST data"
  start_header 
start_header ( self )


Table of Contents

This document was automatically generated on Mon Jul 1 12:02:46 2002 by HappyDoc version 2.0.1