def bed(args):
    p = OptionParser(bed.__doc__)
    opts, args = p.parse_args(args)

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

    delt, = args
    dt = Delly(delt)
    dt.write_bed("del.bed")
%prog bed del.txt
dataset/ETHPy150Open tanghaibao/jcvi/variation/delly.py/bed