map_list_to_df: Marker map list to data frame

View source: R/map_list_to_df.R

map_list_to_dfR Documentation

Marker map list to data frame

Description

Convert a marker map organized as a list to a data frame

Usage

map_list_to_df(
  map_list,
  chr_column = "chr",
  pos_column = "pos",
  marker_column = "marker"
)

Arguments

map_list

List of vectors containing marker positions

chr_column

Name of the chromosome column in the output

pos_column

Name of the position column in the output

marker_column

Name of the marker column in the output. If NULL, just put them as row names.

Value

A data frame with the marker positions.

See Also

map_df_to_list()

Examples

library(qtl2)
iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2"))
iron_map <- map_list_to_df(iron$gmap)


qtl2convert documentation built on July 11, 2022, 5:08 p.m.