htslib 0.1.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -59,7 +59,7 @@ module HTS
59
59
 
60
60
  attach_function \
61
61
  :tbx_seqnames,
62
- [Tbx, :int],
62
+ [Tbx, :pointer],
63
63
  :pointer
64
64
 
65
65
  attach_function \
@@ -0,0 +1,25 @@
1
+ module HTS
2
+ module LibHTS
3
+ class << self
4
+ def tbx_itr_destroy(iter)
5
+ hts_itr_destroy(iter)
6
+ end
7
+
8
+ def tbx_itr_queryi(tbx, tid, beg, end_)
9
+ hts_itr_query(tbx[:idx], tid, beg, end_, tbx_readrec)
10
+ end
11
+
12
+ def tbx_itr_querys(tbx, s)
13
+ hts_itr_querys(tbx[:idx], s, @@tbx_name2id, tbx, @@hts_itr_query, @@tbx_readrec)
14
+ end
15
+
16
+ def tbx_itr_next(htsfp, tbx, itr, r)
17
+ hts_itr_next(hts_get_bgzfp(htsfp), itr, r, tbx)
18
+ end
19
+
20
+ def tbx_bgzf_itr_next(bgzfp, tbx, itr, r)
21
+ hts_itr_next(bgzfp, itr, r, tbx)
22
+ end
23
+ end
24
+ end
25
+ end