Skip to content

Commit 23d8118

Browse files
committed
Update pysam/libchtslib.pxd to HTSlib 1.22.1 htslib/*.h declarations
1 parent c4c0f8d commit 23d8118

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pysam/libchtslib.pxd

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ cdef extern from "htslib/kstring.h" nogil:
5353
int kputll(long long c, kstring_t *s)
5454
int kputl(long c, kstring_t *s)
5555

56+
int kinsert_char(char c, size_t pos, kstring_t *s)
57+
int kinsert_str(const char *str, size_t pos, kstring_t *s)
58+
5659

5760
cdef extern from "htslib_util.h" nogil:
5861

@@ -545,6 +548,9 @@ cdef extern from "htslib/hts.h" nogil:
545548

546549
int hts_reg2bin(hts_pos_t beg, hts_pos_t end, int min_shift, int n_lvls)
547550
int hts_bin_level(int bin)
551+
552+
uint32_t hts_crc32(uint32_t crc, const void *buf, size_t len)
553+
548554
int hts_bin_bot(int bin, int n_lvls)
549555
hts_pos_t hts_bin_maxpos(int min_shift, int n_lvls)
550556

@@ -1390,7 +1396,7 @@ cdef extern from "htslib/vcf.h" nogil:
13901396
uint32_t bcf_gt_unphased(uint32_t idx)
13911397
uint32_t bcf_gt_missing
13921398
uint32_t bcf_gt_is_missing(uint32_t val)
1393-
uint32_t bcf_gt_is_phased(uint32_t idx)
1399+
uint32_t bcf_gt_is_phased(uint32_t val)
13941400
uint32_t bcf_gt_allele(uint32_t val)
13951401

13961402
uint32_t bcf_alleles2gt(uint32_t a, uint32_t b)
@@ -1480,6 +1486,7 @@ cdef extern from "htslib/vcf.h" nogil:
14801486
int bcf_float_is_missing(float f)
14811487
int bcf_float_is_vector_end(float f)
14821488

1489+
int bcf_format_gt_v2(const bcf_hdr_t *hdr, bcf_fmt_t *fmt, int isample, kstring_t *str)
14831490
int bcf_format_gt(bcf_fmt_t *fmt, int isample, kstring_t *str)
14841491

14851492
int bcf_enc_size(kstring_t *s, int size, int type)

0 commit comments

Comments
 (0)