def _get_phred_quality(record):
 try:
  return record.letter_annotations['phred_quality']
 except KeyError:
  pass
 try:
  return [phred_quality_from_solexa(q) for q in record.letter_annotations['solexa_quality']]
 except KeyError:
  raise ValueError(('No suitable quality scores found in letter_annotations of SeqRecord (id=%s).' % record.id))

def _get_phred_quality ( record ) : try : return record . letter_annotations [ 'phred_quality' ] except KeyError : pass try : return [ phred_quality_from_solexa ( q ) for q in record . letter_annotations [ 'solexa_quality' ] ] except KeyError : raise ValueError ( ( 'No suitable quality scores found in letter_annotations of SeqRecord (id=%s).' % record . id ) )
extract phred qualities from a seqrecords letter_annotations .