def getScan(self, specId, peptide=None):
sql = self.base_sql + "<STR_LIT>"%(int(specId),peptide)<EOL>self.cur.execute(sql)<EOL>i = self.cur.fetchone()<EOL>if not i:<EOL><INDENT>return None<EOL><DEDENT>scan = self.parseFullScan(i)<EOL>scan.spectrumId = specId<EOL>return scan<EOL>
get a random scan