def main():
  """Entry point to the script."""

  # Basic parsing of command line arguments to allow a filename
  # to be passed when running this code in the debugger.
  file_handle = sys.stdin
  if len(sys.argv) <= 2:
    file_handle = open(sys.argv[1], "r")

  expander = GvcfExpander(bin_size=1000,
                          filter_ref_matches=False,
                          emit_ref_blocks=False)

  line = file_handle.readline()
  while line:
    line = line.strip()
    if not line:
      line = file_handle.readline()
      continue

    (key, value) = line.split("\t")
    fields = json.loads(value)
    results = expander.reduce(pair=Pair(key, fields))

    for result in results:
      emit(result)

    line = file_handle.readline()

  results = expander.finalize()

  for result in results:
    emit(result)
dataset/ETHPy150Open googlegenomics/codelabs/Python/PlatinumGenomes-variant-transformation/gvcf-expand-reducer.py/main/swapped operands of `<=`