def getScan(self, title, peptide=None):
if self.ra.has_key(title):<EOL><INDENT>self.filename.seek(self.ra[title][<NUM_LIT:0>],<NUM_LIT:0>)<EOL>toRead = self.ra[title][<NUM_LIT:1>]-self.ra[title][<NUM_LIT:0>]<EOL>info = self.filename.read(toRead)<EOL>scan = self.parseScan(info)<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>return scan<EOL>
allows random lookup