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

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

    metafile, databin, sampleids, strids = args
    df, m, samples, loci = read_binfile(databin, sampleids, strids)
    sf = pd.read_csv(metafile, index_col=0, sep="\t")
    #print sf[["id", "allele_frequency"]]
    for i, locus in enumerate(loci):
        a = m[:, i]
        print locus, a
        counts = alleles_to_counts(a)
        p_counts = af_to_counts(sf.ix[locus]["allele_frequency"])
        print "before:", counts
        counts.update(p_counts)
        af = counts_to_af(counts)
        print "after:", counts
        if i > 30:
            return
Initializes the future. Should not be called by clients.
dataset/ETHPy150Open tanghaibao/jcvi/variation/str.py/mask--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/concurrent/concurrent/futures/_base.py/Future.__init__