map_export: Convert a consensus genetic map created with mapfuser to...

Description Usage Arguments Author(s) Examples

View source: R/map_export.R

Description

Writes the consensus map to the JoinMap ".map" format

Usage

1
map_export(MF.obj, file = NULL)

Arguments

MF.obj

The mapfuser object with filled results slot

file

Path to the output file

Author(s)

Dennis van Muijen

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
## Read maps
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 map_qc
MF.obj <- map_qc(MF.obj, anchors = 3)

## Construct consensus map
MF.obj <- LPmerge_par(MF.obj = MF.obj, n.cores = 2,
max.interval = 1:3, max.int_sel = "auto", weights = NULL)

## Export to JoinMap format
file <- paste(tempdir(), "/consensus.map", sep="")
map_export(MF.obj, file)

## End(Not run)

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