how to use yatel with redis?
meInvent bbird
jobmattcon at gmail.com
Sun Jun 12 21:38:36 EDT 2016
my code is
https://gist.github.com/hoyeunglee/58df4c41a63a2f37e153cbdbc03c16bf
would like to apply itertools.combinations to use redis to use hard disk as
memory rather than using ram(real memory) as memory
def edge_gen(self):
# we combine haplotypes by two
for hap0, hap1 in itertools.combinations(self.haplotypes_cache.values(), 2):
w = weight.weight("hamming", hap0, hap1)
haps_id = hap0.hap_id, hap1.hap_id
yield dom.Edge(w, haps_id)
More information about the Python-list
mailing list