cross
.
We require chromosome
assignments for the genetic markers, and assume that markers are in
their correct order.readMWril(dir="", rilfile, founderfile,
type=c("ri4self", "ri4sib", "ri8self", "ri8selfIRIP1", "ri8sib", "bgmagic16"),
na.strings=c("-","NA"), rotate=FALSE, ...)
"/"
) or double backslashes
("\\"
) to specify directory trees."csv"
format described in the help file for read.cross
.rilfile
, but with just marker names and the
founders' marker genotypes.csv
formats, these are interpreted globally
for the entire
file, so missing value codes in phenotypes must not be valid
genotypes, and vice versa.rilfile
and founderfile
are
rotated (really transposed), with rows corresponding to markers
and columns corresponding to individuals.read.table
in the case of
csv
and csvr
formats. In particular, one may use the
argument
sep
to scross
; see the help file for
read.cross
for details. An additional component crosses
is included; this is a matrix
indicating the crosses used to generate the RIL.
rilfile
should include a phenotype cross
containing
character strings of the form ABCDEFGH
, indicating the cross
used to generate each RIL. The founder strains in the founderfile
should be the strains
A
, B
, C
, ..., as indicated in the cross
phenotype.
read.cross
, sim.cross
ril <- read.cross("../Data", "ril_data.csv", "founder_geno.csv", "ri4self",
rotate=TRUE)
Run the code above in your browser using DataLab