示例#1
0
 def init(self, db, k=31, m=25 * 10**6, h=3, force=False):
     bigsi = BIGSI.create(db=db, k=k, m=m, h=h, force=force)
     return {'k': k, 'm': m, 'h': h, 'db': db}
示例#2
0
文件: build.py 项目: rpetit3/BIGSI
def build_tmp(bloomfilter_filepaths, samples, indext, i,lowmem=False):
    index_dir = indext.db+"%i.tmp" % i
    index = BIGSI.create(db=index_dir, k=indext.kmer_size,
                         m=indext.bloom_filter_size, h=indext.num_hashes, force=True)
    build_main(bloomfilter_filepaths, samples, index,lowmem=lowmem)
    return BIGSI(index_dir)