Learn R Programming

mapfuser (version 0.1.2)

read_maps: Read genetic maps

Description

Reads genetic maps in either delimited or JoinMap format. Maps are loaded to a mapfuser object.

Usage

read_maps(mapfiles = NULL, sep = NULL, header = TRUE, na.strings = "NA",
  type = c("delim", "JoinMap"), mapweights = NULL)

Arguments

mapfiles

List of filenames to read

sep

The field separator character, see read.delim

header

A logical value indicating whether the files contains the names of variable int the first line, see read.delim()

na.strings

How to interpret missing values? See read.delim()

type

Type of input data, either delimited file with columns "Marker", "LG", and "Position" or a JoinMap ".map" file.

mapweights

numeric vector mapweights

Value

A mapfuser object with the genetic maps listed under the raw_data slot. Chromosome identifiers are added to the config slot

Examples

Run this code
# NOT RUN {
fpath <- system.file("extdata", package="mapfuser")
maps <- list.files(fpath, pattern = "Col", full.names = TRUE)
MF.obj <- read_maps(mapfiles = maps, sep = ",", header = TRUE,
mapweights = rep(1,7), type = "delim")
# }

Run the code above in your browser using DataLab