qtlTable | R Documentation |
Stack QTL summary information into a super table ready for simple exporting.
qtlTable(..., intervalObj = NULL, labels = NULL, columns = "all")
... |
list of objects of class |
intervalObj |
a genetic object of class |
labels |
a vector of character strings describing the trait names of each model QTL table. |
columns |
this can be either a numeric vector determining which columns of the QTL
summaries should be outputted or |
The super table is created by obtaining the QTL summaries for each model
in ...
using summary.wgaim()
and then row binding them
together. An extra column is created on the left hand side of the
super table for the trait names given in the labels
argument. If labels = NULL
then trait names are extracted from
the left hand-side of the fixed component of the associated wgaim
model. The returned super table allows simple exporting to spreadsheet software packages
or with the R/LaTeX package xtable.
A data.frame
object with stacked QTL summaries
Julian Taylor
Julian Taylor, Arunas Vebyla (2011). R Package wgaim: QTL Analysis in Bi-Parental Populations Using Linear Mixed Models. Journal of Statistical Software, 40(7), 1-18. URL https://www.jstatsoft.org/v40/i07/.
wgaim
## Not run:
## fit wgaim models
rktgw.qtl <- wgaim(rktgw.asf, intervalObj = genoRxK, merge.by = "Genotype",
trace = "trace.txt", na.action = na.method(x = "include"))
rkyld.qtl <- wgaim(rkyld.asf, intervalObj = genoRxK, merge.by = "Genotype",
trace = "trace.txt", na.action = na.method(x = "include"))
## create super table and export
qtlt <- qtlTable(rktgw.qtl, rkyld.qtl, labels = c("Conc.", "Shoot"))
print(xtable(qtlt), file = "superQTL.tex", include.rownames = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.