write.cross {qtl}R Documentation

Write data for a QTL experiment to a file

Description

Data for a QTL experiment is written to a file (or files) in either comma-delimited or Mapmaker format.

Usage

write.cross(cross, format=c("csv","mm"), filestem="data", chr, digits=5)

Arguments

cross An object of class cross. See read.cross for details.
format Specifies whether to write the data in comma-delimited or Mapmaker format.
filestem A character string giving the first part of the output file names (the bit before the dot).
chr A vector specifying for which chromosomes data should be written.
digits Number of digits to which phenotype values should be rounded.

Details

Data is passed to either write.cross.csv or write.cross.mm, according to the specified format argument.

Value

Data is written to a single file (comma-delimited format) or two files (Mapmaker format).

Author(s)

Karl W Broman, kbroman@jhsph.edu
http://biosun01.biostat.jhsph.edu/~kbroman/software/qtl.html

See Also

read.cross, write.cross.mm, write.cross.csv

Examples

data{fake.bc}
write.cross(fake.bc,"csv","Data/fakebc",c(5,13))

[Package Contents]