def store_mapping(mapping, outdir, prefix):
 fh = open((((outdir + '/') + prefix) + '_mapping.txt'), 'w')
 for (key, valuelist) in mapping.iteritems():
  fh.write(('%s:' % key))
  for v in valuelist:
   fh.write((' DCTB %s' % v))
  fh.write('\n')
 fh.close()

def store_mapping ( mapping , outdir , prefix ) : fh = open ( ( ( ( outdir + '/' ) + prefix ) + '_mapping.txt' ) , 'w' ) for ( key , valuelist ) in mapping . iteritems ( ) : fh . write ( ( '%s:' % key ) ) for v in valuelist : fh . write ( ( ' DCTB %s' % v ) ) fh . write ( '\n' ) fh . close ( )
store the mapping of denoised seq ids to input ids .