code: def rc_stats(stats):
      
      rc_nucs = {'A':'T', 'T':'A', 'G':'C', 'C':'G', 'N':'N'}
      rcs = []
      for pos in reversed(stats):
          rc = {}
          rc['reference frequencey'] = pos['reference frequency']
          rc['consensus frequencey'] = pos['consensus frequency']
          rc['In'] = pos['In']
          rc['Del'] = pos['Del']
          rc['ref'] = rc_nucs[pos['ref']]
          rc['consensus'] = (rc_nucs[pos['consensus'][0]], pos['consensus'][1])
          for base, stat in list(pos.items()):
              if base in rc_nucs:
                  rc[rc_nucs[base]] = stat
          rcs.append(rc)
      return rcs
docs: reverse completement stats