rescale {EpiTxDb} | R Documentation |
Ranges
objectrescale()
rescales IRanges
, GRanges
, IRangesList
and GRangesList
by using minima and maxima derived from to
and
from
.
rescale(x, to = 1L, from = 1L) ## S4 method for signature 'IRanges' rescale(x, to = 1L, from = 1L) ## S4 method for signature 'IRangesList' rescale(x, to = 1L, from = 1L) ## S4 method for signature 'GRanges' rescale(x, to = 1L, from = 1L) ## S4 method for signature 'GRangesList' rescale(x, to = 1L, from = 1L)
x |
a |
to, from |
an |
an object of the same type and dimensions as x
H. Pagès, F. Ernst
IRanges
for details on
character
vectors coercible to IRanges
.
x <- IRanges("5-10") # widen the ranges rescale(x, 100, 10) # widen and shift rescale(x, "31-60", "5-14")