Back to index

python-biopython  1.60
Public Member Functions | Private Attributes
Bio.Blast.NCBIStandalone.BlastParser Class Reference
Inheritance diagram for Bio.Blast.NCBIStandalone.BlastParser:
Inheritance graph
[legend]
Collaboration diagram for Bio.Blast.NCBIStandalone.BlastParser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def parse
def parse_str
def parse_file

Private Attributes

 _scanner
 _consumer

Detailed Description

Parses BLAST data into a Record.Blast object.

Definition at line 809 of file NCBIStandalone.py.


Constructor & Destructor Documentation

__init__(self)

Definition at line 813 of file NCBIStandalone.py.

00813 
00814     def __init__(self):
00815         """__init__(self)"""
00816         self._scanner = _Scanner()
00817         self._consumer = _BlastConsumer()

Here is the caller graph for this function:


Member Function Documentation

def Bio.Blast.NCBIStandalone.BlastParser.parse (   self,
  handle 
)
parse(self, handle)

Reimplemented from Bio.ParserSupport.AbstractParser.

Definition at line 818 of file NCBIStandalone.py.

00818 
00819     def parse(self, handle):
00820         """parse(self, handle)"""
00821         self._scanner.feed(handle, self._consumer)
00822         return self._consumer.data

Here is the caller graph for this function:

def Bio.ParserSupport.AbstractParser.parse_file (   self,
  filename 
) [inherited]

Definition at line 60 of file ParserSupport.py.

00060 
00061     def parse_file(self, filename):
00062         h = open(filename)
00063         try:
00064             retval = self.parse(h)
00065         finally:
00066             h.close()
00067         return retval

Here is the call graph for this function:

def Bio.ParserSupport.AbstractParser.parse_str (   self,
  string 
) [inherited]

Definition at line 57 of file ParserSupport.py.

00057 
00058     def parse_str(self, string):
00059         return self.parse(StringIO.StringIO(string))

Here is the call graph for this function:


Member Data Documentation

Definition at line 816 of file NCBIStandalone.py.

Definition at line 815 of file NCBIStandalone.py.


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