code: def shred(args):
      
      p = OptionParser(shred.__doc__)
      opts, args = p.parse_args(args)
  
      if len(args) != 1:
          sys.exit(not p.print_help())
  
      s, = args
      u = UnitigLayout(s)
      u.shred()
      u.print_to_file(inplace=True)
docs: %prog shred unitigfile
  
      Shred the unitig into one fragment per unitig to fix. This is the last
      resort as a desperate fix.