allow to test if index is present

This commit is contained in:
Heng Li
2017-09-16 20:09:17 -04:00
parent 6b66ec6167
commit 3544c60c71
4 changed files with 8 additions and 1 deletions
+3
View File
@@ -110,6 +110,9 @@ cdef class Aligner:
if self._idx is not NULL:
cminimap2.mm_idx_destroy(self._idx)
def __bool__(self):
return (self._idx != NULL)
def map(self, seq, buf=None):
cdef cminimap2.mm_reg1_t *regs
cdef cminimap2.mm_hitpy_t h