getWindowLabel {hiAnnotator}R Documentation

Generate a window size label.

Description

Function to generate aesthetically pleasing window size label given an integer. This is one of the helper function used in getFeatureCounts & getFeatureCountsBig.

Usage

getWindowLabel(x)

Arguments

x

vector of integers to generate the labels for.

Value

a character vector of length(x) which has x normalized and suffixed by bp, Kb, Mb, or Gb depending on respective interval sizes.

See Also

getFeatureCounts, makeGRanges, getNearestFeature, getSitesInFeature.

Examples

getWindowLabel(c(0, 1e7, 1e3, 1e6, 2e9))

[Package hiAnnotator version 1.27.1 Index]