Last chance! 50% off unlimited learning
Sale ends in
Rescale a genetic map by multiplying all positions by a constant
rescalemap(object, scale=1e-6)
If the input is a map
object, a map
object is returned; if
the input is a cross
object, a cross
object is returned.
In either case, the positions of markers are simply multiplied by
scale
.
An object of class cross
(see
read.cross
for details) or map
(see
sim.map
for details).
Scale factor by which all positions will be multiplied.
Karl W Broman, broman@wisc.edu
This function is included particularly for the case that map positions
in a cross object were provided in basepairs and one wishes to quickly
convert them to Mbp or some other approximation of cM distances. (In
the mouse, 1 cM is approximation 2 Mbp, so one might use
scale=5e-7
in this function.)
replace.map
,
est.map
data(hyper)
rescaled <- rescalemap(hyper, scale=2)
plotMap(hyper, rescaled)
Run the code above in your browser using DataLab