def get_end(self, fields):
    if 'END' in fields:
      return int(fields['END'])
    else:
      return int(fields['end'])
dataset/ETHPy150Open googlegenomics/codelabs/Python/PlatinumGenomes-variant-transformation/gvcf_expander.py/GvcfExpander.get_end/original