Package Bio :: Package Blast :: Module NCBIXML :: Class BlastParser
[show private | hide private]
[frames | no frames]

Class BlastParser

ContentHandler --+    
                 |    
        _XMLparser --+
                     |
                    BlastParser


Parse XML BLAST data into a Record.Blast object

Methods:
parse           Parses BLAST XML data.
                Returns a list of Blast records

All XML 'action' methods are private methods and may be:
_start_TAG      called when the start tag is found
_end_TAG        called when the end tag is found

Method Summary
  __init__(self, debug)
Constructor
  parse(self, handler)
Parses the XML data
  reset(self)
Reset all the data allowing reuse of the BlastParser() object
    Inherited from ContentHandler
  endDocument(self)
Receive notification of the end of a document.
  endElementNS(self, name, qname)
Signals the end of an element in namespace mode.
  endPrefixMapping(self, prefix)
End the scope of a prefix-URI mapping.
  ignorableWhitespace(self, whitespace)
Receive notification of ignorable whitespace in element content.
  processingInstruction(self, target, data)
Receive notification of a processing instruction.
  setDocumentLocator(self, locator)
Called by the parser to give the application a locator for locating the origin of document events.
  skippedEntity(self, name)
Receive notification of a skipped entity.
  startDocument(self)
Receive notification of the beginning of a document.
  startElementNS(self, name, qname, attrs)
Signals the start of an element in namespace mode.
  startPrefixMapping(self, prefix, uri)
Begin the scope of a prefix-URI Namespace mapping.

Method Details

__init__(self, debug=0)
(Constructor)

Constructor

debug - integer, amount of debug information to print
Overrides:
Bio.Blast.NCBIXML._XMLparser.__init__

parse(self, handler)

Parses the XML data

handler -- file handler or StringIO

This method returns a list of Blast record objects.

reset(self)

Reset all the data allowing reuse of the BlastParser() object

Generated by Epydoc 2.1 on Mon Aug 27 16:43:41 2007 http://epydoc.sf.net