From 189555503a2035a95dcb6510d2c687ade5e0695c Mon Sep 17 00:00:00 2001 From: Heng Li Date: Tue, 30 Apr 2019 21:49:51 -0400 Subject: [PATCH] potentially fix issue #372 Needs someone to confirm --- python/mappy.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mappy.pyx b/python/mappy.pyx index 2528d9d..8c68920 100644 --- a/python/mappy.pyx +++ b/python/mappy.pyx @@ -142,7 +142,7 @@ cdef class Aligner: if fn_idx_out is None: r = cmappy.mm_idx_reader_open(str.encode(fn_idx_in), &self.idx_opt, NULL) else: - r = cmappy.mm_idx_reader_open(str.encode(fn_idx_in), &self.idx_opt, fn_idx_out) + r = cmappy.mm_idx_reader_open(str.encode(fn_idx_in), &self.idx_opt, str.encode(fn_idx_out)) if r is not NULL: self._idx = cmappy.mm_idx_reader_read(r, n_threads) # NB: ONLY read the first part cmappy.mm_idx_reader_close(r)