code: def liftover_to_genome(pass_pos, gtf):
      
  
      fixed_pos = []
      for pos in pass_pos:
          if pos["chrom"] not in gtf:
              continue
          db_pos = gtf[pos["chrom"]][0]
          mut = _parse_mut(pos["sv"])
          print([db_pos, pos])
          if db_pos[3] == "+":
              pos['pre_pos'] = db_pos[1] + pos["pre_pos"] + 1
          else:
              pos['pre_pos'] = db_pos[2] - (pos["pre_pos"] - 1)
          pos['chrom'] = db_pos[0]
          pos['nt'] = list(mut[0])
          fixed_pos.append(pos)
  
      _print_header(fixed_pos)
      for pos in fixed_pos:
          print_vcf(pos)
docs: Liftover from precursor to genome