getWindowLabel: Generate a window size label.

Description Usage Arguments Value See Also Examples

View source: R/hiAnnotator.R

Description

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

Usage

1

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

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

malnirav/hiAnnotator documentation built on July 29, 2021, 6:32 a.m.