Description Usage Arguments Details Author(s) References See Also Examples
This routine runs a separate Sweave file (*.Rnw) of commands, making substitutions for the user-supplied data and thresholds. It can be used to automate the search for genetic architecture.
1 2 3 |
cross |
Object of class |
pheno.col |
Phenotype column in object |
n.iter |
Number of MCMC iterations to be stored. |
n.draws |
Number of MC draws to use for |
scan.type |
Type of 1-D and 2-D scan to perform; see
|
hpd.level |
Highest probability density level for scan; see
|
upper.threshold |
Threshold for upper triangle (epistasis) in 2-D
scan; see |
SweaveFile |
Name of |
SweaveExtra |
Name of user-supplied extra
|
PDFDir |
Name of directory to store PDF files (default is
|
remove.qb |
Remove constucted objects if |
This is a simple shell around the Sweave
routine to
create customized documents with embedded QTL analysis. The default file
system.file("doc", "prototype.qtl.hyper.slides.Rnw", package = "qtlbim")
creates a
"beamer" style PDF slide show. An alternative file
system.file("external", "prototype.qtl.hyper.paper.Rnw", package = "qtlbim")
creates a
preprint document. Both require post-processing with pdflatex
.
A user-defined section can be added to the automated documents, using
the SweaveExtra
option. We have provided
system.file("external", "hyper.slide.extra.Rnw", package = "qtlbim")
for the slide version and
system.file("external", "hyper.paper.extra.Rnw", package = "qtlbim")
for the preprint version.
Brian S. Yandell, yandell@stat.wisc.edu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
data(hyper)
## Create default slide show LaTeX source without extra section.
qb.sweave(hyper)
## Turn LaTeX into PDF. Run twice to get outline correct.
## Need pdflatex on your system.
system("pdflatex prototype.qtl.hyper.slides")
system("pdflatex prototype.qtl.hyper.slides")
## Create document form, with extra section.
qb.sweave(hyper,
SweaveFile = system.file("external", "prototype.qtl.hyper.paper.Rnw", package = "qtlbim"))
SweaveExtra = system.file("external", "hyper.paper.extra.Rnw",
package = "qtlbim"))
system("pdflatex prototype.qtl.hyper.paper")
system("pdflatex prototype.qtl.hyper.paper")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.