Return a human readable list from a nucleotide position or lenght.
Usage
human_nt(nt, signif = FALSE)
Arguments
nt
A nucleotide position
signif
Either a logical or an integer. If FALSE (default), nt
is not rounded. Else, it returns signif significant digits.
Value
Returns a list with 4 elements
n
A numeric value corresponding to nt divided by
mult (see below).
tag
A character, giving the multiplier used in text.
mult
The muliplier used, in numeric value.
text
A character, giving the value in a human readable format.
Details
Return a nucleotide value in nt, kb, Mb or Gb, according to the value given.
This is particularly useful to display nice scales without too many
trailing zeros.