mirror of
https://github.com/lh3/minimap2.git
synced 2026-09-22 09:58:11 +08:00
allow to test if index is present
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user