cross
format and files or objects in dlmap
format and converts them to dlmap input format. dlcross(format = c("rqtl", "dlmap", "other"), genobj, pheobj, mapobj, idname="ID", genfile, phefile, mapfile, type, step=0, fixpos=0, estmap=TRUE, ...)
"plot"(x, chr, pheno.col, ...)
"summary"(object, ...)
read.cross
. Also supports the
input of an object of class cross
("rqtl" format), "dlmap" format
(described below) and continuous data for association mapping populations
("other" format)cross
;
if format="dlmap" or "other" data frame containing genotypesstep=2
, grid
of positions spaced 2 cM apart are considered for QTL locations. If
step=0
(default) positions are only located at markers.fixpos=2
,
2 evenly spaced positions between each marker are considered as QTL locations.
If fixpos=0
(default) positions are only located at markers. dlcross
dlcross
dlcross
objects for input into
dlmap
. The format
argument allows for compatibility with the cross
format as supported
by read.cross
in R/qtl.
In addition, format="dlmap" or "other" takes three files or
objects in the following form. genfile
: First row contains an identifier variable and marker names.
Following rows contain genotype values for each individual
phefile
: First row contains names of phenotypic and environmental traits. One of these traits must be an identifier for each individual.
Following rows contain values of the traits for each individual. Note: This file may contain more observations than the file containing the marker data
mapfile
: Contains marker names, chromosome groupings and positions
If a single set of trait values is available for each genotype, then
phenotypic data will be input through the arguments genobj
or phefile
(depending on the file format).
The argument pheobj
allows for input of phenotypic data on replicates
or additional individuals which are not necessarily genotyped.
Choosing format="other" allows for association mapping populations to be analyzed, and in this case the data can be input as with format="dlmap", but a genetic linkage map is not required. Hence the mapfile only needs the first two columns of marker names and chromosome groupings.
The plot function plots diagnostics summarizing the data. If the type of cross is not "other", will plot the genetic map for the cross. Will also plot a histogram or barplot of the first few phenotypic variables. Will only plot a maximum of three phenotypic variables; pheno.col can be used to select which are plotted.
The summary function outputs a summary of data stored in dlcross object, including number of genotypes, number of phenotypes, number of phenotypic variables, number of chromosomes and markers per chromosome. For experimental crosses, based off of cross
object summary; similar output for association mapping populations.
B. Emma Huang, Rohan Shah, Andrew W. George (2012). dlmap: An R Package for Mixed Model QTL and Association Analysis. Journal of Statistical Software 50(6): 1-22. URL http://www.jstatsoft.org/v50/i06/.
plot.cross
## Not run:
# # load dataset
# data(BSdat)
# data(BSphe)
#
# # convert data to dlmap format
# dl.in1 <- dlcross(format="rqtl", genobj=BSdat, idname="ID", fixpos=1)
#
# # convert data with separate phenotypic trait file
# dl.in2 <- dlcross(format="rqtl", genobj=BSdat, pheobj=BSphe, idname="ID", step=5)
#
# plot(dl.in2)
# summary(dl.in2)
# ## End(Not run)
Run the code above in your browser using DataLab