Back to index

python-biopython  1.60
Public Member Functions | Private Attributes
Bio.GenBank.RecordParser Class Reference

List of all members.

Public Member Functions

def __init__
def parse

Private Attributes

 _scanner
 _consumer

Detailed Description

Parse GenBank files into Record objects (OBSOLETE).

Direct use of this class is discouraged, and may be deprecated in
a future release of Biopython.

Please use the Bio.GenBank.parse(...) or Bio.GenBank.read(...) functions
instead.

Definition at line 433 of file __init__.py.


Constructor & Destructor Documentation

def Bio.GenBank.RecordParser.__init__ (   self,
  debug_level = 0 
)
Initialize the parser.

Arguments:
o debug_level - An optional argument that species the amount of
debugging information the parser should spit out. By default we have
no debugging info (the fastest way to do things), but if you want
you can set this as high as two and see exactly where a parse fails.

Definition at line 442 of file __init__.py.

00442 
00443     def __init__(self, debug_level = 0):
00444         """Initialize the parser.
00445 
00446         Arguments:
00447         o debug_level - An optional argument that species the amount of
00448         debugging information the parser should spit out. By default we have
00449         no debugging info (the fastest way to do things), but if you want
00450         you can set this as high as two and see exactly where a parse fails.
00451         """
00452         self._scanner = GenBankScanner(debug_level)

Here is the caller graph for this function:


Member Function Documentation

def Bio.GenBank.RecordParser.parse (   self,
  handle 
)
Parse the specified handle into a GenBank record.

Definition at line 453 of file __init__.py.

00453 
00454     def parse(self, handle):
00455         """Parse the specified handle into a GenBank record.
00456         """
00457         self._consumer = _RecordConsumer()
00458 
00459         self._scanner.feed(handle, self._consumer)
00460         return self._consumer.data

Here is the caller graph for this function:


Member Data Documentation

Definition at line 456 of file __init__.py.

Definition at line 451 of file __init__.py.


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