code: def correctX(args):
      
      p = OptionParser(correctX.__doc__)
      opts, args = p.parse_args(args)
  
      if len(args) != 2:
          sys.exit(not p.print_help())
  
      folder, tag = args
      tag = tag.split(",")
      for p, pf in iter_project(folder):
          correct_pairs(p, pf, tag)
docs: %prog correctX folder tag
  
      Run ALLPATHS correction on a folder of paired reads and apply tag.