code: def overlapbatch(args):
      
      p = OptionParser(overlap.__doc__)
      opts, args = p.parse_args(args)
      if len(args) != 2:
          sys.exit(not p.print_help())
  
      ctgfasta, poolfasta = args
      f = Fasta(ctgfasta)
      for k, rec in f.iteritems_ordered():
          fastafile = k + ".fasta"
          fw = open(fastafile, "w")
          SeqIO.write([rec], fw, "fasta")
          fw.close()
  
          overlap([fastafile, poolfasta])
docs: %prog overlapbatch ctgfasta poolfasta
  
      Fish out the sequences in `poolfasta` that overlap with `ctgfasta`.
      Mix and combine using `minimus2`.