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

Bioconductor-mirror/hiAnnotator documentation built on June 1, 2017, 10:40 a.m.