def MinimalQualParser(infile, value_cast_f=int, full_header=False):
 for rec in FastaFinder(infile):
  curr_id = rec[0][1:]
  curr_qual = ' '.join(rec[1:])
  try:
   parts = asarray(curr_qual.split(), dtype=value_cast_f)
  except ValueError:
   raise QiimeParseError('Invalid qual file. Check the format of the qual files.')
  if full_header:
   curr_pid = curr_id
  else:
   curr_pid = curr_id.split()[0]
  (yield (curr_pid, parts))

def MinimalQualParser ( infile , value_cast_f = int , full_header = False ) : for rec in FastaFinder ( infile ) : curr_id = rec [ 0 ] [ 1 : ] curr_qual = ' ' . join ( rec [ 1 : ] ) try : parts = asarray ( curr_qual . split ( ) , dtype = value_cast_f ) except ValueError : raise QiimeParseError ( 'Invalid qual file. Check the format of the qual files.' ) if full_header : curr_pid = curr_id else : curr_pid = curr_id . split ( ) [ 0 ] ( yield ( curr_pid , parts ) )
yield quality scores .