Commit c378f672 authored by Luis Pedro Coelho's avatar Luis Pedro Coelho
Browse files

BUG Fix optimum splits

parent 2a4d789b
......@@ -50,7 +50,8 @@ for k in genomeLen.keys():
# We greedily assign each genome in descending order to the less heavily used
# bin:
outputs = [open('{}_{}'.format(outf, i), 'w') for _ in range(nrToSplit)]
outputs = [open('{}_{}'.format(outf, i), 'w') for i in range(nrToSplit)]
weight = [0 for _ in range(nrToSplit)]
for (w, g) in sorted(table, reverse=True):
pos = argmin(weight)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment