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))

hiAnnotator documentation built on Nov. 8, 2020, 7:27 p.m.