| MMSpline3-class {MMSpline3} | R Documentation |
MMSPline3 is a S4 class providing an interpolation method for MareyMap. Interpolation is done using cubic splines. The class uses smooth.spline to carry out the interpolation.
Objects can be created by calls of the form new("MMSpline3", ...).
However you may instead use the function MMSpline3() and adjust
the parameters afterwards using the accessor functions.
type:"character" indicate which type
of smoothing is applied, applicble values are "cross-validation", "spar" and
"degree of freedom"gcv:"logical" indicating wether
generalised cross validation is to be used when smoothing via cross
validation. df:"numeric" holding the degree of freedom to
use when the smoothing is done using degree of freedomspar:"numeric" value of the spar to be
taken when smoothing the spar method.model:"ANY" slot used to keep the
smooth.spline object after the interpolation. name:"character" holding the name of
the interpolation.color:"character" holding the color of
the interpolationphysicalPositions:"vector" holding the
valid physiscal positions of the map on which the interpolation is applied.rates:"vector" holding the local
recombination rates at the position of each marker.visible:"logical" indicating whether
the interpolation is to be drawn or not. persistent:"logical" indicating
wether or not the interpolation should be taken into account when saving to
text file.
Class "Interpolation", directly.
signature(object = "MMSpline3", value = "numeric"): Changes de value of the degree of freedom. signature(object = "MMSpline3"): returns the value of the
degree of freedom. signature(object = "MMSpline3", value = "logical"): Turns on or off the generalised cross validation. signature(object = "MMSpline3"): indicates wether the generalised cross validation is on or not.signature(object = "MMSpline3", map = "MareyMap"):
carries out the interpolation on the map passed as parameter.
Called automatically when an interpolation is added to a map signature(object = "MMSpline3"): Plot the
interpolation's model of the Marey curve.signature(object = "MMSpline3"): Plots the variations
of the recombination rates accross a mapomosome.signature(object = "MMSpline3", pos = "numeric"): query
the estimation of the recombination rate in a specific position (or a
vector of specific positions)signature(object = "MMSpline3", value = "numeric"): Changes the value of the spar. signature(object = "MMSpline3"): retkurns the value of
the spar. signature(object = "MMSpline3", value = "character"): Changes the type of smoothing to be used. signature(object = "MMSpline3"): returns the smoothing
method used. signature(object = "MMSpline3"): returns
informations about the user parameter, used by tcl/tk interface but not that
useful for a command line user.Clement Rezvoy <rezvoy@biomserv.univ-lyon1.fr>
smooth.spline
Interpolation-class
MareyMap-class
data(mareymaps) human7 <- mareymaps[["Homo sapiens (mean)","Chromosome 07"]] library(MMSpline3) itr1 <- MMSpline3() color(itr1) <- "red" spar(itr1) <- 0.05 human7 <- human7 + itr1 plot(human7)