code: def getgenes(args):
      
      p = OptionParser(getgenes.__doc__)
      p.add_option("--prefix", default="gbout",
              help="prefix of output files [default: %default]")
      p.add_option("--nopep", default=False, action="store_true",
              help="Only get cds and bed, no pep [default: %default]")
      filenames, accessions, idfile, opts, args = preparegb(p, args)
      prefix = opts.prefix
  
      GenBank(filenames=filenames, accessions=accessions, idfile=idfile).\
          write_genes(output=prefix, individual=opts.individual, \
          pep=(not opts.nopep))
  
      if opts.individual:
          logging.debug("Output written dir {0}".format(prefix))
      elif opts.nopep:
          logging.debug("Output written to {0}.bed, {0}.cds".format(prefix,))
      else:
          logging.debug("Output written to {0}.bed, {0}.cds, {0}.pep".format(prefix,))
docs: %prog getgenes [--options]
  
      Read GenBank file, or retrieve from web.
      Output bed, cds files, and pep file (can turn off with --nopep).
      Either --gb_dir or --id/--simple should be provided.