View source: R/map_df_to_list.R
map_df_to_list | R Documentation |
Convert a marker map organized as data frame to a list
map_df_to_list(
map,
chr_column = "chr",
pos_column = "cM",
marker_column = "marker",
Xchr = c("x", "X")
)
map |
Data frame with marker map |
chr_column |
Name of the column in |
pos_column |
Name of the column in |
marker_column |
Name of the column in |
Xchr |
Vector of character strings indicating the name or names of the X chromosome. If NULL, assume there's no X chromosome. |
A list of vectors of marker positions, one component per chromosome
map_list_to_df()
map <- data.frame(chr=c(1,1,1, 2,2,2, "X","X"),
pos=c(0,5,10, 0,8,16, 5,20),
marker=c("D1M1","D1M2","D1M3", "D2M1","D2M2","D2M3", "DXM1","DXM2"))
map_list <- map_df_to_list(map, pos_column="pos")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.