def BgzfBlocks(handle):
 data_start = 0
 while True:
  start_offset = handle.tell()
  (block_length, data) = _load_bgzf_block(handle)
  data_len = len(data)
  (yield (start_offset, block_length, data_start, data_len))
  data_start += data_len

def BgzfBlocks ( handle ) : data_start = 0 while True : start_offset = handle . tell ( ) ( block_length , data ) = _load_bgzf_block ( handle ) data_len = len ( data ) ( yield ( start_offset , block_length , data_start , data_len ) ) data_start += data_len
low level debugging function to inspect bgzf blocks .