def summary(args):
    p = OptionParser(summary.__doc__)
    p.add_option("-s", dest="single", default=False, action="store_true",
            help="provide stats per reference seq")

    opts, args = p.parse_args(args)

    if len(args) != 1:
        sys.exit(p.print_help())

    coordsfile, = args
    qrycovered, refcovered, id_pct = get_stats(coordsfile)

    print_stats(qrycovered, refcovered, id_pct)
%prog summary coordsfile
dataset/ETHPy150Open tanghaibao/jcvi/formats/coords.py/summary