   (:import java.util.Arrays
            [java.io DataInputStream IOException]
            bgzf4j.BGZFInputStream))
-
-(set! *warn-on-reflection* true)
 
 (def tabix-magic "TBI\1")
 


(def ^:private tad-lidx-shift 14)

(defn- read-chunk
  [^DataInputStream rdr]
  [(lsb/read-long rdr) (lsb/read-long rdr)])

(defn- read-bin
  [^DataInputStream rdr]

        skip   (lsb/read-int rdr)
        len    (lsb/read-int rdr)
        buf    (lsb/read-bytes rdr len)
        seq    (read-seq buf len)
        index  (loop [i 0
                      bin-index []
                      linear-index []]
