Liking cljdoc? Tell your friends :D

cljam.io.util.bin


bin-begclj

(bin-beg bin min-shift depth)

Returns a beginning position of the given bin. 1-based.

Returns a beginning position of the given `bin`. 1-based.
sourceraw docstring

bin-levelclj

(bin-level bin)

Returns a level that the given bin belongs to.

Returns a level that the given `bin` belongs to.
sourceraw docstring

bin-width-of-levelclj

(bin-width-of-level level min-shift depth)

Returns a width shared by bins of the same given level.

Returns a width shared by bins of the same given `level`.
sourceraw docstring

first-bin-of-levelclj

(first-bin-of-level level)

Returns a left-most bin number of the given level.

Returns a left-most bin number of the given `level`.
sourceraw docstring

get-spansclj

(get-spans index-data ref-idx beg end)

Calculates span information for random access from index data such as tabix.

Calculates span information for random access from index data such as tabix.
sourceraw docstring

IBinningIndexcljprotocol

get-chr-namesclj

(get-chr-names this)

get-chunksclj

(get-chunks this ref-idx bins)

get-depthclj

(get-depth this)

get-min-offsetclj

(get-min-offset this ref-idx beg)

get-min-shiftclj

(get-min-shift this)
source

leading-bins-at-levelclj

(leading-bins-at-level pos level min-shift depth)

Returns the distance between the bin corresponding to pos and the first one at the same level.

Returns the distance between the bin corresponding to `pos` and the first one
at the same level.
sourceraw docstring

max-binclj

(max-bin depth)

Returns a maximum bin number of a binning index with the given depth.

Returns a maximum bin number of a binning index with the given `depth`.
sourceraw docstring

max-posclj

(max-pos min-shift depth)

Returns a maximum position of a binning index. The value is identical to the width of bin 0.

Returns a maximum position of a binning index. The value is identical to the
width of bin 0.
sourceraw docstring

parent-binclj

(parent-bin bin)

Returns the bin number of the parent bin.

Returns the bin number of the parent bin.
sourceraw docstring

pos->lidx-offsetclj

(pos->lidx-offset pos linear-index-shift)

Returns an offset of a linear index that the given pos belongs to.

Returns an offset of a linear index that the given `pos` belongs to.
sourceraw docstring

reg->binclj

(reg->bin beg end min-shift depth)

Calculates the smallest bin containing the given region [beg, end].

Calculates the smallest bin containing the given region [`beg`, `end`].
sourceraw docstring

reg->binsclj

(reg->bins beg end min-shift depth)

Returns all overlapping bins for the specified region [beg, end] as a vector.

Returns all overlapping bins for the specified region [`beg`, `end`] as a
vector.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close