Learn R Programming

mapfuser (version 0.1.2)

map_export: Convert a consensus genetic map created with mapfuser to JoinMap format

Description

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

Usage

map_export(MF.obj, file = NULL)

Arguments

MF.obj

The mapfuser object with filled results slot

file

Path to the output file

Examples

Run this code
# 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)
# }

Run the code above in your browser using DataLab