cljam.io.csi

Basic I/O of CSI:Coordinate Sorted Index files.

offsets->index

(offsets->index offsets shift depth {:keys [variant-file-type], :or {variant-file-type :bcf}})
Calculates loffsets and bidx
from offsets {:file-beg :file-end :beg :end :chr :chr-index}.
`variant-file-type` is one of `:vcf` or `:bcf`.
If `variant-file-type` is `:vcf`, tabix-like aux data will be created.

read-index

(read-index f)
Reads a CSI file `f` and returns an instance of cljam.io.csi.CSI.

write-index

(write-index f csi)
Writes CSI file from CSI data.