Package Bio :: Package SearchIO :: Package BlastIO :: Module blast_xml :: Class BlastXmlParser
[hide private]
[frames] | no frames]

Class BlastXmlParser

source code

object --+
         |
        BlastXmlParser

Parser for the BLAST XML format
Instance Methods [hide private]
 
__init__(self, handle)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__iter__(self) source code
 
_parse_preamble(self)
Parses all tag data prior to the first query result.
source code
 
_parse_qresult(self)
Parses query results.
source code
 
_parse_hit(self, root_hit_elem, query_id)
Generator that transforms Iteration_hits XML elements into Hit objects.
source code
 
_parse_hsp(self, root_hsp_frag_elem, query_id, hit_id)
Iterator that transforms Hit_hsps XML elements into HSP objects.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, handle)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

_parse_hit(self, root_hit_elem, query_id)

source code 
Generator that transforms Iteration_hits XML elements into Hit objects.
Parameters:
  • root_hit_elem (XML element tag) - root element of the Iteration_hits tag.
  • query_id (string) - QueryResult ID of this Hit

_parse_hsp(self, root_hsp_frag_elem, query_id, hit_id)

source code 
Iterator that transforms Hit_hsps XML elements into HSP objects.
Parameters:
  • root_hsp_frag_elem (XML element tag) - the Hit_hsps tag
  • query_id (string) - query ID
  • hit_id (string) - hit ID