new("MareyMap", ...) or using the function MareyMap().
However, most of the time you can more conveniently use already constructed objects contained in (c.f. code examples)setName:"character" mapName:"character" containing the name of the map, usually the name of the mapomosome it is mapping. markerNames:"vector" containing the names of the markers of the map. physicalPositions:"vector" containing the physical positions of the markers. geneticDistances:"vector" containing the positions of the markers on the genetic map. markerValidity:"vector" indicating for each marker if it is to be taken into account for interpolations. interpolations:"list" containing the interpolations calculated on the map. signature(x = "MareyMap"): returns a vector combining marker name, physical position, genetic distance and marker validity for the i th marker signature(x = "MareyMap"): replaces marker name, physical position, genetic distance and marker validity for the i th marker. value must be a vector containing 4 column named "name", "phys", "gen" and "valid". signature(x = "MareyMap", i = "ANY", j = "ANY", value = "ANY"): replaces marker name, physical position, genetic distance and marker validity for the i th marker. value must be a vector containing 4 column named "name", "phys", "gen" and "valid". signature(x = "MareyMap"): returns a vector combining marker name, physical position, genetic distance and marker validity for the i th marker signature(e1 = "MareyMap", e2 = "Interpolation"): adds an interpolation to the map signature(from = "MareyMap", to = "data.frame"): convert the Marey map into a data.frame. signature(from = "MareyMap", to = "NULL"): returns NULL signature(from = "data.frame", to = "MareyMap"): create a MareyMap from a data.frame. signature(object = "MareyMap"): replace the genetic distance with a new vector. signature(object = "MareyMap"): returns the genetic distances of the markers signature(object = "MareyMap", inter_name = "character", value = "Interpolation"): replaces the interpolation which name matches inter_name with the content of the parameter value.signature(object = "MareyMap", inter_name = "character"): returns the interpolation which name matches inter_name. signature(object = "MareyMap"): replace the list of interpolation with a new list. signature(object = "MareyMap"): returns the list of interpolations. signature(object = "MareyMap"): replaces the name of the map signature(object = "MareyMap"): returns the name of the map signature(object = "MareyMap"): replaces the marker names with a new vector of namessignature(object = "MareyMap"): returns a vector containing the names of the markerssignature(object = "MareyMap"): replaces the marker validity with a new vectorsignature(object = "MareyMap"): returns a vector containing information about the validity of the markerssignature(object = "MareyMap"): replaces the vector of physical positions with a new vectorsignature(object = "MareyMap"): returns a vector containing the physical positions of the markerssignature(x = "MareyMap", y = "missing"): plots the map as well as the interpolations (if any)signature(object = "MareyMap"): plots only the markers of the map, without plotting the interpolationssignature(object = "MareyMap"): plot only the models of the interpolationssignature(object = "MareyMap"): plots only the recombination ratessignature(object = "MareyMap", pos = "numeric"): returns the value of the local recombination rate at physical position pos as estimated by the interpolations defined on the map. Returns a list of integers (or NAs). each individual result may be accessed via result[[interpolation\_name]]signature(object = "MareyMap", value = "integer"): remove the marker number value.signature(object = "MareyMap", value = "ANY"): replaces the name of the set with a new character.signature(object = "MareyMap"): returns the name of the set.signature(object = "MareyMap"):signature(object = "MareyMap", file = "character"): Writes the map to text file.markerNames, physicalPositions, geneticDistances and markerValidity must always retain the same length.MapCollection-class
MapSet-class
data(Homo_sapiens_male)
chr7 <- Homo_sapiens_male[["Chromosome 07"]]
chr7 <- chr7 + MMLoess()
par(mfrow = c(2, 1))
plotMarkers(chr7)
Run the code above in your browser using DataLab