Learn R Programming

qtl (version 0.92-3)

write.cross: Write data for a QTL experiment to a file

Description

Data for a QTL experiment is written to a file (or files).

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). In Windows, use forward slashes ("/") or double backslashes ("\\") to specify directory trees.
chr
A vector specifying for which chromosomes genotype data should be written.
digits
Number of digits to which phenotype values should be rounded.

Details

Comma-delimited format: a single csv file is created in the format read by read.cross.

Mapmaker format: Data is written to two files. Suppose filestem="file". Then "file.raw" will contain the genotype and phenotype data, and "file.prep" will contain the necessary code for defining the chromosome assignments, marker order, and inter-marker distances.

See Also

read.cross

Examples

Run this code
data(fake.bc)

# comma-delimited format
write.cross(fake.bc, "csv", "Data/fakebc", c(1,5,13))

# mapmaker format
write.cross(fake.bc, "mm", "Data/fakebc", c(1,5,13))

Run the code above in your browser using DataLab