예제 #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)