def run_indel(g, args):
    vaf = betafunc(args.vafbeta1, args.vafbeta2)
    len = betafunc(args.lenbeta1, args.lenbeta2)

    vafscale = scalefunc(args.minvaf, args.maxvaf)
    lenscale = scalefunc(args.minlen, args.maxlen)

    usebed = args.bed is not None

    for _ in range(int(args.numpicks)):
        mutlen = int(lenscale(len()))
        rchrom, rstart, rend = g.pick(mutlen, avoidN=args.avoidN, usebed=usebed)
        if random.uniform(0,1) < 0.5: # deletion
            info = [rchrom, rstart, rend, vafscale(vaf()), 'DEL']
        else: # insertion
            info = [rchrom, rstart, rend, vafscale(vaf()), 'INS', randomseq(mutlen)]

        print '\t'.join(map(str, info))
This method sets and unsets the current font to be bold.
dataset/ETHPy150Open adamewing/bamsurgeon/scripts/randomsites.py/run_indel--crossover with--dataset/ETHPy150Open sightmachine/SimpleCV/SimpleCV/DrawingLayer.py/DrawingLayer.setFontBold