make.analysis.obj {bqtl} | R Documentation |
Set up data for QTL mapping
Description
Create commonly used objects for the analysis of a backcross or intercross experiment or of recombinant inbred lines.
Usage
make.analysis.obj(data, map.frame, marker.frame, marker.levels=NULL,
method="F2", casewt=NULL,varcov=FALSE,mode.mat=NULL)
Arguments
data |
A | |||||||||||||||||||||||||||||
map.frame |
A | |||||||||||||||||||||||||||||
marker.frame |
A | |||||||||||||||||||||||||||||
marker.levels |
A vector of length six or
NA's are allowed in | |||||||||||||||||||||||||||||
method |
One of "F2", "BC1", "RI.self", or "RI.sib" | |||||||||||||||||||||||||||||
casewt |
If there are multiple observations on one genotype (such as in recombinant inbreds) this can be used to assign a weight to each observation. The wisdom of doing this is debatable. | |||||||||||||||||||||||||||||
varcov |
If FALSE, don't create a varcov.object. Otherwise give an
index into data to select a dependent variable. See | |||||||||||||||||||||||||||||
mode.mat |
If
For
and for RIL methods ( and the default
Other choices of |
Details
A lot of stuff is bundled together in one object. The function is
really just a wrapper calling other make.*
functions.
Value
A list with components
data |
|
varcov |
A varcov.object. See |
reg.names |
The names of the regressors from |
method |
The |
state.matrix |
See |
loc.right |
See |
map.frame |
See |
casewt |
The |
mode.mat |
The |
version |
A string giving the version of BQTL from qhich the objects was created |
call |
The function call |
Note
This can be quite a LARGE object.It might be better in crosses with lots (say, thousands) of markers, or in which many 'virtual' markers are used, or on computers with limited RAM to store each component separately. Not all components are used in every type of analysis.
Author(s)
Charles C. Berry cberry@ucsd.edu
See Also
make.map.frame
for definition of the marker map, The
internally used functions are: make.loc.right
,
make.state.matrix
, make.regressor.matrix
,
make.varcov
, and make.marker.numeric
Examples
data( little.bc.pheno )
data( little.mf.5 )
data( little.bc.markers )
names(little.bc.pheno)
little.ana.bc <- make.analysis.obj(little.bc.pheno$bc.phenotype,
little.mf.5,little.bc.markers,
method="BC1")
summary( little.ana.bc )