The class holds the physical and genetic 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 constructed objects contained in (c.f. code examples)
setName
:Object of class "character"
mapName
:Object of class "character"
containing the name of the map, usually the name of the mapomosome it is mapping.
markerNames
:Object of class "vector"
containing the names of the markers of the map.
physicalPositions
:Object of class "vector"
containing the physical positions of the markers.
geneticDistances
:Object of class "vector"
containing the positions of the markers on the genetic map.
markerValidity
:Object of class "vector"
indicating for each marker if it is to be taken into account for interpolations.
interpolations
:Object of class "list"
containing the interpolation
s 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 names
signature(object = "MareyMap")
: returns a vector containing the names of the markers
signature(object = "MareyMap")
: replaces the marker validity 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", 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.
Aurélie Siberchicot aurelie.siberchicot@univ-lyon1.fr and Clément Rezvoy
vectors 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