Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def Bio::Saf::_Scanner::__init__ (   self,
  debug = 0 
)

Initialize the scanner by setting up our caches.

Creating the parser takes a long time, so we want to cache it
to reduce parsing time.

Arguments:
o debug - The level of debugging that the parser should
display. Level 0 is no debugging, Level 2 displays the most
debugging info (but is much slower). See Martel documentation
for more info on this.

Definition at line 77 of file __init__.py.

00077                                  :
        """Initialize the scanner by setting up our caches.

        Creating the parser takes a long time, so we want to cache it
        to reduce parsing time.

        Arguments:
        o debug - The level of debugging that the parser should
        display. Level 0 is no debugging, Level 2 displays the most
        debugging info (but is much slower). See Martel documentation
        for more info on this.
        """
        # a listing of all tags we are interested in scanning for
        # in the MartelParser
        self.interest_tags = [ 'candidate_line', 'saf_record' ]

        # make a parser that returns only the tags we are interested in
        expression = Martel.select_names( saf_format.saf_record, self.interest_tags)
        self._parser = expression.make_parser(debug_level = debug)


Generated by  Doxygen 1.6.0   Back to index