Description Usage Arguments Details Value Author(s) Examples
Read file specifying the simulation parameters.
1 | read.simu.pars(file = NULL, ...)
|
file |
the file of parameters settings |
... |
not used |
File format: please follow the example of the simupars.txt
file
found in the inst/extdata/ directory of the package (run
system.file("extdata", "simupars.txt", package="SimPhe")
to see the full path),
blank lines are ignored.
The file consists of three or four blocks for each phenotype:
mean, main, epistasis, and (optionally) heritability.
Each block is started by a line of the form '[blockname]' followed by the
parameters for the block, e.g., for thefirst phenotype,
β_0: coefficient parameter of "basic" genetic effects in Gij = β_0 + ∑(β_Gwt*wtij), t in (1, 2, ..., 8).
SNP name
coefficient of additive effect
coefficient of dominance effect
first SNP name
second SNP name
coefficient for additive-additive interaction
coefficient for additive-dominance interaction
coefficient for dominance-additive interaction
coefficient for dominance-dominance interaction
expected heritability
For each block the expected columns and the respective menaings are given. Similar blocks need to be provided for the other phenotype(s): "[P2mean]", "[P2main]", "[P2epistasis]", and so on.
a list of simulation parameters. One element per block of file
.
Each element is a dataframe with SNP names and model parameters
Beibei Jiang beibei_jiang@psych.mpg.de and Benno Pütz puetz@psych.mpg.de
1 2 3 4 5 | # simulation parameters:
fpar.path <- system.file("extdata", "simupars.txt", package="SimPhe")
# pars <- read.simu.pars(fpar.path)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.