Skip to content

Commit

Permalink
multiget returns a dict by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Phelimb committed Jul 8, 2018
1 parent 159669d commit adc5be5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Requires [mccortex](github.com/mcveanlab/mccortex).

#### Construct the bloom filters

bigsi init test-bigsi --k 31 --m 1000 --h 1
bigsi init test-bigsi --k 31 --m 1000 --h 1 --force

bigsi bloom --db test-bigsi -c example-data/test1.ctx example-data/test1.bloom
bigsi bloom --db test-bigsi -c example-data/test2.ctx example-data/test2.bloom
Expand Down
2 changes: 1 addition & 1 deletion bigsi/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def convert_kmers_to_canonical(func):
# and it's reverse complement
@wraps(func)
def convert_kmers_inner(self, kmers, *args, **kwargs):
logger.debug("Converting kmers to canonical")
# logger.debug("Converting kmers to canonical")
convert_func = choose_convert_func(kmers)
# Are the kmers already converted
if not kwargs.get('canonical'):
Expand Down
3 changes: 2 additions & 1 deletion bigsi/storage/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,8 @@ def __getitem__(self, key):

def multiget(self, keys):
keys = [self.convert_key(k) for k in keys]
vals= self.storage.multi_get(keys)
vals_d= self.storage.multi_get(keys)
vals = [vals_d[k] for k in keys]
return vals


Expand Down

0 comments on commit adc5be5

Please sign in to comment.