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

def Bio::GenBank::Scanner::InsdcScanner::parse_footer (   self  ) 

returns a tuple containing a list of any misc strings, and the sequence

Reimplemented in Bio::GenBank::Scanner::EmblScanner, and Bio::GenBank::Scanner::GenBankScanner.

Definition at line 279 of file Scanner.py.

00279                           :
        """returns a tuple containing a list of any misc strings, and the sequence"""
        #This is a basic bit of code to scan and discard the sequence,
        #which was useful when developing the sub classes.
        if self.line in self.FEATURE_END_MARKERS:
            while self.line[:self.HEADER_WIDTH].rstrip() not in self.SEQUENCE_HEADERS:
                self.line = self.handle.readline()
                if not self.line:
                    raise ValueError("Premature end of file")
                self.line = self.line.rstrip()
        assert self.line[:self.HEADER_WIDTH].rstrip() in self.SEQUENCE_HEADERS, \
               "Not at start of sequence"
        while True:
            line = self.handle.readline()
            if not line : raise ValueError("Premature end of line during sequence data")
            line = line.rstrip()
            if line == "//" : break
        self.line = line
        return ([],"") #Dummy values!

    def _feed_first_line(self, consumer, line):

Generated by  Doxygen 1.6.0   Back to index