def sequences(fileh, header):
 fposition = header['header_length']
 reads_read = 0
 while True:
  if (fposition == header['index_offset']):
   fposition += header['index_length']
   continue
  else:
   (bytes_read, seq_data) = read_sequence(header=header, fileh=fileh, fposition=fposition)
   (yield seq_data)
   fposition += bytes_read
   reads_read += 1
   if (reads_read >= header['number_of_reads']):
    break

def sequences ( fileh , header ) : fposition = header [ 'header_length' ] reads_read = 0 while True : if ( fposition == header [ 'index_offset' ] ) : fposition += header [ 'index_length' ] continue else : ( bytes_read , seq_data ) = read_sequence ( header = header , fileh = fileh , fposition = fposition ) ( yield seq_data ) fposition += bytes_read reads_read += 1 if ( reads_read >= header [ 'number_of_reads' ] ) : break
it returns a generator with the data for each read .