write_onemap_raw {onemap} | R Documentation |
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)
Arguments
onemap.obj |
object of class 'onemap' |
file.name |
a character for the onemap raw file name. Default is "out.raw" |
Value
a onemap input file
Author(s)
Cristiane Taniguti, chtaniguti@tamu.edu
See Also
read_onemap
for a description of the output object of class onemap.
Examples
data(onemap_example_out)
write_onemap_raw(onemap_example_out, file.name = paste0(tempfile(), ".raw"))