read_maps: Read genetic maps

Description Usage Arguments Value Author(s) Examples

View source: R/read_maps.R

Description

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

Usage

1
2
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

Author(s)

Dennis van Muijen

Examples

1
2
3
4
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")

mapfuser documentation built on Oct. 10, 2017, 5:07 p.m.