Learn R Programming

onemap (version 3.0.0)

write_onemap_raw: Convert onemap object to onemap raw file

Description

Converts onemap R object to onemap input file. The input file brings information about the mapping population: First line: cross type, it can be "outcrossing", "f2 intercross", "f2 backcross", "ri self" or "ri sib". Second line: number of individuals, number of markers, presence (1) or absence (0) of chromossome and position of the markers, and number of phenotypes mesured. Third line: Individuals/sample names; Followed lines: marker name, marker type and genotypes. One line for each marker. Final lines: chromossome, position and phenotypes informations. See more about input file format at vignettes.

Usage

write_onemap_raw(onemap.obj = NULL, file.name = NULL)

Value

a onemap input file

Arguments

onemap.obj

object of class `onemap`

file.name

a character for the onemap raw file name. Default is "out.raw"

Author

Cristiane Taniguti, chtaniguti@tamu.edu

See Also

read_onemap for a description of the output object of class onemap.

Examples

Run this code

data(onemap_example_out)
write_onemap_raw(onemap_example_out, file.name = paste0(tempfile(), ".raw"))

Run the code above in your browser using DataLab