Learn R Programming

mpMap (version 1.14)

write.mpcross: Output mpcross objects to other file formats

Description

Outputs the genotype information from an 'mpcross' object to files which can be read in to either R/qtl cross format or R/happy.hbrem format

Usage

write2cross(object, filestem, chr, ...) write2happy(object, filestem, chr, ...) write.mpcross(object, filestem="mp", chr, format=c("qtl", "happy"), ...)

Arguments

object
Object of class mpcross
filestem
Filestem for all files which are output; may include directory
chr
Subset of chromosomes to be output; default is all
format
Output format - R/qtl or happy.hbrem
...
Additional arguments

Value

For R/qtl cross format, two files are output: filestem.ril.csv and filestem.founder.csv which can be then read into the R/qtl package using readMWril. For R/happy.hbrem format, two files are output for each chromosome: e.g. filestem.chr1.alleles and filestem.chr1.data. These can be directly input to happy.

See Also

readMWril, happy