_fields_ = [ ("core", _bam1_core_t), ("l_data", ctypes.c_int), ("m_data", ctypes.c_int), ("data", ctypes.POINTER(ctypes.c_uint8)), ("id", ctypes.c_uint64), ] _samFile = _htsFile # ---------------------------------------------------------------------------- # C functions and their return types # ---------------------------------------------------------------------------- htslib = pl.load_htslib() _bam_hdr_init = htslib.bam_hdr_init _bam_hdr_init.restype = ctypes.POINTER(_bam_hdr_t) _bam_hdr_read = htslib.bam_hdr_read _bam_hdr_read.restype = ctypes.POINTER(_bam_hdr_t) _bam_hdr_write = htslib.bam_hdr_write _bam_hdr_write.restype = ctypes.c_int _bam_hdr_destroy = htslib.bam_hdr_destroy _bam_hdr_destroy.restype = None _bam_name2id = htslib.bam_name2id _bam_name2id.restype = ctypes.c_int
('bc', ctypes.c_int32), ('ec', ctypes.c_int32), ('meta_char', ctypes.c_int32), ('line_skip', ctypes.c_int32)] class _tbx_t(ctypes.Structure): """C structure for a tabix index""" _fields_ = [('conf', _tbx_conf_t), ('idx', ctypes.POINTER(_hts_idx_t)), ('dict', ctypes.c_void_p)] # ---------------------------------------------------------------------------- # C functions and their return types # ---------------------------------------------------------------------------- htslib = pl.load_htslib() _hts_get_bgzfp = htslib.hts_get_bgzfp _hts_get_bgzfp.restype = ctypes.POINTER(_BGZF) _tbx_destroy = htslib.tbx_destroy _tbx_destroy.restype = None _tbx_index_build = htslib.tbx_index_build _tbx_index_build.restype = ctypes.c_int _tbx_index_build2 = htslib.tbx_index_build2 _tbx_index_build2.restype = ctypes.c_int _tbx_index_load = htslib.tbx_index_load _tbx_index_load.restype = ctypes.POINTER(_tbx_t)