Learn R Programming

hiAnnotator (version 1.6.2)

getWindowLabel: 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

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

Run the code above in your browser using DataLab