def run_sv(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

    with open(args.cnvfile, 'w') as cnv:
        for _ in range(int(args.numpicks)):
            mutlen = int(lenscale(len()))
            rchrom, rstart, rend = g.pick(mutlen, avoidN=args.avoidN, usebed=usebed)
            info = [rchrom, rstart, rend, randomsv()]
            cnvinfo = [rchrom, rstart, rend, 1.0/(vafscale(vaf()))]
            print '\t'.join(map(str, info))
            cnv.write('\t'.join(map(str, cnvinfo)) + '\n')
See :py:meth:`ConnectionListener.on_message`
dataset/ETHPy150Open adamewing/bamsurgeon/scripts/randomsites.py/run_sv--crossover with--dataset/ETHPy150Open jasonrbriggs/stomp.py/stomp/__main__.py/StompCLI.on_message