(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.
(bin-level bin)
Returns a level that the given bin
belongs to.
Returns a level that the given `bin` belongs to.
(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`.
(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`.
(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.
(get-chr-names this)
(get-chunks this ref-idx bins)
(get-depth this)
(get-min-offset this ref-idx beg)
(get-min-shift this)
(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.
(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`.
(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.
(parent-bin bin)
Returns the bin number of the parent bin.
Returns the bin number of the parent bin.
(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.
(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`].
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close