code: def mini(args):
      
      p = OptionParser(mini.__doc__)
      opts, args = p.parse_args(args)
  
      if len(args) != 2:
          sys.exit(not p.print_help())
  
      bamfile, region = args
      get_minibam(bamfile, region)
docs: %prog mini bamfile region
  
      Extract mini-bam for a single region.