| MareyMap-class {MareyBase} | R Documentation |
The class holds the physical and genetical positions of a marey map
Objects can be created by calls of the form new("MareyMap", ...) or using the function MareyMap().
However, most of the time you can more conveniently use already contructed objects contained in mareymaps (c.f. code examples)
speciesName:"character" mapName:"character" containing the name of the map, usually the name of the chromosome 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"): 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 = "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 markers signature(object = "MareyMap"): replaces the marker validities with a new vector signature(object = "MareyMap"): returns a vector containing information about the validity of the markers signature(object = "MareyMap"): replaces the vector of physical positions with a new vector signature(object = "MareyMap"): returns a vector containing the physical positions of the markers signature(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 interpolations signature(object = "MareyMap"): plot only the models of the interpolations signature(object = "MareyMap"): plots only the recombination rates signature(object = "MareyMap", value = "ANY"): replaces the name of the species with a new character. signature(object = "MareyMap"): returns the name of the species. signature(object = "MareyMap"):
vectors markerNames, physicalPositions, geneticDistances and markerValidity must always retain the same length.
Clement Rezvoy <rezvoy@biomserv.univ-lyon1.fr>
MapCollection-class
SpeciesMaps-class
data(mareymaps) chr7 <- mareymaps[["Homo sapiens (deCODE)","Chromosome 07"]] mapName(chr7) <- "chr7" speciesName(chr7) <- "Human" plot(chr7) plotMarkers(chr7)