Learn R Programming

qtl (version 0.85-4)

read.cross.csv: Read data for a QTL experiment in comma-delimited format

Description

Data for a QTL experiment is read from a file and converted into an object of class cross.

Usage

read.cross.csv(dir,file,sep=",",na.strings="-",genotypes=c("A","H","B","C","D"))

Arguments

dir
Character string specifying the directory containing the input files.
file
A comma-delimited file containing all of the data, in a very rigid format. The first line should contain the phenotype names followed by the marker names. The next line should contain blanks in the phenotype columns, followed by chromosome i
sep
The field separator. This is generally ",", but could be any other character, as long as that character does not appear in any of the records.
na.strings
A vector of strings which are to be interpreted as missing values. These are interpreted globally for the entire file, so missing value codes in phenotypes must not be valid genotypes, and vice versa.
genotypes
A vector of character strings specifying the genotype codes used in the file. Generally this is a vector of length 5, with the elements corresponding to AA, AB, BB, not AA (i.e., AB or BB), and not BB (ie, AB or BB). Note: Pay careful

Value

  • An object of class cross. See read.cross for details.

See Also

read.cross, read.cross.karl, read.cross.mm, read.cross.csv

Examples

Run this code
cross <- read.cross("csv",dir="../Data",file="dataset.csv")

Run the code above in your browser using DataLab