table2map | R Documentation |
Convert a data frame with marker positions to a map object.
table2map(tab)
tab |
A data frame with two columns: chromosome and position. The row names are the marker names. |
A map
object: a list whose components (corresponding
to chromosomes) are vectors of marker positions.
Karl W Broman, broman@wisc.edu
map2table
, pull.map
, est.map
tab <- data.frame(chr=c(1,1,1,1,2,2,2,2,3,3,3,3),
pos=c(0,2,4,8,0,2,4,8,0,2,4,8))
rownames(tab) <- paste0("marker", 1:nrow(tab))
map <- table2map(tab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.